/* =========================================================
   G.T.I. TACTICAL PERSONA // 2026
   Static fan project. No frameworks, no build step.
   ========================================================= */

:root {
  --bg: #050806;
  --bg-deep: #030504;
  --bg-soft: #090e09;
  --panel: rgba(10, 16, 11, 0.76);
  --panel-solid: #0b110c;
  --panel-strong: rgba(14, 22, 15, 0.92);
  --text: #e8f0e7;
  --text-soft: #c3cec2;
  --muted: #879487;
  --muted-dim: #5e6a5f;
  --line: rgba(187, 225, 193, 0.14);
  --line-strong: rgba(187, 225, 193, 0.28);
  --acid: #ccff69;
  --acid-soft: #a8df58;
  --green: #78ffad;
  --orange: #ffb04a;
  --red: #ff6347;
  --role-assault: #ff7043;
  --role-recon: #5ce9ff;
  --role-engineer: #ffc75a;
  --role-support: #83ffb0;
  --accent: var(--acid);
  --font-display: "Chakra Petch", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Share Tech Mono", "Cascadia Mono", "Consolas", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar: 78px;
  --max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--acid);
  outline-offset: 4px;
}

::selection {
  color: #080b07;
  background: var(--acid);
}

[hidden] {
  display: none !important;
}

/* ---------- background ---------- */

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#fieldCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.background__grid {
  position: absolute;
  inset: 0;
  opacity: 0.33;
  background-image:
    linear-gradient(rgba(171, 219, 178, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 219, 178, 0.065) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 75% at 60% 45%, #000 10%, transparent 78%);
}

.background__grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(171, 219, 178, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171, 219, 178, 0.08) 1px, transparent 1px);
  background-size: 288px 288px;
  mask-image: radial-gradient(ellipse 70% 60% at 58% 50%, #000 0%, transparent 72%);
}

.background__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.background__glow--one {
  top: -25%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: #4f8e4e;
}

.background__glow--two {
  bottom: -30%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: #365f39;
  opacity: 0.11;
}

.background__scan {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(225, 255, 229, 0.8) 4px,
    transparent 5px
  );
  animation: scanShift 14s linear infinite;
}

.background__noise {
  position: absolute;
  inset: -40%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: noiseMove 0.28s steps(2) infinite;
}

.background__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.75), transparent 20%, transparent 80%, rgba(3, 5, 4, 0.72)),
    radial-gradient(ellipse at center, transparent 35%, rgba(2, 4, 3, 0.72) 100%);
}

.cursor-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(163, 255, 158, 0.055) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

@keyframes scanShift {
  to { transform: translateY(8px); }
}

@keyframes noiseMove {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
  100% { transform: translate(-1%, 1%); }
}

/* ---------- shared chrome ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--topbar);
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(4, 7, 5, 0.93), rgba(4, 7, 5, 0));
}

.topbar::after {
  content: "";
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  right: clamp(20px, 4vw, 64px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transition: background 0.3s ease;
}

body.is-scrolled .topbar {
  background: rgba(4, 7, 5, 0.9);
  backdrop-filter: blur(16px);
}

body.is-scrolled .topbar::after {
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: background 0.3s ease, color 0.3s ease;
}

.brand:hover .brand__mark {
  color: #070a06;
  background: var(--acid);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.brand__text small {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.topbar__center {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

.topbar__divider,
.topbar__muted {
  color: var(--muted-dim);
}

.live-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: livePulse 2.4s ease-in-out infinite;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-btn,
.icon-btn {
  height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hud-btn {
  padding: 0 12px;
}

.hud-btn:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.icon-btn {
  width: 36px;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  color: var(--acid);
  border-color: var(--line);
}

.sound-bars {
  height: 14px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.sound-bars i {
  width: 2px;
  height: 5px;
  background: currentColor;
  transition: height 0.2s ease;
}

.sound-bars i:nth-child(2) { height: 10px; }
.sound-bars i:nth-child(3) { height: 7px; }

.icon-btn[aria-pressed="true"] {
  color: var(--acid);
}

.icon-btn[aria-pressed="true"] .sound-bars i {
  animation: soundBounce 0.8s ease-in-out infinite alternate;
}

.icon-btn[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: 0.15s; }
.icon-btn[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: 0.3s; }

.clock {
  min-width: 68px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
  text-align: right;
}

@keyframes livePulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes soundBounce {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1.15); }
}

.app {
  position: relative;
  z-index: 2;
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.is-active {
  display: block;
  animation: screenIn 0.65s var(--ease) both;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.mini-label {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow__index {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--acid);
  border: 1px solid var(--line-strong);
  font-size: 10px;
}

/* ---------- intro ---------- */

.screen--intro {
  padding: calc(var(--topbar) + 30px) clamp(20px, 5vw, 80px) 0;
}

.screen--intro.is-active {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.intro {
  width: min(var(--max), 100%);
  min-height: calc(100vh - var(--topbar) - 156px);
  flex: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  align-items: center;
  gap: clamp(30px, 6vw, 100px);
  padding-bottom: 36px;
}

.intro__copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 30px 0 0;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-title__line {
  display: block;
  animation: revealUp 1s var(--ease) both;
}

.hero-title__line:first-child {
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  color: var(--text-soft);
  animation-delay: 0.08s;
}

.hero-title__line--accent {
  margin-top: 10px;
  font-size: clamp(58px, 7.35vw, 112px);
  color: var(--acid);
  text-shadow: 0 0 70px rgba(178, 255, 104, 0.12);
  animation-delay: 0.16s;
}

.hero-title__line--accent {
  position: relative;
}

.hero-title__line--accent::before {
  content: "";
  position: absolute;
  left: 0.03em;
  bottom: -0.24em;
  width: 0.92em;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0.8;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursorBlink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

.hero-lede {
  max-width: 560px;
  margin: 32px 0 0;
  color: var(--text-soft);
  font-size: clamp(14px, 1.18vw, 17px);
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: 0.02em;
  animation: revealUp 1s var(--ease) 0.26s both;
}

.hero-lede br {
  opacity: 0.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
  animation: revealUp 1s var(--ease) 0.36s both;
}

.primary-btn {
  position: relative;
  min-width: 232px;
  height: 62px;
  padding: 0 18px 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: #070a06;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease);
}

.primary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f2ffd0;
  transform: translateX(-102%);
  transition: transform 0.5s var(--ease);
}

.primary-btn > span {
  position: relative;
  z-index: 1;
}

.primary-btn:hover {
  box-shadow: 0 0 38px rgba(204, 255, 105, 0.22);
  transform: translateY(-2px);
}

.primary-btn:hover::before {
  transform: translateX(0);
}

.primary-btn__meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0.68;
}

.primary-btn__meta i {
  font-style: normal;
  font-size: 13px;
}

.primary-btn--small {
  min-width: 198px;
  height: 50px;
  font-size: 13px;
}

.text-btn {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-btn span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.text-btn:hover {
  color: var(--acid);
  border-color: var(--acid);
}

.text-btn:hover span {
  transform: translateX(4px);
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 3.2vw, 48px);
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  animation: revealUp 1s var(--ease) 0.46s both;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-stat span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.hero-stat small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
}

/* ---------- hero visual / radar ---------- */

.intro__visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  animation: visualIn 1.3s var(--ease) 0.2s both;
}

@keyframes visualIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.radar {
  position: relative;
  width: min(39vw, 540px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(88, 173, 95, 0.1), transparent 60%),
    rgba(5, 10, 6, 0.22);
  box-shadow:
    inset 0 0 80px rgba(89, 171, 97, 0.045),
    0 0 120px rgba(91, 174, 96, 0.035);
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.radar::before {
  inset: 7%;
  border: 1px dashed rgba(171, 225, 178, 0.12);
}

.radar::after {
  inset: -3%;
  border: 1px solid rgba(171, 225, 178, 0.055);
}

.radar__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(155, 216, 163, 0.16);
}

.radar__ring--1 { inset: 13%; }
.radar__ring--2 { inset: 27%; border-color: rgba(155, 216, 163, 0.1); }
.radar__ring--3 { inset: 41%; border-color: rgba(155, 216, 163, 0.19); }

.radar__axis {
  position: absolute;
  background: rgba(155, 216, 163, 0.12);
}

.radar__axis--x {
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
}

.radar__axis--y {
  top: 5%;
  bottom: 5%;
  left: 50%;
  width: 1px;
}

.radar__sweep {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, rgba(159, 255, 149, 0.17) 342deg, rgba(195, 255, 167, 0.48) 359deg, transparent 360deg);
  mask-image: radial-gradient(circle, transparent 0 15%, #000 16% 98%, transparent 100%);
  animation: radarSpin 9s linear infinite;
  opacity: 0.9;
}

@keyframes radarSpin {
  to { transform: rotate(360deg); }
}

.radar__cross {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.radar__cross::before,
.radar__cross::after {
  content: "";
  position: absolute;
  background: var(--muted);
}

.radar__cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.radar__cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.radar__cross--tl { top: 6%; left: 8%; }
.radar__cross--tr { top: 6%; right: 8%; }
.radar__cross--bl { bottom: 6%; left: 8%; }
.radar__cross--br { bottom: 6%; right: 8%; }

.hero-figure {
  position: absolute;
  width: 67%;
  height: 67%;
  z-index: 2;
  opacity: 0.9;
  filter: drop-shadow(0 0 22px rgba(173, 255, 159, 0.16));
}

.radar__tag {
  position: absolute;
  z-index: 4;
  font-family: var(--font-mono);
}

.radar__tag--top {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.radar__tag--top b {
  color: var(--acid);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
}

.radar__tag--bottom {
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted-dim);
  font-size: 8px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.scan-dots {
  display: flex;
  gap: 4px;
}

.scan-dots i {
  width: 14px;
  height: 2px;
  background: var(--line-strong);
}

.scan-dots i:nth-child(-n+3) {
  background: var(--acid);
  box-shadow: 0 0 7px rgba(204, 255, 105, 0.4);
}

.blip {
  position: absolute;
  z-index: 5;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 176, 74, 0.08), 0 0 14px var(--orange);
  animation: blipPulse 3s ease-in-out infinite;
}

.blip--1 { top: 29%; right: 23%; animation-delay: 0.3s; }
.blip--2 { bottom: 31%; left: 22%; animation-delay: 1.4s; }
.blip--3 { top: 57%; right: 15%; animation-delay: 2.1s; }

@keyframes blipPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.7); }
  20% { opacity: 1; transform: scale(1); }
  35% { opacity: 0.5; transform: scale(0.9); }
}

.hero-coord {
  position: absolute;
  top: 8%;
  right: 4%;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-align: right;
}

.data-chip {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(7, 12, 8, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.data-chip span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted-dim);
}

.data-chip strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--acid);
}

.data-chip small {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.data-chip__line {
  display: block;
  height: 1px;
  margin-top: 2px;
  background: linear-gradient(90deg, var(--acid), transparent);
}

.data-chip--a {
  top: 16%;
  left: -5%;
  animation: chipFloat 7s ease-in-out infinite;
}

.data-chip--b {
  right: -5%;
  bottom: 18%;
  animation: chipFloat 8s ease-in-out 0.7s infinite reverse;
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.side-label {
  position: absolute;
  right: -38px;
  top: 50%;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted-dim);
  white-space: nowrap;
}

.intro__foot {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 0 20px;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marqueeMove 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted-dim);
}

.marquee__track span:nth-child(even) {
  color: var(--acid);
  opacity: 0.65;
}

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

.intro__foot-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
  text-align: right;
}

/* ---------- quiz ---------- */

.screen--quiz {
  padding: calc(var(--topbar) + 34px) clamp(20px, 5vw, 80px) 34px;
}

.quiz {
  width: min(1360px, 100%);
  min-height: calc(100vh - var(--topbar) - 68px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(38px, 5.5vw, 90px);
  align-items: center;
}

.quiz__rail {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}

.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rail__exit {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-dim);
  font-size: 9px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rail__exit:hover {
  color: var(--red);
}

.question-counter {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 28px 0 18px;
}

.question-counter__current {
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 500;
  line-height: 0.8;
  color: var(--text);
}

.question-counter__total {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted-dim);
}

.rail-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 30px;
}

.rail-seg {
  height: 4px;
  background: rgba(190, 222, 194, 0.09);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.rail-seg.is-answered {
  background: rgba(204, 255, 105, 0.45);
}

.rail-seg.is-current {
  background: var(--acid);
  box-shadow: 0 0 12px rgba(204, 255, 105, 0.45);
}

.rail__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.rail__meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.rail__meta span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
}

.rail__meta b {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.rail__meta em {
  font-style: normal;
  color: var(--acid);
}

.rail__quote {
  margin-top: 30px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

.rail__quote span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted-dim);
}

.rail__quote p {
  margin: 9px 0 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

.rail__back {
  align-self: flex-start;
  margin-top: 30px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.rail__back span {
  margin-right: 5px;
}

.rail__back:hover:not(:disabled) {
  color: var(--acid);
  border-color: var(--acid);
}

.rail__back:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.quiz__main {
  position: relative;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(16, 26, 17, 0.9), rgba(6, 11, 7, 0.86));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.quiz__main::before,
.quiz__main::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.quiz__main::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--acid);
  border-left: 1px solid var(--acid);
}

.quiz__main::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--acid);
  border-bottom: 1px solid var(--acid);
}

.quiz__main.is-changing .sitrep,
.quiz__main.is-changing .question-title,
.quiz__main.is-changing .options {
  animation: questionSwap 0.48s var(--ease) both;
}

.quiz__main.is-changing .question-title {
  animation-delay: 0.035s;
}

.quiz__main.is-changing .options {
  animation-delay: 0.07s;
}

@keyframes questionSwap {
  from { opacity: 0.15; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.question-meta,
.question-time {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.question-meta #questionSector {
  color: var(--acid);
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(204, 255, 105, 0.38);
  background: rgba(204, 255, 105, 0.08);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
}

.mode-chip::before {
  content: "";
  width: 4px;
  height: 4px;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}

.mode-chip[data-mode="全面战场"] {
  border-color: rgba(255, 176, 74, 0.42);
  background: rgba(255, 176, 74, 0.09);
  color: var(--orange);
}

.mode-chip[hidden] {
  display: none;
}

.meta-sep {
  color: var(--muted-dim);
}

.question-time {
  color: var(--muted-dim);
  white-space: nowrap;
}

.question-time .live-dot {
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.sitrep {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 2px solid var(--orange);
  background: linear-gradient(90deg, rgba(255, 176, 74, 0.055), transparent);
}

.sitrep__label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--orange);
}

.sitrep p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 300;
  line-height: 1.8;
}

.question-title {
  max-width: 880px;
  margin: 30px 0 28px;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option {
  position: relative;
  min-height: 130px;
  padding: 20px 20px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  color: var(--text-soft);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s var(--ease);
}

.option::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(204, 255, 105, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.option::after {
  content: "↗";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: color 0.35s ease, transform 0.35s ease;
}

.option__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.option__index {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.option__line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.option__text {
  position: relative;
  z-index: 1;
  max-width: 92%;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.option:hover {
  border-color: rgba(204, 255, 105, 0.48);
  background: rgba(204, 255, 105, 0.035);
  color: var(--text);
  transform: translateY(-2px);
}

.option:hover::before {
  opacity: 1;
}

.option:hover::after {
  color: var(--acid);
  transform: translate(2px, -2px);
}

.option:hover .option__index {
  color: #070a06;
  border-color: var(--acid);
  background: var(--acid);
}

.option.is-selected {
  border-color: var(--acid);
  background: rgba(204, 255, 105, 0.08);
  color: var(--text);
}

.option.is-selected::before {
  opacity: 1;
}

.option.is-selected .option__index {
  color: #070a06;
  border-color: var(--acid);
  background: var(--acid);
}

.option.is-selected::after {
  content: "✓";
  color: var(--acid);
}

.option.is-dimmed {
  opacity: 0.42;
}

.option:disabled {
  cursor: default;
}

.question-foot {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  color: var(--muted-dim);
}

.keyboard-hint {
  display: flex;
  align-items: center;
  gap: 5px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.question-foot__right {
  margin-left: auto;
}

/* ---------- result ---------- */

.screen--result {
  padding: calc(var(--topbar) + 26px) clamp(20px, 5vw, 80px) 56px;
}

.result {
  width: min(1360px, 100%);
  margin: 0 auto;
}

.result__topline {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--muted-dim);
}

.result__topline > span:nth-child(2) {
  margin-left: auto;
}

.result__topline b {
  font-weight: 400;
  color: var(--muted);
}

.complete-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
}

.complete-mark i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 9px var(--acid);
}

.result-hero {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 190px;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(34px, 5vw, 70px) 0 clamp(38px, 5vw, 60px);
}

.result-hero::before {
  content: attr(data-code);
  position: absolute;
  right: 0;
  top: 8px;
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(200, 245, 198, 0.018);
  pointer-events: none;
}

.result-emblem {
  position: relative;
  width: 238px;
  height: 238px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 65%),
    rgba(8, 14, 9, 0.64);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.3), 0 0 80px color-mix(in srgb, var(--accent) 8%, transparent);
}

.emblem__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.emblem__ring--a { inset: 13%; border-style: dashed; opacity: 0.65; animation: ringRotate 24s linear infinite; }
.emblem__ring--b { inset: 24%; opacity: 0.34; animation: ringRotate 17s linear infinite reverse; }
.emblem__ring--c { inset: 34%; opacity: 0.2; }

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.emblem__scan {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent 45%, color-mix(in srgb, var(--accent) 10%, transparent) 50%, transparent 55%);
  background-size: 100% 200%;
  animation: emblemScan 5s ease-in-out infinite;
}

@keyframes emblemScan {
  0%, 100% { background-position: 0 -100%; }
  50% { background-position: 0 100%; }
}

.emblem__char {
  position: relative;
  z-index: 2;
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 50px color-mix(in srgb, var(--accent) 24%, transparent);
}

.emblem__role {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: #081009;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.emblem__corner {
  position: absolute;
  width: 16px;
  height: 16px;
}

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

.result-role-row {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}

.role-chip {
  --role-color: var(--role-assault);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--role-color) 42%, transparent);
  background: color-mix(in srgb, var(--role-color) 9%, transparent);
  color: var(--role-color);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.role-chip::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.result-org {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.result-title h2 {
  margin: 13px 0 0;
  font-size: clamp(58px, 7vw, 100px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text);
  text-wrap: balance;
}

.result-en {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.result-en span {
  margin: 0 7px;
  color: var(--muted-dim);
}

.result-quote {
  margin: 25px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-soft);
}

.result-style {
  margin: 17px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.match-dial {
  --match: 0;
  position: relative;
  justify-self: end;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--match) * 1%), rgba(190, 230, 195, 0.09) 0);
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 15%, transparent));
}

.match-dial::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #070c08;
}

.match-dial::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.match-dial__ticks {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(213, 245, 213, 0.22) 0deg 0.6deg, transparent 0.6deg 9deg);
  mask-image: radial-gradient(circle, transparent 0 87%, #000 88% 91%, transparent 92%);
  opacity: 0.55;
}

.match-dial__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.match-dial__inner strong {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.match-dial__inner strong small {
  margin-left: 2px;
  font-size: 15px;
  color: var(--accent);
}

.match-dial__inner > span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
}

.panel {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 23, 15, 0.62), rgba(6, 11, 7, 0.48));
  backdrop-filter: blur(10px);
}

.panel::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 26px;
  width: 42px;
  height: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.panel__index {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--accent);
}

.panel__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.panel__head h3 small {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: var(--muted-dim);
}

.result-bio > p {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
}

.bio-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 26px 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.bio-facts > div {
  padding: 13px 14px;
  background: #080d08;
}

.bio-facts dt {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--muted-dim);
}

.bio-facts dd {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--text-soft);
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}

.bio-tags span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.bio-blindspot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.bio-blindspot span {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid rgba(255, 176, 74, 0.3);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.bio-blindspot b {
  font-weight: 300;
}

.spectrum {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spectrum-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.spectrum-row__label {
  font-size: 11px;
  color: var(--text-soft);
}

.spectrum-row__bar {
  height: 5px;
  overflow: hidden;
  background: rgba(187, 225, 193, 0.08);
}

.spectrum-row__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 20%, transparent);
  transition: width 1.1s var(--ease);
}

.spectrum-row__value {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  text-align: right;
}

.spectrum__note {
  margin: 19px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted-dim);
}

.gear-panel {
  margin-top: 14px;
}

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

.gear-card {
  position: relative;
  min-height: 135px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.gear-card::before {
  content: attr(data-index);
  position: absolute;
  right: 10px;
  bottom: -14px;
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  color: rgba(215, 245, 211, 0.035);
}

.gear-card__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.gear-card h4 {
  position: relative;
  z-index: 1;
  margin: 20px 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.gear-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
}

.insight-panel {
  margin-top: 14px;
}

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

.insight-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.insight-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.insight-card p {
  margin: 9px 0 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-soft);
}

.runnerups {
  margin-top: 34px;
}

.runnerups__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.runnerups__head > span:last-child {
  font-size: 10px;
  color: var(--muted-dim);
}

.runner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.runner-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.runner-card:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.022);
}

.runner-card__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--runner-accent) 32%, transparent);
  background: color-mix(in srgb, var(--runner-accent) 7%, transparent);
  color: var(--runner-accent);
  font-size: 23px;
  font-weight: 700;
}

.runner-card__info {
  min-width: 0;
  flex: 1;
}

.runner-card__info strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.runner-card__info small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
}

.runner-card__score {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--runner-accent);
}

.runner-card__score small {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted-dim);
}

.result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.outline-btn {
  height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.outline-btn:hover {
  color: var(--acid);
  border-color: var(--acid);
  background: rgba(204, 255, 105, 0.035);
}

.result-disclaimer {
  max-width: 860px;
  margin: 24px 0 0;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted-dim);
}

/* ---------- overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 32px);
}

.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 3, 0.82);
  backdrop-filter: blur(10px);
}

.archive {
  position: relative;
  z-index: 1;
  width: min(1420px, 100%);
  height: min(90vh, 980px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(13, 22, 14, 0.97), rgba(5, 9, 6, 0.98));
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.45s var(--ease) both;
}

.archive::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 34px;
  width: 140px;
  height: 1px;
  background: var(--acid);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.archive__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3.5vw, 52px) 22px;
  border-bottom: 1px solid var(--line);
}

.archive__head h2 {
  margin: 9px 0 0;
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.archive__head p {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

.close-btn {
  flex: 0 0 auto;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.close-btn span {
  margin-right: 6px;
  color: var(--muted-dim);
}

.close-btn:hover {
  color: var(--acid);
  border-color: var(--acid);
}

.archive__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(24px, 3.5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-chip span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted-dim);
}

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

.filter-chip.is-active {
  color: #070a06;
  border-color: var(--acid);
  background: var(--acid);
}

.filter-chip.is-active span {
  color: rgba(7, 10, 6, 0.55);
}

.archive__count {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--muted-dim);
  white-space: nowrap;
}

.archive__grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  padding: 20px clamp(24px, 3.5vw, 52px) 36px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.archive__grid::-webkit-scrollbar {
  width: 6px;
}

.archive__grid::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

.operator-card {
  position: relative;
  min-height: 260px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  transition: border-color 0.3s ease, transform 0.35s var(--ease), background 0.3s ease;
  animation: cardIn 0.45s var(--ease) both;
}

.operator-card:hover {
  border-color: color-mix(in srgb, var(--operator-accent) 45%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--operator-accent) 5%, transparent), rgba(255, 255, 255, 0.008));
  transform: translateY(-4px);
}

.operator-card::after {
  content: attr(data-monogram);
  position: absolute;
  right: 10px;
  bottom: -34px;
  font-size: 136px;
  font-weight: 900;
  line-height: 1;
  color: color-mix(in srgb, var(--operator-accent) 6%, transparent);
  pointer-events: none;
}

.operator-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.operator-card__role {
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--operator-accent) 32%, transparent);
  color: var(--operator-accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.operator-card__index {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
}

.operator-card h3 {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.operator-card__alias {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.operator-card__summary {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.operator-card__gear {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
}

.operator-card__gear span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 8px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* brief modal */

.overlay--modal {
  z-index: 110;
}

.brief-modal {
  position: relative;
  z-index: 1;
  width: min(790px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 100% 0%, rgba(204, 255, 105, 0.06), transparent 38%),
    linear-gradient(135deg, rgba(15, 25, 16, 0.98), rgba(6, 10, 7, 0.99));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.4s var(--ease) both;
}

.brief-modal::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 30px;
  width: 100px;
  height: 1px;
  background: var(--acid);
}

.brief-modal__close {
  position: absolute;
  top: 22px;
  right: 24px;
}

.brief-modal h2 {
  margin: 20px 0 0;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.brief-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 31px 0;
}

.brief-modal__grid > div {
  padding: 17px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}

.brief-modal__grid span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.brief-modal__grid p {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-soft);
}

.brief-modal__note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
}

/* ---------- boot ---------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #040704;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(170, 219, 177, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 219, 177, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, #000, transparent 75%);
}

.boot__panel {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 9, 0.82);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.boot__top,
.boot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted-dim);
}

.boot__mark {
  margin: 30px 0 12px;
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--acid);
  line-height: 1;
  animation: bootPulse 1.8s ease-in-out infinite;
}

.boot__title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.17em;
  color: var(--text-soft);
}

.boot__log {
  min-height: 50px;
  margin: 22px 0 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}

.boot__log p {
  margin: 0;
}

.boot__log p:last-child {
  color: var(--acid);
}

.boot__bar {
  height: 2px;
  overflow: hidden;
  background: rgba(204, 255, 105, 0.1);
}

.boot__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  transition: width 0.3s ease;
}

.boot__bottom {
  margin-top: 12px;
}

@keyframes bootPulse {
  0%, 100% { opacity: 0.45; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 24px rgba(204, 255, 105, 0.45); }
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 14, 9, 0.96);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: 30px;
  }

  .radar {
    width: min(40vw, 460px);
  }

  .data-chip--a {
    left: -2%;
  }

  .data-chip--b {
    right: -2%;
  }

  .result-hero {
    grid-template-columns: 210px minmax(0, 1fr) 150px;
  }

  .result-emblem {
    width: 200px;
    height: 200px;
  }

  .emblem__char {
    font-size: 76px;
  }

  .match-dial {
    width: 150px;
    height: 150px;
  }

  .match-dial__inner strong {
    font-size: 40px;
  }
}

@media (max-width: 960px) {
  :root {
    --topbar: 68px;
  }

  .topbar__center {
    display: none;
  }

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

  .topbar__actions {
    justify-self: end;
  }

  .intro {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 60px;
  }

  .intro__copy {
    max-width: 760px;
  }

  .hero-title__line--accent {
    font-size: clamp(58px, 11vw, 96px);
  }

  .intro__visual {
    min-height: auto;
    padding: 38px 0 50px;
  }

  .radar {
    width: min(68vw, 520px);
  }

  .side-label {
    display: none;
  }

  .data-chip--a {
    top: 20%;
    left: 4%;
  }

  .data-chip--b {
    right: 4%;
    bottom: 20%;
  }

  .quiz {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 8px;
    align-items: start;
  }

  .quiz__rail {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
    padding: 0;
  }

  .rail__top {
    grid-column: 1 / -1;
    padding-bottom: 10px;
  }

  .question-counter,
  .rail-progress,
  .rail__meta,
  .rail__quote,
  .rail__back {
    display: none;
  }

  .quiz__main {
    padding: 28px;
  }

  .result-hero {
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 24px;
  }

  .result-emblem {
    width: 160px;
    height: 160px;
  }

  .emblem__char {
    font-size: 62px;
  }

  .match-dial {
    width: 122px;
    height: 122px;
  }

  .match-dial__inner strong {
    font-size: 34px;
  }

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

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

@media (max-width: 720px) {
  .topbar {
    padding: 0 18px;
    gap: 12px;
  }

  .topbar::after {
    left: 18px;
    right: 18px;
  }

  .brand__text small {
    display: none;
  }

  .hud-btn#briefBtn {
    display: none;
  }

  .hud-btn {
    padding: 0 7px;
    font-size: 9px;
  }

  .clock {
    display: none;
  }

  .screen--intro {
    padding: calc(var(--topbar) + 24px) 20px 0;
  }

  .hero-title {
    margin-top: 23px;
  }

  .hero-title__line:first-child {
    font-size: 16px;
    letter-spacing: 0.16em;
  }

  .hero-title__line--accent {
    font-size: clamp(49px, 14vw, 74px);
  }

  .hero-lede {
    margin-top: 23px;
    font-size: 13px;
    line-height: 1.9;
  }

  .hero-lede br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-top: 28px;
  }

  .primary-btn {
    width: 100%;
    min-width: 0;
    height: 56px;
  }

  .text-btn {
    align-self: flex-start;
  }

  .hero-stats {
    gap: 18px;
    margin-top: 32px;
    padding-top: 18px;
    flex-wrap: wrap;
  }

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

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

  .intro__visual {
    padding: 26px 0 34px;
  }

  .radar {
    width: min(86vw, 420px);
  }

  .data-chip {
    display: none;
  }

  .hero-coord {
    display: none;
  }

  .intro__foot {
    padding-bottom: 14px;
  }

  .intro__foot-meta {
    text-align: left;
    font-size: 7px;
  }

  .screen--quiz {
    padding: calc(var(--topbar) + 16px) 14px 20px;
  }

  .quiz__main {
    padding: 20px 16px;
  }

  .quiz__main::before,
  .quiz__main::after {
    width: 12px;
    height: 12px;
  }

  .question-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .question-meta {
    font-size: 8px;
    flex-wrap: wrap;
  }

  .question-time {
    font-size: 8px;
  }

  .sitrep {
    margin-top: 22px;
    padding: 14px 14px;
  }

  .sitrep p {
    font-size: 11px;
    line-height: 1.75;
  }

  .question-title {
    margin: 23px 0 19px;
    font-size: clamp(22px, 6.8vw, 30px);
    line-height: 1.35;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .option {
    min-height: 0;
    padding: 16px 14px;
  }

  .option__text {
    max-width: 90%;
    font-size: 12px;
    line-height: 1.65;
  }

  .option::after {
    right: 13px;
    bottom: 11px;
  }

  .question-foot {
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 7px;
  }

  .question-foot__right {
    margin-left: 0;
    width: 100%;
  }

  .screen--result {
    padding: calc(var(--topbar) + 18px) 14px 38px;
  }

  .result__topline {
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 7px;
  }

  .result__topline > span:nth-child(2) {
    margin-left: 0;
  }

  .result-hero {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 20px;
    padding: 28px 0 34px;
  }

  .result-emblem {
    grid-row: 2;
    width: 124px;
    height: 124px;
  }

  .emblem__char {
    font-size: 48px;
  }

  .emblem__role {
    padding: 4px 7px;
    font-size: 6px;
  }

  .result-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .result-title h2 {
    font-size: clamp(52px, 17vw, 76px);
  }

  .result-quote {
    margin-top: 18px;
    font-size: 14px;
  }

  .match-dial {
    grid-column: 2;
    grid-row: 2;
    width: 106px;
    height: 106px;
  }

  .match-dial__inner strong {
    font-size: 29px;
  }

  .match-dial__inner > span {
    font-size: 7px;
  }

  .result-grid {
    gap: 10px;
  }

  .panel {
    padding: 19px 16px;
  }

  .panel__head {
    margin-bottom: 17px;
  }

  .panel__head h3 {
    font-size: 13px;
  }

  .panel__head h3 small {
    display: none;
  }

  .result-bio > p {
    font-size: 12px;
    line-height: 1.9;
  }

  .bio-facts {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .bio-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
  }

  .bio-facts dd {
    margin: 0;
    text-align: right;
  }

  .spectrum-row {
    grid-template-columns: 42px minmax(0, 1fr) 32px;
  }

  .gear-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .gear-card {
    min-height: 112px;
  }

  .runnerups__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .runner-list {
    grid-template-columns: 1fr;
  }

  .runner-card {
    padding: 14px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .result-actions .primary-btn {
    grid-column: 1 / -1;
  }

  .result-actions .outline-btn {
    width: 100%;
    height: 46px;
    padding: 0 8px;
  }

  .overlay {
    padding: 0;
  }

  .archive {
    width: 100%;
    height: 100%;
    border: 0;
  }

  .archive__head {
    padding: 22px 18px 16px;
  }

  .archive__head h2 {
    font-size: 31px;
  }

  .archive__head p {
    font-size: 10px;
  }

  .close-btn {
    font-size: 8px;
  }

  .archive__toolbar {
    display: block;
    padding: 12px 18px;
  }

  .filter-group {
    gap: 2px;
  }

  .filter-chip {
    padding: 6px 8px;
    font-size: 9px;
  }

  .archive__count {
    display: block;
    margin-top: 9px;
  }

  .archive__grid {
    grid-template-columns: 1fr;
    padding: 14px 14px 30px;
  }

  .operator-card {
    min-height: 0;
    padding: 18px;
  }

  .operator-card h3 {
    font-size: 25px;
  }

  .operator-card__summary {
    -webkit-line-clamp: 4;
  }

  .brief-modal {
    width: calc(100% - 24px);
    max-height: 88vh;
    padding: 26px 20px;
  }

  .brief-modal h2 {
    margin-top: 25px;
    font-size: 31px;
  }

  .brief-modal__grid {
    grid-template-columns: 1fr;
    margin: 23px 0;
  }

  .brief-modal__close {
    top: 15px;
    right: 18px;
  }

  .boot__panel {
    padding: 22px;
  }

  .toast {
    width: calc(100% - 32px);
    text-align: center;
  }
}

@media (max-width: 420px) {
  .brand__mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .brand__text strong {
    font-size: 12px;
  }

  .hud-btn#archiveBtn {
    font-size: 8px;
  }

  .hero-title__line--accent {
    font-size: 13vw;
  }

  .result-title h2 {
    font-size: 16vw;
  }
}

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