/* Layout: an instrument panel. One column of quiet panels on the app's own dark surfaces, one accent
   taken from the GPU (or the edition), the chamfered corner as the only gaming shape cue, every number
   in a tabular mono face. No gradients as decoration, no glow: same rules as the app. */
:root {
  --bg: #0D0F12;
  --surface: #14171C;
  --card: #1A1E24;
  --card-hi: #222730;
  --line: #2C323C;
  --line-hi: #3A4250;
  --fg: #E6E9EE;
  --muted: #9AA3AF;
  --faint: #6B7480;
  --pat: rgba(230, 233, 238, .06);
  --good: #2BD67B;
  --warn: #FFB020;
  --bad: #FF4D57;
  --bar: rgba(13, 15, 18, .82);

  --acc-d: #FF3D57; --acc-l: #E0193A; --on-d: #FFFFFF; --on-l: #FFFFFF; --cont-d: #3A151B; --cont-l: #FFE3E7;
  --accent: var(--acc-d);
  --on-accent: var(--on-d);
  --accent-cont: var(--cont-d);

  --f-display: 'Chakra Petch', 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ch: 14px;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F5F7; --surface: #FFFFFF; --card: #FFFFFF; --card-hi: #ECEEF1; --line: #E1E4E8; --line-hi: #C9CED6;
    --fg: #15181D; --muted: #5B6470; --faint: #858D98; --pat: rgba(21, 24, 29, .06);
    --good: #0E9F55; --warn: #B26A00; --bad: #D0263A; --bar: rgba(244, 245, 247, .86);
    --accent: var(--acc-l); --on-accent: var(--on-l); --accent-cont: var(--cont-l);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F5F7; --surface: #FFFFFF; --card: #FFFFFF; --card-hi: #ECEEF1; --line: #E1E4E8; --line-hi: #C9CED6;
  --fg: #15181D; --muted: #5B6470; --faint: #858D98; --pat: rgba(21, 24, 29, .06);
  --good: #0E9F55; --warn: #B26A00; --bad: #D0263A; --bar: rgba(244, 245, 247, .86);
  --accent: var(--acc-l); --on-accent: var(--on-l); --accent-cont: var(--cont-l);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0D0F12; --surface: #14171C; --card: #1A1E24; --card-hi: #222730; --line: #2C323C; --line-hi: #3A4250;
  --fg: #E6E9EE; --muted: #9AA3AF; --faint: #6B7480; --pat: rgba(230, 233, 238, .06);
  --good: #2BD67B; --warn: #FFB020; --bad: #FF4D57; --bar: rgba(13, 15, 18, .82);
  --accent: var(--acc-d); --on-accent: var(--on-d); --accent-cont: var(--cont-d);
  color-scheme: dark;
}

/* Accents: the GPU vendors of the app, plus the edition accents */
:root[data-accent="nvidia"]  { --acc-d: #2BD67B; --acc-l: #0E9F55; --on-d: #06210F; --on-l: #FFFFFF; --cont-d: #10301F; --cont-l: #DDF6E8; }
:root[data-accent="mali"]    { --acc-d: #1DE9B6; --acc-l: #00897B; --on-d: #04211B; --on-l: #FFFFFF; --cont-d: #0E312A; --cont-l: #D9F3EF; }
:root[data-accent="powervr"] { --acc-d: #C77DFF; --acc-l: #8E24AA; --on-d: #1F0A2E; --on-l: #FFFFFF; --cont-d: #2D1A3D; --cont-l: #F3E1F8; }
:root[data-accent="volt"]    { --acc-d: #F2E600; --acc-l: #8F8800; --on-d: #1A1900; --on-l: #FFFFFF; --cont-d: #2E2C08; --cont-l: #F7F4C6; }
:root[data-accent="azure"]   { --acc-d: #3D8BFF; --acc-l: #1A6FE0; --on-d: #FFFFFF; --on-l: #FFFFFF; --cont-d: #15243A; --cont-l: #DCE9FF; }
:root[data-accent="ember"]   { --acc-d: #FF7A1A; --acc-l: #D95A00; --on-d: #1F0E00; --on-l: #FFFFFF; --cont-d: #342013; --cont-l: #FFE7D6; }
:root[data-accent="stealth"] { --acc-d: #E6E9EE; --acc-l: #15181D; --on-d: #0D0F12; --on-l: #FFFFFF; --cont-d: #2A2F37; --cont-l: #E3E6EA; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.08; font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: .95rem; font-weight: 600; }
code, .mono { font-family: var(--f-mono); font-size: .92em; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 8px 14px; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font: 500 .76rem/1.4 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.14rem); max-width: 62ch; }

/* Chamfer: the corner is cut by clip-path, the cut edge drawn back with a hairline */
.chamfer {
  position: relative;
  --edge: var(--line);
  clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
}
.chamfer::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: var(--ch); height: var(--ch);
  background: linear-gradient(45deg, transparent calc(50% - 1px), var(--edge) calc(50% - 1px), var(--edge) calc(50% + 1px), transparent calc(50% + 1px));
  pointer-events: none;
  transition: background .25s;
}

/* ---------------------------------------------------------------- buttons, chips, badges */
.btn {
  --bch: 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 600 .98rem/1 var(--f-body);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - var(--bch)) 0, 100% var(--bch), 100% 100%, 0 100%);
  transition: transform .18s ease, background-color .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-hi); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost .ico { transition: transform .2s; }
.btn-ghost:hover .ico { transform: translateX(3px); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.is-soon { background: var(--card-hi); color: var(--muted); cursor: default; }
.is-soon:hover { transform: none; }

.iconbtn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.iconbtn:hover { border-color: var(--accent); color: var(--accent); }
.iconbtn .ico { width: 20px; height: 20px; }
.ico-moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .ico-sun { display: none; } :root:not([data-theme="dark"]) .ico-moon { display: block; } }
:root[data-theme="light"] .ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 .86rem/1 var(--f-body);
  padding: 9px 14px; min-height: 36px;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { color: var(--fg); border-color: var(--line-hi); }
.chip[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center;
  font: 500 .7rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 4px;
  color: var(--muted); background: var(--card-hi);
  white-space: nowrap;
}
.b-ok { color: var(--good); }
.b-warn { color: var(--warn); }
.b-launch { color: var(--on-accent); background: var(--accent); }
.b-drop { color: var(--accent); background: var(--accent-cont); }
.b-later { color: var(--faint); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .78rem/1 var(--f-mono);
  padding: 7px 11px; border-radius: 999px;
  background: var(--card-hi); color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill-live { color: var(--good); }
.pill-live .dot { background: var(--good); animation: blink 1.6s infinite; }
.pill-off { color: var(--muted); }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.textlink .ico { width: 17px; height: 17px; transition: transform .2s; }
.textlink:hover .ico { transform: translateX(4px); }

.ico { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.08rem/1 var(--f-display); letter-spacing: .01em; }
.brand b { font-weight: 700; color: var(--accent); }
.brand img { border-radius: 8px; }
.mainnav { display: flex; gap: 4px; margin-inline-start: auto; }
.mainnav a {
  position: relative;
  padding: 10px 12px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color .2s;
}
.mainnav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--fg); }
.mainnav a:hover::after, .mainnav a[aria-current="page"]::after { transform: scaleX(1); }
.topbar-tools { display: flex; align-items: center; gap: 10px; }
.show-sm { display: none; }

@media (max-width: 880px) {
  .show-sm { display: inline-grid; }
  .hide-sm { display: none; }
  .topbar-tools { margin-inline-start: auto; }
  .mainnav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    display: none;
  }
  .mainnav.open { display: flex; animation: drop .22s ease; }
  .mainnav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mainnav a::after { display: none; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 72px);
}
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--accent); transition: color .35s; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .ico { width: 17px; height: 17px; color: var(--good); }

.hero-copy > * { animation: lift .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-stage { display: grid; gap: 14px; min-width: 0; animation: lift .9s .15s cubic-bezier(.2, .7, .2, 1) backwards; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

/* Device: a phone held in landscape. Its screen is always dark, like a game. */
.device {
  position: relative;
  aspect-ratio: 20 / 9; width: 100%; max-width: 100%;
  padding: clamp(6px, 1.1vw, 11px);
  background: #050608;
  border: 1px solid var(--line-hi);
  border-radius: clamp(18px, 2.6vw, 30px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.device-screen {
  position: relative; height: 100%;
  border-radius: clamp(12px, 1.8vw, 20px);
  overflow: hidden;
  background: #07090C;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-tag {
  position: absolute; right: 12px; bottom: 10px;
  font: 500 .64rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(230, 233, 238, .45);
}

/* The FPS readout, styled like the app's own */
.ovl {
  --ov-color: #FFFFFF;
  --ov-scale: 1;
  position: absolute; left: 4%; top: 8%;
  display: grid; gap: 4px;
  padding: 8px 12px;
  color: #E6E9EE;
  font-family: var(--f-mono); font-variant-numeric: tabular-nums;
  font-size: calc(clamp(9px, 1.15vw, 12px) * var(--ov-scale));
  line-height: 1.25;
  transform-origin: top left;
  border-radius: 12px;
  background: rgba(0, 0, 0, .58);
  transition: background-color .25s, border-radius .25s;
}
.ovl[data-bg="shade"] { background: rgba(0, 0, 0, .34); border-radius: 3px; }
.ovl[data-bg="none"] { background: transparent; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.ovl-fps { display: flex; align-items: baseline; gap: 5px; }
.ovl-fps b { font-size: 2.3em; font-weight: 600; line-height: 1; color: var(--ov-color); min-width: 2.2ch; transition: color .3s; }
.ovl-fps small { font-size: .9em; opacity: .7; }
.ovl-stats { display: grid; gap: 1px; }
.ovl-stats span { white-space: nowrap; }
.ovl-stats i { font-style: normal; opacity: .6; margin-right: 4px; }
.ovl-line { grid-auto-flow: column; align-items: baseline; gap: 12px; }
.ovl-line .ovl-stats { grid-auto-flow: column; gap: 12px; }
.ovl-line .ovl-fps b { font-size: 1.5em; }
.ovl .rate-good { color: #2BD67B; }
.ovl .rate-mid { color: #FFB020; }
.ovl .rate-bad { color: #FF4D57; }

.panel-handle {
  position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 5px; height: 26%;
  border-radius: 4px 0 0 4px;
  background: var(--accent);
  opacity: .85;
  transition: background-color .35s;
}
.rec-btn {
  position: absolute; right: 4%; top: 8%;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .58);
  font: 500 clamp(8px, 1vw, 11px)/1 var(--f-mono); color: #E6E9EE;
}
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF4D57; animation: blink 1.2s infinite; }

.ft-strip { background: var(--card); border: 1px solid var(--line); padding: 12px 14px 10px; }
.ft-head { display: flex; justify-content: space-between; gap: 12px; font: 500 .74rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ft-head b { color: var(--fg); font-weight: 600; }
#ftCanvas { width: 100%; height: 72px; display: block; }

.gpu-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gpu-pick p { color: var(--muted); font-size: .9rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 8px; min-height: 36px;
  font: 500 .84rem/1 var(--f-body); color: var(--muted);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.swatch span { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.swatch:hover { color: var(--fg); transform: translateY(-1px); }
.swatch[aria-pressed="true"] { color: var(--fg); border-color: var(--sw); }

/* ---------------------------------------------------------------- ticker */
.ticker { border-block: 1px solid var(--line); background: var(--surface); }
.ticker-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 18px; font-size: .84rem; color: var(--muted); }
.ticker-row b { color: var(--accent); font-weight: 600; font-size: 1.05rem; margin-right: 4px; }

/* ---------------------------------------------------------------- sections */
.band { padding-block: clamp(64px, 9vw, 112px) 0; display: grid; gap: 32px; }
.band-tight { padding-block: 24px 0; display: grid; gap: 24px; }
.shead { display: grid; gap: 14px; max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); } }

.points { display: grid; gap: 22px; }
.point { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
.point > .ico { width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: var(--accent-cont); color: var(--accent); transition: background-color .35s, color .35s; }
.point p { color: var(--muted); margin-top: 4px; font-size: .96rem; }

/* Session console */
.console { background: var(--card); border: 1px solid var(--line); padding: clamp(16px, 2.4vw, 24px); display: grid; gap: 16px; }
.console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.console-game { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.console-game .ico { color: var(--accent); }
.srows { list-style: none; margin: 0; padding: 0; display: grid; }
.srow {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line); font-size: .94rem;
}
.srow-name { min-width: 0; }
.srow-val { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-family: var(--f-mono); font-size: .86rem; }
.srow-val s { color: var(--faint); }
.srow-val b { font-weight: 500; color: var(--fg); }
.srow.is-on .srow-val b { color: var(--accent); }
.srow:not(.is-on) .srow-val s { text-decoration: none; color: var(--fg); }
.srow:not(.is-on) .srow-val b { display: none; }
.srow-scope { font: 500 .68rem/1.2 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); text-align: right; }
.srow.flash { animation: flash .7s ease calc(var(--i) * 110ms) both; }
@media (max-width: 520px) {
  .srow { grid-template-columns: minmax(0, 1fr) auto; }
  .srow-scope { grid-column: 1 / -1; text-align: left; }
}

.journal { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.journal-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.journal ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .78rem; max-height: 9.6em; overflow: hidden; }
.journal li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; color: var(--muted); white-space: nowrap; animation: slidein .3s ease both; }
.journal li > :last-child, .journal li { text-overflow: ellipsis; overflow: hidden; }
.journal time { color: var(--faint); }
.j-snap { color: var(--warn); }
.j-apply { color: var(--accent); }
.j-revert { color: var(--good); }
.console-btn { justify-self: start; }

/* Match report */
.report { background: var(--card); border: 1px solid var(--line); padding: clamp(16px, 2.6vw, 28px); display: grid; gap: 20px; }
.report-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.report-head h3 { font: 600 1.1rem/1.3 var(--f-mono); margin-top: 6px; }
.report-legend { display: flex; flex-wrap: wrap; gap: 14px; font: 500 .76rem/1 var(--f-mono); color: var(--muted); }
.lg::before { content: ''; display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.lg-fps::before { background: var(--accent); }
.lg-temp::before { background: var(--warn); }
.lg-ping::before { background: var(--muted); }
.report-chart { position: relative; }
#reportCanvas { width: 100%; height: 260px; display: block; cursor: crosshair; }
.report-tip {
  position: absolute; top: 6px; pointer-events: none;
  background: var(--surface); border: 1px solid var(--line-hi); border-radius: 6px;
  padding: 8px 10px; font: 500 .76rem/1.5 var(--f-mono); color: var(--fg); white-space: nowrap;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.report-tip b { color: var(--accent); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { display: grid; gap: 2px; padding: 14px 12px 4px 0; }
.stat span { font-size: .76rem; color: var(--muted); }
.stat b { font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.stat small { font: 500 .7rem/1 var(--f-mono); color: var(--faint); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why h4 { font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.why li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--warn); border-radius: 0 6px 6px 0; font-size: .94rem; }
.why .t { color: var(--warn); font-weight: 600; }
.why b { font-weight: 600; }

/* Extension cards */
.filters { margin-top: 4px; }
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.xcard {
  --edge: var(--line);
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 14px;
  padding: 18px 18px 16px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
  transition: border-color .2s, transform .2s, background-color .35s;
}
.xcard::after {
  content: ''; position: absolute; top: 0; right: 0; width: var(--ch); height: var(--ch);
  background: linear-gradient(45deg, transparent calc(50% - 1px), var(--edge) calc(50% - 1px), var(--edge) calc(50% + 1px), transparent calc(50% + 1px));
}
.xcard:hover { --edge: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.xcard-ico { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-cont); color: var(--accent); transition: background-color .35s, color .35s; }
.xcard-body { display: grid; gap: 4px; min-width: 0; }
.xcard-body b { font-weight: 600; font-size: 1.02rem; }
.xcard-body span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.xcard .badges { grid-column: 2; align-self: end; margin-top: 8px; }
.xcard[hidden] { display: none; }
.xcard-soon { border-style: dashed; background: transparent; }
.xgrid.compact .xcard-body span { display: none; }
.xcard.pop { animation: pop .35s ease both; }

/* Playgrounds */
.playground { background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pg-stage { position: relative; min-height: 300px; display: grid; place-items: center; background-color: #0B0D10; border-right: 1px solid var(--line); overflow: hidden; }
.pg-stage svg { width: min(70%, 260px); height: auto; aspect-ratio: 1; overflow: visible; }
.pg-controls { display: grid; gap: 18px; padding: clamp(16px, 2.6vw, 28px); align-content: start; }
.ctl { display: grid; gap: 10px; }
.ctl-label { display: flex; justify-content: space-between; font: 500 .74rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ctl-label b { color: var(--fg); font-weight: 600; letter-spacing: 0; }
.ctl-note { font-size: .84rem; color: var(--muted); }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .94rem; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.dotswatch { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-hi); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.dotswatch:hover { transform: scale(1.08); }
.dotswatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
@media (max-width: 820px) {
  .playground { grid-template-columns: minmax(0, 1fr); }
  .pg-stage { border-right: 0; border-bottom: 1px solid var(--line); min-height: 240px; }
}
.ovdemo .device { border-radius: 0; border: 0; box-shadow: none; padding: 0; aspect-ratio: auto; height: 100%; min-height: 260px; }
.ovdemo .device-screen { border-radius: 0; }
.ovdemo { align-items: stretch; }

/* Patterns, the same ones editions use */
.pattern-grid { background-image: linear-gradient(var(--pat-c, rgba(230, 233, 238, .07)) 1px, transparent 1px), linear-gradient(90deg, var(--pat-c, rgba(230, 233, 238, .07)) 1px, transparent 1px); background-size: 28px 28px; background-position: center; }
.pattern-dots { background-image: radial-gradient(var(--pat-c, rgba(230, 233, 238, .1)) 1.3px, transparent 1.8px); background-size: 18px 18px; }
.pattern-diagonal { background-image: repeating-linear-gradient(45deg, var(--pat-c, rgba(230, 233, 238, .08)) 0 1px, transparent 1px 14px); }
.pattern-hex { background-image: radial-gradient(var(--pat-c, rgba(230, 233, 238, .1)) 1.3px, transparent 1.8px), radial-gradient(var(--pat-c, rgba(230, 233, 238, .1)) 1.3px, transparent 1.8px); background-size: 24px 21px; background-position: 0 0, 12px 10.5px; }
.pattern-circuit { background-image: radial-gradient(var(--pat-c, rgba(230, 233, 238, .14)) 2px, transparent 2.5px), linear-gradient(var(--pat-c, rgba(230, 233, 238, .07)) 1px, transparent 1px), linear-gradient(90deg, var(--pat-c, rgba(230, 233, 238, .07)) 1px, transparent 1px); background-size: 40px 40px, 40px 40px, 40px 40px; background-position: 20px 20px, 0 0, 0 0; }

/* EQ */
.eq { grid-template-columns: minmax(0, 1fr); padding: clamp(16px, 2.6vw, 28px); gap: 18px; }
.eq-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
#eqCurve { width: 100%; height: 140px; display: block; background: var(--surface); border-radius: 8px; }
.eqbands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.eqband { display: grid; justify-items: center; gap: 8px; font-size: .8rem; color: var(--muted); text-align: center; }
.eqband b { font-weight: 600; color: var(--fg); }
.eqband input { writing-mode: vertical-lr; direction: rtl; width: 28px; height: 120px; }

/* Access cards */
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .tri { grid-template-columns: minmax(0, 1fr); } }
.acard { display: grid; align-content: start; justify-items: start; gap: 12px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, transform .2s; }
a.acard:hover { border-color: var(--accent); transform: translateY(-3px); }
.acard p { color: var(--muted); font-size: .94rem; }
.acard-ico, .acard > .acard-ico { width: 44px; height: 44px; padding: 10px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-cont); color: var(--accent); }
.acard-ico .ico { width: 24px; height: 24px; }

/* Editions */
.editions { display: grid; gap: 16px; }
.topcard {
  --edge: color-mix(in srgb, var(--on-accent) 30%, transparent);
  --pat-c: color-mix(in srgb, var(--on-accent) 14%, transparent);
  display: grid; gap: 18px;
  padding: clamp(18px, 3vw, 32px);
  background-color: var(--accent); color: var(--on-accent);
  transition: background-color .45s ease, color .45s ease;
}
.topcard-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topcard-label { font: 700 1rem/1 var(--f-display); letter-spacing: .16em; }
.topcard .pill { background: color-mix(in srgb, var(--on-accent) 16%, transparent); color: inherit; }
.topcard-phone b { display: block; font: 700 clamp(1.6rem, 3.6vw, 2.4rem)/1.1 var(--f-display); }
.topcard-phone span { opacity: .78; font-family: var(--f-mono); font-size: .88rem; }
.topcard-vitals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.topcard-vitals span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--on-accent) 10%, transparent); }
.topcard-vitals small { opacity: .75; font-size: .76rem; }
.topcard-vitals b { font-size: 1.1rem; }
@media (max-width: 560px) { .topcard-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Privacy */
.privacy { background: var(--card); border: 1px solid var(--line); padding: clamp(20px, 3.4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 48px; align-items: start; }
.privacy .textlink { grid-column: 2; }
@media (max-width: 860px) { .privacy { grid-template-columns: minmax(0, 1fr); } .privacy .textlink { grid-column: 1; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--muted); }
.ticks li b { color: var(--fg); font-weight: 600; }
.ticks .ico { width: 20px; height: 20px; color: var(--good); margin-top: 2px; }

/* CTA */
.cta-band { padding-block: clamp(64px, 9vw, 112px); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding: clamp(22px, 4vw, 44px); background: var(--accent-cont); border: 1px solid var(--line); transition: background-color .35s; }
.cta-inner p { color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- inner pages */
.pagehead { display: grid; gap: 16px; padding-block: clamp(40px, 6vw, 80px) 8px; }
.pagehead h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.legend p { color: var(--muted); font-size: .86rem; margin-top: 8px; }
@media (max-width: 860px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.doc { padding-block: 28px 0; }
.doc.narrow { max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 .8rem/1.4 var(--f-mono); color: var(--faint); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.dochead { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.dochead.plain { grid-template-columns: minmax(0, 1fr); }
.dochead > div { display: grid; gap: 12px; }
.dochead h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.dochead-ico { width: 72px; height: 72px; display: grid; place-items: center; background: var(--accent-cont); color: var(--accent); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.dochead-ico .ico { width: 34px; height: 34px; }
.status-note { color: var(--muted); font-size: .9rem; }
.status-note a { color: var(--accent); }
@media (max-width: 560px) { .dochead { grid-template-columns: minmax(0, 1fr); } .dochead-ico { width: 56px; height: 56px; } }

.doc-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding-top: 36px; }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; font-size: .9rem; }
.toc span { font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--fg); border-left-color: var(--accent); }
@media (max-width: 900px) { .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }

.doc-body { display: grid; gap: 44px; max-width: 760px; min-width: 0; }
.doc-body section { display: grid; gap: 14px; min-width: 0; }
.doc-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.doc-body h3 { margin-top: 8px; }
.doc-body p, .doc-body li, .doc-body dd { color: var(--muted); }
.doc-body p b, .doc-body li b { color: var(--fg); font-weight: 600; }
.doc-body a { color: var(--accent); text-underline-offset: 3px; }
.doc-body section#what p:first-child { color: var(--fg); font-size: 1.08rem; }
.doc-body ul { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }
.prose h2 { margin-top: 18px; }
.prose { gap: 16px; }

.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.hcard { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 6px; align-content: start; }
.hcard h3 { margin: 0; font-size: 1rem; }
.hcard p { font-size: .9rem; }

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
ol.steps li::before {
  content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px;
  font: 600 .9rem/1 var(--f-mono); color: var(--accent); background: var(--accent-cont);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}
ol.steps li { padding-top: 0; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: var(--surface); }
td:first-child { color: var(--fg); font-weight: 500; white-space: nowrap; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

ul.plain { list-style: none; padding: 0; }
ul.plain li { position: relative; padding-left: 20px; }
ul.plain li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 8px; height: 2px; background: var(--accent); }

details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative; font-weight: 600; color: var(--fg); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 400 1.4rem/1 var(--f-mono); color: var(--accent); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 18px; color: var(--muted); }
details[open] p { animation: rise .3s ease both; }
.faq { display: grid; gap: 40px; max-width: 820px; padding-top: 32px; }
.faq h2 { font-size: 1.3rem; margin-bottom: 4px; }

dl.defs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; margin: 0; }
dl.defs dt { font: 600 .9rem/1.6 var(--f-mono); color: var(--fg); }
dl.defs dd { margin: 0; }
@media (max-width: 560px) { dl.defs { grid-template-columns: minmax(0, 1fr); gap: 2px; } dl.defs dd { margin-bottom: 10px; } }

pre.code { margin: 0; padding: 16px 18px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: 400 .88rem/1.6 var(--f-mono); color: var(--fg); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; }
.pager a { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.pager a:hover { border-color: var(--accent); }
.pager small { font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pager span { font-weight: 600; }
.pager .next { text-align: right; }

.ggroup { display: grid; gap: 14px; margin-bottom: 36px; }
.ggroup-title { font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.gcard { display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, transform .2s; }
.gcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.gcard b { font-weight: 600; font-size: 1.02rem; }
.gcard span:not(.gcard-min) { color: var(--muted); font-size: .9rem; }
.gcard-min { font-size: .74rem; color: var(--accent); }
.related .glist { margin-top: 4px; }

/* Drops timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 38px; padding-block: 12px; position: relative; }
.tl::before { content: ''; position: absolute; left: 112px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-hi); }
.tl-now::before { background: var(--accent); border-color: var(--accent); }
.tl-when { padding-top: 22px; font: 500 .82rem/1.3 var(--f-mono); color: var(--muted); text-align: right; }
.tl-card { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; }
.tl-now .tl-card { border-radius: 0; background: var(--accent-cont); }
.tl-card p { color: var(--muted); font-size: .94rem; }
.tl-title { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tl-title .ico { color: var(--accent); }
.tl-title:hover h3 { color: var(--accent); }
.tl-exts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tl-exts a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; }
.tl-exts a:hover { border-color: var(--accent); }
.tl-exts .ico { width: 17px; height: 17px; color: var(--accent); }
.tl-later { opacity: .8; }
@media (max-width: 620px) {
  .timeline::before { left: 7px; }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 30px; }
  .tl::before { left: 1px; top: 16px; }
  .tl-when { text-align: left; padding-top: 10px; }
}

/* Community */
.tgcard { display: grid; gap: 18px; justify-items: start; padding: clamp(22px, 3.4vw, 36px); background: var(--card); border: 1px solid var(--line); }
.tg-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-cont); color: var(--accent); }
.tg-ico .ico { width: 28px; height: 28px; }
.rules { display: grid; gap: 16px; padding-top: 8px; }
.rules li { color: var(--muted); }

.center404 { min-height: 50vh; align-content: center; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
.foot-grid > div { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot-grid h4 { font: 500 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.foot-grid a:not(.brand):not(.btn) { color: var(--muted); text-decoration: none; font-size: .94rem; }
.foot-grid a:not(.brand):not(.btn):hover { color: var(--accent); }
.foot-brand p { color: var(--muted); font-size: .92rem; max-width: 32ch; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- motion */
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lift { from { transform: translateY(18px); } to { transform: none; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes drop { from { transform: translateY(-6px); opacity: 0; } }
@keyframes slidein { from { transform: translateX(-8px); opacity: 0; } }
@keyframes pop { from { transform: scale(.97); opacity: .3; } }
@keyframes flash { 0% { background-color: transparent; } 30% { background-color: var(--accent-cont); } 100% { background-color: transparent; } }

/* Sections slide up as they arrive; they are never hidden at rest */
.reveal { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.below { transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal.below { transform: none; }
}

/* ---------------------------------------------------------------- the game in the hero phone */
.ovl, .rec-btn, .panel-handle, .scene-tag { pointer-events: none; }
.has-game .device-screen { container-type: size; user-select: none; -webkit-user-select: none; }
.has-game.is-playing .device-screen { cursor: none; touch-action: none; }
.g-ui { position: absolute; inset: 0; pointer-events: none; color: #E6E9EE; font-family: var(--f-body); }
.g-hud {
  position: absolute; top: 8%; left: 50%; translate: -50% 0;
  display: flex; gap: 14px; align-items: baseline;
  padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .58);
  font: 600 clamp(10px, 1.2vw, 13px)/1 var(--f-mono);
}
.g-hud small, .g-ammo small { opacity: .6; font-weight: 500; }
.g-low { color: #FF4D57; }
.g-ammo { position: absolute; left: 4%; bottom: 9%; display: flex; gap: 6px; align-items: baseline; font: 600 clamp(13px, 1.7vw, 19px)/1 var(--f-mono); text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.g-ammo [data-g="reload"] { margin-left: 6px; font-size: .62em; letter-spacing: .1em; text-transform: uppercase; color: #FFB020; }
.device:not(.is-playing) .g-hud, .device:not(.is-playing) .g-ammo { display: none; }
.g-card {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(88%, 360px);
  display: grid; gap: 8px; justify-items: start;
  padding: clamp(10px, 2.2vw, 18px);
  pointer-events: auto;
  font-size: clamp(11px, 1.2vw, 14px);
  background: rgba(9, 11, 15, .88);
  border: 1px solid rgba(230, 233, 238, .14);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  animation: lift .35s ease both;
}
.g-card[hidden] { display: none; }
.g-card .eyebrow { font-size: .72em; }
.g-card > b { font: 600 1.2em/1.25 var(--f-display); }
.g-hint { color: rgba(230, 233, 238, .68); font-size: .88em; line-height: 1.45; }
.g-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 18px; }
.g-stats span { display: grid; gap: 1px; }
.g-stats small { font-size: .74em; opacity: .65; }
.g-stats b { font-size: 1.6em; font-weight: 600; line-height: 1.1; }
.g-big {
  position: absolute; right: 4%; top: calc(8% + clamp(24px, 3vw, 32px));
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(0, 0, 0, .58); color: #E6E9EE;
  border: 1px solid rgba(230, 233, 238, .18); cursor: pointer; pointer-events: auto;
}
.g-big svg { width: 16px; height: 16px; }
.g-big:hover { border-color: var(--accent); color: var(--accent); }
@container (max-height: 230px) { .g-hint { display: none; } .g-card { gap: 6px; } }
@container (max-height: 150px) { .g-card .eyebrow { display: none; } }

.device.is-big {
  position: fixed; z-index: 101; left: 50%; top: 50%; translate: -50% -50%;
  width: min(96vw, calc(90vh * 20 / 9)); max-width: none;
}
.device.is-big .g-card { font-size: clamp(12px, 1.4vw, 16px); }
@media (orientation: portrait) and (max-width: 760px) {
  .device.is-big {
    left: 8px; right: 8px; top: calc(env(safe-area-inset-top, 0px) + 8px); bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    translate: none; width: auto; height: auto; aspect-ratio: auto;
  }
}
.game-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 8, .88); }
.game-backdrop[hidden] { display: none; }
html.game-big, html.game-big body { overflow: hidden; }
