:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --ink: #18222b;
  --muted: #5c6873;
  --line: #ddd6c8;
  --accent: #0f3b57;
  --accent-ink: #ffffff;
  --focus: #e0a100;
  --t-common: #e4e1da;
  --t-uncommon: #cdebd3;
  --t-rare: #cfe0f7;
  --t-veryRare: #e6d6f5;
  --t-legendary: #f8e3a1;
  --tier-ink: #18222b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f161c;
    --surface: #17212a;
    --ink: #e8edf1;
    --muted: #9aa8b4;
    --line: #2a3742;
    --accent: #f5c542;
    --accent-ink: #18222b;
  }
}
:root[data-theme="dark"] {
  --bg: #0f161c; --surface: #17212a; --ink: #e8edf1; --muted: #9aa8b4; --line: #2a3742; --accent: #f5c542; --accent-ink: #18222b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header, main, .site-footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.site-header { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.hero { padding: 24px 0 8px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 24px; line-height: 1.25; margin: 36px 0 12px; }
.lede { font-size: 19px; color: var(--muted); margin: 0; }
.muted { color: var(--muted); font-size: 15px; }
.game { margin: 24px 0; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-height: 260px; }
.game-title { margin: 4px 0 12px; font-size: clamp(24px, 5vw, 32px); }
.eyebrow { margin: 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.button { display: inline-block; border: 0; border-radius: 10px; padding: 12px 22px; font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.answer-form { display: flex; gap: 10px; margin-top: 16px; }
.answer-form input { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.timer { position: relative; height: 28px; border-radius: 999px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.timer-bar { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--left)); background: var(--accent); opacity: 0.85; transition: transform 0.1s linear; }
.timer-text { position: relative; display: block; text-align: center; font-weight: 700; font-size: 14px; line-height: 26px; mix-blend-mode: difference; color: #fff; }
.verdict { font-size: 22px; font-weight: 700; margin: 12px 0 16px; }
.verdict.miss { color: var(--muted); }
.tier { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.8em; font-weight: 700; color: var(--tier-ink); vertical-align: middle; }
.tier-common { background: var(--t-common); }
.tier-uncommon { background: var(--t-uncommon); }
.tier-rare { background: var(--t-rare); }
.tier-veryRare { background: var(--t-veryRare); }
.tier-legendary { background: var(--t-legendary); }
.board { margin-top: 20px; }
.board summary { cursor: pointer; font-weight: 600; }
.board h3 { margin: 16px 0 6px; font-size: 16px; }
.board ul, .answer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.board li, .answer-list li { padding: 2px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.board li.picked { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.summary { list-style: none; padding: 0; margin: 16px 0 20px; }
.summary li { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.prose { margin-bottom: 32px; }
.crumbs { font-size: 14px; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tier-table { max-width: 360px; }
.table-wrap { overflow-x: auto; }
.category-list { padding-left: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.notice { background: var(--surface); padding: 16px; border-radius: 12px; }
.site-footer { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) {
  .game-card { padding: 18px; }
  .answer-form { flex-direction: column; }
  .summary li { grid-template-columns: 1fr auto; }
  .summary li span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .timer-bar { transition: none; } }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent { position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center; padding: 14px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12); }
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 560px; font-size: 15px; }
.consent-actions { display: flex; gap: 10px; }
.consent .button { padding: 8px 18px; }
body.consent-open { padding-bottom: 140px; }
