/* Dimensional ship console: generated metal hardware with animated instrument strips. */
.stage-wrap{--console-glow:var(--ship-color);--console-filter:sepia(.7) saturate(1.7) hue-rotate(var(--ship-hue));}
.game-toolbar{padding:8px;gap:6px;border:2px solid #726442;border-radius:14px;background:linear-gradient(180deg,#66707b,#1b2432 11%,#090f19 78%,#4b5061);box-shadow:inset 0 2px 1px #f4d792a6,inset 0 -3px 3px #000,0 -3px 18px #080b18a6,0 1px 0 #e4c27777;backdrop-filter:blur(12px)}
.toolbar-button,.scroll-controls button{position:relative;isolation:isolate;overflow:hidden;border:0;background:#090e17;border-radius:8px;color:#e8f0f9;box-shadow:0 3px 4px #000b,inset 0 0 0 1px #d2af6a55;text-shadow:0 2px 2px #000;transition:filter .15s,transform .1s;}
.toolbar-button{min-height:60px;padding:7px 3px 18px;font-size:21px;gap:2px;line-height:1.1;}
.toolbar-button::before,.scroll-controls button::before{content:'';position:absolute;inset:0;z-index:-1;background:url(assets/cockpit/button-bezel.webp) center/100% 100% no-repeat;filter:var(--console-filter);opacity:.9;pointer-events:none;}
.toolbar-button::after,.scroll-controls button::after{content:'';position:absolute;left:15%;right:15%;bottom:7px;height:8px;border-radius:2px;background:#070d17 url(assets/cockpit/meter.gif) center/100% 100% no-repeat;box-shadow:0 0 0 1px #05070e,0 0 5px color-mix(in srgb,var(--ship-color) 45%,transparent);filter:var(--console-filter);pointer-events:none;opacity:.8;}
.toolbar-button span{font-size:6px;letter-spacing:.55px;color:#ecf3f7;white-space:nowrap;}.toolbar-button b{font-size:8px;color:#ffe69e;}
.toolbar-button.active,.scroll-controls button[aria-pressed=true]{background:#202a35;color:#fff2bd;box-shadow:0 0 9px color-mix(in srgb,var(--ship-color) 45%,transparent),inset 0 0 0 1px var(--ship-color);}
.toolbar-button.active::after,.scroll-controls button[aria-pressed=true]::after{opacity:1;filter:var(--console-filter) brightness(1.5);}
.toolbar-button:active,.scroll-controls button:active{transform:translateY(2px);filter:brightness(1.2)}
.toolbar-button:focus-visible,.scroll-controls button:focus-visible{outline:2px solid #efffff;outline-offset:2px;}
.toolbar-button:disabled{opacity:.5;filter:saturate(.35)}
.toolbar-button:disabled::after,.scroll-controls button:disabled::after,.stage-wrap:has(.game-overlay:not([hidden])) .toolbar-button::after{background-image:url(assets/cockpit/meter-still.webp);opacity:.3;}
.scroll-controls{padding:5px;gap:5px;border:1px solid #bba26c88;background:linear-gradient(#424a57,#101725);box-shadow:inset 0 1px #f6db9988,0 4px 9px #0008;}
.scroll-controls button{min-height:39px;padding:8px 10px 15px;font-size:7px;}.scroll-controls button::after{height:5px;bottom:5px;}
.weapon-hud{border:2px solid color-mix(in srgb,var(--ship-color) 70%,#8a7758);background:linear-gradient(135deg,#3e4858,#101827 22%,#08141fe8);box-shadow:inset 0 1px #fbeba177,inset 0 -3px #0007,0 4px 10px #0009;border-radius:9px;}
.aim-ring{border:3px solid #bca26e;background:radial-gradient(#122437aa,#0b1222e8);box-shadow:inset 0 0 0 5px #64738266,inset 0 0 22px #0a071e,0 0 10px color-mix(in srgb,var(--ship-color) 30%,transparent);}.aim-needle i{filter:drop-shadow(0 0 5px var(--ship-color));}
.aim-reset,.icon-button{border-color:#b8a27377;background:linear-gradient(145deg,#3d4b57,#101d2d 48%,#07121c);box-shadow:inset 0 1px #d3e1e544,inset 0 -2px #0007,0 3px 5px #0008;}
@media(max-width:700px){.game-toolbar{padding:6px;gap:4px;left:7px;right:7px;}.toolbar-button{min-height:54px;font-size:18px;padding:6px 2px 17px;}.toolbar-button span{font-size:5px;letter-spacing:.3px;}.toolbar-button::after{left:13%;right:13%;height:7px;bottom:6px;}}
@media(max-height:520px){.game-toolbar{padding:4px;gap:3px;}.toolbar-button{min-height:38px;font-size:13px;padding:4px 1px 12px;}.toolbar-button span{font-size:4px;letter-spacing:0}.toolbar-button::after{bottom:4px;height:5px;}.scroll-controls button{min-height:27px;font-size:5px;padding:4px 6px 11px;}.scroll-controls button::after{height:4px;bottom:4px;}}
@media(prefers-reduced-motion:reduce){.toolbar-button::after,.scroll-controls button::after{background-image:url(assets/cockpit/meter-still.webp)!important;}.toolbar-button,.scroll-controls button{transition:none;}}
/* Keep steering clear of the taller console across viewport sizes. */
.aim-controls{bottom:104px}
@media(max-width:700px){.aim-controls{bottom:94px}}
@media(max-height:520px){.aim-controls{bottom:65px}}
/* Island Siege v2: neon instrument edges meet glossy mobile arcade controls. */
.stage-wrap{--console-filter:none;--panel-blue:#142aa3;--panel-purple:#8620b4;}
.hud::before{background-image:url(assets/cockpit-v2/hud-frame.webp);filter:drop-shadow(0 0 6px #d32dff66);}
.hud::after{background:linear-gradient(125deg,#1c2267,#070f32);box-shadow:inset 0 2px 10px #03031c;border-radius:12px;}
.hud strong{color:#fff2c1;text-shadow:0 2px 1px #05002b,0 0 8px #48dcff55;}.hud span{color:#bfeeff;letter-spacing:1.5px;}.hud .life-dots{filter:drop-shadow(0 0 5px var(--ship-color));}
.game-toolbar{border:2px solid #9a4ef6;border-radius:18px;background:linear-gradient(150deg,#8e27c9,#2635a8 18%,#101544 58%,#3f1c78);box-shadow:inset 0 2px 1px #f2a9ff,inset 0 -3px 0 #070b32,0 0 0 2px #071e49,0 -3px 17px #dd22f555;}
.toolbar-button,.scroll-controls button{border:1px solid #4ba7ff;border-radius:12px;background:linear-gradient(170deg,#506fe9,#204acb 24%,#242184 61%,#13114d);box-shadow:inset 0 2px 1px #a2ecffb3,inset 0 -4px 0 #0a1147,0 3px 0 #060923,0 0 4px #62dbff77;}
.toolbar-button::before,.scroll-controls button::before{inset:3px 4px 50%;border-radius:9px 9px 40% 40%;background:linear-gradient(#ffffff40,#a5dcff12);filter:none;opacity:1;}
.toolbar-button::after,.scroll-controls button::after{filter:none;box-shadow:0 0 0 1px #03071b,0 0 6px #4cdbff77;}
.toolbar-button.active,.scroll-controls button[aria-pressed=true]{background:linear-gradient(170deg,#ffe683,#ffa42c 25%,#f06c19 62%,#ae3e22);border-color:#fff28d;box-shadow:inset 0 2px #fff8c7,inset 0 -4px #b74a0d,0 3px #41104b,0 0 10px color-mix(in srgb,var(--ship-color) 70%,transparent);}
.toolbar-button.active::after,.scroll-controls button[aria-pressed=true]::after{filter:brightness(1.4);}
.toolbar-button span{font-weight:900;color:#f9f3ff;text-shadow:0 1px 2px #09072c;}.toolbar-button.active span{color:#fffde9;text-shadow:0 1px 2px #7f3900;}.toolbar-button b{color:#fff190;}
.control-icon{display:block;width:25px;height:25px;flex-shrink:0;background-image:url(assets/cockpit-v2/icons.webp);background-size:300% 200%;filter:drop-shadow(0 1px 1px #05062b) drop-shadow(0 0 3px #58ecff55);pointer-events:none;}
.pause-icon{background-position:0 0}.fire-icon{background-position:50% 0}.reverse-icon{background-position:100% 0}.pulse-icon{background-position:0 100%}.bomb-icon{background-position:50% 100%}.restart-icon{background-position:100% 100%}
.play-icon{background:none;clip-path:polygon(22% 10%,90% 50%,22% 90%);background:linear-gradient(135deg,#e8ffff,#37d4ff 70%,#7a3de9);}
.toolbar-button.active .fire-icon{animation:cockpit-thrust 1.1s ease-in-out infinite}.pulse-icon{animation:cockpit-glow 2s ease-in-out infinite}.bomb-icon{animation:cockpit-float 2.6s ease-in-out infinite}.toolbar-button:hover .restart-icon{animation:cockpit-spin .7s ease-in-out 1;}
@keyframes cockpit-thrust{50%{transform:translateY(-2px);filter:drop-shadow(0 0 5px #7cffff)}}@keyframes cockpit-glow{50%{filter:drop-shadow(0 0 5px #f4a3ff);transform:scale(1.06)}}@keyframes cockpit-float{50%{transform:translateY(-1.5px) rotate(5deg)}}@keyframes cockpit-spin{to{transform:rotate(360deg)}}
.toolbar-button:disabled .control-icon,.stage-wrap:has(.game-overlay:not([hidden])) .control-icon{animation-play-state:paused!important;}
.scroll-controls{border-color:#aa58f4;border-radius:13px;background:linear-gradient(#7e28ad,#191c66);box-shadow:inset 0 1px #e2a5ff,0 0 7px #37caff55;}
.weapon-hud{border-color:#b15dff;background:linear-gradient(145deg,#6a31b6,#142a89 25%,#091936);box-shadow:inset 0 2px #c8a8ff99,0 0 7px #24dbff55;border-radius:13px;}.weapon-hud strong{color:#fff4ac;}.weapon-hud div>span{color:#9feaff;}
.aim-ring{border-color:#b247ff;background:radial-gradient(#3650b7bb,#141b4be8);box-shadow:inset 0 0 0 4px #8b3ff866,inset 0 0 16px #060b33,0 0 0 1px #63ecff,0 0 12px #7f27e866;}.aim-needle i{border-bottom-color:#ffce46;filter:drop-shadow(0 0 4px #ffab29);}.aim-reset,.icon-button{border:1px solid #9873ef;border-radius:10px;background:linear-gradient(155deg,#9440d1,#254fc2 45%,#181850);box-shadow:inset 0 1px #f2b7ff88,inset 0 -3px #0c123c,0 0 5px #40dfff33;}
.boss-health{background:linear-gradient(135deg,#5a1b79eb,#131846ed);border:1px solid #c653ef;box-shadow:inset 0 1px #ffb1d755,0 0 7px #9e28f044;}.boss-health i{background:linear-gradient(90deg,#7b38f4,#f13ea7,#ffd14e);box-shadow:0 0 6px #ff8eee;}
.journey-strip,.encounter-name{background:linear-gradient(120deg,#35216de8,#0b2445e8);border:1px solid #8e59d066;box-shadow:inset 0 1px #7c92dc44;}.primary-button{border:2px solid #ffe8a2;border-radius:15px;background:linear-gradient(#ffe78b,#ffbd37 35%,#f68420);color:#3d1961;box-shadow:inset 0 2px #fff5cd,0 5px #a2470e,0 0 18px #bd42ff44;}
@media(max-width:700px){.control-icon{width:22px;height:22px}.toolbar-button{gap:1px;}.toolbar-button span{font-size:5px;}}
@media(max-height:520px){.control-icon{width:16px;height:16px}.toolbar-button{padding-top:3px;gap:0;}.toolbar-button span{font-size:4px;}}
@media(prefers-reduced-motion:reduce){.control-icon{animation:none!important;}.toolbar-button,.scroll-controls button{transition:none;}}
.hud>div{position:relative}.hud>div::after{content:'';position:absolute;bottom:-8px;width:58%;height:3px;border-radius:2px;background:#050a2a url(assets/cockpit/meter.gif) center/100% 100% no-repeat;box-shadow:0 0 4px #46ddff77;opacity:.75;pointer-events:none;}
.stage-wrap:has(.game-overlay:not([hidden])) .hud>div::after{background-image:url(assets/cockpit/meter-still.webp)}
@media(prefers-reduced-motion:reduce){.hud>div::after{background-image:url(assets/cockpit/meter-still.webp)}}
/* Compact scoreboard requested from the mobile reference. */
.hud{left:11%;right:11%;width:auto;height:54px;padding:16px 3% 13px;}
.hud strong{font-size:14px}.hud span{font-size:5px;letter-spacing:1px}.hud>div{gap:2px}.hud>div::after{bottom:-5px;height:2px}.hud::after{inset:25% 4% 28%;}
.journey-strip{top:110px;padding:3px 7px;gap:5px;font-size:5px;letter-spacing:.6px}.journey-strip strong{font-size:6px;margin-left:2px}
@media(max-width:700px){.hud{left:11%;right:11%;height:50px;padding:15px 3% 12px}.hud strong{font-size:11px}.hud span{font-size:4px}.journey-strip{top:103px;padding:3px 6px;gap:3px;font-size:4px}.journey-strip strong{font-size:5px}#routeBiome,#matchProgress{font-size:3.5px;padding-left:3px;}}
@media(max-height:520px){.hud{height:39px;padding:11px 3% 9px}.hud strong{font-size:9px}.hud span{font-size:3px;letter-spacing:.5px}.hud>div::after{bottom:-4px}.journey-strip{top:81px;padding:2px 5px;font-size:3.5px}.journey-strip strong{font-size:4px}}

.topbar .top-actions{margin-left:auto}
/* ===== 2026-11-10 (Ouiwey) HUD layout =====
   Left side stays clear for the pilot portrait. The scoreboard is a set of small circles on the right
   for the whole game (ov-landing.js adds body.hud-circles); in boss fights a BOSS circle joins them
   (body.boss-on) and its ring is the boss's health, so the boss bar never covers the boss.
   The route strip and wave / boss name sit at the top, where the scoreboard bar used to be.
   Weapon box sits on the right under SLOW/FAST. */
#weaponHud{left:auto;right:14px;top:calc(29% + 64px);flex-direction:row-reverse;padding:5px 3px 5px 8px;text-align:right}
@media(max-width:700px){#weaponHud{top:calc(29% + 52px);right:12px}}
@media(max-height:520px){#weaponHud{top:calc(34% + 40px);right:8px}}
.hud-boss,body.hud-circles:not(.boss-on) .hud .hud-boss{display:none}
body.hud-circles .hud{left:auto!important;right:10px!important;top:44px;width:auto!important;height:auto!important;min-height:0;padding:0!important;display:grid;grid-template-columns:40px 40px;gap:5px;transform:none}
body.hud-circles .hud::before,body.hud-circles .hud::after,body.hud-circles .hud>div::after{display:none}
body.hud-circles .hud>div{width:40px;height:40px;box-sizing:border-box;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0;background:radial-gradient(circle at 50% 35%,#2b3aa0,#0a1238 70%);border:1.5px solid #b15dff;box-shadow:0 0 7px #24dbff66,inset 0 1px #c8a8ff88}
body.hud-circles .hud span{font-size:4.5px!important;letter-spacing:.6px}
body.hud-circles .hud strong{font-size:7px!important;line-height:1.05;letter-spacing:0}
body.hud-circles .hud .life-dots{font-size:5px!important;letter-spacing:1px;padding:0}
body.hud-circles.boss-on .hud .hud-boss{display:flex;border-color:#ff7ad1;background:radial-gradient(closest-side,#120c33 76%,transparent 78%),conic-gradient(#ff4fa3 calc(var(--p,100)*1%),#2a1d55 0)}
body.hud-circles .stage-wrap .boss-health{display:none}
body.hud-circles .stage-wrap .journey-strip{top:50px;left:22%;right:auto;white-space:nowrap}
body.hud-circles .stage-wrap .encounter-name{top:74px;left:22%;right:auto;margin:0}
body.hud-circles.boss-on #scrollControls{top:182px}
body.hud-circles.boss-on #weaponHud{top:240px}
/* Pull-out side panel (ov-landing.js): the tab on the right edge slides the top buttons, score circles,
   SLOW/FAST and weapon box out of view (body.hud-tucked) and back. */
.topbar,body.hud-circles .hud,#scrollControls,#weaponHud{transition:transform .35s ease,opacity .35s ease}
body.hud-tucked .topbar,body.hud-tucked .hud,body.hud-tucked #scrollControls,body.hud-tucked #weaponHud{transform:translateX(calc(100% + 40px))!important;opacity:0;pointer-events:none}
.ovl-tab{position:absolute;z-index:12;right:0;top:calc(29% + 108px);width:22px;height:54px;padding:0;border:1.5px solid #b15dff;border-right:0;border-radius:12px 0 0 12px;background:linear-gradient(170deg,#506fe9,#242184 60%,#13114d);color:#fff4ac;font:900 16px/1 system-ui,sans-serif;box-shadow:0 0 8px #24dbff66;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ovl-tab:active{filter:brightness(1.25)}
body.hud-circles.boss-on .ovl-tab{top:292px}
@media(max-width:700px){.ovl-tab{top:calc(29% + 100px)}}
