
/* The lobby stays warm; each doorway opens a clean white play space. */
@keyframes invite-float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-9px) rotate(4deg)}}
body.in-room{background:#fff;min-height:100dvh}body.in-room>header,body.in-room .intro,body.in-room .bottom,body.in-room>footer{display:none}body.in-room main{max-width:1040px;padding:18px 28px 32px;min-height:100dvh}body.in-room .sectionline{position:sticky;top:0;z-index:12;background:#ffffffed;backdrop-filter:blur(10px);padding:10px 0 16px;margin:0 0 16px;justify-content:flex-start;gap:20px}body.in-room .sectionline h2{font-family:'Comic Sans MS',Nunito,system-ui,sans-serif;font-size:32px;letter-spacing:-1px;color:#58416f}body.in-room .sectionline>span{display:none}body.in-room .path-back{background:#f3ecfc;color:#7655a2;font-size:27px;width:58px;height:54px;border-radius:19px;padding:5px}body.in-room .cards{gap:25px;align-items:stretch}body.in-room .activity{border:0;padding:20px;min-height:215px;border-radius:30px;background:var(--bg);transform:rotate(var(--tilt,0deg));box-shadow:0 6px 0 #0000000d,0 14px 25px #6951840b}body.in-room .activity p,body.in-room .activity .arrow{display:none}body.in-room .activity h3{text-align:center;font-size:21px;line-height:1.15;margin:12px 0 2px;font-weight:900}body.in-room .art{height:135px;font-size:90px;letter-spacing:0;padding:0;filter:drop-shadow(0 6px 0 #ffffff66)}body.in-room .object-card .object-svg{width:130px;height:130px}body.in-room .object-card .action-svg{width:170px;height:145px}body.in-room .object-intro{min-height:52px;justify-content:flex-end;margin-bottom:0}body.in-room .object-intro>span{margin-right:auto;font-size:36px}.room-play,.room-shuffle{border:0;border-radius:20px;padding:13px 23px;font-weight:900;font-size:20px;background:#8c57cc;color:#fff;box-shadow:0 5px 0 #694497}.room-shuffle{background:#ffdf65;color:#71572b;box-shadow:0 5px 0 #dbb64d;font-size:26px;padding:8px 19px}.number-stack{font-size:72px;color:#7655c7;display:flex;align-items:center;gap:12px;text-shadow:0 5px #fff}.number-stack small{font-size:22px;color:#e77ba1}body[data-room="numbers"] .cards,body[data-room="alphabet"] .cards,body[data-room="spelling"] .cards{grid-template-columns:repeat(2,1fr);min-height:55vh;align-content:center}body[data-room="numbers"] .activity,body[data-room="alphabet"] .activity,body[data-room="spelling"] .activity{min-height:290px;display:flex;flex-direction:column;justify-content:center}body[data-room="find"] .activity:nth-child(odd){--tilt:-2deg}body[data-room="find"] .activity:nth-child(even){--tilt:2deg}body.in-room .activity:hover{transform:translateY(-5px) rotate(0deg)}
@media(max-width:650px){body.in-room main{padding:10px 18px 28px}body.in-room .sectionline{gap:15px;margin-bottom:18px}body.in-room .sectionline h2{font-size:28px}body.in-room .cards{gap:20px 16px}body.in-room .activity{min-height:180px;padding:15px 9px;border-radius:27px}body.in-room .art{height:112px;font-size:78px}body.in-room .activity h3{font-size:18px}body.in-room .object-card .object-svg{width:110px;height:110px}body.in-room .object-card .action-svg{height:112px;width:125px}body.in-room .object-intro{gap:10px}.room-play{font-size:18px;padding:12px 18px}.room-shuffle{font-size:24px;padding:8px 16px}.number-stack{font-size:48px;gap:5px}.number-stack small{font-size:16px}body[data-room="numbers"] .cards,body[data-room="alphabet"] .cards,body[data-room="spelling"] .cards{grid-template-columns:1fr;min-height:0;gap:24px}body[data-room="numbers"] .activity,body[data-room="alphabet"] .activity,body[data-room="spelling"] .activity{min-height:240px}.number-stack{font-size:76px}.number-stack small{font-size:24px}}
@media(prefers-reduced-motion:reduce){body:not(.in-room) .activity .art{animation:none}}body.reduced .activity .art{animation:none}

.parent-setup{grid-column:1/-1;background:#f4eefb;border-radius:20px;padding:18px;color:#725591;font-weight:800}.parent-actions{display:flex;gap:10px;flex-wrap:wrap}.parent-actions button{padding:12px 18px;border-radius:14px;background:#ede2fb}.parent-actions button[type=submit]{background:#8056b4;color:white}#personal-setup{max-width:520px;background:white}#personal-setup p{font-size:14px;line-height:1.5}#personal-setup label{display:block;font-weight:800;margin:16px 0}#personal-setup input:not([type=checkbox]){display:block;width:100%;padding:14px;border:2px solid #e5d9f1;border-radius:12px;font:inherit;margin-top:7px}.remember{font-size:14px}#game.spelling-game{background:#fff9dd}#game.spelling-game #gamebody{display:flex;flex-direction:column}.spell-stage{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;text-align:center;gap:10px}.spell-stage h2{margin:0;font-size:26px}.spell-picture{font-size:clamp(70px,17vh,150px);line-height:1.1}.spell-slots{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;max-width:100%}.spell-slots span{border:3px dashed #cbbadd;color:#cbbadd;border-radius:13px;min-width:36px;padding:7px;font-weight:900;font-size:32px;background:#fff}.spell-slots .current{color:#b499cd;background:#f3ebff;border-color:#9166b9}.spell-slots .filled{background:#cff1cd;color:#397952;border:3px solid #94cb92}.spell-keys{display:flex;gap:16px;justify-content:center}.spell-keys button{width:76px;height:82px;font-size:40px;font-weight:900;border-radius:22px;background:#cfc0fa;box-shadow:0 6px #a795cf}.spell-keys button:nth-child(2){background:#ffc7d9;box-shadow:0 6px #d599b2}.spell-keys button:nth-child(3){background:#aae1eb;box-shadow:0 6px #82b7c6}.spell-listen{padding:12px 26px;border-radius:20px;background:#fff;font-size:25px;font-weight:900}.spell-feedback{margin:0;font-weight:800;color:#765591}.spelling-stars{font-size:46px;animation:invite-float 1s ease-in-out infinite}@media(max-height:650px){.spell-picture{font-size:65px}.spell-keys button{height:65px;width:65px}.spell-stage{gap:5px}.spell-slots span{font-size:25px}}

/* Direct mixed play: the pictures and feedback bring colour to a white stage. */
#game[data-world="find"],#game.learning{background:#fff}#game[data-world="find"] .play-scenery{display:none}#game[data-world="find"] .play-control{background:#f5effc}#game[data-world="find"] .play-choice{background:#fff;border-color:var(--card-hue);box-shadow:0 6px 0 var(--card-hue)}#game[data-world="find"] .play-choice.is-correct{background:#e4f5d8;border-color:#83c69d}
