:root {
  --bg: #050505;
  --panel: #0b0b0d;
  --panel-2: #101013;
  --panel-3: #151518;
  --line: #27272c;
  --line-strong: #3a3a41;
  --red: #ff233f;
  --red-soft: #ff5c73;
  --red-dark: #9c0c22;
  --text: #f4f1ed;
  --muted: #929298;
  --muted-2: #66666d;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1200px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

button:not(:disabled),
a {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

img,
svg,
canvas {
  display: block;
}

::selection {
  color: #050505;
  background: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #050505;
  background: var(--red);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#code-rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .24;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.75) 45%, #000 100%);
}

.screen-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, #000, transparent 78%);
}

.scanline {
  position: fixed;
  top: -20%;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 120px;
  pointer-events: none;
  opacity: .32;
  background: linear-gradient(to bottom, transparent, rgba(255,35,63,.08) 70%, rgba(255,35,63,.34) 99%, transparent);
  animation: screen-scan 7s linear infinite;
}

@keyframes screen-scan {
  from { transform: translateY(0); }
  to { transform: translateY(900vh); }
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,5,.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--container), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #050505;
  background: var(--red);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.08em;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #050505;
  border-bottom: 1px solid #050505;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand-text small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  color: #b9b9bf;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease, background .2s ease;
}

.site-nav a span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.045);
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.system-status i,
.console-live::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255,35,63,.9);
  animation: status-pulse 1.6s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: .35; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  margin-left: auto;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: var(--text);
  transition: transform .2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 38%, rgba(255,35,63,.14), transparent 34%),
    linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.55) 52%, rgba(5,5,5,.2) 100%);
}

.hero-inner {
  position: relative;
  padding-block: 64px 96px;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(44px, 7vw, 92px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
}

.hero-meta span:last-child {
  color: var(--red-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr);
  align-items: center;
  gap: clamp(42px, 6vw, 90px);
}

.eyebrow,
.micro-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 26px;
  height: 1px;
  background: var(--red);
}

.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(72px, 9.3vw, 142px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.075em;
}

.hero h1 > span {
  display: block;
}

.hero h1 .outline {
  margin-left: .42em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red);
  text-stroke: 1.5px var(--red);
}

.hero-lead {
  max-width: 560px;
  margin: 0;
  color: #b3b3b9;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.button b {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #080808;
  background: var(--red);
  box-shadow: 0 10px 34px rgba(255,35,63,.16);
}

.button-primary:hover {
  background: #ff405a;
  box-shadow: 0 14px 40px rgba(255,35,63,.24);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.025);
}

.button-ghost:hover {
  border-color: var(--red);
  color: var(--red-soft);
  background: rgba(255,35,63,.05);
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.hero-console {
  position: relative;
  border: 1px solid var(--line-strong);
  background: rgba(8,8,10,.88);
  box-shadow: 0 30px 100px rgba(0,0,0,.55), 0 0 70px rgba(255,35,63,.06);
}

.hero-console::before,
.hero-console::after,
.quiz-card::before,
.quiz-card::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.hero-console::before,
.quiz-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}

.hero-console::after,
.quiz-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

.console-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.console-dots i:first-child {
  background: var(--red);
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--red-soft);
}

.console-live::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
}

.console-screen {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 20px;
  min-height: 260px;
  padding: 26px;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 22px 22px;
}

.radar {
  position: relative;
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255,35,63,.42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,35,63,.12), rgba(255,35,63,.015) 62%, transparent 63%);
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255,35,63,.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 { width: 33%; height: 33%; }
.ring-2 { width: 66%; height: 66%; }

.radar-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255,35,63,.22);
  transform: translate(-50%, -50%);
}

.cross-x { width: 100%; height: 1px; }
.cross-y { width: 1px; height: 100%; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 300deg, rgba(255,35,63,.04) 310deg, rgba(255,35,63,.38) 359deg, transparent 360deg);
  animation: radar-spin 3.4s linear infinite;
}

@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

.radar-blip {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--red);
  animation: blip 2.2s ease-in-out infinite;
}

.blip-1 { top: 28%; left: 62%; }
.blip-2 { top: 68%; left: 34%; animation-delay: .7s; }
.blip-3 { top: 47%; left: 78%; animation-delay: 1.3s; }

@keyframes blip {
  50% { opacity: .18; transform: scale(.6); }
}

.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--red-soft);
  border: 1px solid var(--red);
  background: #090909;
  font-size: 14px;
  font-weight: 800;
  transform: translate(-50%, -50%) rotate(45deg);
}

.radar-center::first-letter {
  transform: rotate(-45deg);
}

.console-readout {
  display: grid;
  gap: 18px;
}

.console-readout div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.console-readout span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.console-readout strong {
  color: var(--red-soft);
  font-family: var(--font-mono);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.console-log {
  min-height: 112px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.9;
}

.console-log p {
  margin: 0;
}

.console-log span {
  color: var(--red);
}

.console-log b {
  color: #c7c7cc;
  font-weight: 400;
}

.console-cursor {
  animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
  50% { opacity: .25; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.25fr;
  gap: 0;
  margin-top: clamp(54px, 7vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats > div {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.hero-stats > div:first-child {
  padding-left: 0;
}

.hero-stats > div:last-child {
  border-right: 0;
}

.hero-stats strong {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 11px;
}

.hero-stats-note strong {
  color: var(--red-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
}

.hero-stats-note span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
}

.scroll-cue {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .14em;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--red), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-line {
  50% { transform: scaleY(.45); opacity: .4; }
}

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: #080808;
  background: var(--red);
  border-block: 1px solid var(--red);
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  animation: ticker-move 24s linear infinite;
}

.ticker-track i {
  font-style: normal;
  font-size: 9px;
}

@keyframes ticker-move {
  to { transform: translateX(-50%); }
}

.section {
  position: relative;
  padding-block: clamp(86px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-height);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.section-index {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.055em;
}

.section-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  text-align: right;
}

.test-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.test-intro {
  padding-top: 12px;
}

.test-intro h3,
.spotlight-copy h3 {
  margin: 20px 0;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.test-intro h3 em,
.spotlight-copy h3 em {
  color: var(--red);
  font-style: normal;
}

.test-intro > p,
.spotlight-copy > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.test-best {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 18px;
  margin-top: 34px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.test-best span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.test-best strong {
  color: var(--red-soft);
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
}

.test-best small {
  padding-bottom: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
}

.test-facts {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.test-facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #aaaab0;
  font-size: 12px;
}

.test-facts span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
}

.quiz-card {
  position: relative;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: rgba(10,10,12,.92);
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
}

.quiz-top,
.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
}

.quiz-top {
  border-bottom: 1px solid var(--line);
}

.quiz-top span:first-child {
  color: var(--red-soft);
}

.quiz-progress {
  height: 2px;
  background: #1e1e22;
}

.quiz-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(255,35,63,.8);
  transition: width .3s ease;
}

.quiz-content {
  flex: 1;
  display: grid;
  padding: clamp(24px, 4vw, 44px);
}

.quiz-start {
  align-self: center;
  text-align: center;
}

.quiz-orb {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border: 1px solid rgba(255,35,63,.45);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,35,63,.18), transparent 66%);
}

.quiz-orb::before,
.quiz-orb::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,35,63,.25);
  border-radius: 50%;
  animation: orb-pulse 2.4s ease-out infinite;
}

.quiz-orb::after {
  animation-delay: 1.2s;
}

@keyframes orb-pulse {
  from { inset: 0; opacity: .8; }
  to { inset: -24px; opacity: 0; }
}

.quiz-orb span {
  color: var(--red-soft);
  font-size: 30px;
  font-weight: 900;
}

.quiz-start h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.03em;
}

.quiz-start p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.quiz-footer {
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}

.quiz-question {
  align-self: center;
  width: 100%;
}

.question-number {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
}

.quiz-question h3 {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  letter-spacing: -.035em;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.018);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.quiz-option:hover,
.quiz-option.is-selected {
  border-color: var(--red);
  background: rgba(255,35,63,.075);
  transform: translateX(4px);
}

.option-key {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.quiz-option:hover .option-key,
.quiz-option.is-selected .option-key {
  color: #050505;
  border-color: var(--red);
  background: var(--red);
}

.option-text {
  color: #d2d2d6;
  font-size: 13px;
  line-height: 1.55;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.text-button {
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.text-button:hover {
  color: var(--red-soft);
}

.quiz-result {
  width: 100%;
  align-self: center;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 42px);
}

.score-ring {
  --score: 0;
  position: relative;
  width: 170px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--score) * 1%), #242429 0);
  box-shadow: 0 0 46px rgba(255,35,63,.12);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #0a0a0c;
}

.score-ring div {
  position: relative;
  text-align: center;
}

.score-ring strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.08em;
}

.score-ring span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.result-rank {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--red-soft);
  border: 1px solid rgba(255,35,63,.4);
  background: rgba(255,35,63,.06);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.result-copy h3 {
  margin: 14px 0 10px;
  font-size: clamp(25px, 3.3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.result-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.result-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.result-traits span {
  padding: 5px 8px;
  color: #b9b9bf;
  background: #17171a;
  font-size: 10px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.result-actions .button {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 11px;
}

.dex-section {
  background: rgba(5,5,5,.5);
}

.dex-heading {
  margin-bottom: 34px;
}

.dex-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 15px 0 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  outline: none;
  background: rgba(255,255,255,.025);
  font-size: 12px;
}

.search-field input::placeholder {
  color: var(--muted-2);
}

.search-field input:focus {
  border-color: var(--red);
}

.dex-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.filter-chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter-chip.is-active {
  color: #080808;
  background: var(--red);
}

.unlock-meter {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.unlock-meter span {
  color: var(--muted);
  font-size: 10px;
}

.unlock-meter strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.unlock-meter b {
  color: var(--red-soft);
  font-weight: 500;
}

.dex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dex-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(10,10,12,.9);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.dex-card:hover {
  z-index: 1;
  border-color: rgba(255,35,63,.65);
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(0,0,0,.42), 0 0 34px rgba(255,35,63,.06);
}

.dex-card-button {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.dex-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #09090b;
}

.dex-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 45%, rgba(255,35,63,.08) 46%, transparent 47%);
}

.dex-visual svg {
  width: 100%;
  height: 100%;
  transition: transform .5s ease;
}

.dex-card:hover .dex-visual svg {
  transform: scale(1.045);
}

.dex-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 7px;
  color: var(--red-soft);
  border: 1px solid rgba(255,35,63,.35);
  background: rgba(5,5,5,.72);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.dex-lock {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: var(--muted);
  background: rgba(5,5,5,.72);
  font-family: var(--font-mono);
  font-size: 8px;
}

.dex-lock::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
}

.dex-card.is-unlocked .dex-lock {
  color: var(--red-soft);
}

.dex-card.is-unlocked .dex-lock::before {
  background: var(--red);
}

.dex-card-body {
  padding: 20px;
}

.dex-card-category {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
}

.dex-card h3 {
  margin: 8px 0 3px;
  font-size: 23px;
  letter-spacing: -.035em;
}

.dex-en {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
}

.dex-card-desc {
  min-height: 44px;
  margin: 14px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.dex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dex-tags span {
  padding: 4px 7px;
  color: #aaaab0;
  background: #17171a;
  font-size: 9px;
}

.dex-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
}

.dex-card-footer b {
  color: var(--red-soft);
  font-size: 13px;
  font-weight: 400;
}

.dex-empty {
  padding: 80px 20px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.dex-empty > span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
}

.dex-empty h3 {
  margin: 16px 0 8px;
  font-size: 26px;
}

.dex-empty p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.spotlight-copy h3 {
  margin-top: 18px;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.game-stats > div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  background: rgba(9,9,11,.94);
}

.game-stats span {
  color: var(--muted);
  font-size: 10px;
}

.game-stats strong {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
}

.game-stats > div:nth-child(2) strong,
.game-stats > div:nth-child(4) strong {
  color: var(--red-soft);
}

.game-hint {
  min-height: 20px;
  margin-top: 14px !important;
  color: var(--muted-2) !important;
  font-family: var(--font-mono);
  font-size: 9px !important;
  letter-spacing: .03em;
}

.game-arena {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 45%, rgba(255,35,63,.08), transparent 52%),
    #08080a;
  box-shadow: inset 0 0 90px rgba(0,0,0,.7), 0 30px 90px rgba(0,0,0,.35);
  touch-action: manipulation;
  user-select: none;
}

.arena-grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 78%);
}

.arena-label {
  position: absolute;
  z-index: 3;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
  pointer-events: none;
}

.arena-label-top {
  top: 16px;
  left: 18px;
}

.arena-label-bottom {
  right: 18px;
  bottom: 16px;
  color: var(--red);
}

.arena-corner {
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.corner-tl { top: 10px; left: 10px; border-top: 1px solid var(--red); border-left: 1px solid var(--red); }
.corner-tr { top: 10px; right: 10px; border-top: 1px solid var(--red); border-right: 1px solid var(--red); }
.corner-bl { bottom: 10px; left: 10px; border-bottom: 1px solid var(--red); border-left: 1px solid var(--red); }
.corner-br { right: 10px; bottom: 10px; border-right: 1px solid var(--red); border-bottom: 1px solid var(--red); }

.game-overlay,
.game-result {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(5,5,5,.64);
  text-align: center;
  backdrop-filter: blur(3px);
}

.game-overlay > span,
.game-result > span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
}

.game-overlay strong {
  margin: 20px 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.06em;
}

.game-overlay small {
  color: var(--muted);
  font-size: 11px;
}

.game-result strong {
  margin: 18px 0 8px;
  color: var(--red-soft);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.055em;
}

.game-result p {
  margin: 0 0 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.game-target {
  position: absolute;
  z-index: 4;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ff8b9c;
  border-radius: 50%;
  color: #080808;
  background: radial-gradient(circle at 35% 30%, #ff7b8e, var(--red) 58%, #c30f2a);
  box-shadow: 0 0 0 8px rgba(255,35,63,.08), 0 0 34px rgba(255,35,63,.55);
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1;
  transition: box-shadow .12s ease, transform .12s ease;
}

.game-target::before,
.game-target::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,35,63,.45);
  border-radius: 50%;
  animation: target-pulse 1.4s ease-out infinite;
}

.game-target::after {
  animation-delay: .7s;
}

@keyframes target-pulse {
  from { inset: -8px; opacity: .8; }
  to { inset: -28px; opacity: 0; }
}

.game-target:hover {
  box-shadow: 0 0 0 11px rgba(255,35,63,.1), 0 0 44px rgba(255,35,63,.75);
}

.game-target:active,
.game-target.is-hit {
  transform: scale(.82);
}

.float-score {
  position: absolute;
  z-index: 8;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
  text-shadow: 0 0 14px var(--red);
  animation: float-up .7s ease-out forwards;
}

@keyframes float-up {
  from { opacity: 1; transform: translate(-50%, -50%) scale(.8); }
  to { opacity: 0; transform: translate(-50%, -120px) scale(1.1); }
}

.game-arena.is-running {
  border-color: rgba(255,35,63,.6);
  box-shadow: inset 0 0 90px rgba(0,0,0,.7), 0 0 46px rgba(255,35,63,.08);
}

.game-arena.is-running .arena-label-bottom {
  animation: cursor-blink .8s steps(1) infinite;
}

.site-footer {
  padding-block: 42px;
  background: #040404;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer p {
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.back-top span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 16px;
}

.back-top:hover {
  color: var(--text);
}

.dex-dialog {
  width: min(780px, calc(100% - 32px));
  max-height: min(90svh, 860px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: #09090b;
  box-shadow: 0 40px 140px rgba(0,0,0,.8), 0 0 80px rgba(255,35,63,.08);
}

.dex-dialog[open] {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  animation: dialog-in .22s ease-out;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dex-dialog::backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(5,5,5,.86);
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
}

.dialog-close:hover {
  color: #050505;
  border-color: var(--red);
  background: var(--red);
}

.dialog-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #070708;
}

.dialog-visual svg {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.dialog-content {
  padding: clamp(28px, 4vw, 46px);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 20px;
}

.dialog-code {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
}

.dialog-heading h3 {
  margin: 9px 0 4px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.05em;
}

.dialog-en {
  margin: 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
}

.dialog-category {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--red-soft);
  border: 1px solid rgba(255,35,63,.4);
  font-size: 9px;
}

.dialog-content blockquote {
  margin: 28px 0 18px;
  padding: 14px 0 14px 18px;
  border-left: 2px solid var(--red);
  color: #d8d8dc;
  font-size: 15px;
  line-height: 1.7;
}

.dialog-desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.modal-stats {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.modal-stat {
  display: grid;
  grid-template-columns: 64px 1fr 30px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.modal-stat-bar {
  height: 4px;
  overflow: hidden;
  background: #232327;
}

.modal-stat-bar i {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
}

.modal-stat strong {
  color: #c9c9ce;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  text-align: right;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.modal-tags span {
  padding: 5px 8px;
  color: #aaaab0;
  background: #17171a;
  font-size: 9px;
}

.modal-action {
  width: 100%;
  margin-top: 28px;
}

.modal-action.is-unlocked {
  color: var(--red-soft);
  border-color: rgba(255,35,63,.4);
  background: rgba(255,35,63,.06);
  box-shadow: none;
}

.modal-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 9px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 18px;
  border: 1px solid rgba(255,35,63,.5);
  color: #e8e8eb;
  background: rgba(12,12,14,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 200;
  padding: 16px;
  color: #fff;
  background: var(--red-dark);
  text-align: center;
}

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(68px, 10vw, 112px);
  }

  .console-screen {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .radar {
    width: 180px;
  }

  .console-readout {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .console-readout div {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .console-readout strong {
    font-size: 18px;
  }

  .dex-toolbar {
    grid-template-columns: 1fr auto;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .dex-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-layout,
  .spotlight-layout {
    gap: 40px;
  }

  .quiz-result {
    grid-template-columns: 140px 1fr;
  }

  .score-ring {
    width: 140px;
  }

  .score-ring strong {
    font-size: 42px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .header-inner {
    width: min(var(--container), calc(100% - 36px));
  }

  .header-inner {
    gap: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(5,5,5,.98);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: space-between;
    padding: 15px 8px;
    border-bottom: 1px solid var(--line);
  }

  .system-status {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-block: 42px 78px;
  }

  .hero-meta {
    margin-bottom: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero h1 {
    font-size: clamp(72px, 17vw, 124px);
  }

  .hero h1 .outline {
    margin-left: .22em;
  }

  .hero-console {
    width: min(100%, 560px);
  }

  .console-screen {
    grid-template-columns: 1fr 1fr;
  }

  .console-readout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .console-readout div {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60px;
  }

  .hero-stats > div {
    min-height: 88px;
    padding-inline: 16px;
  }

  .hero-stats > div:nth-child(3) {
    border-right: 0;
  }

  .hero-stats-note {
    display: none !important;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-heading > p {
    text-align: left;
  }

  .test-layout,
  .spotlight-layout {
    grid-template-columns: 1fr;
  }

  .test-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }

  .test-intro .micro-label,
  .test-intro h3,
  .test-intro > p {
    grid-column: 1;
  }

  .test-best,
  .test-facts {
    grid-column: 2;
  }

  .test-best {
    grid-row: 1 / 3;
    align-self: end;
    margin-top: 0;
  }

  .test-facts {
    grid-row: 3 / 5;
    margin-top: 18px;
  }

  .spotlight-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }

  .spotlight-copy .micro-label,
  .spotlight-copy h3,
  .spotlight-copy > p {
    grid-column: 1;
  }

  .game-stats {
    grid-column: 2;
    grid-row: 1 / 4;
    margin-top: 0;
  }

  .spotlight-copy > .button,
  .spotlight-copy > .game-hint {
    grid-column: 1 / -1;
  }

  .spotlight-copy > .button {
    justify-self: start;
    margin-top: 24px;
  }

  .game-arena {
    min-height: 440px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .site-footer p {
    order: 3;
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .container,
  .header-inner {
    width: calc(100% - 32px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 14px;
  }

  .brand-text small {
    font-size: 8px;
  }

  .hero-meta {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .hero-meta span:last-child {
    display: none;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(66px, 20vw, 102px);
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    justify-content: space-between;
  }

  .console-screen {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .radar {
    width: 170px;
  }

  .console-readout {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .console-readout div {
    border-bottom: 0;
  }

  .console-readout span {
    font-size: 8px;
  }

  .console-readout strong {
    font-size: 16px;
  }

  .hero-stats strong {
    font-size: 25px;
  }

  .hero-stats span {
    font-size: 9px;
  }

  .hero-stats > div {
    padding-inline: 10px;
  }

  .hero-stats > div:first-child {
    padding-left: 0;
  }

  .section {
    padding-block: 76px;
  }

  .section-heading h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .test-intro,
  .spotlight-copy {
    display: block;
  }

  .test-best {
    margin-top: 26px;
  }

  .test-facts {
    margin-top: 24px;
  }

  .quiz-card {
    min-height: 520px;
  }

  .quiz-content {
    padding: 24px 18px;
  }

  .quiz-top,
  .quiz-footer {
    padding-inline: 16px;
    font-size: 8px;
  }

  .quiz-question h3 {
    font-size: 22px;
  }

  .quiz-option {
    min-height: 56px;
    padding: 12px;
  }

  .option-text {
    font-size: 12px;
  }

  .quiz-result {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .result-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .result-actions {
    justify-content: center;
  }

  .dex-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .search-field {
    grid-column: auto;
  }

  .dex-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .unlock-meter {
    padding-left: 0;
    border-left: 0;
  }

  .dex-grid {
    grid-template-columns: 1fr;
  }

  .dex-card-desc {
    min-height: 0;
  }

  .game-stats {
    margin-top: 26px;
  }

  .game-stats > div {
    min-height: 82px;
    padding: 14px;
  }

  .game-stats strong {
    font-size: 24px;
  }

  .game-arena {
    min-height: 400px;
  }

  .game-target {
    width: 58px;
    height: 58px;
  }

  .game-overlay strong {
    font-size: 42px;
  }

  .dex-dialog[open] {
    grid-template-columns: 1fr;
  }

  .dialog-visual {
    height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dialog-visual svg {
    min-height: 0;
    height: 220px;
  }

  .dialog-content {
    padding: 26px 22px;
  }

  .dialog-heading {
    padding-right: 26px;
  }

  .dialog-heading h3 {
    font-size: 34px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .back-top {
    margin-left: auto;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 62px;
  }

  .console-readout strong {
    font-size: 14px;
  }

  .hero-stats strong {
    font-size: 22px;
  }

  .hero-stats span {
    font-size: 8px;
  }

  .quiz-option {
    gap: 10px;
  }

  .option-key {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .scanline {
    display: none;
  }
}
