
:root {
  --ink: #10100f;
  --cream: #fff2d5;
  --paper: #fffdf8;
  --blue: #0b4fcc;
  --blue-dark: #06358e;
  --red: #ef3d2f;
  --red-dark: #b9271e;
  --yellow: #ffe34d;
  --green: #1fa85b;
  --shadow: 9px 10px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, #fffef8 0 22%, transparent 50%),
    repeating-linear-gradient(
      0deg,
      rgba(16, 16, 15, 0.018) 0,
      rgba(16, 16, 15, 0.018) 1px,
      transparent 1px,
      transparent 4px
    ),
    var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

button {
  font: inherit;
}

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

.game-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px clamp(16px, 4vw, 54px) 28px;
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.counter-pill,
.sound-toggle {
  min-height: 48px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 4px 5px 0 var(--ink);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.counter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
}

.counter-pill strong {
  margin-left: 7px;
  color: var(--blue);
  font-size: 1.15rem;
}

.sound-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 17px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.sound-toggle:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--ink);
}

.sound-toggle:active {
  transform: translate(3px, 4px);
  box-shadow: 1px 1px 0 var(--ink);
}

.brand-block {
  position: relative;
  z-index: 3;
  margin: -20px auto 14px;
  text-align: center;
}

.brand-block h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.8rem, 7.6vw, 7.2rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.86;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.65);
}

.brand-block p {
  margin: 8px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  font-weight: 900;
}

.question-panel,
.end-card,
.loading-card {
  position: relative;
  z-index: 3;
  width: min(1120px, 100%);
  margin: 0 auto;
  border: 4px solid var(--ink);
  border-radius: 34px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: var(--shadow);
}

.loading-card {
  display: grid;
  min-height: 530px;
  place-items: center;
  align-content: center;
  gap: 24px;
  text-align: center;
}

.loading-card p {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.03em;
}

.loading-disc {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--yellow) 0 14%, var(--ink) 15% 18%, transparent 19%),
    repeating-radial-gradient(circle, var(--blue) 0 7px, var(--blue-dark) 8px 10px);
  box-shadow: 7px 8px 0 var(--ink);
  animation: orbit 1.1s linear infinite;
}

.loading-disc span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 1000;
}

.question-panel {
  padding: clamp(20px, 3.4vw, 40px);
}

.prompt-zone {
  display: grid;
  justify-items: center;
  min-height: 138px;
  align-content: center;
  animation: prompt-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 5px 18px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 4px 0 var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
}

.fact-badge {
  background: var(--blue);
}

.absurd-badge {
  background: var(--red);
}

.prompt-zone h2 {
  max-width: 930px;
  margin: 22px auto 5px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.05rem, 3.9vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.98;
  text-transform: uppercase;
}

.prompt-zone.prompt-medium h2 {
  font-size: clamp(1.95rem, 3.45vw, 3.3rem);
}

.prompt-zone.prompt-long h2 {
  font-size: clamp(1.8rem, 3vw, 2.85rem);
  line-height: 1.01;
}

.answers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.62fr) minmax(0, 1fr);
  gap: clamp(14px, 2.3vw, 28px);
  align-items: stretch;
  margin-top: 18px;
}

.answer-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 7px 8px 0 var(--ink);
  cursor: pointer;
  transition:
    transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 160ms ease,
    filter 180ms ease,
    opacity 180ms ease;
}

.answer-card:not(:disabled):hover {
  transform: translate(-3px, -5px) rotate(-0.5deg);
  box-shadow: 10px 13px 0 var(--ink);
}

.answer-card:not(:disabled):active {
  transform: translate(5px, 6px);
  box-shadow: 2px 2px 0 var(--ink);
}

.answer-card:disabled {
  cursor: default;
}

.portrait-wrap {
  position: absolute;
  inset: 0;
  background: #dec9a7;
}

.portrait-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 58%, rgba(0, 0, 0, 0.48));
  content: "";
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.answer-bush .portrait-wrap img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center;
}

.answer-bush .portrait-wrap {
  background:
    linear-gradient(rgba(8, 35, 74, 0.48), rgba(8, 35, 74, 0.48)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/6/6e/GeorgeWBush_%281%29.jpg/500px-GeorgeWBush_%281%29.jpg")
      center / cover;
}

.answer-butch .portrait-wrap img {
  object-position: center 43%;
}

.answer-label,
.both-label {
  position: relative;
  z-index: 2;
  margin-bottom: 27px;
  padding: 5px 20px 3px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 3px 4px 0 #fff, 6px 7px 0 var(--ink);
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.3rem, 4.5vw, 4.4rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.photo-credit {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: 7px;
  left: 9px;
  color: #fff;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 4px #000;
  text-transform: uppercase;
}

.answer-both {
  justify-content: center;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.11) 0,
      rgba(255, 255, 255, 0.11) 9px,
      transparent 9px,
      transparent 18px
    ),
    var(--red);
  color: #fff;
}

.answer-both .photo-credit {
  text-shadow: none;
}

.both-orbit {
  position: absolute;
  inset: 15px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: orbit 12s linear infinite;
}

.both-orbit span {
  position: absolute;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 1000;
}

.both-orbit span:first-child {
  top: -8px;
  left: 18%;
}

.both-orbit span:last-child {
  right: 12%;
  bottom: -6px;
}

.both-label {
  margin: 0;
  border-color: #fff;
  background: transparent;
  box-shadow: none;
  font-size: clamp(3.6rem, 7vw, 6.5rem);
}

.answer-card.is-muted {
  filter: grayscale(0.82);
  opacity: 0.38;
  transform: scale(0.97);
}

.answer-card.is-correct {
  border-color: var(--ink);
  box-shadow: 0 0 0 8px var(--green), 9px 10px 0 var(--ink);
  animation: correct-pop 420ms cubic-bezier(0.18, 0.9, 0.25, 1.4);
}

.answer-card.is-wrong {
  box-shadow: 0 0 0 8px var(--red), 9px 10px 0 var(--ink);
  animation: wrong-shake 420ms ease;
}

.verdict-stamp {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
  color: var(--ink);
  font-family: Impact, sans-serif;
  font-size: 2.3rem;
  line-height: 1;
}

.result-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 32px;
  padding: 23px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 5px 6px 0 var(--ink);
  animation: result-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-correct {
  background: #d9f7df;
}

.result-wrong {
  background: #ffe2db;
}

.result-copy {
  position: relative;
  z-index: 2;
}

.result-copy > p {
  max-width: 760px;
  margin: 5px 0 0;
  font-size: 0.97rem;
  line-height: 1.47;
}

.result-kicker {
  margin: 0 !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.7rem !important;
  letter-spacing: 0.03em;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 12px;
  font-size: 0.78rem;
}

.sources span {
  font-weight: 900;
}

.sources a,
.credits-modal a {
  color: var(--blue-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.result-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 11px;
  align-items: center;
}

.primary-button,
.share-button {
  min-height: 48px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 5px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.065em;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  background: var(--blue);
  color: #fff;
}

.share-button {
  background: var(--yellow);
  color: var(--ink);
}

.primary-button:hover,
.share-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--ink);
}

.primary-button:active,
.share-button:active {
  transform: translate(3px, 4px);
  box-shadow: 1px 1px 0 var(--ink);
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -16px;
  width: 9px;
  height: 18px;
  background: var(--red);
  animation: confetti-fall 1.45s ease-out both;
}

.confetti i:nth-child(3n) {
  border-radius: 50%;
  background: var(--blue);
}

.confetti i:nth-child(4n) {
  background: var(--yellow);
}

.confetti i:nth-child(1) { left: 4%; animation-delay: 0.05s; }
.confetti i:nth-child(2) { left: 12%; animation-delay: 0.18s; }
.confetti i:nth-child(3) { left: 20%; animation-delay: 0.08s; }
.confetti i:nth-child(4) { left: 29%; animation-delay: 0.25s; }
.confetti i:nth-child(5) { left: 37%; animation-delay: 0.12s; }
.confetti i:nth-child(6) { left: 45%; animation-delay: 0.31s; }
.confetti i:nth-child(7) { left: 53%; animation-delay: 0.04s; }
.confetti i:nth-child(8) { left: 61%; animation-delay: 0.22s; }
.confetti i:nth-child(9) { left: 69%; animation-delay: 0.1s; }
.confetti i:nth-child(10) { left: 76%; animation-delay: 0.28s; }
.confetti i:nth-child(11) { left: 83%; animation-delay: 0.15s; }
.confetti i:nth-child(12) { left: 89%; animation-delay: 0.03s; }
.confetti i:nth-child(13) { left: 94%; animation-delay: 0.24s; }
.confetti i:nth-child(14) { left: 98%; animation-delay: 0.11s; }

.end-card {
  display: grid;
  min-height: 520px;
  place-items: center;
  align-content: center;
  padding: 52px 28px;
  text-align: center;
}

.end-card h2,
.credits-modal h2 {
  margin: 24px 0 12px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.end-card p {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.footer {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 12px 24px;
  align-items: center;
  justify-content: center;
  width: min(1120px, 100%);
  margin: 26px auto 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer button {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(16, 16, 15, 0.76);
  backdrop-filter: blur(5px);
}

.credits-modal {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 54px);
  border: 4px solid var(--ink);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 9px 10px 0 var(--blue);
}

.credits-modal h2 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.credits-modal > p,
.credit-list p {
  line-height: 1.55;
}

.credit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.credit-list p {
  margin: 0;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  font-size: 0.87rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 3px 4px 0 var(--ink);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.burst,
.bolt {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.burst {
  width: 180px;
  aspect-ratio: 1;
  border: 5px solid #fff;
  background: var(--blue);
  filter: drop-shadow(4px 5px 0 var(--ink));
  clip-path: polygon(
    50% 0%, 59% 26%, 78% 8%, 75% 34%, 100% 28%, 79% 49%,
    100% 64%, 72% 64%, 82% 94%, 58% 76%, 49% 100%, 39% 76%,
    12% 94%, 25% 66%, 0 63%, 22% 49%, 0 30%, 28% 34%, 20% 8%, 41% 27%
  );
}

.burst-left {
  top: 110px;
  left: -95px;
  transform: rotate(14deg);
}

.burst-right {
  right: -110px;
  bottom: 55px;
  transform: rotate(-18deg);
}

.burst-red {
  background: var(--red);
}

.bolt {
  display: grid;
  width: 82px;
  height: 130px;
  place-items: center;
  border: 4px solid #fff;
  background: var(--yellow);
  filter: drop-shadow(4px 5px 0 var(--ink));
  clip-path: polygon(35% 0, 100% 0, 67% 37%, 95% 37%, 12% 100%, 36% 53%, 5% 53%);
  color: var(--ink);
  font-family: Impact, sans-serif;
  font-size: 2rem;
}

.bolt-left {
  bottom: 42px;
  left: -22px;
  transform: rotate(-19deg);
}

.bolt-right {
  top: 140px;
  right: -17px;
  transform: rotate(16deg);
}

@keyframes prompt-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes correct-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.045) rotate(1deg); }
  100% { transform: scale(1); }
}

@keyframes wrong-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px) rotate(-1deg); }
  40% { transform: translateX(9px) rotate(1deg); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(-15px) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(190px) rotate(620deg); }
}

@media (max-width: 880px) {
  .game-shell {
    padding-top: 18px;
  }

  .brand-block {
    margin-top: 20px;
  }

  .brand-block h1 {
    font-size: clamp(3.4rem, 12.5vw, 6rem);
    white-space: normal;
  }

  .question-panel {
    border-radius: 26px;
  }

  .prompt-zone {
    min-height: 140px;
  }

  .answers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .answer-both {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 150px;
  }

  .both-label {
    font-size: 4rem;
  }

  .result-box {
    grid-template-columns: 1fr;
  }

  .result-actions {
    justify-content: flex-end;
  }

  .burst,
  .bolt {
    opacity: 0.45;
  }
}

@media (max-width: 580px) {
  .game-shell {
    padding: 14px 12px 22px;
  }

  .counter-pill,
  .sound-toggle {
    min-height: 40px;
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 0.64rem;
  }

  .counter-pill {
    padding: 0 11px;
  }

  .counter-pill strong {
    margin-left: 5px;
    font-size: 0.9rem;
  }

  .sound-toggle {
    gap: 5px;
    padding: 0 10px;
  }

  .brand-block {
    margin: 22px auto 12px;
  }

  .brand-block h1 {
    font-size: clamp(3.05rem, 15.7vw, 5rem);
    line-height: 0.86;
    white-space: normal;
  }

  .brand-block p {
    margin-top: 10px;
    font-size: 1rem;
  }

  .question-panel {
    padding: 18px 14px 20px;
    border-width: 3px;
    border-radius: 22px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .prompt-zone {
    min-height: 142px;
  }

  .eyebrow {
    min-height: 34px;
    padding: 4px 12px;
    font-size: 0.68rem;
  }

  .prompt-zone h2 {
    margin-top: 17px;
    font-size: clamp(2rem, 9.5vw, 3.2rem);
  }

  .answers-grid {
    gap: 11px;
    margin-top: 10px;
  }

  .answer-card {
    min-height: 206px;
    border-width: 3px;
    border-radius: 20px;
    box-shadow: 4px 5px 0 var(--ink);
  }

  .answer-both {
    min-height: 112px;
  }

  .answer-label {
    margin-bottom: 23px;
    padding: 4px 12px 2px;
    font-size: 2.3rem;
    box-shadow: 2px 3px 0 #fff, 4px 5px 0 var(--ink);
  }

  .photo-credit {
    right: 4px;
    bottom: 5px;
    left: 4px;
    font-size: 0.48rem;
  }

  .both-orbit {
    inset: 9px 30px;
  }

  .both-orbit span {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .both-label {
    font-size: 3.2rem;
  }

  .verdict-stamp {
    top: 7px;
    right: 7px;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }

  .result-box {
    gap: 17px;
    margin-top: 24px;
    padding: 18px 14px;
  }

  .result-kicker {
    font-size: 1.45rem !important;
  }

  .result-copy > p {
    font-size: 0.87rem;
  }

  .sources {
    display: grid;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .primary-button,
  .share-button {
    min-height: 46px;
    padding: 0 9px;
    font-size: 0.64rem;
  }

  .footer {
    display: grid;
    gap: 7px;
    margin-top: 20px;
  }

  .credit-list {
    grid-template-columns: 1fr;
  }

  .credits-modal {
    border-radius: 22px;
  }

  .end-card {
    min-height: 440px;
    border-width: 3px;
    border-radius: 22px;
    box-shadow: 6px 7px 0 var(--ink);
  }
}

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