/* Copyright dlgames. All Rights Reserved. */
/* SIGNAL website. Quiet and editorial: near-black, one accent (the amber of the logo's outer echo),
   thin rules instead of glowing boxes, motion only where it shows something. */

:root {
  --bg: #080a0f;
  --bg2: #0e1118;
  --panel: #11151d;
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.18);
  --text: #e7e9ee;
  --muted: #8a92a2;
  --amber: #e9a23b;
  --amber2: #f3c47a;
  --cyan: #7cc4e4;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 5vw, 80px);
  --font: "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "Malgun Gothic",
          system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-variant-numeric: tabular-nums; font-family: var(--mono); }
::selection { background: var(--amber); color: #111; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------------------------------------------------------------- loader */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 16px;
  background: var(--bg); transition: opacity .7s var(--ease), visibility .7s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark { width: 96px; height: 96px; }
.loader-mark .dot { fill: var(--text); stroke: none; transform-origin: 30px 60px; animation: pop .5s var(--ease) both; }
.loader-mark .arc { stroke: var(--text); stroke-width: 5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s var(--ease) forwards; }
.loader-mark .a2 { animation-delay: .2s; }
.loader-mark .a3 { stroke: var(--amber); animation-delay: .4s; }
.loader-word { letter-spacing: .5em; font-size: 13px; font-weight: 600; color: var(--muted); animation: fadeUp .8s .6s var(--ease) both; padding-left: .5em; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------------------------------------------------------------- nav */
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 60; background: var(--amber); }
#nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
#nav.scrolled { background: rgba(8, 10, 15, .94); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; stroke-width: 7; }
.brand-mark circle { fill: currentColor; stroke: none; }
.brand-mark .amber, svg .amber { stroke: var(--amber); }
svg .amber-fill { fill: var(--amber); stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 16px; letter-spacing: .08em; }
.brand-text small { font-size: 10px; letter-spacing: .3em; color: var(--muted); }
.links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--muted); }
.links a { position: relative; padding: 6px 0; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--text); transform: scaleX(0); transition: transform .3s var(--ease); }
.links a:hover, .links a.active { color: var(--text); }
.links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.lang svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.lang select { appearance: none; background: transparent; color: var(--text); border: 1px solid var(--line2); border-radius: 3px; padding: 6px 10px; font: inherit; cursor: pointer; }
.lang select option { background: var(--bg2); }
.burger { display: none; width: 36px; height: 36px; position: relative; }
.burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); transition: transform .3s; }
.burger span:first-child { top: 13px; } .burger span:last-child { bottom: 13px; }
body.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 3px; font-weight: 600; font-size: 15px;
  transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 17px; height: 17px; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--amber); color: #15100a; }
.btn-primary:hover { background: var(--amber2); }
.btn-ghost { border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost svg { fill: currentColor; stroke: none; }
.btn-link { padding-left: 4px; color: var(--muted); }
.btn-link:hover { color: var(--text); }

/* ---------------------------------------------------------------- hero */
/* The planet is a full-screen backdrop that WebGL places by the shape of the screen (heroLayout in
   main.js). Type follows both width and height, so short laptops, 4:3, 21:9 and phones all fit. */
#hero {
  --hpad: max(clamp(20px, 6vw, 96px), calc((100vw - 1680px) / 2));
  --pcx: 72vw; --pcy: 53vh; --pr: 38vh;
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  padding: clamp(84px, 13vh, 130px) var(--hpad) clamp(96px, 14vh, 140px); isolation: isolate; background: #05070b; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -5; }
.hero-bg { position: absolute; inset: 0; z-index: -6; background: radial-gradient(70vmax 50vmax at var(--pcx) var(--pcy), rgba(60, 90, 140, .16), transparent 70%); }
.hero-planet { position: absolute; inset: 0; z-index: -3; animation: planetIn 2s .1s var(--ease) both; }
.hero-planet canvas { width: 100%; height: 100%; }
@keyframes planetIn { from { opacity: 0; transform: translateY(2vh); } }
.hero-scrim { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 11, .8) 0%, rgba(5, 7, 11, .45) calc(var(--hpad) + 30vw), transparent calc(var(--hpad) + 50vw)),
              linear-gradient(0deg, var(--bg) 0%, transparent 16%); }
.hero-content { max-width: min(760px, 50vw); position: relative; }
.eyebrow { font-size: clamp(11px, 1.6vh, 13px); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hero-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1em .45em; margin: clamp(10px, 2vh, 18px) 0 clamp(8px, 1.4vh, 14px); line-height: 1; }
.hero-title .split { font-size: clamp(52px, min(10vw, 16.5vh), 176px); font-weight: 800; letter-spacing: .02em; white-space: nowrap; color: #f2f3f5; }
.hero-title .split .ch { display: inline-block; opacity: 0; transform: translateY(.25em); animation: chIn .9s var(--ease) forwards; }
@keyframes chIn { to { opacity: 1; transform: none; } }
.hero-title em { font-style: normal; font-size: clamp(15px, min(2.2vw, 3.4vh), 28px); letter-spacing: .5em; color: var(--muted); }
.hero-tagline { font-size: clamp(18px, min(2.4vw, 3.8vh), 32px); font-weight: 600; min-height: 1.45em; line-height: 1.45; }
.hero-tagline.shown { animation: fadeUp .9s var(--ease) both; }
.hero-sub { margin-top: clamp(8px, 1.6vh, 16px); color: var(--muted); font-size: clamp(14px, min(1.35vw, 2.3vh), 18px); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: clamp(18px, 4vh, 40px); }
.hero-meta { position: absolute; left: var(--hpad); right: var(--hpad); bottom: clamp(18px, 3.4vh, 30px); display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: .08em; color: var(--muted); pointer-events: none; animation: fadeIn 1s 1.2s both; }
.hero-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; vertical-align: 1px; background: var(--amber); }
.scroll-hint { position: absolute; bottom: clamp(16px, 3vh, 26px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .25em; color: var(--muted); text-transform: uppercase; }
.scroll-hint i { width: 1px; height: 34px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -12px; width: 1px; height: 12px; background: var(--amber); animation: drip 2s ease-in-out infinite; }
@keyframes drip { to { transform: translateY(46px); } }
@media (max-height: 760px) and (min-width: 861px) { .scroll-hint span { display: none; } }
@media (max-height: 560px) { .scroll-hint, .hero-meta { display: none; } }

/* ---------------------------------------------------------------- facts */
#stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 var(--pad); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px 26px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { font-size: clamp(32px, 4vw, 50px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-weight: 600; font-size: 16px; }
.stat > span { flex-basis: 100%; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- sections */
main { counter-reset: sec; }
.section { position: relative; padding: clamp(80px, 11vw, 140px) var(--pad) 0; }
.section-head { max-width: 1240px; margin: 0 auto 44px; display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; column-gap: 40px; align-items: start; }
.section-head > * { grid-column: 2; }
.kicker { grid-column: 1; grid-row: 1 / span 3; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  padding-top: 14px; border-top: 1px solid var(--line2); }
.kicker::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; font-family: var(--mono); color: var(--amber); margin-bottom: 4px; letter-spacing: .05em; }
h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.18; font-weight: 700; }
.lead { margin-top: 16px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); max-width: 720px; }
.lead.small { font-size: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; font-weight: 650; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* echo */
.echo-stage { max-width: 1240px; margin: 0 auto; }
.cards { display: grid; gap: 0; }
.cards.three { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.card { padding: 30px 28px 10px 0; }
.card + .card { padding-left: 28px; border-left: 1px solid var(--line); }
.card p { color: var(--muted); font-size: 15px; }
.icon { margin-bottom: 18px; color: var(--text); }
.icon svg { width: 34px; height: 34px; stroke-width: 2.2; }

/* features */
.features { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: feat; border-top: 1px solid var(--line); }
.feature { position: relative; padding: 26px 24px 34px 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(4n + 1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.feature::before { counter-increment: feat; content: counter(feat, decimal-leading-zero); display: block; font: 12px var(--mono); color: var(--muted); margin-bottom: 14px; }
.ficon { position: absolute; right: 18px; top: 22px; color: var(--muted); transition: color .3s; }
.ficon svg { width: 26px; height: 26px; }
.feature:hover .ficon { color: var(--amber); }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- globe */
.globe-wrap { position: relative; max-width: 1240px; margin: 0 auto; aspect-ratio: 16 / 9; min-height: 460px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 55%, #0c1420, #040609 75%); }
.globe-wrap:fullscreen { aspect-ratio: auto; border-radius: 0; border: 0; }
.globe-wrap.pseudo-full { position: fixed; inset: 0; z-index: 95; max-width: none; aspect-ratio: auto; border-radius: 0; }
.globe-wrap.shutter::after { content: ""; position: absolute; inset: 0; background: #fff; pointer-events: none; animation: shutter .5s ease-out forwards; }
@keyframes shutter { from { opacity: .7; } to { opacity: 0; } }
#globe { width: 100%; height: 100%; cursor: grab; touch-action: none; outline: none; }
#globe.dragging { cursor: grabbing; }
#globe.measuring { cursor: crosshair; }
#globe-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#globe-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); transition: opacity .6s; }
#globe-loading i { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--amber); animation: spin 1s linear infinite; }
#globe-loading.done { opacity: 0; pointer-events: none; }
@keyframes spin { to { rotate: 360deg; } }
#globe-fallback { position: absolute; inset: 0; padding: 20px; display: grid; gap: 12px; align-content: center; text-align: center; color: var(--muted); }
#globe-fallback img { border-radius: 4px; margin: 0 auto; max-height: 80%; }
.globe-hud { position: absolute; pointer-events: none; }
.globe-hud > * { pointer-events: auto; }
.globe-hud.tl { top: 16px; left: 16px; }
.globe-hud.tr { top: 16px; right: 16px; }
.globe-hud.bl { bottom: 16px; left: 16px; }
.globe-hud.br { bottom: 16px; right: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 62%; }
.readout, .clock, .scalebar, .measure-box { background: rgba(8, 10, 15, .82); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; font-size: 12.5px; }
.readout div, .clock { display: flex; gap: 10px; justify-content: space-between; min-width: 190px; }
.readout span, .clock span { color: var(--muted); }
.readout b { font-variant-numeric: tabular-nums; font-weight: 600; }
.clock { flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.clock b { font-size: 14px; }
.clock .mono { font-size: 22px; color: var(--amber2); }
.hint { margin-top: 8px; font-size: 12px; color: var(--muted); max-width: 220px; transition: opacity .4s; }
.scalebar { display: flex; align-items: center; gap: 10px; }
.scalebar i { display: block; height: 6px; width: 100px; border: 1.5px solid var(--text); border-top: 0; transition: width .2s; }
.chip { padding: 7px 12px; border-radius: 3px; font-size: 13px; background: rgba(8, 10, 15, .82); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--line2); color: var(--text); }
.chip.on { color: var(--text); border-color: var(--line2); }
.chip.on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--amber); vertical-align: 1px; }
.chip.accent { background: var(--amber); color: #15100a; border-color: transparent; font-weight: 650; }
.chip.accent::before { display: none; }
.zoom { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 3px; background: rgba(8, 10, 15, .82); border: 1px solid var(--line); }
.zoom button { width: 26px; height: 26px; border-radius: 2px; font-size: 17px; line-height: 1; }
.zoom button:hover { background: rgba(255, 255, 255, .08); }
.zoom input { width: 110px; accent-color: var(--amber); }
.globe-tools { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; }
.tool { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(8, 10, 15, .88); color: var(--muted); transition: color .2s, background .2s; }
.tool svg { width: 19px; height: 19px; }
.tool:hover { color: var(--text); background: rgba(20, 24, 33, .95); }
.tool.on { color: var(--amber); }
.tool[data-tip]:hover::after { content: attr(data-tip); position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 5px 10px; border-radius: 3px; font-size: 12px; color: var(--text); background: rgba(8, 10, 15, .95); border: 1px solid var(--line); pointer-events: none; }
.measure-box { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; animation: fadeUp .3s var(--ease); }
.mb-hint { color: var(--muted); }
.mb-result { display: flex; gap: 18px; }
.mb-result div { display: grid; }
.mb-result span { color: var(--muted); font-size: 11px; }
.mb-result b { font-variant-numeric: tabular-nums; font-size: 15px; }
.mb-result div:first-child b { color: var(--amber2); }
.toast { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); padding: 9px 16px; border-radius: 4px; font-size: 13px;
  background: rgba(8, 10, 15, .92); border: 1px solid var(--line2); pointer-events: none; }
.toast.show { animation: fadeUp .3s var(--ease); }
#town-marker { position: absolute; left: 0; top: 0; pointer-events: none; transform: translate(-50%, -50%); transition: opacity .3s; }
#town-marker i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); border: 2px solid #fff; }
#town-marker i + i { left: -10px; top: -10px; width: 20px; height: 20px; background: none; border: 1px solid var(--amber); animation: ping 2.4s ease-out infinite; }
#town-marker span { position: absolute; left: 14px; top: -11px; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 2px;
  background: rgba(8, 10, 15, .88); border-left: 2px solid var(--amber); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* ---------------------------------------------------------------- town timeline */
.timeline { max-width: 1240px; margin: 0 auto; }
.frames { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .8s, transform 6s var(--ease); }
.frame.on { opacity: 1; transform: scale(1); }
.frame-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 20px; font-size: clamp(14px, 1.4vw, 16px);
  background: linear-gradient(transparent, rgba(4, 6, 10, .85)); transition: opacity .4s; }
.dial { position: relative; margin: 24px auto 0; max-width: 760px; }
.dial-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #f1dfa8, #e39555 30%, #3a4c78 60%, #0f1730 85%, #d9e1f0); }
.dial-track i { display: none; }
#dial { position: absolute; inset: -10px 0 auto; width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 24px; cursor: pointer; }
#dial::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); }
#dial::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--amber); }
.dial-ticks { display: flex; justify-content: space-between; margin-top: 12px; font: 12px var(--mono); color: var(--muted); }
.dial-ticks .snow { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------------------------------------------------------------- gallery */
.masonry { max-width: 1240px; margin: 0 auto; columns: 3 300px; column-gap: 12px; }
.shot { position: relative; break-inside: avoid; margin-bottom: 12px; border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.shot img { width: 100%; transition: transform .9s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: 13.5px;
  background: linear-gradient(transparent, rgba(4, 6, 10, .85)); opacity: 0; transition: opacity .4s; }
.shot:hover figcaption { opacity: 1; }

/* ---------------------------------------------------------------- trailer */
.player-wrap { max-width: 1080px; margin: 0 auto; }
.chapter-strip { max-width: 1080px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chapter { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; padding: 10px; text-align: left;
  border-radius: 4px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, transform .4s var(--ease), background .3s; }
.chapter:hover { border-color: rgba(233, 162, 59, .45); }
.chapter.on { border-color: var(--amber); background: rgba(233, 162, 59, .08); }
.chapter .ch-img { grid-column: 1 / -1; position: relative; border-radius: 2px; overflow: hidden; aspect-ratio: 16 / 9; }
.chapter .ch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.chapter:hover .ch-img img { transform: scale(1.04); }
.chapter .ch-img i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.chapter .ch-n { color: var(--amber2); font-size: 12px; }
.chapter b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapter .ch-t { color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- SIGNAL player */
.sp { position: relative; outline: none; --accent: var(--amber); user-select: none; -webkit-user-select: none; }
.sp-ambient { position: absolute; inset: 4% 2%; width: 96%; height: 92%; z-index: 0; filter: blur(60px) saturate(1.3); opacity: .3; transform: scale(1.08);
  transition: opacity 1.2s; pointer-events: none; }
.sp.no-glow .sp-ambient, .sp:not(.started) .sp-ambient { opacity: 0; }
.sp-stage { position: relative; z-index: 1; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
  border: 1px solid var(--line); }
.sp:focus-visible .sp-stage { box-shadow: 0 0 0 2px var(--amber); }
.sp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.sp.fullscreen { background: #000; }
.sp.fullscreen .sp-stage { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; border: 0; }
.sp.fullscreen .sp-ambient { display: none; }
.sp:not(.awake).playing .sp-stage { cursor: none; }
/* Poster */
.sp-poster { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; transition: opacity .6s, visibility .6s; }
.sp-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: kenburns 24s ease-in-out infinite alternate; }
.sp-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(5, 8, 18, .15), rgba(5, 8, 18, .65)); }
.sp.started .sp-poster { opacity: 0; visibility: hidden; }
.sp-poster-info { position: absolute; left: 22px; bottom: 20px; z-index: 1; display: flex; gap: 10px; align-items: center; }
.sp-badge, .sp-dur { padding: 5px 12px; border-radius: 3px; font-size: 12px; letter-spacing: .08em; background: rgba(7, 11, 20, .7); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.sp-badge { color: var(--amber2); }
.sp-big { position: relative; z-index: 1; width: clamp(64px, 10vw, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--amber); color: #15100a; transition: transform .35s var(--ease); }
.sp-big:hover { transform: scale(1.1); }
.sp-big svg { width: 38%; height: 38%; fill: currentColor; stroke: none; margin-left: 6%; }
.sp-big i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(233, 162, 59, .7); animation: bigRing 3s var(--ease) infinite; pointer-events: none; }
.sp-big i:nth-child(2) { animation-delay: 1.3s; }
@keyframes bigRing { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
/* Spinner, flashes, chapter toast */
.sp-spinner { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s .25s; }
.sp.waiting.started .sp-spinner { opacity: 1; }
.sp-spinner i { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--amber); animation: spin .9s linear infinite; }
.sp-flash { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; z-index: 4; pointer-events: none;
  display: grid; place-items: center; background: rgba(7, 11, 20, .55); opacity: 0; font-size: 18px; font-weight: 700; }
.sp-flash svg { width: 32px; height: 32px; fill: #fff; stroke: none; }
.sp-flash svg path[d*="M4 11"], .sp-flash svg path[d*="M17 3"], .sp-flash svg path[d*="M20 13"] { fill: none; stroke: #fff; }
.sp-flash.go { animation: flash .7s var(--ease); }
@keyframes flash { 0% { opacity: .95; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.5); } }
.sp-seekflash { position: absolute; top: 0; bottom: 0; width: 34%; z-index: 4; pointer-events: none; display: grid; place-items: center; opacity: 0; }
.sp-seekflash.left { left: 0; border-radius: 0 50% 50% 0; background: radial-gradient(circle at 0 50%, rgba(255, 255, 255, .16), transparent 70%); }
.sp-seekflash.right { right: 0; border-radius: 50% 0 0 50%; background: radial-gradient(circle at 100% 50%, rgba(255, 255, 255, .16), transparent 70%); }
.sp-seekflash span { font-weight: 700; font-size: 18px; }
.sp-seekflash.go { animation: seekflash .6s ease-out; }
@keyframes seekflash { 0% { opacity: 1; } 100% { opacity: 0; } }
.sp-chapter-toast { position: absolute; left: 24px; top: 22px; z-index: 4; pointer-events: none; display: grid; gap: 2px; padding: 10px 18px 12px 16px;
  border-left: 3px solid var(--amber); background: linear-gradient(90deg, rgba(7, 11, 20, .78), transparent); opacity: 0; }
.sp-chapter-toast small { font-size: 11px; letter-spacing: .25em; color: var(--amber2); }
.sp-chapter-toast b { font-size: 20px; }
.sp-chapter-toast.show { animation: toast 3.2s var(--ease); }
@keyframes toast { 0% { opacity: 0; transform: translateX(-20px); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* End screen */
.sp-end { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center;
  background: radial-gradient(circle, rgba(7, 11, 20, .6), rgba(7, 11, 20, .92)); opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.sp.ended .sp-end { opacity: 1; visibility: visible; }
.sp-end-title { font-size: clamp(20px, 3vw, 34px); font-weight: 700; }
.sp.ended .sp-end-title { animation: fadeUp .8s .1s var(--ease) both; }
.sp-end-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sp.ended .sp-end-actions { animation: fadeUp .8s .3s var(--ease) both; }
.sp-replay, .sp-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 3px; font-weight: 600; font-size: 15px;
  border: 1.5px solid rgba(233, 238, 247, .3); transition: background .3s, transform .3s var(--ease); }
.sp-replay svg { width: 18px; height: 18px; }
.sp-replay:hover, .sp-cta:hover { transform: translateY(-2px); background: rgba(233, 238, 247, .08); }
.sp-cta.primary { background: var(--amber); color: #15100a; border-color: transparent; }
/* Panels */
.sp-chapters, .sp-menu { position: absolute; right: 16px; bottom: 78px; z-index: 7; min-width: 220px; max-height: calc(100% - 100px); overflow: auto;
  padding: 12px; border-radius: 14px; background: rgba(9, 14, 26, .92); border: 1px solid var(--line); backdrop-filter: blur(12px);
  animation: panelIn .3s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.sp-chapters h4, .sp-menu h4, .sp-keys h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 2px 6px 10px; font-weight: 600; }
.sp-chapters ol, .sp-menu ul { list-style: none; display: grid; gap: 4px; }
.sp-chapters button { display: grid; grid-template-columns: 88px auto 1fr; gap: 10px; align-items: center; width: 100%; padding: 6px; border-radius: 10px; text-align: left; }
.sp-chapters img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.sp-chapters span { color: var(--amber2); font-size: 12px; }
.sp-chapters b { font-weight: 600; font-size: 14px; }
.sp-chapters button:hover, .sp-menu button:hover { background: rgba(255, 255, 255, .07); }
.sp-chapters li.on button { background: rgba(233, 162, 59, .14); }
.sp-menu button { display: flex; justify-content: space-between; gap: 18px; width: 100%; padding: 8px 12px; border-radius: 9px; }
.sp-menu button.on { color: var(--amber2); }
.sp-menu button.on span::before { content: "● "; font-size: 9px; vertical-align: 2px; }
.sp-menu em { font-style: normal; color: var(--muted); font-size: 13px; }
.sp-keys { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(4, 6, 12, .6); animation: panelIn .3s var(--ease); }
.sp-keys-card { position: relative; width: min(460px, 92%); max-height: 90%; overflow: auto; padding: 18px 20px; border-radius: 16px; background: rgba(9, 14, 26, .95); border: 1px solid var(--line); }
.sp-keys dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; align-items: center; font-size: 14px; }
.sp-keys dd { color: var(--muted); }
.sp-keys kbd { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 6px; text-align: center; font: 600 12px ui-monospace, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line); border-bottom-width: 2px; }
.sp-keys-close { position: absolute; right: 10px; top: 6px; font-size: 26px; color: var(--muted); }
/* Control bar */
.sp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 40px 16px 10px;
  background: linear-gradient(transparent, rgba(4, 6, 12, .85)); transition: opacity .4s, transform .4s var(--ease); }
.sp:not(.started) .sp-bar { opacity: 0; pointer-events: none; transform: translateY(14px); }
.sp.started.playing:not(.awake) .sp-bar { opacity: 0; transform: translateY(14px); pointer-events: none; }
.sp-row { display: flex; align-items: center; gap: 2px; }
.sp-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #fff; transition: background .2s, color .2s; }
.sp-btn:hover { background: rgba(255, 255, 255, .1); }
.sp-btn.on { color: var(--amber2); }
.sp-btn svg { width: 22px; height: 22px; stroke-width: 2; }
.sp-btn svg .fill { fill: currentColor; stroke: none; }
.sp-play svg { fill: currentColor; stroke: none; }
.sp-btn[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 10px; border-radius: 8px; font-size: 12px; background: rgba(9, 14, 26, .95); border: 1px solid var(--line); pointer-events: none; animation: fadeUp .25s; }
.sp-row .sp-btn:last-child[data-tip]:hover::after { left: auto; right: 0; transform: none; }
.sp-btn.low svg .w2 { opacity: 0; }
.sp-speed-label { font-size: 13px; font-weight: 700; }
.sp-vol { display: flex; align-items: center; }
.sp-volume { width: 0; opacity: 0; transition: width .35s var(--ease), opacity .3s, margin .35s; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #fff var(--v, 80%), rgba(255, 255, 255, .25) var(--v, 80%)); cursor: pointer; }
.sp-vol:hover .sp-volume, .sp-volume:focus-visible { width: 84px; opacity: 1; margin: 0 10px 0 4px; }
.sp-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.sp-volume::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.sp-time { font-size: 13px; margin-left: 8px; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.sp-time b { color: #fff; font-weight: 600; }
.sp-now-ch { margin-left: 14px; font-size: 13px; color: var(--amber2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sp-now-ch:not(:empty)::before { content: "·"; margin-right: 10px; color: var(--muted); }
.sp-gap { flex: 1; }
/* Timeline */
.sp-track { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; margin-bottom: 4px; touch-action: none; outline: none; }
.sp-segments { display: flex; gap: 4px; width: 100%; height: 4px; transition: height .2s; }
.sp-track:hover .sp-segments, .sp.scrubbing .sp-segments, .sp-track:focus-visible .sp-segments { height: 7px; }
.sp-seg { position: relative; height: 100%; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .2); transition: transform .2s; }
.sp-seg i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); }
.sp-seg .buf { background: rgba(255, 255, 255, .3); }
.sp-seg .done { background: var(--amber); }
.sp-track:hover .sp-seg.current { transform: scaleY(1.25); }
.sp-knob { position: absolute; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(233, 162, 59, .4); transform: scale(0); transition: transform .2s; pointer-events: none; }
.sp-track:hover .sp-knob, .sp.scrubbing .sp-knob, .sp-track:focus-visible .sp-knob { transform: scale(1); }
.sp-track::before { content: ""; position: absolute; left: var(--hover, 0); top: 50%; width: 2px; height: 14px; margin: -7px 0 0 -1px; background: #fff; opacity: 0; pointer-events: none; }
.sp.hovering .sp-track::before { opacity: .6; }
.sp-hover { position: absolute; bottom: 26px; width: 196px; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; pointer-events: none;
  opacity: 0; transition: opacity .2s; }
.sp.hovering .sp-hover { opacity: 1; }
.sp-hover canvas { width: 192px; height: 108px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .85); background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.sp-hover:not(.has-frame) canvas { display: none; }
.sp-hover-ch { font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.sp-hover b { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(9, 14, 26, .9); }
@media (max-width: 640px) {
  .sp-back, .sp-fwd, .sp-loop, .sp-glow, .sp-keysb, .sp-now-ch, .sp-pipb { display: none; }
  .sp-bar { padding: 30px 8px 4px; }
  .sp-stage { border-radius: 14px; }
  .sp-hover { width: 132px; } .sp-hover canvas { width: 128px; height: 72px; }
  .chapter-strip { grid-template-columns: repeat(2, 1fr); }
}
/* Video modal */
body.modal-open { overflow: hidden; }
.modal-player { width: min(92vw, calc((100vh - 120px) * 16 / 9), 1400px); animation: modalIn .6s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: scale(.92) translateY(20px); } }


/* ---------------------------------------------------------------- roadmap */
.road { list-style: none; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.road li { position: relative; padding: 26px 24px 0 0; }
.road li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.road li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--line2); }
.road li + li::before { left: 24px; }
.road li.now::before { background: var(--amber); }
.road li.now { box-shadow: inset 0 2px 0 var(--amber); }
.road p { color: var(--muted); font-size: 14.5px; }
.badge { display: inline-block; margin-bottom: 10px; font: 600 11px var(--mono); letter-spacing: .1em; padding: 2px 8px; border-radius: 2px; color: #15100a; background: var(--amber); }

/* ---------------------------------------------------------------- download */
.dl { max-width: 1240px; margin: 0 auto; }
.dl-note { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.dl-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px; display: grid; gap: 18px; align-content: start;
  transition: border-color .25s; }
.dl-card.req-shown { border-color: var(--line2); }
.dl-card header { display: flex; align-items: center; gap: 14px; }
.dl-card header > svg { width: 30px; height: 30px; flex-shrink: 0; fill: currentColor; stroke: none; }
.dl-card[data-os="android"] header > svg, .dl-card[data-os="ios"] header > svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.dl-card h3 { margin: 0; font-size: 19px; }
.dl-detail { color: var(--muted); font-size: 13px; }
.dl-tag { margin-left: auto; align-self: flex-start; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px;
  color: var(--amber); border: 1px solid rgba(233, 162, 59, .5); white-space: nowrap; }
.dl-card.primary { padding: 30px; border-color: var(--line2); }
.dl-card.primary header > svg { width: 44px; height: 44px; }
.dl-card.primary h3 { font-size: 26px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-width: 210px; padding: 11px 18px 11px 14px;
  border-radius: 3px; border: 1px solid var(--line2); transition: border-color .2s, background .2s; }
.dl-btn svg { grid-row: 1 / span 2; width: 22px; height: 22px; }
.dl-btn.store svg { fill: currentColor; stroke: none; }
.dl-btn.store.line-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.dl-btn .l { font-weight: 650; font-size: 15px; line-height: 1.3; }
.dl-btn .s { font-size: 12px; color: var(--muted); line-height: 1.3; }
.dl-btn:hover { border-color: var(--text); }
.dl-btn.main { background: var(--amber); border-color: var(--amber); color: #15100a; }
.dl-btn.main .s { color: rgba(21, 16, 10, .7); }
.dl-btn.main:hover { background: var(--amber2); }
.dl-btn.soon { cursor: default; border-style: dashed; color: var(--muted); }
.dl-btn.soon:hover { border-color: var(--line2); }
.dl-btn.main.soon { background: transparent; border-color: rgba(233, 162, 59, .55); color: var(--text); }
.dl-btn.main.soon .s { color: var(--amber2); }
.dl-files { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.dl-files:empty { display: none; }
.dl-file { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.dl-file .sha { font-size: 12px; color: var(--muted); border-bottom: 1px dashed var(--line2); }
.dl-file .sha:hover { color: var(--text); }
.dl-more { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 10px 0; font-size: 14px; color: var(--muted); transition: color .2s; }
.dl-more:hover { color: var(--text); }
.dl-more svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.dl-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.dl-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.dl-fold > .dl-grid { overflow: hidden; min-height: 0; }
.dl-fold.open { grid-template-rows: 1fr; }
.dl-fold.open > .dl-grid { padding-top: 8px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.dl-grid .dl-btn { min-width: 0; flex: 1 1 190px; }
.dl-fold .dl-card { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.dl-fold.open .dl-card { opacity: 1; transform: none; }
.dl-fold.open .dl-card:nth-child(2) { transition-delay: .05s; } .dl-fold.open .dl-card:nth-child(3) { transition-delay: .1s; } .dl-fold.open .dl-card:nth-child(4) { transition-delay: .15s; }
.dl-follow { margin-top: 18px; }
.dl-version { font-family: var(--mono); }
.req { max-width: 1240px; margin: 40px auto 0; }
.req-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line2); }
.req-head h3 { margin: 0; }
.req-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.req-tabs button { padding: 6px 12px; font-size: 13px; color: var(--muted); border-radius: 2px; transition: color .2s, background .2s; }
.req-tabs button:hover { color: var(--text); }
.req-tabs button[aria-selected="true"] { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 -2px 0 var(--amber); }
.req table { width: 100%; border-collapse: collapse; font-size: 14px; }
.req th, .req td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .06em; }
.req td:first-child { color: var(--muted); width: 18%; }
.req tbody { animation: fadeIn .35s; }

/* ---------------------------------------------------------------- faq */
.faq { max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font-weight: 600; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--amber2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 48px 22px 0; color: var(--muted); max-width: 820px; animation: fadeUp .4s var(--ease); }

/* ---------------------------------------------------------------- footer */
footer { margin-top: clamp(80px, 11vw, 140px); padding: 34px var(--pad) 44px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13.5px; }
.foot-brand { display: flex; align-items: center; gap: 18px; }
.foot-brand img { height: 36px; width: auto; opacity: .85; }
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: var(--text); }

/* back to top: the ring is the reading progress */
#to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(8, 10, 15, .9); color: var(--text); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
#to-top.show { opacity: 1; transform: none; pointer-events: auto; }
#to-top .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
#to-top .ring circle { stroke: var(--line2); stroke-width: 2; }
#to-top .ring .bar { stroke: var(--amber); }
#to-top .arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }
#to-top:hover .arrow { transform: translateY(-2px); }

/* ---------------------------------------------------------------- lightbox & video modal */
#lightbox, #video-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(3, 4, 7, .94); animation: fadeIn .25s; }
#lightbox figure { max-width: 92vw; max-height: 86vh; text-align: center; }
#lightbox img { max-height: 80vh; border-radius: 3px; margin: 0 auto; animation: fadeIn .3s; }
#lightbox figcaption { margin-top: 12px; color: var(--muted); }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--muted); transition: color .2s, background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lb-next { right: 18px; top: 50%; margin-top: -24px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:not(:nth-child(4n + 1)) { padding-left: 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .road { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .road li + li { padding-left: 0; border-left: 0; } .road li + li::before { left: 0; }
  .road li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); } .road li:nth-child(2n)::before { left: 24px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > * { grid-column: 1; }
  .kicker { grid-row: auto; margin-bottom: 14px; border-top: 0; padding-top: 0; display: flex; gap: 10px; }
  .kicker::before { margin: 0; }
}
@media (max-width: 860px) {
  .links { position: fixed; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px var(--pad) 20px; margin: 0;
    background: rgba(8, 10, 15, .98); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .4s var(--ease); }
  .links a { padding: 14px 0; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
  .links a::after { display: none; }
  body.menu-open .links { transform: none; }
  .burger { display: block; }
  #nav .btn-small { display: none; }
  #stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cards.three { grid-template-columns: 1fr; }
  .card + .card { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-content { max-width: none; }
  .hero-planet { opacity: .5; }
  .hero-scrim { background: linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
  .globe-wrap { aspect-ratio: 3 / 4; }
  .globe-hud.br { max-width: calc(100% - 32px); }
  .readout div { min-width: 150px; }
  .globe-tools { top: auto; bottom: 120px; transform: none; }
  .measure-box { left: 16px; right: 16px; transform: none; flex-wrap: wrap; top: auto; bottom: 120px; margin-right: 56px; }
  .hero-meta span:last-child { display: none; }
}
@media (max-width: 560px) {
  .scroll-hint { display: none; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(2n) { padding-left: 0; border-left: 0; }
  .road { grid-template-columns: 1fr; }
  .road li:nth-child(2n) { padding-left: 0; border-left: 0; } .road li:nth-child(2n)::before { left: 0; }
  .lang select { max-width: 110px; }
  .globe-hud.tr { display: none; }
  .dl-card.primary { padding: 20px; }
  .dl-btn { min-width: 0; flex: 1 1 100%; }
  .dl-grid { grid-template-columns: 1fr; }
  .req td:first-child { width: 26%; }
}
html.still *, html.still *::before, html.still *::after { transition: none !important; animation-delay: 0s !important; animation-duration: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
