/* Overhead: a live look at the sky that changes with the time of day.
   Every colour comes from a token. html[data-phase] (night, dawn, day, dusk) swaps the tokens,
   and the sky gradient glides between phases because its colours are registered properties. */

@property --sky1 { syntax: '<color>'; inherits: true; initial-value: #050918; }
@property --sky2 { syntax: '<color>'; inherits: true; initial-value: #0a1236; }
@property --sky3 { syntax: '<color>'; inherits: true; initial-value: #1a1448; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: rgba(77, 124, 255, 0.2); }

:root {
  /* night is the default */
  --sky1: #000106;
  --sky2: #01030b;
  --sky3: #050414;
  --glow: rgba(50, 85, 230, 0.09);
  --star-opacity: 1;
  --text: #eaf0ff;
  --muted: #94a0c6;
  --glass: rgba(2, 4, 13, 0.72);
  --glass-solid: rgba(2, 3, 10, 0.96);
  --glass-line: rgba(160, 185, 255, 0.2);
  --line: rgba(160, 185, 255, 0.16);
  --field: rgba(255, 255, 255, 0.06);
  --accent: #f2c35e;
  --accent-2: #b9821f;
  --accent-ink: #1b1204;
  --link: #6fe3ec;
  --live: #5fe0e8;
  --danger: #ff8f80;
  --shadow: 0 24px 60px rgba(0, 0, 12, 0.5);
  --bar: 68px;
  --rail-w: 404px;
  --gap: 16px;
  --radius: 18px;
  --font-display: Unbounded, "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

html[data-phase="dawn"] {
  --sky1: #07061a;
  --sky2: #231536;
  --sky3: #6e3a44;
  --glow: rgba(255, 170, 120, 0.3);
  --star-opacity: 0.45;
  --glass: rgba(20, 12, 36, 0.66);
  --glass-solid: rgba(16, 10, 30, 0.94);
  --glass-line: rgba(255, 214, 190, 0.26);
  --line: rgba(255, 214, 190, 0.18);
  --muted: #d3bcc9;
  --accent: #ffcf7a;
  --link: #ffd6b0;
}

html[data-phase="day"] {
  --sky1: #0d3068;
  --sky2: #1f5aa6;
  --sky3: #5c97cf;
  --glow: rgba(160, 205, 255, 0.28);
  --star-opacity: 0;
  --text: #eef4ff;
  --muted: #a9bbdd;
  --glass: rgba(5, 15, 38, 0.7);
  --glass-solid: rgba(4, 12, 30, 0.95);
  --glass-line: rgba(190, 215, 255, 0.24);
  --line: rgba(190, 215, 255, 0.16);
  --field: rgba(255, 255, 255, 0.06);
  --accent: #f2c35e;
  --accent-2: #b9821f;
  --accent-ink: #1b1204;
  --link: #8fd0ff;
  --live: #6fe3ec;
  --danger: #ff8f80;
  --shadow: 0 24px 60px rgba(0, 8, 30, 0.5);
  color-scheme: dark;
}

html[data-phase="dusk"] {
  --sky1: #060515;
  --sky2: #2e1230;
  --sky3: #86402a;
  --glow: rgba(255, 120, 70, 0.3);
  --star-opacity: 0.5;
  --glass: rgba(20, 8, 30, 0.66);
  --glass-solid: rgba(16, 6, 26, 0.94);
  --glass-line: rgba(255, 190, 160, 0.26);
  --line: rgba(255, 190, 160, 0.18);
  --muted: #d9b3bf;
  --accent: #ffc56a;
  --link: #ffc9a4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); }
body {
  margin: 0;
  min-height: 100%;
  background: var(--sky1);
  color: var(--text);
  font: 400 15px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--link); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- The sky behind everything ------------------------------------------- */
#nebula { position: fixed; z-index: -3; pointer-events: none; opacity: 0; transition: opacity 3s ease, transform 1.4s cubic-bezier(.2,.6,.2,1); will-change: transform; mix-blend-mode: screen; }
#nebula[data-ready="1"] { opacity: calc(var(--star-opacity) * 0.72); }
#stars { position: fixed; inset: 0; z-index: -3; opacity: var(--star-opacity); transition: opacity 2.4s ease; }
.sky-bg {
  position: fixed; inset: 0; z-index: -4; pointer-events: none;
  background:
    radial-gradient(70vmax 46vmax at 78% 6%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, var(--sky3) 130%);
  transition: --sky1 2.4s ease, --sky2 2.4s ease, --sky3 2.4s ease, --glow 2.4s ease;
}
.sky-bg::before, .sky-bg::after {
  content: ''; position: absolute; inset: -20%; pointer-events: none; opacity: 0.35;
  background:
    radial-gradient(38vmax 18vmax at 20% 30%, var(--glow), transparent 70%),
    radial-gradient(30vmax 14vmax at 80% 70%, rgba(160, 110, 255, 0.14), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate;
}
.sky-bg::after { animation-duration: 55s; animation-direction: alternate-reverse; opacity: 0.35; }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }

/* ---- Boot overlay -------------------------------------------------------- */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(60vmax 40vmax at 50% 40%, #0b1235, #010208 70%);
  color: #eaf0ff; text-align: center; padding: 24px;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-patch { position: relative; width: 132px; height: 132px; border-radius: 50%; }
.boot-patch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; animation: patch-in 1.2s cubic-bezier(.2,.8,.2,1) both, bob 5s ease-in-out 1.2s infinite; }
.boot-ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: #f2c35e; border-right-color: rgba(242, 195, 94, 0.3);
  animation: spin 1.6s linear infinite;
}
.boot-ring::after { content: ''; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: #fff3cc; box-shadow: 0 0 12px 3px #f2c35e; }
.boot-title { font: 700 22px var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 8px; }
.boot-text { font-size: 13px; color: #94a0c6; letter-spacing: 0.04em; }
.boot-bar { width: min(240px, 60vw); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 8%; border-radius: 3px; background: linear-gradient(90deg, #b9821f, #f2c35e, #fff3cc); transition: width 0.6s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes patch-in { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }

/* ---- Top bar --------------------------------------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--bar);
  display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--glass-line);
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1), background 1.2s ease;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: var(--text); }
.brand-patch { display: inline-block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255, 220, 140, 0.5), 0 0 22px rgba(242, 195, 94, 0.35); }
.brand-patch img { width: 100%; height: 100%; object-fit: cover; }
.brand-word { font: 700 15px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.topbar nav { display: flex; gap: 4px; margin-right: 12px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: color 0.2s, background 0.2s; }
.topbar nav a:hover { color: var(--text); background: var(--field); }

/* ---- Buttons ----------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--glass-line);
  background: var(--field); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none;
  cursor: pointer; transition: transform 0.15s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { background: color-mix(in srgb, var(--field) 70%, var(--text) 12%); border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  color: var(--accent-ink); border-color: transparent; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff 20%), var(--accent) 45%, var(--accent-2));
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff 30%), var(--accent) 50%, var(--accent-2)); border-color: transparent; box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg); animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-ghost { background: transparent; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-wide { width: 100%; min-height: 48px; font-size: 15px; }

.theme-btn { padding: 0 14px; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: none; }
html[data-phase="night"] .ti-night, html[data-phase="day"] .ti-day,
html[data-phase="dawn"] .ti-dawn, html[data-phase="dusk"] .ti-dusk { display: block; }
html[data-phase="night"] .ti-night { fill: currentColor; stroke: none; }

/* ---- Console: globe stage + glass rail ----------------------------------- */
.console { position: relative; height: 100svh; min-height: 640px; padding-top: var(--bar); }
.stage { position: absolute; inset: var(--bar) 0 0 0; overflow: hidden; }
#globe { position: absolute; inset: 0 0 0 calc(var(--rail-w) + var(--gap) * 2); cursor: grab; touch-action: none; }
#globe:active { cursor: grabbing; }
#globe canvas { outline: none; }
.map-layer { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sky-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sky-tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; padding: 5px 10px; border-radius: 8px;
  background: var(--glass-solid); border: 1px solid var(--glass-line); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.globe-marker { display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; transform: translate(-50%, -50%); filter: drop-shadow(0 0 10px rgba(242, 195, 94, 0.7)); animation: bob 3.5s ease-in-out infinite; }
.globe-marker-name { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(5, 9, 24, 0.82); color: #f6e7bb; border: 1px solid rgba(242, 195, 94, 0.6); white-space: nowrap; }

.stage-tabs {
  position: absolute; z-index: 6; top: 16px; left: calc(var(--rail-w) + var(--gap) * 2 + 8px);
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.stage-tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.stage-tabs button[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 45%, transparent); }

.legend {
  position: absolute; z-index: 6; top: 16px; right: 16px; margin: 0; padding: 10px 14px; list-style: none;
  display: flex; flex-direction: column; gap: 6px; border-radius: 14px; font-size: 12px; font-weight: 500;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.legend li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--tier); box-shadow: 0 0 8px var(--tier); }

.stage-foot { position: absolute; z-index: 6; left: calc(var(--rail-w) + var(--gap) * 2 + 8px); right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; pointer-events: none; }
.stage-status { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.stage-status.is-error { color: var(--danger); border-color: var(--danger); }
.hud { display: flex; flex-wrap: wrap; gap: 8px; }
.hud-item { display: flex; flex-direction: column; padding: 8px 14px; min-width: 92px; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hud-num { font: 600 18px/1.2 var(--font-display); font-variant-numeric: tabular-nums; color: var(--text); }
.hud-label { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.hud-num.tick { animation: tick 0.5s ease; }
@keyframes tick { 40% { color: var(--accent); transform: translateY(-2px); } }

/* ---- Rail ------------------------------------------------------------------- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.35); -webkit-backdrop-filter: blur(22px) saturate(1.35);
}
.rail {
  position: absolute; z-index: 8; top: calc(var(--bar) + var(--gap)); left: var(--gap); bottom: var(--gap); width: var(--rail-w);
  border-radius: 22px; padding: 22px 20px 24px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--glass-line) transparent;
}
.view { display: flex; flex-direction: column; gap: 14px; }
.view > * { animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both; }
.view > *:nth-child(2) { animation-delay: 0.05s; } .view > *:nth-child(3) { animation-delay: 0.1s; }
.view > *:nth-child(4) { animation-delay: 0.15s; } .view > *:nth-child(5) { animation-delay: 0.2s; }
.view > *:nth-child(n+6) { animation-delay: 0.25s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.rail h1 { font-size: 26px; line-height: 1.1; background: linear-gradient(100deg, var(--text), var(--accent) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rail h2 { font-size: 16px; }
.rail h3 { font-size: 14px; }
.lede { color: var(--muted); font-size: 14.5px; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.empty { color: var(--muted); font-size: 13.5px; padding: 18px 12px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

.locate { display: flex; flex-direction: column; gap: 8px; }
.locate-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
select, input, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--field); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
select option { color: #0b1b3d; background: #fff; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); }
textarea { resize: vertical; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.2s;
}
.chip[style]::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tier); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--tier, var(--accent)); background: color-mix(in srgb, var(--tier, var(--accent)) 18%, transparent); }

.sat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sat-row {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left;
  padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s, background 0.2s;
}
.sat-row:hover { transform: translateX(3px); border-color: var(--tier); background: color-mix(in srgb, var(--tier) 12%, var(--field)); }
.pip { width: 10px; height: 10px; border-radius: 50%; background: var(--tier); box-shadow: 0 0 10px var(--tier); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 2px var(--tier); opacity: 0.75; } }
.sat-main, .l-main { display: flex; flex-direction: column; min-width: 0; }
.sat-name, .l-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sat-meta, .l-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sat-time { text-align: right; font: 600 14px var(--font-mono); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.2; }
.sat-time small { font: 500 10.5px var(--font-text); color: var(--muted); }

/* ---- Mission ------------------------------------------------------------------ */
.back { align-self: flex-start; border: 0; background: none; color: var(--link); font-weight: 600; font-size: 13px; padding: 4px 0; cursor: pointer; }
.back::before { content: '\2190'; margin-right: 6px; }
.mission-head { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mission-head h2 { font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
.tier-badge {
  display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--tier); background: color-mix(in srgb, var(--tier) 22%, transparent);
}

.catch { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--field); }
.ring { position: relative; width: 92px; height: 92px; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke 0.4s; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 70%, transparent)); }
.ring-ticks { position: absolute; inset: 4px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, var(--line) 0 1deg, transparent 1deg 15deg); mask: radial-gradient(circle, transparent 61%, #000 62%, #000 70%, transparent 71%); -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%, #000 70%, transparent 71%); opacity: 0.8; }
.ring-time { font: 600 19px var(--font-mono); font-variant-numeric: tabular-nums; }
.catch-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.catch.is-low .ring-fill { stroke: var(--danger); animation: urgent 1s ease-in-out infinite; }
.catch.is-over .ring-fill { stroke: var(--muted); }
@keyframes urgent { 50% { opacity: 0.45; } }

.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: step; }
.progress li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.progress li::before { content: ''; height: 4px; border-radius: 4px; background: var(--line); transition: background 0.4s; }
.progress li.is-done::before { background: var(--accent); }
.progress li.is-active { color: var(--text); }
.progress li.is-active::before { background: linear-gradient(90deg, var(--accent), var(--live)); background-size: 200% 100%; animation: flow 1.8s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }

.telemetry { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); }
.telemetry dt { color: var(--muted); font-size: 12.5px; padding: 5px 0; }
.telemetry dd { margin: 0; text-align: right; font: 500 13px var(--font-mono); font-variant-numeric: tabular-nums; padding: 5px 0; overflow-wrap: anywhere; }
.telemetry.is-locked { border-color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.telemetry:not(.is-locked) dd { color: var(--live); }
#m-uplink, #m-hash { display: block; }

.hashbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); animation: stamp 0.6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes stamp { from { transform: scale(1.12); opacity: 0; } to { transform: none; opacity: 1; } }
.hash { font: 700 22px var(--font-mono); letter-spacing: 0.04em; color: var(--accent); }
.hash-details { margin-top: 8px; font-size: 13px; }
.hash-details summary, .more summary { cursor: pointer; color: var(--link); font-weight: 600; }
.hash-details code { display: block; margin: 8px 0; padding: 10px; border-radius: 10px; background: var(--field); font: 12px/1.5 var(--font-mono); overflow-wrap: anywhere; }

#m-form { display: flex; flex-direction: column; gap: 14px; }
.art-preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-line); box-shadow: 0 10px 40px rgba(0, 0, 14, 0.4); aspect-ratio: 1; background: #050918; }
.art-preview canvas, .share-preview canvas { width: 100%; height: auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 13px; }
.ticker-input { display: flex; align-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--field); padding-left: 12px; }
.ticker-input input { border: 0; background: transparent; box-shadow: none; padding-left: 4px; font-family: var(--font-mono); }
.ticker-input:focus-within { border-color: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); }
.more { display: flex; flex-direction: column; gap: 12px; }
.more > summary { margin-bottom: 4px; }
.more[open] { display: flex; }
.more .field, .more .btn { margin-top: 10px; }

.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
#m-done { display: flex; flex-direction: column; gap: 12px; }
#m-done h3 { font-size: 22px; background: linear-gradient(100deg, var(--accent), var(--live)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.share-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-line); background: #050918; }
.repass { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--field); }
.repass-text { font-size: 13.5px; color: var(--muted); }

.launch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.launch-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); }

/* ---- Below the console ------------------------------------------------------------ */
main > section:not(.console) { position: relative; padding: 96px max(24px, calc((100vw - 1120px) / 2)); background: var(--glass-solid); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--glass-line); }
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.how-art img { width: 100%; height: auto; animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(0, 0, 20, 0.35)); }
.how h2, .rarity h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; margin-bottom: 14px; }
.how-steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; counter-reset: how; }
.how-steps li { position: relative; padding-left: 54px; counter-increment: how; }
.how-steps li::before {
  content: counter(how); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; font: 700 14px var(--font-display); color: var(--accent-ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent-2));
}
.how-steps h3 { font-size: 16px; margin-bottom: 4px; }
.how-steps p, .rarity .lede { color: var(--muted); }
.rarity .lede { max-width: 640px; }
.tier-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tier-list li { display: flex; gap: 16px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--field); transition: transform 0.25s ease, border-color 0.25s; }
.tier-list li:hover { transform: translateY(-4px); border-color: var(--tier); }
.tier-list svg { width: 44px; height: 44px; flex: none; color: var(--tier); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tier) 60%, transparent)); }
.tier-list h3 { font-size: 15px; margin-bottom: 4px; }
.tier-list p { font-size: 13.5px; color: var(--muted); }
.t-common { --tier: #8da0cf; } .t-starlink { --tier: #6fb8ff; } .t-uncommon { --tier: #38c9d4; }
.t-rare { --tier: #6f8dff; } .t-epic { --tier: #b074ff; } .t-legendary { --tier: #e8a92a; }

.footer { position: relative; overflow: hidden; background: var(--glass-solid); border-top: 1px solid var(--glass-line); }
.footer-art { width: 100%; height: auto; opacity: 0.75; }
.footer-body { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; padding: 8px 24px 56px; color: var(--muted); font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text); font: 700 14px var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-brand .brand-patch { width: 32px; height: 32px; }

/* ---- Toasts ------------------------------------------------------------------------ */
.toasts { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--glass-solid); border: 1px solid var(--glass-line); box-shadow: var(--shadow); font-size: 13.5px; animation: toast-in 0.4s cubic-bezier(.2,.8,.2,1) both; }
.toast.error { border-color: var(--danger); }
.toast.ok { border-color: var(--live); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---- Entrance --------------------------------------------------------------------- */
body:not(.is-ready) .topbar { transform: translateY(-100%); }
body:not(.is-ready) .rail { opacity: 0; transform: translateX(-30px); }
body:not(.is-ready) .stage-tabs, body:not(.is-ready) .legend, body:not(.is-ready) .stage-foot { opacity: 0; }
.rail, .stage-tabs, .legend, .stage-foot { transition: opacity 1s ease 0.3s, transform 1s cubic-bezier(.2,.8,.2,1) 0.2s; }

/* ---- Phones and small windows ----------------------------------------------------------- */
@media (max-width: 960px) {
  :root { --rail-w: 100%; }
  .topbar { padding: 0 14px; gap: 8px; }
  .topbar nav, .brand-word { display: none; }
  .theme-btn span { display: none; }
  #wallet-btn { padding: 0 12px; }
  .console { height: auto; min-height: 0; padding-top: var(--bar); display: flex; flex-direction: column; }
  .stage { position: relative; inset: auto; height: 68svh; min-height: 420px; }
  #globe { inset: 0; }
  .stage-tabs { left: 12px; top: 12px; }
  .legend { display: none; }
  .stage-foot { left: 12px; right: 12px; bottom: 12px; }
  .hud-item { min-width: 0; padding: 6px 10px; }
  .hud-item:nth-child(n+4) { display: none; }
  .rail { position: relative; top: auto; left: auto; bottom: auto; width: auto; margin: -28px 12px 24px; z-index: 10; border-radius: 22px; overflow: visible; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  main > section:not(.console) { padding-block: 64px; }
}
@media (max-width: 420px) {
  .locate-row { grid-template-columns: 1fr; }
  
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
}


/* ---- Polish pass: depth, motion, finish ------------------------------------------ */
.sky-bg::before, .sky-bg::after { will-change: transform; }
.vignette { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(115% 85% at 50% 45%, transparent 40%, rgba(0, 0, 4, 0.82) 100%); }
.orbits { position: fixed; inset: 0; z-index: -3; pointer-events: none; color: var(--text); opacity: 0.16; }
.orbits svg { width: 100%; height: 100%; }
.orbits .o { transform-origin: 500px 500px; }
.orbits .o1 { animation: orb 160s linear infinite; }
.orbits .o2 { animation: orb 220s linear infinite reverse; }
.orbits .o3 { animation: orb 300s linear infinite; }
@keyframes orb { to { transform: rotate(360deg); } }

/* header actions */
.icon-btn { width: 42px; padding: 0; }
.icon-btn svg { width: 17px; height: 17px; }
.btn-gold {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.btn-gold:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.ca-short { display: none; }
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.45;
  background-size: 200% 100%; animation: edge 9s linear infinite;
}
@keyframes edge { to { background-position: -200% 0; } }
.brand:hover .brand-patch { transform: rotate(-8deg) scale(1.06); }
.brand-patch { transition: transform 0.4s cubic-bezier(.2,1.4,.4,1); }

/* the rail gets a slow-moving edge light */
.rail::before, .stage-tabs::before { content: none; }
.rail { background-image: linear-gradient(160deg, rgba(255,255,255,0.05), transparent 30%); }

/* satellite name ticker */
.ticker { position: relative; overflow: hidden; border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); background: var(--glass-solid); padding: 14px 0; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font: 600 12px var(--font-mono); letter-spacing: 0.28em; color: var(--muted); }
.ticker-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections: darker, hairline glow, reveal on scroll */
main > section:not(.console) { background: linear-gradient(180deg, var(--glass-solid), color-mix(in srgb, var(--glass-solid) 85%, #000)); overflow: clip; }
main > section:not(.console)::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.35;
}
main > section:not(.console)::after {
  content: ''; position: absolute; width: 60vmax; height: 60vmax; right: -25vmax; top: -30vmax; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.5; animation: drift 40s ease-in-out infinite alternate;
}
.js .reveal .how-steps li, .js .reveal .tier-list li, .js .reveal h2, .js .reveal .lede, .js .reveal .how-art {
  opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.js .reveal.in .how-steps li, .js .reveal.in .tier-list li, .js .reveal.in h2, .js .reveal.in .lede, .js .reveal.in .how-art { opacity: 1; transform: none; }
.reveal.in li:nth-child(2) { transition-delay: 0.08s; } .reveal.in li:nth-child(3) { transition-delay: 0.16s; }
.reveal.in li:nth-child(4) { transition-delay: 0.24s; } .reveal.in li:nth-child(5) { transition-delay: 0.32s; } .reveal.in li:nth-child(6) { transition-delay: 0.4s; }
.tier-list li { position: relative; overflow: hidden; }
.tier-list li::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tier) 22%, transparent), transparent 70%);
}
.tier-list li:hover::before { opacity: 1; }
.tier-list li > * { position: relative; }

.footer-links { display: flex; gap: 10px; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; padding: 7px 14px; border: 1px solid var(--glass-line); border-radius: 10px; transition: border-color .2s, background .2s; }
.footer-links a:hover { border-color: var(--accent); background: var(--field); }

@media (max-width: 960px) {
  .ca-full { display: none; } .ca-short { display: inline; }
  .topbar { gap: 6px; }
}


/* ---- Launch Overhead panel: refined ------------------------------------------------ */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.rail { padding: 26px 22px 26px; background-image: linear-gradient(165deg, rgba(255,255,255,0.06), transparent 28%), radial-gradient(120% 40% at 50% 0, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.rail-hero { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); position: relative; }
.rail-hero::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; background: var(--accent); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 12px var(--accent); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 11px var(--font-text); letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.rail h1 { font-size: 30px; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--text); }
.rail h1 em { font-style: normal; font-weight: 700; background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff) 50%, var(--accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 6s linear infinite; }
.rail .lede { font-size: 14px; line-height: 1.6; }

.ca-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--field); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.ca-label { display: inline-flex; align-items: center; gap: 8px; font: 600 11px var(--font-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.ca-label svg { width: 16px; height: 16px; }
.ca-addr { display: block; font: 600 10.4px/1.6 var(--font-mono); letter-spacing: 0; white-space: nowrap; text-align: center; color: var(--text); overflow-wrap: anywhere; user-select: all; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,0.28); border: 1px solid var(--line); }
.ca-actions { display: flex; gap: 8px; }
.ca-actions .btn { flex: 1; }

.step-label { display: inline-flex; align-items: center; gap: 10px; font: 600 12px var(--font-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.step-label b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 11px var(--font-display); color: var(--accent-ink); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent-2)); letter-spacing: 0; }
.locate { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--field); gap: 12px; }
.list-head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); animation: pulse 1.8s ease-in-out infinite; --tier: var(--live); }

.sat-row { position: relative; overflow: hidden; padding: 12px 14px 12px 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 7%, transparent), transparent 60%), var(--field); }
.sat-row::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: var(--tier); opacity: 0.7; transition: top .2s, bottom .2s, opacity .2s; }
.sat-row:hover::before { top: 0; bottom: 0; opacity: 1; }
.sat-row:hover { transform: translateX(2px); box-shadow: 0 6px 22px color-mix(in srgb, var(--tier) 18%, transparent); }
.sat-name { font-size: 14.5px; letter-spacing: -0.005em; }

/* footer address */
.footer-ca { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.footer-ca span { font: 600 11px var(--font-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.footer-ca code { font: 600 clamp(11px, 2.4vw, 15px)/1.5 var(--font-mono); color: var(--text); overflow-wrap: anywhere; cursor: copy; user-select: all; }


/* ---- How it works: timeline + hash lab -------------------------------------------- */
.how { display: block; }
.how-head { max-width: 760px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.how-head h2 { margin: 0; }
.how-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.how-art { position: sticky; top: calc(var(--bar) + 40px); }
.how-art img { animation: bob 7s ease-in-out infinite; }

.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
html:not(.js) .rv { opacity: 1; transform: none; }

.tl { --fill: 0; position: relative; list-style: none; margin: 0; padding: 0 0 0 64px; display: flex; flex-direction: column; gap: 26px; }
.tl::before, .tl::after { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; }
.tl::before { background: var(--line); }
.tl::after { background: linear-gradient(180deg, var(--accent), var(--live)); transform-origin: top; transform: scaleY(var(--fill)); box-shadow: 0 0 14px var(--accent); }
.tl-step { position: relative; }
.tl-step:nth-child(odd).rv { transform: translate(-26px, 18px); }
.tl-step.rv.in { transform: none; }
.tl-num {
  position: absolute; left: -64px; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  font: 700 16px var(--font-display); color: var(--muted); background: var(--glass-solid); border: 1px solid var(--glass-line);
  transition: color .4s, border-color .4s, box-shadow .4s, background .4s, transform .4s cubic-bezier(.2,1.4,.4,1);
}
.tl-step.on .tl-num { color: var(--accent-ink); border-color: transparent; transform: scale(1.08); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent-2)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent), 0 6px 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.tl-card { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--field); transition: border-color .4s, transform .3s, box-shadow .4s; }
.tl-step.on .tl-card { border-color: color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: 0 14px 40px rgba(0, 0, 10, 0.25); }
.tl-card:hover { transform: translateY(-3px); }
.tl-card h3 { font-size: 18px; margin-bottom: 8px; }
.tl-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.tl-card p strong, .tl-card code { color: var(--text); }
.tl-card code, .hl-facts code { font: 600 12.5px var(--font-mono); padding: 1px 6px; border-radius: 6px; background: var(--field); border: 1px solid var(--line); }
.tl-tag { display: inline-block; margin-top: 12px; padding: 4px 11px; border-radius: 999px; font: 600 11px var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* the hash lab */
.hashlab { margin-top: 88px; padding: 34px; border-radius: 26px; border: 1px solid var(--glass-line); position: relative; overflow: hidden;
  background: radial-gradient(80% 60% at 100% 0, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), var(--field); }
.hl-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-bottom: 28px; }
.hl-head h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
.hl-flow { display: grid; grid-template-columns: minmax(0, 4fr) 54px minmax(0, 7fr); gap: 0; align-items: stretch; }
.hl-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hl-step { display: inline-flex; align-items: center; gap: 10px; font: 600 12px var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hl-step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 11px var(--font-display); letter-spacing: 0; color: var(--accent-ink); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent-2)); }
.hl-fields { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hl-field { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); opacity: 0; transform: translateX(-12px); animation: field-in .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 70ms); }
.hl-field dt { color: var(--muted); font-size: 12.5px; }
.hl-field dd { margin: 0; font: 500 12.5px var(--font-mono); text-align: right; overflow-wrap: anywhere; }
.hl-field.flash { border-color: var(--accent); animation: field-in .5s forwards, flashbox 1.2s ease 0.3s; }
@keyframes field-in { to { opacity: 1; transform: none; } }
@keyframes flashbox { 50% { background: color-mix(in srgb, var(--accent) 30%, transparent); } }
.hl-arrow { position: relative; align-self: center; height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 12px 2px; animation: dash 0.8s linear infinite; opacity: 0.8; }
.hl-arrow::after { content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--accent); }
@keyframes dash { to { background-position: 12px 0; } }
.hl-line, .hl-full { display: block; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); font: 500 12.5px/1.6 var(--font-mono); overflow-wrap: anywhere; min-height: 3.6em; }
.hl-line:empty::after { content: ' '; }
.hl-line:not(:empty)::after { content: '\258B'; color: var(--accent); animation: blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.hl-full { color: var(--muted); letter-spacing: 0.04em; }
.hl-group { display: inline-block; margin-right: 6px; }
.hl-full span span { display: inline-block; }
.hl-full.in .hl-group span { animation: hexin .5s ease both; }
@keyframes hexin { from { opacity: 0; transform: translateY(5px); } }
.hl-keep { color: var(--accent); font-weight: 700; }
.hl-diff { color: var(--danger); background: color-mix(in srgb, var(--danger) 18%, transparent); border-radius: 3px; }
.hl-stamp { align-self: flex-start; padding: 12px 22px; border-radius: 14px; font: 700 clamp(22px, 3.2vw, 34px) var(--font-mono); letter-spacing: 0.06em; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); transition: box-shadow .5s, transform .5s cubic-bezier(.2,1.4,.4,1); }
.hl-stamp.done { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 12%, transparent), 0 10px 40px color-mix(in srgb, var(--accent) 35%, transparent); animation: stamp 0.6s cubic-bezier(.2,1.4,.4,1); }
.hl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.hl-facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hl-facts li { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }
.hl-facts h4 { margin: 0 0 6px; font: 600 14px var(--font-display); letter-spacing: -0.01em; }
.hl-facts p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 960px) {
  .how-body { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .how-art { position: static; max-width: 420px; }
  .tl { padding-left: 52px; }
  .tl-num { left: -52px; width: 38px; height: 38px; font-size: 14px; }
  .tl::before, .tl::after { left: 18px; }
  .hl-flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hl-arrow { width: 2px; height: 34px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation: none; }
  .hl-arrow::after { right: auto; left: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 8px solid var(--accent); border-left-color: transparent; }
  .hashlab { padding: 22px 18px; }
  .tl-step:nth-child(odd).rv { transform: translateY(20px); }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .hl-field { opacity: 1; transform: none; } }

.lede-punch { color: var(--text); font-weight: 500; padding-left: 12px; border-left: 2px solid var(--accent); }

.coin-for { font: 600 12px var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); overflow-wrap: anywhere; }

.ring-time.long { font-size: 14px; letter-spacing: -0.02em; }
.tl-num { z-index: 2; }
.how-art img { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }


/* ---- Loading screen: a satellite in orbit around the patch ------------------------- */
.boot { background: radial-gradient(60vmax 45vmax at 50% 42%, #08102c, #000104 72%); overflow: hidden; }
.boot::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #cfe0ff, transparent), radial-gradient(1.5px 1.5px at 85% 65%, #fff, transparent), radial-gradient(1px 1px at 12% 78%, #ffe2b0, transparent), radial-gradient(1px 1px at 50% 88%, #fff, transparent), radial-gradient(1px 1px at 38% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 12%, #cfe0ff, transparent);
  animation: twinkle 3.2s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: .9; } }
.boot-stage { position: relative; width: min(340px, 82vw); aspect-ratio: 1; display: grid; place-items: center; }
.boot-stage .boot-patch { position: relative; z-index: 2; width: 38%; height: auto; aspect-ratio: 1; box-shadow: 0 0 0 1px rgba(255, 220, 140, .5), 0 0 60px rgba(242, 195, 94, .35); animation: bob 5s ease-in-out infinite; }
.boot-stage .boot-patch img { animation: patch-in 1.2s cubic-bezier(.2,.8,.2,1) both; }
.boot-pulse { position: absolute; inset: 31%; border-radius: 50%; border: 1px solid rgba(242, 195, 94, .6); animation: pulse-out 2.8s ease-out infinite; }
.boot-pulse.p2 { animation-delay: 1.4s; }
@keyframes pulse-out { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.orbit-tilt { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.orbit-tilt.t1 { transform: rotate(-22deg); }
.orbit-tilt.t2 { transform: rotate(31deg); z-index: 1; }
.orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-line { fill: none; stroke: rgba(160, 190, 255, .28); stroke-width: 1; stroke-dasharray: 3 7; }
.orbit-line.faint { stroke: rgba(160, 190, 255, .16); }
.orbit-trail { fill: none; stroke: url(#bt); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 90 910; filter: drop-shadow(0 0 6px #f2c35e); }
@keyframes trail { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -910; } }
.boot-mono { display: flex; gap: 14px; font: 600 10px var(--font-mono); letter-spacing: .24em; color: #5f6b95; }
.boot-mono span { animation: blip 2.4s ease-in-out infinite; }
.boot-mono span:nth-child(2) { animation-delay: .6s; } .boot-mono span:nth-child(3) { animation-delay: 1.2s; } .boot-mono span:nth-child(4) { animation-delay: 1.8s; }
@keyframes blip { 0%, 100% { color: #5f6b95; } 50% { color: #f2c35e; text-shadow: 0 0 10px rgba(242, 195, 94, .6); } }
.boot-title { background: linear-gradient(100deg, #eaf0ff, #f2c35e, #eaf0ff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 4s linear infinite; }


/* ---- Rarity medallions: animated, shiny ------------------------------------------------ */
.t-icon {
  --c: var(--tier); position: relative; flex: none; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.08), rgba(0,0,0,.35));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 8px 26px color-mix(in srgb, var(--c) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .35s cubic-bezier(.2,1.4,.4,1), box-shadow .35s;
}
.t-icon::before { /* a light that circles the edge */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 2; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 60%, var(--c) 78%, #fff 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin-ang 4.5s linear infinite;
}
.t-icon::after { /* the shine that sweeps across */
  content: ''; position: absolute; inset: -20% -60%; z-index: 3; pointer-events: none;
  background: linear-gradient(112deg, transparent 42%, rgba(255,255,255,.65) 50%, transparent 58%);
  transform: translateX(-100%); animation: shine 4.2s ease-in-out infinite;
}
@keyframes spin-ang { to { --ang: 360deg; } }
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.tier-list .t-icon svg { position: relative; z-index: 1; width: 46px; height: 46px; color: var(--c); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--c) 75%, transparent)); }
.tier-list li:hover .t-icon { transform: scale(1.1) rotate(-3deg); box-shadow: 0 0 0 1px var(--c), 0 12px 36px color-mix(in srgb, var(--c) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
.tier-list li:hover .t-icon::before { animation-duration: 1.6s; }

/* each tier moves in its own way */
.t-common .t-icon svg { animation: bob 4s ease-in-out infinite; }
.t-common .t-icon::after { animation-delay: 0s; }
.t-starlink .t-icon svg circle { animation: twinkle-dot 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.t-starlink .t-icon svg circle:nth-child(2) { animation-delay: .2s; } .t-starlink .t-icon svg circle:nth-child(3) { animation-delay: .4s; }
.t-starlink .t-icon svg circle:nth-child(4) { animation-delay: .6s; } .t-starlink .t-icon svg circle:nth-child(5) { animation-delay: .8s; }
.t-starlink .t-icon svg circle:nth-child(6) { animation-delay: 1s; } .t-starlink .t-icon svg circle:nth-child(7) { animation-delay: 1.2s; }
.t-starlink .t-icon svg circle:nth-child(8) { animation-delay: 1.4s; } .t-starlink .t-icon svg circle:nth-child(9) { animation-delay: 1.6s; }
@keyframes twinkle-dot { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.5); } }
.t-starlink .t-icon::after { animation-delay: .7s; }
.t-uncommon .t-icon svg { animation: scan 3.6s ease-in-out infinite; transform-origin: 50% 70%; }
@keyframes scan { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.t-uncommon .t-icon::after { animation-delay: 1.2s; }
.t-rare .t-icon svg { animation: gem 3s ease-in-out infinite; }
@keyframes gem { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--c) 60%, transparent)); } 50% { transform: scale(1.12); filter: drop-shadow(0 0 14px var(--c)) brightness(1.3); } }
.t-rare .t-icon::after { animation-duration: 3.2s; animation-delay: .4s; }
.t-epic .t-icon svg { animation: spin-slow 14s linear infinite, aura 3s ease-in-out infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes aura { 50% { filter: drop-shadow(0 0 15px var(--c)) brightness(1.25); } }
.t-epic .t-icon::after { animation-duration: 3.6s; animation-delay: 1.6s; }
.t-legendary .t-icon { background: radial-gradient(circle at 30% 25%, rgba(255,214,120,.55), transparent 70%), linear-gradient(160deg, rgba(255,230,160,.18), rgba(60,35,0,.5)); box-shadow: 0 0 0 1px rgba(255,214,120,.8), 0 10px 40px rgba(232,169,42,.5), inset 0 1px 0 rgba(255,255,255,.4); animation: legend-glow 2.4s ease-in-out infinite; }
@keyframes legend-glow { 50% { box-shadow: 0 0 0 1px #ffe08a, 0 12px 54px rgba(255,200,70,.85), inset 0 1px 0 rgba(255,255,255,.5); } }
.t-legendary .t-icon svg { animation: gem 2.2s ease-in-out infinite; }
.t-legendary .t-icon::after { animation-duration: 2.4s; background: linear-gradient(112deg, transparent 38%, rgba(255,246,200,.9) 50%, transparent 62%); }
.t-legendary .t-icon::before { animation-duration: 2.4s; }
.t-legendary h3 { background: linear-gradient(100deg, #e8a92a, #fff1b8 50%, #e8a92a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 3s linear infinite; }
.t-epic h3 { color: #c99bff; } .t-rare h3 { color: #93a8ff; } .t-starlink h3 { color: #8fcbff; } .t-uncommon h3 { color: #6fe3ec; }

/* tier badges on the mission panel shine too */
.tier-badge { position: relative; overflow: hidden; box-shadow: 0 0 14px color-mix(in srgb, var(--tier) 40%, transparent); }
.tier-badge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); transform: translateX(-120%); animation: shine 3.4s ease-in-out infinite; }

/* New emblem: fill the round patch so the satellite reads clearly, with a crisp gold rim */
.brand-patch img, .boot-patch img { transform: scale(1.2); transform-origin: 50% 52%; image-rendering: auto; }
.brand-patch { width: 44px; height: 44px; background: #04101c; box-shadow: 0 0 0 1.5px rgba(242, 195, 94, 0.85), 0 0 24px rgba(242, 195, 94, 0.4); }
.footer-brand .brand-patch { width: 34px; height: 34px; }
.boot-stage .boot-patch { width: 46%; background: #04101c; box-shadow: 0 0 0 2px rgba(242, 195, 94, .8), 0 0 70px rgba(242, 195, 94, .4); }
.boot-stage .boot-patch img { animation: none; transform: scale(1.2); }

/* Larger emblem: clear presence in the top bar without crowding it */
.brand-patch { width: 52px; height: 52px; margin: 0; box-shadow: 0 0 0 2px rgba(242, 195, 94, 0.9), 0 0 0 6px rgba(242, 195, 94, 0.12), 0 0 30px rgba(242, 195, 94, 0.45); }
.brand { gap: 14px; }
.brand-patch img { transform: scale(1.14); }
.footer-brand .brand-patch { width: 44px; height: 44px; margin: 0; }
.boot-stage .boot-patch { width: 52%; }
@media (max-width: 700px) { .brand-patch { width: 48px; height: 48px; } }
.boot-stage .boot-patch { width: 44%; }

/* ---- Rare finds, launch guard, coin page, leaderboards, proof section ----------------- */

.rare-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rare-row:empty { display: none; }
.rare-badge {
  --rare: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px;
  font: 700 11px/1.2 var(--font-text); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  color: var(--rare); border: 1px solid color-mix(in srgb, var(--rare) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--rare) 22%, transparent), color-mix(in srgb, var(--rare) 6%, transparent));
  box-shadow: 0 0 14px color-mix(in srgb, var(--rare) 22%, transparent), inset 0 1px 0 rgba(255,255,255,0.12);
}
.rare-badge svg { width: 14px; height: 14px; flex: none; }
.rare-badge.is-compact { padding: 3px; }
.rare-badge.is-compact svg { width: 13px; height: 13px; }
.badge-line { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }

.rare-title { margin-top: 44px; }
.rare-list li { border-color: color-mix(in srgb, var(--rare) 35%, var(--line)); }
.rare-list .t-icon { color: var(--rare); }
.rare-list h3 { color: var(--rare); }

/* Leaderboards */
.board-tabs { margin: 4px 0 12px; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: rank; }
.board-list li {
  counter-increment: rank; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.board-list li:hover { border-color: var(--accent); transform: translateY(-1px); }
.board-list li::before { content: counter(rank); font: 700 13px var(--font-display); color: var(--muted); text-align: center; }
.board-list li:nth-child(1)::before { color: var(--accent); }
.b-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.b-title { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-num { text-align: right; font: 700 14px var(--font-text); font-variant-numeric: tabular-nums; }
.b-num small { display: block; font: 500 10.5px var(--font-text); color: var(--muted); }
.l-tag { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-left: 6px; }
.up { color: var(--live); } .down { color: var(--danger); }

/* Coin page */
.coinpage { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: calc(var(--bar) + 12px) 16px 24px; overflow-y: auto; }
.coinpage[hidden] { display: none; }
.cp-scrim { position: fixed; inset: 0; background: rgba(0, 2, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cp-card {
  position: relative; width: min(680px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 24px;
  border-radius: 22px; border: 1px solid var(--glass-line); background: var(--glass-solid); box-shadow: var(--shadow);
}
.cp-close { position: absolute; top: 14px; right: 14px; }
.cp-head { display: flex; flex-direction: column; gap: 8px; padding-right: 72px; }
.cp-head h2 { font-size: clamp(22px, 4vw, 30px); overflow-wrap: anywhere; }
.cp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-verdict { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--field); }
.cp-verdict strong { display: block; font-size: 16px; margin-bottom: 2px; }
.cp-verdict p { margin: 0; }
.cp-verdict-icon { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--font-text); background: var(--line); color: var(--muted); }
.cp-verdict[data-state="checking"] .cp-verdict-icon { background: none; border: 2px solid var(--line); border-top-color: var(--accent); animation: cp-spin 0.9s linear infinite; }
.cp-verdict[data-state="verified"] { border-color: color-mix(in srgb, var(--live) 60%, transparent); background: color-mix(in srgb, var(--live) 9%, var(--field)); }
.cp-verdict[data-state="verified"] .cp-verdict-icon { background: var(--live); color: #02121a; }
.cp-verdict[data-state="verified"] .cp-verdict-icon::before { content: '\2713'; }
.cp-verdict[data-state="partial"] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.cp-verdict[data-state="partial"] .cp-verdict-icon { background: var(--accent); color: var(--accent-ink); }
.cp-verdict[data-state="partial"] .cp-verdict-icon::before { content: '!'; }
.cp-verdict[data-state="failed"], .cp-verdict[data-state="not-overhead"], .cp-verdict[data-state="error"] { border-color: color-mix(in srgb, var(--danger) 65%, transparent); background: color-mix(in srgb, var(--danger) 9%, var(--field)); }
.cp-verdict[data-state="failed"] .cp-verdict-icon, .cp-verdict[data-state="not-overhead"] .cp-verdict-icon, .cp-verdict[data-state="error"] .cp-verdict-icon { background: var(--danger); color: #2a0600; }
.cp-verdict[data-state="failed"] .cp-verdict-icon::before, .cp-verdict[data-state="not-overhead"] .cp-verdict-icon::before, .cp-verdict[data-state="error"] .cp-verdict-icon::before { content: '\00d7'; font-size: 19px; }
@keyframes cp-spin { to { transform: rotate(360deg); } }

.cp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cp-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.cp-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font-text); background: var(--line); color: var(--muted); }
.cp-steps li[data-state="run"] .cp-dot { background: none; border: 2px solid var(--line); border-top-color: var(--accent); animation: cp-spin 0.9s linear infinite; }
.cp-steps li[data-state="pass"] .cp-dot { background: var(--live); color: #02121a; }
.cp-steps li[data-state="pass"] .cp-dot::before { content: '\2713'; }
.cp-steps li[data-state="warn"] .cp-dot { background: var(--accent); color: var(--accent-ink); }
.cp-steps li[data-state="warn"] .cp-dot::before { content: '!'; }
.cp-steps li[data-state="fail"] .cp-dot { background: var(--danger); color: #2a0600; }
.cp-steps li[data-state="fail"] .cp-dot::before { content: '\00d7'; font-size: 15px; }
.cp-steps li[data-state="skip"] .cp-dot::before { content: '-'; }
.cp-step-label { font-weight: 600; font-size: 14px; }
.cp-step-detail { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.cp-block { display: flex; flex-direction: column; gap: 10px; }
.cp-block h3 { font-size: 15px; }
.cp-chart { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #05070f; }
.cp-chart iframe { display: block; width: 100%; height: 360px; border: 0; }
code.inline { padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,0.3); font-size: 11.5px; overflow-wrap: anywhere; }

/* Proof section in How it works */
.trust { display: flex; flex-direction: column; gap: 22px; margin-top: 56px; }
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.trust-grid li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--field); min-width: 0; }
.trust-grid h4 { font: 700 17px var(--font-display); margin: 0; }
.trust-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.trust-grid small { align-self: stretch; margin-top: auto; color: var(--text); font-size: 12.5px; line-height: 1.5; padding-top: 10px; border-top: 1px solid var(--line); }
.trust-num { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font: 700 14px var(--font-display); color: var(--accent-ink); background: var(--accent); }

@media (max-width: 760px) {
  .coinpage { padding: calc(var(--bar) + 6px) 8px 16px; }
  .cp-card { padding: 18px 16px; }
  .cp-chart iframe { height: 300px; }
  .stage-tabs button { padding: 8px 10px; font-size: 12px; }
}
