@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/barlow-condensed.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffdf7;
  --surface: #fff;
  --ink: #14243b;
  --muted: #526078;
  --line: #d9dfeb;
  --blue: #4091ff;
  --deep-blue: #0b52c4;
  --blue-tint: #f0f6ff;
  --yellow: #ffde6b;
  --title-accent: #ffb12e;
  --green: #196247;
  --green-tint: #e4f7e9;
  --coral: #96331f;
  --coral-tint: #fff0e5;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p, ol { margin: 0; }
p { text-wrap: pretty; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--deep-blue); }
:focus-visible { outline: 3px solid var(--deep-blue); outline-offset: 4px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-bar, .shell, .site-footer {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

.site-bar {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: clamp(116px, 26vw, 149px); height: auto; display: block; }

.help-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 750;
}

.help-trigger span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 22px;
  margin-top: clamp(28px, 7vw, 76px);
  align-items: stretch;
}

.masthead {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 37px 35px 26px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--blue);
  box-shadow: 0 5px 0 var(--ink);
}

.masthead::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: radial-gradient(circle, rgb(20 36 59 / .21) 1px, transparent 1.4px) 2px 2px / 12px 12px;
  mask-image: linear-gradient(160deg, transparent 20%, #000 72%);
  pointer-events: none;
}

.mast-copy { position: relative; z-index: 1; }
h1 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  font-size: clamp(4.15rem, 8.2vw, 6.45rem);
  line-height: .79;
  font-weight: 900;
  letter-spacing: -.026em;
  text-transform: uppercase;
  white-space: nowrap;
}

h1 em {
  display: inline-block;
  margin-top: 9px;
  color: var(--title-accent);
  font-size: .79em;
  font-style: normal;
  -webkit-text-stroke: 1.25px var(--ink);
  text-shadow: 2px 3px var(--ink);
}

.mast-copy p {
  margin-top: 20px;
  font-size: clamp(.94rem, 2vw, 1.125rem);
  font-weight: 800;
  line-height: 1.27;
}

.mobile-break { display: none; }
.card-fan {
  position: relative;
  width: 270px;
  height: 236px;
  flex: 0 0 auto;
  margin: auto;
  font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  font-weight: 900;
}

.fan-card {
  position: absolute;
  top: 35px;
  width: 120px;
  height: 164px;
  padding: 8px 11px;
  display: grid;
  grid-template-rows: 1fr 3fr 1fr;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 5px 0 var(--ink);
  font-size: 1.25rem;
}

.fan-card span:last-child { justify-self: end; transform: rotate(180deg); }
.fan-card b { justify-self: center; font-size: 4.15rem; line-height: .9; }
.fan-a { left: 20px; top: 50px; transform: rotate(-22deg); background: var(--surface); }
.fan-c { right: 17px; top: 50px; transform: rotate(23deg); background: var(--blue-tint); }
.fan-b { left: 75px; transform: rotate(-4deg); background: var(--yellow); }
.fan-b b { font-size: 6rem; }

.mast-rule {
  height: 7px;
  width: 100%;
  border-block: 1px solid var(--ink);
  margin-top: 9px;
}

.game {
  min-width: 0;
  padding: 30px 32px 26px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 5px 0 var(--ink);
}

.game-top {
  min-height: 29px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.progress { display: flex; gap: 5px; padding: 0; list-style: none; }
.progress li {
  width: 22px;
  height: 9px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: var(--line);
  color: var(--surface);
  font-size: .69rem;
  font-weight: 800;
}

.progress .current { background: var(--deep-blue); }
.progress .correct, .progress .incorrect { height: 15px; margin-block: -3px; line-height: 1; }
.progress .correct { background: var(--green); }
.progress .incorrect { background: var(--coral); }
.stage-content { padding-top: 22px; }
.stage-content h2, dialog h2 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.03;
  letter-spacing: -.05em;
  font-weight: 800;
}

.stage-content h2:focus { outline: none; }
.lead { color: var(--muted); margin: 8px 0 18px; line-height: 1.45; }
.challenge {
  margin-bottom: 13px;
  padding: 7px 11px;
  border-radius: 6px;
  background: var(--blue-tint);
  color: var(--ink);
  font-size: .87rem;
  font-weight: 750;
}

.choices { list-style: none; padding: 0; display: grid; gap: 9px; }
.choice {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  text-align: left;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.choice:active, .primary:active { transform: translateY(2px); }
.choice-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.choice-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.choice-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--ink);
  font-size: .8rem;
  font-weight: 800;
}

.choice-copy { min-width: 0; padding-block: 3px; }
.choice-title, .choice-clue { display: block; }
.choice-title { font-size: 1.025rem; font-weight: 800; line-height: 1.19; text-wrap: pretty; }
.choice-clue { margin-top: 3px; color: var(--muted); font-size: .865rem; line-height: 1.31; text-wrap: pretty; }
.caption { margin: 15px 0 0; color: var(--muted); font-size: .84rem; }

@media (min-width: 975px) {
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choice {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 6px;
    padding: 6px;
  }
  .choice-media { aspect-ratio: 5 / 4; }
  .choice-copy { padding: 3px 5px 7px; }
  .choice-clue { margin-top: 6px; }
}

.verdict {
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 800;
  color: var(--green);
  background: var(--green-tint);
}
.verdict.missed { color: var(--coral); background: var(--coral-tint); }
.reveal .lead { margin-bottom: 11px; }
.fake-answer { font-weight: 800; color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 13px 0 17px; }
.product {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.product img { display: block; width: 100%; height: 108px; object-fit: contain; padding: 5px 9px; }
.product-copy { display: grid; align-content: space-between; padding: 8px 11px 3px; border-top: 1px solid var(--line); background: var(--paper); }
.product-name { font-size: .9rem; font-weight: 800; line-height: 1.2; }
.product a { display: flex; gap: 5px; align-items: center; min-height: 44px; font-weight: 750; font-size: .83rem; text-underline-offset: 2px; }
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  text-align: left;
  font-weight: 800;
  transition: background .15s ease, transform .15s ease;
}

.result-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  font-size: clamp(4.5rem, 12vw, 6.3rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.035em;
  color: var(--deep-blue);
}

.result-score span { font-size: .49em; color: var(--ink); letter-spacing: -.025em; }
.result h2 { margin-top: 5px; }
.score-list { display: flex; gap: 7px; list-style: none; padding: 0; margin-bottom: 18px; }
.score-list li { display: grid; place-items: center; aspect-ratio: 1; width: 33px; border-radius: 6px; color: var(--green); background: var(--green-tint); font-weight: 800; }
.score-list .incorrect { color: var(--coral); background: var(--coral-tint); }
.share-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; margin-top: 6px; }
.text-button { padding: 0; min-height: 44px; border: 0; background: transparent; color: var(--deep-blue); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.share-message { color: var(--green); min-height: 1.3em; font-size: .875rem; }
.manual-link { margin-top: 7px; }
.manual-link label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .82rem; }
.manual-link input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--paper); padding: 6px 9px; font-size: .875rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 14px;
  padding-block: 22px 14px;
  font-size: .84rem;
  color: var(--muted);
}
.site-footer a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-weight: 750; text-underline-offset: 3px; }

dialog { width: min(100% - 36px, 410px); padding: 26px; border: 2px solid var(--ink); border-radius: 19px; color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
dialog::backdrop { background: rgb(20 36 59 / .58); }
dialog p { color: var(--muted); line-height: 1.5; margin: 10px 0; }
dialog .primary { margin-top: 17px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (hover: hover) {
  .help-trigger:hover, .choice:hover { background: var(--blue-tint); border-color: var(--deep-blue); }
  .primary:hover { background: #ffea9e; }
}

@media (max-width: 860px) and (min-width: 701px) {
  .masthead { padding-inline: 23px; }
  h1 { font-size: clamp(3.45rem, 7.1vw, 4.1rem); }
  .game { padding-inline: 19px; }
}

@media (max-width: 700px) {
  .site-bar, .shell, .site-footer { width: min(100% - 28px, 510px); }
  .site-bar { min-height: 58px; }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 15px; margin-top: 16px; }
  .masthead { min-height: 165px; border-radius: 16px; padding: 19px 16px 15px; justify-content: center; box-shadow: 0 3px 0 var(--ink); }
  h1 { font-size: clamp(3.05rem, 10.8vw, 4.9rem); }
  h1 em { margin-top: 5px; text-shadow: 1px 2px var(--ink); -webkit-text-stroke: .85px var(--ink); }
  .mast-copy p { margin-top: 10px; font-size: .91rem; }
  .mast-rule { display: none; }
  .card-fan { position: absolute; right: 1px; top: 50%; margin: 0; transform: translate(23%, -50%) scale(.54); transform-origin: center; }
  .game { padding: 16px 15px 16px; border-radius: 16px; box-shadow: 0 3px 0 var(--ink); }
  .game-top { padding-bottom: 11px; }
  .stage-content { padding-top: 15px; }
  .stage-content h2 { font-size: clamp(1.74rem, 6.5vw, 2.35rem); }
  .lead { margin: 6px 0 13px; font-size: .95rem; }
  .choices { gap: 7px; }
  .choice { grid-template-columns: clamp(72px, 21vw, 92px) minmax(0, 1fr); padding: 5px 9px 5px 5px; gap: 9px; border-radius: 10px; }
  .choice-title { font-size: .98rem; }
  .choice-clue { font-size: .81rem; }
  .caption { margin-top: 10px; font-size: .79rem; }
  .site-footer { padding-top: 13px; }
}

@media (max-width: 390px) {
  .card-fan { right: -11px; transform: translate(28%, -50%) scale(.47); }
  .mobile-break { display: initial; }
  .masthead { min-height: 153px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
