:root {
  --paper: #f2f3f7;
  --white: #fff;
  --ink: #17213b;
  --muted: #536078;
  --cobalt: #1f4fd1;
  --coral: #ff665a;
  --pale-blue: #dce5ff;
  --pale-coral: #ffe0dc;
  --line: #17213b;
  --radius: 20px;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
  --container: 1120px;
  --reading: 72ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a {
  color: var(--cobalt);
  text-decoration: none;
  font-weight: 700;
  &::after { content: " →"; }
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 30;
  transform: translateY(-180%);
  background: var(--white);
  padding: .75rem 1rem;
  border: 3px solid var(--line);
  &::after { content: ""; }
}
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); }
.site-header { padding: 1rem 0 .75rem; background: var(--paper); }
.nav {
  width: min(calc(100% - 1.5rem), var(--container));
  margin: 0 auto;
  padding: .65rem .8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--cobalt);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  white-space: nowrap;
  &::after { content: ""; }
}
.brand img { width: 38px; height: 38px; }
.nav__links { display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap; }
.nav__links a { color: var(--ink); font-size: .88rem; }
.header-balance {
  font: 800 .82rem/1.2 "Arial Narrow", Arial, sans-serif;
  background: var(--pale-blue);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: .5rem .8rem;
  white-space: nowrap;
}
.age-strip {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: .55rem 1rem;
  font-size: .82rem;
}
.age-strip a { color: var(--white); text-decoration: underline; }
.hero {
  background: var(--coral);
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  border-block: 4px solid var(--line);
}
.hero h1, .page-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(3.7rem, 12vw, 8.5rem);
  line-height: .88;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero__line {
  max-width: 60ch;
  margin: 2rem 0 0;
  font-size: 1.18rem;
  font-weight: 700;
}
.hero__proof {
  max-width: 78ch;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border: 4px double var(--line);
  font-weight: 800;
}
.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--pale-blue);
  border-bottom: 4px solid var(--line);
}
.page-hero h1 { font-size: clamp(3.2rem, 9vw, 6.5rem); max-width: 16ch; }
.page-hero p { max-width: 65ch; margin: 1.5rem 0 0; font-size: 1.15rem; }
.kicker, .section-index {
  display: inline-block;
  margin: 0 0 1rem;
  font: 900 .8rem/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-index {
  width: 3rem;
  height: 3rem;
  padding-top: .95rem;
  text-align: center;
  color: var(--white);
  background: var(--cobalt);
  border: 2px solid var(--line);
}
.band { padding: var(--space-6) 0; }
.band--blue { background: var(--pale-blue); border-block: 3px solid var(--line); }
.band--coral { background: var(--pale-coral); border-block: 3px solid var(--line); }
.band h2, .content h2 {
  max-width: 18ch;
  margin: 0 0 1.25rem;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.content { padding: var(--space-6) 0; }
.content h3 { margin-top: 2.5rem; font-size: 1.35rem; line-height: 1.25; }
.content p, .content li { max-width: var(--reading); }
.content ul, .checklist { padding: 0; list-style: none; }
.content li, .checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin: .7rem 0;
}
.content li::before, .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cobalt);
  font-weight: 900;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 5rem;
}
.game-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 4px double var(--line);
}
.game-card:first-child { grid-column: span 6; }
.game-card:nth-child(2) { grid-column: span 6; }
.game-card:nth-child(3) { grid-column: 3 / span 8; }
.game-card img { aspect-ratio: 1; object-fit: cover; filter: saturate(.9) contrast(1.05); border-bottom: 3px solid var(--line); }
.game-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.game-card h2, .game-card h3 { margin: 0 0 .7rem; font-family: "Arial Narrow", Arial, sans-serif; font-size: 1.65rem; line-height: 1.05; text-transform: uppercase; }
.game-card p { margin: 0 0 1.2rem; color: var(--muted); }
.game-card .button { margin-top: auto; align-self: flex-start; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  margin-bottom: .75rem;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: var(--pale-coral);
  font-size: .76rem;
  font-weight: 800;
  &::before { content: "•"; color: var(--coral); font-size: 1.2em; }
}
.button, button {
  appearance: none;
  min-height: 46px;
  border: 3px solid var(--line);
  border-radius: .45rem;
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--cobalt);
  font: 900 .9rem/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.button { display: inline-flex; align-items: center; gap: .5rem; }
.button::before { content: "▶"; font-size: .75em; }
.button::after { content: ""; }
.button:hover, button:hover { text-decoration: none; background: #163ba6; }
.button:active, button:active { transform: translate(3px, 3px) scale(.97); box-shadow: 0 0 0 var(--line); }
button.secondary { color: var(--ink); background: var(--white); }
button.danger { color: var(--ink); background: var(--pale-coral); }
.checklist {
  width: min(100%, 820px);
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--white);
  border: 4px double var(--line);
}
.checklist strong { display: block; margin-bottom: .6rem; font-size: 1.2rem; }
.editorial-grid, .faq-groups, .info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.editorial-grid article, .faq-groups section, .info-card {
  padding: 1.5rem;
  background: var(--white);
  border: 3px solid var(--line);
}
.editorial-grid h3, .faq-groups h3, .info-card h3 { margin-top: 0; }
.art-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
.art-strip a::after { content: ""; }
.art-strip img {
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--line);
}
.art-strip figcaption { margin-top: .5rem; font-size: .82rem; color: var(--muted); }
.glossary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.glossary div { padding: 1rem; background: var(--white); border-left: 7px solid var(--coral); }
.glossary dt { font-weight: 900; }
.glossary dd { margin: .4rem 0 0; }
.disclaimer {
  margin: 3rem 0;
  padding: 1.5rem;
  background: var(--ink);
  color: var(--white);
  border: 6px double var(--coral);
}
.disclaimer h2 { font-size: 1.3rem; max-width: none; }
.game-layout { padding: 4rem 0; }
.game-shell {
  overflow: hidden;
  background: var(--white);
  border: 6px double var(--line);
  box-shadow: 8px 8px 0 var(--coral);
}
.game-shell__head { padding: 1.5rem; background: var(--pale-blue); border-bottom: 3px solid var(--line); }
.game-shell__head h1 { margin: 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(2.5rem, 7vw, 5rem); line-height: .95; text-transform: uppercase; }
.coin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--ink);
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.coin-panel strong { font-size: 1.25rem; }
.game-stage { min-height: 420px; padding: 1.5rem; background: #f7f8fc; }
.game-controls { display: flex; align-items: end; gap: 1rem; flex-wrap: wrap; margin: 1.25rem 0; }
.field { display: grid; gap: .35rem; font-weight: 800; }
input, select, textarea {
  min-height: 46px;
  border: 3px solid var(--line);
  border-radius: .35rem;
  background: var(--white);
  padding: .6rem;
  color: var(--ink);
  font: inherit;
}
input, select { min-width: 110px; }
textarea { width: 100%; resize: vertical; }
.result {
  min-height: 3.5rem;
  padding: 1rem;
  background: var(--pale-coral);
  border: 3px solid var(--line);
  font-weight: 800;
}
.worthless-note { margin: 1rem 0 0; color: var(--muted); font-size: .86rem; }
.game-visual {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: var(--pale-blue);
  border: 3px solid var(--line);
}
.multiplier {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(4.5rem, 16vw, 9rem);
  color: var(--cobalt);
  line-height: 1;
}
.ship-line { width: min(90%, 650px); height: 8px; background: var(--coral); transform: rotate(-5deg); }
.dice { display: flex; gap: 1rem; }
.die {
  display: grid;
  place-items: center;
  width: clamp(72px, 18vw, 120px);
  aspect-ratio: 1;
  background: var(--white);
  border: 4px solid var(--line);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  box-shadow: 5px 5px 0 var(--coral);
}
.wheel-wrap { position: relative; width: min(76vw, 360px); aspect-ratio: 1; }
.wheel-pointer {
  position: absolute;
  z-index: 2;
  top: -16px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 34px solid var(--ink);
  transform: translateX(-50%);
}
.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border: 7px double var(--line);
  border-radius: 50%;
  background: repeating-conic-gradient(var(--coral) 0 30deg, var(--pale-blue) 30deg 60deg);
  transition: transform 4s cubic-bezier(.12,.65,.12,1);
}
.wheel span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  margin-left: -14px;
  transform-origin: 14px 0;
  font-weight: 900;
  text-align: center;
}
.rules {
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--line);
  background: var(--pale-coral);
}
.rules h2 { margin-top: 0; }
.scorecard { width: 100%; border-collapse: collapse; margin: 2rem 0; background: var(--white); }
.scorecard th, .scorecard td { border: 2px solid var(--line); padding: .8rem; text-align: left; }
.scorecard th { background: var(--pale-blue); }
.site-footer {
  padding: 2rem 0;
  color: var(--white);
  background: var(--ink);
  border-top: 6px solid var(--coral);
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-row .brand { color: var(--white); }
.footer-links { display: flex; gap: .8rem 1.2rem; flex-wrap: wrap; }
.footer-links a { color: var(--white); font-size: .82rem; }
.footer-notice { width: 100%; margin: 0; font-size: .78rem; color: #d9dfef; }
.cookie-banner {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  width: min(calc(100% - 2rem), 430px);
  padding: 1rem;
  background: var(--white);
  border: 4px solid var(--line);
  box-shadow: 7px 7px 0 var(--coral);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 .8rem; font-size: .88rem; }
.local-achievement { padding: 1rem; background: var(--white); border: 3px solid var(--line); }
.local-achievement[data-unlocked="true"] { border-color: var(--cobalt); background: var(--pale-blue); }

@media (max-width: 820px) {
  .nav { border-radius: 20px; align-items: flex-start; }
  .nav__links { justify-content: flex-end; }
  .nav__links a:nth-child(n+4) { display: none; }
  .mosaic { grid-template-columns: 1fr; }
  .game-card, .game-card:first-child, .game-card:nth-child(2), .game-card:nth-child(3) { grid-column: auto; }
  .editorial-grid, .faq-groups, .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand span { max-width: 10ch; line-height: 1.05; }
  .header-balance { display: none; }
  .hero h1 { font-size: 3.65rem; }
  .band, .content { padding: 3.5rem 0; }
  .art-strip { grid-template-columns: repeat(2, 1fr); }
  .art-strip figure:last-child { display: none; }
  .glossary { grid-template-columns: 1fr; }
  .game-stage { padding: 1rem; min-height: 380px; }
  .game-controls > * { width: 100%; }
  .game-controls button, .game-controls input, .game-controls select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .age-strip, .site-footer, .cookie-banner, .button, button { display: none !important; }
  body { background: white; color: black; }
}
