*{box-sizing:border-box}html,body{margin:0;background:#080b12;color:#e7f5ff;font-family:Inter,Arial,sans-serif}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}[hidden]{display:none!important}#game{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 304px;min-height:760px;height:100dvh;overflow:hidden}.arena{position:relative;min-width:0;overflow:hidden;background:#040919;touch-action:none}canvas{display:block;width:100%;height:100%;position:absolute;inset:0}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#020914a8,transparent 36%,transparent 80%,#020914cc),radial-gradient(ellipse at center,transparent 40%,#02061166)}header{position:absolute;top:30px;left:32px;right:32px;display:flex;align-items:center;justify-content:space-between}.brand{color:#dff7ff;text-decoration:none;display:flex;gap:10px;align-items:center;font-size:13px;font-weight:800;letter-spacing:2px}.brand i{font-size:32px;color:#edd6a1;font-style:normal}.brand small{display:block;font-size:8px;color:#829ab8;letter-spacing:2px;margin-top:5px}.tag{font-size:9px;letter-spacing:1.5px;border:1px solid #a8dcff32;color:#9cb1ca;padding:9px 12px;border-radius:20px}.heading{position:absolute;top:108px;left:34px;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:2.3px;color:#dbc59a;font-weight:700}h1{margin:8px 0;font-size:clamp(26px,3.6vw,55px);letter-spacing:-1.5px;font-weight:900}h1 em{font-style:normal;background:linear-gradient(110deg,#effaff,#8bdfff 58%,#8f97ff);background-clip:text;color:transparent}.hud{position:absolute;left:34px;right:34px;top:200px;display:flex;gap:32px;align-items:center;pointer-events:none}.hud small,.weapon small{display:block;font-size:9px;letter-spacing:2px;color:#91a9c2;margin-bottom:7px}.hud strong{font-size:25px;letter-spacing:1px;font-variant-numeric:tabular-nums}.hud .hull{width:155px;margin-left:auto}.hull small{display:flex;justify-content:space-between}.hull b{color:#a7ebfc;letter-spacing:0}.meter{height:4px;background:#203749;border-radius:2px;overflow:hidden}.meter span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#2ea7c5,#8af0ff);transition:width .2s}#bossHud{position:absolute;left:26%;right:26%;top:277px;font-size:9px;letter-spacing:2px;color:#ffb1c0}#bossHud b{float:right;letter-spacing:0}#bossHud .meter{margin-top:8px;height:5px}#bossHud .meter span{background:linear-gradient(90deg,#b92f67,#ff929b)}.modal{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);width:min(440px,88%);padding:34px;background:linear-gradient(135deg,#0b1e31e8,#06101ee8);border:1px solid #8ccfe43b;border-radius:20px;box-shadow:0 25px 80px #0009;backdrop-filter:blur(12px)}.modal h2{font-size:39px;line-height:1.08;letter-spacing:-1.4px;margin:20px 0;color:#f2f8ff}.modal p{font-size:13px;line-height:1.9;color:#a3bbd1;margin-bottom:23px}.modal small{display:block;font-size:10px;color:#89a3bc;margin-top:15px}.primary{width:100%;background:linear-gradient(110deg,#f1deaf,#c8a16a);color:#061525;border:0;border-radius:7px;padding:16px 20px;text-align:left;font-size:14px;font-weight:800}.primary span{float:right}.rail{position:relative;background:linear-gradient(170deg,#0c1828,#050b15 80%);border-left:1px solid #759dc52b;padding:35px 23px 20px;display:flex;flex-direction:column;gap:20px;z-index:3}.rail h2{font-size:29px;letter-spacing:-.8px;margin:10px 0}.rail-title p{font-size:12px;line-height:1.7;color:#8cabc5;margin:0}.weapon{padding:20px 0;border-top:1px solid #acc9f023;border-bottom:1px solid #acc9f023}.weapon strong{font-size:16px;letter-spacing:.4px;display:block}.weapon>span{font-size:9px;letter-spacing:1.2px;color:#789dbb}#weaponBars{display:flex;gap:5px;margin:13px 0}#weaponBars i{width:38px;height:4px;background:#1b3349;border-radius:2px}#weaponBars i.active{background:#7be3ff;box-shadow:0 0 9px #65ceff88}.effect-label{font-size:9px;color:#719ab8;letter-spacing:1.6px}.effect-label span{float:right}.effects{display:flex;flex-direction:column;gap:8px}.effects button{border:1px solid #93c7f01f;border-radius:9px;background:linear-gradient(110deg,#10253a,#0a1423);color:#d9ebff;padding:13px 12px;display:flex;align-items:center;text-align:left;gap:12px;transition:transform .15s,border-color .15s}.effects button:hover:not(:disabled){transform:translateX(-3px);border-color:#64d6ff88}.effects i{font-style:normal;font-size:26px;width:30px;color:#7ce8ff;text-align:center}.effects span{font-size:12px;font-weight:700}.effects small{display:block;color:#809db6;font-size:9px;font-weight:400;margin-top:5px}.effects b{font-size:9px;color:#53718d;margin-left:auto}.effects .danger{background:linear-gradient(110deg,#36172b,#131323);border-color:#ef728b2b}.effects .danger i{color:#ff9aa9}.settings{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}.settings button,.settings select{color:#a9c8df;background:#0b1b2b;border:1px solid #adcce32b;border-radius:6px;padding:10px;font-size:10px}.settings button{flex:1}.settings label{width:100%;font-size:9px;color:#6f8ea8;display:flex;align-items:center;gap:10px}.settings select{flex:1;min-width:0}.footnote{font-size:9px;line-height:1.65;color:#6d8aa2;margin:0}footer{position:absolute;left:32px;right:32px;bottom:27px;font-size:9px;letter-spacing:1.5px;color:#809db9;display:flex;justify-content:space-between;pointer-events:none}.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#73eaff;box-shadow:0 0 10px #73eaff;margin-right:7px}footer b{font-weight:500}#notice,#waveNotice{position:absolute;left:10%;right:10%;text-align:center;pointer-events:none;font-weight:800;letter-spacing:3px;text-shadow:0 2px 20px #000;opacity:0;transition:opacity .25s}#notice{bottom:75px;font-size:13px;color:#f3dfb6}#waveNotice{top:39%;font-size:clamp(20px,3vw,40px);color:#e6f6ff}#pauseScreen{position:absolute;inset:0;background:#030b18a8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}#pauseScreen strong{font-size:25px;letter-spacing:4px}#pauseScreen span{font-size:12px;color:#aac4d9}#error{position:absolute;inset:15%;background:#10243c;border:1px solid #7bd2ec;padding:40px;z-index:10;border-radius:15px}#error button{display:block;margin-top:20px;padding:12px}
@media(min-height:1000px){.rail{gap:28px}.effects button{padding-top:18px;padding-bottom:18px}}
@media(max-width:850px){#game{grid-template-columns:1fr;grid-template-rows:minmax(540px,1fr) auto;height:auto;min-height:100dvh}.arena{height:max(560px,72dvh)}header{top:20px;left:20px;right:20px}.brand{font-size:10px}.brand small{font-size:6px}.tag{font-size:7px;padding:7px}.heading{top:85px;left:20px}h1{font-size:34px}.heading .eyebrow{font-size:7px}.hud{top:156px;left:20px;right:20px;gap:22px}.hud strong{font-size:20px}.hud .hull{width:100px}.hud small{font-size:7px}.rail{padding:20px;border-left:0;border-top:1px solid #759dc52b;gap:16px}.rail-title{display:none}.weapon{padding:0;border:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}.weapon small{margin:0}.weapon strong{font-size:12px;grid-row:2}#weaponBars{margin:0;justify-content:end}.weapon>span{text-align:right;grid-column:2;grid-row:2;font-size:8px}.effect-label{font-size:8px}.effects{flex-direction:row;flex-wrap:wrap;gap:7px}.effects button{flex:1 1 29%;padding:10px 8px;gap:5px;justify-content:center}.effects span{font-size:9px}.effects small{font-size:7px;line-height:1.5}.effects b{display:none}.effects i{font-size:19px;width:22px}.settings{flex-wrap:nowrap}.settings label{width:auto;flex:2}.settings select{font-size:9px;padding:9px 4px}.settings button{font-size:9px}.modal{padding:25px;top:56%;max-width:350px}.modal h2{font-size:32px}.modal p{font-size:12px}.modal small{font-size:9px}#bossHud{top:215px;left:20%;right:20%;font-size:8px}#waveNotice{top:45%;font-size:24px}footer{left:20px;right:20px;bottom:20px;font-size:7px}#notice{font-size:10px;bottom:55px}.footnote{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.heading p{font-size:12px;color:#a9b0bb;margin-top:5px}.heading{top:103px}.hud{top:225px}.hud strong b{font-weight:900}.hud strong span{font-size:12px;color:#8092a6}.depth{margin-left:auto;width:140px}.depth small{display:flex;justify-content:space-between}.depth b{color:#e7d0a7}.depth .meter span{width:0;background:linear-gradient(90deg,#b28c57,#f1dfbb)}h1 em{background:linear-gradient(110deg,#fff3d1,#ddbd88 65%,#b8cce0);background-clip:text}.rail{background:linear-gradient(170deg,#151b25,#080c13 80%)}.rail h2{font-size:28px}.effects button{padding:18px 12px;background:linear-gradient(110deg,#202a35,#111a25)}.effects i{color:#e7c994}.effects small{font-size:10px}.shield-info{padding:18px 0;border-top:1px solid #acc9f023;border-bottom:1px solid #acc9f023}.shield-info small{font-size:9px;letter-spacing:2px;color:#91a9c2}#shields{display:flex;gap:13px;margin:9px 0}#shields i{font-style:normal;font-size:28px;color:#35485a}#shields i.active{color:#91efff;text-shadow:0 0 15px #2cbdff}.shield-info>span{font-size:8px;letter-spacing:1.4px;color:#96a9bc}.how{display:grid;grid-template-columns:18px 1fr;align-items:center;gap:14px 10px}.how>span{width:12px;height:12px;border-radius:3px;display:block}.how .safe{background:#ded6c4}.how .danger{background:#ec4968;box-shadow:0 0 12px #e2274855}.how .gap{border:1px dashed #768ca6}.how p{font-size:8px;letter-spacing:1.4px;margin:0;color:#bdcbd7}.how small{display:block;font-size:9px;letter-spacing:0;color:#8298ac;margin-top:4px}.steering{display:flex;gap:8px;margin-top:auto}.steering button{flex:1;padding:12px;background:#152331;color:#dcc69e;border:1px solid #9d8d6944;border-radius:6px;font-size:11px;touch-action:none;user-select:none}.steering button:active{background:#354450}.settings{margin-top:0}.vignette{background:linear-gradient(#080c16b0,transparent 37%,transparent 80%,#030710b0),radial-gradient(ellipse at center,transparent 35%,#05071177)}#combo{position:absolute;left:30px;bottom:85px;display:flex;gap:10px;align-items:center;color:#eed9b2;pointer-events:none}#combo>b{font-size:45px;font-variant-numeric:tabular-nums}#combo>span{font-size:9px;letter-spacing:2px}#combo small{display:block;font-size:9px;letter-spacing:0;color:#8296ab;margin-top:5px}.modal{top:50%;background:linear-gradient(135deg,#182635ee,#080f1cee);border-color:#dec79544}.primary{color:#1b1e22}.modal h2{font-size:40px}#notice{bottom:63px}.live-dot{background:#d6bd88;box-shadow:0 0 10px #d6bd88}
@media(max-width:850px){.arena{height:max(620px,78dvh)}.heading{top:85px}.heading p{font-size:10px}.hud{top:182px;gap:19px}.depth{width:100px}.shield-info{display:flex;align-items:center;justify-content:space-between;border:0;padding:0}.shield-info small{font-size:8px}#shields{margin:0;gap:5px}#shields i{font-size:24px}.shield-info>span{font-size:7px}.effects button{padding:12px 7px;flex:1 1 29%}.effects small{font-size:8px}.effects i{font-size:23px}.effects span{font-size:10px}.how{display:none}.steering{margin:0}.steering button{padding:11px}.modal h2{font-size:32px}.modal{top:56%}#combo{left:20px;bottom:61px}#combo>b{font-size:32px}#combo>span{font-size:8px}#combo small{font-size:8px}#notice{bottom:42px;font-size:9px}.rail{gap:13px}}
/* Hosted LIVE scene uses the complete source canvas; controls stay in creator mode. */
.drop-controls{display:flex;gap:6px}.drop-controls button{flex:1;padding:9px 5px;background:#13273c;border:1px solid #82b7d644;color:#c8e7ff;border-radius:6px;font-size:10px}.drop-network{position:absolute;bottom:46px;left:22px;color:#7398b2;font-size:9px;max-width:90%}.drop-network.bad{color:#ffb0ae;background:#180f24dd;padding:10px;border-radius:6px}.drop-legend{display:flex;flex-direction:column;gap:8px}.drop-legend>div{display:flex;gap:9px;align-items:center}.drop-legend img{width:34px;height:34px;object-fit:contain}.drop-legend span{font-size:10px;color:#d0e6f7}.drop-legend small{display:block;font-size:8px;color:#77b0cf;margin-top:3px}.drop-supporters{position:absolute;left:22px;right:22px;bottom:65px;text-align:center;font-size:9px;color:#90bbd7}
body[data-mode="source"] #game{display:block;height:100dvh;min-height:0}body[data-mode="source"] .arena{height:100%;width:100%}body[data-mode="source"] .rail{position:absolute;left:0;right:0;bottom:54px;background:transparent;border:0;padding:0 25px;pointer-events:none}body[data-mode="source"] .weapon,body[data-mode="source"] .footnote{display:none}body[data-mode="source"] .drop-legend{flex-direction:row;justify-content:center;flex-wrap:wrap;gap:14px}body[data-mode="source"] .drop-legend>div{background:#071525c9;padding:5px 9px;border:1px solid #83bcda33;border-radius:6px}body[data-mode="source"] .drop-supporters{bottom:32px}body[data-mode="source"] .drop-network:not(.bad){display:none}body[data-mode="source"] .arena footer{bottom:14px}
@media(max-width:850px){body[data-mode="controller"] .rail-title{display:none}.drop-legend{flex-direction:row;flex-wrap:wrap}.drop-legend>div{flex:1 1 28%}.drop-network{font-size:8px;bottom:38px}.drop-supporters{font-size:8px;bottom:77px}body[data-mode="source"] .drop-legend img{width:28px;height:28px}body[data-mode="source"] .drop-legend span{font-size:8px}body[data-mode="source"] .drop-legend small{font-size:7px}}

body[data-mode="source"] .shield-info{position:absolute;top:290px;left:32px;border:0;padding:0;display:block}body[data-mode="source"] .shield-info #shields{margin:8px 0}body[data-mode="source"] .shield-info small{font-size:9px}body[data-mode="source"] .shield-info #direction{font-size:8px}body[data-mode="source"] .how,body[data-mode="source"] .steering{display:none}.hud strong span #total{font-size:inherit;font-weight:inherit}body[data-mode="controller"] .drop-legend{margin-top:5px}
@media(max-width:850px){body[data-mode="source"] .shield-info{top:245px;left:20px}body[data-mode="source"] .shield-info #shields{justify-content:flex-start}}
