/* =====================================================================
   LEMURGENCY
   VOICE:   Night shift on the rig: calm under pressure, dry humour, never panicked.
   IDEA:    Every answer rolls the rig further along the night route; rarer answers take you further,
            from Station 9 at dusk to the helipad at dawn.
   PICTURE: Wet asphalt and navy, hi-vis lime and Battenburg checks, siren red and blue as the two accents,
            monitor green for every readout. Gold appears only for a Golden Ring.
   TYPE:    Big Shoulders Display (ambulance livery, road signs) · Atkinson Hyperlegible (reading)
            · Share Tech Mono (patient-monitor readouts).
   LAYOUT:  A centred title stack (wordmark, tagline, start button) above a wide parked rig and a crew of Ringos; a full-screen night route with a
            clipped "run sheet" card on top. An ECG trace runs through everything.
   ===================================================================== */

:root {
  --asphalt: #0b111c;
  --navy: #111a2b;
  --navy2: #17233a;
  --panel: rgba(13, 21, 37, .82);
  --panel2: rgba(22, 33, 56, .72);
  --edge: rgba(215, 255, 60, .16);
  --edge2: rgba(160, 180, 210, .16);
  --ink: #eef2f8;
  --ink2: #c3cbd8;
  --mute: #8692a6;
  --hv: #d7ff3c;          /* hi-vis lime */
  --hv-d: #8aa516;
  --yel: #f5d90a;
  --grn: #13a05e;
  --red: #ff3a46;         /* siren red */
  --blue: #3b82ff;        /* siren blue */
  --mon: #3dff9a;         /* monitor green */
  --gold: #ffc23d;
  /* tier tokens: always reach them through TV[] in app.js, never by raw index */
  --t0: #a9b4c6;          /* EMR */
  --t1: #4f8dff;          /* EMT */
  --t2: #3dff9a;          /* AEMT */
  --t3: #ff3a46;          /* Paramedic */
  --t4: #ffc23d;          /* Golden Ring */
  --miss: #4a5263;
  --r: 14px;
  --f-d: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-b: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --f-m: "Share Tech Mono", ui-monospace, monospace;
  --check: conic-gradient(var(--yel) 25%, var(--grn) 0 50%, var(--yel) 0 75%, var(--grn) 0) 0 0 / 22px 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #0b111c; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 17px/1.55 var(--f-b);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(59, 130, 255, .16), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(255, 58, 70, .10), transparent 60%),
    linear-gradient(180deg, #0d1524 0%, var(--asphalt) 60%);
  overflow-x: hidden;
}
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hidden, [hidden] { display: none !important; }
.mono { font-family: var(--f-m); letter-spacing: .02em; }
.display { font-family: var(--f-d); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: .9; margin: 0; }
.display.md { font-size: clamp(40px, 6vw, 64px); }
.display.sm { font-size: clamp(30px, 4vw, 42px); }
.fine { font-size: 13.5px; color: var(--mute); }
a { color: var(--hv); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--hv); outline-offset: 3px; border-radius: 6px; }

svg.ico { width: 20px; height: 20px; flex: none; display: block; }
[data-ico] { display: inline-flex; }

/* ---------- header ---------- */
.top {
  position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px); max-width: 1320px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; }
.brand-ringo svg { width: 44px; height: 51px; display: block; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.brand-word { font-family: var(--f-d); font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
/* on the home screen the hero already shows the big wordmark, so the header keeps just Ringo until you scroll past it */
.brand-word { transition: opacity .25s, transform .25s; }
.top.wm-dup .brand-word { opacity: 0; transform: translateX(-6px); pointer-events: none; }
.brand-word b { color: var(--asphalt); background: var(--hv); padding: 1px 6px 0; margin-right: 4px; border-radius: 3px; font-weight: 900; }
.top-nav { display: flex; gap: 6px; }
.ibtn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--edge2); color: var(--ink2); transition: background .15s, color .15s, transform .1s;
}
.ibtn:hover { background: rgba(215, 255, 60, .1); color: var(--hv); }
.ibtn:active { transform: translateY(1px); }
.ibtn.glass { background: var(--panel); backdrop-filter: blur(8px); }
.dot-on { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--mon); box-shadow: 0 0 0 2px var(--asphalt); }
/* streak badge: a flame and today's streak, first in the header row */
.streak-chip {
  position: relative; height: 42px; min-width: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 11px 0 9px; border-radius: 11px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--edge2); color: var(--mute); font: 700 20px/1 var(--f-d); transition: background .15s, color .15s, transform .1s;
}
.streak-chip b { font-weight: 900; min-width: .6em; text-align: center; }
.streak-chip:hover { background: rgba(255, 140, 40, .1); color: #ffb020; }
.streak-chip:active { transform: translateY(1px); }
.streak-chip.lit { color: #ffb020; border-color: rgba(255, 150, 40, .45); background: rgba(255, 120, 30, .1); }
.streak-chip.lit svg { fill: rgba(255, 90, 30, .35); filter: drop-shadow(0 0 6px rgba(255, 140, 40, .55)); }
.streak-chip.due::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--asphalt); }
.streak-chip.lit:not(.due) svg { animation: flick 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06, .97) rotate(-3deg); } 60% { transform: scale(.97, 1.05) rotate(2deg); } }

.snd-toggle .i-off { display: none; }
.snd-toggle[aria-pressed="false"] .i-on { display: none; }
.snd-toggle[aria-pressed="false"] .i-off { display: inline-flex; }

main { position: relative; z-index: 2; }
.view { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 60px; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  font-family: var(--f-d); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 19px;
  padding: 11px 20px 10px; border-radius: 10px; border: 2px solid transparent; transition: transform .1s, box-shadow .1s, background .15s;
}
.btn.primary { background: var(--hv); color: #101806; box-shadow: 0 4px 0 var(--hv-d), 0 10px 24px -10px rgba(215, 255, 60, .55); }
.btn.primary::after { /* reflective-tape sheen */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); width: 40%;
}
.btn.primary:hover::after { transform: translateX(320%) skewX(-20deg); transition: transform .6s; }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hv-d); }
.btn.ghost { background: rgba(255, 255, 255, .03); border-color: var(--edge2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--hv); color: var(--hv); }
.btn.big { font-size: 23px; padding: 15px 26px 14px; }
.btn.sm { font-size: 15px; padding: 7px 12px 6px; }
.btn.red { background: var(--red); color: #fff; box-shadow: 0 4px 0 #a3141e; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- hero ---------- */
/* one centred column: title, tagline, explanation and the start button share a single axis, so the top of the
   page reads the same in a landscape screen recording and a vertical (phone) crop */
.hero {
  display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6vh, 18px); text-align: center;
  /* the whole intro (title down to the parked rig) fills exactly one screen under the header, so nothing needs a scroll */
  height: calc(100svh - var(--top-h, 80px)); min-height: 540px; padding: clamp(6px, 1.6vh, 22px) 0 clamp(8px, 2vh, 22px);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--mon); font-size: 14px; margin: 0 0 16px; padding: 5px 10px; border: 1px solid rgba(61, 255, 154, .25); border-radius: 6px; background: rgba(61, 255, 154, .06); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero .eyebrow { margin-bottom: clamp(8px, 1.6vh, 16px); }
.hero-title { margin: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1.6vh, 20px); }
.wordmark { display: block; font-size: clamp(54px, min(10.6vw, 12.5vh), 146px); line-height: .86; letter-spacing: .02em; color: var(--ink); text-shadow: 0 6px 0 rgba(0, 0, 0, .35); white-space: nowrap; }
.wordmark b { display: inline-block; font-weight: 900; color: var(--asphalt); background: var(--hv); padding: .06em .1em 0; margin-right: .06em; border-radius: .05em; text-shadow: none; box-shadow: 0 .045em 0 var(--hv-d), 0 .2em .5em -.2em rgba(215, 255, 60, .5); }
.tagline { display: block; font-size: clamp(28px, min(4.6vw, 5.2vh), 60px); line-height: .95; }
.tagline .hv { color: var(--hv); position: relative; display: inline-block; padding-bottom: 10px; }
.tagline .hv::after { content: ""; position: absolute; left: 3%; right: 3%; bottom: 0; height: 8px; background: var(--check); background-size: 8px 8px; border-radius: 2px; }
.lede { font-size: clamp(16px, min(1.6vw, 2.3vh), 20px); line-height: 1.5; color: var(--ink2); max-width: 46em; margin: clamp(10px, 2vh, 18px) auto clamp(12px, 2.4vh, 22px); text-wrap: balance; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 1.2vh, 12px); }
.hero-status { color: var(--ink2); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; }
.hero-status:empty { display: none; }
.hero-status b { color: var(--hv); font-weight: 400; }
.next-run {
  display: inline-grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 14px; row-gap: 2px; margin: 22px 0 0;
  padding: 10px 16px 9px; border-radius: 10px; border: 1px solid rgba(61, 255, 154, .25); background: rgba(4, 10, 8, .55);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), 0 0 24px -12px rgba(61, 255, 154, .6);
}
.next-run .nr-l { font-size: 13px; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.next-run b { font-size: 28px; font-weight: 400; color: var(--mon); letter-spacing: .06em; text-shadow: 0 0 12px rgba(61, 255, 154, .45); font-variant-numeric: tabular-nums; }
.next-run .nr-s { grid-column: 1 / -1; font-size: 12px; color: var(--mute); }
.hero .next-run { margin-top: clamp(8px, 1.6vh, 16px); grid-template-columns: auto auto auto; column-gap: 12px; padding: 7px 14px 6px; text-align: center; }
.hero .next-run b { font-size: 24px; }
.hero .next-run .nr-s { grid-column: auto; }

/* wide, symmetric stage under the title: the rig parked in the middle, two Ringos either side */
/* the stage takes whatever height is left under the copy; the scene scales to fit it (never wider than the
   space, never taller than 100% of it) */
.hero-stage { flex: 1 1 0; min-height: 140px; width: 100%; container-type: size; display: flex; align-items: center; justify-content: center; }
.hero-art { position: relative; width: min(100%, 1000px, 340cqh); aspect-ratio: 3.4; }
.hero-art::before { /* station floodlight */
  content: ""; position: absolute; left: 6%; right: 6%; top: 6%; bottom: 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 130, 255, .18), transparent); filter: blur(10px);
}
.art-road { position: absolute; left: -4%; right: -4%; bottom: 8%; height: 26%; background: linear-gradient(180deg, #1a2130, #0e131d); border-top: 3px solid var(--hv); border-radius: 4px; overflow: hidden; }
.art-road::after { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 3px; background: repeating-linear-gradient(90deg, var(--yel) 0 34px, transparent 34px 68px); opacity: .8; animation: roll 1.6s linear infinite; }
@keyframes roll { to { background-position: -68px 0; } }
.art-ecg { position: absolute; inset: auto 0 6px 0; width: 100%; height: 44%; }
.art-ecg path { fill: none; stroke: var(--mon); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(61, 255, 154, .7)); vector-effect: non-scaling-stroke; }
.art-rig { position: absolute; left: 32%; right: 32%; bottom: 15%; }
.art-rig { display: block; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.art-rig:focus-visible { outline: 2px solid var(--hv); outline-offset: 4px; border-radius: 8px; }
.art-rig svg { width: 100%; height: auto; display: block; }
.art-rig.wail svg { animation: rigwail .18s ease-in-out 9; }
.art-rig.wail .lights .lr, .art-rig.wail .lights .lb { animation-duration: .22s; }
@keyframes rigwail { 50% { transform: translateY(-2px); } }
.art-rig .lights .lr { animation: flashR .7s steps(1) infinite; }
.art-rig .lights .lb { animation: flashB .7s steps(1) infinite; }
@keyframes flashR { 50% { fill: #ffb3b8; } }
@keyframes flashB { 0% { fill: #b9d2ff; } 50% { fill: #3b82ff; } }
.ringo-float { position: absolute; width: 10%; aspect-ratio: 124/144; background: none; border: 0; padding: 0; animation: bob 4s ease-in-out infinite; }
.ringo-float svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .3)); }
.ringo-float.k1 { left: 5%; bottom: 16%; animation-delay: -.5s; }
.ringo-float.k2 { left: 18%; top: 4%; width: 9.5%; animation-delay: -1.7s; }
.ringo-float.k3 { right: 18%; top: 6%; animation-delay: -2.6s; }
.ringo-float.k4 { right: 5%; bottom: 2%; width: 9%; animation-delay: -3.2s; z-index: 2; }
.ringo-float.hop { animation: hop .5s cubic-bezier(.3, 1.6, .6, 1); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes hop { 40% { transform: translateY(-22px) scale(1.06, .95); } }
.ringo .steam path { animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 50% { transform: translateY(-3px); opacity: .3; } }
.ringo .waves { animation: blink 1s steps(2) infinite; }
.ringo .zzz { animation: bob 3s ease-in-out infinite; }
.ringo .tail { transform-box: view-box; transform-origin: 44px 118px; animation: sway 3.4s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-7deg); } }
.bubble {
  position: absolute; z-index: 4; max-width: 240px; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.35;
  background: var(--ink); color: var(--asphalt); font-weight: 700; box-shadow: 0 6px 0 rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .2s, transform .2s; pointer-events: none;
}
.bubble.on { opacity: 1; transform: none; }
.bubble::after { content: ""; position: absolute; left: calc(var(--tail, 30px) - 8px); bottom: -8px; border: 8px solid transparent; border-top-color: var(--ink); border-bottom: 0; }

.livery { height: 22px; margin: 6px calc(-1 * clamp(16px, 4vw, 48px)) 40px; background: var(--check); border-block: 3px solid var(--asphalt); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.mode {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: var(--r);
  background: var(--panel2); border: 1px solid var(--edge2); transition: transform .15s, border-color .15s, background .15s; overflow: hidden;
}
.mode:hover { transform: translateY(-3px); border-color: var(--hv); background: rgba(26, 38, 64, .85); }
.mode-tag { font-size: 12px; color: var(--mute); }
.mode-ico { color: var(--hv); margin: 6px 0 2px; }
.mode-ico svg { width: 30px; height: 30px; }
.mode-h { font-family: var(--f-d); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; }
.mode-p { color: var(--ink2); font-size: 15px; }
.mode-go { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--hv); }
.mode.m-daily { grid-row: span 2; padding: 26px; background: linear-gradient(160deg, rgba(255, 58, 70, .16), rgba(59, 130, 255, .12) 70%), var(--panel2); border-color: rgba(255, 58, 70, .35); }
.mode.m-daily::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--red) 50%, var(--blue) 50%); animation: siren 1s steps(1) infinite; }
@keyframes siren { 50% { background: linear-gradient(90deg, var(--blue) 50%, var(--red) 50%); } }
.mode.m-daily .mode-h { font-size: clamp(44px, 5vw, 64px); }
.mode.m-daily .mode-p { font-size: 17px; max-width: 26em; }
.mode.m-daily .mode-go { font-size: 16px; }

/* ---------- ladder ---------- */
.ladder { margin: 64px 0 0; display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: start; }
.ladder-head p { color: var(--ink2); }
.ladder-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ladder-list li {
  position: relative; overflow: hidden; isolation: isolate; padding: 16px 14px 14px; border-radius: 12px; min-height: 196px;
  background: linear-gradient(165deg, color-mix(in srgb, currentColor 16%, transparent), transparent 62%), var(--panel2);
  border: 1px solid color-mix(in srgb, currentColor 22%, var(--edge2)); border-top: 4px solid currentColor; display: flex; flex-direction: column; gap: 6px;
}
.ladder-list li > .emb { width: 46px; height: 46px; margin-bottom: 4px; filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 45%, transparent)); }
.ladder-list li b { font-family: var(--f-d); font-weight: 900; text-transform: uppercase; font-size: 23px; line-height: .95; color: var(--ink); }
.ladder-list li span { font-family: var(--f-m); font-size: 14px; }
.ladder-list li small { color: var(--ink2); opacity: .8; font-size: 13.5px; line-height: 1.35; letter-spacing: normal; }
.ladder-list li.kr { background: radial-gradient(120% 70% at 100% 0%, rgba(255, 194, 61, .26), transparent 60%), linear-gradient(165deg, rgba(255, 194, 61, .16), transparent 62%), var(--panel2); }
.lad-wm { position: absolute; z-index: -1; right: -22px; bottom: -18px; width: 120px; opacity: .09; pointer-events: none; transform: rotate(-12deg); }
.lad-wm .emb { width: 100%; height: auto; display: block; }
.lad-foot { margin-top: auto; padding-top: 10px; display: grid; gap: 6px; }
.lad-foot > span { font: 26px/1 var(--f-m) !important; color: currentColor; letter-spacing: .02em; }
.lad-m { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lad-m i { display: block; height: 100%; border-radius: 3px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.ladder-list.mini { grid-template-columns: repeat(5, 1fr); margin: 14px 0; }
.ladder-list.mini li { padding: 8px 5px; align-items: center; text-align: center; gap: 4px; }
.ladder-list.mini > li, .ladder-list.mini > li:nth-child(n) { min-height: 0; }
.ladder-list.mini .lad-wm, .ladder-list.mini .lad-m { display: none; }
.ladder-list.mini .lad-foot { padding-top: 0; }
.ladder-list.mini .lad-foot > span { font-size: 14px !important; }
.ladder-list.mini li b { font-size: 15px; }
.ladder-list.mini li small { display: none; }
.ladder-list.mini li > .emb { width: 30px; height: 30px; margin: 0; }

/* ---------- crew ranks ---------- */
.ladder.ranks { margin-top: 40px; }
.rank-list li { color: var(--hv-d); }
.rank-list li:nth-child(3) { color: #b2d12a; }
.rank-list li:nth-child(n+4) { color: var(--hv); }
.rank-list li em { font-style: normal; font-size: 11px; letter-spacing: .08em; color: var(--asphalt); background: var(--hv); border-radius: 4px; padding: 3px 6px; align-self: flex-start; margin-top: 4px; }
.rank-list .lad-foot > span { font-size: 22px !important; }
.rank-list li.me { background: linear-gradient(170deg, rgba(215, 255, 60, .16), transparent 70%), var(--panel2); border-color: var(--edge); border-top-color: currentColor; box-shadow: 0 0 0 1px var(--hv) inset; }
.rank-list li b { font-size: 19px; }

/* ---------- about ---------- */
.about { margin: 64px 0 0; display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 30px; border-radius: var(--r); border: 1px dashed var(--edge2); }
.about p { color: var(--ink2); max-width: 46em; }
.about-ringo { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; align-self: start; -webkit-tap-highlight-color: transparent; }
.about-ringo:focus-visible { outline: 2px solid var(--hv); outline-offset: 4px; border-radius: 12px; }
.about-ringo svg { width: 100%; height: auto; display: block; }
.about-ringo.hop { animation: hop .5s cubic-bezier(.3, 1.6, .6, 1); }
.creator { margin-top: 20px; align-items: center; padding: 24px 30px; }
.creator .eyebrow { margin-bottom: 12px; padding: 7px 14px; font-size: 22px; color: var(--mon); }
.creator h2.display.sm { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 28px); line-height: 1; }
.creator p { margin: 0 0 8px; }
.say-name { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(61, 255, 154, .06); color: var(--mon); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .2s, background .2s; }
.say-name:hover { border-color: var(--mon); background: rgba(61, 255, 154, .12); }
.say-name:focus-visible { outline: 2px solid var(--hv); outline-offset: 3px; }
.say-ic { flex: none; }
.say-syl { font-size: 16px; letter-spacing: .04em; color: var(--ink2); }
.say-syl i { font-style: normal; color: var(--mute); margin: 0 3px; }
.say-syl b { color: var(--mon); font-weight: 700; }
.say-name.playing { border-color: var(--mon); }
.say-name.playing .say-w1 { animation: sayw 0.9s ease-in-out infinite; }
.say-name.playing .say-w2 { animation: sayw 0.9s ease-in-out .2s infinite; }
@keyframes sayw { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .say-name.playing .say-w1, .say-name.playing .say-w2 { animation: none; } }
.creator p:last-child { margin-bottom: 0; }
.creator-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); border: 1px solid var(--edge); }
.site-foot { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 28px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; color: var(--mute); font-size: 13px; padding-top: 20px; border-top: 1px solid var(--edge2); }
.foot .ig { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); text-decoration: none; padding: 6px 12px; border: 1px solid var(--edge2); border-radius: 999px; transition: color .15s, border-color .15s; }
.foot .ig svg { width: 18px; height: 18px; }
.foot .ig:hover, .foot .ig:focus-visible { color: var(--hv); border-color: var(--hv); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- pages ---------- */
.page { padding-top: 12px; }
.page-head { margin: 10px 0 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.page-head .sub { color: var(--ink2); margin: 0; max-width: 44em; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pack { text-align: left; padding: 18px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--edge2); display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.pack:hover { transform: translateY(-3px); border-color: var(--hv); }
.pack::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--pc, var(--hv)); }
.pack-ico { display: flex; gap: 6px; color: var(--pc, var(--hv)); }
.pack-ico svg { width: 26px; height: 26px; }
.pack h3 { margin: 0; font-family: var(--f-d); font-weight: 900; font-size: 27px; text-transform: uppercase; line-height: 1; }
.pack p { margin: 0; color: var(--ink2); font-size: 14.5px; }
.pack .meta { margin-top: auto; font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; }
.pack .meta b { color: var(--hv); font-weight: 400; }

.arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.arch-i { text-align: left; padding: 14px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--edge2); display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s; }
.arch-i:hover { border-color: var(--hv); transform: translateY(-2px); }
.arch-i .n { font-family: var(--f-d); font-weight: 900; font-size: 26px; line-height: 1; }
.arch-i .d { font-size: 13px; color: var(--mute); }
.arch-i .g { display: flex; gap: 3px; }
.arch-i .g i { width: 14px; height: 14px; border-radius: 3px; background: var(--c, var(--miss)); }
.arch-i .s { font-size: 13px; color: var(--ink2); }
.empty { padding: 40px 24px; text-align: center; border: 1px dashed var(--edge2); border-radius: var(--r); color: var(--ink2); display: grid; justify-items: center; gap: 10px; }
.empty .ringo { width: 110px; height: auto; }

/* ---------- play ---------- */
.play { position: fixed; inset: 0; max-width: none; padding: 0; z-index: 20; background: var(--asphalt); overflow: hidden; }
#route { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) clamp(12px, 3vw, 28px) 0; z-index: 3; }
.hud-run { font-size: 13px; color: var(--ink2); padding: 9px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--edge2); backdrop-filter: blur(8px); }
.hud-dist { margin-left: auto; display: flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 10px; background: rgba(6, 11, 18, .88); border: 1px solid rgba(61, 255, 154, .3); color: var(--mon); }
.hud-dist .lbl { font-size: 11px; opacity: .7; }
.hud-dist b { font-weight: 400; font-size: 28px; line-height: 1; min-width: 3ch; text-align: right; text-shadow: 0 0 10px rgba(61, 255, 154, .6); }
.hud-dist .u { font-size: 13px; }
.hud-dist .zone { font-size: 12px; color: var(--hv); margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(61, 255, 154, .3); text-transform: uppercase; }
.hud-lives { display: flex; gap: 4px; }
.hud-lives:empty { display: none; }
.hud-lives span { width: 30px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--panel); border: 1px solid var(--edge2); color: var(--mon); }
.hud-lives span.gone { color: var(--miss); opacity: .6; }
.hud-lives span.gone svg { transform: rotate(90deg); transition: transform .4s; }

.card {
  position: absolute; z-index: 3; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 76px); transform: translateX(-50%);
  width: min(640px, calc(100% - 24px)); padding: 22px 22px 16px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--edge); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.card::before { /* clipboard clip */
  content: ""; position: absolute; left: 50%; top: -9px; width: 86px; height: 18px; transform: translateX(-50%);
  background: linear-gradient(180deg, #c7d0dd, #7b879c); border-radius: 6px 6px 3px 3px; box-shadow: 0 2px 0 #4d5668;
}
.card::after { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--red) 50%, var(--blue) 50%); }
.card.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(calc(-50% - 7px)); } 40%, 80% { transform: translateX(calc(-50% + 7px)); } }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-m); font-size: 13px; color: var(--hv); text-transform: uppercase; }
.cat svg { width: 18px; height: 18px; }
.timer { display: flex; align-items: center; gap: 8px; color: var(--mon); }
.timer b { font-weight: 400; font-size: 26px; line-height: 1; min-width: 2ch; text-align: right; }
.t-ecg { width: 96px; height: 22px; }
.t-ecg path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.t-bg { stroke: rgba(255, 255, 255, .12); }
.t-fg { stroke: currentColor; filter: drop-shadow(0 0 3px currentColor); }
.timer.warn { color: var(--yel); }
.timer.crit { color: var(--red); animation: blink .5s steps(2) infinite; }
.timer.paused { opacity: .55; }
.q { font-family: var(--f-d); font-weight: 800; font-size: clamp(27px, 3.6vw, 38px); line-height: 1.02; margin: 12px 0 16px; text-transform: none; letter-spacing: .005em; }
.in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 11px; background: rgba(4, 8, 14, .8); border: 2px solid rgba(61, 255, 154, .25); transition: border-color .15s; }
.in:focus-within { border-color: var(--mon); box-shadow: 0 0 0 4px rgba(61, 255, 154, .1); }
.caret { color: var(--mon); font-size: 18px; animation: blink 1s steps(2) infinite; }
.in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 20px var(--f-m); padding: 13px 0; }
.in input::placeholder { color: #4d5a70; }
.card-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.msg { flex: 1 1 200px; font-size: 15px; color: var(--ink2); min-height: 1.4em; }
.msg.warn { color: var(--yel); }
.msg.bad { color: #ff8f97; }
.msg.ok { color: var(--mon); }
.msg b { color: var(--ink); }
.dots { display: flex; gap: 6px; margin-top: 14px; }
.dots i { height: 6px; flex: 1; border-radius: 3px; background: rgba(255, 255, 255, .1); transition: background .3s; }
.dots i.cur { background: rgba(215, 255, 60, .5); animation: blink 1s steps(2) infinite; }
.dots.unl i { flex: none; width: 10px; }
.card.busy .in, .card.busy .card-row .btn { opacity: .5; pointer-events: none; }

.chip { position: fixed; z-index: 30; pointer-events: none; padding: 6px 12px; border-radius: 8px; font: 15px var(--f-m); color: var(--asphalt); background: var(--hv); white-space: nowrap; transition: transform .45s cubic-bezier(.5, 0, .7, 1), opacity .45s; }

.companion { position: absolute; z-index: 2; width: 74px; transition: left .3s, top .3s; pointer-events: none; }
.c-ringo svg { width: 74px; height: auto; display: block; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .4)); animation: bob 1.4s ease-in-out infinite; }
.c-n { position: absolute; right: -10px; top: 0; background: var(--gold); color: var(--asphalt); font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.c-bub { position: absolute; left: -6px; bottom: calc(100% + 6px); width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 12px 12px 12px 2px; background: var(--ink); color: var(--asphalt); font-size: 14px; font-weight: 700; line-height: 1.3; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.c-bub.on { opacity: 1; transform: none; }

.jackpot { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 194, 61, .55), rgba(11, 17, 28, .92) 60%); animation: kflash .5s ease-out; cursor: pointer; overflow: hidden; }
@keyframes kflash { 0% { background-color: #fff3c4; } }
.k-rays { position: absolute; width: 180vmax; height: 180vmax; background: repeating-conic-gradient(rgba(255, 194, 61, .22) 0 8deg, transparent 8deg 20deg); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.k-glit i { position: absolute; width: 7px; height: 7px; background: var(--gold); border-radius: 1px; animation: glit 1.6s ease-out forwards; }
.k-glit i:nth-child(3n) { background: var(--hv); }
.k-glit i:nth-child(4n) { background: #fff; }
@keyframes glit { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(540deg); opacity: 0; } }
.k-body { position: relative; text-align: center; padding: 20px; animation: kpop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes kpop { 0% { transform: scale(.4); opacity: 0; } }
.k-emb svg { width: 120px; height: 120px; color: var(--gold); filter: drop-shadow(0 0 24px rgba(255, 194, 61, .8)); }
.k-l { color: var(--gold); margin: 8px 0 0; font-size: 14px; }
.k-h { font-size: clamp(70px, 14vw, 150px); color: var(--gold); text-shadow: 0 6px 0 #7a4f05, 0 0 40px rgba(255, 194, 61, .6); }
.k-a { font-family: var(--f-d); font-weight: 800; font-size: clamp(24px, 4vw, 36px); margin: 8px 0 4px; }
.k-s { color: var(--ink2); margin: 0; }

/* ---------- results ---------- */
.res-head { display: grid; grid-template-columns: auto 1fr; gap: 10px 34px; align-items: end; padding: 20px 0 10px; }
.res-kind { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 13px var(--f-m); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--edge2); color: var(--ink2); text-transform: uppercase; }
.tag.on { border-color: var(--mon); color: var(--mon); }
.tag.lv { background: var(--hv); color: var(--asphalt); border-color: var(--hv); }
.res-score { font-family: var(--f-m); line-height: .9; }
.res-score b { font-weight: 400; font-size: clamp(76px, 12vw, 140px); color: var(--mon); text-shadow: 0 0 30px rgba(61, 255, 154, .35); }
.res-score span { font-size: 24px; color: var(--mute); }
.res-meta { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; }
.res-meta .z { font-family: var(--f-d); font-weight: 900; font-size: clamp(34px, 5vw, 54px); text-transform: uppercase; line-height: .95; }
.res-meta .z small { display: block; font: 13px var(--f-m); color: var(--mute); text-transform: uppercase; }
.res-meta .z.nx { font-size: clamp(24px, 3vw, 32px); }
.res-meta .z.nx b { font-weight: 400; color: var(--mon); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.res-ecg { grid-column: 1 / -1; margin-top: 6px; background: #060b12; border-radius: 14px; border: 1px solid rgba(61, 255, 154, .2); padding: 10px 6px 4px; overflow: hidden; position: relative;
  background-image: linear-gradient(rgba(61, 255, 154, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 255, 154, .06) 1px, transparent 1px); background-size: 20px 20px; }
.res-ecg svg { width: 100%; height: auto; display: block; }
.res-ecg .base { fill: none; stroke: var(--mon); stroke-width: 2; opacity: .6; }
.res-ecg .bt { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.res-ecg text { font: 12px var(--f-m); fill: var(--mute); }
.res-share { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin: 22px 0; padding: 18px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--edge2); }
.res-share pre { margin: 0; font: 15px/1.5 var(--f-m); white-space: pre-wrap; color: var(--ink); padding: 12px 16px; background: rgba(0, 0, 0, .25); border-radius: 10px; }
.res-share .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.res-share .note { flex-basis: 100%; font-size: 14px; color: var(--ink2); margin: 0; }
.res-list { display: flex; flex-direction: column; gap: 6px; }
.ri { border-radius: 10px; background: var(--panel2); border: 1px solid var(--edge2); border-left: 4px solid var(--c, var(--miss)); padding: 7px 14px 7px 12px; }
.ri-top { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; }
.ri-top .emb { width: 30px; height: 30px; color: var(--c); }
.ri-mid { min-width: 0; }
.ri-q { font-size: 13px; line-height: 1.25; color: var(--mute); margin: 0; display: flex; align-items: center; gap: 6px; }
.ri-q svg { width: 13px; height: 13px; flex: none; }
.ri-a { font-family: var(--f-d); font-weight: 800; font-size: 19px; line-height: 1.1; margin: 1px 0 0; }
.ri-a.miss { color: var(--mute); font-weight: 600; }
.ri-t { font-size: 11.5px; color: var(--c); font-family: var(--f-m); text-transform: uppercase; }
.ri-p { font: 20px var(--f-m); color: var(--c); text-align: right; }
.ri-crowd { font-size: 12.5px; line-height: 1.3; color: var(--ink2); margin: 4px 0 0 42px; }
.ri-crowd:empty { display: none; }
details.ri-all { margin: 3px 0 0 42px; }
details.ri-all summary { cursor: pointer; font: 12.5px var(--f-m); color: var(--hv); list-style: none; }
details.ri-all summary::-webkit-details-marker { display: none; }
details.ri-all summary::before { content: "▸ "; }
details.ri-all[open] summary::before { content: "▾ "; }
.all-t { margin-top: 6px; }
.all-t h4 { margin: 8px 0 3px; font: 13px var(--f-m); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.all-t h4 .emb { width: 18px; height: 18px; }
.all-t p { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.5; }
.all-t p.all-deep { margin-top: 8px; font-size: 13px; font-style: italic; }
.all-t p mark { background: rgba(215, 255, 60, .2); color: var(--ink); border-radius: 3px; padding: 0 3px; }
.res-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- stats ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.tile { padding: 14px 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--edge2); }
.tile small { display: block; font: 12px var(--f-m); color: var(--mute); text-transform: uppercase; }
.tile b { display: block; font: 34px/1.1 var(--f-m); font-weight: 400; color: var(--mon); margin-top: 4px; }
.tile b.t { font: 900 26px/1.1 var(--f-d); text-transform: uppercase; color: var(--ink); }
.panel { margin-top: 18px; padding: 18px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--edge2); }
.panel h3 { margin: 0 0 12px; font-family: var(--f-d); font-weight: 900; font-size: 24px; text-transform: uppercase; }
.mix { display: flex; height: 26px; border-radius: 7px; overflow: hidden; gap: 2px; }
.mix i { background: var(--c); min-width: 2px; }
.mix-k { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font: 13px var(--f-m); color: var(--ink2); }
.mix-k span { display: inline-flex; align-items: center; gap: 6px; }
.mix-k i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.lv-rows { display: grid; gap: 6px; }
.lv-row { display: grid; grid-template-columns: 160px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; }
.lv-row .bar { height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.lv-row .bar i { display: block; height: 100%; background: var(--hv); border-radius: 3px; }
.lv-row b { font: 14px var(--f-m); font-weight: 400; text-align: right; color: var(--ink2); }
.days14 { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 130px; }
.days14 .d { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.days14 .d i { width: 100%; border-radius: 4px 4px 1px 1px; background: var(--mon); min-height: 2px; opacity: .85; }
.days14 .d i.none { background: rgba(255, 255, 255, .08); }
.days14 .d small { font: 11px var(--f-m); color: var(--mute); }

/* ---------- account ---------- */
.acct-box { max-width: 520px; padding: 22px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--edge2); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button { flex: 1; background: none; border: 1px solid var(--edge2); border-radius: 9px; padding: 8px; font: 800 16px var(--f-d); text-transform: uppercase; color: var(--ink2); }
.tabs button[aria-selected="true"] { background: var(--hv); color: var(--asphalt); border-color: var(--hv); }
.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.fld span { font: 13px var(--f-m); color: var(--mute); text-transform: uppercase; }
.fld input { font: 17px var(--f-b); color: var(--ink); background: rgba(4, 8, 14, .7); border: 1px solid var(--edge2); border-radius: 9px; padding: 11px 12px; }
.fld input:focus { outline: none; border-color: var(--hv); }
.form-msg { min-height: 1.4em; font-size: 14.5px; margin: 4px 0 12px; color: var(--ink2); }
.form-msg.bad { color: #ff8f97; }
.form-msg.ok { color: var(--mon); }
.crew { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.crew .ringo { width: 90px; height: auto; }
.crew h3 { margin: 0; font-family: var(--f-d); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; }
.crew p { margin: 4px 0 0; color: var(--ink2); font-size: 14.5px; }
.acct-sec { border-top: 1px solid var(--edge2); padding-top: 16px; margin-top: 16px; }
.acct-sec h4 { margin: 0 0 10px; font: 13px var(--f-m); color: var(--mute); text-transform: uppercase; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row .fld { flex: 1 1 200px; margin: 0; }

/* ---------- dialog + toast ---------- */
dialog { border: 0; padding: 0; background: none; color: var(--ink); max-width: min(620px, calc(100% - 24px)); }
dialog::backdrop { background: rgba(4, 8, 14, .72); backdrop-filter: blur(4px); }
.dlg { position: relative; padding: 26px 26px 22px; border-radius: 18px; background: var(--navy); border: 1px solid var(--edge); max-height: 88vh; overflow: auto; }
.dlg-x { position: absolute; right: 14px; top: 14px; }
.dlg-ringo { float: right; width: 92px; margin: 18px 6px 4px 12px; }
.dlg-ringo svg { width: 100%; height: auto; }
.how { padding-left: 20px; margin: 14px 0; }
.how li { margin-bottom: 8px; color: var(--ink2); }
.how b { color: var(--ink); }
.kbd { font: 13px var(--f-m); padding: 1px 6px; border-radius: 4px; background: var(--hv); color: var(--asphalt); }
/* ---------- share with a friend: side tab + slide-out panel ---------- */
.share-tab {
  position: fixed; right: 0; top: 50%; z-index: 30; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 14px 8px 16px; border: 0; border-radius: 12px 0 0 12px; background: var(--hv); color: #101806;
  box-shadow: -3px 4px 0 var(--hv-d), 0 10px 26px -8px rgba(0, 0, 0, .6); transition: padding .15s, background .15s;
}
.share-tab-l { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 16px/1 var(--f-d); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.share-tab:hover { padding-right: 12px; }
.share-tab.on { background: var(--ink); box-shadow: -3px 4px 0 var(--mute), 0 10px 26px -8px rgba(0, 0, 0, .6); }
.share-tab svg.ico { width: 18px; height: 18px; }
.share-panel {
  position: fixed; right: 52px; top: 50%; z-index: 31; transform: translateY(-50%); width: min(360px, calc(100vw - 72px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 22px 20px 20px; border-radius: 16px; background: var(--navy); border: 1px solid var(--edge); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .75);
  animation: shareIn .22s ease-out;
}
@keyframes shareIn { from { opacity: 0; transform: translate(14px, -50%); } }
.share-panel .eyebrow { margin-bottom: 12px; }
.share-panel .display.sm { font-size: 32px; margin-right: 40px; }
.share-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; }
.share-p { margin: 10px 0 14px; color: var(--ink2); font-size: 15.5px; line-height: 1.45; }
.share-prev { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--edge2); }
.share-url { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; padding: 9px 12px; border-radius: 9px; background: rgba(61, 255, 154, .06); border: 1px solid rgba(61, 255, 154, .25); color: var(--mon); font-size: 16px; }
.share-url svg.ico { width: 17px; height: 17px; }
.share-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-btns .btn { justify-content: center; text-decoration: none; font-size: 17px; padding: 10px 12px 9px; }
.share-btns #share-native, .share-btns #share-copy { grid-column: 1 / -1; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; transition: .25s; padding: 11px 18px; border-radius: 10px; background: var(--ink); color: var(--asphalt); font-weight: 700; box-shadow: 0 8px 0 rgba(0, 0, 0, .3); pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- laptop / desktop results: every call on one screen at 100% zoom ---------- */
/* each answer card collapses to two lines: the call on top, answer + tier + crowd underneath */
@media (min-width: 761px) {
  .ri { display: grid; grid-template-columns: 30px auto auto minmax(0, 1fr) auto auto; column-gap: 10px; row-gap: 1px; align-items: baseline; }
  .ri-top, .ri-mid { display: contents; }
  .ri-top .emb { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .ri-q { grid-column: 2 / 5; grid-row: 1; min-width: 0; }
  details.ri-all { grid-column: 5; grid-row: 1; justify-self: end; margin: 0; }
  details.ri-all[open] { grid-column: 2 / -1; grid-row: 3; justify-self: stretch; margin-top: 3px; }
  details.ri-all summary { white-space: nowrap; }
  .ri-a { grid-column: 2; grid-row: 2; margin: 0; }
  .ri-t { grid-column: 3; grid-row: 2; }
  .ri-crowd { grid-column: 4 / 6; grid-row: 2; margin: 0; }
  .ri-p { grid-column: 6; grid-row: 1 / 3; align-self: center; padding-left: 6px; }
}
/* wide screens: compact header (score | stop | trace in one row), share box beside the list */
@media (min-width: 1100px) {
  #v-res { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 340px); column-gap: 22px; align-items: start; }
  .res-head { grid-column: 1 / -1; grid-template-columns: auto auto minmax(260px, 1fr); gap: 8px 30px; align-items: center; padding: 10px 0 14px; }
  .res-score b { font-size: clamp(76px, 8vw, 112px); }
  .res-meta { padding-bottom: 0; }
  .res-meta .z { font-size: clamp(28px, 3.2vw, 42px); }
  .res-meta .z.nx { font-size: clamp(20px, 2vw, 26px); }
  .res-ecg { grid-column: 3; grid-row: 2; margin-top: 0; padding: 6px 6px 2px; }
  .res-ecg svg { max-height: 126px; }
  .res-list { grid-column: 1; grid-row: 2; }
  .res-share { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 14px; position: sticky; top: 14px; }
  .res-share pre { font-size: 14px; padding: 10px 12px; }
  .res-share .acts { gap: 8px; }
  .res-share .acts .btn { font-size: 16px; padding: 9px 12px 8px; }
  .res-share .acts .btn.primary { flex-basis: 100%; justify-content: center; }
  .res-share .note { font-size: 13px; }
  .res-foot { grid-column: 1 / -1; margin-top: 16px; }
}
/* short laptop screens (e.g. 1366x768): squeeze the header a bit more */
@media (min-width: 1100px) and (max-height: 760px) {
  .page#v-res { padding-top: 0; }
  .res-head { padding: 4px 0 10px; }
  .res-score b { font-size: clamp(64px, 6.4vw, 92px); }
  .res-meta { gap: 2px; }
  .res-meta .z { font-size: clamp(24px, 2.6vw, 34px); }
  .res-ecg svg { max-height: 96px; }
  .ri { padding-top: 5px; padding-bottom: 5px; }
}

/* ---------- responsive ---------- */
/* short phones (e.g. iPhone SE): tighten the intro so the rig still fits on the first screen */
@media (max-width: 600px) and (max-height: 760px) {
  .hero { gap: 6px; padding-top: 2px; }
  .hero .eyebrow { font-size: 12px; padding: 3px 8px; margin-bottom: 6px; }
  .wordmark { font-size: 48px; }
  .tagline { font-size: 24px; }
  .lede { font-size: 14.5px; line-height: 1.4; margin: 8px auto 10px; }
  .hero .btn.big { font-size: 19px; padding: 11px 20px 10px; }
  .hero-status { font-size: 12px; }
  .hero .next-run { margin-top: 4px; padding: 5px 12px 4px; row-gap: 0; }
  .hero .next-run b { font-size: 20px; }
  .hero .next-run .nr-s { display: none; }
  .hero-stage { min-height: 150px; }
}
@media (max-width: 900px) {
  /* narrower screens (and vertical video crops): a taller stage with the Ringos framing the rig */
  .hero-art { width: min(100%, 560px, 150cqh); aspect-ratio: 1.5; }
  .art-road { height: 22%; }
  .art-rig { left: 14%; right: 14%; bottom: 17%; }
  .ringo-float { width: 18%; }
  .ringo-float.k1 { left: 0; top: 2%; bottom: auto; }
  .ringo-float.k2 { left: 41%; top: -8%; width: 17%; }
  .ringo-float.k3 { right: 0; top: 4%; }
  .ringo-float.k4 { right: 1%; bottom: 0; width: 15%; }
  .modes { grid-template-columns: 1fr 1fr; }
  .mode.m-daily { grid-column: 1 / -1; grid-row: auto; }
  .ladder { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .ladder-list { grid-template-columns: repeat(6, 1fr); }
  .ladder-list > li { grid-column: span 2; min-height: 172px; }
  .ladder-list > li:nth-child(n+4) { grid-column: span 3; }
  .ladder-list.mini { grid-template-columns: repeat(5, 1fr); }
  .ladder-list.mini > li { grid-column: auto; }
  .res-share { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* keep the hero text clear of the share tab pinned to the right edge */
  .hero .lede { padding: 0 24px; max-width: 30em; }
  .about { grid-template-columns: 1fr; }
  .about-ringo { width: 120px; }
  .about.creator { grid-template-columns: 96px 1fr; gap: 18px; padding: 20px; align-items: start; }
  .creator .eyebrow { font-size: 17px; padding: 6px 10px; }
  .res-head { grid-template-columns: 1fr; }
  .hud-dist .zone { display: none; }
  .hud-run { display: none; }
}
@media (max-width: 600px) {
  .streak-chip { height: 38px; min-width: 38px; padding: 0 9px 0 7px; font-size: 18px; }
  .share-tab { top: auto; bottom: 96px; transform: none; padding: 12px 6px 13px; gap: 7px; }
  .share-tab-l { font-size: 14px; }
  .share-panel { right: 12px; left: 12px; width: auto; top: auto; bottom: 16px; transform: none; max-height: calc(100vh - 90px); animation-name: shareUp; }
  @keyframes shareUp { from { opacity: 0; transform: translateY(14px); } }
  body { font-size: 16px; }
  .brand-word { font-size: 21px; }
  :root { --top-h: 63px; }
  .hero .next-run { grid-template-columns: auto auto; }
  .hero .next-run .nr-s { grid-column: 1 / -1; }
  .brand-ringo svg { width: 36px; height: 42px; }
  .ibtn { width: 38px; height: 38px; }
  .card { padding: 18px 14px 12px; top: calc(max(10px, env(safe-area-inset-top)) + 66px); }
  .q { font-size: 25px; margin: 8px 0 12px; }
  .in input { font-size: 17px; padding: 11px 0; }
  .ladder-list { grid-template-columns: 1fr 1fr; }
  .ladder-list > li, .ladder-list > li:nth-child(n+4) { grid-column: auto; min-height: 168px; }
  .ladder-list > li:nth-child(5) { grid-column: 1 / -1; min-height: 0; }
  .ladder-list.mini > li, .ladder-list.mini > li:nth-child(5) { grid-column: auto; }
  .lv-row { grid-template-columns: 120px 1fr 30px; }
  /* results: compact answer cards so all seven calls fit on (or close to) one phone screen */
  .res-list { gap: 4px; }
  .ri { padding: 5px 9px 5px; border-radius: 8px; border-left-width: 3px; }
  .ri-top { grid-template-columns: 22px 1fr auto; gap: 7px; }
  .ri-top .emb { width: 22px; height: 22px; }
  .ri-mid { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; min-width: 0; }
  .ri-q { flex-basis: 100%; font-size: 11px; line-height: 1.2; gap: 4px; }
  .ri-q svg { width: 11px; height: 11px; flex: none; }
  .ri-a { font-size: 15.5px; line-height: 1.1; margin: 0; }
  .ri-t { font-size: 10px; }
  .ri-p { font-size: 15px; }
  .ri-crowd { font-size: 11px; line-height: 1.25; margin: 2px 0 0; }
  details.ri-all { margin: 1px 0 0; }
  details.ri-all summary { font-size: 11px; }
  .all-t { margin-top: 4px; }
  .all-t h4 { font-size: 11px; margin: 6px 0 2px; }
  .all-t p { font-size: 12px; line-height: 1.35; margin: 0 0 3px; }
  .companion { width: 56px; }
  .c-ringo svg { width: 56px; }
  /* shift briefing: drop the stacked bottom margins so the dialog fits small screens */
  .dlg { padding: 20px 18px 18px; max-height: 88dvh; }
  .dlg-ringo { width: 72px; margin: 14px 0 0 10px; }
  .how { margin: 12px 0 10px; }
  .how li { margin-bottom: 6px; }
  .how li:last-child { margin-bottom: 0; }
  .ladder-list.mini { margin: 10px 0; }
  .ladder-list.mini li { padding: 8px 3px; }
  .ladder-list.mini li b { font-size: min(12.5px, 3.2vw); letter-spacing: 0; }
  .ladder-list.mini .lad-foot > span { font-size: min(14px, 3.5vw) !important; white-space: nowrap; }
  #how .fine { margin: 0 0 14px; }
  #how .btn { width: 100%; }
}
@media (max-width: 420px) {
  .modes { grid-template-columns: 1fr; }
  .top-nav { gap: 4px; }
  .brand { gap: 7px; }
  .brand-word { font-size: 18px; letter-spacing: .02em; }
  .brand-word b { padding: 1px 4px 0; margin-right: 2px; }
  .brand-ringo svg { width: 30px; height: 35px; }
  .ibtn { width: 34px; height: 34px; }
  .streak-chip { height: 34px; min-width: 34px; padding: 0 7px 0 5px; gap: 2px; font-size: 17px; border-radius: 10px; }
  .streak-chip svg.ico { width: 17px; height: 17px; }
  .hud-dist b { font-size: 22px; }
  .t-ecg { width: 64px; }
  .days14 { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- community: the crew room ---------- */
.mode.m-comm { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 22px; row-gap: 4px; align-items: center;
  background: linear-gradient(100deg, rgba(61, 255, 154, .10), transparent 55%), var(--panel2); border-color: rgba(61, 255, 154, .28); }
.mode.m-comm .mode-tag { grid-column: 2; grid-row: 1; }
.mode.m-comm .mode-ico { grid-column: 1; grid-row: 1 / 4; margin: 0 4px; color: var(--mon); }
.mode.m-comm .mode-ico svg { width: 44px; height: 44px; }
.mode.m-comm .mode-h { grid-column: 2; grid-row: 2; }
.mode.m-comm .mode-p { grid-column: 2; grid-row: 3; max-width: 46em; }
.mode.m-comm .mode-go { grid-column: 3; grid-row: 1 / 4; margin: 0; padding: 0; text-align: right; max-width: 20em; color: var(--mon); }
.mode.m-comm .mode-tag { color: var(--mon); }
.mode.m-comm:hover { border-color: var(--mon); }
#v-comm .page-head .eyebrow { margin: 0; }

.ctabs { max-width: 760px; }
.ctabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ctabs button svg { width: 17px; height: 17px; }
#comm { max-width: 760px; }

.c-lock { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; padding: 26px; border-radius: var(--r); border: 1px dashed rgba(255, 58, 70, .4); background: linear-gradient(160deg, rgba(255, 58, 70, .10), rgba(59, 130, 255, .08) 70%), var(--panel2); }
.c-lock-ringo svg { width: 100%; height: auto; display: block; }
/* poke Ringo and he gets cross */
.poke { position: relative; display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; align-self: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.poke:focus-visible { outline: 2px solid var(--hv); outline-offset: 4px; border-radius: 12px; }
.poke svg { transform-origin: 50% 90%; }
.poke .poke-b { left: 50%; bottom: calc(100% + 6px); width: max-content; max-width: 220px; font-size: 14px; text-align: left; transform: translate(-30px, 6px) scale(.96); }
.poke .poke-b.on { transform: translate(-30px, 0); }
.poke.mad3 .poke-b { background: #ff3a46; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.poke.mad3 .poke-b::after { border-top-color: #ff3a46; }
.poke.mad1 svg { animation: huff .35s ease-out; }
.poke.mad2 svg { animation: stomp .45s ease-out; }
.poke.mad3 svg { animation: rage .5s linear; }
.ringo .vein { transform-box: fill-box; transform-origin: center; animation: throb .6s ease-in-out infinite; }
.ringo .fume .fl, .ringo .fume .fr { animation: puff .9s ease-out infinite; }
.ringo .fume .fr { animation-delay: -.45s; }
@keyframes huff { 30% { transform: scale(1.06, .94); } 60% { transform: scale(.98, 1.03); } }
@keyframes stomp { 20% { transform: translateY(-10px) rotate(-4deg); } 45% { transform: translateY(0) scale(1.08, .9); } 70% { transform: rotate(3deg); } }
@keyframes rage { 10%, 50%, 90% { transform: translateX(-5px) rotate(-3deg); } 30%, 70% { transform: translateX(5px) rotate(3deg); } }
@keyframes throb { 50% { transform: scale(1.25); } }
@keyframes puff { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px) scale(1.15); } }
.c-lock .eyebrow { color: var(--yel); border-color: rgba(245, 217, 10, .3); background: rgba(245, 217, 10, .06); margin-bottom: 12px; font-size: 12px; }
.c-lock .eyebrow svg { width: 14px; height: 14px; }
.c-lock h2 { margin-bottom: 10px; }
.c-lock p { color: var(--ink2); margin: 0 0 16px; }
.c-lock-acts { display: flex; flex-wrap: wrap; gap: 10px; }

.cmp { padding: 16px; border-radius: var(--r); background: var(--panel2); border: 1px solid var(--edge2); }
.cmp-join { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; border-color: rgba(61, 255, 154, .3); }
.cmp-ringo svg { width: 100%; height: auto; display: block; }
.cmp-join h3 { margin: 0 0 4px; font-family: var(--f-d); font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; }
.cmp-join p { margin: 0 0 12px; color: var(--ink2); font-size: 15px; }
.cmp-who { font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.cmp-who b { color: var(--hv); font-weight: 400; }
.lnk { background: none; border: 0; padding: 0; color: var(--hv); text-decoration: underline; font: inherit; }
.ctags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ctags button { background: none; border: 1px solid var(--edge2); border-radius: 999px; padding: 4px 12px; font: 13px var(--f-m); text-transform: uppercase; color: var(--ink2); }
.ctags button[aria-checked="true"] { background: var(--mon); border-color: var(--mon); color: var(--asphalt); }
.cmp textarea { display: block; width: 100%; resize: vertical; min-height: 84px; font: 16px/1.45 var(--f-b); color: var(--ink); background: rgba(4, 8, 14, .7); border: 1px solid var(--edge2); border-radius: 10px; padding: 11px 12px; }
.cmp textarea:focus { outline: none; border-color: var(--hv); }
.cmp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.cmp-n { margin-left: auto; font-size: 12px; color: var(--mute); }
.cmp .form-msg { margin: 8px 0 0; min-height: 0; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--hv); margin: 0; }

.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.feed-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.feed { display: grid; gap: 10px; }
.feed-empty { padding: 22px; border-radius: var(--r); border: 1px dashed var(--edge2); color: var(--ink2); margin: 0; text-align: center; }
.feed-empty p { margin: 0; }
.feed-empty.bad { color: #ff8f97; }
.feed-more { justify-self: center; margin-top: 6px; }
.post { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 16px 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--edge2); }
.post-av { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font: 900 22px/1 var(--f-d); color: var(--asphalt);
  background: hsl(var(--h) 75% 66%); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.post-main { min-width: 0; }
.post header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.post header b { font-weight: 700; }
.post header time { font-size: 12px; color: var(--mute); margin-left: auto; }
.ptag { font: 11px var(--f-m); text-transform: uppercase; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--edge2); color: var(--ink2); }
.ptag.t-idea { color: var(--yel); border-color: rgba(245, 217, 10, .4); }
.ptag.t-results { color: var(--mon); border-color: rgba(61, 255, 154, .4); }
.post-body { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.post-res { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .25); font-size: 13px; }
.post-res .mono { color: var(--mon); }
.post-res .lvl { font: 800 14px var(--f-d); text-transform: uppercase; letter-spacing: .04em; color: var(--hv); }
.post-res .g { display: inline-flex; gap: 3px; }
.post-res .g i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.post footer { display: flex; gap: 6px; margin-top: 8px; }
.pbtn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid transparent; border-radius: 8px; padding: 3px 8px; font: 13px var(--f-m); color: var(--mute); }
.pbtn svg { width: 16px; height: 16px; }
.pbtn:hover { color: var(--ink); border-color: var(--edge2); }
.pbtn.on { color: var(--mon); border-color: rgba(61, 255, 154, .35); background: rgba(61, 255, 154, .07); }
.pbtn b { font-weight: 400; color: var(--ink); }
.pbtn.del:hover { color: #ff8f97; }

/* the crew chat: one open channel for everyone */
.c-intro { display: grid; grid-template-columns: 118px 1fr; gap: 22px; align-items: center; margin-bottom: 14px; padding: 22px 24px; border-radius: var(--r); border: 1px solid rgba(61, 255, 154, .28);
  background: linear-gradient(160deg, rgba(61, 255, 154, .10), rgba(59, 130, 255, .08) 70%), var(--panel2); }
.c-intro-ringo svg { width: 100%; height: auto; display: block; }
.c-intro .eyebrow { margin-bottom: 10px; font-size: 12px; }
.c-intro .eyebrow svg { width: 14px; height: 14px; color: var(--red); animation: blink 1.6s steps(2, start) infinite; }
.c-intro h2 { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 34px); }
.c-intro p { color: var(--ink2); margin: 0 0 8px; }
.c-intro p.fine { margin: 0; color: var(--mute); }
@keyframes blink { 50% { opacity: .35; } }
.cmp-who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.cmp-who label { cursor: pointer; }
.c-name { flex: 0 1 220px; min-width: 140px; font: 15px var(--f-b); color: var(--hv); background: rgba(4, 8, 14, .7); border: 1px solid var(--edge2); border-radius: 8px; padding: 6px 10px; }
.c-name:focus { outline: none; border-color: var(--hv); }
.c-name::placeholder { color: var(--mute); }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 11px var(--f-m); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--edge2); color: var(--ink2); }
.badge svg { width: 13px; height: 13px; }
.badge.b-card { color: var(--mon); border-color: rgba(61, 255, 154, .4); }
.cmp-alt { font: 13px var(--f-b); color: var(--mute); text-transform: none; }
.cmp-opts { display: flex; flex-direction: column; gap: 6px; }
.chk small { color: var(--mute); font-size: 12.5px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ptag.t-card { color: var(--mon); border-color: rgba(61, 255, 154, .4); }
.ptag.t-spoil { color: var(--yel); border-color: rgba(245, 217, 10, .4); }
.spoil { display: flex; align-items: center; gap: 12px; width: 100%; margin: 6px 0 0; padding: 12px 14px; border-radius: 10px; text-align: left; cursor: pointer; color: var(--ink2); font: 14px var(--f-b);
  border: 1px dashed rgba(245, 217, 10, .35); background: repeating-linear-gradient(135deg, rgba(245, 217, 10, .06) 0 10px, rgba(0, 0, 0, .12) 10px 20px); }
.spoil:hover { border-color: var(--yel); }
.spoil svg { flex: none; width: 20px; height: 20px; color: var(--yel); }
.spoil b { display: block; color: var(--ink); font-weight: 700; }

/* write to Salome: a drawer that pulls out under About the Creator */
.contact { margin-top: 20px; border-radius: var(--r); border: 1px solid var(--edge); background: var(--panel2); overflow: hidden; scroll-margin-top: calc(var(--top-h, 70px) + 16px); }
.contact-pull { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; padding: 20px 26px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.contact-pull::-webkit-details-marker { display: none; }
.contact-pull:focus-visible { outline: 2px solid var(--hv); outline-offset: -4px; border-radius: var(--r); }
.contact-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: var(--hv); color: #101806; box-shadow: 0 4px 0 var(--hv-d); }
.contact-ico svg { width: 26px; height: 26px; }
.contact-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.contact-t .eyebrow { margin: 0 0 2px; font-size: 12px; padding: 3px 8px; }
.contact-t b { font-weight: 900; font-size: clamp(24px, 2.6vw, 28px); line-height: 1; text-transform: uppercase; }
.contact-t small { color: var(--ink2); font-size: 15px; }
/* the drawer handle: a little pull bar that flips when the drawer is out */
.contact-handle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--edge2); background: rgba(4, 8, 14, .5); transition: border-color .2s, transform .3s; }
.contact-handle i { width: 12px; height: 12px; border-right: 2.5px solid var(--hv); border-bottom: 2.5px solid var(--hv); transform: translateY(-3px) rotate(45deg); transition: transform .3s; }
.contact-pull:hover .contact-handle { border-color: var(--hv); }
.contact[open] .contact-handle i { transform: translateY(3px) rotate(-135deg); }
.contact-body { padding: 0 26px 24px; border-top: 1px dashed var(--edge2); }
.contact[open] .contact-body { animation: drawer .35s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes drawer { from { opacity: 0; transform: translateY(-14px); } }
.contact-form { padding-top: 18px; }
.contact-form .row { margin-bottom: 12px; }
.contact-form .fld i { font-style: normal; text-transform: none; color: var(--mute); opacity: .8; }
.contact-form textarea { font: 16px/1.45 var(--f-b); color: var(--ink); background: rgba(4, 8, 14, .7); border: 1px solid var(--edge2); border-radius: 9px; padding: 11px 12px; resize: vertical; min-height: 120px; }
.contact-form textarea:focus { outline: none; border-color: var(--hv); }
.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.ct-topics legend { font-size: 13px; color: var(--mute); margin-bottom: 8px; padding: 0; }
.ct-topics label { position: relative; cursor: pointer; }
.ct-topics input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-topics span { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--edge2); font: 14px var(--f-m); text-transform: uppercase; color: var(--ink2); transition: background .15s, border-color .15s; }
.ct-topics input:checked + span { background: var(--mon); border-color: var(--mon); color: var(--asphalt); }
.ct-topics input:focus-visible + span { outline: 2px solid var(--hv); outline-offset: 2px; }
.ct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.ct-row .fine { margin: 0; }
.contact .form-msg { margin: 10px 0 0; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .contact[open] .contact-body, .c-intro .eyebrow svg { animation: none; } }

@media (max-width: 900px) {
  .mode.m-comm { grid-template-columns: auto 1fr; }
  .mode.m-comm .mode-go { grid-column: 1 / -1; grid-row: 4; text-align: left; max-width: none; padding-top: 10px; }
}
@media (max-width: 600px) {
  .c-lock { grid-template-columns: 1fr; padding: 20px; }
  .c-lock-ringo { width: 96px; }
  .c-intro { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; align-items: start; }
  .contact-pull { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 16px; }
  .contact-ico { width: 40px; height: 40px; border-radius: 10px; }
  .contact-ico svg { width: 20px; height: 20px; }
  .contact-handle { width: 36px; height: 36px; }
  .contact-body { padding: 0 16px 18px; }
  .ct-row .btn { width: 100%; justify-content: center; }
  .cmp-join { grid-template-columns: 64px 1fr; gap: 14px; }
  .post { grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 12px 8px; }
  .post-av { width: 32px; height: 32px; font-size: 18px; border-radius: 9px; }
  .ctabs button { font-size: 14px; }
}
@media (max-width: 420px) {
  .top-nav .nav-stats { display: none; }
  .mode.m-comm { grid-template-columns: 1fr; }
  .mode.m-comm .mode-ico { display: none; }
  .mode.m-comm .mode-tag, .mode.m-comm .mode-h, .mode.m-comm .mode-p { grid-column: 1; }
}

/* ---------- crew ID card: a vertical, laminated provider badge in the rig's livery ---------- */
.idc-slot { max-width: 520px; margin-bottom: 14px; }
.idc-wrap { max-width: 300px; margin: 0 auto; perspective: 900px; }
.idc {
  --paper: #f3f5ee; --lv: var(--t0);
  position: relative; overflow: hidden; border-radius: 20px; color: #16141c; text-align: center;
  background:
    radial-gradient(120% 60% at 100% 100%, rgba(59, 130, 255, .10), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(215, 255, 60, .22), transparent 60%),
    repeating-linear-gradient(135deg, rgba(17, 26, 43, .025) 0 2px, transparent 2px 7px), var(--paper);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 2px 0 rgba(255, 255, 255, .35), 0 26px 50px -18px rgba(0, 0, 0, .75), 0 0 0 4px rgba(215, 255, 60, .12);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d;
  animation: idcIn .6s cubic-bezier(.2, .9, .3, 1.2) both;
}
@keyframes idcIn { from { opacity: 0; transform: translateY(16px) rotate(-2deg) scale(.96); } }
.idc::before { /* the lanyard slot punched in the top */
  content: ""; position: absolute; z-index: 3; top: 8px; left: 50%; width: 46px; height: 8px; margin-left: -23px; border-radius: 6px;
  background: var(--asphalt); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .25);
}
.idc-wm { position: absolute; right: -50px; bottom: -40px; width: 190px; opacity: .06; pointer-events: none; }
.idc-wm svg { width: 100%; display: block; filter: brightness(0); }
.idc-top { position: relative; display: flex; align-items: center; gap: 8px; padding: 22px 14px 9px; background: linear-gradient(180deg, var(--navy2), var(--navy)); color: var(--ink); text-align: left; }
.idc-star { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.idc-org { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.idc-org b { font: 900 21px/0.95 var(--f-d); text-transform: uppercase; letter-spacing: .02em; }
.idc-org b::first-letter { color: var(--hv); }
.idc-org small { font: 9.5px var(--f-m); color: var(--ink2); letter-spacing: .12em; margin-top: 3px; }
.idc-kind { margin-left: auto; font-size: 10.5px; padding: 3px 6px 2px; border-radius: 5px; background: var(--hv); color: #101806; letter-spacing: .1em; box-shadow: 0 2px 0 var(--hv-d); }
.idc-checks { height: 10px; background: var(--check); background-size: 10px 10px; border-bottom: 2px solid #16141c; }

/* photo, front and centre, with the Ringo sticker slapped on its corner */
.idc-pw { position: relative; width: 68%; margin: 16px auto 0; }
.idc-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; cursor: pointer;
  border-radius: 14px; border: 3px solid #fff; background: linear-gradient(160deg, #dfe6ef, #c6d0de);
  box-shadow: 0 0 0 2px var(--lv), 0 8px 16px -8px rgba(0, 0, 0, .5);
}
.idc-photo:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.idc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idc-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.idc-sil { width: 82%; height: auto; fill: #aab6c7; display: block; }
.idc-ph-l {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-start; gap: 5px;
  padding: 5px 0 4px 10px; font-size: 10.5px; letter-spacing: .08em; color: #fff; background: rgba(17, 26, 43, .82);
}
.idc-ph-l svg { width: 13px; height: 13px; }
.idc-photo.has .idc-ph-l { opacity: 0; transition: opacity .2s; }
.idc-photo.has:hover .idc-ph-l, .idc-photo.has:focus-visible .idc-ph-l { opacity: 1; }
.idc-stk {
  position: absolute; z-index: 2; right: -17%; bottom: -5%; width: 50%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer;
  transform: rotate(12deg); transition: transform .2s; -webkit-tap-highlight-color: transparent;
}
.idc-stk svg { width: 100%; height: 100%; display: block; overflow: visible; }
.idc-stk:hover { transform: rotate(4deg) scale(1.06); }
.idc-stk:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 50%; }
.idc-stk.fresh { animation: idcSlap .7s .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.idc-stk.hop { animation: idcWiggle .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes idcSlap { from { opacity: 0; transform: rotate(-40deg) scale(2.4); } 60% { opacity: 1; } }
@keyframes idcWiggle { 30% { transform: rotate(0deg) scale(1.14); } 60% { transform: rotate(18deg) scale(.96); } }
.idc-bub {
  position: absolute; z-index: 4; right: -14%; bottom: 46%; width: 190px; padding: 8px 11px; border-radius: 12px 12px 3px 12px; text-align: left;
  background: #16141c; color: #fff; font-size: 13px; line-height: 1.3; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(6px) scale(.92); transform-origin: 90% 100%; transition: opacity .18s, transform .18s; pointer-events: none;
}
.idc-bub b { display: block; color: var(--hv); font: 800 15px/1.1 var(--f-d); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.idc-bub.on { opacity: 1; transform: none; }

/* the details underneath */
.idc-name { padding: 14px 16px 0; line-height: .92; }
.idc-name b { display: block; font-family: var(--f-d); font-weight: 900; text-transform: uppercase; overflow-wrap: anywhere; }
.idc-fn { font-size: 22px; color: #3a4152; letter-spacing: .03em; }
.idc-ln { font-size: 34px; letter-spacing: .01em; }
.idc-fn.l1 { font-size: 19px; } .idc-fn.l2 { font-size: 16px; }
.idc-ln.l1 { font-size: 27px; } .idc-ln.l2 { font-size: 21px; }
.idc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 12px 16px 0; padding-top: 10px; border-top: 1.5px dashed rgba(22, 20, 28, .18); }
.idc-dl > div { min-width: 0; }
.idc-dl dt { font-size: 9.5px; letter-spacing: .14em; color: #6c7384; margin-bottom: 3px; }
.idc-dl dd { margin: 0; }
.idc-pid { grid-column: 1 / -1; }
.idc-pid dd { display: inline-block; font-size: 18px; letter-spacing: .06em; padding: 3px 9px 2px; border-radius: 6px; background: #16141c; color: var(--hv); }
.idc-pid dd.wait { color: var(--mute); animation: idcBlink 1.1s steps(2) infinite; }
@keyframes idcBlink { 50% { opacity: .45; } }
.idc-lv { display: flex; align-items: center; justify-content: center; gap: 6px; font: 900 19px/1 var(--f-d); text-transform: uppercase; white-space: nowrap; }
.idc-lvn {
  display: grid; place-items: center; flex: none; width: 26px; height: 28px; padding-top: 1px; font: 900 15px/1 var(--f-d); color: #16141c;
  background: var(--lv); clip-path: polygon(50% 0, 100% 18%, 100% 66%, 50% 100%, 0 66%, 0 18%);
}
.idc-pts { font-size: 20px; line-height: 1.2; color: #0f7a46; white-space: nowrap; }
.idc-pts i { font-style: normal; font-size: 13px; margin-left: 2px; color: #6c7384; }
.idc-xp { position: relative; margin: 12px 16px 16px; height: 6px; border-radius: 4px; background: rgba(22, 20, 28, .1); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); }
.idc-xp i {
  display: block; height: 100%; border-radius: 4px; background: var(--lv);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 10px);
  animation: idcFill 1.1s .25s cubic-bezier(.2, .8, .2, 1) both, idcStripe 1.4s linear infinite;
}
@keyframes idcFill { from { width: 0; } }
@keyframes idcStripe { to { background-position: 20px 0; } }
.idc-sheen { /* light catching the laminate */
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent calc(var(--mx, 30%) - 22%), rgba(255, 255, 255, .7) var(--mx, 30%), transparent calc(var(--mx, 30%) + 22%));
}

.idc-note { max-width: 520px; margin: 0 0 18px; color: var(--mute); font-size: 14px; text-align: center; }
.acct-sec.first { border-top: 0; margin-top: 0; padding-top: 0; }
.acct-sec .fine { margin: -4px 0 10px; }
.idc-acts { margin-top: 12px; }
.idc-acts .btn { gap: 7px; }
.idc-acts .btn svg { width: 17px; height: 17px; }
.idc-tease { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink2); background: rgba(215, 255, 60, .06); border: 1px solid var(--edge); }
.idc-tease svg { width: 22px; height: 22px; flex: none; color: var(--hv); margin-top: 1px; }

@media (max-width: 360px) {
  .idc-wrap { max-width: 270px; }
  .idc-org b { font-size: 19px; }
  .idc-ln { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .idc, .idc-stk.fresh, .idc-stk.hop, .idc-xp i, .idc-pid dd.wait { animation: none; }
}

/* signed in: the card on the left, its settings on the right (stacked on narrow screens) */
.acct-grid { display: grid; gap: 8px 40px; align-items: start; }
.acct-card .idc-slot { margin: 0 auto 14px; }
@media (min-width: 820px) {
  .acct-grid { grid-template-columns: 320px minmax(0, 520px); }
  .acct-card { position: sticky; top: 20px; }
  .acct-card .idc-wrap { margin: 0; }
  .acct-card .idc-note { text-align: left; margin-bottom: 0; }
}

/* ---------- crew ID promo: a little ID card bobbing on the home page, tap to spin + open a sample card ---------- */
.idp-tab {
  position: fixed; left: 18px; bottom: 22px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; perspective: 500px;
  animation: idpBob 3.2s ease-in-out infinite;
}
@keyframes idpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.idp-tab:focus-visible { outline: none; }
.idp-tab:focus-visible .idp-mini { outline: 3px solid var(--blue); outline-offset: 3px; }
.idp-mini {
  position: relative; display: flex; flex-direction: column; align-items: center; width: 62px; height: 84px; overflow: hidden; border-radius: 8px;
  background: repeating-linear-gradient(135deg, rgba(17, 26, 43, .03) 0 2px, transparent 2px 6px), #f3f5ee;
  box-shadow: 0 0 0 2px rgba(215, 255, 60, .55), 0 10px 22px -6px rgba(0, 0, 0, .7);
  transform: rotate(-6deg); transition: transform .2s, box-shadow .2s; transform-style: preserve-3d;
}
.idp-tab:hover .idp-mini { transform: rotate(0deg) scale(1.07); box-shadow: 0 0 0 2px var(--hv), 0 14px 26px -6px rgba(0, 0, 0, .75); }
.idp-mini::after { /* laminate glint */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); background-size: 260% 100%; background-position: 100% 0;
  animation: idpGlint 3.2s ease-in-out infinite;
}
@keyframes idpGlint { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
.idp-mini.spin { animation: idpSpin .64s cubic-bezier(.3, .7, .3, 1.15); }
@keyframes idpSpin { from { transform: rotate(-6deg) rotateY(0deg) scale(1); } 50% { transform: rotate(0deg) rotateY(200deg) scale(1.16); } to { transform: rotate(0deg) rotateY(360deg) scale(1.07); } }
.idp-mini-top { position: relative; flex: none; width: 100%; height: 15px; background: linear-gradient(180deg, var(--navy2), var(--navy)); border-bottom: 2px solid #16141c; }
.idp-mini-top i { position: absolute; left: 50%; top: 4px; width: 16px; height: 3px; margin-left: -8px; border-radius: 2px; background: var(--asphalt); }
.idp-mini-top::after { content: ""; position: absolute; right: 5px; top: 5px; width: 10px; height: 5px; border-radius: 1.5px; background: var(--hv); }
.idp-mini-ph { display: block; width: 30px; height: 37px; margin-top: 5px; overflow: hidden; border-radius: 4px; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--t1); background: #c6d0de; }
.idp-mini-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.idp-mini-ln { display: block; width: 38px; height: 4px; margin-top: 5px; border-radius: 2px; background: #16141c; }
.idp-mini-ln.s { width: 24px; height: 3px; margin-top: 3px; background: #8a93a4; }
.idp-mini-pid { display: block; width: 42px; height: 6px; margin-top: 4px; border-radius: 2px; background: linear-gradient(var(--hv), var(--hv)) 4px 50% / 62% 2px no-repeat, #16141c; }
.idp-tab-l {
  display: flex; flex-direction: column; align-items: center; padding: 4px 8px 3px; border-radius: 7px; background: var(--hv); color: #101806;
  font: 800 12.5px/1 var(--f-d); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 3px 0 var(--hv-d);
}
.idp-tab-l b { font: inherit; font-size: 10px; opacity: .8; }
.idp-tab.on .idp-tab-l { background: var(--ink); box-shadow: 0 3px 0 var(--mute); }
.idp-tab.busy { pointer-events: none; }
.idp-panel {
  position: fixed; left: 100px; bottom: 18px; z-index: 31; width: min(350px, calc(100vw - 120px)); max-height: calc(100vh - 36px); overflow: auto;
  padding: 22px 20px 20px; border-radius: 16px; background: var(--navy); border: 1px solid var(--edge); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .75);
  animation: idpIn .24s ease-out;
}
@keyframes idpIn { from { opacity: 0; transform: translate(-14px, 6px); } }
.idp-panel .eyebrow { margin-bottom: 12px; }
.idp-panel .display.sm { font-size: 30px; margin-right: 40px; }
.idp-card .idc-wrap { max-width: 236px; }
.idp-card .idc-photo { cursor: default; }
#idp-mine:not([hidden]) ~ .idp-card .idc-photo { cursor: pointer; }
.idp-card .idc-fn { font-size: 19px; }
.idp-card .idc-ln.l2 { font-size: 19px; }
.idp-stamp {
  position: absolute; z-index: 2; top: 74px; right: 8px; padding: 3px 7px 2px; border: 2px solid rgba(206, 44, 54, .75); border-radius: 5px;
  color: rgba(206, 44, 54, .85); font-size: 12px; letter-spacing: .18em; transform: rotate(14deg); pointer-events: none; background: rgba(243, 245, 238, .6);
}
.idp-btns { display: grid; gap: 8px; margin-top: 16px; }
.idp-panel .share-x { z-index: 4; }
.idp-card { margin-top: 18px; }
.idp-card .idc-org b { font-size: 17px; }
.idp-card .idc-kind { font-size: 9.5px; padding: 3px 5px 2px; }
@media (min-width: 601px) {
  .idp-panel { width: min(620px, calc(100vw - 120px)); display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 22px; align-items: center; padding-top: 58px; }
  .idp-card { margin-top: 0; }
  .idp-card .idc-wrap { margin: 0; }
}
/* signed in: the corner becomes the player's own pocket ID (their photo, their level colour, their progress) */
.idp-tab.mine .idp-mini { box-shadow: 0 0 0 2px var(--lv, var(--t0)), 0 10px 22px -6px rgba(0, 0, 0, .7); }
.idp-tab.mine .idp-mini-top::after { background: var(--lv, var(--hv)); }
.idp-tab.mine:hover .idp-mini { box-shadow: 0 0 0 2px var(--hv), 0 14px 26px -6px rgba(0, 0, 0, .75); }
.idp-mini-ph { position: relative; }
.idp-mini-ph .idc-sil { position: absolute; left: 9%; bottom: 0; width: 82%; }
.idp-tab.mine .idp-tab-l b { opacity: .7; margin-bottom: 1px; }
.idp-lvbar { margin-top: 4px; padding: 12px 14px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--edge); }
.idp-lvrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.idp-lvrow b { font: 800 17px/1.1 var(--f-d); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.idp-lvrow span { font-size: 13px; color: var(--hv); }
.idp-lvbar .idc-xp { margin: 9px 0 8px; height: 8px; background: rgba(255, 255, 255, .1); }
.idp-next { margin: 0; font-size: 14px; color: var(--ink2); }
.idp-next b { color: var(--ink); }
.idp-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; }
.idp-stats li { padding: 9px 6px 7px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); text-align: center; font-size: 11px; color: var(--mute); }
.idp-stats b { display: block; margin-bottom: 3px; font-size: 21px; font-weight: 400; color: var(--ink); }
.idp-btns .btn { justify-content: center; gap: 8px; }
.idp-btns .btn svg.ico { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .idp-tab { left: 10px; bottom: 14px; gap: 5px; }
  .idp-mini { width: 50px; height: 68px; }
  .idp-mini-top { height: 12px; }
  .idp-mini-top i { top: 3px; }
  .idp-mini-top::after { top: 4px; right: 4px; width: 8px; height: 4px; }
  .idp-mini-ph { width: 24px; height: 30px; margin-top: 4px; }
  .idp-mini-ln { width: 30px; height: 3px; margin-top: 4px; }
  .idp-mini-ln.s { width: 19px; }
  .idp-mini-pid { width: 34px; height: 5px; margin-top: 3px; }
  .idp-tab-l { font-size: 11px; padding: 3px 6px 2px; }
  .idp-tab-l b { font-size: 9px; }
  .idp-panel { left: 12px; right: 12px; width: auto; bottom: 16px; max-height: calc(100vh - 90px); }
  .idp-card .idc-wrap { max-width: 220px; }
}
