:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#202124;color:#161816;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;touch-action:none}button,input{font:inherit}button{min-height:38px;border:0;border-radius:7px;background:#f0f1eb;color:#171917;cursor:pointer;font-weight:760;box-shadow:inset 0 -1px #0000001f,0 1px 4px #00000029}button:disabled{cursor:default;opacity:.42}input{min-width:0;height:40px;border:1px solid rgba(22,24,22,.16);border-radius:7px;padding:0 12px;background:#f7f8f2;color:#151715;font-weight:720;outline:none}input:focus{border-color:#06a23c;box-shadow:0 0 0 3px #05a93d29}.shell{display:grid;grid-template-rows:auto 1fr;width:100%;height:100%;background:#222425}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:12px 18px;background:#2e2f32;color:#f6f7f2;box-shadow:0 2px 12px #00000047;z-index:2}.brand{display:flex;align-items:center;gap:12px}.mascot{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:radial-gradient(circle at 50% 34%,#ffffff 0 26%,transparent 27%),radial-gradient(circle at 34% 50%,#ffffff 0 18%,transparent 19%),radial-gradient(circle at 66% 50%,#ffffff 0 18%,transparent 19%),linear-gradient(#88d34d,#4caa37);color:#1d2420;font-size:0;border:2px solid rgba(255,255,255,.45)}.mascot:before,.mascot:after{content:"";position:absolute}.brand h1{margin:0;font-size:23px;line-height:1;letter-spacing:0}.brand p{margin:4px 0 0;color:#c6c9c1;font-size:13px}.connection{min-width:112px;padding:8px 11px;border-radius:999px;background:#ffffff17;text-align:center;font-size:13px;font-weight:760;color:#d9ded5}.layout{display:grid;grid-template-columns:minmax(210px,270px) minmax(0,1fr) minmax(210px,282px);gap:12px;min-height:0;padding:12px}.panel{min-height:0;border-radius:8px;padding:14px;background:#d9ddd3;border:1px solid rgba(255,255,255,.28);box-shadow:0 7px 20px #00000038}.lobby-panel{display:flex;flex-direction:column;gap:12px}.panel-section{display:grid;gap:6px}.panel-section label,.label{color:#5c635b;font-size:11px;font-weight:850;text-transform:uppercase}.stepper{display:grid;grid-template-columns:40px 1fr 40px;gap:7px}.stepper input{text-align:center}.primary{height:44px;background:#05a93d;color:#fff}#singlePlayer{height:42px;background:#2e82ca;color:#fff}.accent{min-width:84px;background:#f3d437}body[data-phase=playing][data-control=look] .accent{background:#2e82ca;color:#fff}.small{margin:0;color:#566056;font-size:13px;line-height:1.35}.game-wrap{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:8px;background:#aeb6aa;box-shadow:0 7px 20px #00000042}#gameCanvas{display:block;width:100%;height:100%;min-height:420px;touch-action:none}.hud{position:absolute;left:12px;right:12px;display:flex;align-items:center;gap:8px;pointer-events:none}.hud>*{pointer-events:auto}.top-hud{top:12px}.bottom-hud{bottom:12px;justify-content:center}.top-hud>div{display:grid;gap:2px;min-width:70px;padding:8px 10px;border-radius:8px;background:#f7f8f2e6;box-shadow:0 2px 10px #0000002e}.top-hud strong{font-size:18px;line-height:1}.top-hud button,.bottom-hud button{min-width:46px;padding:0 12px}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:22px;background:#191b1a6b;transition:opacity .16s ease;pointer-events:none}.overlay.hidden{opacity:0}.overlay-card{max-width:360px;padding:18px;border-radius:8px;background:#f7f8f2f0;text-align:center;box-shadow:0 14px 36px #0000004d}.overlay-title{font-size:22px;font-weight:850}.overlay-copy{margin-top:7px;color:#535b52;line-height:1.38}.score-panel{display:flex;flex-direction:column;gap:12px;overflow:hidden}.score-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.score-head button{min-width:84px}.players{display:grid;gap:8px}.player-row{display:grid;grid-template-columns:16px 1fr auto;align-items:center;gap:10px;padding:10px;border-radius:8px;background:#fff6;border:1px solid rgba(22,24,22,.08)}.player-row.me{border-color:#05a93d6b}.player-dot{width:13px;height:13px;border-radius:50%;border:1px solid rgba(0,0,0,.28)}.player-row strong,.player-row span{display:block}.player-row strong{font-size:14px}.player-row span{margin-top:2px;color:#5c635b;font-size:12px}.player-row b{font-size:20px}.scorecard{min-height:0;overflow:auto;border-radius:8px;background:#f7f8f29e;border:1px solid rgba(22,24,22,.08)}.score-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;align-items:center;min-height:34px;padding:0 10px;gap:8px;border-bottom:1px solid rgba(22,24,22,.08);font-weight:750}.score-grid.single{grid-template-columns:1fr 1fr 1fr}.score-grid span{min-width:0;text-align:center}.score-header{position:sticky;top:0;background:#2e82ca;color:#fff;z-index:1}.score-grid.active{background:#05a93d;color:#fff}.score-total{padding:11px 12px;color:#4f574e;font-size:13px;font-weight:800;text-align:center}@media(max-width:980px){.layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto}.lobby-panel,.score-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.score-panel{max-height:220px}.players,.scorecard{grid-column:1 / -1}}@media(max-width:620px){html,body,#app{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;overflow:hidden}.shell{height:100dvh;max-height:100dvh}.topbar{min-height:64px;padding:9px 10px}.brand h1{font-size:20px}.brand p{display:none}.mascot{width:42px;height:42px}.layout{gap:8px;padding:8px;min-height:0;overflow:hidden}.panel{padding:10px}.lobby-panel{grid-template-columns:1fr}body[data-phase=idle] .layout,body[data-phase=matchmaking] .layout{grid-template-rows:auto 1fr}body[data-phase=idle] .score-panel,body[data-phase=matchmaking] .score-panel{display:none}body[data-phase=idle] .game-wrap,body[data-phase=matchmaking] .game-wrap{min-height:0}.game-wrap{min-height:48vh}#gameCanvas{min-height:360px}.top-hud{left:8px;right:8px;gap:6px}.top-hud>div{min-width:56px;padding:7px 8px}.top-hud strong{font-size:15px}.bottom-hud{bottom:8px}body[data-phase=playing] .shell{grid-template-rows:1fr}body[data-phase=playing] .topbar,body[data-phase=playing] .lobby-panel,body[data-phase=playing] .score-panel{display:none}body[data-phase=playing] .layout{display:block;width:100vw;height:100dvh;padding:0}body[data-phase=playing] .game-wrap{width:100vw;height:100dvh;min-height:100dvh;border-radius:0}body[data-phase=playing] #gameCanvas{width:100vw;height:100dvh;min-height:100dvh}body[data-phase=playing] .top-hud{top:max(8px,env(safe-area-inset-top))}body[data-phase=playing] .bottom-hud{bottom:max(10px,env(safe-area-inset-bottom))}body[data-phase=playing] .overlay-card{max-width:calc(100vw - 36px)}}
