  :root {
    --night: #1E1033;
    --track: #2A1745;
    --edge: #3E2763;
    --socket: #160B27;
    --text: #F6EFFF;
    --muted: #A893C7;
    --gold: #FFD23F;
    --gold-edge: #C99A12;
    --good: #2EE59D;
    --bad: #FF4D5E;
    --measure: 34rem;
  }
  * { box-sizing: border-box; }
  html { background: var(--night); }
  body {
    margin: 0;
    color: var(--text);
    font: 1.0625rem/1.55 "Atkinson Hyperlegible", system-ui, sans-serif;
  }
  a { color: var(--gold); }
  a:focus-visible, button:focus-visible, .demo:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
  .wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

  header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .wordmark { font-family: Bungee, system-ui, sans-serif; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }
  .play {
    display: inline-block; font-family: Bungee, system-ui, sans-serif; font-size: 1.05rem; letter-spacing: 0.02em;
    color: var(--night); background: var(--gold); border-radius: 999px; padding: 0.85rem 1.6rem 0.75rem;
    text-decoration: none; box-shadow: 0 5px 0 var(--gold-edge); transition: transform 80ms, box-shadow 80ms;
  }
  .play:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-edge); }

  /* The hero: what the game is, next to a piece of it you can play. */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 3rem; align-items: center; padding: 2.5rem 1rem 4rem; }
  h1 { font-family: Bungee, system-ui, sans-serif; font-weight: 400; font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 0.98; margin: 0 0 1.25rem; }
  .lead { color: var(--muted); font-size: 1.25rem; max-width: var(--measure); margin: 0 0 2rem; }
  .note { color: var(--muted); font-size: 0.95rem; margin: 1.5rem 0 0; }

  .demo { position: relative; user-select: none; -webkit-user-select: none; touch-action: none; cursor: pointer; border-radius: 28px; }
  .demo svg { display: block; width: 100%; height: auto; }
  .demo .hud { position: absolute; left: 0; right: 0; top: 0.9rem; display: flex; justify-content: space-between; padding: 0 1.25rem; pointer-events: none; }
  .demo .score { font-family: Bungee, system-ui, sans-serif; font-size: 2rem; line-height: 1; }
  .demo .best { color: var(--muted); font-weight: 700; }
  .demo .say { position: absolute; left: 0; right: 0; top: 43%; text-align: center; pointer-events: none; padding: 0 2rem; font-weight: 700; font-size: 1.1rem; }
  .demo.shake { animation: shake 260ms; }
  @keyframes shake { 20% { transform: translateX(9px); } 40% { transform: translateX(-9px); } 60% { transform: translateX(6px); } 80% { transform: translateX(-4px); } }
  .caption { color: var(--muted); font-size: 0.95rem; text-align: center; margin: 0.9rem 0 0; }

  section { padding: 3.5rem 0; border-top: 1px solid var(--edge); }
  h2 { font-family: Bungee, system-ui, sans-serif; font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin: 0 0 1.75rem; }
  .ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
  .ways svg { width: 2.25rem; height: 2.25rem; display: block; margin-bottom: 0.75rem; }
  .ways h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
  .ways p { color: var(--muted); margin: 0; }
  .plain { color: var(--muted); max-width: var(--measure); margin: 2.25rem 0 0; }

  .shots { display: flex; gap: 1.5rem; justify-content: center; align-items: flex-start; }
  .shots img { width: min(30%, 15rem); height: auto; border-radius: 22px; border: 2px solid var(--edge); }
  .shots img:nth-child(2) { margin-top: 2.5rem; }

  /* The sponsors page. */
  .page { padding: 2.5rem 1rem 4rem; }
  .page h1, .page .lead { max-width: 46rem; }
  .page h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
  .page p, .page li { color: var(--muted); max-width: var(--measure); }
  .page ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }
  .page li { margin-bottom: 0.6rem; }
  .page strong { color: var(--text); }

  footer { border-top: 1px solid var(--edge); color: var(--muted); font-size: 0.95rem; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding-top: 1.75rem; padding-bottom: 2.5rem; }

  @media (max-width: 52rem) {
    .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1rem; }
    .demo-col { max-width: 24rem; width: 100%; margin: 0 auto; }
    .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 30rem) {
    .ways { grid-template-columns: 1fr; gap: 1.5rem; }
    /* A row to swipe through: three side by side would be too small to read. */
    .shots { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem; padding-bottom: 0.5rem; }
    .shots img { flex: none; width: 66%; scroll-snap-align: center; border-radius: 16px; }
    .shots img:nth-child(2) { margin-top: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .demo.shake { animation: none; }
    .play { transition: none; }
  }
