
    :root {
      --paper: #f7f2e6;
      --paper-2: #fffaf0;
      --ink: #191a17;
      --muted: #5c5b52;
      --line: #c8c0ae;
      --grid: rgba(47, 91, 106, .12);
      --yellow: #f6c84a;
      --yellow-deep: #d59d00;
      --red: #ed5b45;
      --red-deep: #b73c2b;
      --teal: #168a86;
      --teal-deep: #0a6463;
      --blue: #3f6ea3;
      --shadow: 7px 8px 0 #191a17;
      --soft-shadow: 3px 4px 0 #191a17;
      --radius-lg: 24px;
      --radius-md: 14px;
      --radius-sm: 8px;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --paper: #171916;
        --paper-2: #22251f;
        --ink: #f7f1df;
        --muted: #c7c2b6;
        --line: #65665e;
        --grid: rgba(174, 210, 210, .09);
        --yellow: #e5b93c;
        --yellow-deep: #f2cd62;
        --red: #d9513f;
        --red-deep: #ff8b78;
        --teal: #167c79;
        --teal-deep: #71d3ce;
        --blue: #6d98c9;
        --shadow: 7px 8px 0 #020302;
        --soft-shadow: 3px 4px 0 #020302;
      }
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      min-width: 320px;
      background-color: var(--paper);
      background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
      background-size: 24px 24px;
      color: var(--ink);
      font-family: "Bricolage Grotesque", ui-rounded, sans-serif;
      font-size: 17px;
      line-height: 1.55;
    }
    button, input { font: inherit; }
    button { color: inherit; }
    a { color: inherit; }
    .wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
    .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

    .hero {
      min-height: 70vh;
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
      gap: clamp(32px, 6vw, 84px);
      align-items: center;
      padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 8vw, 92px);
    }
    .hero-copy { max-width: 650px; }
    .eyebrow {
      display: inline-flex;
      gap: 9px;
      align-items: center;
      font: 600 .78rem/1 "IBM Plex Mono", monospace;
      letter-spacing: .08em;
      text-transform: uppercase;
      padding: 9px 12px;
      background: var(--yellow);
      color: #191a17;
      border: 2px solid #191a17;
      border-radius: 999px;
      transform: rotate(-1deg);
    }
    .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
    h1 {
      margin: 22px 0 20px;
      max-width: 760px;
      font-size: clamp(3.2rem, 8vw, 6.7rem);
      line-height: .9;
      letter-spacing: -.065em;
      font-weight: 800;
    }
    h1 .marker {
      position: relative;
      display: inline-block;
      z-index: 0;
    }
    h1 .marker::after {
      content: "";
      position: absolute;
      z-index: -1;
      left: -2%; right: -3%; bottom: .04em; height: .22em;
      background: var(--yellow);
      transform: rotate(-1.5deg);
      opacity: .95;
    }
    .lede { max-width: 600px; margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--muted); }
    .hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 48px;
      padding: 12px 18px;
      border: 2px solid var(--ink);
      border-radius: var(--radius-sm);
      background: var(--ink);
      color: var(--paper-2);
      text-decoration: none;
      font-weight: 700;
      cursor: pointer;
      box-shadow: var(--soft-shadow);
      transition: transform .16s ease, box-shadow .16s ease;
    }
    .button.secondary { background: var(--paper-2); color: var(--ink); }
    .button.teal { background: var(--teal); color: white; }
    .button.red { background: var(--red); color: white; }
    .button:hover { transform: translate(-2px,-2px); box-shadow: 5px 6px 0 var(--ink); }
    .button:active { transform: translate(2px,2px); box-shadow: 1px 2px 0 var(--ink); }
    .button:focus-visible, input:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

    .lab-board {
      min-height: 460px;
      position: relative;
      border: 3px solid var(--ink);
      border-radius: var(--radius-lg);
      background: var(--paper-2);
      box-shadow: var(--shadow);
      overflow: hidden;
      transform: rotate(1deg);
    }
    .lab-board::before {
      content: "EXPERIMENTS  /  02";
      position: absolute;
      top: 18px; left: 20px;
      font: 600 .72rem/1 "IBM Plex Mono", monospace;
      letter-spacing: .08em;
      color: var(--muted);
    }
    .tile-scatter { position: absolute; inset: 0; }
    .tile {
      position: absolute;
      display: grid;
      place-items: center;
      width: 74px; height: 82px;
      border: 3px solid #191a17;
      border-radius: 12px;
      color: #191a17;
      background: #fff8df;
      box-shadow: 4px 5px 0 #191a17;
      font: 800 2.1rem/1 "IBM Plex Mono", monospace;
    }
    .t1 { left: 10%; top: 20%; transform: rotate(-9deg); background: var(--yellow); }
    .t2 { left: 33%; top: 30%; transform: rotate(4deg); background: #fff8df; }
    .t3 { left: 58%; top: 17%; transform: rotate(10deg); background: var(--red); color: white; }
    .t4 { left: 72%; top: 42%; transform: rotate(-6deg); background: var(--teal); color: white; }
    .t5 { left: 18%; top: 59%; transform: rotate(8deg); background: var(--blue); color: white; }
    .t6 { left: 45%; top: 63%; transform: rotate(-3deg); background: var(--yellow); }
    .arrow-doodle {
      position: absolute;
      right: 9%; bottom: 9%;
      width: 92px; height: 52px;
      border-bottom: 4px solid var(--ink);
      transform: rotate(-8deg) skewX(-20deg);
    }
    .arrow-doodle::after {
      content: ""; position: absolute; right: -2px; bottom: -6px; width: 20px; height: 20px;
      border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: rotate(-45deg);
    }

    .section { padding: clamp(70px, 10vw, 120px) 0; }
    .section-head { display: grid; grid-template-columns: .42fr 1fr; gap: 32px; align-items: end; margin-bottom: 38px; }
    .section-number { font: 600 .84rem/1 "IBM Plex Mono", monospace; color: var(--muted); }
    h2 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .94; letter-spacing: -.055em; }
    .section-intro { margin: 16px 0 0; max-width: 710px; font-size: 1.16rem; color: var(--muted); }

    .game-shell {
      border: 3px solid var(--ink);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      background: var(--paper-2);
      overflow: hidden;
    }
    .game-top { display: grid; grid-template-columns: 1.05fr .95fr; }
    .game-brief { padding: clamp(28px, 5vw, 58px); }
    .game-brief h3 { margin: 0 0 16px; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1; }
    .game-brief p { margin: 0; color: var(--muted); }
    .game-visual {
      display: grid;
      place-items: center;
      min-height: 330px;
      padding: 30px;
      border-left: 3px solid var(--ink);
      background: var(--yellow);
      color: #191a17;
    }
    .noun-gallery {
      display: grid;
      width: min(100%, 430px);
      height: auto;
      aspect-ratio: 1;
    }
    .noun-gallery figure {
      min-width: 0;
      min-height: 0;
      margin: 0;
      overflow: hidden;
      border: 3px solid #191a17;
      border-radius: 12px;
      background: #fff;
      box-shadow: 4px 5px 0 #191a17;
    }
    .noun-gallery .box-art { transform: rotate(-1.5deg); }
    .noun-gallery img { display: block; width: 100%; height: 100%; object-fit: contain; }

    .play-panel { border-top: 3px solid var(--ink); padding: clamp(24px, 4vw, 44px); background: color-mix(in srgb, var(--teal) 9%, var(--paper-2)); }
    .noun-console { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; }
    .letter-machine {
      aspect-ratio: 1;
      display: grid;
      place-items: center;
      border: 3px solid var(--ink);
      border-radius: 50%;
      background: var(--red);
      color: white;
      box-shadow: 5px 6px 0 var(--ink);
      font: 800 clamp(4rem, 9vw, 6rem)/1 "IBM Plex Mono", monospace;
    }
    .console-copy h4 { font-size: 1.35rem; margin: 0 0 8px; }
    .console-copy p { margin: 0 0 18px; color: var(--muted); }
    .console-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .timer-wrap { margin-top: 26px; display: none; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
    .timer-wrap.active { display: grid; }
    .timer-number { font: 800 2.1rem/1 "IBM Plex Mono", monospace; min-width: 62px; }
    .timer-track { height: 16px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
    .timer-bar { width: 100%; height: 100%; background: var(--yellow); transition: width .95s linear; }
    .timer-note { grid-column: 1 / -1; font-weight: 700; min-height: 1.5em; }
    .host-toggle { margin-top: 22px; }
    .host-panel { margin-top: 26px; padding-top: 26px; border-top: 2px dashed var(--line); }
    .host-panel[hidden] { display: none; }
    .host-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 22px; }
    .host-head h4 { margin: 0 0 6px; font-size: 1.45rem; }
    .host-head p { margin: 0; color: var(--muted); max-width: 620px; }
    .host-setup { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 20px; }
    .host-field { display: grid; gap: 7px; min-width: 150px; }
    .host-field label { font: 600 .72rem/1 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
    .host-field select, .host-answer, .order-field input, .order-field select, .order-field textarea {
      min-height: 46px; padding: 9px 11px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink);
    }
    .host-actions { display: flex; flex-wrap: wrap; gap: 10px; }
    .host-status { min-height: 1.5em; margin: 14px 0 18px; font-weight: 700; color: var(--teal-deep); }
    .host-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .host-player { min-width: 0; padding: 18px; border: 2px solid var(--ink); background: var(--paper-2); box-shadow: 3px 4px 0 var(--ink); }
    .host-player-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 14px; }
    .host-player-name { min-width: 0; width: 100%; padding: 8px 9px; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: var(--ink); font-weight: 800; }
    .host-player-score { font: 700 .86rem/1.3 "IBM Plex Mono", monospace; text-align: right; }
    .answer-list { display: grid; gap: 9px; }
    .answer-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: center; }
    .answer-row label { font: 600 .7rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; color: var(--muted); }
    .host-answer { min-width: 0; width: 100%; min-height: 40px; }
    .host-round-score { display: inline-block; margin-top: 14px; padding: 6px 9px; background: var(--yellow); color: #191a17; font: 700 .8rem/1 "IBM Plex Mono", monospace; }

    .noun-scoreboard { padding: clamp(28px, 5vw, 52px); border-top: 3px solid var(--ink); background: color-mix(in srgb, var(--red) 7%, var(--paper-2)); }
    .noun-scoreboard-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 22px; }
    .noun-scoreboard-head h3 { margin: 6px 0 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
    .noun-scoreboard-head p { margin: 9px 0 0; max-width: 610px; color: var(--muted); }
    .noun-scoreboard-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: flex-end; }
    .noun-scoreboard-controls .host-field { min-width: 130px; }
    .noun-round-meta { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 12px; font: 700 .78rem/1.3 "IBM Plex Mono", monospace; color: var(--muted); }
    .noun-leaderboard { display: grid; gap: 10px; }
    .noun-leader-row { display: grid; grid-template-columns: 48px minmax(130px, 1fr) minmax(105px, .45fr) 104px; gap: 14px; align-items: center; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-2); box-shadow: 3px 4px 0 var(--ink); }
    .noun-leader-row.leader { background: var(--yellow); color: #191a17; }
    .noun-rank { display: grid; place-items: center; width: 38px; height: 38px; border: 2px solid currentColor; border-radius: 50%; font: 800 1rem/1 "IBM Plex Mono", monospace; }
    .noun-player-name { min-width: 0; width: 100%; padding: 8px 9px; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: inherit; font-weight: 800; }
    .noun-round-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
    .noun-round-field label { font: 600 .68rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; color: var(--muted); }
    .noun-round-points { min-width: 0; width: 100%; height: 42px; padding: 7px 9px; border: 2px solid var(--ink); border-radius: 7px; background: var(--paper); color: var(--ink); text-align: right; font: 700 1rem/1 "IBM Plex Mono", monospace; }
    .noun-total { text-align: right; }
    .noun-total b { display: block; font: 800 1.65rem/1 "IBM Plex Mono", monospace; }
    .noun-total span { display: block; margin-top: 5px; font: 600 .66rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; color: var(--muted); }
    .noun-scoreboard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
    .noun-score-status { min-height: 1.5em; margin: 14px 0 0; font-weight: 700; color: var(--teal-deep); }

    .rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--ink); }
    .rule { padding: 26px; border-right: 2px solid var(--ink); }
    .rule:last-child { border-right: 0; }
    .rule b { display: block; font: 600 .72rem/1 "IBM Plex Mono", monospace; color: var(--red-deep); margin-bottom: 10px; }
    .rule p { margin: 0; font-size: .98rem; }

    .spell-shell { background: var(--paper-2); }
    .spell-layout { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 530px; }
    .spell-input { padding: clamp(30px, 5vw, 58px); background: var(--teal); color: white; border-right: 3px solid var(--ink); }
    .spell-input h3 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
    .spell-input p { margin: 0 0 28px; color: rgba(255,255,255,.82); }
    .field-label { display: block; margin-bottom: 9px; font: 600 .74rem/1 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
    .number-field {
      width: 100%; min-height: 70px; padding: 13px 16px;
      border: 3px solid #191a17; border-radius: 10px;
      background: #fffdf4; color: #191a17;
      font: 600 1.7rem/1 "IBM Plex Mono", monospace;
      box-shadow: 4px 5px 0 #191a17;
    }
    .spell-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
    .spell-error { min-height: 1.5em; margin: 18px 0 0; color: #fff4a8; font-weight: 700; }
    .session-stats { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 26px; padding-top: 22px; border-top: 2px solid rgba(255,255,255,.35); }
    .session-stat { display: grid; gap: 4px; }
    .session-stat b { font: 800 1.35rem/1 "IBM Plex Mono", monospace; }
    .session-stat span { color: rgba(255,255,255,.78); font-size: .86rem; }
    .spell-result { padding: clamp(30px, 5vw, 58px); display: flex; flex-direction: column; justify-content: center; }
    .result-label { font: 600 .75rem/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
    .challenge-intro h3, .challenge-complete h3 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
    .challenge-intro p, .challenge-complete p { margin: 0; color: var(--muted); }
    .challenge-current { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
    .current-number { font: 800 clamp(3rem, 8vw, 5.6rem)/.9 "IBM Plex Mono", monospace; letter-spacing: -.06em; }
    .race-clock { min-width: 92px; padding: 10px 12px; border: 2px solid var(--ink); background: var(--yellow); color: #191a17; text-align: center; box-shadow: 3px 4px 0 var(--ink); font: 700 1.05rem/1 "IBM Plex Mono", monospace; }
    .chain-form { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 12px; }
    .chain-form .button { grid-column: 1 / -1; }
    .chain-field { min-width: 0; min-height: 54px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); }
    .challenge-feedback { min-height: 1.5em; margin: 14px 0 0; color: var(--red-deep); font-weight: 700; }
    .challenge-feedback.good { color: var(--teal-deep); }
    .digital-chain { display: grid; gap: 9px; margin-top: 20px; }
    .written-step { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 2px dashed var(--line); }
    .written-step .start { font: 700 1.05rem/1 "IBM Plex Mono", monospace; }
    .written-step .spelling { min-width: 0; overflow-wrap: anywhere; }
    .written-step .count { padding: 4px 8px; background: var(--yellow); color: #191a17; font: 700 .9rem/1 "IBM Plex Mono", monospace; }
    .challenge-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
    .challenge-actions .button { min-height: 42px; padding: 9px 13px; font-size: .92rem; }
    .chain { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
    .chain-step { position: relative; min-width: 116px; padding: 15px 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 3px 4px 0 var(--ink); }
    .chain-step:not(:last-child)::after { content: "→"; position: absolute; right: -25px; top: 50%; transform: translateY(-50%); font: 800 1.3rem/1 "IBM Plex Mono", monospace; }
    .chain-step .n { display: block; font: 700 1.45rem/1 "IBM Plex Mono", monospace; }
    .chain-step .word { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); }
    .chain-step.final { background: var(--yellow); color: #191a17; transform: rotate(2deg); }
    .chain-step.final .word { color: #3d3210; }
    .chain-explain { margin: 28px 0 0; color: var(--muted); }
    .tiny-proof { margin-top: 22px; padding-top: 22px; border-top: 2px dashed var(--line); font-size: .92rem; color: var(--muted); }
    .chain-lookup { display: grid; grid-template-columns: .82fr 1.18fr; border-top: 3px solid var(--ink); background: color-mix(in srgb, var(--blue) 8%, var(--paper-2)); }
    .chain-lookup-copy { padding: clamp(26px, 4vw, 42px); border-right: 3px solid var(--ink); }
    .chain-lookup-copy h3 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1; }
    .chain-lookup-copy p { margin: 0; color: var(--muted); }
    .chain-lookup-form { padding: clamp(26px, 4vw, 42px); }
    .lookup-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
    .lookup-field { min-width: 0; }
    .lookup-field .number-field { min-height: 56px; font-size: 1.25rem; }
    .lookup-controls .button { min-height: 56px; }
    .lookup-status { min-height: 1.5em; margin: 14px 0 0; color: var(--red-deep); font-weight: 700; }
    .lookup-status.good { color: var(--teal-deep); }
    .lookup-chain { margin-top: 16px; }
    .spell-rules { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--ink); }
    .spell-rule { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; padding: 24px; border-right: 2px solid var(--ink); }
    .spell-rule:last-child { border-right: 0; }
    .spell-rule b { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); color: #191a17; font: 700 1rem/1 "IBM Plex Mono", monospace; }
    .spell-rule p { margin: 4px 0 0; font-size: .94rem; }
    .scoreboard { padding: clamp(28px, 5vw, 52px); border-top: 3px solid var(--ink); background: color-mix(in srgb, var(--yellow) 12%, var(--paper-2)); }
    .scoreboard-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
    .scoreboard-head h3 { margin: 6px 0 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
    .scoreboard-intro { margin: 9px 0 0; max-width: 560px; color: var(--muted); }
    .scoreboard-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: flex-end; }
    .scoreboard-controls .host-field { min-width: 130px; }
    .player-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .player-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: center; min-width: 0; padding: 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper-2); box-shadow: 3px 4px 0 var(--ink); }
    .player-card.winner { background: var(--yellow); color: #191a17; }
    .player-name { min-width: 0; width: 100%; padding: 8px 10px; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: inherit; font-weight: 700; }
    .score { min-width: 58px; font: 800 2.5rem/1 "IBM Plex Mono", monospace; text-align: right; }
    .tally-track { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
    .tally { height: 10px; border: 1.5px solid var(--ink); background: transparent; transform: skewX(-8deg); }
    .tally.on { background: var(--red); }
    .score-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .score-button { min-height: 42px; border: 2px solid var(--ink); border-radius: 7px; background: var(--paper); color: inherit; font-weight: 800; cursor: pointer; }
    .score-button.plus { background: var(--teal); color: white; }
    .score-button:hover { filter: brightness(.95); }
    .scoreboard .noun-leader-row { grid-template-columns: 48px minmax(130px, 1fr) minmax(190px, .7fr) 104px; }
    .scoreboard .score-actions { grid-column: auto; }
    .winner-note { grid-column: 1 / -1; margin: 0; font-weight: 800; }
    .tabletop-strip { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 28px clamp(28px, 5vw, 52px); border-top: 3px solid var(--ink); background: var(--yellow); color: #191a17; }
    .tabletop-mark { display: grid; place-items: center; width: 74px; height: 82px; border: 3px solid #191a17; border-radius: 10px; background: #fff8df; box-shadow: 4px 5px 0 #191a17; font: 800 2.1rem/1 "IBM Plex Mono", monospace; transform: rotate(-3deg); }
    .tabletop-strip h3 { margin: 0 0 6px; font-size: 1.45rem; line-height: 1; }
    .tabletop-strip p { margin: 0; max-width: 720px; }

    .makers { padding: clamp(70px, 10vw, 120px) 0 0; }
    .makers-shell {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      border: 3px solid var(--ink);
      background: var(--paper-2);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .makers-intro { padding: clamp(30px, 5vw, 56px); background: var(--red); color: white; border-right: 3px solid var(--ink); }
    .makers-intro .section-number { color: rgba(255,255,255,.78); }
    .makers-intro h2 { margin-top: 22px; font-size: clamp(2.5rem, 5vw, 4.8rem); }
    .makers-intro p { margin: 22px 0 0; max-width: 480px; font-size: 1.08rem; color: rgba(255,255,255,.9); }
    .maker-notes { display: grid; grid-template-rows: 1fr 1fr; }
    .maker-note { display: grid; grid-template-columns: 86px 1fr; gap: 24px; align-items: center; padding: clamp(26px, 4vw, 42px); }
    .maker-note + .maker-note { border-top: 3px solid var(--ink); }
    .maker-token {
      display: grid;
      place-items: center;
      width: 76px;
      height: 84px;
      border: 3px solid var(--ink);
      border-radius: 11px;
      box-shadow: 4px 5px 0 var(--ink);
      background: var(--yellow);
      color: #191a17;
      font: 800 2rem/1 "IBM Plex Mono", monospace;
      transform: rotate(-4deg);
    }
    .maker-note:nth-child(2) .maker-token { background: var(--teal); color: white; transform: rotate(3deg); }
    .maker-note.has-photo { grid-template-columns: 136px 1fr; }
    .maker-photo {
      display: block;
      width: 128px;
      height: 158px;
      object-fit: cover;
      object-position: center 30%;
      border: 3px solid var(--ink);
      border-radius: 11px;
      box-shadow: 4px 5px 0 var(--ink);
      transform: rotate(2deg);
      background: var(--paper);
    }
    .maker-kicker { display: block; margin-bottom: 8px; font: 600 .72rem/1 "IBM Plex Mono", monospace; letter-spacing: .07em; color: var(--muted); }
    .maker-note h3 { margin: 0 0 10px; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1; }
    .maker-note p { margin: 0; color: var(--muted); }

    .order-section { padding: clamp(70px, 10vw, 120px) 0; }
    .order-shell { display: grid; grid-template-columns: .88fr 1.12fr; border: 3px solid var(--ink); background: var(--paper-2); box-shadow: var(--shadow); overflow: hidden; }
    .order-copy { padding: clamp(28px, 5vw, 54px); background: var(--yellow); color: #191a17; border-right: 3px solid #191a17; }
    .order-copy h2 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
    .order-copy p { margin: 18px 0 0; max-width: 470px; }
    .edition-list { display: grid; gap: 14px; margin-top: 28px; }
    .edition-choice { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 2px solid #191a17; background: #fff8df; color: #191a17; box-shadow: 3px 4px 0 #191a17; }
    .edition-choice h3 { margin: 0 0 4px; font-size: 1.15rem; }
    .edition-choice p { margin: 0; font-size: .9rem; }
    .edition-choice .fine-print { margin-top: 6px; font-size: .78rem; opacity: .72; }
    .edition-choice .button { min-height: 42px; padding: 9px 12px; box-shadow: none; }
    .order-form { padding: clamp(28px, 5vw, 54px); }
    .order-form h3 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1; }
    .order-form > p { margin: 0 0 24px; color: var(--muted); }
    .order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .order-field { display: grid; gap: 7px; }
    .order-field.full { grid-column: 1 / -1; }
    .order-field label { font: 600 .72rem/1 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
    .order-field input, .order-field select, .order-field textarea { width: 100%; }
    .order-field textarea { min-height: 90px; resize: vertical; }
    .order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
    .order-note { margin: 16px 0 0; color: var(--muted); font-size: .92rem; }
    .order-feedback { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; color: var(--teal-deep); }
    .sticky-order {
      position: fixed;
      right: max(18px, env(safe-area-inset-right));
      bottom: max(18px, env(safe-area-inset-bottom));
      z-index: 20;
      width: auto;
      background: var(--red);
      color: white;
      box-shadow: 5px 6px 0 var(--ink);
    }

    .reviews-section { padding: clamp(70px, 10vw, 120px) 0 0; }
    .reviews-shell { display: grid; grid-template-columns: .88fr 1.12fr; border: 3px solid var(--ink); background: var(--paper-2); box-shadow: var(--shadow); overflow: hidden; }
    .reviews-list { padding: clamp(28px, 5vw, 54px); background: var(--teal); color: white; border-right: 3px solid var(--ink); }
    .reviews-list .result-label { color: rgba(255,255,255,.8); }
    .review-empty { margin-top: 24px; padding: clamp(24px, 4vw, 38px); border: 3px solid #191a17; background: #fff8df; color: #191a17; box-shadow: 4px 5px 0 #191a17; transform: rotate(-1deg); }
    .review-stars { display: block; margin-bottom: 14px; font: 800 1.35rem/1 "IBM Plex Mono", monospace; letter-spacing: .08em; color: var(--yellow-deep); }
    .review-empty h3 { margin: 0 0 10px; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1; }
    .review-empty p { margin: 0; }
    .review-form { padding: clamp(28px, 5vw, 54px); }
    .review-form h3 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1; }
    .review-form > p { margin: 0 0 24px; color: var(--muted); }
    .review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .review-grid .order-field.full { grid-column: 1 / -1; }
    .review-grid textarea { min-height: 138px; }

    .shelf { padding-bottom: clamp(90px, 12vw, 150px); }
    .shelf-card {
      display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
      border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
      padding: 34px 0;
    }
    .shelf-card h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
    .shelf-card p { max-width: 590px; margin: 13px 0 0; color: var(--muted); }
    .beaker {
      width: 128px; height: 128px; position: relative;
      border: 3px solid var(--ink); border-radius: 50%;
      background: var(--yellow); box-shadow: 5px 6px 0 var(--ink);
    }
    .beaker::before { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 4.2rem/1 "IBM Plex Mono", monospace; color: #191a17; transform: rotate(7deg); }
    footer { padding: 0 0 34px; font: 500 .78rem/1.5 "IBM Plex Mono", monospace; color: var(--muted); }

    @media (max-width: 820px) {
      .hero { grid-template-columns: 1fr; min-height: auto; }
      .lab-board { min-height: 360px; order: -1; }
      .tile { width: 62px; height: 69px; }
      .section-head { grid-template-columns: 1fr; gap: 10px; }
      .game-top, .spell-layout, .chain-lookup, .makers-shell, .order-shell, .reviews-shell { grid-template-columns: 1fr; }
      .chain-lookup-copy { border-right: 0; border-bottom: 3px solid var(--ink); }
      .game-visual { border-left: 0; border-top: 3px solid var(--ink); }
      .makers-intro { border-right: 0; border-bottom: 3px solid var(--ink); }
      .order-copy { border-right: 0; border-bottom: 3px solid #191a17; }
      .reviews-list { border-right: 0; border-bottom: 3px solid var(--ink); }
      .spell-input { border-right: 0; border-bottom: 3px solid var(--ink); }
      .rules-grid { grid-template-columns: 1fr 1fr; }
      .rule:nth-child(2) { border-right: 0; }
      .rule:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
      .spell-rules { grid-template-columns: 1fr 1fr; }
      .spell-rule:nth-child(2) { border-right: 0; }
      .spell-rule:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
    }
    @media (max-width: 560px) {
      .wrap { width: min(100% - 22px, 1120px); }
      .hero { padding-top: 34px; }
      .lab-board { min-height: 310px; box-shadow: 4px 5px 0 var(--ink); }
      .tile { width: 52px; height: 59px; font-size: 1.55rem; border-width: 2px; box-shadow: 3px 4px 0 #191a17; }
      .t3 { left: 62%; }
      .t4 { left: 75%; }
      .t6 { left: 48%; }
      .button { width: 100%; }
      .sticky-order { width: auto; }
      .game-shell { box-shadow: 4px 5px 0 var(--ink); }
      .game-visual { min-height: 270px; }
      .noun-gallery { height: auto; gap: 9px; }
      .noun-gallery figure { border-width: 2px; box-shadow: 3px 4px 0 #191a17; }
      .noun-console { grid-template-columns: 92px 1fr; gap: 18px; }
      .console-actions { display: grid; }
      .host-head { align-items: stretch; flex-direction: column; }
      .host-setup, .host-actions, .order-actions { display: grid; }
      .host-field { min-width: 0; }
      .host-players { grid-template-columns: 1fr; }
      .answer-row { grid-template-columns: 54px minmax(0, 1fr); }
      .noun-scoreboard-head { align-items: stretch; flex-direction: column; }
      .noun-scoreboard-controls { display: grid; justify-content: stretch; }
      .noun-scoreboard-controls .host-field { min-width: 0; }
      .noun-leader-row { grid-template-columns: 40px minmax(0, 1fr) 88px; gap: 10px; padding: 12px; }
      .noun-rank { width: 34px; height: 34px; }
      .noun-round-field { grid-column: 2 / -1; grid-row: 2; }
      .noun-total b { font-size: 1.35rem; }
      .noun-scoreboard-actions { display: grid; }
      .order-grid, .review-grid { grid-template-columns: 1fr; }
      .order-field.full, .review-grid .order-field.full { grid-column: auto; }
      .edition-choice { grid-template-columns: 1fr; }
      .edition-choice .button { width: 100%; }
      .rules-grid { grid-template-columns: 1fr; }
      .rule { border-right: 0; border-bottom: 2px solid var(--ink); }
      .rule:last-child { border-bottom: 0; }
      .spell-actions, .lookup-controls { display: grid; }
      .challenge-current { align-items: flex-start; }
      .chain-form { grid-template-columns: 1fr; }
      .chain-form .button { grid-column: auto; }
      .written-step { grid-template-columns: 58px 1fr auto; gap: 8px; }
      .challenge-actions { display: grid; }
      .chain { display: grid; gap: 32px; }
      .chain-step { width: 100%; }
      .chain-step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -26px; transform: translateX(-50%); }
      .spell-rules { grid-template-columns: 1fr; }
      .spell-rule { border-right: 0; border-bottom: 2px solid var(--ink); }
      .spell-rule:last-child { border-bottom: 0; }
      .scoreboard-head { align-items: stretch; flex-direction: column; }
      .scoreboard-controls { display: grid; justify-content: stretch; }
      .scoreboard-controls .host-field { min-width: 0; }
      .player-grid { grid-template-columns: 1fr; }
      .scoreboard .noun-leader-row { grid-template-columns: 40px minmax(0, 1fr) 88px; }
      .scoreboard .score-actions { grid-column: 2 / -1; grid-row: 2; }
      .scoreboard .noun-total { grid-column: 3; grid-row: 1; }
      .tabletop-strip { grid-template-columns: 1fr; }
      .makers-shell { box-shadow: 4px 5px 0 var(--ink); }
      .maker-note { grid-template-columns: 64px 1fr; gap: 18px; }
      .maker-note.has-photo { grid-template-columns: 92px 1fr; }
      .maker-token { width: 58px; height: 64px; font-size: 1.5rem; box-shadow: 3px 4px 0 var(--ink); }
      .maker-photo { width: 84px; height: 104px; border-width: 2px; box-shadow: 3px 4px 0 var(--ink); }
      .shelf-card { grid-template-columns: 1fr; }
      .beaker { width: 88px; height: 88px; }
      .beaker::before { font-size: 3rem; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
    }
  
/* multipage nav */
.site-nav{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem 1.2rem;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:2px solid #1a3a6b;}
.site-nav .brand{display:flex;align-items:center;gap:.5rem;font-weight:800;color:#1a3a6b;text-decoration:none;font-size:1.1rem;}
.site-nav .brand img{border-radius:8px;}
.site-nav .nav-links{display:flex;gap:.2rem;flex-wrap:wrap;}
.site-nav .nav-links a{padding:.45rem .8rem;border-radius:999px;text-decoration:none;color:#1a3a6b;font-weight:600;}
.site-nav .nav-links a:hover{background:#e8f0e8;}
.site-nav .nav-links a[aria-current="page"]{background:#1a3a6b;color:#fff;}
.hero-logo{border-radius:18px;margin-bottom:.6rem;}
/* spell4 page art: fit the sticker like the noun gallery art */
#spell4 .box-art{width:min(100%,440px);margin:0 auto 1.5rem;}
#spell4 .box-art img{width:100%;height:auto;aspect-ratio:1/1;}
@media (max-width:640px){.site-nav{flex-direction:column;align-items:flex-start;}}
