:root{color-scheme:dark;--bg:#101915;--surface:#17221b;--surface2:#1d2a21;--line:#314033;--lime:#bded73;--text:#f0f3e9;--muted:#97a28e;--orange:#e8ac71;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button:disabled{cursor:wait;opacity:.45}button:focus-visible,a:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button{transition:background .15s,transform .15s,border-color .15s}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit;text-decoration:none}input{width:100%;min-width:0;color:var(--text);outline:none}input:focus{border-color:var(--lime)}input::placeholder{color:#73816d}.hidden{display:none!important}.screen{min-height:100svh}.home{max-width:1440px;margin:auto;padding:0 60px}.topbar{height:102px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:800;letter-spacing:1px}.brand small{display:block;font-size:9px;font-weight:600;letter-spacing:3px;color:var(--muted);margin-top:4px}.brand-symbol{display:grid;place-items:center;width:40px;height:40px;background:var(--lime);color:var(--bg);font-size:31px;border-radius:9px;font-weight:500}.connection{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:9px}i{display:inline-block;width:7px;height:7px;background:var(--orange);border-radius:50%}.connection i.online{background:var(--lime);box-shadow:0 0 15px #bded7333}.home-grid{display:grid;grid-template-columns:1.18fr 1fr;gap:70px;padding:58px 0 38px}.eyebrow{font-family:Consolas,monospace;font-size:11px;letter-spacing:2.1px;color:var(--lime);display:flex;align-items:center;gap:10px}.eyebrow>span{width:20px;height:2px;background:var(--lime)}h1{font-size:clamp(40px,4.7vw,67px);letter-spacing:-2px;line-height:1.22;margin:23px 0 20px;font-weight:850}h1 span{color:var(--lime)}.hero-copy{font-size:15px;line-height:1.9;color:#b0b9a8;margin:0}.mobile-break{display:none}.hero-art{height:285px;position:relative;margin:20px 0 0;overflow:hidden;border-radius:6px;background:radial-gradient(ellipse at center,#26372588,transparent 70%)}#hero-canvas{width:100%;height:100%;display:block}.art-tag{position:absolute;left:10px;bottom:28px;font-size:11px;display:flex;align-items:center;gap:9px;background:#142019dd;border:1px solid #354a34;border-radius:4px;padding:10px}.art-tag i{background:var(--lime)}.art-tag span{color:var(--muted);font:9px Consolas,monospace;letter-spacing:.5px}.coordinate{position:absolute;right:8px;top:12px;font:9px Consolas,monospace;color:#7b8d71;letter-spacing:1px;line-height:1.8}.coordinate span{display:block}.hero-foot{display:flex;justify-content:space-between;padding:21px 0 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted);gap:10px}.hero-foot b{font-family:Consolas,monospace;color:#e2e8d9;font-size:19px;display:inline-block;margin-right:7px;font-weight:400}.console{background:var(--surface);border:1px solid #35412f;border-radius:16px;padding:30px 30px 22px;box-shadow:0 20px 60px #00000018;align-self:start}.console-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:27px}.section-index{font:10px Consolas,monospace;letter-spacing:1.6px;color:var(--muted)}h2{font-size:24px;letter-spacing:-.5px;margin:12px 0 0}.version{font:9px Consolas,monospace;padding:5px 7px;border:1px solid var(--line);border-radius:3px;color:var(--muted)}.field-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;line-height:1.5;margin:19px 0 9px;color:#e2e7d9}.field-label span{color:var(--muted);font-size:10px}.text-input{border:1px solid #3a4734;border-radius:6px;background:#101b13;height:44px;padding:0 14px;font-size:13px;transition:border-color .2s}.mode-cards{display:grid;gap:10px}.mode-card{text-align:left;display:flex;gap:13px;align-items:center;background:#1a271d;border:1px solid #34432f;border-radius:7px;padding:15px 13px;position:relative}.mode-card:hover{background:#243321}.mode-card.selected{background:#283721;border-color:#a6ce66}.mode-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:6px;background:#324427;color:var(--lime);font-size:31px;font-weight:300}.coop-icon{background:#343c31;color:#e7b789}.mode-card strong{display:block;font-size:14px;font-weight:650;margin-bottom:6px}.mode-card div>span{font-size:10px;color:#a6b298}.radio{width:14px;height:14px;border:1px solid #637354;border-radius:50%;margin-left:auto;flex-shrink:0}.selected .radio{border:4px solid var(--lime);background:var(--bg)}.capacity{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.capacity button{display:flex;justify-content:space-between;align-items:center;background:#142018;border:1px solid #3a4734;border-radius:5px;padding:11px 12px;font-size:12px}.capacity button span{color:#7a896d;font:11px Consolas,monospace}.capacity .selected{border-color:#a6ce66;background:#283721;color:var(--lime)}.capacity .selected span{color:var(--lime)}.large{width:100%;height:47px;border-radius:6px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:650;margin-top:11px}.primary{color:#1d2b12;background:var(--lime)}.primary:hover{background:#cef895}.primary>span{font-size:22px}.secondary{border:1px solid #4a5941;background:transparent;color:#d7e0cb;padding:10px 15px;border-radius:6px}.secondary:hover{background:#2c3a25}.secondary>span{font-size:19px;color:#9baa88}#create-room{margin-top:23px}.divider{display:flex;align-items:center;gap:12px;color:#7f8c74;font-size:10px;margin:22px 0 16px}.divider:before,.divider:after{content:"";flex:1;height:1px;background:#35422e}.join-form{display:flex;gap:8px}.join-form input{flex:1}.join-button{background:#33432b;border:1px solid #4d6140;border-radius:6px;padding:0 19px;font-size:12px}.join-button span{margin-left:13px;color:var(--lime)}.console-note{text-align:center;font-size:10px;color:#7f8c74;margin:15px 0 0}.footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:23px 0;color:#74806c;font:9px Consolas,monospace;letter-spacing:1px;gap:12px}.text-button{background:transparent;color:#aebda0;font-size:11px;padding:8px}.text-button:hover{color:var(--lime)}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.muted{color:var(--muted);font-size:12px;line-height:1.8}.room{max-width:1100px;margin:auto;padding:0 40px}.room-content{max-width:640px;margin:64px auto;text-align:center}.room-content .eyebrow{justify-content:center}.room-content h1{font-size:40px}.room-content>p{color:var(--muted);font-size:13px}.room-ticket{display:block;width:100%;background:#25351e;border:1px dashed #a6ce66;color:var(--lime);border-radius:12px;padding:22px 30px;margin:30px 0}.room-ticket small{display:block;color:#b1c79a;font-size:11px}.room-ticket strong{display:block;font:700 46px Consolas,monospace;letter-spacing:12px;margin:8px 0}.room-ticket>span{font-size:11px}.player-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.player-slot{border:1px solid #35432e;background:#19261b;padding:20px 10px;border-radius:8px;min-height:110px;display:flex;flex-direction:column;gap:9px;align-items:center;font-size:12px}.player-slot.empty{border-style:dashed;color:#68775d;background:transparent}.player-slot .avatar{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;font-size:21px;background:#314425;color:var(--lime)}.player-slot small{font-size:9px;color:var(--muted)}#start-game{justify-content:center}.game{height:100svh;width:100vw;overflow:hidden;position:fixed;inset:0;background:#0a100c;touch-action:none;user-select:none}.game canvas{display:block;width:100%;height:100%;outline:none;cursor:crosshair}.game-top{position:absolute;left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));top:max(16px,env(safe-area-inset-top));display:flex;align-items:start;justify-content:space-between;gap:15px;pointer-events:none}.game-title{background:#132017de;border:1px solid #3b4c32;border-radius:8px;padding:10px 14px}.game-title b{display:block;font-size:14px}.game-title span{font:10px Consolas,monospace;letter-spacing:1px;color:var(--muted);display:block;margin-top:5px}.mission{text-align:center;background:#132017dc;border:1px solid #3b4c32;border-radius:8px;padding:8px 22px}.mission strong{font:26px Consolas,monospace;color:var(--lime);display:block}.mission>span{font-size:10px;display:block;color:#c1ceb4;margin-top:4px}.game-actions{display:flex;align-items:center;gap:7px;pointer-events:auto}.game-actions>span{font:10px Consolas,monospace;color:var(--lime);margin-right:4px}.icon-button{width:34px;height:34px;background:#17271dde;border:1px solid #425438;border-radius:6px;font-size:18px;color:#d4e3c7}.icon-button.active{color:var(--lime);border-color:var(--lime)}.scoreboard{position:absolute;top:100px;right:max(18px,env(safe-area-inset-right));background:#132017dd;border:1px solid #35462f;border-radius:8px;padding:12px 14px;min-width:145px;pointer-events:none}.score-title{font:9px Consolas,monospace;letter-spacing:2px;color:var(--muted);margin-bottom:8px}.score-line{display:flex;align-items:center;gap:7px;font-size:11px;line-height:2}.score-line i{width:5px;height:5px}.score-line b{margin-left:auto;font:13px Consolas,monospace}.score-line.self{color:var(--lime)}.player-hud{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:max(22px,env(safe-area-inset-left));background:#132017e8;border:1px solid #3b4c32;border-radius:8px;padding:12px 16px;min-width:180px;pointer-events:none}.player-hud>span:first-child{font-size:11px}.health-track{height:5px;background:#3a4730;margin:9px 0 6px;border-radius:2px;overflow:hidden}.health-track>div{width:100%;height:100%;background:var(--lime);transition:width .12s}#health-text{font:9px Consolas,monospace;color:var(--muted)}.event-feed{position:absolute;top:104px;left:50%;transform:translateX(-50%);display:grid;gap:7px;text-align:center;pointer-events:none}.event-item{font-size:11px;color:#dfe9d4;background:#17271de8;border:1px solid #4b5b3e;border-radius:5px;padding:8px 14px;white-space:nowrap}.keyboard-hint{position:absolute;bottom:23px;left:50%;transform:translateX(-50%);font-size:10px;color:#899d7c;white-space:nowrap;pointer-events:none}.keyboard-hint span{margin:0 8px}kbd{font:10px Consolas,monospace;color:#b6c7a8;border:1px solid #405534;padding:3px 6px;border-radius:3px}.respawn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:20px 35px;border-radius:10px;border:1px solid #6d7b4e;background:#18271eea;text-align:center;font-size:20px;font-weight:700;pointer-events:none}.respawn small{display:block;font-size:12px;color:var(--muted);margin-top:10px;font-weight:400}.touch-controls{display:none;position:absolute;inset:0;pointer-events:none}.joystick{position:absolute;bottom:25px;left:32px;width:116px;height:116px;border:1px solid #b9dc7060;border-radius:50%;background:#1e3221a3;pointer-events:auto;touch-action:none;display:grid;place-items:center;box-shadow:inset 0 0 0 15px #182d1b44}.joystick small{position:absolute;bottom:-21px;left:0;right:0;text-align:center;color:#b7caa2;font-size:10px;pointer-events:none}.stick-knob{width:48px;height:48px;border-radius:50%;background:#badc7173;border:1px solid #c8ee8788;pointer-events:none;box-shadow:0 3px 15px #0004}.aim-stick{left:auto;right:32px;border-color:#e4b16e88;background:#3b3227a3}.aim-stick .stick-knob{background:#e6af6873;border-color:#f6d09888}.portrait-hint{display:none;position:absolute;bottom:175px;left:50%;transform:translateX(-50%);font-size:11px;color:var(--muted);pointer-events:none;white-space:nowrap}.overlay{position:fixed;inset:0;z-index:20;background:#07100bba;backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.dialog{width:100%;max-width:450px;padding:30px;background:#19271d;border:1px solid #4d603c;border-radius:14px;box-shadow:0 30px 100px #0005;max-height:90svh;overflow:auto}.dialog h2{font-size:29px;margin:15px 0}.dialog>.text-button{display:block;margin:12px auto 0}.help-row{display:flex;gap:18px;border-bottom:1px solid #35452c;padding:10px 0;font-size:12px}.help-row b{flex-shrink:0;color:var(--lime);padding-top:11px}.help-row p{color:#b9c7ac;line-height:1.8;margin:8px 0}.result-line{display:flex;gap:12px;align-items:center;border-bottom:1px solid #35452c;padding:13px 0;font-size:12px}.result-line>span:first-child{font:16px Consolas,monospace;width:20px;color:var(--lime)}.result-line>span:nth-child(2){flex:1}.result-line small{color:var(--muted);display:block;font-size:10px;margin-top:4px}.result-line b{font:18px Consolas,monospace}.result-dialog>.primary{margin-top:23px}.toast{position:fixed;z-index:99;bottom:28px;left:50%;transform:translateX(-50%);max-width:90vw;border-radius:8px;padding:14px 22px;border:1px solid #7d9362;background:#243421;color:#e4f2d6;font-size:12px;box-shadow:0 6px 30px #0005;text-align:center}.network-banner{position:fixed;z-index:80;top:0;left:0;right:0;text-align:center;padding:10px 14px;background:#8b5521;color:#fff2d3;font-size:12px;pointer-events:none}.touch .touch-controls{display:block}.touch .keyboard-hint{display:none}.touch .player-hud{bottom:18px;left:50%;transform:translateX(-50%);min-width:145px;padding:8px 12px}.touch .scoreboard{top:85px}.touch .event-feed{top:83px}
@media(min-width:1500px){.home{padding-top:12px}.home-grid{padding-top:75px;gap:100px}.hero-art{height:345px}.hero h1{font-size:76px}}
@media(max-width:1000px){.home{padding:0 30px}.home-grid{gap:35px;padding-top:40px}.console{padding:24px 22px}.hero-art{height:260px}.hero-foot{flex-wrap:wrap}.hero-foot b{font-size:16px}.hero h1{font-size:54px}}
@media(max-width:760px){.home{padding:0 22px}.topbar{height:80px}.brand{font-size:17px}.brand-symbol{width:34px;height:34px;font-size:27px}.connection{font-size:10px;gap:6px}.home-grid{display:flex;flex-direction:column;gap:30px;padding-top:35px}.hero .eyebrow{font-size:9px;letter-spacing:1.4px}.hero h1{font-size:48px;line-height:1.18;margin:20px 0 15px}.hero-copy{font-size:13px}.hero-art{height:230px;margin-top:-25px;margin-left:90px;margin-right:-10px}.art-tag{left:0;bottom:17px;font-size:9px;padding:8px;gap:6px}.art-tag span{display:none}.coordinate{font-size:8px}.hero-foot{margin-top:0;padding-top:17px}.hero-foot b{font-size:17px}.hero-foot>span{font-size:9px}.console{padding:26px 22px}.console-heading{margin-bottom:24px}.footer{font-size:8px;letter-spacing:0;padding:24px 0;margin-top:8px}.footer>span:last-child{display:none}.room{padding:0 22px}.room-content{margin-top:40px}.room-content h1{font-size:33px}.room-ticket strong{font-size:40px;letter-spacing:9px}.room-ticket{padding:20px}.player-slots{gap:9px}.player-slot{font-size:11px;padding:15px 5px}.game-title{padding:7px 9px}.game-title b{font-size:11px}.game-title span{font-size:8px}.game-top{left:10px;right:10px;top:10px;gap:7px}.mission{padding:6px 10px}.mission strong{font-size:20px}.mission>span{font-size:9px}.game-actions{gap:4px}.game-actions>span{font-size:8px;margin:0}.icon-button{width:29px;height:29px;font-size:15px}.scoreboard{right:10px;min-width:125px;padding:8px 10px}.score-line{font-size:10px}.score-title{font-size:8px}.touch .event-feed{top:77px}.event-item{font-size:10px;padding:7px 10px;max-width:95vw;overflow:hidden;text-overflow:ellipsis}.dialog{padding:23px}.respawn{font-size:16px;width:230px;padding:16px}.joystick{bottom:30px;left:22px;width:106px;height:106px}.aim-stick{left:auto;right:22px}.touch .player-hud{min-width:115px;bottom:17px;padding:7px 9px}.health-track{margin:6px 0 4px}.player-hud>span:first-child{font-size:10px}}
@media(pointer:coarse) and (orientation:portrait){.portrait-hint{display:block}.touch .scoreboard{top:125px;right:10px}.touch .event-feed{top:85px}.touch .game-top{flex-wrap:wrap}.joystick{width:108px;height:108px}.touch .player-hud{bottom:170px;left:12px;transform:none}.game canvas{cursor:default}}
@media(max-height:500px) and (orientation:landscape){.game-top{top:8px}.game-title{padding:6px 10px}.mission{padding:5px 14px}.mission strong{font-size:20px}.mission>span{font-size:9px}.touch .scoreboard{top:73px;padding:6px 9px;min-width:125px}.score-line{line-height:1.65;font-size:10px}.joystick{width:96px;height:96px;bottom:22px;left:24px}.aim-stick{left:auto;right:24px}.stick-knob{width:42px;height:42px}.joystick small{bottom:-15px;font-size:9px}.touch .event-feed{top:75px}.event-item{font-size:10px;padding:5px 9px}.touch .player-hud{padding:6px 10px;bottom:10px}.overlay{padding:12px}.dialog{max-height:94svh}.result-dialog{max-width:540px}}
.console{width:100%}
/* The lobby is a single screen, including compact Android landscape windows. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
.home{height:100svh;height:100dvh;min-height:0;max-width:1500px;padding:0 clamp(16px,3vw,48px);display:grid;grid-template-rows:64px minmax(0,1fr) 42px;overflow:hidden}
.home>.topbar{height:auto;min-height:0}
.home-grid{display:grid;grid-template-columns:minmax(190px,.76fr) minmax(390px,1.24fr);min-height:0;gap:clamp(20px,4vw,65px);padding:20px 0;overflow:hidden}
.hero{display:flex;flex-direction:column;min-height:0;justify-content:center}
.hero h1{font-size:clamp(32px,4.5vw,62px);margin:16px 0;line-height:1.17}
.hero-copy{font-size:clamp(11px,1.3vw,15px)}
.hero-art{flex:1;min-height:60px;max-height:290px;height:auto;margin:8px 0 0}
.hero-foot{padding-top:14px;flex-shrink:0;flex-wrap:nowrap}
.home .console{min-height:0;height:100%;align-self:stretch;padding:20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(62px,1fr) auto auto auto;grid-template-areas:'heading heading' 'name size' 'mode mode' 'actions actions' 'join join' 'note note';gap:12px 18px;border-radius:12px;box-shadow:none;overflow:hidden}
.console-heading{grid-area:heading;margin:0;align-items:center}
.console-heading h2{margin:6px 0 0;font-size:22px}
.name-field{grid-area:name}.size-field{grid-area:size}.mode-field{grid-area:mode;min-height:0;display:flex;flex-direction:column}
.home .field-label{margin:0 0 6px;font-size:12px;white-space:nowrap}
.name-field .field-label span,.size-field .field-label span{display:none}
.home .text-input{height:38px}
.home .capacity{height:38px}
.home .capacity button{padding:8px 10px}
.home .mode-cards{grid-template-columns:1fr 1fr;gap:10px;flex:1;min-height:0}
.home .mode-card{padding:12px;gap:10px;min-width:0}
.home .mode-card strong{font-size:14px}
.home .mode-card div>span{font-size:10px;line-height:1.5;display:block}
.home .mode-card .radio{width:12px;height:12px}
.home .mode-icon{width:32px;height:32px;flex-shrink:0;font-size:26px}
.launch-actions{grid-area:actions;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.home .launch-actions .large{height:42px;margin:0;padding:0 12px;font-size:12px}
.lobby-join{grid-area:join;display:flex;align-items:center;gap:14px;min-width:0}
.home .divider{margin:0;white-space:nowrap;font-size:10px;flex-shrink:0}
.home .divider:before,.home .divider:after{display:none}
.home .join-form{flex:1;min-width:0}
.home .console-note{grid-area:note;margin:0;font-size:10px;line-height:1.3}
.home>.footer{padding:0;min-height:0}
@media(max-height:600px) and (orientation:landscape){
  .home{grid-template-rows:40px minmax(0,1fr) 28px;padding:0 max(18px,env(safe-area-inset-left)) 0 max(18px,env(safe-area-inset-right))}
  .home>.topbar{gap:8px}.home .brand{font-size:15px;gap:9px}.home .brand-symbol{width:27px;height:27px;font-size:23px}.home .brand small{display:none}.home .connection{font-size:10px}
  .home-grid{grid-template-columns:minmax(150px,.5fr) minmax(430px,1.5fr);gap:20px;padding:8px 0}
  .hero .eyebrow{font-size:8px;letter-spacing:1px}.hero h1{font-size:clamp(29px,3.8vw,44px);margin:10px 0;letter-spacing:-1px}.hero-copy{font-size:10px;line-height:1.6}
  .hero-art{min-height:35px;max-height:160px;margin:0}.art-tag{padding:5px;font-size:8px;bottom:8px;left:0}.art-tag span,.coordinate{display:none}.hero-foot{font-size:8px;padding-top:7px;gap:5px}.hero-foot b{font-size:13px;margin-right:3px}
  .home .console{padding:10px 12px;gap:6px 14px;grid-template-rows:auto minmax(50px,1fr) 36px 32px 12px;grid-template-areas:'name size' 'mode mode' 'actions actions' 'join join' 'note note';border-radius:9px}
  .console-heading{display:none}.home .field-label{font-size:10px;margin-bottom:4px;line-height:1.2}.home .field-label span{font-size:9px}.home .text-input{height:30px;font-size:11px;padding:0 10px}.home .capacity{height:30px;gap:6px}.home .capacity button{font-size:11px;padding:5px 8px}.home .capacity button span{font-size:10px}
  .home .mode-card{padding:7px 9px;gap:9px}.home .mode-card strong{font-size:12px;margin-bottom:3px}.home .mode-card div>span{font-size:9px}.home .mode-icon{width:26px;height:26px;font-size:23px}.home .mode-card .radio{width:11px;height:11px}
  .home .launch-actions .large{height:36px;font-size:11px}.home .launch-actions .large>span{font-size:18px}.home .join-form .text-input{height:32px}.home .join-button{font-size:11px;padding:0 12px}.home .divider{font-size:9px}.home .console-note{font-size:9px}.home>.footer{font-size:8px}.home>.footer .text-button{font-size:10px;padding:4px}
}
@media(max-width:700px){
  .home{grid-template-rows:52px minmax(0,1fr) 32px;padding:0 14px}.home-grid{display:block;padding:10px 0}.home .hero{display:none}.home .console{gap:12px;padding:16px;grid-template-rows:auto auto minmax(70px,1fr) auto auto auto}.home .console-heading{display:flex}.home .console-heading h2{font-size:20px}.home .console-heading .section-index{display:none}.home .mode-cards{grid-template-columns:1fr}.home .mode-card{padding:10px}.home .lobby-join{display:block}.home .divider{display:none}.home .join-form .text-input{height:36px}.home .brand{font-size:15px}.home .brand small,.home>.footer>span{display:none}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Thumb controls sit inward from the edges with separate fire and movement. */
.touch .joystick{width:144px;height:144px;left:max(7.5vw,env(safe-area-inset-left));bottom:max(32px,env(safe-area-inset-bottom));border-width:2px;background:#213b28b8;box-shadow:inset 0 0 0 21px #172d1c66}
.touch .stick-knob{width:64px;height:64px;background:#b8de7c9c;border:2px solid #d3f3a6aa}
.touch .joystick small{bottom:-22px;font-size:11px}
.fire-button{position:absolute;right:max(7.5vw,env(safe-area-inset-right));bottom:max(36px,env(safe-area-inset-bottom));width:132px;height:132px;pointer-events:auto;touch-action:none;border:2px solid #edc67eaa;border-radius:50%;background:radial-gradient(circle,#97703dcc,#3e352acb);color:#ffe8b8;box-shadow:inset 0 0 0 10px #eac28118,0 4px 24px #0004;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.fire-button>span{font-size:39px;line-height:1}.fire-button>b{font-size:18px}.fire-button>small{font-size:10px;opacity:.75}.fire-button.pressed{background:#bc8644de;transform:scale(.96);border-color:#ffe8b8}
.combat-skills{position:absolute;right:25px;bottom:90px;display:flex;gap:12px;pointer-events:none}
.skill-button{width:64px;height:64px;border:1px solid #8abaca;border-radius:50%;background:#233d48dc;color:#c7ecfa;pointer-events:auto;touch-action:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;box-shadow:0 3px 14px #0003}
.skill-button>b{font-size:14px}.skill-button>small{font-size:9px}.skill-button:disabled{opacity:.5;cursor:default}.skill-button:active:enabled{background:#467b8c}
#dash-skill{border-color:#d3bc7e;background:#4a4128dc;color:#ffe6b0}
.touch .combat-skills{inset:0;pointer-events:none;display:block}
.touch .skill-button{position:absolute;width:64px;height:64px;right:calc(7.5vw + 141px);bottom:46px}
.touch #shield-skill{right:calc(7.5vw + 100px);bottom:151px}
.touch #dash-skill{right:calc(7.5vw + 155px);bottom:72px}
#power-status{display:block;color:#ffda8d;font-size:10px;min-height:0;margin-top:3px}
.touch .scoreboard{top:73px;max-height:112px;overflow:hidden;min-width:110px}.touch .score-title{display:none}.touch .score-line{font-size:9px;line-height:1.5}
.touch .event-feed{top:70px}.touch .event-item{max-width:46vw;overflow:hidden;text-overflow:ellipsis}
.room{height:100dvh;max-width:1100px;display:grid;grid-template-rows:64px minmax(0,1fr);overflow:hidden}.room>.topbar{height:auto}.room-content{width:100%;min-height:0;max-width:720px;margin:18px auto;display:flex;flex-direction:column;gap:12px;justify-content:center}.room-content>h1{margin:0;font-size:28px}.room-content>p{margin:0}.room-content>.eyebrow{display:none}.room-ticket{padding:10px;margin:0}.room-ticket strong{font-size:32px;margin:4px 0}.player-slots{margin:0;gap:8px}.player-slot{min-height:0;padding:12px 8px;gap:6px}.room-content #start-game{flex-shrink:0;margin:0}.room-content #room-hint{font-size:11px;line-height:1.5}
@media(max-height:600px) and (orientation:landscape){.room{grid-template-rows:42px minmax(0,1fr);padding:0 22px}.room>.topbar .brand{font-size:16px}.room>.topbar .brand-symbol{width:25px;height:25px;font-size:22px}.room>.topbar .secondary{font-size:11px;padding:7px 12px}.room-content{margin:8px auto;gap:7px}.room-content>h1{display:none}.room-content>p{font-size:11px}.room-ticket{padding:6px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center}.room-ticket strong{font-size:27px;margin:0;letter-spacing:7px}.room-ticket small,.room-ticket>span{font-size:10px}.player-slots{grid-template-columns:repeat(6,minmax(0,1fr))}.player-slot{padding:9px 4px;gap:5px;font-size:10px}.player-slot .avatar{width:25px;height:25px;font-size:17px}.player-slot small{font-size:8px}.room-content #start-game{height:36px;font-size:12px}}
@media(max-width:700px) and (orientation:landscape){.home{grid-template-rows:40px minmax(0,1fr) 26px}.home .console{grid-template-areas:'name size' 'mode mode' 'actions actions' 'join join' 'note note';grid-template-rows:auto minmax(45px,1fr) 32px 30px 11px;gap:5px 10px;padding:8px 12px}.home .console-heading{display:none}.home .mode-cards{grid-template-columns:1fr 1fr}.home .mode-card{padding:5px}.home .mode-card div>span{font-size:8px}.home .mode-icon{display:none}.home .launch-actions .large{height:32px}.home .join-form .text-input{height:30px}.home .text-input,.home .capacity{height:28px}.home .field-label{font-size:9px;margin-bottom:3px}.home .console-note{font-size:8px}.touch .joystick{width:124px;height:124px;left:7vw;bottom:26px}.touch .stick-knob{width:55px;height:55px}.fire-button{width:112px;height:112px;right:7vw;bottom:30px}.touch .skill-button{width:54px;height:54px}.touch #shield-skill{right:calc(7vw + 85px);bottom:136px}.touch #dash-skill{right:calc(7vw + 125px);bottom:64px}.touch .skill-button>b{font-size:12px}.touch .skill-button>small{font-size:8px}}
.home #create-room{margin:0}
@media(max-height:600px) and (orientation:landscape){.player-slots{grid-template-columns:repeat(var(--slots,6),minmax(0,1fr))}}
