:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#11161c;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:linear-gradient(180deg,#fff,#e7e9df);color:#171917;cursor:pointer;font-weight:760;box-shadow:inset 0 1px #fffc,inset 0 -1px #0000001f,0 2px 8px #0000002e;transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}button:disabled{cursor:default;opacity:.42}button:not(:disabled):hover{filter:brightness(1.04);box-shadow:inset 0 1px #ffffffd6,inset 0 -1px #00000021,0 5px 14px #00000038}button:not(:disabled):active{transform:translateY(1px);filter:brightness(.98)}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}input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.shell{display:grid;grid-template-rows:auto 1fr;width:100%;height:100%;background:radial-gradient(circle at 78% 18%,rgba(83,214,255,.16),transparent 28%),radial-gradient(circle at 12% 95%,rgba(103,222,83,.12),transparent 30%),#151b20}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:12px 18px;background:linear-gradient(180deg,#23272df5,#171b20f5);color:#f6f7f2;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 8px 26px #00000057;z-index:2;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.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(145deg,#b7ff62,#36b14a 56%,#1e7f42);color:#1d2420;font-size:0;border:2px solid rgba(255,255,255,.45);box-shadow:0 0 0 5px #62ff761a,0 10px 22px #00000057}.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:linear-gradient(180deg,#151f23e6,#0c1116db),#0f1519e0;border:1px solid rgba(255,255,255,.14);color:#f6fbf2;box-shadow:0 18px 46px #0000005c,inset 0 1px #ffffff1f;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.lobby-panel{display:flex;flex-direction:column;gap:12px}.home-copy{display:grid;gap:5px;padding-bottom:2px}.home-copy strong{color:#f8fff4;font-size:24px;line-height:1.05}.home-copy span{color:#b8c7be;font-size:14px;line-height:1.35}.panel-section{display:grid;gap:6px}.panel-section label,.label{color:#9eafa6;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.stepper{display:grid;grid-template-columns:40px 1fr 40px;gap:7px}.stepper input{text-align:center}.stepper button,.stepper input{background:#ffffff14;border-color:#ffffff1f;color:#f8fff4;box-shadow:none}.stepper input{background:#ffffffeb;color:#121713}.mode-actions{display:grid;gap:10px}.mode-action{display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:12px;min-height:70px;height:auto;padding:10px 12px;border-radius:8px;text-align:left;background:linear-gradient(135deg,#ffffff29,#ffffff0f),#ffffff0d;border:1px solid rgba(255,255,255,.12);color:#f8fff4;box-shadow:0 12px 28px #00000042,inset 0 1px #ffffff1a}.mode-action.primary,#joinRoom.mode-action,#singlePlayer.mode-action{height:auto}.mode-action.primary{background:linear-gradient(135deg,#38f26bb8,#047a34e6),#089f41f0}.mode-action.join-available{background:linear-gradient(135deg,#ffea67f0,#dca414eb),#f3d437eb;color:#171607}.mode-action.join-available .action-copy,.mode-action.join-available .action-cue{color:#171607ad}.action-badge{position:relative;width:46px;height:46px;border-radius:8px;background:#02070a47;border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px #ffffff1f,0 10px 18px #00000038}.host-badge:before{content:"";position:absolute;left:17px;top:10px;width:3px;height:26px;border-radius:3px;background:#f8fff4}.host-badge:after{content:"";position:absolute;left:20px;top:10px;width:18px;height:13px;clip-path:polygon(0 0,100% 20%,0 100%);background:#ff4040}.join-badge:before,.join-badge:after{content:"";position:absolute;top:17px;width:13px;height:13px;border-radius:50%;background:#75e8ff;box-shadow:0 0 16px #75e8ffb3}.join-badge:before{left:10px}.join-badge:after{right:10px;background:#f8fff4;box-shadow:0 0 14px #ffffff8f}.solo-badge:before{content:"";position:absolute;left:10px;bottom:10px;width:15px;height:15px;border-radius:50%;background:#f8fff4;box-shadow:inset -2px -2px #00000024}.solo-badge:after{content:"";position:absolute;right:9px;top:9px;width:17px;height:10px;border-radius:50%;border:5px solid #0b1114;background:#253640}.action-body{display:grid;gap:2px;min-width:0}.action-title{display:block;font-size:17px;line-height:1.1;color:inherit}.action-copy{color:#ebf6eeb8;font-size:12px;font-weight:760}.action-cue{color:#ebf6eead;font-size:18px;font-weight:900}.primary{height:44px;background:linear-gradient(180deg,#18d85b,#06983c);color:#fff;box-shadow:inset 0 1px #ffffff38,inset 0 -1px #0000002e,0 8px 18px #0079344d}#singlePlayer,#joinRoom{height:42px;background:linear-gradient(180deg,#42a8f4,#246fb6);color:#fff;box-shadow:inset 0 1px #ffffff38,inset 0 -1px #0000002e,0 8px 18px #1a68ad42}#joinRoom.join-available{background:linear-gradient(180deg,#ffe760,#d9b90d);color:#151715;box-shadow:inset 0 1px #ffffffa3,inset 0 -1px #00000029,0 0 0 3px #f3d43740,0 10px 24px #00000042}#backHome{height:40px}.back-action{background:#ffffff14;color:#f4faf1;border:1px solid rgba(255,255,255,.12);box-shadow:none}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:4px;border-radius:9px;background:#ffffff0f;border:1px solid rgba(255,255,255,.08)}.course-segmented{grid-template-columns:repeat(3,minmax(0,1fr))}.segmented button{min-width:0;min-height:34px;background:#ffffff14;color:#c9d5ce;box-shadow:none}.segmented button.active{background:linear-gradient(180deg,#ffffff2e,#ffffff14);color:#fff;box-shadow:inset 0 1px #ffffff29,0 0 0 1px #ffffff14,0 8px 16px #0003}.toggle-row{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;background:#ffffff14;color:#c9d5ce;border:1px solid rgba(255,255,255,.1);box-shadow:none}.toggle-row.active{color:#fff;background:linear-gradient(180deg,#4de0703d,#ffffff14)}.toggle-track{width:48px;height:25px;border-radius:999px;background:#070c118c;border:1px solid rgba(255,255,255,.12);padding:3px}.toggle-track span{display:block;width:17px;height:17px;border-radius:50%;background:#8d9992;box-shadow:0 2px 8px #00000059;transition:transform .16s ease,background .16s ease}.toggle-row.active .toggle-track span{transform:translate(22px);background:#77ff74}.settings-link{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:10px;min-height:44px;padding:10px 12px;background:linear-gradient(180deg,#ffffff24,#ffffff12),#ffffff12;color:#f8fff4;border:1px solid rgba(255,255,255,.12);box-shadow:none;text-align:left}.settings-link strong{color:#78ff74;font-size:12px;white-space:nowrap}.settings-link span:first-child{min-width:0}.powerups-page{display:none}.powerup-toggle{min-height:54px}.powerup-toggle strong{margin-right:auto}.accent{min-width:84px;background:linear-gradient(180deg,#ffe760,#d9b90d)}body[data-phase=playing][data-control=look] .accent{background:linear-gradient(180deg,#42a8f4,#246fb6);color:#fff}.small{margin:0;color:#b8c7be;font-size:13px;line-height:1.35}.game-wrap{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:8px;background:#10171a;border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 46px #00000061,inset 0 1px #ffffff1a}body[data-phase=idle] .shell,body[data-phase=matchmaking] .shell{background:radial-gradient(circle at 72% 42%,rgba(70,210,255,.12),transparent 28%),linear-gradient(90deg,#050911db,#05091175 52%,#0509112e),url(/assets/menu-aaa.jpg) center / cover no-repeat}body[data-phase=idle] .topbar,body[data-phase=matchmaking] .topbar{background:#0e1219c2}body[data-phase=idle] .layout,body[data-phase=matchmaking] .layout{grid-template-columns:minmax(280px,430px);align-content:center;justify-content:center;padding:24px}body[data-phase=idle] .lobby-panel,body[data-phase=matchmaking] .lobby-panel{width:min(430px,calc(100vw - 32px));min-height:auto;background:linear-gradient(180deg,#0d1419e0,#0d1218c7);border-color:#ffffff24;color:#f8fbf1;box-shadow:0 22px 54px #00000073,inset 0 1px #ffffff1f;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}body[data-phase=idle] .home-copy strong,body[data-phase=matchmaking] .home-copy strong{color:#fbfff4}body[data-phase=idle] .home-copy span,body[data-phase=matchmaking] .home-copy span,body[data-phase=idle] .small,body[data-phase=matchmaking] .small{color:#c6d4ca}body[data-phase=idle] .panel-section label,body[data-phase=matchmaking] .panel-section label{color:#9fb1a8}body[data-phase=idle] .game-wrap,body[data-phase=idle] .score-panel,body[data-phase=matchmaking] .game-wrap,body[data-phase=matchmaking] .score-panel{display:none}body[data-phase=playing] .layout{grid-template-columns:minmax(0,1fr) minmax(210px,282px)}body[data-phase=playing] .lobby-panel,body[data-phase=idle][data-home=menu] .name-section,body[data-phase=idle][data-home=menu] .host-config,body[data-phase=idle][data-home=menu] #backHome,body[data-phase=idle][data-home=host] #joinRoom,body[data-phase=idle][data-home=host] #singlePlayer,body[data-phase=idle][data-home=solo] #createRoom,body[data-phase=idle][data-home=solo] #joinRoom{display:none}body[data-phase=idle][data-home=solo] #singlePlayer{background:#05a93d;color:#fff}body[data-phase=idle][data-home=powerups] .name-section,body[data-phase=idle][data-home=powerups] .host-config,body[data-phase=idle][data-home=powerups] .mode-actions,body[data-phase=idle][data-home=powerups] #shareHint{display:none}body[data-phase=idle][data-home=powerups] .powerups-page{display:grid;gap:10px}#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:linear-gradient(180deg,#121b20e6,#0a0f13c7);border:1px solid rgba(255,255,255,.14);color:#f8fff4;box-shadow:0 10px 28px #0000004d,inset 0 1px #ffffff1f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.top-hud strong{font-size:18px;line-height:1;color:#fff}.top-hud button,.bottom-hud button{min-width:46px;padding:0 12px}.bottom-hud{gap:10px}.tool-button,.bottom-hud button:not(.accent){background:linear-gradient(180deg,#121b20e6,#0a0f13c7);border:1px solid rgba(255,255,255,.14);color:#f7fbf2;box-shadow:0 10px 28px #0000004d,inset 0 1px #ffffff1f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.tool-button{display:grid;place-items:center;width:46px;height:40px;padding:0}.tool-button span{position:relative;display:block;width:18px;height:18px}.zoom-out span:before,.zoom-in span:before,.zoom-in span:after{content:"";position:absolute;background:#f7fbf2;border-radius:2px}.zoom-out span:before,.zoom-in span:before{left:3px;right:3px;top:8px;height:3px}.zoom-in span:after{top:3px;bottom:3px;left:8px;width:3px}.fit-tool span{border:2px solid #f7fbf2;border-radius:50%}.fit-tool span:before,.fit-tool span:after{content:"";position:absolute;background:#f7fbf2}.fit-tool span:before{left:7px;top:-5px;width:2px;height:26px}.fit-tool span:after{left:-5px;top:7px;width:26px;height:2px}.tool-ready{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:88px;height:40px;padding:0 13px}.tool-ready:before{content:"";width:15px;height:15px;border-radius:50%;border:2px solid currentColor;box-shadow:inset 0 0 0 4px #ffffff47}body[data-phase=playing][data-control=look] .tool-ready:before{border-radius:4px;transform:rotate(45deg);box-shadow:none}.overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:22px;background:#05090c75;transition:opacity .16s ease;pointer-events:none}.overlay.hidden{opacity:0}.overlay-card{max-width:360px;padding:18px;border-radius:8px;background:linear-gradient(180deg,#121b20eb,#0a0f13d6);color:#f7fbf2;border:1px solid rgba(255,255,255,.14);text-align:center;box-shadow:0 20px 52px #0006,inset 0 1px #ffffff1f;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.overlay-title{font-size:22px;font-weight:850}.overlay-copy{margin-top:7px;color:#bccbc1;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:#ffffff12;border:1px solid rgba(255,255,255,.09)}.player-row.me{border-color:#52ef7c7a;box-shadow:0 0 0 1px #52ef7c1a,inset 0 1px #ffffff14}.player-dot{width:13px;height:13px;border-radius:50%;border:1px solid rgba(255,255,255,.52);box-shadow:0 0 12px currentColor}.player-row strong,.player-row span{display:block}.player-row strong{font-size:14px;color:#f9fff5}.player-row span{margin-top:2px;color:#aebdb4;font-size:12px}.player-row b{font-size:20px}.scorecard{min-height:0;overflow:auto;border-radius:8px;background:#05090c47;border:1px solid rgba(255,255,255,.1)}.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(255,255,255,.08);font-weight:750;color:#edf6ef}.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:linear-gradient(180deg,#3fa3ef,#2168ab);color:#fff;z-index:1}.score-grid.active{background:linear-gradient(180deg,#18d85b,#06983c);color:#fff}.score-total{padding:11px 12px;color:#aebdb4;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)}}
