/* =====================================================================
   IS IT OR IS IT NOT?  -  styles
   Pop quiz-show look: cream paper, thick ink outlines, hard offset
   shadows, candy colours. Everything is driven by the tokens below.
   ===================================================================== */

/* Self-hosted fonts (SIL Open Font License, see fonts/LICENSE-*.txt) */
@font-face {
  font-family: 'Titan One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/titan-one-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Titan One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/titan-one-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1A1423;
  --paper: #FFF3DC;
  --paper-2: #FFE8BF;
  --white: #FFFDF7;
  --coral: #FF5C7A;
  --tomato: #e22e1d;
  --potato: #C48A3A;
  --sun: #FFD23F;
  --mint: #3DDC97;
  --sky: #4CC9F0;
  --grape: #8338EC;

  --font-display: 'Titan One', 'Arial Black', Impact, 'Helvetica Neue', sans-serif;
  --font-body: 'Bricolage Grotesque', 'Trebuchet MS', 'Segoe UI', Verdana, sans-serif;

  --line: 3px;
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);
  --radius: 18px;

  --ease-pop: cubic-bezier(.2, 1.4, .4, 1);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.bg-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--ink) 1.3px, transparent 1.4px);
  background-size: 22px 22px;
  opacity: .1;
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  pointer-events: none;
}

.app { min-height: 100dvh; }

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: screen-in .35s var(--ease-pop) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- shared bits ------------------------------------------- */

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }

.btn {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .02em;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  padding: 13px 24px;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease, background .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; }
.btn--primary { background: var(--coral); }
.btn--ghost { background: var(--white); }
.btn--big { font-size: 24px; padding: 18px 34px; border-radius: 18px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  padding: 6px 14px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.pill--accent { background: var(--sun); }
.pill.is-bump { animation: pop .4s var(--ease-pop); }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: inline-grid;
  place-items: center;
  transition: transform .08s;
}
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

.sticker {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--mint);
  border: var(--line) solid var(--ink);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
  display: inline-block;
}

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

/* ---------- HOME ---------------------------------------------------- */

.home {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 20px 80px;
  display: grid;
  gap: clamp(32px, 6vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 32px;
  align-items: center;
}

.hero__eyebrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }

.title {
  color: var(--tomato);
  font-family: var(--font-display);
  font-size: clamp(54px, 9.5vw, 124px);
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0;
  text-shadow: 6px 6px 0 var(--ink);
}
.title span { display: block; }
.title__pop {
  color: var(--potato);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
}
@media (max-width: 640px) {
  .title__pop { -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
}

.hero__lede {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  max-width: 42ch;
  margin-top: 22px;
}

.name-row {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.name-field {
  flex: 1 1 200px;
  display: grid;
  gap: 6px;
}
.name-field label {
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.name-field input {
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  padding: 12px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  width: 100%;
}
.name-field input:focus { outline: 4px solid var(--sky); outline-offset: 2px; }

/* stack of tilted polaroids on the hero */
.hero__stack {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}
.hero__stack .polaroid {
  position: absolute;
  width: 64%;
  margin: 0;
  padding: 10px 10px 14px;
  animation: float-in .7s var(--ease-pop) both;
}
.hero__stack .polaroid:nth-child(1) { left: 0; top: 8%; transform: rotate(-9deg); animation-delay: .05s; }
.hero__stack .polaroid:nth-child(2) { right: 0; top: 0; transform: rotate(6deg); animation-delay: .15s; }
.hero__stack .polaroid:nth-child(3) { left: 18%; bottom: 0; transform: rotate(-2deg); animation-delay: .25s; }
.hero__stack .polaroid::before { display: none; }
.hero__stack .polaroid__caption { font-size: 12px; }
.hero__q {
  position: absolute;
  right: -6px;
  bottom: 14%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--sun);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 56px;
  transform: rotate(12deg);
  animation: float-in .7s var(--ease-pop) .4s both;
}

@keyframes float-in {
  from { opacity: 0; translate: 0 30px; }
  to   { opacity: 1; translate: 0 0; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero__stack { max-width: 340px; order: -1; }
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { font-weight: 600; opacity: .8; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.game-card {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
  animation: screen-in .4s var(--ease-pop) both;
}
.game-card:nth-child(2) { animation-delay: .08s; }
.game-card:nth-child(3) { animation-delay: .16s; }
.game-card:hover { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--ink); }

.game-card__band {
  background: var(--accent, var(--coral));
  border-bottom: var(--line) solid var(--ink);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 10px, transparent 10px 20px);
}
.game-card__band h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.05; }
.game-card__num {
  font-family: var(--font-display);
  font-size: 14px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 8px;
  padding: 3px 8px;
  flex: none;
}

.game-card__body { padding: 18px 20px 22px; display: grid; gap: 16px; flex: 1; align-content: start; }
.game-card__desc { font-weight: 500; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.game-card__meta .pill { font-size: 13px; padding: 4px 11px; box-shadow: 2px 2px 0 var(--ink); }
.game-card__actions { margin-top: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.game-card--soon { opacity: .9; }
.game-card--soon .game-card__band { background: var(--paper-2); }

.footnote {
  text-align: center;
  font-weight: 600;
  opacity: .7;
  font-size: 14px;
}

/* ---------- PLAY: HUD + timer ---------------------------------------- */

.play { position: relative; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
.hud__group { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.hud__group--right { justify-content: flex-end; }
.hud__title { font-family: var(--font-display); font-size: 15px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .hud { padding: 10px 12px 8px; gap: 8px; }
  .hud__title { display: none; }
  .hud .pill { font-size: 13px; padding: 5px 10px; }
  .timer { width: 58px; height: 58px; font-size: 26px; }
  .hud .icon-btn { width: 40px; height: 40px; }
}

.timer {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--mint);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  transition: background .3s;
  flex: none;
}
.timer.is-mid { background: var(--sun); }
.timer.is-low { background: var(--coral); animation: pulse .5s ease-in-out infinite alternate; }
.timer.is-done { background: var(--paper-2); animation: none; }

@keyframes pulse {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

.timebar {
  height: 16px;
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  background: var(--white);
  overflow: hidden;
}
.timebar__fill {
  height: 100%;
  width: 100%;
  background: var(--mint);
  transform-origin: left center;
  transition: background .3s;
  background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 8px, transparent 8px 16px);
}
.timebar__fill.is-mid { background-color: var(--sun); }
.timebar__fill.is-low { background-color: var(--coral); }

/* ---------- PLAY: stage ----------------------------------------------- */

.stage {
  flex: 1;
  display: grid;
  place-items: start center;
  padding: clamp(16px, 3vw, 32px) 16px 40px;
  /* once the verdict sheet is up, app.js raises padding-bottom so the answers can scroll above it */
}

.round {
  width: 100%;
  max-width: 780px;
  display: grid;
  gap: clamp(16px, 3vw, 26px);
}

.polaroid {
  position: relative;
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-lg);
  padding: 14px 14px 16px;
  border-radius: 6px;
  width: min(100%, 1080px, 72vh);
  margin: 0 auto;
  transform: rotate(-1.5deg);
}
.round .polaroid { animation: drop-in .55s var(--ease-pop) both; }
.polaroid::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 112px;
  height: 28px;
  background: rgba(255, 210, 63, .9);
  border: 2px solid var(--ink);
  transform: translateX(-50%) rotate(2deg);
  border-radius: 3px;
}
.polaroid__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--line) solid var(--ink);
  background: var(--paper-2);
}
.polaroid__caption {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .04em;
  opacity: .8;
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-40px) rotate(-9deg) scale(.92); }
  to   { opacity: 1; transform: translateY(0) rotate(-1.5deg) scale(1); }
}

.stamp {
  position: absolute;
  top: 44%;
  left: 50%;
  translate: -50% -50%;
  rotate: -12deg;
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 58px);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 22px;
  border: 5px solid var(--ink);
  border-radius: 14px;
  background: var(--mint);
  box-shadow: var(--shadow);
  animation: stamp .45s var(--ease-pop) both;
  white-space: nowrap;
}
.stamp--bad { background: var(--coral); }
.stamp--late { background: var(--sun); }

@keyframes stamp {
  from { opacity: 0; scale: 2.6; }
  to   { opacity: 1; scale: 1; }
}

.question {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.05;
  text-align: center;
  padding: 0 8px;
  text-wrap: balance;
}

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

.answer {
  position: relative;
  min-height: 96px;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--c, var(--coral));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(19px, 3.6vw, 30px);
  line-height: 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: transform .08s ease, box-shadow .08s ease, opacity .3s, filter .3s;
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 560px) {
  .answer { flex-direction: column; gap: 8px; padding: 22px 10px 14px; font-size: 20px; }
  .answer__shape { width: 20px; height: 20px; }
}
.answer:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.answer:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.answer:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; }
.answer[disabled] { cursor: default; }
.answer[disabled]:hover { transform: none; box-shadow: var(--shadow); }

.answer--0 { --c: var(--coral); }
.answer--1 { --c: var(--sky); }
.answer--2 { --c: var(--sun); }
.answer--3 { --c: var(--mint); }

.answer__shape { width: 26px; height: 26px; flex: none; }
.answer__key {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0 6px;
  background: var(--white);
  line-height: 1.5;
}
@media (hover: none) { .answer__key { display: none; } }

.answer__badge {
  display: none;
  position: absolute;
  top: -14px;
  right: -10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--mint);
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 22px;
  place-items: center;
  box-shadow: var(--shadow-sm);
  animation: stamp .35s var(--ease-pop) both;
}

.answers.is-revealed .answer:not(.is-correct):not(.is-chosen) { opacity: .35; filter: grayscale(.7); }
.answers.is-revealed .answer.is-correct .answer__badge { display: grid; }
.answers.is-revealed .answer.is-chosen.is-wrong .answer__badge { display: grid; background: var(--coral); }
.answers.is-revealed .answer.is-correct { animation: pop .4s var(--ease-pop); }
.answers.is-revealed .answer.is-chosen.is-wrong { animation: shake .45s ease; }

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-1deg); }
  40% { transform: translateX(8px) rotate(1deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* ---------- PLAY: round splash ------------------------------------------ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background-color: var(--accent, var(--coral));
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.07) 0 26px, transparent 26px 52px);
  animation: splash-in .3s var(--ease-pop) both, splash-out .3s ease .8s both;
  text-align: center;
}
.splash__label { font-family: var(--font-display); font-size: 22px; letter-spacing: .2em; text-transform: uppercase; }
.splash__num {
  font-family: var(--font-display);
  font-size: clamp(110px, 28vw, 260px);
  line-height: .9;
  color: var(--white);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 10px 10px 0 var(--ink);
  animation: stamp .5s var(--ease-pop) both;
}
.splash__sub { font-weight: 800; font-size: 18px; margin-top: 12px; }

@keyframes splash-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes splash-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* ---------- PLAY: verdict sheet ------------------------------------------ */

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.sheet__card {
  pointer-events: auto;
  width: 100%;
  max-width: 780px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  animation: sheet-up .45s var(--ease-pop) both;
}
@keyframes sheet-up {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: none; }
}

.points {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  min-width: 118px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 14px;
  border: var(--line) solid var(--ink);
  background: var(--mint);
  box-shadow: var(--shadow-sm);
  rotate: -3deg;
}
.points small { display: block; font-size: 13px; letter-spacing: .1em; margin-top: 4px; }
.points--zero { background: var(--paper-2); }

.verdict { display: grid; gap: 6px; min-width: 0; }
.verdict__title { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.1; }
.verdict__text { font-weight: 500; font-size: 15px; line-height: 1.45; }
.verdict__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.verdict__chips .pill { font-size: 12px; padding: 3px 10px; box-shadow: 2px 2px 0 var(--ink); }

@media (max-width: 680px) {
  .sheet__card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
    padding: 14px 16px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
  .sheet__card .btn { grid-column: 1 / -1; width: 100%; }
  .points { font-size: 30px; min-width: 88px; }
  .verdict__text { font-size: 14px; }
}

/* ---------- RESULTS --------------------------------------------------------- */

.results {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 20px 80px;
  display: grid;
  gap: clamp(26px, 4vw, 40px);
}

.results__head { display: grid; gap: 18px; }
.results__eyebrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.score-big {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 132px);
  line-height: .9;
  color: var(--coral);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.score-big small { font-size: .28em; -webkit-text-stroke: 1.5px var(--ink); text-shadow: 3px 3px 0 var(--ink); margin-left: .15em; }
.rank { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 34px); margin-top: 10px; line-height: 1.1; max-width: 30ch; }
.rank small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 16px; margin-top: 6px; opacity: .8; max-width: 52ch; }

.results__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  animation: screen-in .4s var(--ease-pop) both;
}
.stat:nth-child(2) { animation-delay: .06s; }
.stat:nth-child(3) { animation-delay: .12s; }
.stat:nth-child(4) { animation-delay: .18s; }
.stat__value { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.stat__label { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; margin-top: 6px; }

.recap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 16px;
}
.recap__item {
  position: relative;
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 8px 8px 10px;
  border-radius: 6px;
  rotate: var(--tilt, 0deg);
  display: grid;
  gap: 6px;
  animation: drop-in .5s var(--ease-pop) both;
  animation-delay: var(--delay, 0s);
}
.recap__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
  display: block;
}
.recap__q { font-weight: 800; font-size: 13px; line-height: 1.25; }
.recap__a { font-size: 12px; font-weight: 600; opacity: .8; }
.recap__a b { color: var(--ink); }
.recap__badge {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--mint);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 2px 2px 0 var(--ink);
}
.recap__badge--bad { background: var(--coral); }
.recap__badge--late { background: var(--sun); }
.recap__pts {
  position: absolute;
  bottom: -10px;
  left: -8px;
  font-family: var(--font-display);
  font-size: 12px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 2px 7px;
  rotate: -4deg;
}

@keyframes drop-in-recap { from { opacity: 0; translate: 0 -20px; } to { opacity: 1; translate: 0 0; } }
.recap__item { animation-name: drop-in-recap; }

/* ---------- misc ------------------------------------------------------------- */

.error-box {
  margin: 40px auto;
  max-width: 640px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.error-box code { background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }

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

/* =====================================================================
   HUB EXTENSION  (added 2026-09-11)
   Many games on one site: category sections, card icons, difficulty
   pills, and text-only rounds (a question card instead of a photo).
   Nothing above this line was changed.
   ===================================================================== */

/* --- home: one section per category ---------------------------------- */
.hub-group + .hub-group { margin-top: clamp(30px, 5vw, 54px); }
.hub-group__head h2 {
  display: inline-block;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  padding: 4px 16px;
  box-shadow: var(--shadow-sm);
  rotate: -1deg;
}

/* --- game card extras ------------------------------------------------- */
.game-card__icon {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--font-body);
  font-size: .95em;
  vertical-align: -.05em;
}
.pill--cat { background: var(--paper-2); }
.pill--easy { background: var(--mint); }
.pill--medium { background: var(--sun); }
.pill--hard { background: var(--coral); }

/* --- text-only round: the question lives in the frame ---------------- */
.polaroid--text { width: min(100%, 780px, 84vh); }
.polaroid__text {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: clamp(18px, 4vw, 40px);
  border: var(--line) solid var(--ink);
  background:
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.5) 0 14%, transparent 15%),
    repeating-linear-gradient(-45deg, rgba(26,20,35,.06) 0 10px, transparent 10px 20px),
    color-mix(in srgb, var(--accent, var(--coral)) 42%, var(--white));
  overflow: hidden;
}
@supports not (background: color-mix(in srgb, red, white)) {
  .polaroid__text { background: var(--paper-2); }
}
.polaroid__text .question {
  font-size: clamp(24px, 4.6vw, 42px);
  text-shadow: 3px 3px 0 var(--white);
  margin: 0;
}
.polaroid__text.is-long .question { font-size: clamp(19px, 3.4vw, 30px); }
.polaroid__icon {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1;
  filter: drop-shadow(2px 2px 0 var(--white));
}
/* keep the question readable: the stamp lands low on a text card */
.polaroid--text .stamp { top: 74%; }
@media (max-height: 640px) {
  .polaroid__text { aspect-ratio: 2 / 1; }
}

/* --- results recap without a picture ---------------------------------- */
.recap__noimg {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}
