@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900;1000&display=swap');
:root{font-family:Nunito,system-ui,sans-serif;color:#fff9de;background:#163b35;font-synthesis:none;--cream:#fff6d5;--green:#234539;--gold:#ffe177;--red:#ef5d44}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0;color:inherit}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffde6d;outline-offset:4px}button:hover{filter:brightness(1.08)}.hidden{display:none!important}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
#game-shell{position:relative;width:100%;min-height:720px;height:100svh;overflow:hidden;isolation:isolate;background:#80cbda}#game{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;outline:none}.topbar{position:absolute;z-index:5;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:center;padding:22px 3.2%;background:linear-gradient(#173d354a,transparent);gap:12px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff;line-height:1.15;font-weight:1000;font-size:23px;text-shadow:0 2px 4px #20423f55}.brand-mark{display:grid;place-items:center;font-size:31px;color:var(--gold);background:#fff2;border:1px solid #fff5;border-radius:50%;width:46px;height:46px}.brand small{display:block;font-size:10px;letter-spacing:2.5px;font-weight:900;margin-top:5px}.tools{display:flex;align-items:center;gap:9px}.languages{display:flex;border-radius:30px;padding:4px;background:#183f39a1;border:1px solid #fff4}.languages button{background:none;padding:7px 13px;font-size:13px;font-weight:900;border-radius:20px}.languages .active{background:var(--cream);color:#234939}.icon-button{width:38px;height:38px;border-radius:50%;background:#24483ac9;border:1px solid #fff5;font-size:22px;font-weight:800}.start-menu{position:absolute;inset:92px 4% 56px;display:grid;grid-template-columns:1fr 410px;grid-template-rows:1fr auto;column-gap:30px;align-items:center}.menu-heading{align-self:center;max-width:570px;padding-bottom:35px;pointer-events:none}.eyebrow{color:#fff8d6;font-size:13px;font-weight:1000;letter-spacing:3.8px;text-shadow:0 2px 5px #316045}.menu-heading h1{font-size:clamp(80px,8.3vw,140px);font-weight:1000;line-height:.87;letter-spacing:-6px;margin:26px 0;color:#fff6c9;text-shadow:0 7px 0 #386844,0 11px 0 #244e37,0 18px 28px #184b3655;transform:rotate(-3deg)}.menu-heading h1 span{color:#ffdd65}.menu-heading p{margin:36px 0 0;max-width:330px;font-size:20px;font-weight:800;line-height:1.4;text-shadow:0 2px 6px #163d32;background:#143c302e;border-radius:12px;padding:8px 12px}.setup-card{color:#294737;background:#fff9e9ed;padding:23px;border:3px solid #fffde6;border-radius:27px;box-shadow:0 12px 0 #27564240,0 16px 55px #24584155;backdrop-filter:blur(10px)}.mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#e6ecdb;border-radius:15px;padding:4px;margin-bottom:22px}.mode-tabs button{background:none;min-height:45px;border-radius:12px;font-size:14px;font-weight:900}.mode-tabs .active{background:#315e42;color:#fff5d7;box-shadow:0 3px 7px #30473422}.field-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-weight:900;font-size:15px}.player-badge{background:#f0e2b3;padding:3px 9px;border-radius:10px;font-size:12px}.player-config input,#room-input{width:100%;font:inherit;font-size:17px;font-weight:800;color:#274534;background:#fffdf3;border:2px solid #dbe2cd;border-radius:11px;padding:10px 13px}.hero-picker{display:flex;gap:8px;margin:14px 0 18px}.hero-option{flex:1;min-width:0;border:2px solid #e2e5d2;background:#edf0df;border-radius:15px;padding:8px 4px;font-size:12px;font-weight:900;color:#536142}.hero-option.selected{border-color:#548247;background:#e6efc9;box-shadow:0 3px 0 #aec18a}.hero-thumb{width:65px;height:65px;display:block;margin:0 auto 5px}.start-button{background:var(--red);border:2px solid #fc795e;box-shadow:0 5px 0 #bb3b29;color:#fffde8;display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px 20px;font-size:20px;font-weight:1000;border-radius:14px}.start-button:active{transform:translateY(3px);box-shadow:0 2px 0 #bb3b29}.help-button{display:block;width:100%;background:none;font-size:14px;font-weight:800;padding:17px 0 0;color:#647558;text-decoration:underline;text-underline-offset:4px}.world-strip{grid-column:1/-1;display:flex;gap:12px;width:max-content;max-width:100%;margin-top:20px}.world-item{width:220px;display:grid;grid-template-columns:27px 1fr;column-gap:8px;padding:14px 17px;background:#183e32b0;border:1px solid #fff5;border-radius:16px;backdrop-filter:blur(8px)}.world-item>span{grid-row:1/3;font-size:14px;color:#ffda76;font-weight:1000;padding-top:3px}.world-item strong{font-size:16px;line-height:1.2}.world-item small{font-size:12px;opacity:.8;margin-top:5px}.world-item.active{border-color:#ffdf79}.game-footer{position:absolute;bottom:16px;left:3.2%;right:3.2%;display:flex;justify-content:space-between;gap:12px;pointer-events:none;font-size:11px;letter-spacing:1px;font-weight:900;opacity:.85;text-shadow:0 1px 5px #224739}.hud{position:absolute;left:3.2%;right:3.2%;top:88px;display:flex;justify-content:space-between;align-items:start;gap:14px;pointer-events:none}.hud-player{background:#1e4737d9;border:1px solid #fff5;border-radius:14px;padding:10px 16px;min-width:175px;margin-bottom:8px}.hud-player .name{font-size:15px;font-weight:900}.hud-player .health{color:#ff897b;font-size:19px;letter-spacing:2px}.hud-player small{color:#fff5be;font-size:12px}.hud-level{display:flex;gap:15px;padding:12px 18px;border-radius:25px;background:#23463bbf;border:1px solid #fff5;font-size:16px;font-weight:900}#star-count{color:var(--gold);white-space:nowrap}.mic-button{pointer-events:auto;background:#234638d9;border:1px solid #fff5;border-radius:25px;padding:11px 16px;font-weight:800}.mic-button.on{background:#a6483a}.room-actions{display:flex;gap:8px;margin-bottom:10px}.room-actions button{flex:1;border-radius:10px;background:#dae7c9;font-size:14px;font-weight:900;color:#305236;padding:9px}.room-info{display:flex;align-items:center;justify-content:space-between;margin-top:10px;background:#f8e9b3;border-radius:10px;padding:10px}.room-info strong{font-size:21px;letter-spacing:3px}.room-info button{background:#416441;border-radius:8px;padding:5px 8px;color:#fff;font-size:13px}#network-status{font-size:14px;font-weight:800;min-height:20px;margin:8px 0}.room-tip{font-size:12px;line-height:1.4;color:#647258;margin:0 0 12px}.dialog-layer{position:absolute;inset:0;z-index:10;background:#17332ba3;backdrop-filter:blur(8px);display:grid;place-items:center;padding:22px}.dialog-card{background:#fff6df;color:#294735;border:4px solid #fffcdf;border-radius:28px;width:min(520px,100%);padding:28px;text-align:center;box-shadow:0 12px 0 #183a3733;max-height:90svh;overflow:auto}.dialog-card h2{font-size:32px;line-height:1.1;margin:12px 0 18px;font-weight:1000}#dialog-symbol{font-size:44px;color:#efa733}#dialog-content{font-size:17px;line-height:1.6}.dialog-card kbd{display:inline-block;background:#e1e7ce;padding:0 7px;border:1px solid #c8d2af;border-radius:5px;font-family:inherit;font-weight:900;font-size:14px}#dialog-actions{display:flex;flex-direction:column;gap:11px;margin-top:24px}#dialog-actions button{padding:13px 18px;border-radius:12px;background:#3c6844;color:#fff5d7;font-size:17px;font-weight:900}#dialog-actions button.secondary{background:#e5e9ce;color:#3d5840}.toast{position:absolute;bottom:80px;left:50%;transform:translateX(-50%);z-index:15;background:#173a35e8;border:1px solid #fff7;border-radius:18px;padding:14px 24px;font-size:16px;text-align:center;max-width:85%}.touch-controls{position:absolute;bottom:40px;left:30px;right:30px;display:none;justify-content:space-between;pointer-events:none;z-index:7}.touch-controls button{pointer-events:auto;touch-action:none;user-select:none;background:#fff3;border:2px solid #fff9;border-radius:50%;width:74px;height:74px;font-size:29px;box-shadow:0 4px 0 #25483855;backdrop-filter:blur(5px)}.direction-pad{display:flex;gap:13px}.touch-controls .jump-pad{background:#ee67477a;width:84px;height:84px}.second-pad{bottom:140px}.second-pad button{background:#90bdff55}.playing .topbar{padding-top:14px;padding-bottom:14px}.playing .brand{font-size:19px}.playing .brand-mark{width:38px;height:38px}.playing .game-footer{opacity:.45}
@media(pointer:coarse){.playing .touch-controls{display:flex}.playing #game{object-fit:contain;background:#173a35}}
@media(min-width:1600px){.start-menu{inset:12% 7% 9%;grid-template-columns:1fr 440px}.setup-card{padding:28px}.hero-thumb{width:78px;height:78px}.world-item{width:260px}.world-item strong{font-size:18px}}
@media(max-height:760px) and (min-width:901px){#game-shell{min-height:620px}.start-menu{inset:80px 4% 48px;grid-template-columns:1fr 370px}.setup-card{padding:17px}.mode-tabs{margin-bottom:12px}.hero-thumb{width:54px;height:54px}.hero-picker{margin:10px 0 13px}.menu-heading h1{font-size:110px}.world-item{padding:10px 13px}.player-config input{padding:7px 12px}}
@media(max-width:900px){#game-shell{min-height:760px;height:auto;height:100svh}.topbar{padding:16px 20px}.brand{font-size:19px}.brand small{font-size:8px}.brand-mark{width:36px;height:36px}.tools{gap:5px}.languages button{padding:7px 9px;font-size:12px}.icon-button{width:33px;height:33px}.start-menu{inset:82px 5% 47px;grid-template-columns:1fr 350px;gap:16px}.menu-heading h1{font-size:90px;letter-spacing:-4px}.menu-heading p{font-size:17px}.eyebrow{font-size:10px;letter-spacing:2px}.setup-card{padding:17px}.world-item{width:180px}.world-item strong{font-size:14px}.hud-level{font-size:13px;gap:10px}.hud-player{min-width:130px;padding:8px 11px}.hud{top:76px}}
@media(max-width:620px){#game-shell{min-height:940px;height:100svh}.topbar{padding:13px 16px}.brand{font-size:16px;gap:7px}.brand-mark{width:30px;height:30px;font-size:24px}.brand small{font-size:7px;letter-spacing:1.8px}.icon-button{width:30px;height:30px}.languages button{font-size:11px;padding:6px 8px}.tools{gap:4px}.start-menu{inset:76px 6% 55px;display:flex;flex-direction:column;gap:18px}.menu-heading{align-self:center;width:100%;padding:0;text-align:center}.eyebrow{font-size:10px}.menu-heading h1{font-size:77px;line-height:.86;margin:15px 0 20px;letter-spacing:-3px}.menu-heading h1 br{display:none}.menu-heading h1 span{display:block}.menu-heading p{font-size:15px;margin:10px auto 0;max-width:330px;padding:5px}.setup-card{width:100%;max-width:390px;padding:17px}.mode-tabs button{min-height:39px;font-size:13px}.hero-thumb{height:59px;width:59px}.world-strip{margin:0;width:100%;gap:7px;justify-content:center}.world-item{width:33.33%;display:block;text-align:center;padding:11px 5px;border-radius:12px}.world-item>span{display:block;font-size:12px;margin-bottom:4px}.world-item strong{font-size:12px;display:block}.world-item small{display:none}.game-footer{font-size:9px;left:6%;right:6%}.playing#game-shell{height:100svh;min-height:420px}.playing .brand small{display:none}.playing .brand-mark{display:none}.playing .brand{font-size:15px}.hud{left:14px;right:14px;top:67px;flex-wrap:wrap}.hud-player{padding:7px 10px;min-width:100px;margin-bottom:5px}.hud-player .name{font-size:12px}.hud-player .health{font-size:15px}.hud-player small{font-size:10px}.hud-level{padding:8px 12px;font-size:12px}.mic-button{position:absolute;right:0;top:47px;padding:8px;font-size:12px}.touch-controls{left:18px;right:18px;bottom:42px}.touch-controls button{width:64px;height:64px;font-size:23px}.touch-controls .jump-pad{width:76px;height:76px}.dialog-card{padding:23px}.dialog-card h2{font-size:27px}#dialog-content{font-size:15px}.second-pad{bottom:128px}.toast{font-size:13px}}
@media(max-height:550px) and (orientation:landscape){#game-shell{min-height:480px}.start-menu{display:grid;inset:64px 5% 35px;grid-template-columns:1fr 340px;gap:14px}.menu-heading h1{font-size:67px;margin:13px 0}.menu-heading p{font-size:14px;margin:20px 0 0}.setup-card{padding:12px}.world-strip{display:none}.mode-tabs{margin-bottom:8px}.mode-tabs button{min-height:32px;font-size:12px}.hero-thumb{height:40px;width:40px}.hero-picker{margin:7px 0 9px}.hero-option{font-size:10px;padding:3px}.field-heading{font-size:12px;margin-bottom:3px}.player-config input{padding:5px 9px;font-size:14px}.help-button{font-size:12px;padding-top:10px}.start-button{padding:9px 15px;font-size:17px}.playing#game-shell{min-height:300px}.hud{top:60px}.touch-controls button{width:55px;height:55px}.touch-controls .jump-pad{width:65px;height:65px}.touch-controls{bottom:24px}.playing .game-footer{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.playing #game{object-fit:contain;background:#173a35}
@media(max-width:620px){#game-shell:not(.playing){height:auto;min-height:100svh}.start-menu{position:relative;inset:auto;margin:76px 6% 55px;padding-bottom:18px}.menu-heading,.setup-card,.world-strip{flex-shrink:0}}
