:root {
  --ink: #151515;
  --paper: #f5f0e6;
  --panel: #fffdf8;
  --purple: #7657ff;
  --purple-dark: #2d205f;
  --lime: #c8ff4a;
  --red: #ff664f;
  --line: 2px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(21, 21, 21, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, .055) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button:focus-visible, a:focus-visible, blockquote:focus-visible {
  outline: 4px solid var(--lime);
  outline-offset: 3px;
}

main { min-height: calc(100vh - 76px); }

.game-shell {
  width: min(980px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.wordmark {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.06em;
  text-decoration: none;
}

.privacy-note {
  margin: 0;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.privacy-note span { color: #42a84f; }

.game-card {
  position: relative;
  background: var(--panel);
  border: var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -82px;
  top: -85px;
  border-radius: 50%;
  background: var(--lime);
  border: var(--line);
}

.game-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow, .section-number {
  margin: 0 0 6px;
  font: 800 .75rem/1.2 "Courier New", monospace;
  letter-spacing: .13em;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: .9;
  letter-spacing: -.075em;
}

.scoreboard {
  min-width: 132px;
  display: grid;
  gap: 6px;
  text-align: right;
  font-family: "Courier New", monospace;
  font-size: .85rem;
}

.scoreboard strong {
  color: var(--purple-dark);
  font-size: 1.05rem;
}

.prompt {
  margin: clamp(36px, 6vw, 62px) 0 10px;
  font-size: .9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

blockquote {
  margin: 0;
  min-height: 150px;
  display: flex;
  align-items: center;
  padding: clamp(20px, 4vw, 38px);
  border: var(--line);
  background: #f0eaff;
  font: 700 clamp(1.25rem, 3.1vw, 2.05rem)/1.35 Georgia, serif;
  letter-spacing: -.02em;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.choice, .next-button {
  min-height: 62px;
  border: var(--line);
  color: var(--ink);
  font: 900 1rem/1 Arial, sans-serif;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.choice:hover, .next-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.choice:active, .next-button:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.choice:disabled { cursor: default; opacity: .58; }
.choice-human { background: var(--lime); }
.choice-ai { background: var(--purple); color: white; }

.choice-key {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border: 2px solid currentColor;
  font-family: "Courier New", monospace;
}

.feedback {
  margin-top: 22px;
  padding: 20px;
  border: var(--line);
  background: white;
}

.feedback.correct { border-left: 10px solid #3ea54c; }
.feedback.incorrect { border-left: 10px solid var(--red); }

.verdict {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 1.25rem;
}

.explanation { margin: 0 0 18px; }
.explanation a { color: var(--purple-dark); font-weight: 800; }

.next-button {
  width: 100%;
  padding: 0 20px;
  background: var(--ink);
  color: white;
}

.final-view { padding: clamp(34px, 7vw, 84px) 0 18px; text-align: center; }
.final-score { margin: 12px 0 0; font: 900 clamp(4rem, 16vw, 8rem)/1 Arial, sans-serif; letter-spacing: -.08em; color: var(--purple); }
.final-view h2 { margin: 18px 0 8px; font-size: clamp(1.6rem, 4vw, 2.5rem); }
.final-view p:not(.eyebrow):not(.final-score) { max-width: 520px; margin-left: auto; margin-right: auto; }
.final-band { padding: 12px 14px; border: var(--line); background: #f0eaff; font-weight: 800; }
.final-view .next-button { max-width: 420px; margin-top: 18px; }

.keyboard-help {
  margin: 22px 0 0;
  text-align: center;
  font-size: .82rem;
}

kbd {
  border: 1px solid var(--ink);
  background: white;
  padding: 2px 6px;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: "Courier New", monospace;
}

.details {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: var(--line);
  border-left: var(--line);
  background: var(--panel);
}

.details article { padding: 30px; border-right: var(--line); border-bottom: var(--line); }
.details h2 { margin: 0 0 12px; font-size: 1.3rem; }
.details p:last-child { margin: 0; }
.section-number { color: var(--purple); }
.score-bands { margin: 0; padding-left: 20px; }
.score-bands li + li { margin-top: 8px; }
.detector-note { background: var(--lime); }

footer {
  min-height: 76px;
  padding: 20px max(16px, calc((100% - 1120px) / 2));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: var(--line);
  background: var(--ink);
  color: white;
  font: 700 .78rem/1.4 "Courier New", monospace;
}

footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
footer a { color: white; font: inherit; }

.info-body { min-height: 100vh; display: flex; flex-direction: column; }
.info-body main { flex: 1; }
.info-page { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 36px 0 72px; }
.info-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.back-link { color: var(--ink); font-weight: 800; }
.info-card { padding: clamp(24px, 6vw, 64px); border: var(--line); background: var(--panel); box-shadow: var(--shadow); }
.info-card h1 { max-width: 760px; margin-bottom: 32px; font-size: clamp(2.7rem, 9vw, 5.4rem); }
.info-card h2 { margin: 34px 0 8px; font-size: 1.3rem; }
.info-card p { max-width: 690px; }
.info-card a { color: var(--purple-dark); font-weight: 800; }
.lede { font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 700; }
.policy-date { font: 700 .8rem/1.4 "Courier New", monospace; }

@media (max-width: 700px) {
  .game-shell { width: min(100% - 22px, 560px); padding: 12px 0 40px; min-height: 100svh; }
  .topbar { margin-bottom: 10px; }
  .privacy-note { max-width: 180px; text-align: right; font-size: .7rem; }
  .game-card { padding: 20px 16px; box-shadow: 5px 5px 0 var(--ink); }
  .game-heading { gap: 12px; }
  h1 { font-size: clamp(2.7rem, 16vw, 4.5rem); }
  .scoreboard { min-width: 90px; font-size: .72rem; }
  .prompt { margin-top: 30px; }
  blockquote { min-height: 180px; padding: 20px 16px; font-size: 1.22rem; }
  .answer-grid { gap: 10px; }
  .choice { min-height: 58px; }
  .choice-key { display: none; }
  .feedback { padding: 16px; }
  .keyboard-help { display: none; }
  .details { grid-template-columns: 1fr; width: calc(100% - 22px); margin-bottom: 44px; }
  .details article { padding: 24px 20px; }
  footer { flex-direction: column; gap: 6px; padding: 18px 16px; }
  footer nav { justify-content: flex-start; }
  .info-page { width: calc(100% - 22px); padding: 18px 0 48px; }
  .info-card { padding: 24px 20px; box-shadow: 5px 5px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
