:root{color-scheme:light;--ink:#243c50;--cream:#fffdf6;--edge:#a5c5ca;--accent:#245a79;--tint:#e0f0ef}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:linear-gradient(145deg,#d9edf1,#fff1c7);font:16px/1.43 Arial,sans-serif}
main{max-width:790px;margin:auto;padding:clamp(8px,2vw,18px)}[hidden]{display:none!important}h1,h2,p{margin:0}
h1,h2,#round{font-family:Georgia,serif}h1{font-size:clamp(1.45rem,4vw,2.1rem);color:var(--accent);line-height:1.12}h2{font-size:clamp(1.1rem,3vw,1.4rem);line-height:1.27;max-width:38em;margin:10px 0 6px}.hero,.table{background:var(--cream);border:1px solid var(--edge);border-radius:17px}
.hero{display:flex;align-items:center;gap:13px;padding:8px 12px 8px 8px}.hero img{width:clamp(60px,13vw,90px);height:auto;border-radius:12px}.hero p{margin-top:4px;font-size:.94rem}
button,footer a{font:600 .94rem/1.2 Arial,sans-serif;color:var(--ink)}button{cursor:pointer;border:1px solid var(--edge);background:#fffcf5;border-radius:10px;padding:8px 14px;min-height:44px}button:enabled:hover{background:var(--tint)}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}button:disabled{opacity:.65;cursor:default}button.primary{background:var(--accent);color:white;border-color:var(--accent)}button.primary:enabled:hover{filter:brightness(.88);background:var(--accent)}
.tools,.answers,.support,.ending,footer{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.tools{justify-content:flex-end;margin:5px 0}.table{padding:clamp(12px,3vw,23px);box-shadow:0 5px 18px #62492512}.progress{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--accent)}#beads{display:inline-flex;gap:4px}#beads i{width:11px;height:11px;border:1px solid var(--accent);border-radius:50%}#beads i.ready{background:var(--accent)}#beads i.here{outline:1px solid var(--accent);outline-offset:1px}
#hear{font-size:.88rem;background:var(--tint);margin-bottom:8px}.answers,.support,.ending{justify-content:center}#status{margin:10px 0 4px;color:var(--accent);font-weight:700;text-align:center}.board-note{text-align:center;margin:6px 0;font-size:.92rem}footer{justify-content:space-between;margin:8px 0}footer a{color:var(--accent)}
.controls{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:10px auto}
.caption{text-align:center;color:#28475b;font-weight:600;font-size:.9rem;margin:7px auto}
body[data-game=puppets]{--accent:#235e64;--tint:#d9eeea}
.stage{background:radial-gradient(ellipse at 50% 35%,#307477,#214954 84%);border:5px solid #c7a668;border-bottom:10px solid #a97c46;border-radius:20px 20px 10px 10px;max-width:590px;margin:7px auto 10px;padding:8px}
.cast-strip{display:flex;gap:10px;align-items:center;justify-content:center;color:white}
.cast-strip img{width:58px;height:58px;border-radius:50%;border:2px solid #f8d989}
.cast-strip strong,.cast-strip span{display:block}.cast-strip span{font-size:.8rem;color:#fae4ae}.cast-strip strong{font:700 1.2rem Georgia,serif}
.glove{position:relative;width:min(100%,329px);aspect-ratio:1.66;margin:8px auto 0}
.palm,.cuff,.finger{position:absolute}.palm{z-index:1;left:22%;top:52%;width:66%;height:43%;border-radius:22% 20% 40% 45%;background:linear-gradient(135deg,#ffe9a2,#eebd62);box-shadow:inset -5px -4px 12px #b6804255}
.cuff{left:34%;top:85%;width:40%;height:15%;z-index:2;border-radius:6px;background:repeating-linear-gradient(90deg,#467894 0 5px,#5e93ad 5px 9px);border-bottom:3px solid #eac674}
.finger{z-index:3;width:16%;height:53%;min-height:0;padding:0;border:0;background:linear-gradient(90deg,#edba65,#ffeba2 55%,#f1c66f);border-radius:38px 38px 14px 14px;color:#39372b;box-shadow:inset 0 2px 3px #ffedbd}
.finger:enabled:hover{background:#fff5c1}.finger:focus-visible{outline:3px solid white;outline-offset:2px}.finger:disabled{opacity:1}.finger[data-finger=thumb]{left:20%;top:43%;height:43%;transform:rotate(-47deg);transform-origin:center bottom}.finger[data-finger=index]{left:22%;top:17%}.finger[data-finger=middle]{left:39%;top:4%;height:66%}.finger[data-finger=ring]{left:56%;top:13%;height:55%}.finger[data-finger=pinky]{left:73%;top:32%;height:40%}
.finger .label{position:absolute;inset:12px 0 auto;font-size:clamp(.58rem,2.4vw,.81rem);line-height:1.05}.finger img{width:100%;max-width:54px;height:auto;border:2px solid #fff4d5;border-radius:45%;position:absolute;left:0;top:0}
body[data-game=trails]{--accent:#564c7e;--tint:#eee9f8}.palette{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:6px 0}
.palette button{border-radius:30px;min-height:36px;padding:5px 10px;font-size:.82rem;display:flex;align-items:center;gap:5px}.palette button:before{content:"";width:13px;height:13px;border-radius:50%;background:var(--swatch)}.palette button[aria-pressed=true]{outline:2px solid var(--swatch);outline-offset:-2px;background:#fffdf9}
.paper{position:relative;width:min(100%,490px);aspect-ratio:1.46;margin:10px auto;border:2px solid #bea985;border-radius:13px;background-color:#fffaf0;background-image:radial-gradient(#bea78460 .8px,transparent .8px);background-size:12px 12px;box-shadow:0 3px 0 #bba78150;touch-action:none;user-select:none}
.paper canvas,#dots{position:absolute;inset:0;width:100%;height:100%}.dot{position:absolute;z-index:1;transform:translate(-50%,-50%);width:clamp(31px,7vw,39px);height:clamp(31px,7vw,39px);min-height:0;border-radius:50%;padding:0;background:#fffef8;font-size:.92rem;color:#254253;border:2px solid #8a9b9e;touch-action:none}
.dot.next{border:3px double #293d50;box-shadow:0 0 0 3px #f7c75d}.dot.joined{color:#fff;background:var(--ink-dot);border-color:#ffffffd9}.paper.finished .dot{opacity:0;pointer-events:none}.dot:focus-visible{outline-offset:3px}
body[data-game=volley]{--accent:#245f85;--tint:#e3f2f8}
.court{position:relative;isolation:isolate;overflow:hidden;width:min(100%,580px);height:clamp(205px,35vw,255px);margin:8px auto;border:4px solid #e9c783;border-radius:14px;background:linear-gradient(180deg,#56adc4 0%,#4896b0 49%,#efc37c 50%,#f9da97 100%);box-shadow:inset 0 0 14px #185e6a22}
.court-line{position:absolute;inset:9px 7%;border:2px solid #fff5dd;transform:perspective(200px) rotateX(14deg)}
.row,.serves{position:absolute;left:3%;right:3%;display:flex;align-items:center;justify-content:center;gap:clamp(3px,1.6vw,13px);z-index:2}.row{top:8%}.serves{bottom:8%;gap:clamp(8px,4vw,24px)}
.row span{display:grid;place-items:center;background:#fffdf2;box-shadow:0 3px 0 #236b80;border:2px solid #346681;border-radius:7px;min-width:0;width:14%;max-width:53px;height:39px;font:700 1.1rem Georgia,serif;color:#17394c}.row .gap{border:2px dashed #514521;background:#fff0a8}.row .filled{background:#d8f3d8}
.net{position:absolute;left:0;right:0;top:46%;height:16%;border-top:4px solid #fff6e4;border-bottom:2px solid #665744;background:repeating-linear-gradient(90deg,transparent 0 10px,#514b47a6 10px 11px),repeating-linear-gradient(0deg,transparent 0 9px,#514b47a6 9px 10px)}
.serves button,.flying-ball{border-radius:50%;background:conic-gradient(from -30deg,#ffe29b 0 19%,#297ca0 19% 26%,#fff9df 26% 48%,#e4b44e 48% 56%,#fff4cd 56% 76%,#3686a0 76% 85%,#fff4d6 85%);border:2px solid #b28d4c;box-shadow:inset -4px -4px 5px #866e4740,0 3px 2px #71614044}
.serves button{width:clamp(48px,12vw,64px);height:clamp(48px,12vw,64px);padding:0;display:grid;place-items:center}
.serves button span,.flying-ball span{background:#fffcdf;border-radius:50%;width:56%;aspect-ratio:1;display:grid;place-items:center;color:#214d61;font:700 1.06rem Georgia,serif}
.flying-ball{width:40px;height:40px;display:grid;place-items:center;position:absolute;z-index:4;pointer-events:none;transform:translate(-50%,-50%)}
@media(max-width:480px){main{padding:6px}.table{padding:10px}.hero{gap:7px}.hero p{font-size:.84rem}.stage{padding:5px}.cast-strip img{width:44px;height:44px}.glove{aspect-ratio:1.45}.controls button{font-size:.85rem}}

.finger[data-finger=thumb] .label{transform:rotate(47deg)}
