/* PickTheFuture · Direction B: retro arcade. Quiz + result only; text pages keep app.css (Inter). */
@font-face { font-family: "Silkscreen"; src: url("/fonts/silkscreen-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #07080f;
  --box: #12152a;
  --box-2: #1a1e38;
  --edge: #2e3354;
  --fg: #f3f0e8;
  --dim: #b4bad2;
  --yellow: #ffd447;
  --yellow-deep: #8a6a00;
  --pink: #ff6fae;
  --cyan: #3ee6e0;
  --red: #ff7a6b;
  --accent: var(--cyan);
  --pixel: "Silkscreen", "Courier New", monospace;
  --term: "VT323", "Courier New", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.arcade {
  min-height: 100dvh;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--bg);
  color: var(--fg);
  font-family: var(--term);
  font-size: 22px;
  line-height: 1.12;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* CRT: scanlines + vignette + a slow, faint flicker. Pointer-transparent; removed for reduced motion's flicker. */
body.arcade::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px),
    radial-gradient(130% 100% at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.5));
  animation: crt-flicker 6s steps(1) infinite;
}
@keyframes crt-flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.86; } 48% { opacity: 1; } }

button, a, input { font: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--fg); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.page { position: relative; z-index: 1; min-height: 100dvh; padding: calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom)); }
.ax-screen { width: min(480px, 100%); margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }

.pixel-box {
  background: var(--box);
  box-shadow: 0 -4px 0 0 var(--fg), 0 4px 0 0 var(--fg), -4px 0 0 0 var(--fg), 4px 0 0 0 var(--fg);
  margin: 4px;
}
.ax-hud-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 700 12px/1.2 var(--pixel); text-transform: uppercase; letter-spacing: 0.02em; min-height: 20px; }
.ax-yellow { color: var(--yellow); }
.ax-cyan { color: var(--cyan); }
.ax-pink { color: var(--pink); }
.ax-dim { color: var(--dim); }
.ax-center { text-align: center; }
.ax-kicker { margin: 0; font: 700 12px/1.3 var(--pixel); text-transform: uppercase; letter-spacing: 0.03em; }
.ax-note, .ax-fine { color: var(--dim); font-size: 19px; margin: 6px 0 0; }
.ax-fine { font-size: 18px; }
.ax-chip { display: inline-block; font: 700 9px/1 var(--pixel); color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); padding: 3px 5px; margin-left: 6px; vertical-align: 3px; text-transform: uppercase; }
.ax-icon { display: inline-block; vertical-align: -2px; shape-rendering: crispEdges; }

/* Buttons: 52px tall, pixel border, hard drop shadow for the primary. */
.ax-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 16px;
  font: 700 14px/1 var(--pixel); text-transform: uppercase; text-decoration: none; letter-spacing: 0.02em;
  background: var(--box); color: var(--fg); box-shadow: 0 0 0 3px var(--fg);
}
.ax-btn:hover { background: var(--box-2); }
.ax-btn:active { transform: translate(2px, 2px); }
.ax-btn-pri { background: var(--yellow); color: #111; box-shadow: 0 0 0 3px var(--yellow), 5px 5px 0 3px var(--yellow-deep); }
.ax-btn-pri:hover { background: #ffe07a; }
.ax-btn-pri:active { box-shadow: 0 0 0 3px var(--yellow), 2px 2px 0 3px var(--yellow-deep); }
.ax-btn:disabled { background: var(--box); color: #8d93ad; box-shadow: 0 0 0 3px #4a5072; cursor: not-allowed; transform: none; }
.ax-btn-quiet { box-shadow: 0 0 0 3px var(--edge); color: var(--dim); }

@property --f { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --g { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* Stats: ten blocks per bar. Each block fills to its own tenth via --f. */
.ax-stats { display: flex; flex-direction: column; gap: 7px; }
.ax-stat { display: grid; grid-template-columns: 78px 1fr 30px; column-gap: 8px; align-items: center; font: 700 11px/1 var(--pixel); text-transform: uppercase; }
.ax-stat-num { color: var(--yellow); text-align: right; font-size: 12px; }
.ax-blocks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; height: 13px; }
.ax-blocks i { transition: --f .3s steps(4), --g .3s steps(4); --d: var(--cyan); display: block; background: linear-gradient(90deg, var(--cyan) var(--f), var(--d) var(--f) var(--g), #262a45 var(--g)); }
.ax-stat.is-up .ax-blocks i { transition: --f .3s steps(4), --g .3s steps(4); --d: var(--yellow); }
.ax-stat.is-down .ax-blocks i { transition: --f .3s steps(4), --g .3s steps(4); --d: #b8434f; }
.ax-stat.is-up .ax-stat-num { color: var(--yellow); animation: num-pop 0.36s steps(3); }
.ax-stat.is-down .ax-stat-num { color: var(--red); animation: num-pop 0.36s steps(3); }
@keyframes num-pop { 0% { transform: scale(1.6); } 100% { transform: none; } }
.ax-poles { grid-column: 2 / 3; display: flex; justify-content: space-between; font: 400 16px/1 var(--term); text-transform: none; color: var(--dim); margin-top: 3px; }
.ax-stats:not(.is-hud) .ax-stat { row-gap: 0; }

/* Landing */
.ax-landing { gap: 18px; }
.ax-title { padding: 18px 4px 0; }
.ax-logo { margin: 12px 0 0; font: 700 54px/0.96 var(--pixel); text-transform: uppercase; color: var(--yellow); text-shadow: 5px 5px 0 #8a2a55; letter-spacing: -0.01em; }
.ax-lede { margin: 16px 0 0; font-size: 24px; max-width: 24ch; }
.ax-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; }
.ax-facts li { font: 700 11px/1 var(--pixel); text-transform: uppercase; color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan); padding: 6px 8px; }
.ax-start { width: 100%; margin-top: 16px; min-height: 60px; font-size: 18px; }
.ax-start .ax-icon { animation: blink 1s steps(1) infinite; }
.ax-frame {
  margin: 16px 0 0;
  max-width: 36ch;
  font: 700 12px/1.45 var(--pixel);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--yellow);
}
@keyframes blink { 50% { opacity: 0; } }
.ax-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; color: var(--dim); font-size: 21px; }
.ax-roster { padding: 14px; }
.ax-roster ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.ax-roster li { display: flex; align-items: center; gap: 8px; font-size: 21px; }
.ax-roster li i { width: 12px; height: 12px; background: var(--c); box-shadow: 0 0 0 2px var(--bg); flex: none; }
.ax-foot { margin: auto 0 0; padding-top: 16px; text-align: center; font: 700 10px/1.5 var(--pixel); color: var(--dim); text-transform: uppercase; }

/* Quiz */
.ax-hud { margin-top: 14px; padding: 10px 12px; display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; }
.ax-hud-crest { width: 62px; height: 68px; display: grid; place-items: center; background: #05060c; }
.ax-crest { width: 52px; height: 57px; }
.ax-crest .seg { opacity: 0.14; transition: opacity 0.3s steps(2); }
.ax-crest .seg.on { opacity: 1; }
.ax-q { padding: 0 4px; }
.ax-q .ax-kicker { margin-top: 22px; }
.ax-q:has(.ax-options[data-count="5"]) .ax-kicker { margin-top: 14px; }
.ax-q h1 { margin: 8px 0 6px; font: 400 33px/1 var(--term); letter-spacing: 0.005em; outline: none; }
.ax-hint { margin: 0 0 14px; color: var(--dim); font-size: 21px; }
.ax-options { display: flex; flex-direction: column; gap: 12px; }
.ax-options[data-count="4"],
.ax-options[data-count="5"] { gap: 8px; }
.ax-option {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; text-align: left;
  width: 100%; min-height: 58px; padding: 10px 12px;
  background: var(--box); box-shadow: 0 0 0 3px var(--edge); color: var(--fg);
}
.ax-options[data-count="4"] .ax-option,
.ax-options[data-count="5"] .ax-option { min-height: 52px; padding: 8px 10px; }
.ax-option:hover { box-shadow: 0 0 0 3px #59608c; }
.ax-key { width: 26px; height: 26px; display: grid; place-items: center; font: 700 13px/1 var(--pixel); color: var(--bg); background: var(--dim); margin-top: 1px; }
.ax-option-text { display: flex; flex-direction: column; }
.ax-option .label { font-size: 24px; line-height: 1; }
.ax-option .detail {
  color: #cdd2e4;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 4px;
}
.ax-option[aria-pressed="true"] { background: #1f1c10; box-shadow: 0 0 0 3px var(--yellow); }
.ax-option[aria-pressed="true"] .ax-key { background: var(--yellow); }
.ax-writein { display: block; margin-top: 18px; }
.ax-writein .ax-kicker { color: var(--cyan); }
.ax-writein input { width: 100%; margin-top: 8px; min-height: 52px; padding: 0 12px; font-size: 24px; color: var(--fg); background: #05060c; border: 0; box-shadow: 0 0 0 3px var(--edge); border-radius: 0; }
.ax-writein input:focus-visible { box-shadow: 0 0 0 3px var(--yellow); outline: none; }
.ax-wild-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ax-wild-actions [data-wish] { width: 100%; }
.ax-skip-link {
  appearance: none; background: none; border: 0; box-shadow: none; border-radius: 0;
  color: var(--dim); font: 700 13px/1.4 var(--pixel); text-transform: uppercase;
  letter-spacing: 0.04em; min-height: 44px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; align-self: center; padding: 8px 12px;
}
.ax-skip-link:hover, .ax-skip-link:focus-visible { color: var(--fg); outline: none; }
.ax-controls { margin-top: auto; padding: 20px 4px 8px; display: flex; justify-content: flex-start; gap: 16px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 26%); }
.ax-controls [data-back] { min-width: 120px; max-width: 200px; }
.ax-quiz .ax-fine { margin: 4px 0 0; font-size: 17px; }

/* Result */
.ax-result { gap: 0; }
.ax-loot-card { margin-top: 18px; padding: 16px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 20%, #0c1230), #0b1028); box-shadow: 0 0 0 4px var(--accent), 0 0 0 8px var(--bg), 0 0 0 12px var(--fg); margin-left: 12px; margin-right: 12px; }
.ax-card-head { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
.ax-portrait, .ax-reveal-portrait { display: flex; align-items: center; justify-content: center; }
.ax-emblem { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 68%); }
.ax-emblem svg { width: 256px; height: 256px; display: block; shape-rendering: geometricPrecision; }
.ax-result h1, .ax-reveal-card h2 { margin: 8px 0 0; font: 700 var(--name-size, 25px)/1.15 var(--pixel); text-transform: uppercase; overflow-wrap: break-word; word-break: normal; hyphens: none; outline: none; }
.ax-subclass { margin: 6px 0 0; font: 700 11px/1.2 var(--pixel); color: #a8c4ff; text-transform: uppercase; }
.ax-lean-blurb { margin: 8px 0 0; font: 400 14px/1.35 var(--sans, Inter, system-ui, sans-serif); color: #b4bad2; }
.ax-worldview { margin: 12px 0 0; font: 400 15px/1.55 "Inter", system-ui, sans-serif; color: var(--fg); max-width: 42em; }
.ax-result .ax-stats { gap: 10px; margin: 4px 0 0; }
.ax-result .ax-stat { row-gap: 2px; }
.ax-result .ax-stat-legend { margin: 4px 0 8px; }
.ax-result h1 { margin-top: 14px; }
.ax-class-line { margin: 10px 0 12px; font-size: 23px; line-height: 1.05; }
.ax-perk { margin: 12px 0 0; font-size: 21px; line-height: 1.05; }
.ax-perk b { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--pixel); text-transform: uppercase; margin-bottom: 4px; }
.ax-special b { color: var(--yellow); }
.ax-weak b { color: var(--pink); }
.ax-share-count { margin: 26px 8px 0; color: var(--dim); font-size: 20px; }
.ax-share-count p { margin: 0 0 4px; }
.ax-share-count b { font: 700 13px/1.3 var(--pixel); color: var(--fg); text-transform: uppercase; }
.ax-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 8px 0; }
.ax-actions [hidden] { display: none; }
.ax-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.ax-status { margin: 8px; min-height: 22px; color: var(--cyan); font-size: 20px; }
.ax-loot { margin: 10px 8px 0; padding: 0 12px; }
.ax-loot summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font: 700 12px/1 var(--pixel); text-transform: uppercase; color: var(--cyan); list-style: none; }
.ax-loot summary::-webkit-details-marker { display: none; }
.ax-loot summary::after { content: "+"; color: var(--yellow); font-size: 16px; }
.ax-loot[open] summary::after { content: "−"; }
.ax-loot[open] { padding-bottom: 12px; }
.ax-loot .ax-note { margin: 0 0 6px; }
.ax-loot-item { border-top: 2px dashed var(--edge); padding: 10px 0 4px; }
.ax-loot-item h3 { margin: 4px 0 0; font-size: 24px; font-weight: 400; line-height: 1; }
.ax-by { margin: 2px 0 0; color: var(--dim); font-size: 18px; }
.ax-why { margin: 4px 0 0; font-size: 20px; line-height: 1.05; }
.ax-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; margin: 18px 0 0; }
.ax-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 21px; color: var(--dim); }
.ax-result .ax-foot { margin-top: 8px; }

/* Reveal: loot card flips in on stepped frames, holds, and fades. About 2.4s total. CSS only. */
.ax-reveal {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  padding: 24px; text-align: center; background: var(--bg);
  animation: reveal-out 0.3s steps(3) 2.4s forwards;
}
.ax-reveal[hidden] { display: none; }
body.is-revealing { overflow: hidden; }
.ax-new { margin: 10px 0 26px; font: 700 34px/1.05 var(--pixel); color: var(--yellow); text-transform: uppercase; text-shadow: 4px 4px 0 #8a2a55; animation: pop-in 0.24s steps(3) 0.2s both; }
.ax-reveal > .ax-kicker { animation: pop-in 0.2s steps(2) both; }
.ax-reveal-card { width: min(270px, 78vw); padding: 18px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, #0c1230), #0b1028); box-shadow: 0 0 0 4px var(--accent), 0 0 0 8px var(--bg), 0 0 0 12px var(--fg); animation: card-flip 0.9s steps(8) 0.45s both; }
.ax-reveal-portrait { margin: 8px auto 4px; }
.ax-reveal-portrait .ax-emblem svg { width: 224px; height: 224px; }
.ax-reveal .ax-fine { font-size: 21px; margin-top: 26px; animation: pop-in 0.2s steps(2) 1.5s both; }
.ax-skip-reveal { margin-top: 18px; }
@keyframes card-flip { 0% { transform: perspective(600px) rotateY(180deg) scale(0.55); filter: brightness(3); } 100% { transform: none; filter: none; } }
@keyframes pop-in { from { transform: scale(0.3); opacity: 0; } }
@keyframes reveal-out { to { opacity: 0; visibility: hidden; } }

@media (min-width: 720px) {
  .page { padding-top: 32px; }
  .ax-q h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  body.arcade::after { animation: none; }
  .ax-start .ax-icon, .ax-stat-num { animation: none !important; }
  .ax-reveal { display: none !important; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
}
@media (forced-colors: active) {
  .ax-option[aria-pressed="true"] { outline: 3px solid Highlight; }
  .ax-blocks i { border: 1px solid CanvasText; }
}

/* Bonus screen is tall (options + write-in). Tighten so Back stays on a 390×844 phone. */
.ax-quiz[data-step="wild"] .ax-hud { margin-top: 6px; padding: 8px 12px; }
.ax-quiz[data-step="wild"] .ax-q .ax-kicker { margin-top: 6px; }
.ax-quiz[data-step="wild"] .ax-hint { margin-bottom: 6px; }
.ax-quiz[data-step="wild"] .ax-options { gap: 6px; }
.ax-quiz[data-step="wild"] .ax-option { min-height: 44px; padding: 7px 10px; }
.ax-quiz[data-step="wild"] .ax-writein { margin-top: 8px; }
.ax-quiz[data-step="wild"] .ax-writein input { min-height: 44px; }
.ax-quiz[data-step="wild"] .ax-wild-actions { margin-top: 10px; gap: 4px; }
.ax-quiz[data-step="wild"] .ax-controls { position: static; padding: 8px 4px 0; }
.ax-quiz[data-step="wild"] .ax-fine { margin-top: 2px; }

/* Polish: keep pixels for headings, buttons, HUD and badges; put reading in Inter. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
body.arcade { font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
.ax-q h1 { font: 400 25px/1.22 "Inter", system-ui, sans-serif; letter-spacing: -.025em; }
.ax-option .label { font-size: 17px; line-height: 1.3; }
.ax-option .detail { font-size: 15px; line-height: 1.5; color: #cdd2e4; }
.ax-hint { font-size: 15px; line-height: 1.45; }
.ax-lede { font-size: 18px; max-width: 32ch; }
.ax-note, .ax-fine { font-size: 13px; line-height: 1.5; }
.ax-quiz .ax-fine { font-size: 12px; }
.ax-link, .ax-links a { font-size: 15px; }
.ax-roster li { font-size: 14px; }
.ax-class-line { font-size: 17px; line-height: 1.45; margin: 14px 0; }
.ax-perk { font-size: 15px; line-height: 1.45; margin-top: 16px; }
.ax-perk b { margin-bottom: 8px; }
.ax-share-count { font-size: 13px; line-height: 1.55; }
.ax-status { font-size: 14px; }
.ax-loot-item h3 { font: 700 14px/1.35 var(--pixel); text-transform: uppercase; margin-top: 6px; }
.ax-by { font-size: 13px; }
.ax-why { font-size: 14px; line-height: 1.5; }
.ax-poles { font: 400 11px/1.2 "Inter", system-ui, sans-serif; }
.ax-writein input { font-size: 16px; }
.ax-reveal .ax-fine { font-size: 13px; }
.ax-stat-explain { grid-column: 1 / -1; font: 400 13px/1.5 "Inter", system-ui, sans-serif; text-transform: none; margin: 8px 0 10px; color: var(--fg); }
.ax-stat-explain span { display: block; font-size: 12px; color: var(--dim); margin-top: 4px; }
.ax-stat-explain b { color: var(--fg); font-weight: 400; }
.ax-stat-legend { margin: 8px 4px 0; font-size: 13px; color: var(--dim); }
.ax-stat-legend summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.ax-stat-legend summary::before { content: "+"; font: 700 14px/1 var(--pixel); color: var(--cyan); }
.ax-stat-legend[open] summary::before { content: "−"; }
.ax-stat-legend dl { margin: 0; padding: 0 12px; background: var(--box); border: 2px solid var(--edge); }
.ax-stat-legend dl div { padding: 12px 0; border-bottom: 1px dashed var(--edge); }
.ax-stat-legend dl div:last-child { border: 0; }
.ax-stat-legend dt { font: 700 11px/1 var(--pixel); color: var(--cyan); text-transform: uppercase; margin-bottom: 8px; }
.ax-stat-legend dd { margin: 0; color: var(--fg); line-height: 1.5; }
.ax-stat-legend dd span { display: block; color: var(--dim); margin-top: 4px; }
.ax-stat-legend p { font-size: 12px; margin: 8px 0 0; }
.ax-edge { border: 2px solid var(--cyan); padding: 14px 12px; margin: 18px 0; background: #0a1624; }
.ax-edge .ax-chip { margin-left: 2px; }
.ax-edge p { font-size: 18px; line-height: 1.4; margin: 10px 0 8px; }
.ax-edge small { font-size: 12px; color: var(--dim); line-height: 1.4; display: block; }

/* Lineup v4: school-of-thought row on the result */
.ax-school b { color: var(--cyan, #19c3c9); }
.ax-school p { margin: 0; }
.ax-school-note { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; opacity: .75; }

/* Legal pages and global footer */
.arcade .site-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 2rem;
  padding: 0.9rem 0 0;
  border-top: 2px solid #1c2740;
  font-family: "VT323", ui-monospace, monospace;
  font-size: 1.15rem;
  color: #8b93a7;
}
.arcade .site-legal a { color: #7ad7ff; text-decoration: none; }
.arcade .site-legal a:hover { color: #ffe56b; }
.legal-page { max-width: 42rem; margin: 0 auto; padding: 1.75rem 1.1rem 3rem; color: #e8ecf4; }
.legal-page .eyebrow { letter-spacing: 0.14em; text-transform: uppercase; font-family: "Silkscreen", ui-monospace, monospace; font-size: 0.7rem; color: #7ad7ff; }
.legal-page h1 { font-family: "Silkscreen", ui-monospace, monospace; font-size: 1.35rem; margin: 0.5rem 0 1rem; color: #fff; }
.legal-page .lede { font-family: "VT323", ui-monospace, monospace; font-size: 1.3rem; }
.legal-page h2 { font-family: "Silkscreen", ui-monospace, monospace; font-size: 0.95rem; margin: 1.7rem 0 0.5rem; color: #ffe56b; }
.legal-page p, .legal-page li { font-family: "VT323", ui-monospace, monospace; font-size: 1.2rem; line-height: 1.45; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin: 0.4rem 0; }
.legal-page a { color: #7ad7ff; }
.legal-page .links { margin-top: 2rem; }


/* Thinkers line: subtle, under the school of thought. */
.ax-thinkers { margin: 8px 0 0; font-size: 18px; line-height: 1.3; color: var(--dim); }
.ax-roster-mark { display: none; }
/* Wrappers are transparent on mobile so the original flex stack is unchanged. */
.ax-landing-board,
.ax-landing-lead,
.ax-result-hero,
.ax-result-detail {
  display: contents;
}

/* Desktop layout. All rules stay inside this query so phones stay pixel-identical. */
@media (min-width: 900px) {
  .ax-screen.ax-landing {
    width: min(1080px, 100%);
    gap: 28px;
  }
  .ax-landing-board {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 36px 48px;
    align-items: center;
    flex: 1;
    align-content: center;
  }
  .ax-landing-lead {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .ax-landing .ax-title { padding-top: 20px; }
  .ax-landing .ax-logo { font-size: 64px; }
  .ax-landing .ax-lede { max-width: 28ch; }
  .ax-landing .ax-start { width: 100%; max-width: 360px; }
  .ax-frame { font-size: 13px; max-width: 38ch; }
  .ax-options[data-count="4"],
  .ax-options[data-count="5"] { gap: 10px; }
  .ax-options[data-count="4"] .ax-option,
  .ax-options[data-count="5"] .ax-option { min-height: 58px; padding: 10px 12px; }
  .ax-roster { padding: 20px 22px 22px; }
  .ax-roster ul { grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 14px; }
  .ax-roster li { font-size: 20px; gap: 10px; }
  .ax-roster li i { display: none; }
  .ax-roster-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--c), 0 0 0 4px var(--bg), 0 0 0 5px color-mix(in srgb, var(--c) 55%, #fff);
    background: color-mix(in srgb, var(--c) 14%, #0b1020);
  }
  .ax-roster-mark svg { width: 28px; height: 28px; display: block; }

  .ax-screen.ax-quiz {
    width: min(720px, 100%);
  }

  .ax-screen.ax-result {
    width: min(1040px, 100%);
  }
  .ax-result .ax-loot-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 36px;
    align-items: start;
    padding: 22px 24px;
    margin-left: 4px;
    margin-right: 4px;
  }
  .ax-result-hero,
  .ax-result-detail {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .ax-result .ax-portrait .ax-emblem svg { width: 280px; height: 280px; }
  .ax-result h1 { margin-top: 16px; }
  .ax-thinkers { font-size: 16px; }
  /* Match the loot card's side margin so Copy/Save sit on the same width. */
  .ax-result .ax-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin-left: 4px;
    margin-right: 4px;
  }
  .ax-result .ax-actions > :not([hidden]) {
    flex: 1 1 0;
    min-width: 0;
    grid-column: auto;
  }
}



/* Subtle Quad Ring lockup in the HUD and footers. */
.ax-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.ax-brand-mark {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.ax-hud-top .ax-brand { min-width: 0; }
.ax-foot .ax-brand { gap: 0.4em; }
.ax-foot .ax-brand-mark { width: 12px; height: 12px; }
