/* SUNBREAKER UI — tokens, base, shared components.
   Neon on void: team colour carries meaning (EMBER orange, TIDE cyan), gold = calls / arcs / primary actions,
   magenta is reserved for high-damage telegraphs (only the Nova module glyph uses it here). */

:root {
  --void: #05060F;
  --void-2: #0A0C1C;
  --ink: #EEF1FF;
  --ink-warm: #FFF4E0;
  --ink-2: #AEB6D9;
  --ink-3: #8089B0;            /* hints / labels: 5.6:1 on panel glass (was #6F789E, 4.4:1 — under WCAG AA) */
  --line: rgba(150, 168, 255, 0.16);
  --line-2: rgba(170, 186, 255, 0.32);
  --line-3: rgba(200, 212, 255, 0.55);
  --glass: rgba(13, 16, 36, 0.62);
  --glass-hi: rgba(26, 31, 66, 0.72);
  --glass-solid: rgba(9, 11, 26, 0.9);

  --ember: #FF8A2A;
  --ember-l: #FFD27A;
  --tide: #2AD4FF;
  --tide-l: #A8F4FF;
  --gold: #FFD34D;
  --gold-2: #FFB23D;
  --magenta: #FF2BD6;
  --danger: #FF3355;
  --ok: #7CF2B6;
  --violet: #B8A6FF;
  --violet-2: #6B4DFF;
  --well: #9B8CFF;
  --team: var(--violet);
  --team-l: #E4DDFF;

  --f-display: 'Chakra Petch', 'Rajdhani', 'Bahnschrift', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Rajdhani', 'Bahnschrift', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;

  --cut: 0.7rem;               /* chamfer size on panels / buttons */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.3, 1.5, .5, 1);
  --gutter: clamp(16px, 2.4vw, 48px);
  color-scheme: dark;
}
/* Colour-blind palette (GDD §12): EMBER #FFB020, TIDE #4DA3FF. */
:root.cb, .cb { --ember: #FFB020; --ember-l: #FFE08A; --tide: #4DA3FF; --tide-l: #B9D8FF; }

/* Type scale grows with the viewport: ≈13.8px at 1280×720, 16.6px at 1080p, 19.5px at 1440p. */
html { font-size: min(calc(8px + 0.45vw), calc(8px + 0.8vh)); }
@media (max-width: 960px), (max-height: 540px) { html { font-size: 13px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--void); color: var(--ink); }
body { font-family: var(--f-body); font-weight: 500; line-height: 1.35; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { font-family: var(--f-mono); }
h1, h2, h3, p { margin: 0; }
[hidden], .is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Team tinting: any element with .t-ember/.t-tide exposes --team / --team-l. */
.t-ember { --team: var(--ember); --team-l: var(--ember-l); }
.t-tide { --team: var(--tide); --team-l: var(--tide-l); }
.t-neutral { --team: var(--violet); --team-l: #E4DDFF; }

/* ───────────── app shell ───────────── */
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; background: var(--void); }
.ui-root { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.screen { position: absolute; inset: 0; display: none; pointer-events: auto; }
.screen.is-active { display: block; }
.screen.is-entering { animation: screen-in .55s var(--ease-out) both; }
/* The Debrief fades in over the finished match (0.6 s, no blur or slide) so the victory star keeps reading through it. */
.screen--debrief.is-entering { animation: debrief-in .6s ease-out both; }
@keyframes debrief-in { from { opacity: 0; } to { opacity: 1; } }
.screen--match { pointer-events: none; }
.screen.is-overlay { z-index: 20; background: rgba(3, 4, 12, 0.72); backdrop-filter: blur(6px); }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px) scale(.992); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* Menus get a vignette so text stays readable over the live backdrop. */
.screen--title, .screen--connecting, .screen--room, .screen--hangar, .screen--debrief, .screen--settings, .screen--howto {
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 35%, rgba(3, 4, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(3, 4, 12, 0.35), transparent 22%, transparent 78%, rgba(3, 4, 12, 0.5));
}
/* Dense screens sit on a heavier scrim: the live backdrop (grid, ships, Pyre) must never fight the text. */
.screen--room, .screen--hangar, .screen--debrief, .screen--howto, .screen--settings {
  background:
    linear-gradient(rgba(3, 4, 12, 0.42), rgba(3, 4, 12, 0.42)),
    radial-gradient(120% 90% at 50% 45%, transparent 35%, rgba(3, 4, 12, 0.55) 100%);
}
/* The Debrief sits over the finished match itself (gate flare-ups, BREAK pops, the victory star keep rendering):
   a deeper scrim, darkest behind the result title, which has no panel of its own. */
.screen--debrief {
  background:
    linear-gradient(180deg, rgba(3, 4, 12, 0.5), transparent 24%),
    linear-gradient(rgba(3, 4, 12, 0.56), rgba(3, 4, 12, 0.56)),
    radial-gradient(120% 90% at 50% 45%, transparent 35%, rgba(3, 4, 12, 0.55) 100%);
}
/* Title keeps the backdrop alive on the right and darkens behind the menu column. */
.screen--title {
  background:
    linear-gradient(90deg, rgba(3, 4, 12, 0.78) 0%, rgba(3, 4, 12, 0.5) 40%, rgba(3, 4, 12, 0) 68%),
    linear-gradient(180deg, rgba(3, 4, 12, 0.3), transparent 25%, transparent 80%, rgba(3, 4, 12, 0.5));
}

/* ───────────── glyphs ───────────── */
.glyph { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; overflow: visible; flex: none; }
.glyph .g-fill { fill: currentColor; fill-opacity: .18; stroke: none; }
.glyph .g-solid { fill: currentColor; stroke: none; }
.glyph .g-soft { stroke-opacity: .55; }
.glyph .g-ghost { stroke-opacity: .28; }
.glyph .g-dash { stroke-dasharray: 2.4 2.6; stroke-opacity: .7; }
.glyph--NOVA { color: var(--magenta); }
.glyph--GRAPPLE { color: var(--violet); }
.glyph--OVERDRIVE { color: var(--gold); }

/* ───────────── panels ───────────── */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1.4rem 3rem -1.6rem rgba(0, 0, 0, .8);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  padding: .9rem 1rem;
}
/* The panel's accent notch: a short lit edge on the top-left, tinted by the panel's team. */
.panel::before { content: ''; position: absolute; left: -1px; top: -1px; width: 2.6rem; height: 2px; background: var(--team); box-shadow: 0 0 10px var(--team); opacity: .9; }
.panel::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: .7rem; height: .7rem; border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); opacity: .6; }
.panel__head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .7rem; }
.panel__title { font-family: var(--f-display); font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.panel__aside { font-size: .86rem; color: var(--ink-3); margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; }

/* ───────────── buttons ───────────── */
.btn {
  --bc: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.6rem; padding: .55rem 1.3rem;
  font-family: var(--f-display); font-weight: 600; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: rgba(160, 175, 255, .06);
  border: 1px solid var(--bc); border-radius: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease-out), box-shadow .18s;
  white-space: nowrap; user-select: none;
}
.btn:hover { background: rgba(160, 175, 255, .14); --bc: var(--line-3); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 12px -4px var(--gold); color: var(--ink-warm); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn .glyph { width: 1.2em; height: 1.2em; }
.btn--primary {
  color: #1B1204; border: 0;
  background: linear-gradient(180deg, #FFE68C, var(--gold) 45%, var(--gold-2));
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover { background: linear-gradient(180deg, #FFF0B0, #FFE070 45%, #FFC150); }
.btn--primary:focus-visible { color: #1B1204; box-shadow: inset 0 0 0 2px #1B1204, inset 0 0 0 4px #FFF4C8; }
.btn--primary:disabled { background: linear-gradient(180deg, #6D6448, #574E36); color: rgba(20, 14, 4, .8); opacity: .55; }
/* A sheen sweeps across primary buttons on hover. */
.btn--primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease-out); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; --bc: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: rgba(160, 175, 255, .08); color: var(--ink); --bc: var(--line); }
.btn--lg { min-height: 3.1rem; padding: .7rem 1.9rem; font-size: .95rem; }
.btn--xl { min-height: 3.6rem; padding: .8rem 2.2rem; font-size: 1.05rem; --cut: .9rem; }
.btn--xs { min-height: 1.8rem; padding: .2rem .7rem; font-size: .7rem; --cut: .35rem; }
.btn--block { width: 100%; }
.btn--icon { padding: .45rem .8rem; min-height: 2.3rem; }
.btn--back { padding-left: .8rem; }
.btn--danger { color: #FF8FA0; }
.btn--danger:hover { color: #FFD0D8; background: rgba(255, 51, 85, .12); --bc: rgba(255, 51, 85, .4); }
.btn--danger-solid { background: linear-gradient(180deg, #FF5A74, var(--danger)); border: 0; color: #fff; }
.btn--danger-solid:hover { background: linear-gradient(180deg, #FF7A90, #FF4466); }

/* ───────────── form controls ───────────── */
.field__input {
  width: 100%; padding: .55rem .75rem; min-height: 2.5rem;
  background: rgba(5, 7, 20, .6); border: 1px solid var(--line); border-bottom: 2px solid var(--line-2);
  color: var(--ink); font-family: var(--f-display); font-size: 1rem; letter-spacing: .04em; border-radius: 0;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field__input::placeholder { color: var(--ink-3); }
.field__input:focus { outline: none; border-bottom-color: var(--gold); background: rgba(10, 13, 32, .8); box-shadow: 0 6px 18px -12px var(--gold); }

.seg { display: inline-flex; border: 1px solid var(--line); background: rgba(5, 7, 20, .45); padding: 2px; gap: 2px; }
.seg__opt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 4.2rem; min-height: 2.3rem; padding: .3rem .85rem; border: 0; background: transparent; color: var(--ink-2);
  font-family: var(--f-display); font-weight: 600; font-size: .86rem; letter-spacing: .08em;
  transition: background .15s, color .15s;
}
.seg__opt:hover { color: var(--ink); background: rgba(160, 175, 255, .08); }
.seg__opt:active .seg__label { transform: scale(.94); }
.seg__label { transition: transform .12s var(--ease-out); }
.seg__opt.is-on { color: #1B1204; background: linear-gradient(180deg, #FFE68C, var(--gold)); }
.seg__opt:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink-warm); }
.seg__opt.is-on:focus-visible { box-shadow: inset 0 0 0 2px #1B1204; }
.seg--sm .seg__opt { min-width: 3.6rem; min-height: 2rem; font-size: .8rem; padding: .2rem .7rem; }
.seg__sub { font-size: .66rem; font-weight: 500; letter-spacing: .04em; opacity: .75; }

.switch { display: flex; align-items: center; gap: .8rem; cursor: pointer; }
.switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 2.6rem; height: 1.4rem; flex: none; border: 1px solid var(--line-2); background: rgba(5, 7, 20, .6); transition: background .2s, border-color .2s; }
.switch__knob { position: absolute; top: 2px; left: 2px; width: calc(1.4rem - 6px); height: calc(1.4rem - 6px); background: var(--ink-3); transition: transform .25s var(--ease-snap), background .2s; }
.switch__input:checked + .switch__track { background: rgba(255, 211, 77, .16); border-color: var(--gold); }
.switch__input:checked + .switch__track .switch__knob { transform: translateX(1.2rem); background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.switch__input:focus-visible + .switch__track { box-shadow: 0 0 0 2px var(--ink-warm); }
.switch__text { display: flex; flex-direction: column; }
.switch__label { font-size: 1rem; color: var(--ink); }
.switch__hint { font-size: .8rem; color: var(--ink-3); font-family: var(--f-mono); }

.slider { display: grid; grid-template-columns: 7.5rem 1fr 3.2rem; align-items: center; gap: .8rem; }
.slider__label { font-size: 1rem; color: var(--ink); }
.slider__val { font-family: var(--f-mono); font-size: .82rem; color: var(--ink-2); text-align: right; }
.slider__input { -webkit-appearance: none; appearance: none; width: 100%; height: 1.6rem; background: transparent; cursor: pointer; --p: 50%; }
.slider__input::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(160, 175, 255, .18) var(--p)); }
.slider__input::-moz-range-track { height: 4px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(160, 175, 255, .18) var(--p)); }
.slider__input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 18px; margin-top: -7px; background: var(--ink-warm); clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%); box-shadow: 0 0 8px var(--gold); }
.slider__input::-moz-range-thumb { width: 14px; height: 18px; border: 0; border-radius: 0; background: var(--ink-warm); }
.slider__input:focus-visible { outline: none; }
.slider__input:focus-visible::-webkit-slider-thumb { background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 244, 224, .6); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.55rem; height: 1.55rem; padding: 0 .35rem;
  font-size: .72rem; font-weight: 600; color: var(--ink); background: rgba(160, 175, 255, .1);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 3px; line-height: 1;
}

.tag { display: inline-flex; align-items: center; height: 1.15rem; padding: 0 .4rem; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 2px; flex: none; }
.tag--bot { color: var(--ink-3); }
.tag--me { color: var(--gold); }
.tag--warn { color: var(--danger); }

.hint { font-size: .9rem; color: var(--ink-3); }

/* ───────────── toasts + net status ───────────── */
.toasts { position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: .4rem; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; min-width: 14rem; max-width: 34rem;
  background: var(--glass-solid); border: 1px solid var(--line-2); font-size: .95rem; color: var(--ink);
  animation: toast-in .35s var(--ease-out) both; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8);
}
.toast__dot { width: .5rem; height: .5rem; flex: none; background: var(--violet); box-shadow: 0 0 8px currentColor; }
.toast--danger { border-color: rgba(255, 51, 85, .55); }
.toast--danger .toast__dot { background: var(--danger); }
.toast--ok .toast__dot { background: var(--ok); }
.toast.is-leaving { animation: toast-out .35s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

/* Connection strip: top centre on menu screens (every corner there holds a timer, room code or series score),
   top left in a match (the centre is the score bar, the right the kill feed). Toasts step down beneath it. */
.netstatus { position: absolute; top: .7rem; left: 50%; translate: -50% 0; z-index: 61; display: flex; align-items: center; gap: .55rem; padding: .45rem .9rem; background: var(--glass-solid); border: 1px solid rgba(255, 211, 77, .5); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); font-family: var(--f-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); animation: toast-in .3s var(--ease-out) both; }
.ui-root:not([data-screen="debrief"]):not([data-screen="reveal"]) .netstatus:not(.is-hidden) ~ .toasts { top: 3.6rem; }
.ui-root[data-screen="match"] .netstatus { left: .9rem; translate: none; top: 2rem; }
/* Debrief and Reveal put their headline (score gates, "Fleets revealed") at the top centre: the strip drops to the
   empty band above their footers instead. */
.ui-root[data-screen="debrief"] .netstatus { top: auto; bottom: 1.5rem; }
.ui-root[data-screen="reveal"] .netstatus { top: auto; bottom: 2.2rem; }
.netstatus__spin { width: .8rem; height: .8rem; border: 2px solid rgba(255, 211, 77, .25); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
.netstatus__ok { display: none; width: .95rem; height: .95rem; stroke-width: 2.6; }
.netstatus.is-ok { color: var(--ok); border-color: rgba(124, 242, 182, .55); }
.netstatus.is-ok .netstatus__spin { display: none; }
.netstatus.is-ok .netstatus__ok { display: block; }
/* 'unreachable': retries keep failing — red, still spinning (it keeps trying). */
.netstatus.is-bad { color: #FFC2CC; border-color: rgba(255, 51, 85, .6); }
.netstatus.is-bad .netstatus__spin { border-color: rgba(255, 51, 85, .25); border-top-color: #FF5570; }
/* The Connecting screen's error state already says it, with the way out: no strip on top of it. On the title (and its
   Settings / How to play) nothing waits for the server — a background retry there is not the player's problem. */
.ui-root[data-screen="connecting"]:has(.connecting.is-error) .netstatus:not(.is-ok),
.ui-root:is([data-screen="title"], [data-screen="settings"], [data-screen="howto"]) .netstatus.is-bad { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }

/* ───────────── orbit rings (loader motif: the fleet polyrhythm, 2 s / 3 s / 4 s) ───────────── */
.orbits { position: relative; width: 7rem; height: 7rem; flex: none; }
.orbits--xl { width: 11rem; height: 11rem; }
.orbits__core { position: absolute; inset: 0; margin: auto; width: 22%; height: 22%; border-radius: 50%; background: radial-gradient(circle, #FFF4E0 0 30%, #FFD27A 45%, rgba(184, 166, 255, .45) 70%, transparent 72%); box-shadow: 0 0 30px rgba(255, 210, 122, .6), 0 0 60px rgba(107, 77, 255, .4); animation: core-breathe 2s ease-in-out infinite; }
.orbits__ring { position: absolute; inset: 0; margin: auto; border: 1px solid rgba(170, 186, 255, .22); border-radius: 50%; animation: spin var(--p) linear infinite; }
.orbits__ring i { position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; background: var(--gold); border-radius: 1px; transform: rotate(45deg); box-shadow: 0 0 10px var(--gold); }
.orbits__ring--1 { width: 44%; height: 44%; --p: 2s; }
.orbits__ring--2 { width: 70%; height: 70%; --p: 3s; animation-direction: reverse; }
.orbits__ring--2 i { background: var(--tide); box-shadow: 0 0 10px var(--tide); }
.orbits__ring--3 { width: 100%; height: 100%; --p: 4s; }
.orbits__ring--3 i { background: var(--ember); box-shadow: 0 0 10px var(--ember); }
@keyframes core-breathe { 50% { transform: scale(.85); } }

/* ───────────── shared bits ───────────── */
.timer { position: relative; width: 4.6rem; height: 4.6rem; flex: none; }
.timer--sm { width: 3.6rem; height: 3.6rem; }
.timer__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer__track { fill: rgba(5, 7, 20, .55); stroke: rgba(160, 175, 255, .16); stroke-width: 6; }
.timer__arc { fill: none; stroke: var(--gold); stroke-width: 6; stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linecap: butt; filter: drop-shadow(0 0 4px var(--gold)); }
.timer__inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer__num { font-family: var(--f-mono); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--ink-warm); }
.timer--sm .timer__num { font-size: 1.1rem; }
.timer__label { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.timer.is-urgent .timer__arc { stroke: var(--danger); filter: drop-shadow(0 0 5px var(--danger)); }
.timer.is-urgent .timer__num { color: #FF8FA0; animation: pulse-num 1s ease-in-out infinite; }
@keyframes pulse-num { 50% { transform: scale(1.12); } }

.dots i { display: inline-block; width: .32rem; height: .32rem; margin-left: .22rem; background: var(--gold); animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(160, 175, 255, .2); }
::-webkit-scrollbar-track { background: transparent; }

.dragghost {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: flex; align-items: center; gap: .5rem;
  margin: -1.2rem 0 0 -1.2rem; padding: .45rem .9rem .45rem .6rem; background: var(--glass-solid); border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--f-display); font-weight: 600; letter-spacing: .08em; box-shadow: 0 0 24px -4px var(--gold);
}
.dragghost .glyph { width: 1.8rem; height: 1.8rem; }

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