:root {
  --night: #1b1a2e;
  --glass: rgba(24, 21, 30, .74);
  --glass-2: rgba(30, 26, 36, .86);
  --line: rgba(246, 241, 231, .12);
  --line-2: rgba(246, 241, 231, .22);
  --ivory: #f6f1e7;
  --ivory-2: #e9e1d2;
  --gold: #d9ad5b;
  --gold-hi: #f2d69a;
  --text: #f3eee5;
  --muted: #a89f95;
  --danger: #ff8f7f;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --ui: Geist, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;

  --edge: clamp(16px, 2.6vw, 44px);
  --r: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--text);
  font: 400 14px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#stage:active { cursor: grabbing; }

/* Film grain and a soft vignette, so the scene reads as photographed rather than rendered. */
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 1; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at 50% 42%, transparent 58%, rgba(8,6,14,.55) 100%);
}

.hud { position: fixed; z-index: 5; text-shadow: 0 1px 8px rgba(12,10,22,.5); }

/* ---------- Top left ---------- */
.hud-tl { top: var(--edge); left: var(--edge); max-width: 340px; }
.title-card {
  display: block; text-align: left; background: none; border: 0; padding: 0; cursor: pointer;
}
.title-card h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.title-card .raised { margin: 8px 0 0; color: rgba(243,238,229,.78); font-size: 14px; }
.title-card .raised b { color: var(--text); font-weight: 600; }
.title-card .sub { margin: 4px 0 0; font-size: 13px; color: rgba(243,238,229,.72); }
.title-card .sub .link { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242,214,154,.4); }
.title-card:hover .link { text-decoration-color: currentColor; }

.tools { display: inline-flex; align-items: center; gap: 2px; margin-top: 16px; padding: 4px 6px 4px 4px; border-radius: 999px; background: rgba(20,17,26,.5); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-shadow: none; }
.chain-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin: 0 8px 0 10px; }
.chain-dot.ok { background: #9fdcb0; box-shadow: 0 0 0 4px rgba(159,220,176,.14); }
.chain-dot.bad { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,143,127,.16); }
.tool {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: none; border: 1px solid transparent; cursor: pointer; color: rgba(243,238,229,.82);
}
.tool:hover { color: var(--text); background: rgba(246,241,231,.1); }
.tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chain-status { display: table; margin: 8px 0 0; padding: 5px 12px; border-radius: 999px; font-size: 12px; color: rgba(243,238,229,.85); text-decoration: none; background: rgba(20,17,26,.5); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-shadow: none; }
.chain-status:hover { color: var(--text); text-decoration: underline; }
.chain-status.ok { color: #bfe8c9; }
.chain-status.bad { color: var(--danger); }

/* ---------- Top right ---------- */
.hud-tr { top: var(--edge); right: var(--edge); display: flex; gap: 30px; }
.readout { display: flex; flex-direction: column; align-items: flex-end; }
.digits { font-family: var(--serif); font-size: 44px; line-height: .9; color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.readout small { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Bottom left ---------- */
.hud-bl { left: var(--edge); bottom: var(--edge); width: 300px; }
.live { margin: 0 0 10px; font-size: 12.5px; color: rgba(243,238,229,.78); display: flex; align-items: center; gap: 8px; }
.live b { color: var(--text); font-weight: 600; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #9fdcb0; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 2s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .3; } }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed li { display: grid; grid-template-columns: 18px 1fr auto; gap: 9px; align-items: center; font-size: 12px; color: rgba(243,238,229,.72); }
.feed li img, .feed li .flag { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; background: #fff; }
.feed li .flag { background: none; font-size: 13px; line-height: 18px; text-align: center; }
.feed li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li span b { color: var(--text); font-weight: 500; }
.feed time { font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }

/* ---------- Bottom right ---------- */
.hud-br { right: var(--edge); bottom: var(--edge); display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-size: 13px; }
.hud-br img { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold); object-fit: cover; }
.hud-br b { color: var(--text); font-weight: 500; }

/* ---------- Primary action ---------- */
.advertise {
  position: fixed; z-index: 6; left: 50%; bottom: var(--edge); transform: translateX(-50%);
  padding: 15px 34px; border-radius: 999px; cursor: pointer; border: 0; white-space: nowrap;
  background: var(--ivory); color: #17141a; font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 50px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(246,241,231,.3);
  transition: transform .15s, box-shadow .15s;
}
.advertise:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 22px 56px -12px rgba(0,0,0,.7), 0 0 0 4px rgba(246,241,231,.18); }

/* ---------- Glass sheets ---------- */
.sheet {
  position: fixed; z-index: 8;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.75);
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { margin: 0; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.icon-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); background: rgba(246,241,231,.08); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tag { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(246,241,231,.1); color: var(--text); }
.tag.gold { background: rgba(217,173,91,.18); color: var(--gold-hi); }

/* List */
.list { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 48px)); padding: 22px 10px 12px 22px; display: flex; flex-direction: column; }
.list .sheet-head { padding-right: 12px; }
.list .sheet-head h2 { font-family: var(--serif); font-size: 28px; color: var(--text); font-weight: 400; }
.sheet-lede { margin: 6px 12px 12px 0; color: var(--muted); font-size: 13px; }
.block-list { list-style: none; margin: 0; padding: 0 12px 0 0; overflow-y: auto; }
.block-list button {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; text-align: left;
  padding: 13px 12px; margin: 0; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.block-list li:last-child button { border-bottom: 0; }
.block-list button:hover { background: rgba(246,241,231,.05); }
.block-list .name { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.block-list .name small { color: var(--muted); font-weight: 400; font-size: 12px; }
.block-list .who { grid-column: 1; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.block-list .who img { width: 16px; height: 16px; border-radius: 4px; background: #fff; object-fit: contain; }
.block-list .who b { color: var(--text); font-weight: 500; }
.block-list .price { grid-row: 1 / span 2; grid-column: 2; font-family: var(--serif); font-size: 22px; font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.block-list .price small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Spot panel */
.spot { right: var(--edge); top: calc(var(--edge) + 96px); width: min(370px, calc(100vw - 32px)); max-height: calc(100dvh - var(--edge) * 2 - 110px); overflow-y: auto; padding: 20px 24px 20px; }
.spot .sheet-head .actions { display: flex; gap: 2px; }
.premium-mark { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--gold-hi); font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.premium-mark svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.spot-logo { width: 116px; height: 116px; margin: 20px auto 0; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 14px; overflow: hidden; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); }
.spot-logo img { width: 100%; height: 100%; object-fit: contain; }
.spot-logo.empty { background: none; border: 1px dashed var(--line-2); color: var(--muted); font-size: 12px; box-shadow: none; }
.spot-name { margin: 18px 0 0; text-align: center; font-family: var(--serif); font-size: 34px; line-height: 1.05; overflow-wrap: anywhere; }
.spot-meta { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.spot-tagline { margin: 10px auto 0; max-width: 30ch; text-align: center; color: #cdc5b9; font-size: 14px; }
.spot-link { display: block; margin: 10px 0 0; text-align: center; font-size: 13px; text-decoration: none; }
.spot-link:hover { text-decoration: underline; }
.ad-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 0; }
.ad-stats div { padding: 10px 8px; border-radius: 12px; background: rgba(246,241,231,.05); border: 1px solid var(--line); text-align: center; }
.ad-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; }
.ad-stats span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.btn-visit { background: rgba(246,241,231,.08); color: var(--text); border: 1px solid var(--line-2); text-decoration: none; margin-top: 12px; padding: 11px 18px; font-size: 14px; }
.infobox { margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(246,241,231,.05); border: 1px solid var(--line); font-size: 13px; color: #cdc5b9; }
.infobox p { margin: 0; }
.infobox p + p { margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.infobox b { color: var(--text); font-weight: 600; }
.record { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(217,173,91,.07); border: 1px solid rgba(217,173,91,.28); }
.record-title { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.record-title svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.record dl { margin: 0; display: grid; gap: 6px; }
.record dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.record dt { color: var(--muted); }
.record dd { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--text); }
.record-empty { margin: 0; font-size: 12.5px; color: #cdc5b9; }
.record-foot { margin: 10px 0 0; font-size: 11.5px; color: #9fdcb0; }
.record-foot.bad { color: var(--danger); }
.record-foot a { color: var(--gold-hi); }
.watching { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--gold-hi); }

.btn {
  width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 14px;
  padding: 15px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; border: 0;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--ivory); color: #17141a; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 14px 34px -14px rgba(0,0,0,.7); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #b98b3e);
  color: #2a1d08; box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 16px 40px -14px rgba(217,173,91,.75);
}
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.fine { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.fine button { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: inherit; }

.history { margin: 22px 0 0; border-top: 1px solid var(--line); padding-top: 16px; }
.history h3 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.history ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history li { display: grid; grid-template-columns: 20px 1fr auto; gap: 9px; align-items: center; font-size: 13px; }
.history li img { width: 20px; height: 20px; border-radius: 5px; background: #fff; object-fit: contain; }
.history li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history li em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Claim form */
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.back:hover { color: var(--text); }
.claim-title { margin: 8px 0 4px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
.claim-sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.claim-sub b { color: var(--text); }
.field { display: grid; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: 12.5px; font-weight: 500; color: #cdc5b9; padding: 0; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.input {
  width: 100%; font: inherit; font-size: 14px; color: var(--text); background: rgba(10,8,14,.45);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px;
}
.input::placeholder { color: #7b7269; }
.input:focus { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(242,214,154,.15); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.lookup-row { display: flex; gap: 6px; }
.lookup-row .input { flex: 1; min-width: 0; }
.small-btn { flex: none; border-radius: 12px; border: 0; background: var(--ivory); color: #17141a; padding: 0 14px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.small-btn:hover { background: #fff; }
.small-btn:disabled { opacity: .6; cursor: progress; }
.status { margin: 0; font-size: 12px; color: var(--muted); }
.status.ok { color: #9fdcb0; }
.status.bad { color: var(--danger); }
.err { color: var(--danger); font-size: 12px; }
.err:empty { display: none; }

.logo-row { display: flex; align-items: center; gap: 10px; }
.logo-tile { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 6px; overflow: hidden; flex: none; }
.logo-tile.empty { background: none; border: 1px dashed var(--line-2); color: var(--muted); font-size: 10px; text-align: center; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.upload { position: relative; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; }
.upload:hover span { background: rgba(246,241,231,.06); }
.upload input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label { position: relative; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(246,241,231,.3); cursor: pointer; }
.swatches input:checked + span { box-shadow: 0 0 0 2px #1d1a22, 0 0 0 4px var(--gold-hi); }
.swatches input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 5px; }
.swatches [data-color="ink"] { background: #0d0c0e; }
.swatches [data-color="paper"] { background: #f4efe4; }
.swatches [data-color="signal"] { background: #d8352b; }
.swatches [data-color="sodium"] { background: #f1b221; }
.swatches [data-color="cobalt"] { background: #1f3fae; }
.swatches [data-color="mint"] { background: #9fdcc0; }
.swatches [data-color="orange"] { background: #f7931a; }
.swatches [data-color="violet"] { background: #627eea; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-error { margin: 4px 0 0; color: var(--danger); font-size: 13px; font-weight: 500; }
.form-error:empty { display: none; }
.preview-note { margin: -4px 0 16px; padding: 9px 12px; border-radius: 10px; background: rgba(217,173,91,.12); color: var(--gold-hi); font-size: 12.5px; }

/* ---------- Toast & rewind caption ---------- */
.toast, .rewind-caption {
  position: fixed; z-index: 12; left: 50%; top: var(--edge); transform: translateX(-50%);
  max-width: min(540px, calc(100vw - 32px)); padding: 12px 20px; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--line-2); backdrop-filter: blur(14px);
  font-size: 13.5px; text-align: center;
}
.toast.bad { border-color: rgba(255,143,127,.5); color: #ffd9d2; }
.rewind-caption { top: auto; bottom: calc(var(--edge) + 76px); font-size: 13px; }

/* ---------- How it works ---------- */
.how {
  width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 34px 34px 26px;
  background: var(--glass-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 22px;
  backdrop-filter: blur(22px);
}
.how::backdrop { background: rgba(10,8,16,.55); backdrop-filter: blur(3px); }
.how-close { position: absolute; top: 16px; right: 16px; }
.how h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.how-kicker { margin: 8px 0 20px; color: var(--gold-hi); font-size: 14px; }
.how p { color: #cdc5b9; max-width: 60ch; }
.lineage { list-style: none; margin: 0 0 16px; padding: 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; color: var(--text); }
.rules { margin: 20px 0 0; display: grid; }
.rules div { padding: 12px 0; border-top: 1px solid var(--line); }
.rules dt { font-weight: 600; font-size: 14px; }
.rules dd { margin: 3px 0 0; color: #cdc5b9; font-size: 13.5px; }
.how-foot { font-size: 12.5px; margin: 18px 0 0; color: var(--muted) !important; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; align-content: center; gap: 40px; padding: 24px; text-align: center;
  background: linear-gradient(180deg, #0b1233 0%, #2e2d5c 45%, #9a6576 78%, #f0ae7a 100%);
}
.intro-lines p { margin: 0; font-family: var(--serif); font-size: clamp(30px, 5.4vw, 64px); line-height: 1.1; color: var(--text); }
.intro-lines h2 { margin: 34px 0 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(46px, 11vw, 140px); line-height: .85; color: var(--ivory); letter-spacing: -.005em; }
.intro-lines .intro-sub { margin-top: 16px; font-family: var(--ui); font-size: clamp(14px, 1.8vw, 18px); color: rgba(246,241,231,.75); }
.intro-enter { width: auto; min-width: 180px; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .intro-lines > * { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .intro-lines > *:nth-child(1) { animation-delay: .2s; }
  .intro-lines > *:nth-child(2) { animation-delay: .95s; }
  .intro-lines > *:nth-child(3) { animation-delay: 1.7s; }
  .intro-lines > *:nth-child(4) { animation-delay: 2.6s; }
  .intro-lines > *:nth-child(5) { animation-delay: 3.1s; }
  .intro-enter { opacity: 0; animation: rise .7s ease forwards 3.4s; }
  .intro.leaving { animation: fade .8s ease forwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { to { opacity: 0; visibility: hidden; } }

.noscript { position: fixed; inset: auto 16px 16px; z-index: 30; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hud-bl { display: none; }
  .hud-br { display: none !important; }
}
@media (max-width: 720px) {
  :root { --edge: 16px; }
  .hud-tl { max-width: 60vw; }
  .title-card h1 { font-size: 24px; }
  .title-card .raised { font-size: 12.5px; }
  .tools { margin-top: 10px; }
  .chain-status { display: none; }
  .hud-tr { gap: 16px; }
  .digits { font-size: 30px; }
  .readout small { font-size: 10px; }
  .advertise { bottom: max(16px, env(safe-area-inset-bottom)); }
  .spot, .list {
    left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%;
    max-height: 62dvh; border-radius: 22px 22px 0 0; border-bottom: 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  body.sheet-open .hud-tl, body.sheet-open .hud-tr, body.sheet-open .advertise { opacity: 0; pointer-events: none; }
  .hud-tl, .hud-tr, .advertise { transition: opacity .2s; }
  .spot-logo { width: 84px; height: 84px; margin-top: 12px; }
  .spot-name { margin-top: 10px; font-size: 28px; }
  .rewind-caption { bottom: 84px; border-radius: 14px; }
  .how { padding: 26px 22px 22px; }
  .how h2 { font-size: 32px; }
  .lineage { font-size: 24px; }
}
