:root{font-family:ui-rounded,Trebuchet MS,system-ui,sans-serif;color:#403252;background:#fff4dc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 20%,#ffe0b3 0,transparent 40%),radial-gradient(ellipse at 95% 80%,#dfedd8 0,transparent 45%),#fff4dc;min-height:100dvh}#app{max-width:560px;margin:auto;padding:max(24px,env(safe-area-inset-top)) 22px max(20px,env(safe-area-inset-bottom))}#welcome{text-align:center}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#9c6b54;margin-top:14px}.mascot{font-size:76px;margin:20px 0 0;filter:drop-shadow(0 8px 0 #dfc9b6)}h1{font-size:clamp(40px,10vw,58px);line-height:1.02;letter-spacing:-2px;margin:8px 0 18px;color:#7a51ae}form{padding:20px;background:#fffaf0;border:2px solid #eee0ca;border-radius:28px;box-shadow:0 8px #ebdcc5}fieldset{border:0;padding:0;display:flex;gap:10px;margin:0 0 20px;flex-wrap:wrap}legend{text-align:left;font-weight:800;font-size:14px;margin-bottom:10px}label{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;background:#f0e9f6;border:2px solid transparent;border-radius:16px;min-height:58px;font-weight:700;font-size:14px;cursor:pointer}label:has(input:checked){border-color:#956bc1;background:#e8dcf5}input[type=radio]{accent-color:#8156af}button,input{font:inherit}button{border:0;border-radius:16px;background:#e9ddf4;color:#5e4080;min-height:50px;padding:12px 16px;font-weight:800;cursor:pointer;touch-action:manipulation}button:hover{filter:brightness(1.04)}button:active{transform:translateY(3px)}button:disabled{opacity:.55;cursor:wait}.primary{width:100%;background:#8558b3;color:#fff;box-shadow:0 5px #63408a;font-size:18px;min-height:62px}.join-row{display:flex;gap:10px;margin-top:20px}#room-code{min-width:0;width:65%;border:2px solid #eadfcf;border-radius:14px;padding:12px;text-align:center;letter-spacing:3px;text-transform:uppercase;background:#fff;color:#5e4080}#message{text-align:center;font-weight:700;color:#8c4264;min-height:24px}header,.room-info{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}.brand{text-decoration:none;color:#7850a5;font-weight:900}header button{min-height:44px;font-size:12px}.room-info{font-size:14px}#code{letter-spacing:3px}#connection{font-size:13px;text-align:center;min-height:18px;color:#78667c}#game{width:100%}#game canvas{touch-action:none;border-radius:26px}:focus-visible{outline:3px solid #e9933c;outline-offset:4px}[hidden]{display:none!important}body:has(#play:not([hidden])){overflow:hidden;overscroll-behavior:none;touch-action:manipulation}body:has(#play:not([hidden])) #app{max-width:960px;height:100dvh;display:flex;flex-direction:column;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}#play:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column}#play header,#play .room-info{margin-bottom:8px}#play #connection{font-size:12px;margin:8px 0}#play #game{flex:1;min-height:0}#play.in-game .room-info{display:none}#message:not(:empty){margin:6px 0 0;text-align:center;font-size:13px}@media(max-height:720px){#app{padding-top:max(12px,env(safe-area-inset-top))}.eyebrow{margin-top:0}.mascot{margin-top:8px}h1{margin:4px 0 12px}form{padding:16px}fieldset{margin-bottom:14px}.settings-link{margin-top:8px}}#rotate{display:none}@media(orientation:landscape)and (max-height:540px){#rotate{display:flex;position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#fff4dc;color:#7a51ae;font-size:22px;font-weight:800;text-align:center}#rotate span{font-size:56px}}#connection:empty,#message:empty{display:none}.mascot{display:flex;justify-content:center;align-items:flex-end}.mascot img{width:76px;height:76px;margin:0 -8px;object-fit:cover;object-position:0 0}.mascot img.star{width:118px;height:118px;margin:0 -4px;position:relative;z-index:1}@media(max-width:380px){.mascot img{width:62px;height:62px}.mascot img.star{width:100px;height:100px}}@media(max-height:720px){.mascot img{width:58px;height:58px}.mascot img.star{width:84px;height:84px}}.parent-actions{display:flex;gap:6px}#play .brand{font-size:14px}#play header button{padding:10px}.settings-link{background:transparent;min-height:44px;font-size:13px;margin-top:14px}dialog{width:min(92vw,460px);max-height:90dvh;overflow:auto;border:2px solid #dbc9e6;border-radius:26px;padding:0;color:#403252;background:#fffaf0}dialog::backdrop{background:#40325280}.audio-options{border:0;box-shadow:none;padding:24px;display:grid;gap:16px;text-align:left}.audio-options h2{margin:0;font-size:24px}.audio-options p{margin:0;font-size:14px;line-height:1.5;color:#7a6c7e}.audio-options label{justify-content:space-between;padding:12px 16px}.audio-options input{accent-color:#8558b3}.audio-options input[type=checkbox]{width:24px;height:24px}.audio-options input[type=range]{width:100%;min-height:44px}.audio-options .volume-label{min-height:auto;background:none;padding:0}
