/* =========================================================
   TamaTabi Live — orbital mission control
   ========================================================= */
:root {
  --void: #03060a;
  --deep: #061019;
  --glass: rgba(6, 16, 24, .58);
  --glass-hi: rgba(10, 26, 36, .78);
  --line: rgba(125, 252, 208, .2);
  --line-hi: rgba(125, 252, 208, .55);
  --mint: #7dfcd0;
  --ice: #c9fff1;
  --text: #e4f7f2;
  --muted: #6e8d92;
  --dim: #3a5157;
  --rec: #ff4d5e;
  --c-landmark: #ffc861;
  --c-life: #ff74b4;
  --c-nature: #a6ff7a;
  --c-animal: #94a2ff;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --cjk: "Noto Sans JP";  /* per page language, see below */
  --display: "Space Grotesk", var(--cjk), "Noto Sans JP", system-ui, sans-serif;
  --jp: var(--cjk), "Noto Sans JP", "Space Grotesk", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --hud-pad: clamp(14px, 2vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { overflow: clip; background: var(--void); }
body {
  margin: 0; color: var(--text); background: var(--void);
  font: 400 14px/1.5 var(--display);
  -webkit-font-smoothing: antialiased; overflow: hidden;
  overscroll-behavior: none; touch-action: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
kbd {
  font: 500 10px/1 var(--mono); padding: 3px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted);
}
.noscript { position: fixed; inset: auto 0 0; padding: 20px; text-align: center; font-family: var(--mono); }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; cursor: grab; }
.stage.is-dragging { cursor: grabbing; }
@media (hover: hover) and (pointer: fine) { .stage { cursor: none; } }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .streets { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.streets .maplibregl-canvas { outline: none; }
.attrib {   /* required map credit, kept small and out of the way (full text in the About modal) */
  position: absolute; left: var(--hud-pad); bottom: 100px; margin: 0; z-index: 2; font: 400 8px/1 var(--mono); letter-spacing: .04em;
  color: rgba(110, 141, 146, .7); opacity: 0; transition: opacity .4s; pointer-events: auto;
}
.attrib a { color: inherit; text-decoration: none; }
.attrib a:hover { color: var(--ice); }
@media (max-width: 900px) { .attrib { left: auto; bottom: 136px; right: 6px; font-size: 7.5px; } .stage.is-peek .attrib { bottom: 4px; } }
#fx { pointer-events: none; }
.vignette, .scanlines, .grain { position: absolute; inset: 0; pointer-events: none; }
.vignette {
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(3, 6, 10, .85) 100%),
    linear-gradient(to bottom, rgba(3, 6, 10, .7), transparent 18%, transparent 78%, rgba(3, 6, 10, .9));
}
.scanlines {
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px);
}
.grain {
  opacity: .06; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- tags (camera beacons) ---------- */
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  --c: var(--mint);
  position: absolute; left: 0; top: 0; pointer-events: auto;
  width: 0; height: 0;
}
.tag[data-cat="landmark"] { --c: var(--c-landmark); }
.tag[data-cat="life"] { --c: var(--c-life); }
.tag[data-cat="nature"] { --c: var(--c-nature); }
.tag[data-cat="animal"] { --c: var(--c-animal); }
.tag.is-off { --c: var(--dim); }
.tag__pin {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; display: grid; place-items: center;
}
.tag__pin i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 2px rgba(3, 6, 10, .8), 0 0 12px 2px var(--c);
}
.tag__pin::before, .tag__pin::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--c);
  animation: ping 2.8s var(--ease) infinite; opacity: 0;
}
.tag__pin::after { animation-delay: 1.4s; }
.tag.is-off .tag__pin::before, .tag.is-off .tag__pin::after { animation: none; }
/* off air: grey and not clickable until the camera is live again (status refreshes every 10 min) */
.tag.is-off { pointer-events: none; }
.tag.is-off .tag__card { opacity: .45; border-color: rgba(110, 141, 146, .3); }
.tag.is-off .tag__card::before, .tag.is-off .tag__count { background: var(--dim); box-shadow: none; }
.tag.is-off .tag__name { color: var(--muted); }
.nearby li button.is-off, .search__list button.is-off { opacity: .4; cursor: default; filter: grayscale(1); }
.nearby li button.is-off:hover, .search__list button.is-off:hover { background: none; }
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

.tag__stem {
  position: absolute; left: 0; top: 0; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--c));
  transform-origin: 0 0; opacity: .8; transition: opacity .3s;
}
.tag__card {
  position: absolute; display: flex; align-items: stretch; gap: 0;
  background: rgba(5, 13, 20, .86); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  white-space: nowrap; transition: transform .35s var(--ease), opacity .3s, border-color .3s, background .3s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.tag__card::before {
  content: ""; width: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none;
}
.tag__body { padding: 5px 10px 6px 8px; display: grid; gap: 1px; }
.tag__meta { font: 500 9px/1 var(--mono); letter-spacing: .14em; color: var(--muted); display: flex; gap: 7px; }
.tag__meta b { color: var(--c); font-weight: 500; }
.tag__name { font: 600 13px/1.15 var(--display); letter-spacing: .02em; color: var(--text); }
.tag__name small { font: 400 10px var(--jp); color: var(--muted); margin-left: 5px; letter-spacing: .05em; }
.tag__count {
  display: grid; place-items: center; min-width: 26px; padding: 0 7px; font: 700 12px var(--mono); color: var(--void);
  background: var(--c);
}
.tag__more {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease);
}
.tag__more > div { overflow: hidden; }
.tag__spot { font: 400 11px/1.3 var(--display); color: var(--ice); padding-top: 3px; max-width: 220px; white-space: normal; }
.tag__thumb {
  margin-top: 6px; width: 200px; aspect-ratio: 16/9; background: #000 center/cover no-repeat;
  border: 1px solid var(--line); position: relative;
}
.tag__thumb::after {
  content: "▶ WATCH LIVE"; position: absolute; left: 6px; bottom: 6px; font: 600 9px var(--mono); letter-spacing: .14em;
  background: var(--rec); color: #fff; padding: 3px 6px;
}
/* placement: card positions relative to pin */
.tag[data-pos="ne"] .tag__card { left: 18px; bottom: 18px; }
.tag[data-pos="nw"] .tag__card { right: 18px; bottom: 18px; }
.tag[data-pos="se"] .tag__card { left: 18px; top: 18px; }
.tag[data-pos="sw"] .tag__card { right: 18px; top: 18px; }
.tag[data-pos="ne"] .tag__stem { transform: rotate(-45deg); }
.tag[data-pos="nw"] .tag__stem { transform: rotate(-135deg); }
.tag[data-pos="se"] .tag__stem { transform: rotate(45deg); }
.tag[data-pos="sw"] .tag__stem { transform: rotate(135deg); }
.tag[data-pos="none"] .tag__card, .tag[data-pos="none"] .tag__stem { opacity: 0; pointer-events: none; transform: scale(.9); }
.tag:hover, .tag.is-hot { z-index: 5; }
.tag:hover[data-pos="none"] .tag__card, .tag.is-hot[data-pos="none"] .tag__card { opacity: 1; pointer-events: auto; transform: none; left: 18px; bottom: 18px; }
.tag:hover .tag__card, .tag.is-hot .tag__card { background: var(--glass-hi); border-color: var(--c); }
.tag:hover .tag__more, .tag.is-hot .tag__more { grid-template-rows: 1fr; }
.tag.is-current .tag__pin i { width: 10px; height: 10px; }
.tag.is-dim { opacity: .18; pointer-events: none; }
.tag { transition: opacity .4s; }

/* traveler pet riding the arc */
.traveler {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 2px solid var(--mint); box-shadow: 0 0 0 3px rgba(3, 6, 10, .7), 0 0 24px var(--mint);
  overflow: hidden; opacity: 0; pointer-events: none; will-change: transform;
}
.traveler img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- reticle cursor ---------- */
.reticle {
  position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 40; opacity: 0;
  transition: opacity .2s;
}
.reticle.is-on { opacity: 1; }
.reticle__h, .reticle__v { position: absolute; background: var(--mint); box-shadow: 0 0 6px var(--mint); }
.reticle__h { left: -14px; top: 0; width: 28px; height: 1px; }
.reticle__v { left: 0; top: -14px; width: 1px; height: 28px; }
.reticle::before {
  content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border: 1px solid var(--mint);
  transition: transform .3s var(--ease);
}
.reticle.is-hover::before { transform: rotate(45deg) scale(1.6); }
.reticle__txt {
  position: absolute; left: 14px; top: 10px; font: 500 9px/1.4 var(--mono); letter-spacing: .1em; color: var(--mint);
  white-space: nowrap; text-shadow: 0 0 6px rgba(3, 6, 10, 1);
}
@media (hover: none), (pointer: coarse) { .reticle { display: none; } }

/* ---------- HUD shared ---------- */
.hud { position: fixed; z-index: 20; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud--top {
  top: 0; left: 0; right: 0; padding: var(--hud-pad); padding-top: max(var(--hud-pad), env(safe-area-inset-top));
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__ring, .loader__ring, .teleport__ring {
  position: relative; width: 42px; height: 42px; border-radius: 50%; padding: 3px; flex: none;
  background: conic-gradient(from 0deg, var(--mint), transparent 30%, var(--mint) 60%, transparent 80%, var(--mint));
  animation: spin 6s linear infinite;
}
.brand__ring img, .loader__ring img, .teleport__ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--void);
  animation: spin 6s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand__txt b { display: block; font: 700 17px/1 var(--display); letter-spacing: .24em; }
.brand__txt b em { font-style: normal; color: var(--mint); text-shadow: 0 0 14px rgba(125, 252, 208, .6); }
.brand__txt small { display: block; margin-top: 5px; font: 400 10px/1 var(--jp); letter-spacing: .12em; color: var(--muted); }

.filters { display: flex; gap: 6px; padding: 5px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 2px; }
.chip {
  --c: var(--mint);
  display: flex; align-items: center; gap: 7px; padding: 7px 11px; font: 500 10px/1 var(--mono); letter-spacing: .14em;
  color: var(--muted); transition: color .25s, background .25s;
}
.chip[data-cat="landmark"] { --c: var(--c-landmark); }
.chip[data-cat="life"] { --c: var(--c-life); }
.chip[data-cat="nature"] { --c: var(--c-nature); }
.chip[data-cat="animal"] { --c: var(--c-animal); }
.chip i { width: 6px; height: 6px; background: var(--c); transform: rotate(45deg); opacity: .5; transition: opacity .25s, box-shadow .25s; }
.chip span { color: var(--dim); }
.chip:hover { color: var(--text); }
.chip.is-on { color: var(--text); background: rgba(125, 252, 208, .08); }
.chip.is-on i { opacity: 1; box-shadow: 0 0 8px var(--c); }
.chip.is-on span { color: var(--c); }

.hud__right { display: flex; align-items: center; gap: 10px; }
.iconbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; min-width: 36px; padding: 0 9px; justify-content: center;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 10px var(--mono); letter-spacing: .14em; color: var(--muted); transition: border-color .25s, color .25s;
}
.iconbtn:hover { border-color: var(--line-hi); color: var(--text); }
.iconbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
/* CJK glyphs that match the page language (fonts requested per page by tools/build_site.py) */
:root:lang(zh-Hans) { --cjk: "Noto Sans SC"; }
:root:lang(zh-Hant) { --cjk: "Noto Sans TC"; }
:root:lang(ko) { --cjk: "Noto Sans KR"; }

.langsel {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 9px;
  border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--muted); transition: border-color .25s, color .25s; cursor: pointer;
}
.langsel:hover, .langsel:focus-within { border-color: var(--line-hi); color: var(--text); }
.langsel svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.langsel select {
  appearance: none; -webkit-appearance: none; border: 0; background: none; color: inherit; cursor: pointer;
  font: 500 11px var(--jp); letter-spacing: .06em; padding: 0 2px; outline: none;
}
.langsel select option { background: var(--deep); color: var(--text); }
.utc { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); line-height: 1.1; }
.utc span { font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.utc b { font-weight: 500; font-size: 15px; letter-spacing: .08em; color: var(--text); font-variant-numeric: tabular-nums; }

/* telemetry */
.hud--stats {
  left: var(--hud-pad); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.stat { position: relative; padding-left: 12px; border-left: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 12px; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.stat span { display: block; font: 500 9px var(--mono); letter-spacing: .2em; color: var(--muted); }
.stat b { display: flex; align-items: baseline; gap: 2px; font: 300 30px/1.1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; }
.stat b small { font: 400 13px var(--mono); color: var(--muted); }
.stat--sun b { color: var(--c-landmark); }
.stat--eye b { color: #ff8a96; }
.stat--night b { color: #8fb5ff; }
.meter { margin-top: 6px; width: 120px; height: 3px; background: rgba(143, 181, 255, .25); }
.meter i { display: block; height: 100%; width: 0; background: var(--c-landmark); box-shadow: 0 0 8px var(--c-landmark); transition: width 1s var(--ease); }

/* bottom */
.hud--bottom {
  left: 0; right: 0; bottom: 0; padding: 0 var(--hud-pad) max(12px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ro ctl" "tk tk"; align-items: end; gap: 12px 20px;
}
.readout { grid-area: ro; display: flex; gap: 22px; font-family: var(--mono); }
.readout span { display: grid; gap: 2px; }
.readout em { font-style: normal; font-size: 9px; letter-spacing: .2em; color: var(--muted); }
.readout b { font-weight: 400; font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums; min-width: 9ch; }
.controls { grid-area: ctl; display: flex; align-items: center; gap: 6px; }
.ctl {
  height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 10px var(--mono); letter-spacing: .16em; color: var(--muted); transition: border-color .25s, color .25s, background .25s;
}
.ctl:hover { color: var(--text); border-color: var(--line-hi); }
.ctl--sq { width: 34px; padding: 0; font-size: 16px; letter-spacing: 0; }
.ctl--accent { color: var(--void); background: var(--mint); border-color: var(--mint); font-weight: 700; }
.ctl--accent:hover { color: var(--void); background: var(--ice); }
.ctl__sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.teleport {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 5px; margin-left: 8px;
  background: linear-gradient(100deg, rgba(125, 252, 208, .2), rgba(125, 252, 208, .05)); border: 1px solid var(--line-hi);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background .3s;
}
.teleport:hover { background: linear-gradient(100deg, rgba(125, 252, 208, .35), rgba(125, 252, 208, .1)); }
/* call-to-action glow. Only opacity / transform animate (GPU-composited, no repaint per frame). */
.teleport-wrap { position: relative; display: inline-flex; margin-left: 8px; }
.teleport-wrap .teleport { margin-left: 0; }
.teleport-wrap::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 50%, rgba(125, 252, 208, .38), transparent 72%);
  opacity: .35; animation: breathe 2.8s ease-in-out infinite;
}
.teleport, .ctl--accent { position: relative; overflow: hidden; }
.teleport::after, #pJump::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55) 50%, transparent);
  transform: translateX(-120%) skewX(-18deg); animation: sweep 4.2s ease-in-out infinite 1.2s;
}
#pJump::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7) 50%, transparent); }
#pJump::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 14px rgba(255, 255, 255, .55);
  opacity: 0; animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@keyframes sweep { 0% { transform: translateX(-120%) skewX(-18deg); } 38%, 100% { transform: translateX(320%) skewX(-18deg); } }
.teleport__ring { width: 38px; height: 38px; }
.teleport__txt { display: grid; text-align: left; }
.teleport__txt b { font: 700 12px var(--mono); letter-spacing: .22em; color: var(--mint); }
.teleport__txt small { font: 400 9px var(--mono); letter-spacing: .12em; color: var(--muted); }

.ticker {
  grid-area: tk; overflow: hidden; border-top: 1px solid var(--line); padding-top: 9px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: tick 160s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tick {
  --c: var(--mint);
  display: inline-flex; align-items: center; gap: 8px; padding: 0 22px 0 0; font: 400 11px var(--mono); letter-spacing: .08em;
  color: var(--muted); white-space: nowrap; transition: color .2s;
}
.tick[data-cat="landmark"] { --c: var(--c-landmark); }
.tick[data-cat="life"] { --c: var(--c-life); }
.tick[data-cat="nature"] { --c: var(--c-nature); }
.tick[data-cat="animal"] { --c: var(--c-animal); }
.tick::before { content: ""; width: 5px; height: 5px; background: var(--c); transform: rotate(45deg); }
.tick b { color: var(--text); font-weight: 500; }
.tick em { font-style: normal; color: var(--c); }
.tick:hover { color: var(--text); }
.tick--label { font-weight: 700; color: var(--void); background: var(--mint); padding: 2px 8px; margin-right: 18px; letter-spacing: .16em; }
.tick--label::before { display: none; }
.tick--hl::before { display: none; }
.tick--hl { --k: var(--mint); }
.tick--hl[data-kind="sunset"], .tick--hl[data-kind="sunrise"], .tick--hl[data-kind="clear"] { --k: var(--c-landmark); }
.tick--hl[data-kind="night"] { --k: var(--c-animal); }
.tick--hl[data-kind="snow"] { --k: var(--ice); }
.tick--hl[data-kind="rain"] { --k: #7fb8ff; }
.tick--hl i { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid color-mix(in srgb, var(--k) 45%, transparent);
  color: var(--k); background: color-mix(in srgb, var(--k) 10%, transparent); }
.tick--hl i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tick--hl b { color: var(--text); }
.tick--hl em { color: var(--ice); }

/* ---------- transmission panel ---------- */
.panel {
  position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(520px, 100vw);
  display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(5, 14, 21, .92), rgba(3, 8, 13, .96));
  border-left: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform: translateX(105%); visibility: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line);
  font: 500 10px var(--mono); letter-spacing: .18em; color: var(--muted); padding-top: max(14px, env(safe-area-inset-top));
}
.rec { display: flex; align-items: center; gap: 7px; color: var(--rec); font-weight: 700; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.panel__clock { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.panel__close { height: 30px; min-width: 30px; }
.panel__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: var(--dim) transparent; }
.screen { position: relative; margin: 18px; aspect-ratio: 16/9; background: #000; }
.screen__frame, .screen__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen__static {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(125, 252, 208, .05) 0 2px, transparent 2px 4px),
    radial-gradient(circle at 50% 50%, rgba(125, 252, 208, .12), transparent 60%), #02070b;
  transition: opacity .6s;
}
.screen__static span { font: 500 10px var(--mono); letter-spacing: .3em; color: var(--mint); animation: blink 1s steps(2) infinite; }
.screen.is-on .screen__static { opacity: 0; }
.screen__static { flex-direction: column; gap: 14px; }
.screen__static:has(.screen__acts:not([hidden])) { display: flex; align-items: center; justify-content: center; }
.screen__static:has(.screen__acts:not([hidden])) span { animation: none; color: var(--ice); text-align: center; padding: 0 16px; }
.screen__acts { display: flex; gap: 8px; pointer-events: auto; }   /* the overlay itself lets clicks through; its buttons must not */
.screen__acts[hidden] { display: none; }
.screen.is-on .screen__acts { pointer-events: none; }
.br { position: absolute; width: 14px; height: 14px; border: 0 solid var(--mint); z-index: 2; pointer-events: none; }
.br--tl { left: -7px; top: -7px; border-width: 1px 0 0 1px; }
.br--tr { right: -7px; top: -7px; border-width: 1px 1px 0 0; }
.br--bl { left: -7px; bottom: -7px; border-width: 0 0 1px 1px; }
.br--br { right: -7px; bottom: -7px; border-width: 0 1px 1px 0; }
.screen__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 18px 14px; }
.watching { display: flex; align-items: center; gap: 10px; min-width: 0; }
.watching__eye {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 77, 94, .45);
  color: var(--rec); flex: none;
}
.watching__eye::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--rec); animation: ping 2.4s var(--ease) infinite; opacity: 0; }
.watching__eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.watching__txt { display: grid; line-height: 1.1; min-width: 0; }
.watching__txt b { font: 500 20px var(--mono); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.watching__txt small { font: 400 9px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watching.is-hidden .watching__txt b { font-size: 13px; color: var(--muted); }
.fsbtn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; flex: none;
  background: var(--mint); color: var(--void); font: 700 11px var(--mono); letter-spacing: .2em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 24px rgba(125, 252, 208, .35); transition: background .25s, transform .25s var(--ease);
}
.fsbtn:hover { background: var(--ice); transform: translateY(-1px); }
.fsbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fsbtn[disabled] { opacity: .35; pointer-events: none; }
.screen__btns { display: flex; align-items: center; gap: 8px; flex: none; }
.sharebtn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-hi); color: var(--mint); font: 500 11px var(--mono); letter-spacing: .2em;
  transition: background .25s, color .25s;
}
.sharebtn:hover, .sharebtn[aria-expanded="true"] { background: rgba(125, 252, 208, .12); color: var(--text); }
.sharebtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.share { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 18px 14px; }
.share[hidden] { display: none; }
.share__opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 36px; padding: 0 10px;
  border: 1px solid var(--line); color: var(--muted); font: 500 10px var(--mono); letter-spacing: .14em;
  transition: border-color .2s, color .2s;
}
.share__opt:hover { border-color: var(--line-hi); color: var(--text); }
.share__opt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.share__opt svg.fill { fill: currentColor; stroke: none; }
.share__opt b { font: 700 10px var(--mono); letter-spacing: .08em; }
.share__opt--copy { flex: 1 1 auto; justify-content: flex-start; }
.share__opt.is-done { border-color: var(--mint); color: var(--mint); }
.fshint {
  margin: 0 18px; max-height: 0; overflow: hidden; opacity: 0; font: 400 11px/1.5 var(--mono); letter-spacing: .04em; color: var(--ice);
  transition: max-height .4s var(--ease), opacity .3s, margin .4s var(--ease);
}
.fshint .ico-arrows { width: 16px; height: 16px; vertical-align: -3px; margin: 0 2px; fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fshint.is-on { max-height: 60px; opacity: 1; margin: 0 18px 14px; }
/* point at YouTube's own full-screen control: on the iPhone embed it sits on the right edge, just above the progress bar */
.screen__pointer {
  position: absolute; z-index: 3; right: -15px; top: 62%; width: 0; height: 0; margin-top: -8px; opacity: 0; pointer-events: none;
  border-style: solid; border-width: 8px 11px 8px 0; border-color: transparent var(--mint) transparent transparent;
  filter: drop-shadow(0 0 6px var(--mint));
}
.screen.is-hint .screen__pointer { opacity: 1; animation: hintpoint .8s ease-in-out infinite; }
@keyframes hintpoint { 50% { transform: translateX(-5px); } }
.panel__info { padding: 4px 22px 10px; }

/* ---------- local radio (plays under the muted camera) ---------- */
.radio { margin: 0 18px 16px; padding: 12px 14px 12px; border: 1px solid var(--line); background: rgba(125, 252, 208, .03); position: relative; }
.radio::before { content: ""; position: absolute; left: -1px; top: -1px; width: 22px; height: 1px; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.radio__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.radio__label { display: flex; align-items: center; gap: 9px; font: 500 10px var(--mono); letter-spacing: .24em; color: var(--muted); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq b { width: 2px; height: 12px; background: var(--mint); box-shadow: 0 0 4px var(--mint); transform: scaleY(.25); transform-origin: 50% 100%; }
.radio.is-playing .eq b { animation: eq .9s ease-in-out infinite; }
.radio.is-playing .eq b:nth-child(2) { animation-delay: -.3s; } .radio.is-playing .eq b:nth-child(3) { animation-delay: -.6s; }
.radio.is-playing .eq b:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }   /* transform, not height: no layout per frame */
.radio__toggle { display: inline-flex; align-items: center; gap: 7px; font: 600 10px var(--mono); letter-spacing: .18em; color: var(--muted); }
.radio__toggle i { position: relative; width: 28px; height: 14px; border: 1px solid var(--line-hi); transition: background .25s; }
.radio__toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; background: var(--muted); transition: transform .25s var(--ease), background .25s; }
.radio__toggle[aria-pressed="true"] { color: var(--mint); }
.radio__toggle[aria-pressed="true"] i { background: rgba(125, 252, 208, .15); }
.radio__toggle[aria-pressed="true"] i::after { transform: translateX(14px); background: var(--mint); box-shadow: 0 0 6px var(--mint); }
.radio__now { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.radio__play {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--mint); color: var(--mint);
  transition: background .2s, color .2s;
}
.radio__play:hover { background: var(--mint); color: var(--void); }
.radio__play svg { width: 18px; height: 18px; fill: currentColor; }
.radio__play .i-pause, .radio.is-playing .radio__play .i-play { display: none; }
.radio.is-playing .radio__play .i-pause { display: block; }
.radio.is-blocked .radio__play { animation: blockedpulse 1.4s ease-in-out infinite; }
@keyframes blockedpulse { 50% { box-shadow: 0 0 0 6px rgba(125, 252, 208, .18); } }
.radio__meta { display: grid; min-width: 0; line-height: 1.25; }
.radio__meta b { font: 500 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio__meta small { font: 400 10px var(--mono); letter-spacing: .08em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio.is-tuning .radio__meta small { color: var(--mint); animation: blink 1s steps(2) infinite; }
.radio__vol { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.radio__vol svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.radio__vol input { width: 76px; accent-color: var(--mint); touch-action: pan-x; }
.radio__dial { list-style: none; display: flex; gap: 6px; margin: 12px 0 0; padding: 0 0 2px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.radio__dial::-webkit-scrollbar { display: none; }
.radio__dial button {
  display: grid; gap: 2px; min-width: 112px; max-width: 160px; padding: 7px 10px 8px; text-align: left; border: 1px solid rgba(125, 252, 208, .14);
  transition: border-color .2s, background .2s;
}
.radio__dial button:hover { border-color: var(--line-hi); }
.radio__dial button.is-on { border-color: var(--mint); background: rgba(125, 252, 208, .1); }
.radio__dial button.is-dead { opacity: .35; }
.radio__dial em { font: 600 9px var(--mono); font-style: normal; letter-spacing: .16em; color: var(--mint); }
.radio__dial b { font: 500 12px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio__dial small { font: 400 9px var(--mono); color: var(--muted); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* dial scrolling for mouse users (wheel → sideways, drag, ‹ › arrows, edge fades) — from labs/wallpaper */
.dialwrap { position: relative; }
.dialwrap::before, .dialwrap::after { content: ""; position: absolute; top: 12px; bottom: 2px; width: 36px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.dialwrap::before { left: 0; background: linear-gradient(90deg, rgba(4, 11, 17, .95), rgba(4, 11, 17, 0)); }
.dialwrap::after { right: 0; background: linear-gradient(270deg, rgba(4, 11, 17, .95), rgba(4, 11, 17, 0)); }
.dialwrap.has-more-l::before, .dialwrap.has-more-r::after { opacity: 1; }
.dialarrow {
  position: absolute; top: calc(12px + 50% - 6px); transform: translateY(-50%); z-index: 2; width: 26px; height: 26px;
  display: grid; place-items: center; background: rgba(6, 16, 24, .92); border: 1px solid var(--line-hi); color: var(--mint); cursor: pointer;
}
.dialarrow[hidden] { display: none; }
.dialarrow--l { left: -4px; }
.dialarrow--r { right: -4px; }
.dialarrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.radio__dial.is-dragging { cursor: grabbing; user-select: none; }
.radio__dial.is-dragging button { pointer-events: none; }
.radio__empty { margin: 4px 0 0; font: 400 11px var(--mono); color: var(--muted); }
.radio.is-empty .radio__now, .radio.is-empty .radio__dial { display: none; }
.is-ios .radio__vol { display: none; }   /* iOS ignores volume set from a page */
.kicker { margin: 0 0 8px; font: 500 10px var(--mono); letter-spacing: .24em; color: var(--mint); }
.panel__title { margin: 0; font: 500 clamp(24px, 3vw, 32px)/1.08 var(--display); letter-spacing: -.01em; }
.panel__native { margin: 8px 0 0; font: 400 13px var(--jp); color: var(--muted); letter-spacing: .04em; }
.plaque { margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.plaque div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.plaque div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); }
.plaque div:nth-child(even) { padding-left: 14px; }
.plaque dt { font: 500 9px var(--mono); letter-spacing: .2em; color: var(--muted); }
.plaque dd { margin: 4px 0 0; font: 400 13px var(--mono); font-variant-numeric: tabular-nums; }
.plaque dd i { font-style: normal; display: inline-block; width: 7px; height: 7px; transform: rotate(45deg); margin-right: 7px; vertical-align: 1px; }
.credit {
  display: inline-flex; gap: 6px; margin-top: 16px; font: 400 11px var(--mono); letter-spacing: .06em; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.credit:hover { color: var(--text); border-color: var(--line-hi); }
.credit b { color: var(--text); font-weight: 500; }
.credit--page { margin-left: 14px; color: var(--mint); font-family: var(--jp); }
.nearby { padding: 14px 22px 22px; }
.nearby h3 { margin: 0 0 8px; font: 500 10px var(--mono); letter-spacing: .24em; color: var(--muted); }
.nearby ol { list-style: none; margin: 0; padding: 0; }
.nearby li button {
  --c: var(--mint);
  width: 100%; display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; text-align: left;
  padding: 8px 0; border-bottom: 1px solid rgba(125, 252, 208, .08); transition: background .2s;
}
.nearby li button:hover { background: rgba(125, 252, 208, .05); }
.nearby li button[data-cat="landmark"] { --c: var(--c-landmark); }
.nearby li button[data-cat="life"] { --c: var(--c-life); }
.nearby li button[data-cat="nature"] { --c: var(--c-nature); }
.nearby li button[data-cat="animal"] { --c: var(--c-animal); }
.nearby .nb__thumb { width: 74px; aspect-ratio: 16/9; background: #000 center/cover; border-left: 2px solid var(--c); }
.nearby .nb__txt { display: grid; min-width: 0; }
.nearby .nb__txt b { font: 500 13px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby .nb__txt small { font: 400 10px var(--mono); color: var(--muted); letter-spacing: .08em; }
.nearby .nb__km { font: 400 11px var(--mono); color: var(--c); }
.panel__nav { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 6px; padding: 12px 18px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.panel__nav .ctl { height: 40px; }

/* ---------- modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; padding: 12vh 16px 16px;
  background: rgba(2, 5, 8, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(640px, 100%); background: var(--glass-hi); border: 1px solid var(--line-hi);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(125, 252, 208, .05) inset;
  transform: translateY(14px) scale(.98); transition: transform .4s var(--ease);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.modal.is-open .modal__box { transform: none; }
.search__field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search__field svg { width: 18px; height: 18px; fill: none; stroke: var(--mint); stroke-width: 1.6; flex: none; }
.search__field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 400 17px var(--display);
}
.search__field input::placeholder { color: var(--dim); }
.search__list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; touch-action: pan-y; }
.search__list button {
  --c: var(--mint);
  width: 100%; display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 10px 12px;
}
.search__list button[data-cat="landmark"] { --c: var(--c-landmark); }
.search__list button[data-cat="life"] { --c: var(--c-life); }
.search__list button[data-cat="nature"] { --c: var(--c-nature); }
.search__list button[data-cat="animal"] { --c: var(--c-animal); }
.search__list button::before { content: ""; width: 7px; height: 7px; background: var(--c); transform: rotate(45deg); }
.search__list button.is-sel, .search__list button:hover { background: rgba(125, 252, 208, .08); }
.search__list b { font: 500 14px var(--display); }
.search__list small { display: block; font: 400 10px var(--mono); letter-spacing: .08em; color: var(--muted); }
.search__list .sr__time { font: 400 11px var(--mono); color: var(--c); }
.search__empty { padding: 18px; font: 400 12px var(--mono); color: var(--muted); }
.search__suggest {
  display: block; width: 100%; padding: 12px 18px; border-top: 1px solid var(--line); text-align: left;
  font: 400 11px var(--mono); letter-spacing: .04em; color: var(--muted);
}
.search__suggest b { color: var(--mint); font-weight: 500; }
.search__suggest:hover b { color: var(--text); }
.sform { display: grid; gap: 14px; margin-top: 18px; }
.sform label { display: grid; gap: 6px; }
.sform label > span { font: 500 10px var(--mono); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.sform input, .sform textarea {
  width: 100%; padding: 11px 12px; background: rgba(3, 6, 10, .6); border: 1px solid var(--line); color: var(--text);
  font: 400 14px/1.5 var(--jp); border-radius: 0; resize: vertical;
}
.sform input:focus, .sform textarea:focus { outline: none; border-color: var(--mint); }
.sform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sform__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sform__msg { margin: 0; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.sform__msg.is-ok { color: var(--mint); }
.sform__msg.is-err { color: var(--rec); }
.about { place-items: center; }
.about__box { position: relative; padding: 34px 34px 28px; }
.about__box h2 { margin: 0; font: 500 clamp(26px, 4vw, 40px)/1.05 var(--display); letter-spacing: -.02em; }
.about__box h2 em { font-style: normal; color: var(--mint); }
.about__jp { margin: 10px 0 18px; font: 400 15px var(--jp); color: var(--ice); letter-spacing: .08em; }
.about__box p { color: #b7cdcb; line-height: 1.7; }
.about__box p b { color: var(--text); font-weight: 500; }
.about__all { color: var(--mint); text-decoration: none; border-bottom: 1px solid var(--line-hi); font: inherit; padding: 0; }
.about__legal { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.about__legal p { font: 400 11px/1.7 var(--mono); color: var(--muted); margin: 0 0 6px; }
.about__close { position: absolute; right: 14px; top: 14px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--void); }
.loader__grid {
  position: absolute; inset: 0; opacity: .35;
  background:
    linear-gradient(rgba(125, 252, 208, .07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(125, 252, 208, .07) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 65%);
}
.loader__inner { position: relative; width: min(460px, calc(100vw - 32px)); }
.loader__mark { display: flex; align-items: center; gap: 16px; }
.loader__ring { width: 58px; height: 58px; }
.loader__word { margin: 0; display: flex; flex-wrap: wrap; gap: 0 14px; white-space: nowrap; font: 700 clamp(24px, 6vw, 44px)/1.05 var(--display); letter-spacing: .14em; }
.loader__word em { font-style: normal; color: var(--mint); text-shadow: 0 0 22px rgba(125, 252, 208, .6); }
.split .ch-wrap { display: inline-block; overflow: hidden; vertical-align: top; }
.split .ch { display: inline-block; }
.loader__log { list-style: none; margin: 26px 0 16px; padding: 0; min-height: 100px; font: 400 11px/1.9 var(--mono); color: var(--muted); letter-spacing: .06em; }
.loader__log li b { color: var(--mint); font-weight: 500; }
.loader__bar { height: 1px; background: rgba(125, 252, 208, .15); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.loader__meta { display: flex; justify-content: space-between; margin-top: 8px; font: 500 10px var(--mono); letter-spacing: .2em; color: var(--muted); }
.loader__meta span:last-child { color: var(--mint); font-variant-numeric: tabular-nums; }

/* initial hidden states (revealed by JS) */
.js-intro .hud--top, .js-intro .hud--bottom, .js-intro .hud--stats { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .chip span { display: none; }
  .searchbtn span, .searchbtn kbd { display: none; }
}
@media (max-width: 900px) {
  .hud--top { flex-wrap: wrap; gap: 10px; }
  .filters { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 7px 9px; }
  .utc { display: none; }
  .brand__txt small { display: none; }
  .hud--stats { top: auto; bottom: 132px; flex-direction: row; gap: 14px; }
  .stat b { font-size: 20px; }
  .stat--night, .stat--sun, .meter { display: none; }
  .fsbtn { height: 40px; padding: 0 14px 0 12px; }
  .sharebtn { height: 40px; padding: 0 11px; }
  .sharebtn span { display: none; }
  .hud--bottom { grid-template-columns: 1fr; grid-template-areas: "ctl" "tk"; }
  .readout { display: none; }
  .controls { justify-content: space-between; }
  .ctl__sep, .ctl--sq { display: none; }
  .teleport-wrap { margin-left: auto; }
  .panel {
    top: auto; left: 0; width: 100%; height: min(72vh, 680px); border-left: 0; border-top: 1px solid var(--line-hi);
    transform: translateY(105%);
  }
  .screen { margin: 14px; }
  .tag__name { font-size: 12px; }
  .tag__thumb { width: 160px; }
}
@media (max-width: 420px) {
  .brand__txt b { font-size: 14px; letter-spacing: .18em; }
  .brand__ring { width: 36px; height: 36px; }
  .teleport__txt small { display: none; }
  .ctl { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .ticker__track, .brand__ring, .brand__ring img, .loader__ring, .loader__ring img, .teleport__ring, .teleport__ring img,
  .tag__pin::before, .tag__pin::after,
  .teleport-wrap::before, .teleport::after, #pJump::before, #pJump::after { animation: none !important; }
}

/* ---------- phones & tablets: same look, far less GPU work (less heat, fewer tab reloads) ---------- */
@media (pointer: coarse), (max-width: 900px) {
  .grain { display: none; }                                     /* full-screen animated noise */
  /* no blur at all: on iPhone every backdrop-filter keeps a copy of what's behind it in WebKit's GPU
     process, which iOS kills at 600 MB (seen in the crash report) */
  .filters, .iconbtn, .ctl, .teleport, .panel, .modal, .modal__box, .tag__card { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .vignette, .scanlines { display: none; }          /* full-screen overlay layers: ~10 MB each at 3x, x2 buffers */
  .stage { bottom: auto; height: 100%; }
  .filters, .iconbtn, .ctl:not(.ctl--accent), .teleport { background-color: rgba(6, 16, 24, .9); }
  .panel { background: #040b11; }
  .modal { background: rgba(2, 5, 8, .95); }
  .tag__pin::after { display: none; }                           /* one ping ring per beacon, not two */
  .tag:not(.is-current) .tag__pin::before { animation-duration: 4s; }
  .brand__ring, .brand__ring img, .teleport__ring, .teleport__ring img { animation: none; }
}
.suggest .about__box h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
