/* Review Console — abiralparajuli.com.np
   Tokens locked in DESIGN.md. One system: hairlines over shadows,
   sharp corners, mono annotations, serif display. */

:root {
  --paper: #f6f5f0;
  --sheet: #ffffff;
  --ink: #17181a;
  --body: #3f4247;
  --muted: #686a6e;
  --faint: #9a9ca0;
  --hairline: #e2dfd5;
  --hairline-strong: #c8c4b8;
  --verdict: #1e6b4a;
  --verdict-soft: #e7f0ea;
  --amber: #9a5b00;
  --amber-soft: #faf0dd;
  --breach: #b3261e;
  --breach-soft: #fbe9e7;
  --dark: #14161a;
  --dark-2: #1d2026;
  --dark-line: #2c3038;
  --dark-muted: #9aa0aa;
  --radius: 6px;
  --radius-lg: 10px;
  --max: 1180px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(30, 107, 74, 0.18);
}

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

::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--verdict);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
@media (min-width: 768px) {
  .wrap {
    padding-inline: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* Buttons — one pair */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { background: var(--sheet); border-color: var(--hairline-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-small { padding-inline: 14px; font-size: 13px; }

/* Console bar */
.console-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-strong);
}
.bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 19px;
  border-radius: var(--radius);
}
.brand-text { min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-meta {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 2px;
}
.bar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body);
  border-radius: var(--radius);
  transition: background-color 0.12s ease, color 0.12s ease;
}
.bar-nav a:hover { background: var(--sheet); color: var(--ink); }
.bar-nav a[aria-current] { background: var(--ink); color: #fff; }
.bar-inner .btn-copy { margin-left: auto; flex: none; }
.bar-nav + .btn-copy { margin-left: 12px; }

.bar-nav-mobile {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--hairline);
  padding: 0 12px;
}
.bar-nav-mobile::-webkit-scrollbar { display: none; }
.bar-nav-mobile a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body);
  border-bottom: 2px solid transparent;
}
.bar-nav-mobile a[aria-current] { color: var(--ink); border-bottom-color: var(--verdict); }

@media (min-width: 900px) {
  .bar-nav { display: flex; }
  .bar-nav-mobile { display: none; }
}

/* Hero */
.hero { padding: 56px 0 8px; scroll-margin-top: 84px; }
.hero-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 960px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--sheet);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--body);
}
.pill-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.dot-live { background: #22a35c; }

.hero-title {
  margin-top: 28px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--verdict); }

.hero-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline);
}
.field { padding: 12px 20px 12px 0; margin-right: 20px; }
.field + .field { border-left: 1px solid var(--hairline); padding-left: 20px; }
.field dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field dd {
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.hero-bio {
  max-width: 700px;
  margin-top: 26px;
  font-size: 15.5px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Verdict panel — the one moment */
.verdict {
  position: relative;
  padding: 26px 24px 22px;
  background: var(--sheet);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--verdict), var(--verdict)),
    linear-gradient(var(--verdict), var(--verdict)),
    linear-gradient(var(--verdict), var(--verdict)),
    linear-gradient(var(--verdict), var(--verdict)),
    linear-gradient(var(--verdict), var(--verdict)),
    linear-gradient(var(--verdict), var(--verdict)),
    linear-gradient(var(--verdict), var(--verdict)),
    linear-gradient(var(--verdict), var(--verdict));
  background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px, 16px 2px, 2px 16px;
  background-position: left -1px top -1px, left -1px top -1px, right -1px top -1px, right -1px top -1px, left -1px bottom -1px, left -1px bottom -1px, right -1px bottom -1px, right -1px bottom -1px;
}
@media (min-width: 960px) {
  .verdict { margin-top: 44px; }
}
.verdict-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verdict);
}
.verdict-figure {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.verdict-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--body);
}
.verdict-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline-strong);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* Sections */
.section { padding-top: 72px; scroll-margin-top: 84px; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-strong);
}
.section-index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--verdict);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.section-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Readout grids */
.readouts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px) {
  .readouts { grid-template-columns: repeat(3, 1fr); }
  .readouts-wide { grid-template-columns: repeat(4, 1fr); }
}
.readout {
  padding: 20px;
  background: var(--paper);
  transition: background-color 0.12s ease;
}
.readout:hover { background: var(--sheet); }
.readout-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.readout-value {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.readout-delta {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 9px;
  background: var(--verdict-soft);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--verdict);
}
@media (max-width: 419px) {
  .readouts { grid-template-columns: 1fr; }
}

/* Skills */
.skill-groups {
  display: grid;
  gap: 36px;
  margin-top: 30px;
}
@media (min-width: 820px) {
  .skill-groups { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.skill-group h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline-strong);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li {
  padding: 7px 11px;
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--body);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.tags li:hover { transform: translateY(-1px); border-color: var(--ink); }

/* Dossiers */
.dossiers { margin-top: 8px; }
.dossier { border-bottom: 1px solid var(--hairline-strong); }
.dossier:first-child { border-top: 1px solid var(--hairline-strong); margin-top: 28px; }
.dossier-toggle {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  width: 100%;
  padding: 22px 52px 22px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.dossier-toggle:hover .dossier-role { text-decoration: underline; text-underline-offset: 3px; }
.dossier-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.swatch {
  width: 11px;
  height: 11px;
  background: var(--swatch);
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
}
.dossier-status {
  padding: 3px 8px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.status-active { background: var(--ink); color: #fff; }
.status-archived { background: var(--hairline); color: var(--muted); }
.dossier-role {
  flex: 1 1 100%;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dossier-meta {
  flex: 1 1 100%;
  font-size: 12.5px;
  color: var(--muted);
}
.dossier-sign {
  position: absolute;
  top: 20px;
  right: 6px;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}
.dossier-preview {
  max-width: 760px;
  margin: -8px 0 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dossier-panel { padding: 0 0 24px; }
.findings { list-style: disc; padding-left: 20px; max-width: 780px; }
.findings li { margin-top: 8px; font-size: 14px; line-height: 1.65; }
.findings li:first-child { margin-top: 0; }
.findings li::marker { color: var(--verdict); }

/* Record band */
.record-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
@media (min-width: 820px) {
  .record-grid { grid-template-columns: 1.15fr 0.9fr 1fr; align-items: start; }
}
.record-panel {
  padding: 22px;
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.record-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.record-rows { margin-top: 16px; }
.record-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.record-row:first-child { border-top: 0; padding-top: 0; }
.record-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.record-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.record-code { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); }
.record-subhead {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.certs { margin-top: 10px; display: grid; gap: 8px; }
.certs li {
  padding: 9px 11px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.5;
}
.languages { display: grid; gap: 16px; margin-top: 18px; }
.lang-line { display: flex; align-items: baseline; gap: 6px; }
.lang-name { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.lang-level { font-size: 11.5px; color: var(--muted); }
.lang-pct { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lang-bar {
  width: 110px;
  height: 4px;
  margin-top: 7px;
  background: var(--hairline);
  border-radius: 999px;
  overflow: hidden;
}
.lang-bar span { display: block; height: 100%; background: var(--verdict); border-radius: 999px; }

.record-dark { background: var(--dark); border-color: var(--dark); color: #fff; scroll-margin-top: 84px; }
.record-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.record-invite { margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.record-details { margin-top: 14px; display: grid; gap: 5px; font-size: 12.5px; color: #cfd3d8; overflow-wrap: anywhere; }
.record-eligibility { margin-top: 14px; font-size: 11.5px; line-height: 1.5; color: var(--dark-muted); }
.record-dark .btn { margin-top: 18px; }

/* Playground */
.game-intro { max-width: 640px; margin-top: 14px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.game-shell {
  margin-top: 26px;
  padding: 10px;
  background: var(--dark);
  border-radius: var(--radius-lg);
}
.game-statusbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dark-muted);
}
.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a35c;
  flex: none;
}
.status-state { margin-left: auto; color: #fff; font-weight: 600; text-transform: uppercase; }
.game-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: var(--sheet);
  border-radius: var(--radius);
}
.game-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.game-hint {
  display: none;
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
@media (min-width: 640px) {
  .game-hint { display: block; }
}
.game-score {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.game-hint + .game-score { margin-left: 0; }
.score-sep { margin: 0 8px; font-weight: 400; color: var(--faint); }

.game-stage {
  position: relative;
  margin-top: 10px;
  background: #fcfcf9;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
}
@media (min-width: 768px) {
  .game-stage { min-height: 420px; }
}
.game-canvas {
  display: block;
  width: 100%;
  height: 360px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 768px) {
  .game-canvas { height: 420px; }
}
.game-canvas:focus-visible { outline-offset: -2px; }

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(252, 252, 249, 0.88);
  backdrop-filter: blur(6px);
}
.overlay-ready { pointer-events: none; }
.overlay-ready .overlay-card { pointer-events: auto; }
.overlay-card {
  width: 100%;
  max-width: 480px;
  padding: 26px 24px;
  background: var(--sheet);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
  text-align: center;
}
.overlay-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--verdict);
}
.eyebrow-breach { color: var(--breach); }
.overlay-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.overlay-copy {
  margin: 12px auto 0;
  max-width: 400px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.overlay-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.legend-chip {
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 11.5px;
  color: var(--body);
}
.overlay-card .btn { margin-top: 20px; }
.overlay-hint { margin-top: 16px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.overlay-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 4px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  font-size: 18px;
}
.glyph-warn { background: var(--breach-soft); border-color: #f3c1bd; }
.overlay-stats { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.overlay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.overlay-actions .btn { margin-top: 16px; }
.overlay-link {
  margin-top: 14px;
  padding: 6px 4px;
  background: none;
  border: 0;
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.overlay-link:hover { color: var(--body); }

.game-mobile-hint {
  padding: 12px 8px 4px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--dark-muted);
}
@media (min-width: 640px) {
  .game-mobile-hint { display: none; }
}
.game-foot {
  display: none;
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
@media (min-width: 640px) {
  .game-foot { display: block; }
}
.game-foot-mobile {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}
@media (min-width: 640px) {
  .game-foot-mobile { display: none; }
}
.controls-card {
  max-width: 400px;
  margin: 28px auto 0;
  padding: 16px;
  background: var(--sheet);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  text-align: center;
}
.controls-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.controls-text { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--body); }

/* Footer */
.footer {
  margin-top: 72px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--hairline-strong);
  text-align: center;
}
.footer p {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Hero entrance — once, on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-enter] { animation: rise 0.5s ease both; }
.verdict[data-enter] { animation-delay: 0.12s; }

/* Small screens */
@media (max-width: 899px) {
  .hero, .section { scroll-margin-top: 124px; }
  .record-dark { scroll-margin-top: 124px; }
}
@media (max-width: 640px) {
  .brand-meta { display: none; }
  .hero { padding-top: 40px; }
  .field { flex: 1 1 40%; padding: 10px 14px 10px 0; margin-right: 0; }
  .field + .field { border-left: 0; padding-left: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding-top: 56px; }
  .section-note { margin-left: 0; flex-basis: 100%; }
  .dossier-toggle { padding-top: 18px; padding-bottom: 18px; }
  .game-topbar { flex-wrap: wrap; }
  .game-score { font-size: 13px; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 16px; }
  .hero-title { font-size: 46px; }
  .verdict-figure { font-size: 54px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-enter] { animation: none; }
}
