:root{--ink:#223c31;--muted:#506458;--cream:#f8f4e9;--paper:#fffdf7;--pine:#1e4939;--gold:#f3d28d;--line:#dbe1d4;font:1rem/1.56 system-ui,sans-serif;color:var(--ink);background:var(--cream);color-scheme:light}*{box-sizing:border-box}body{margin:0}a{color:inherit}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid #9a4d27;outline-offset:4px}.wrap{width:min(100% - 2rem,62rem);margin-inline:auto}.nav{background:var(--paper);border-bottom:1px solid #e6e0d3}.nav>.wrap{display:flex;align-items:center;justify-content:space-between;min-height:4rem;gap:.5rem}.brand{display:inline-flex;align-items:center;gap:.55rem;font:700 1.3rem Georgia,serif;text-decoration:none}.brand svg{width:2rem;stroke:#35654c;stroke-width:1.45;fill:none;flex:none}.library{font-weight:720;text-decoration:none;border:1px solid #cad7c8;padding:.4rem .7rem;background:#edf1e6;border-radius:.7rem;white-space:nowrap}.hero{margin-top:1.35rem;background:var(--pine);color:#fff9e9;border-radius:1.55rem;position:relative;isolation:isolate;overflow:hidden;padding:clamp(1.5rem,5vw,3.3rem);min-height:16rem;display:grid;align-content:center}.hero h1{font-size:clamp(2.65rem,7vw,5.25rem);letter-spacing:-.055em}.hero p{max-width:35ch;margin:.55rem 0}.hero .over{color:var(--gold)}h1,h2,h3{font-family:Georgia,serif;line-height:1.12;margin:0}h1{font-size:clamp(2.1rem,6vw,3.75rem);letter-spacing:-.04em}h2{font-size:clamp(1.5rem,4vw,2rem)}h3{font-size:1.22rem}.over{font-size:.875rem;letter-spacing:.12em;font-weight:790;text-transform:uppercase}.hero svg{position:absolute;right:1.7%;top:50%;width:36%;transform:translateY(-50%);z-index:-1}.catalog{padding-block:1.45rem .2rem}.catalog>p{margin:.28rem 0 1rem;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.card{text-decoration:none;border:1px solid var(--line);border-radius:1rem;background:var(--paper);padding:1rem;min-width:0;display:grid;grid-template-columns:3.15rem 1fr;gap:.72rem;align-items:center;box-shadow:0 3px 0 #e4e0d2}.card:hover{border-color:#658775;background:#fcfff6}.card strong{font:700 1.23rem/1.13 Georgia,serif;display:block}.card small{font-size:.875rem;color:var(--muted);display:block;line-height:1.35;margin-top:.28rem}.badge{height:3.15rem;width:3.15rem;border-radius:.8rem;background:var(--tint,#e9efe3);display:grid;place-items:center}.badge svg{width:74%;height:74%;overflow:visible}.note,.family{background:#f9edd2;color:#433821;border:1px solid #e1cca0;border-radius:1rem;padding:1rem 1.15rem;margin-top:1rem}.note p,.family p{margin:.35rem 0 0}.page{max-width:48rem;margin:1.35rem auto 0}.heading{display:flex;gap:.85rem;align-items:center;margin:.65rem 0 1rem}.heading p{margin:.24rem 0 0;color:var(--muted)}.play{background:var(--paper);border:1px solid var(--line);border-radius:1.4rem;padding:clamp(.8rem,4vw,1.6rem);text-align:center;box-shadow:0 6px 18px #27503a10}.stage{background:#edf1e6;border:1px solid #d6e0d0;border-radius:1rem;padding:.72rem;min-height:4rem;display:flex;align-items:center;justify-content:center;margin:0 0 .9rem;gap:.38rem;flex-wrap:wrap}.stage:empty{display:none}.stage svg.large{width:min(100%,14rem);height:9rem}.stage svg.clock{height:13rem}.stage .chip{padding:.36rem .6rem;background:#fffdf7;border:1px solid #bfd0bd;border-radius:.6rem;font-weight:750}.stage .blank{border-style:dashed}.stage .coin{width:clamp(48px,14%,66px);height:auto}.sub{margin:.32rem 0;color:var(--muted)}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.52rem;margin:.85rem 0 .55rem}.choice{min-width:0;min-height:62px;border:2px solid #c7d5c6;border-radius:.8rem;background:#f5f6ed;font-weight:740;font-size:1rem;padding:.5rem .3rem;overflow-wrap:anywhere}.choice:hover{border-color:#527865}.choice svg{display:block;width:3.25rem;height:3.25rem;margin:0 auto .25rem}.choice[data-cue]{border-style:dashed;border-color:#8c6f2b;background:#fff3cd}.choice[data-win]{background:#e4f0df;border-color:#326544}.choice[data-tried]{border-style:dashed}.choice[aria-disabled=true]{cursor:default}.actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.5rem}.act{border:1px solid #becfc1;border-radius:.7rem;background:#edf2e8;min-height:44px;padding:.32rem .75rem;font-weight:710}.act:hover{background:#e3eddf}.primary{background:var(--pine);color:white;border-color:var(--pine)}.primary:hover{background:#2a5a47}.textbtn{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:.2em}.feedback{min-height:1.6em;font-weight:650;margin:.55rem 0}.family{text-align:left}.finish{margin:.55rem 0}.mini{font-size:.875rem;color:var(--muted)}.links{margin:.75rem 0;display:flex;justify-content:space-between;gap:1em;align-items:center}.links a{font-weight:720;text-underline-offset:.2em}footer{padding:1.45rem 0;text-align:center;color:var(--muted);font-size:.9rem}[hidden]{display:none!important}@media(max-width:760px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:490px){.wrap{width:calc(100% - 1.25rem)}.cards{grid-template-columns:1fr}.hero{min-height:0}.hero svg{width:30%;right:4%;top:auto;bottom:5%;transform:none}.hero p:not(.over){max-width:68%}.brand{font-size:1.05rem}.library{font-size:.9rem}.choices{gap:.35rem}.choice{font-size:.9rem}.stage svg.clock{height:10rem}}
#audio-status:empty{display:none}.choice[aria-pressed=true]{background:#f5e4be;border-color:#88642a;box-shadow:inset 0 -3px #cfad61}.act{text-decoration:none}

.staging-game-nav{display:flex;align-items:center;justify-content:flex-end;gap:.4rem .65rem;flex-wrap:wrap}.staging-game-nav a{font-size:.875rem;white-space:nowrap}.staging-print{border:1px solid #cdd8cc;border-radius:1rem;background:#fffdf7;color:#243d34;padding:1rem 1.15rem;margin-block:1rem 1.4rem}.staging-print h2{font:700 1.4rem Georgia,serif;margin:0 0 .35rem}.staging-print p{margin:.35rem 0 .55rem}.staging-print a{color:#1e4939;font-weight:700}@media(max-width:27rem){.staging-game-nav{flex-direction:column;align-items:flex-end;gap:.15rem}.staging-game-nav a{padding:.35rem .5rem}}

.round-actions-top{margin:0 0 .85rem}
.round-print[hidden]{display:none}
.round-print{max-width:34rem;margin:.4rem auto 1rem;padding:.75rem .9rem;border:1px solid #cbd3c5;border-radius:.9rem;background:#f0f3e9;text-align:left}
.round-print h3,.round-print p{margin:0 0 .35rem}
.round-print-links{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.4rem}

.shape-modes .act[aria-pressed=true]{background:#173e34;color:#fff;border-color:#173e34}
.shape-single{display:flex;justify-content:center}
.shape-single .choice{width:min(100%,11rem);min-height:7.5rem}
.shape-single .choice svg{width:5rem;height:5rem}
.shape-single .choice span[hidden]{display:none}

.card-audio{display:block;font-size:.82rem;font-weight:650;color:#36594a;margin-top:.2rem}.shape-single .choice{width:min(100%,13rem)}

/* Shape Hunt: independent shape set and play mode, plus a reusable print picker. */
.shape-levels{align-items:center;margin-bottom:.35rem}
.shape-levels>span{font-size:.82rem;font-weight:750;color:#365c4e}
.shape-print-presets{display:flex;gap:.4rem;flex-wrap:wrap;margin:.6rem 0}
.shape-print-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8.5rem,100%),1fr));gap:.35rem;margin:.5rem 0 .7rem}
.shape-print-options label{display:flex;align-items:center;gap:.35rem;min-height:2.75rem;padding:.28rem .45rem;border:1px solid #c2d0bf;border-radius:.55rem;background:#fff;color:#173e34;cursor:pointer;font-weight:650}
.shape-print-options label:has(input:checked){background:#e5eddf;border-color:#6f917b}
.shape-print-options input{accent-color:#315b48}
.shape-print-options label svg{width:1.45rem;height:1.45rem;flex:0 0 1.45rem}
#round-print button:disabled{opacity:.55;cursor:not-allowed}
#round-print [data-shape-print]{margin-top:.3rem}

/* Color Patch organization model: play mode + print, optional settings, then the round. */
.game-mode-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;width:min(100%,31rem);margin:0 auto .8rem;gap:.25rem;align-items:stretch}
.game-mode-bar .act{min-width:0;line-height:1.17;padding:.4rem clamp(.22rem,1.5vw,.8rem);overflow-wrap:anywhere}
.game-mode-bar .act[aria-pressed=true],.shape-levels .act[aria-pressed=true],.game-mode-bar .game-print-toggle[aria-expanded=true]{background:#173e34;color:#fff;border-color:#173e34}
.game-print-toggle,.game-mode-bar .game-print-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.33rem;min-height:44px;white-space:nowrap;background:#fffdf7;border:1px solid #557d6b;color:#173e34;padding:.36rem clamp(.4rem,1.5vw,.8rem)}
.game-print-toggle svg{width:1rem;height:1rem;flex:none}
.shape-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,31rem);margin:.25rem auto 1rem;padding:0;gap:.25rem;align-items:stretch}.shape-levels>span{grid-column:1/-1;text-align:center}
.shape-levels .act{min-height:44px;min-width:0;line-height:1.17;padding:.4rem clamp(.22rem,1.5vw,.8rem);overflow-wrap:anywhere}

.game-round{display:flex;align-items:center;justify-content:center;gap:.35rem .65rem;flex-wrap:wrap;margin:.7rem 0 .25rem}
.game-round h2{max-width:100%}
.game-prompt-audio{font-size:.9rem;white-space:nowrap}
.game-round+.sub+.stage:not(:empty){margin-top:.65rem}
@media(max-width:360px){.game-mode-bar .act,.game-mode-bar .game-print-toggle{font-size:.84rem}.game-mode-bar .game-print-toggle svg{width:.85rem}.shape-levels .act{font-size:.84rem}}

/* My Body: large, readable pictures; keep other games at their original scale. */
[data-game="body"] .stage svg.large { width: min(100%, 15rem); height: auto; }
[data-game="body"] .choice svg { width: min(100%, 7rem); height: auto; }
[data-game="body"] .choices:has(.choice:only-child) .choice svg { width: min(100%, 13rem); }

/* Keep secondary navigation quiet, without shrinking the touch target. */
.actions > :is(#skip, #stop).textbtn {
  min-height: 44px;
  background: transparent;
  border-color: transparent;
  color: #425d4d;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.actions > :is(#skip, #stop).textbtn:hover {
  color: #18392e;
  background: #f3f4eb;
}

 .shape-print-presets .act[aria-pressed=true]{background:#173e34;color:#fff;border-color:#173e34}


/* Planet Trail and Little Shop share the same art as their worksheets. */
[data-game="planets"] .orbit-strip{display:flex;flex-wrap:wrap;gap:.38rem;justify-content:center;width:100%;padding:.15rem 0}
[data-game="planets"] .orbit-stop{display:grid;justify-items:center;align-content:center;min-width:3.5rem;min-height:3.95rem;padding:.16rem .27rem .26rem;background:#fffdf7;color:#2a4e45;border:1px solid #c9d8ce;border-radius:.62rem;font-size:.72rem;line-height:1.1;font-weight:750}
[data-game="planets"] .orbit-stop svg{display:block;width:2rem;height:2rem;margin-bottom:.18rem}
[data-game="planets"] .orbit-next{border-style:dashed;background:transparent}
[data-game="planets"] .orbit-next>span:first-child{display:grid;place-items:center;width:2rem;height:2rem;margin-bottom:.18rem;font-size:1.36rem}
[data-game="planets"] .choice svg,[data-game="planets"] .option svg{width:min(100%,6.3rem);height:auto}
[data-game="money"] .stage{gap:.65rem;background:#f0eee1}
[data-game="money"] .stage .coin{width:clamp(51px,23%,90px);height:auto}
