.stage { display: grid; place-items: center; gap: 1.2rem; min-height: 46vh; text-align: center; }
.prompt { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.choice { background: var(--card); border: 3px solid var(--rule); padding: 1rem 1.4rem; font-size: 1.6rem; white-space: pre-line; }
.choice:hover { border-color: var(--kid); }
.bubble { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--kid); background: var(--card); font-size: 2.1rem; }
.bubble[data-picked="1"] { background: var(--kid); color: #fff; }
.answer { font-size: 2rem; width: 6em; text-align: center; padding: .4rem; border-radius: var(--r); border: 3px solid var(--rule); background: var(--card); color: var(--fg); }
.progress { display: flex; gap: 6px; justify-content: center; }
.pip { width: 14px; height: 14px; border-radius: 50%; background: var(--rule); }
.pip[data-hit="1"] { background: var(--good); }
.pip[data-hit="0"] { background: var(--warn); }
.flash { font-size: 3rem; min-height: 1.2em; text-align: center; }

/* The instruction: big on the intro screen, small but present during play. */
.howto { font-size: .98rem; color: var(--muted); text-align: center; margin: .3rem auto 0;
         max-width: 34rem; min-height: 1.4em; line-height: 1.4; }
.howto-big { font-size: 1.15rem; max-width: 30rem; line-height: 1.5; margin: 0; }
.howto-eg { font-size: .95rem; max-width: 30rem; line-height: 1.5; margin: 0; }

/* The worked example on the intro screen. */
.demo { background: var(--card); border: 2px dashed var(--kid); border-radius: 16px;
        padding: 1rem 1.2rem; max-width: 30rem; text-align: left; }
.demo-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
              color: var(--kid); font-weight: 700; margin-bottom: .5rem; }
.demo-q { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; line-height: 1.4; }
.demo-a { font-size: 1rem; color: var(--muted); line-height: 1.45; }

/* Coin Jar: coins you can actually look at, with the sum beside them. */
.coin { display: grid; place-items: center; border-radius: 50%; font-weight: 800;
        font-variant-numeric: tabular-nums; color: #3a2d1a; flex: 0 0 auto;
        box-shadow: inset 0 -2px 3px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.25); }
.coin-silver { background: radial-gradient(circle at 34% 30%, #f2f2f0, #b9b9b4 62%, #989892); }
.coin-copper { background: radial-gradient(circle at 34% 30%, #e7a76a, #bd7a3c 60%, #9c5f2a); color: #3d2409; }
.coin-btn { background: none; border: 0; padding: 4px; display: grid; justify-items: center;
            gap: 4px; cursor: pointer; }
.coin-btn:hover .coin { transform: translateY(-2px); }
.coin-btn .coin { transition: transform .12s ease; }
.coin-name { font-size: .8rem; color: var(--muted); }
.jar-row { display: flex; gap: 1.1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.jar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center;
       min-height: 78px; min-width: 240px; padding: .5rem .8rem; border-radius: 16px;
       background: var(--card); border: 3px dashed var(--rule); }
.jar-sum { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.jar-sum[data-done="1"] { color: var(--good); }
.coin-picker { display: flex; gap: 14px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.coin-picker .coin-btn { min-height: var(--tap); }

/* Drawn clock faces and a pizza you cut yourself. */
.face-btn { background: none; border: 3px solid transparent; border-radius: 50%; padding: 4px; cursor: pointer; }
.face-btn:hover { border-color: var(--kid); }
.pizza-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.pizza-btn:hover { transform: scale(1.02); }
.pizza-btn { transition: transform .12s ease; }
.pizza-count { font-size: 1.15rem; font-weight: 700; }

/* Sky Patterns: the run, with the gap shown where it is. */
.pattern { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.pattern-cell { background: var(--card); border: 2px solid var(--rule); border-radius: 12px;
                padding: .5rem .8rem; font-size: 1.05rem; }
.pattern-gap { border-style: dashed; border-color: var(--kid); color: var(--kid);
               font-weight: 800; min-width: 2.2em; text-align: center; }
.pattern-arrow { color: var(--muted); font-size: 1.2rem; }

/* Progress on the menu, and a game card that shows its own. */
.summary { background: var(--card); border: 2px solid var(--rule); border-radius: 18px;
           padding: 1rem 1.2rem; margin: 0 0 1.4rem; display: grid; gap: .6rem; max-width: 30rem; }
.sum-line { font-size: 1.15rem; font-weight: 700; }
.sum-stars { font-size: 1.2rem; letter-spacing: .12em; }
.bar { display: block; height: 10px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--kid); border-radius: 999px;
              transition: width .3s ease; }
.bar-sm { height: 7px; width: 100%; }

.games { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.game-card { display: grid; gap: .5rem; justify-items: start; text-align: left;
             background: var(--card); border: 3px solid var(--rule); border-radius: 18px;
             padding: 1rem 1.1rem; }
.game-card:hover { border-color: var(--kid); }
.game-card[data-state="mastered"] { border-color: var(--good); }
.game-card[data-state="shaky"] { border-color: var(--warn); }
.game-name { font-size: 1.15rem; font-weight: 700; }
.game-note { font-size: .82rem; color: var(--muted); }
.guide-row { margin-top: 1.6rem; }
.guide-row a { color: var(--kid); font-weight: 600; }

/* The right answer, shown after a miss. */
.reveal { margin-top: .4rem; padding: .7rem 1.1rem; border-radius: 14px;
          background: color-mix(in srgb, var(--good) 14%, transparent);
          border: 2px solid var(--good); color: var(--good);
          font-size: 1.25rem; font-weight: 700; max-width: 32rem; line-height: 1.4; }

/* Read the Scale: a real squared bar chart, because counting is the skill. */
.chart { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.chart-name { font-size: .95rem; color: var(--muted); text-align: right; white-space: nowrap; }
.chart-bar { display: flex; gap: 3px; }
.chart-bar i { width: 22px; height: 22px; background: var(--kid); border-radius: 4px; }
.chart-key { margin: .2rem 0 0; }
.story { max-width: 32rem; font-size: 1.15rem; line-height: 1.5; }
.big-sum { font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: .02em; }

/* Scratch notes: working space, never marked. */
.work-row { display: flex; gap: clamp(16px, 4vw, 40px); align-items: flex-start;
            justify-content: center; flex-wrap: wrap; width: 100%; }
.work-main { display: grid; gap: .7rem; justify-items: center; align-content: start; }
.scratch { display: grid; gap: .35rem; width: min(92vw, 22rem); text-align: left; }
.scratch-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.scratch-pad { width: 100%; resize: vertical; border-radius: 12px; padding: .7rem .9rem;
               border: 2px dashed var(--rule); background: var(--card); color: var(--fg);
               font: 1.05rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.scratch-pad:focus { outline: none; border-color: var(--kid); border-style: solid; }
