@property --accent  { syntax: '<color>'; inherits: true; initial-value: #9be15d; }
@property --accent2 { syntax: '<color>'; inherits: true; initial-value: #e7f57a; }
@property --liquor  { syntax: '<color>'; inherits: true; initial-value: #d7e38f; }

:root {
  --bg: #04080f;
  --bg2: #0a1422;
  --ink: #eaf1f6;
  --muted: #93a4b5;
  --faint: #5d6e80;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(10, 18, 30, .66);
  --glass-hi: rgba(255, 255, 255, .05);
  --panel-w: 460px;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font: "Inter", "Segoe UI", "SF Pro Text", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --cjk: "Noto Serif CJK SC", "Songti SC", "SimSun", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: radial-gradient(1200px 900px at 30% 50%, #0b1a2c 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .4em;
  border-radius: 6px; font: 600 11px/1 var(--font); color: var(--ink);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-bottom-width: 2px;
}
svg { display: block; }

#stars, #globe { position: fixed; inset: 0; width: 100%; height: 100%; }
#stage { position: fixed; inset: 0; touch-action: none; }
#globe { cursor: grab; outline: none; }
#globe.dragging { cursor: grabbing; }
#globe.hovering { cursor: pointer; }

.aurora { position: fixed; inset: 0; pointer-events: none; opacity: .5; overflow: hidden; }
.aurora span {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0%, color-mix(in srgb, var(--accent) 10%, transparent) 35%, transparent 68%);
  left: -10vmax; top: -20vmax; animation: drift 28s ease-in-out infinite alternate;
}
.aurora span + span {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent2) 22%, transparent) 0%, transparent 60%);
  left: auto; right: -20vmax; top: auto; bottom: -25vmax; animation-duration: 34s;
}
@keyframes drift { to { transform: translate(12vmax, 10vmax) scale(1.15); } }
.vignette {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}

#pins { position: fixed; inset: 0; pointer-events: none; }
.pin {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
  transform: translate(-50%, -50%); will-change: transform, opacity;
  transition: opacity .35s ease;
  background: none; border: 0; padding: 0;
}
.pin .dot {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 0 18px var(--c), 0 0 40px var(--c);
  transition: transform .4s var(--ease);
}
.pin::before, .pin::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 2px solid var(--c); animation: ripple 2.4s ease-out infinite; pointer-events: none;
}
.pin::after { animation-delay: 1.2s; }
.pin:not(.active)::before, .pin:not(.active)::after { animation: none; opacity: 0; }
body.overview .pin::before, body.overview .pin::after, .pin:hover::before { animation: ripple 2.4s ease-out infinite; opacity: 1; }
body.overview .pin::after { animation-delay: 1.2s; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.pin .lbl {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%) translateX(-6px);
  white-space: nowrap; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(6, 12, 22, .9); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; opacity: 0;
  transition: opacity .35s ease, transform .45s var(--ease);
}
.pin .lbl small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.pin:hover .lbl, .pin.active .lbl, .pin.lblon .lbl { opacity: 1; transform: translateY(-50%) translateX(0); }
.pin.left .lbl { left: auto; right: 22px; transform: translateY(-50%) translateX(6px); text-align: right; }
.pin:hover .dot { transform: scale(1.35); }
.pin.active .dot { transform: scale(1.25); }
.pin.back { opacity: 0; pointer-events: none; }
.pin.dim { opacity: .45; }
.pin.dim::before, .pin.dim::after { animation: none; opacity: 0; }
.pin.dim .lbl { opacity: 0 !important; }
.pin.dim:hover { opacity: 1; }
.pin.dim:hover .lbl { opacity: 1 !important; }

#flyTitle {
  position: fixed; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; pointer-events: none; z-index: 5;
}
@media (min-width: 901px) { body.tea #flyTitle { right: calc(var(--panel-w) + 20px); } }
#flyTitle small, #flyTitle b, #flyTitle em { display: block; opacity: 0; }
#flyTitle small { font-size: 12px; letter-spacing: .5em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
#flyTitle b {
  font: 400 clamp(56px, 11vw, 150px)/1 var(--serif); letter-spacing: .08em;
  text-shadow: 0 0 60px color-mix(in srgb, var(--accent) 60%, transparent);
}
#flyTitle em { font-style: normal; color: var(--muted); letter-spacing: .12em; font-size: 14px; margin-top: 10px; }
#flyTitle.show small { animation: flyIn 2.1s var(--ease) forwards; }
#flyTitle.show b     { animation: flyBig 2.1s var(--ease) forwards; }
#flyTitle.show em    { animation: flyIn 2.1s var(--ease) .1s forwards; }
@keyframes flyBig {
  0%   { opacity: 0; transform: scale(1.08); }
  30%  { opacity: 1; transform: scale(1); }
  70%  { opacity: 1; transform: scale(.99); }
  100% { opacity: 0; transform: scale(.95); }
}
@keyframes flyIn {
  0% { opacity: 0; transform: translateY(12px); } 30% { opacity: 1; transform: none; }
  70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); }
}

.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar { gap: 14px; justify-content: flex-start; }
.top-actions { margin-left: auto; }
.brand {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px;
  font: 600 18px/1 var(--serif); letter-spacing: .02em;
}

.top-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .25s, border-color .25s, transform .25s var(--ease), opacity .3s;
}
.icon-btn:hover { background: rgba(255,255,255,.08); border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: currentColor; stroke-linecap: round; }
.icon-btn svg [fill="none"] { fill: none; }
.icon-btn svg path { fill: none; }
#btnRecenter { opacity: 0; pointer-events: none; transform: scale(.8); }
#btnRecenter.show { opacity: 1; pointer-events: auto; transform: none; }

.intro {
  position: fixed; left: clamp(24px, 6vw, 96px); top: 50%; transform: translateY(-50%);
  max-width: 440px; z-index: 6; transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s;
}
body:not(.overview) .intro { opacity: 0; transform: translate(-40px, -50%); pointer-events: none; visibility: hidden; transition: opacity .5s, transform .6s var(--ease), visibility 0s .6s; }
.kicker { text-transform: uppercase; letter-spacing: .28em; font-size: 11px; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
.intro h1 { font: 400 clamp(40px, 5.2vw, 72px)/1.02 var(--serif); margin: 0 0 18px; letter-spacing: -.01em; }
.intro h1 span {
  background: linear-gradient(100deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.lead { color: var(--muted); font-size: 16.5px; max-width: 360px; margin: 0 0 28px; }
.cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; border: 0;
  background: linear-gradient(100deg, var(--accent), var(--accent2)); color: #06110a; font-weight: 700;
  box-shadow: 0 10px 40px -10px var(--accent); transition: transform .3s var(--ease), box-shadow .3s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px var(--accent); }
.cta kbd { background: rgba(0,0,0,.18); border-color: rgba(0,0,0,.2); color: #06110a; }
.cta.small { padding: 10px 18px; font-size: 14px; }

.panel {
  position: fixed; z-index: 10; top: 86px; right: 20px; bottom: 20px; width: var(--panel-w);
  border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), inset 0 1px 0 var(--glass-hi);
  transform: translateX(calc(100% + 40px)); opacity: 0;
  transition: transform .9s var(--ease), opacity .6s ease;
  overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none;
  background: radial-gradient(420px 200px at 80% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
body.tea .panel { transform: none; opacity: 1; }
.panel-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; touch-action: pan-y; }
.sheet-handle { display: none; }

#panelContent { padding: 28px 28px 32px; position: relative; transition: opacity .28s ease, transform .28s ease, filter .28s ease; }
#panelContent.out { opacity: 0; transform: translateY(-10px); }
.rv { opacity: 0; transform: translateY(18px); animation: rv .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes rv { to { opacity: 1; transform: none; } }

.tea-head { position: relative; min-height: 150px; z-index: 0; }
.tea-glyph {
  position: absolute; right: -18px; top: 120px; font: 400 180px/1 var(--cjk);
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: .35; pointer-events: none; user-select: none; z-index: -1;
}
.tea-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.chip.ghost { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--line); }
.tea-name { font: 400 44px/1.02 var(--serif); margin: 0; letter-spacing: -.01em; }
.tea-native { font: 400 18px/1.3 var(--cjk); color: var(--accent); margin-top: 8px; letter-spacing: .2em; }
.tea-translit { color: var(--muted); font-size: 13px; margin-top: 4px; }
.tea-hook { font: italic 400 18px/1.45 var(--serif); color: #d6e1ea; margin: 22px 0 0; padding-left: 16px; border-left: 2px solid var(--accent); }

.hero-row { display: grid; grid-template-columns: 1fr 112px; gap: 16px; align-items: end; }
.cup-wrap { position: relative; width: 112px; height: 112px; }
.cup-wrap svg { width: 100%; height: 100%; overflow: visible; }
.cup-wrap .wisp { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2; stroke-linecap: round; animation: wisp 3.2s ease-in-out infinite; opacity: 0; }
.cup-wrap .wisp:nth-child(2) { animation-delay: 1s; }
.cup-wrap .wisp:nth-child(3) { animation-delay: 2s; }
@keyframes wisp { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-14px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0 6px; }
.stat { padding: 11px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.stat .l { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat .v { font-size: 12.5px; font-weight: 600; margin: 3px 0 8px; line-height: 1.25; min-height: 2.5em; }
.stat .m { height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.stat .m i { display: block; height: 100%; width: calc(var(--w) * 100%); background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 3px; transform-origin: left; animation: grow 1.2s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 300ms); }
@keyframes grow { from { transform: scaleX(0); } }

.tabs {
  position: sticky; top: -1px; z-index: 3; display: flex; gap: 2px; margin: 22px -28px 0; padding: 10px 28px;
  background: linear-gradient(to bottom, rgba(10,18,30,.96) 70%, rgba(10,18,30,0));
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: 0 0 auto; background: none; border: 0; padding: 9px 11px; border-radius: 12px;
  color: var(--muted); font-weight: 600; font-size: 13px; transition: color .25s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: #06110a; }
.tab-ink {
  position: absolute; top: 10px; height: 37px; left: 0; width: 0; border-radius: 12px; z-index: -1;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 24px -8px var(--accent);
  transition: left .5s var(--ease), width .5s var(--ease);
}
.tab-pages { position: relative; margin-top: 10px; }
.tab-page { display: none; }
.tab-page.on { display: block; animation: pageIn .55s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateX(var(--dir, 16px)); } }

h4.sec { font: 700 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin: 26px 0 12px; }
.prose p { margin: 0 0 12px; color: #cfdae4; }
.special { display: grid; gap: 10px; }
.special-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.special-item:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateX(3px); }
.special-item .n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.special-item b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.special-item span { color: var(--muted); font-size: 13.5px; }
.extra { display: grid; gap: 6px; }
.extra-row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.extra-row:last-child { border-bottom: 0; }
.extra-row b { color: var(--accent); font-weight: 700; font-size: 13px; white-space: nowrap; }
.extra-row span { color: #cfdae4; }

.flavor-wrap { display: grid; place-items: center; margin: 4px 0 6px; }
#radar { width: 100%; max-width: 340px; height: auto; overflow: visible; }
#radar .grid { fill: none; stroke: rgba(255,255,255,.08); }
#radar .axis { stroke: rgba(255,255,255,.08); }
#radar .shape { fill: color-mix(in srgb, var(--accent) 28%, transparent); stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 60%, transparent)); }
#radar .ghost { fill: none; stroke: rgba(255,255,255,.22); stroke-dasharray: 3 4; }
#radar .vtx { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
#radar text { fill: var(--muted); font-size: 11.5px; font-weight: 600; }
#radar text.val { fill: var(--ink); font-size: 10.5px; font-weight: 700; }
.radar-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--muted); margin-top: -4px; }
.radar-legend i { display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--accent); }
.radar-legend i.g { background: none; border-top: 2px dashed rgba(255,255,255,.3); }
.notes { display: flex; flex-wrap: wrap; gap: 8px; }
.note { padding: 8px 13px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.04); border: 1px solid var(--line); animation: pop .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
.liquor-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.liquor { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--liquor) 60%, white), var(--liquor) 45%, color-mix(in srgb, var(--liquor) 60%, #2b1d05) 100%); box-shadow: 0 0 0 5px rgba(255,255,255,.9), 0 0 30px color-mix(in srgb, var(--liquor) 60%, transparent); }
.liquor-row b { display: block; }
.liquor-row span { font-size: 13px; color: var(--muted); }

.process { position: relative; padding-left: 28px; }
.process::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: grow2 1.4s var(--ease) both; }
@keyframes grow2 { from { transform: scaleY(0); } }
.step { position: relative; padding: 0 0 18px; }
.step::before { content: attr(data-n); position: absolute; left: -28px; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #06110a; background: var(--accent); box-shadow: 0 0 0 4px rgba(10,18,30,.9), 0 0 14px var(--accent); }
.step b { display: block; font-size: 14.5px; }
.step span { color: var(--muted); font-size: 13.5px; }

.methods { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); gap: 2px; }
.method { white-space: nowrap; background: none; border: 0; padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .3s var(--ease); }
.method.on { background: rgba(255,255,255,.1); color: var(--ink); }
.brew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.brew-card { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); text-align: center; }
.brew-card .big { font: 400 28px/1 var(--serif); color: var(--ink); }
.brew-card .big small { font: 600 12px var(--font); color: var(--muted); margin-left: 2px; }
.brew-card .l { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-top: 6px; }
.thermo { height: 5px; border-radius: 5px; margin-top: 10px; background: linear-gradient(90deg, #4aa3ff, #ffe06a, #ff5a3c); position: relative; }
.thermo i { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); left: calc(var(--t) * 100%); box-shadow: 0 0 10px #fff; transition: left .8s var(--ease); }
.vessel { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.vessel b { color: var(--ink); font-weight: 600; }

.timer { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 8; }
.ring .fg { fill: none; stroke: url(#ringGrad); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 6px var(--accent)); }
.ring .liq { transition: y .3s linear, height .3s linear; }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-center b { font: 400 34px/1 var(--serif); font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.ring-center small { display: block; font-size: 11px; color: var(--ink); opacity: .8; text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.steeps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.steep { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 12px; font-weight: 600; color: var(--muted); transition: all .3s var(--ease); }
.steep.on { color: #06110a; background: var(--accent); border-color: transparent; }
.steep.done { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); text-decoration: line-through; opacity: .7; }
.timer-btns { display: flex; gap: 8px; }
.tbtn { flex: 1; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); font-weight: 700; font-size: 13.5px; transition: all .25s var(--ease); }
.tbtn:hover { background: rgba(255,255,255,.12); }
.tbtn.primary { background: linear-gradient(100deg, var(--accent), var(--accent2)); color: #06110a; border-color: transparent; box-shadow: 0 8px 26px -10px var(--accent); }
.tip { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; color: #cfdae4; background: rgba(255,255,255,.03); border-left: 3px solid var(--accent); }

.legend-card { position: relative; padding: 22px 22px 20px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--line); overflow: hidden; }
.legend-card::before { content: "“"; position: absolute; right: 12px; top: -30px; font: 400 160px/1 var(--serif); color: color-mix(in srgb, var(--accent) 25%, transparent); }
.legend-card h5 { font: 400 22px/1.2 var(--serif); margin: 0 0 10px; }
.legend-card p { margin: 0; color: #cfdae4; font-size: 14.5px; line-height: 1.65; }
.facts { display: grid; gap: 10px; }
.fact { perspective: 800px; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.fact-in { position: relative; min-height: 88px; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.fact.flip .fact-in { transform: rotateX(180deg); }
.fact-f, .fact-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); }
.fact-f { background: rgba(255,255,255,.04); font-weight: 600; }
.fact-f .q { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font: 700 17px var(--serif); }
.fact-f small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.fact-b { transform: rotateX(180deg); background: color-mix(in srgb, var(--accent) 12%, rgba(10,18,30,.9)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); font-size: 13.5px; line-height: 1.45; color: var(--ink); }

.next-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.nav-card { text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.035); transition: all .35s var(--ease); }
.nav-card:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 10px 30px -16px var(--c); }
.nav-card small { display: block; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.nav-card b { display: block; font: 400 19px/1.2 var(--serif); margin-top: 4px; }
.nav-card span { font-size: 12px; color: var(--c); font-weight: 600; }
.nav-card.r { text-align: right; }

.dock {
  position: fixed; z-index: 12; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: min(900px, calc(100vw - 48px));
  display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.8), inset 0 1px 0 var(--glass-hi);
  transition: left .9s var(--ease), width .9s var(--ease);
}
body.tea .dock { left: calc((100vw - var(--panel-w) - 20px) / 2); width: min(820px, calc(100vw - var(--panel-w) - 70px)); }
.dock-filters { display: flex; gap: 4px; padding: 2px 4px 0; overflow-x: auto; scrollbar-width: none; }
.dock-filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 0; background: none; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.fchip b { font-weight: 700; font-size: 10.5px; margin-left: 5px; opacity: .6; }
.fchip:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.fchip.on { color: #06110a; background: linear-gradient(100deg, var(--accent), var(--accent2)); }
.dock-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dock-items {
  position: relative; display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scroll-behavior: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  padding: 0 18px 4px;
}
.dock-items::-webkit-scrollbar { display: none; }
.dock-item {
  position: relative; flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px;
  background: none; border: 0; text-align: left; transition: background .3s, transform .3s var(--ease);
}
.dock-item:hover { background: rgba(255,255,255,.06); }
.dock-item .sw { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 400 17px/1 var(--cjk); color: #06110a; background: var(--c); box-shadow: 0 0 18px -4px var(--c); transition: transform .4s var(--ease); }
.dock-item b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.dock-item small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.dock-item.on { background: rgba(255,255,255,.08); }
.dock-item.on .sw { transform: rotate(-8deg) scale(1.08); }
.dock-item.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.dock-arrow { flex: none; width: 40px; height: 50px; border-radius: 14px; border: 0; background: rgba(255,255,255,.04); display: grid; place-items: center; transition: background .25s; }
.dock-arrow:hover { background: rgba(255,255,255,.1); }
.dock-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dock-progress { position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; overflow: hidden; border-radius: 2px; }
.dock-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, transparent, var(--accent), var(--accent2)); transform: scaleX(0); transform-origin: left; }

.search-btn {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 10px 0 14px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13.5px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .25s, color .25s;
}
.search-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.search-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.search-btn span { min-width: 90px; text-align: left; }

.palette { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: center; align-items: start; padding-top: 12vh; background: rgba(2,5,10,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease; }
.palette[hidden] { display: none; }
.palette-card { width: min(620px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column; border-radius: 22px; background: #0c1624; border: 1px solid var(--line); box-shadow: 0 40px 120px -20px #000; overflow: hidden; animation: rv .35s var(--ease); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.palette-input input { flex: 1; background: none; border: 0; outline: none; color: var(--ink); font: 400 18px var(--font); }
.palette-input input::-webkit-search-cancel-button { display: none; }
.palette-list { overflow-y: auto; padding: 6px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; cursor: pointer; }
.pal-item.hl { background: rgba(255,255,255,.07); }
.pal-item .sw { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 400 16px/1 var(--cjk); color: #06110a; background: var(--c, #7fd6c2); }
.pal-item .sw.country { background: rgba(127,214,194,.15); color: #7fd6c2; font: 700 18px var(--font); }
.pal-item b { display: block; font-weight: 600; }
.pal-item small { display: block; color: var(--muted); font-size: 12.5px; }
.pal-item > span:nth-child(2) { flex: 1; min-width: 0; }
.pal-item em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pal-empty { padding: 28px 18px; color: var(--muted); text-align: center; }
.palette-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.palette-foot kbd { margin-right: 4px; }

.cpin { position: absolute; left: 0; top: 0; border: 0; padding: 0; background: none; cursor: pointer; transition: opacity .4s ease; will-change: transform; }
.cpin .ring {
  display: grid; place-items: center; width: calc(40px * var(--s, 1)); height: calc(40px * var(--s, 1)); border-radius: 50%;
  background: radial-gradient(circle, rgba(127,214,194,.95) 0 38%, rgba(127,214,194,.25) 40% 100%);
  box-shadow: 0 0 0 1px rgba(127,214,194,.6), 0 0 30px rgba(127,214,194,.6); transition: transform .35s var(--ease);
  position: relative;
}
.cpin .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(127,214,194,.7); animation: breathe 2.8s ease-out infinite; }
@keyframes breathe { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.cpin .ring b { font-size: 12.5px; font-weight: 800; color: #04140f; }
.cpin:hover .ring { transform: scale(1.12); }
.cpin .lbl { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(6,12,22,.9); border: 1px solid rgba(127,214,194,.4); font-size: 12.5px; font-weight: 700; opacity: 0; transition: opacity .3s; pointer-events: none; }
.cpin .lbl small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.cpin.left .lbl { left: auto; right: calc(100% + 8px); text-align: right; }
.cpin.top .lbl, .pin.top .lbl { left: 50%; right: auto; top: auto; bottom: calc(100% + 8px); transform: translateX(-50%); text-align: center; }
.cpin.bottom .lbl, .pin.bottom .lbl { left: 50%; right: auto; top: calc(100% + 8px); transform: translateX(-50%); text-align: center; }
.pin.top.lblon .lbl, .pin.bottom.lblon .lbl, .pin.top:hover .lbl, .pin.bottom:hover .lbl { transform: translateX(-50%); }
.cpin.lblon .lbl, .cpin:hover .lbl { opacity: 1; }
.cpin.hide, .pin.hide { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
#pins .pin, #pins .cpin { pointer-events: auto; }
#pins .hide { pointer-events: none; }

.shop {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; margin: 18px 0 0; padding: 10px 12px 10px 10px;
  border-radius: 16px; text-decoration: none; color: inherit; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.shop:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-1px); background: rgba(255,255,255,.06); }
.shop img, .shop-ico { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #0b1520; display: grid; place-items: center; font: 700 20px var(--font); color: var(--accent); }
.shop-txt b { display: block; font: 400 22px/1.1 var(--serif); }
.shop-txt small { color: var(--muted); font-size: 12.5px; }
.av { font-style: normal; font-weight: 700; }
.av.ok { color: #5dd39e; } .av.wait { color: #ffc15e; } .av.no { color: #ff7b7b; }
.shop-go { font-size: 12.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.chip.link { cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.chip.link:hover { color: var(--ink); border-color: rgba(255,255,255,.25); }
.chip.warn { background: rgba(255,193,94,.15); color: #ffc15e; border-color: rgba(255,193,94,.35); }
.auto-note { font-size: 12.5px; color: var(--faint); text-align: center; margin: 6px 0 0; }
.muted { color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.preview-badge { position: fixed; z-index: 30; left: 50%; top: 18px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(255,193,94,.18); border: 1px solid rgba(255,193,94,.5); color: #ffc15e; font-size: 12.5px; font-weight: 700; }

.country-head { margin-bottom: 18px; }
.country-head .tea-name { margin-bottom: 16px; }
.type-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; gap: 2px; }
.type-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tl { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 12px; font-weight: 600; color: var(--muted); }
.tl:hover { color: var(--ink); border-color: rgba(255,255,255,.2); }
.tl i { width: 9px; height: 9px; border-radius: 50%; }
.tl b { color: var(--ink); }
.tb-green { background: #9be15d; } .tb-black { background: #ff8a4c; } .tb-oolong { background: #f5c451; } .tb-puer { background: #c77dff; }
.tb-white { background: #d9e8ff; } .tb-yellow { background: #ffe066; } .tb-flower { background: #ff7eb6; } .tb-other { background: #7fd6c2; }
.tea-list { display: grid; gap: 6px; }
.tea-row {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; text-align: left;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.tea-row:hover { border-color: var(--c); background: rgba(255,255,255,.055); transform: translateX(3px); }
.tea-row .sw { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font: 400 17px/1 var(--cjk); color: #06110a; background: var(--c); }
.tea-row b { display: block; font-weight: 600; font-size: 14px; }
.tea-row small { display: block; color: var(--muted); font-size: 12px; }
.tr-side { text-align: right; }
.tr-side b { font-size: 13px; }
.tr-side small { color: #ffc15e; }

.tooltip {
  position: fixed; z-index: 30; pointer-events: none; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  background: rgba(6,12,22,.92); border: 1px solid var(--line); opacity: 0; transform: translate(12px, 12px); transition: opacity .2s;
}
.tooltip.show { opacity: 1; }
.tooltip small { display: block; color: var(--muted); font-weight: 500; }
.toast {
  position: fixed; z-index: 40; left: 50%; top: 24px; transform: translate(-50%, -120px);
  padding: 14px 22px; border-radius: 16px; font-weight: 700;
  background: linear-gradient(100deg, var(--accent), var(--accent2)); color: #06110a; box-shadow: 0 20px 60px -10px var(--accent);
  transition: transform .6s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.help { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(2,5,10,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s ease; }
.help[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.help-card { width: min(460px, calc(100vw - 32px)); padding: 26px; border-radius: 24px; background: #0c1624; border: 1px solid var(--line); box-shadow: 0 40px 100px -20px #000; animation: rv .5s var(--ease); }
.help-card h3 { font: 400 26px var(--serif); margin: 0 0 14px; }
.help-card ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.help-card li { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.help-card li > span:last-child { margin-left: 8px; }
.help-card .mouse { font-weight: 700; color: var(--ink); font-size: 12px; min-width: 64px; }

.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 6px; background: radial-gradient(700px 500px at 50% 45%, #0c1a2b, var(--bg) 70%), var(--bg); color: var(--accent); transition: opacity .8s ease, visibility .8s, transform .8s var(--ease); }
.loader.done { opacity: 0; visibility: hidden; transform: scale(1.04); pointer-events: none; }
.ld-cup { width: 128px; height: 128px; overflow: visible; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 35%, transparent)); }
.ld-liquid { fill: var(--ld-liquid, #b9dc6a); opacity: .55; }
.ld-steam { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .35; animation: ldSteamIdle 2.2s ease-in-out infinite; }
@keyframes ldSteamIdle { 0%, 100% { stroke-dashoffset: 100; opacity: .15; } 50% { stroke-dashoffset: 55; opacity: .5; } }
.loader.full .ld-steam { animation: ldSteamDraw .6s var(--ease) forwards; }
@keyframes ldSteamDraw { from { stroke-dashoffset: 100; opacity: .4; } to { stroke-dashoffset: 0; opacity: 1; } }
.ld-word { font: 400 30px/1 var(--serif); color: var(--ink); letter-spacing: .01em; margin-top: 10px; }
.ld-word i { color: var(--accent); }
.ld-status { display: none; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.ld-status b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; margin-left: 4px; }
.loader.full .ld-status { color: var(--accent); }
.loader.failed .ld-status { display: block; color: #ff8a8a; max-width: 320px; text-align: center; }
body[data-kind="coffee"] { --accent: #e7a86b; --accent2: #ffd59a; --liquor: #5a3017; --ld-liquid: #b8763f; }

.brand .logo-mark { width: 40px; height: 40px; color: var(--accent); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent)); flex: none; }
.brand-text { display: grid; line-height: 1; text-align: left; }
.brand-text b { font: 400 23px/1 var(--serif); letter-spacing: .01em; }
.brand-text b i { color: var(--accent); }
.brand-text small { font: 700 9.5px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.help-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 400 22px var(--serif); }
.help-brand .logo-mark { width: 30px; height: 30px; color: var(--accent); }
.help-brand i { color: var(--accent); }
.panel-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 4px; color: var(--faint); font-size: 12px; letter-spacing: .04em; }
.panel-foot .logo-mark { width: 18px; height: 18px; color: var(--accent); opacity: .8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  :root { --panel-w: 100vw; }
  body { font-size: 14.5px; }
  .topbar { padding: 12px 14px; }
  .brand { font-size: 16px; }
  .intro { left: 16px; right: 16px; top: auto; bottom: calc(28px + env(safe-area-inset-bottom)); transform: none; max-width: none; }
  body:not(.overview) .intro { transform: translateY(30px); }
  .intro h1 { font-size: 40px; }
  .lead { font-size: 15px; }
  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 86vh; height: 86dvh; border-radius: 24px 24px 0 0;
    transform: translateY(105%); border-bottom: 0;
  }
  body.tea .panel { transform: translateY(calc(100% - 50vh)); transform: translateY(calc(100% - 50dvh)); }
  body.tea.sheet-open .panel { transform: translateY(0); }
  body.tea.sheet-peek .panel { transform: translateY(calc(100% - 92px)); }
  .panel { transition: transform .45s var(--ease), opacity .6s ease; background: rgba(10,18,30,.9); }
  .panel.dragging { transition: none; }

  .sheet-handle {
    display: grid; place-items: center; position: absolute; top: 0; left: 0; right: 0; height: 28px; z-index: 6;
    border: 0; border-radius: 24px 24px 0 0; background: rgb(12, 21, 34); touch-action: none; cursor: grab;
  }
  .sheet-handle span { width: 44px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.3); transition: background .2s, width .2s; }
  .sheet-handle:active span { background: rgba(255,255,255,.55); width: 56px; }
  .panel::before { top: 28px; }
  .panel-scroll { top: 28px; overscroll-behavior-y: none; }
  body.tea:not(.sheet-open) .panel-scroll { overflow-y: hidden; }
  .tabs { top: 0; background: rgb(12, 21, 34); transform: translateZ(0); box-shadow: 0 10px 14px -6px rgb(12, 21, 34); }
  #panelContent { padding: 6px 18px 40px; }
  .tabs { margin: 18px -18px 0; padding: 10px 18px; }
  .tea-name { font-size: 34px; }
  .tea-glyph { font-size: 120px; top: -14px; }
  .hero-row { grid-template-columns: 1fr 84px; }
  .cup-wrap { width: 84px; height: 84px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timer { grid-template-columns: 1fr; justify-items: center; }
  .timer > div:last-child { width: 100%; }
  .dock { bottom: auto; top: 64px; padding: 4px; border-radius: 18px; width: calc(100vw - 20px); transition: opacity .5s ease, transform .6s var(--ease), visibility 0s; }
  body.tea .dock { left: 50%; width: calc(100vw - 20px); }

  body.overview .dock { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -14px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
  .dock-filters { display: none; }
  body.filters-open .dock-filters { display: flex; padding-bottom: 2px; }
  .dock-filt { display: grid; }
  body.filters-open .dock-filt { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
  .dock-items { padding: 0 10px 3px; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 42px; padding: 0; justify-content: center; }
  .palette { padding-top: 70px; }
  .shop { grid-template-columns: 44px 1fr auto; }
  .shop img, .shop-ico { width: 44px; height: 44px; }
  .dock-item { padding: 6px 10px 6px 6px; gap: 8px; }
  .dock-item .sw { width: 28px; height: 28px; font-size: 14px; border-radius: 9px; }
  .dock-item small, .dock-item .num { display: none; }
  body.tea .dock-item:not(.on) > span:nth-child(2) { display: none; }
  body.tea .dock-item:not(.on) { padding: 6px; }
  .pin .lbl small { display: none; }
  #flyTitle { top: 30%; }
  .dock-item b { font-size: 12.5px; }
  .dock-arrow { width: 32px; height: 40px; }
}
@media (min-width: 901px) and (max-width: 1300px) {
  body.tea .dock-item small { display: none; }
  body.tea .dock-item { padding: 6px 10px 6px 6px; }
  .search-btn span { display: none; }
}
@media (max-width: 520px) {
  .dock-item b { max-width: 110px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body:not(.overview) .aurora span { animation-play-state: paused; }

.region-ring { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; transition: opacity .4s; }
.region-ring.hide { opacity: 0; }
.region-ring i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); animation: spin 40s linear infinite; }
.region-ring::before, .region-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.2px solid var(--c); animation: regionPulse 3.6s ease-out infinite; }
.region-ring::after { animation-delay: 1.8s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes regionPulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }

.perf-hud { position: fixed; left: 10px; bottom: 10px; z-index: 99; padding: 5px 9px; border-radius: 8px; background: rgba(0,0,0,.75); color: #9f9; font: 12px/1.3 ui-monospace, Menlo, Consolas, monospace; pointer-events: none; }

.kind-switch { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.kind-switch[hidden] { display: none; }
.kind-switch button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 7px 14px 7px 10px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: color .25s, background .25s; }
.kind-switch button[hidden] { display: none; }
.kind-switch button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.kind-switch button:hover { color: var(--ink); }
.kind-switch button.on { color: #120a04; background: linear-gradient(100deg, var(--accent), var(--accent2)); }
body.kind-switching #pins, body.kind-switching .dock-main, body.kind-switching .intro { opacity: 0; transition: opacity .2s; }
#pins, .dock-main { transition: opacity .35s; }
body[data-kind="coffee"] .brand svg { color: var(--accent); }

.dsel { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.04); padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); transition: all .2s; max-width: 190px; }
.dsel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsel svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dsel i { font-style: normal; font-size: 10px; opacity: .7; }
.dsel:hover { color: var(--ink); border-color: rgba(255,255,255,.2); }
.dsel.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.dsep-v { flex: none; width: 1px; align-self: stretch; margin: 4px 4px; background: var(--line); }
.dock-sep { flex: none; align-self: center; writing-mode: horizontal-tb; padding: 3px 8px; margin: 0 2px 0 8px; border-radius: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-left: 2px solid var(--line); }
.dock-empty { align-self: center; padding: 10px 14px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.dock-pop { position: fixed; z-index: 70; width: 280px; max-height: min(420px, 60vh); display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: #0d1826; border: 1px solid var(--line); box-shadow: 0 30px 80px -20px #000; animation: rv .25s var(--ease); }
.dock-pop[hidden] { display: none; }
.pop-q { margin: 2px 2px 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); outline: none; font: inherit; font-size: 13px; }
.pop-q:focus { border-color: var(--accent); }
.pop-list { overflow-y: auto; display: grid; gap: 1px; }
.pop-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; text-align: left; font-size: 13.5px; color: var(--ink); }
.pop-item[hidden] { display: none; }
.pop-item b { font-size: 11.5px; color: var(--faint); }
.pop-item:hover { background: rgba(255,255,255,.06); }
.pop-item.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pop-item.on b { color: var(--accent); }
.pop-hint { margin: 6px 8px 4px; font-size: 11.5px; color: var(--faint); }
@media (max-width: 900px) {
  .kind-switch button { padding: 6px 10px 6px 8px; font-size: 12.5px; }
  .dsel { max-width: 130px; }
}
@media (max-width: 520px) {
  .kind-switch button svg { display: none; }
}

.pin:not(.hide), .cpin:not(.hide) { opacity: var(--edge, 1); }
.pin.dim:not(.hide) { opacity: calc(.45 * var(--edge, 1)); }
.pin.lblon, .cpin.lblon { z-index: 3; }
.pin.active { z-index: 4; }
.pin .lbl, .cpin .lbl { transition: opacity .25s ease, transform .35s var(--ease); }

@media (min-width: 901px) { .dock-filt { display: none; } }
.dock-filt svg { stroke-width: 2.4; }
.gpin .ring {
  width: calc(32px * var(--s, 1)); height: calc(32px * var(--s, 1));
  background: radial-gradient(circle, rgb(8, 15, 25) 0 56%, transparent 58%), var(--g, var(--c));
  box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 22px -3px var(--c);
}
.gpin .ring::after { border-color: color-mix(in srgb, var(--c) 70%, transparent); animation: none; }
.gpin .ring b { color: #fff; font-size: 12px; }
.gpin .lbl { border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.gpin.dim:not(.hide) { opacity: calc(.5 * var(--edge, 1)); }
.pop-head { margin: 4px 8px 6px; font-weight: 700; color: var(--muted); }
.pop-tea { justify-content: flex-start; }
.pop-tea .sw { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 400 13px/1 var(--cjk); color: #06110a; background: var(--c); }
.pop-tea small { display: block; font-size: 11px; color: var(--faint); }

@media (pointer: coarse) {
  .pin { width: 34px; height: 34px; display: grid; place-items: center; }
  .pin .lbl { left: 30px; }
  .pin.left .lbl { right: 30px; }
}
