/* Brand tokens from projectinnerverse.com (Brand Master v1.2): Electric Blue is the only light source, hairlines,
   chamfered corners, no rounded cards. */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --black: #05070a; --graphite: #272b30; --silver: #9aa3ab; --mist: #f2f5f7;
  --beam: #008cff; --cyan: #39c6ff;
  --text: #dde2e6; --text-faint: #7d868f;
  --rule: rgb(154 163 171 / 0.16); --rule-strong: rgb(154 163 171 / 0.32);
  --cut: 12px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--black); color: var(--text);
  font: 400 1.0625rem/1.6 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}
a { color: var(--cyan); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(16px, 5vw, 48px); border-bottom: 1px solid var(--rule); background: var(--black); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-stretch: 112%; letter-spacing: .01em; }
.tag { font-size: .8125rem; color: var(--text-faint); border: 1px solid var(--rule-strong); padding: 2px 10px; }

.quiz { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(32px, 8vh, 88px) 16px; }
.screen { position: relative; background: var(--black); border: 1px solid var(--rule-strong); padding: clamp(24px, 5vw, 48px);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.screen::before { content: ''; position: absolute; left: -1px; top: 24px; bottom: 24px; width: 2px; background: var(--beam); }
.screen:focus { outline: none; }
[hidden] { display: none !important; }

.eyebrow { margin: 0 0 12px; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
h1, h2 { margin: 0 0 16px; font-weight: 700; font-stretch: 118%; line-height: 1.08; text-wrap: balance; color: var(--mist); }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); }
h3 { margin: 32px 0 12px; font-size: 1.0625rem; font-weight: 650; color: var(--mist); }
.lead { margin: 0 0 28px; color: var(--silver); max-width: 56ch; }
.note, .hint { color: var(--text-faint); font-size: .9375rem; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 650; font-stretch: 108%; line-height: 1.25; color: var(--mist); }
.hint { margin: 0 0 20px; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--rule-strong); cursor: pointer; transition: border-color .15s, background-color .15s; }
.option:hover { border-color: var(--silver); }
.option input { appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--silver); display: grid; place-content: center; }
.option input[type='radio'] { border-radius: 50%; }
.option input:checked { border-color: var(--beam); background: var(--beam); box-shadow: inset 0 0 0 3px var(--black); }
.option input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.option:has(input:checked) { border-color: var(--beam); background: rgb(0 140 255 / 0.08); }

.progress { height: 2px; background: var(--rule); margin-bottom: 24px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--beam); transform-origin: left; transform: scaleX(0); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }

.nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 28px; }
.nav--end { justify-content: flex-start; }
.btn { font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid transparent; text-decoration: none; cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.btn:focus-visible { outline: 2px solid var(--mist); outline-offset: -5px; }
.btn--primary { background: var(--beam); color: #fff; }
.btn--primary:hover { background: #1a97ff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--silver); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.score { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.score span:first-child { font-size: clamp(3rem, 2rem + 5vw, 4.5rem); font-weight: 700; font-stretch: 118%; line-height: 1; color: var(--cyan); }
.score__max { color: var(--text-faint); }
.tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: t; }
.tips li { counter-increment: t; display: grid; grid-template-columns: 28px 1fr; gap: 8px; max-width: 60ch; }
.tips li::before { content: counter(t, decimal-leading-zero); font-size: .8125rem; color: var(--beam); padding-top: .25em; }

.foot { border-top: 1px solid var(--rule); background: var(--black); padding: 20px clamp(16px, 5vw, 48px); font-size: .8125rem; color: var(--text-faint); }
.foot p { margin: 0 0 6px; max-width: 90ch; }
.foot a { color: var(--silver); }

@media (max-width: 480px) {
  .nav { flex-direction: column-reverse; }
  .nav--end { flex-direction: column; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
