/* OVERCLOCK VECTOR — UI styles (cyber neon glass) */
:root {
  --bg0: #05060F; --bg1: #0B1026;
  --cyan: #19E6FF; --blue: #6A7CFF; --mag: #FF2BD6; --lime: #B6FF3C; --core: #B45CFF;
  --gold: #FFD60A; --warn: #FF3355; --orange: #FF8A2A;
  --txt: #D8F6FF; --dim: #6C86A8; --dim2: #3B4C6B;
  --line: rgba(25, 230, 255, .38);
  --line-soft: rgba(25, 230, 255, .16);
  --glass: rgba(9, 16, 38, .74);
  --glass2: rgba(5, 9, 24, .86);
  --ease: cubic-bezier(.2, .9, .2, 1);
  --f-disp: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
  --f-body: 'Rajdhani', system-ui, 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --cut: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--bg0); color: var(--txt);
  font-family: var(--f-body); font-weight: 500;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
}
body { position: fixed; inset: 0; background: radial-gradient(120% 90% at 50% 20%, #0B1026 0%, #05060F 70%); }
#gl, #fx2d { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#gl { z-index: 0; }
#fx2d { z-index: 1; pointer-events: none; }
#ui { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.slashes { color: var(--mag); letter-spacing: -.1em; opacity: .9; font-weight: 700; }
.blink { animation: blink 1s steps(2) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; color: var(--txt); font-family: var(--f-disp); }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ic-xs { width: .95em; height: .95em; }
.ic-bit { color: var(--lime); filter: drop-shadow(0 0 4px rgba(182,255,60,.7)); }
.ic-core { color: var(--core); filter: drop-shadow(0 0 4px rgba(180,92,255,.8)); }
.ui-root .u0 { color: #FFFFFF; }
.ui-root .u1 { color: var(--cyan); text-shadow: 0 0 14px rgba(25,230,255,.6); }
.ui-root .u2 { color: var(--lime); text-shadow: 0 0 14px rgba(182,255,60,.55); }
.ui-root .u3 { color: var(--gold); text-shadow: 0 0 14px rgba(255,214,10,.55); }
.ui-root .u4 { color: var(--mag); text-shadow: 0 0 14px rgba(255,43,214,.6); }
.ui-root .u5 { color: #fff; background: linear-gradient(90deg, #ff4a6a, #ffd60a, #b6ff3c, #19e6ff, #6a7cff, #ff2bd6, #ff4a6a); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(0 0 8px rgba(255,255,255,.35)); animation: rainbow 2.4s linear infinite; }
@keyframes rainbow { to { background-position: -200% 0; } }
.ui-root .uchip:not(.on) { color: var(--dim2); text-shadow: none; }
.only-m { display: none; }
.mode-mobile .only-m { display: inline; }
.mode-mobile .only-pc { display: none; }
.c-core { color: #D7A8FF !important; text-shadow: 0 0 10px rgba(180,92,255,.7); }

/* boot */
.boot { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; }
.boot-ring { width: 54px; height: 54px; border: 2px solid var(--line-soft); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; box-shadow: 0 0 20px rgba(25,230,255,.3); }
.boot-txt { font: 600 12px var(--f-mono); letter-spacing: .3em; color: var(--dim); }
@keyframes spin { to { transform: rotate(360deg); } }

/* scanlines over UI screens */
.scanlines { position: absolute; inset: 0; pointer-events: none; z-index: 50; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.22) 2px 3px);
  mix-blend-mode: multiply; }
#ui[data-screen=hud] .scanlines, #ui[data-screen=pause] .scanlines { display: none; }

/* ---------------------------------------------------------- cut glass panel */
.cut {
  --c: var(--cut);
  position: relative; isolation: isolate;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  background: linear-gradient(135deg, rgba(25,230,255,.55), rgba(25,230,255,.18) 40%, rgba(255,43,214,.32));
}
.cut::before {
  content: ''; position: absolute; inset: 1px; z-index: -1;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  background:
    linear-gradient(180deg, rgba(25,230,255,.07), transparent 38%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    var(--glass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ---------------------------------------------------------- screens */
.scr { position: absolute; inset: 0; display: none; }
.scr.on { display: block; animation: scrIn .35s var(--ease); }
@keyframes scrIn { from { opacity: 0; } }

/* ---------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  pointer-events: auto; padding: 12px 22px; min-height: 46px;
  font: 700 15px var(--f-disp); letter-spacing: .16em; color: var(--txt);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(180deg, rgba(25,230,255,.16), rgba(25,230,255,.05));
  box-shadow: inset 0 0 0 1px rgba(25,230,255,.45);
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease), color .2s;
}
.btn:hover:not(:disabled) { background: linear-gradient(180deg, rgba(25,230,255,.32), rgba(25,230,255,.1)); box-shadow: inset 0 0 0 1px var(--cyan), inset 0 0 22px rgba(25,230,255,.35); color: #fff; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: 11px; }
.btn-ghost { background: rgba(9,16,38,.55); box-shadow: inset 0 0 0 1px rgba(108,134,168,.5); color: #A9C4E4; }
.btn-warn { background: linear-gradient(180deg, rgba(255,51,85,.2), rgba(255,51,85,.06)); box-shadow: inset 0 0 0 1px rgba(255,51,85,.7); color: #FFC2CC; }
.btn-warn:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255,51,85,.4), rgba(255,51,85,.12)); box-shadow: inset 0 0 0 1px var(--warn), inset 0 0 22px rgba(255,51,85,.4); }
.btn-hero {
  flex-direction: column; gap: 2px; min-width: 300px; padding: 16px 34px;
  background: linear-gradient(180deg, rgba(255,43,214,.32), rgba(255,43,214,.08));
  box-shadow: inset 0 0 0 1px var(--mag), inset 0 0 30px rgba(255,43,214,.25);
}
.btn-hero:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255,43,214,.55), rgba(255,43,214,.16)); box-shadow: inset 0 0 0 1px #ff8ef0, inset 0 0 40px rgba(255,43,214,.5); }
.btn-hero.sm { min-width: 240px; padding: 12px 24px; }
.bh-main { font: 900 24px var(--f-disp); letter-spacing: .2em; color: #fff; text-shadow: 0 0 14px rgba(255,43,214,.9); }
.btn-hero.sm .bh-main { font-size: 18px; }
.bh-sub { font: 600 12px var(--f-mono); letter-spacing: .12em; color: #FFB8F3; }
.icon-btn { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; color: #A9C4E4; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(108,134,168,.45); background: rgba(9,16,38,.5); transition: .2s var(--ease); }
.icon-btn:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--cyan), 0 0 14px rgba(25,230,255,.35); }
.icon-btn .ic { width: 22px; height: 22px; }
kbd { font: 600 10px var(--f-mono); padding: 1px 5px; border: 1px solid rgba(108,134,168,.6); border-radius: 2px; color: var(--dim); letter-spacing: 0; }

/* ========================================================== TITLE */
.scr-title.on { pointer-events: auto; }
.title-vignette { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 42%, transparent, rgba(5,6,15,.75)); }
.title-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px calc(24px + var(--sab)); }
.title-kicker { font: 600 11px var(--f-mono); letter-spacing: .28em; color: var(--dim); text-align: center; }
.logo { position: relative; width: min(880px, 94vw); aspect-ratio: 1000 / 300; }
.logo-svg { width: 100%; height: 100%; overflow: visible; }
.logo-svg text { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 128px; letter-spacing: 6px; }
.lg-line { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 1400; stroke-dashoffset: 1400; filter: drop-shadow(0 0 6px var(--cyan)); }
.lg-line.l2 { stroke: var(--mag); filter: drop-shadow(0 0 6px var(--mag)); }
.lg-fill { fill: url(#lgA); opacity: 0; filter: drop-shadow(0 0 18px rgba(25,230,255,.55)); }
.lg-fill.l2 { font-size: 112px; letter-spacing: 34px; }
.lg-line.l2 { font-size: 112px; letter-spacing: 34px; }
.lg-rule { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 860; stroke-dashoffset: 860; opacity: .8; filter: drop-shadow(0 0 4px var(--cyan)); }
.logo.reveal .lg-line { animation: draw 1.8s var(--ease) forwards, lineFade .8s 1.9s forwards; }
.logo.reveal .lg-line.l2 { animation-delay: .25s, 2.1s; }
.logo.reveal .lg-fill { animation: fillIn .9s 1.2s var(--ease) forwards; }
.logo.reveal .lg-fill.l2 { animation-delay: 1.45s; }
.logo.reveal .lg-rule { animation: draw 1.2s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lineFade { to { opacity: .35; } }
@keyframes fillIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.logo-glitch { position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.logo-glitch.g1 { background: linear-gradient(90deg, transparent 8%, rgba(255,43,214,.35) 20%, rgba(255,43,214,.05) 62%, transparent 70%); }
.logo-glitch.g2 { background: linear-gradient(90deg, transparent 28%, rgba(25,230,255,.05) 34%, rgba(25,230,255,.35) 80%, transparent 92%); }
.logo.glitch .logo-svg { animation: glitchShift .38s steps(2) 1; }
.logo.glitch .logo-glitch.g1 { animation: glitchBar1 .38s steps(3) 1; }
.logo.glitch .logo-glitch.g2 { animation: glitchBar2 .38s steps(3) 1; }
@keyframes glitchShift {
  0% { transform: translate(0); filter: none; }
  20% { transform: translate(-6px, 1px) skewX(-6deg); filter: drop-shadow(4px 0 0 rgba(255,43,214,.8)) drop-shadow(-4px 0 0 rgba(25,230,255,.8)); }
  40% { transform: translate(5px, -1px); filter: drop-shadow(-3px 0 0 rgba(255,43,214,.8)) drop-shadow(3px 0 0 rgba(25,230,255,.8)); }
  60% { transform: translate(-2px, 0); }
  100% { transform: none; filter: none; clip-path: none; }
}
@keyframes glitchBar1 { 0% { opacity: .9; clip-path: inset(22% 0 76% 0); } 50% { opacity: .7; clip-path: inset(64% 0 34% 0); } 100% { opacity: 0; } }
@keyframes glitchBar2 { 0% { opacity: .7; clip-path: inset(46% 0 52% 0); } 50% { opacity: .9; clip-path: inset(12% 0 87% 0); } 100% { opacity: 0; } }
.title-sub { font: 700 clamp(13px, 1.6vw, 17px) var(--f-disp); letter-spacing: .5em; color: #9FE9FF; text-shadow: 0 0 10px rgba(25,230,255,.6); margin-top: -6px; text-align: center; }
.title-menu { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.title-foot { position: absolute; left: 0; right: 0; bottom: calc(14px + var(--sab)); display: flex; justify-content: space-between; padding: 0 24px; font: 600 11px var(--f-mono); letter-spacing: .16em; color: var(--dim); }
.mode-mobile .title-foot { flex-direction: column; align-items: center; gap: 4px; font-size: 9.5px; letter-spacing: .1em; }
.mode-mobile .title-kicker { font-size: 9px; letter-spacing: .16em; }
.mode-mobile .title-sub { letter-spacing: .3em; font-size: 11px; }
.mode-mobile .btn-hero { min-width: min(300px, 82vw); }

/* ========================================================== HUD */
.scr-hud { pointer-events: none; }
.hud-side { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px; overflow: hidden; }
.hud-left { left: 0; width: var(--px); align-items: flex-end; }
.hud-right { right: 0; width: var(--px); align-items: flex-start; }
.hud-side > .hp { width: min(330px, 100%); }
.hp { padding: 12px 16px 13px; }
.hp-h { display: flex; align-items: center; gap: 8px; font: 700 12px var(--f-disp); letter-spacing: .22em; color: #9FE9FF; margin-bottom: 8px; }
.hp-sub { margin-left: auto; font: 600 10px var(--f-mono); letter-spacing: .1em; color: var(--dim); }
.big { font-size: clamp(26px, 2.4vw, 38px); font-weight: 800; line-height: 1.05; color: #fff; text-shadow: 0 0 16px rgba(25,230,255,.45); }
.big small { font-size: .5em; margin-left: 2px; color: var(--dim); text-shadow: none; }
.kv { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; letter-spacing: .12em; color: var(--dim); margin-top: 5px; font-weight: 600; }
.kv b { color: var(--txt); font-size: 14px; letter-spacing: 0; }
.tele-sector { display: flex; align-items: baseline; gap: 10px; }
.ts-s { font: 700 11px var(--f-disp); letter-spacing: .2em; color: var(--dim); }
.ts-n { font-size: 40px; font-weight: 800; color: #fff; text-shadow: 0 0 18px rgba(25,230,255,.6); line-height: 1; }
.ts-w { margin-left: auto; font-size: 15px; color: var(--cyan); }
.pips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 10px 0 8px; }
.pips i { height: 6px; background: rgba(108,134,168,.25); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); transition: background .3s; }
.pips i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pips i.cur { background: rgba(25,230,255,.55); animation: pip 0.9s ease-in-out infinite alternate; }
@keyframes pip { to { background: rgba(25,230,255,.15); } }
.tele-phase { font: 700 11px var(--f-mono); letter-spacing: .24em; color: var(--lime); }
.tele-phase.alert { color: var(--warn); animation: blink .6s steps(2) infinite; }
.spark { width: 100%; height: 44px; display: block; margin: 6px 0 2px; }
.arsenal { display: flex; flex-direction: column; gap: 6px; }
.ars { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--txt); }
.ars .ic { color: var(--cyan); width: 18px; height: 18px; }
.ars b { margin-left: auto; color: var(--cyan); font-size: 13px; }
.unitlog { display: flex; flex-wrap: wrap; gap: 5px; }
.uchip { min-width: 32px; padding: 3px 6px; text-align: center; font: 700 12px var(--f-mono); color: var(--dim2); box-shadow: inset 0 0 0 1px rgba(59,76,107,.7); }
.uchip.on { box-shadow: inset 0 0 0 1px currentColor; }
.uchip.cur { background: rgba(255,255,255,.08); text-shadow: 0 0 10px currentColor; }
.ui-root .uchip.on.u5 { background: linear-gradient(90deg, #ff4a6a, #ffd60a, #b6ff3c, #19e6ff, #6a7cff, #ff2bd6, #ff4a6a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; text-shadow: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.85); }
.cur-row { display: flex; align-items: center; gap: 8px; }
.cur-row .ic { width: 26px; height: 26px; }
.reactor-t { color: #fff; }
.seg-bar { position: relative; height: 12px; margin-top: 10px; background: rgba(25,230,255,.08); box-shadow: inset 0 0 0 1px rgba(25,230,255,.3); }
.seg-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #0ba5c4, var(--cyan)); box-shadow: 0 0 12px rgba(25,230,255,.7); transition: width .15s linear; }
.seg-bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(5,6,15,.9) 9px 11px); }
.hp-reactor.low .seg-bar i { background: linear-gradient(90deg, #a01030, var(--warn)); box-shadow: 0 0 14px rgba(255,51,85,.8); }
.hp-reactor.low .reactor-t { color: var(--warn); text-shadow: 0 0 16px rgba(255,51,85,.8); animation: blink .5s steps(2) infinite; }
.goal-name { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-name.pinned { color: var(--gold); }
.goal-bar { position: relative; height: 8px; margin-top: 8px; background: rgba(182,255,60,.08); box-shadow: inset 0 0 0 1px rgba(182,255,60,.3); overflow: hidden; }
.goal-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lime); box-shadow: 0 0 10px rgba(182,255,60,.8); transition: width .25s var(--ease); }
.goal-bar i.full { background: var(--gold); box-shadow: 0 0 14px rgba(255,214,10,.9); animation: glow .5s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .55; } }
.od-bar { position: relative; height: 14px; background: rgba(255,43,214,.08); box-shadow: inset 0 0 0 1px rgba(255,43,214,.35); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.od-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #8a1077, var(--mag)); transition: width .15s linear; }
.od-state { margin-top: 7px; font: 700 11px var(--f-mono); letter-spacing: .16em; color: var(--dim); }
.hp-od.ready .od-bar i { background: linear-gradient(90deg, var(--mag), #fff); box-shadow: 0 0 18px var(--mag); }
.hp-od.ready .od-state { color: var(--mag); animation: blink .7s steps(2) infinite; }
.hp-od.active .od-bar i { background: linear-gradient(90deg, var(--gold), #fff, var(--mag)); background-size: 200% 100%; animation: odFlow .5s linear infinite; }
.hp-od.active .od-state { color: var(--gold); }
@keyframes odFlow { to { background-position: -200% 0; } }
.hud-pause-pc { pointer-events: auto; margin-top: auto; }

/* play area frame (pc) */
.play-frame { position: absolute; left: var(--px); top: var(--py); width: var(--pw); height: var(--ph); pointer-events: none;
  box-shadow: -1px 0 0 rgba(25,230,255,.55), 1px 0 0 rgba(255,43,214,.45), -10px 0 30px -10px rgba(25,230,255,.4), 10px 0 30px -10px rgba(255,43,214,.35); }
.pf-c { position: absolute; width: 18px; height: 18px; border-color: var(--cyan); border-style: solid; border-width: 0; opacity: .9; }
.pf-c.tl { left: 6px; top: 6px; border-left-width: 2px; border-top-width: 2px; }
.pf-c.tr { right: 6px; top: 6px; border-right-width: 2px; border-top-width: 2px; border-color: var(--mag); }
.pf-c.bl { left: 6px; bottom: 6px; border-left-width: 2px; border-bottom-width: 2px; }
.pf-c.br { right: 6px; bottom: 6px; border-right-width: 2px; border-bottom-width: 2px; border-color: var(--mag); }

/* top of play area */
.play-top { position: absolute; left: var(--px); width: var(--pw); top: var(--py); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px 0; }
.wave-tag { display: flex; align-items: center; gap: 10px; padding: 5px 18px; font: 700 12px var(--f-disp); letter-spacing: .2em; color: #BFF4FF;
  background: linear-gradient(90deg, transparent, rgba(9,16,38,.8) 20% 80%, transparent); text-shadow: 0 0 8px rgba(25,230,255,.7); }
.wave-tag i { width: 5px; height: 5px; background: var(--mag); transform: rotate(45deg); box-shadow: 0 0 6px var(--mag); }
.wave-tag.boss span:last-child { color: var(--warn); text-shadow: 0 0 10px var(--warn); }
.warn-stripe { display: none; width: 100%; align-items: center; justify-content: center; gap: 12px; padding: 8px 10px; font: 900 13px var(--f-disp); letter-spacing: .24em; color: #fff;
  background: repeating-linear-gradient(-45deg, rgba(255,51,85,.85) 0 14px, rgba(120,10,30,.85) 14px 28px); box-shadow: 0 0 24px rgba(255,51,85,.7);
  animation: warnPulse .5s ease-in-out infinite alternate; }
.warn-stripe b { font-family: var(--f-mono); letter-spacing: .1em; }
.warn-stripe.show { display: flex; }
@keyframes warnPulse { to { opacity: .55; } }
.boss-bar { display: none; width: 100%; }
.boss-bar.show { display: block; animation: bossIn .5s var(--ease); }
@keyframes bossIn { from { opacity: 0; transform: translateY(-12px) scaleX(.6); } }
.bb-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.bb-name { font: 900 14px var(--f-disp); letter-spacing: .24em; color: #FFD0F6; text-shadow: 0 0 10px var(--mag); }
.bb-enrage { display: none; font: 800 10px var(--f-mono); letter-spacing: .2em; color: #fff; background: var(--warn); padding: 1px 6px; animation: blink .4s steps(2) infinite; }
.boss-bar.enrage .bb-enrage { display: inline-block; }
.bb-pct { margin-left: auto; font-size: 13px; color: #FFD0F6; }
.bb-track { position: relative; height: 12px; background: rgba(40,4,30,.75); box-shadow: inset 0 0 0 1px rgba(255,43,214,.6), 0 0 16px rgba(255,43,214,.35);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.bb-track i { position: absolute; left: 0; top: 0; bottom: 0; }
.bb-lag { background: rgba(255,255,255,.75); transition: width .2s linear; }
.bb-fill { background: linear-gradient(90deg, #ff2b6a, var(--mag) 60%, #ff9df0); box-shadow: 0 0 10px var(--mag); }
.boss-bar.enrage .bb-fill { background: linear-gradient(90deg, #ff2b2b, var(--warn), #ffb0b0); }
.bb-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(5,6,15,.9) calc(10% - 1px) 10%); }

/* mobile HUD */
.m-top, .m-bottom, .od-btn { display: none; }
.mode-mobile .hud-side, .mode-mobile .play-frame { display: none; }
.mode-mobile .m-top { display: block; position: absolute; left: 0; right: 0; top: 0; padding: calc(6px + var(--sat)) calc(10px + var(--sar)) 0 calc(10px + var(--sal));
  background: linear-gradient(180deg, rgba(5,6,15,.92), rgba(5,6,15,.55) 75%, transparent); }
.m-row { display: flex; align-items: center; gap: 10px; height: 42px; }
.m-bits { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 800; min-width: 0; }
.m-bits .ic { width: 20px; height: 20px; }
.m-sw { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--cyan); padding: 3px 8px; box-shadow: inset 0 0 0 1px rgba(25,230,255,.45); background: rgba(9,16,38,.6); }
.m-dps { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; min-width: 62px; }
.m-dps small { font: 700 9px var(--f-disp); letter-spacing: .2em; color: var(--dim); }
.m-dps span { font-size: 15px; font-weight: 700; }
.m-pause { pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center; color: #BFE6FF; box-shadow: inset 0 0 0 1px rgba(108,134,168,.6); background: rgba(9,16,38,.65);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.m-pause .ic { width: 20px; height: 20px; }
.m-reactor { position: relative; height: 16px; margin: 4px 0 6px; background: rgba(25,230,255,.08); box-shadow: inset 0 0 0 1px rgba(25,230,255,.35); }
.m-reactor i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #0b8fb0, var(--cyan)); box-shadow: 0 0 10px rgba(25,230,255,.6); transition: width .15s linear; }
.m-reactor::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(5,6,15,.85) 8px 10px); }
.m-reactor span { position: absolute; z-index: 1; right: 6px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 0 4px #000, 0 0 2px #000; }
.m-reactor.low i { background: linear-gradient(90deg, #a01030, var(--warn)); }
.m-reactor.low span { color: #FFC2CC; animation: blink .5s steps(2) infinite; }
.mode-mobile .play-top { top: max(var(--py), calc(72px + var(--sat))); padding-top: 4px; }
.mode-mobile .wave-tag { display: none; }
.mode-mobile .m-bottom { display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 0 calc(104px + var(--sar)) calc(12px + var(--sab)) calc(12px + var(--sal));
  background: linear-gradient(0deg, rgba(5,6,15,.85), transparent); }
.m-goal { padding: 8px 10px 9px; background: rgba(9,16,38,.7); box-shadow: inset 0 0 0 1px rgba(182,255,60,.3); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }
.m-goal-l { display: flex; justify-content: space-between; gap: 8px; font: 700 11px var(--f-disp); letter-spacing: .1em; color: var(--txt); }
.m-goal-l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-goal-l b { color: var(--lime); font-size: 12px; }
.m-goal .goal-bar { height: 6px; margin-top: 6px; }
.mode-mobile .od-btn { display: grid; place-items: center; pointer-events: auto; position: absolute; right: calc(14px + var(--sar)); bottom: calc(12px + var(--sab)); width: 82px; height: 82px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,43,214,.18), rgba(9,16,38,.8) 70%); box-shadow: 0 0 0 1px rgba(255,43,214,.35); }
.od-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.od-ring-bg { fill: none; stroke: rgba(255,43,214,.18); stroke-width: 6; }
.od-ring { fill: none; stroke: var(--mag); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--mag)); transition: stroke-dashoffset .15s linear; }
.od-btn span { position: relative; font: 900 18px var(--f-disp); letter-spacing: .08em; color: #FFB8F3; }
.od-btn.ready { animation: odReady .7s ease-in-out infinite alternate; }
.od-btn.ready span { color: #fff; text-shadow: 0 0 12px var(--mag); }
.od-btn.active .od-ring { stroke: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
@keyframes odReady { to { box-shadow: 0 0 0 2px var(--mag), 0 0 26px rgba(255,43,214,.8); } }

/* ========================================================== HANGAR */
.scr-hangar.on { pointer-events: auto; display: flex; flex-direction: column; }
.hg-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at var(--hx, 30%) var(--hy, 40%), rgba(5,6,15,0) 0, rgba(5,6,15,.25) 180px, rgba(5,6,15,.86) 460px),
    linear-gradient(rgba(25,230,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(25,230,255,.035) 1px, transparent 1px) 0 0 / 40px 40px; }
.hg-top { flex: none; display: flex; align-items: center; gap: 16px; padding: calc(12px + var(--sat)) calc(22px + var(--sar)) 10px calc(22px + var(--sal));
  background: linear-gradient(180deg, rgba(5,6,15,.9), rgba(5,6,15,.4)); border-bottom: 1px solid var(--line-soft); position: relative; }
.hg-top::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 38%; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); box-shadow: 0 0 8px var(--cyan); }
.hg-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.brand-mark .ic { width: 32px; height: 32px; }
.brand-t { font: 900 22px var(--f-disp); letter-spacing: .24em; color: #fff; }
.brand-s { font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.hg-cur { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.cur { display: flex; align-items: center; gap: 9px; }
.cur .ic { width: 28px; height: 28px; }
.cur span { font-size: 34px; font-weight: 800; line-height: 1; }
.cur em { font: 700 10px var(--f-disp); font-style: normal; letter-spacing: .2em; color: var(--dim); align-self: flex-end; margin-bottom: 3px; }
.corecur span { font-size: 26px; color: #E4C8FF; text-shadow: 0 0 14px rgba(180,92,255,.8); }
.bitcur span { text-shadow: 0 0 18px currentColor; }
.hg-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 34%) 1fr; gap: 18px; padding: 16px calc(22px + var(--sar)) 12px calc(22px + var(--sal)); }
.hg-left { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.holo { position: relative; flex: 1; min-height: 200px; }
.holo-label { position: absolute; left: 4px; top: 0; }
.hl-name { font: 900 26px var(--f-disp); letter-spacing: .12em; color: #fff; text-shadow: 0 0 14px rgba(25,230,255,.6); }
.hl-sub { font: 600 12px var(--f-mono); letter-spacing: .18em; color: #8FDCF0; }
.holo-rings { position: absolute; left: 50%; bottom: 8%; width: 74%; aspect-ratio: 3 / 1; transform: translateX(-50%); pointer-events: none; }
.holo-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(25,230,255,.45); box-shadow: 0 0 16px rgba(25,230,255,.3), inset 0 0 16px rgba(25,230,255,.2); animation: ringPulse 3s ease-in-out infinite; }
.holo-rings i:nth-child(2) { inset: 16%; animation-delay: .5s; border-style: dashed; }
.holo-rings i:nth-child(3) { inset: 32%; animation-delay: 1s; background: radial-gradient(rgba(25,230,255,.25), transparent 70%); }
@keyframes ringPulse { 50% { opacity: .45; } }
.holo::after { content: ''; position: absolute; left: 50%; bottom: 13%; width: 46%; height: 60%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(0deg, rgba(25,230,255,.16), transparent); clip-path: polygon(8% 100%, 92% 100%, 70% 0, 30% 0); }
.holo-dps { position: absolute; right: 4px; top: 4px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.holo-dps small { font: 700 10px var(--f-disp); letter-spacing: .24em; color: var(--dim); }
.holo-dps b { font-size: 30px; color: #fff; text-shadow: 0 0 16px rgba(25,230,255,.7); }
.delta { font-size: 13px; color: var(--lime); opacity: 0; }
.delta.pop { animation: deltaPop 1.6s var(--ease); }
@keyframes deltaPop { 0% { opacity: 0; transform: translateY(8px); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.stats-panel { flex: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.st-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; border-bottom: 1px solid rgba(25,230,255,.09); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--dim); }
.st-row b { color: var(--txt); font-size: 14px; }
.st-row.hl b { color: var(--cyan); text-shadow: 0 0 8px rgba(25,230,255,.6); }
.feat { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chip { font: 700 10px var(--f-mono); letter-spacing: .08em; padding: 3px 7px; color: var(--dim2); box-shadow: inset 0 0 0 1px rgba(59,76,107,.7); }
.chip.on { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(25,230,255,.6); background: rgba(25,230,255,.08); }
.hg-right { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tabs { flex: none; display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); }
.tab { position: relative; padding: 11px 22px 10px; font: 700 13px var(--f-disp); letter-spacing: .2em; color: var(--dim); transition: color .2s;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.tab small { font: 700 10px var(--f-mono); letter-spacing: 0; margin-left: 6px; padding: 1px 5px; color: var(--dim); box-shadow: inset 0 0 0 1px rgba(108,134,168,.5); }
.tab small.hot { color: #fff; background: var(--mag); box-shadow: 0 0 10px var(--mag); }
.tab:hover { color: var(--txt); }
.tab.on { color: #fff; background: linear-gradient(180deg, rgba(25,230,255,.22), rgba(25,230,255,.04)); }
.tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.tab-stats { display: none; }
.tabpane { display: none; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 14px 4px 18px 0; scrollbar-width: thin; scrollbar-color: rgba(25,230,255,.4) transparent; touch-action: pan-y; }
.tabpane.on { display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }

/* card */
.card { --c: 14px; padding: 12px 13px 12px; display: flex; flex-direction: column; gap: 7px; min-width: 0; transition: transform .2s var(--ease), filter .25s;
  background: linear-gradient(135deg, rgba(108,134,168,.55), rgba(59,76,107,.3) 50%, rgba(108,134,168,.35)); }
.card::before { background: linear-gradient(180deg, rgba(25,230,255,.04), transparent 40%), var(--glass2); }
.card:hover { transform: translateY(-2px); }
.card.afford { background: linear-gradient(135deg, var(--cyan), rgba(25,230,255,.35) 45%, rgba(25,230,255,.75)); filter: drop-shadow(0 0 10px rgba(25,230,255,.35)); }
.card.afford::before { background: linear-gradient(180deg, rgba(25,230,255,.14), rgba(25,230,255,.02) 50%), var(--glass2); }
.card.maxed { background: linear-gradient(135deg, rgba(255,214,10,.7), rgba(255,214,10,.2) 50%, rgba(255,214,10,.5)); }
.card.pinned { background: linear-gradient(135deg, var(--gold), rgba(255,214,10,.3) 45%, var(--cyan)); }
.cd-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cd-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; color: var(--cyan); background: rgba(25,230,255,.08); box-shadow: inset 0 0 0 1px rgba(25,230,255,.35);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.cd-ic .ic { width: 20px; height: 20px; filter: drop-shadow(0 0 4px currentColor); }
.card.maxed .cd-ic { color: var(--gold); }
.cd-tt { min-width: 0; flex: 1; }
.cd-name { font: 700 13.5px var(--f-disp); letter-spacing: .08em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-lv { font-size: 12px; color: var(--dim); }
.lv-n { display: inline-block; color: var(--cyan); font-weight: 800; font-size: 14px; }
.pin-btn { width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: var(--dim2); transition: color .2s, transform .2s var(--ease); }
.pin-btn .ic { width: 17px; height: 17px; }
.pin-btn:hover { color: var(--txt); }
.card.pinned .pin-btn { color: var(--gold); transform: rotate(-20deg); filter: drop-shadow(0 0 5px var(--gold)); }
.cd-desc { font-size: 13px; line-height: 1.25; color: #93AACB; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-eff { display: flex; align-items: baseline; gap: 7px; font-size: 13.5px; padding: 5px 8px; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(25,230,255,.12); min-width: 0; white-space: nowrap; overflow: hidden; }
.cd-eff .cur { color: var(--txt); overflow: hidden; text-overflow: ellipsis; }
.cd-eff .arr { color: var(--dim); }
.cd-eff .nxt { color: var(--lime); font-weight: 700; text-shadow: 0 0 8px rgba(182,255,60,.5); overflow: hidden; text-overflow: ellipsis; }
.card.maxed .cd-eff .nxt { color: var(--gold); }
.cd-buy { display: flex; flex-direction: column; gap: 5px; }
.buy { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; min-height: 40px;
  font: 700 12px var(--f-disp); letter-spacing: .14em; color: #fff;
  background: linear-gradient(180deg, rgba(25,230,255,.28), rgba(25,230,255,.08)); box-shadow: inset 0 0 0 1px rgba(25,230,255,.7);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: background .15s, box-shadow .15s, transform .1s; }
.buy:hover:not(:disabled) { background: linear-gradient(180deg, rgba(25,230,255,.5), rgba(25,230,255,.16)); box-shadow: inset 0 0 0 1px #8ff3ff, inset 0 0 18px rgba(25,230,255,.5); }
.buy:active:not(:disabled) { transform: scale(.97); }
.buy .bc { display: flex; align-items: center; gap: 5px; font-size: 14px; letter-spacing: 0; font-weight: 800; }
.buy .bc .ic { width: 15px; height: 15px; }
.buy.no { background: rgba(255,51,85,.06); box-shadow: inset 0 0 0 1px rgba(255,51,85,.35); color: #8c9ab3; }
.buy.no .bc { color: #FF8297; }
.buy.no .ic-bit { color: #8c9ab3; filter: none; }
.buy:disabled { background: rgba(255,214,10,.08); box-shadow: inset 0 0 0 1px rgba(255,214,10,.45); color: var(--gold); }
.bulk { display: none; gap: 5px; }
.bulk.show { display: flex; }
.bulk .buy { flex: 1; min-height: 32px; padding: 4px 8px; font-size: 10.5px; }
.bulk .buy .bc { font-size: 11.5px; }
.bulk .bl i { font-style: normal; color: var(--lime); }
.buy.no .bl { color: #FF8297; letter-spacing: .06em; }
.buy.no .bl b { font-family: var(--f-mono); font-weight: 800; letter-spacing: 0; }
.cd-pinned { display: none; position: absolute; left: 50%; top: 0; transform: translateX(-50%); font: 800 8.5px var(--f-mono); letter-spacing: .14em; color: #05060F; background: var(--gold); padding: 1px 5px; }
.card.pinned .cd-pinned { display: block; }
.card.bounce { animation: bounce .45s var(--ease); }
@keyframes bounce { 0% { transform: scale(1); } 30% { transform: scale(1.045); } 60% { transform: scale(.985); } 100% { transform: scale(1); } }
.roll { animation: roll .35s var(--ease); }
@keyframes roll { from { transform: translateY(70%); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
.card.deny, .hex.deny { animation: deny .3s; }
@keyframes deny { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.float-up { position: absolute; right: 14px; top: 34px; font-size: 14px; font-weight: 800; color: var(--lime); text-shadow: 0 0 10px var(--lime); pointer-events: none; animation: floatUp .9s var(--ease) forwards; }
@keyframes floatUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-28px); } }

/* CORE MATRIX */
.matrix-wrap { display: grid; grid-template-columns: 1fr minmax(250px, 300px); gap: 16px; min-height: 100%; }
.matrix { position: relative; min-height: 360px; --hx: 70px; }
.mx-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mx-e { fill: none; stroke-width: 2; stroke-linejoin: round; }
.mx-e.dark { stroke: rgba(59,76,107,.6); stroke-dasharray: 4 5; }
.mx-e.avail { stroke: rgba(255,43,214,.7); filter: drop-shadow(0 0 3px var(--mag)); stroke-dasharray: 6 4; animation: dash 1.2s linear infinite; }
.mx-e.lit { stroke: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }
.mx-e.flow { stroke: #fff; stroke-width: 2; stroke-dasharray: 3 26; animation: dash 1s linear infinite; opacity: .9; }
.mx-e.req.lit { stroke-width: 3; }
@keyframes dash { to { stroke-dashoffset: -29; } }
.mx-hub circle { fill: rgba(25,230,255,.08); stroke: var(--cyan); stroke-width: 1.5; filter: drop-shadow(0 0 6px var(--cyan)); }
.mx-hub .hub-in { fill: var(--cyan); animation: ringPulse 1.6s ease-in-out infinite; }
.mx-hub text { fill: var(--dim); font: 700 10px var(--f-disp); letter-spacing: .2em; }
.hex { position: absolute; width: var(--hx); height: calc(var(--hx) * 1.15); pointer-events: auto;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: rgba(59,76,107,.8); transition: transform .2s var(--ease), filter .2s; }
.hex .hex-in { position: absolute; inset: 2px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: #0a1124;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.hx-ic { width: calc(var(--hx) * .3); height: calc(var(--hx) * .3); color: var(--dim); }
.hx-code { font: 700 calc(var(--hx) * .13) var(--f-disp); letter-spacing: .04em; color: var(--dim); white-space: nowrap; }
.hx-cost { font-size: calc(var(--hx) * .13); color: var(--dim); }
.hx-lock { display: none; position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); color: var(--dim2); }
.hx-lock .ic { width: calc(var(--hx) * .16); height: calc(var(--hx) * .16); }
.hex:hover { transform: scale(1.07); }
.hex.st-locked { background: rgba(59,76,107,.5); }
.hex.st-locked .hex-in { background: #070b18; }
.hex.st-locked .hx-ic, .hex.st-locked .hx-code { opacity: .45; }
.hex.st-available { background: rgba(255,43,214,.55); }
.hex.st-available .hx-ic, .hex.st-available .hx-code { color: #FFB8F3; }
.hex.st-available .hx-cost { color: #E4C8FF; }
.hex.can { background: var(--mag); filter: drop-shadow(0 0 10px rgba(255,43,214,.8)); animation: canPulse 1.2s ease-in-out infinite alternate; }
.hex.can .hex-in { background: radial-gradient(circle, rgba(255,43,214,.32), #120a24 70%); }
@keyframes canPulse { to { filter: drop-shadow(0 0 3px rgba(255,43,214,.4)); } }
.hex.st-owned { background: var(--cyan); filter: drop-shadow(0 0 8px rgba(25,230,255,.6)); }
.hex.st-owned .hex-in { background: radial-gradient(circle, rgba(25,230,255,.35), #06283a 75%); }
.hex.st-owned .hx-ic, .hex.st-owned .hx-code { color: #fff; }
.hex.st-owned .hx-ic { filter: drop-shadow(0 0 4px var(--cyan)); }
.hex.st-owned .hx-cost { color: var(--cyan); font-size: calc(var(--hx) * .105); }
.hex.sel { background: var(--gold) !important; filter: drop-shadow(0 0 12px rgba(255,214,10,.8)) !important; transform: scale(1.08); }
.hex.install { animation: install .7s var(--ease); }
@keyframes install { 0% { transform: scale(1.5); filter: brightness(3) drop-shadow(0 0 30px #fff); } 100% { transform: scale(1); } }
.mx-detail { align-self: start; position: sticky; top: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mx-empty { color: var(--dim); font: 700 12px var(--f-disp); letter-spacing: .2em; text-align: center; padding: 30px 0; }
.mxd-head { display: flex; align-items: center; gap: 12px; }
.mxd-hex { width: 52px; height: 58px; flex: none; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: rgba(59,76,107,.6); color: var(--dim); }
.mxd-hex .ic { width: 26px; height: 26px; }
.mxd-hex.st-owned { background: rgba(25,230,255,.25); color: #fff; }
.mxd-hex.st-available { background: rgba(255,43,214,.3); color: #FFB8F3; }
.mxd-name { font: 900 17px var(--f-disp); letter-spacing: .08em; color: #fff; line-height: 1.15; }
.mxd-st { font: 800 11px var(--f-mono); letter-spacing: .2em; margin-top: 3px; }
.mxd-st.st-owned { color: var(--cyan); } .mxd-st.st-available { color: var(--mag); } .mxd-st.st-locked { color: var(--dim); }
.mxd-desc { font-size: 15px; line-height: 1.35; color: #BFD3EC; }
.mxd-req { font: 700 11.5px var(--f-mono); letter-spacing: .06em; color: #FF8297; }
.mxd-foot { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.mxd-cost { display: flex; align-items: center; gap: 6px; }
.mxd-cost .ic { width: 22px; height: 22px; }
.mxd-cost b { font-size: 24px; color: #E4C8FF; }
.mxd-cost small { font: 700 10px var(--f-disp); letter-spacing: .2em; color: var(--dim); }
.btn-install { margin-left: auto; min-height: 42px; padding: 8px 18px; font-size: 13px; }
.btn-install.can { background: linear-gradient(180deg, rgba(255,43,214,.45), rgba(255,43,214,.12)); box-shadow: inset 0 0 0 1px var(--mag), 0 0 0 0 transparent; }
.btn-install:disabled { opacity: .55; }
.mxd-short { font-size: 11px; color: #FF8297; }

/* footer / dive */
.hg-foot { flex: none; display: flex; align-items: stretch; justify-content: flex-end; gap: 14px; padding: 12px calc(22px + var(--sar)) calc(16px + var(--sab)) calc(22px + var(--sal));
  background: linear-gradient(0deg, rgba(5,6,15,.94), rgba(5,6,15,.5)); border-top: 1px solid var(--line-soft); }
.sector-sel { display: none; align-items: center; gap: 4px; padding: 0 6px; background: rgba(9,16,38,.7); box-shadow: inset 0 0 0 1px rgba(25,230,255,.35);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.sector-sel.show { display: flex; }
.ss-arrow { width: 40px; height: 100%; min-height: 48px; font-size: 20px; color: var(--cyan); }
.ss-arrow:disabled { color: var(--dim2); }
.ss-mid { display: flex; flex-direction: column; align-items: center; min-width: 92px; line-height: 1.05; }
.ss-mid small { font: 700 9px var(--f-disp); letter-spacing: .24em; color: var(--dim); }
.ss-mid b { font-size: 26px; color: #fff; text-shadow: 0 0 10px rgba(25,230,255,.6); }
.ss-bonus { font-size: 10.5px; color: var(--lime); white-space: nowrap; }
.btn-dive { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 380px; min-height: 76px; padding: 8px 40px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  background: linear-gradient(180deg, rgba(255,43,214,.5), rgba(255,43,214,.14)); box-shadow: inset 0 0 0 2px var(--mag), inset 0 0 40px rgba(255,43,214,.35);
  transition: transform .15s var(--ease), background .2s; }
.btn-dive:hover { background: linear-gradient(180deg, rgba(255,43,214,.75), rgba(255,43,214,.22)); }
.btn-dive:active { transform: scale(.98); }
.bd-glow { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%); transform: translateX(-100%); animation: sweep 2.8s var(--ease) infinite; pointer-events: none; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.bd-main { font: 900 34px var(--f-disp); letter-spacing: .3em; color: #fff; text-shadow: 0 0 18px var(--mag), 0 0 4px #fff; line-height: 1; }
.bd-main b { color: #FFB8F3; letter-spacing: 0; }
.bd-sub { margin-top: 4px; font-size: 12px; letter-spacing: .14em; color: #FFC9F5; }
.btn-dive.fire { animation: fire .4s var(--ease); }
@keyframes fire { 30% { filter: brightness(2.2); transform: scale(1.03); } }

/* ---------------- hangar responsive ---------------- */
@media (max-height: 760px) {
  .hg-top { padding-top: calc(8px + var(--sat)); padding-bottom: 8px; }
  .cur span { font-size: 28px; }
  .btn-dive { min-height: 64px; }
  .bd-main { font-size: 28px; }
  .hg-body { padding-top: 10px; gap: 14px; }
  .card { gap: 5px; padding: 10px 12px; }
  .cd-desc { min-height: 0; -webkit-line-clamp: 1; }
  .st-row { padding: 3px 0; }
}
.mode-mobile .hg-top { padding: calc(8px + var(--sat)) calc(12px + var(--sar)) 8px calc(12px + var(--sal)); gap: 8px; }
.mode-mobile .brand-mark, .mode-mobile .brand-s { display: none; }
.mode-mobile .brand-t { font-size: 13px; letter-spacing: .18em; }
.mode-mobile .hg-cur { gap: 10px; }
.mode-mobile .cur span { font-size: 24px; }
.mode-mobile .corecur span { font-size: 19px; }
.mode-mobile .cur .ic { width: 20px; height: 20px; }
.mode-mobile .cur em { display: none; }
.mode-mobile .icon-btn { width: 36px; height: 36px; }
.mode-mobile .hg-body { display: flex; flex-direction: column; gap: 6px; padding: 6px calc(10px + var(--sar)) 0 calc(10px + var(--sal)); }
.mode-mobile .hg-left { flex: none; height: clamp(120px, 21vh, 190px); }
.mode-mobile .holo { min-height: 0; }
.mode-mobile .hl-name { font-size: 15px; }
.mode-mobile .hl-sub { font-size: 10px; }
.mode-mobile .holo-dps b { font-size: 20px; }
.mode-mobile .holo-rings { width: 60%; bottom: 2%; }
.mode-mobile .hg-right { flex: 1; }
.mode-mobile .tab { flex: 1; padding: 10px 4px 9px; font-size: 11px; letter-spacing: .1em; text-align: center; }
.mode-mobile .tab small { margin-left: 3px; }
.mode-mobile .tab-stats { display: block; }
.mode-mobile .tabpane { padding: 10px 0 14px; }
.mode-mobile .cards { grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-mobile .card { --c: 10px; padding: 9px 9px 8px; gap: 5px; }
.mode-mobile .card:hover { transform: none; }
.mode-mobile .cd-head { gap: 6px; }
.mode-mobile .cd-ic { width: 28px; height: 28px; }
.mode-mobile .cd-ic .ic { width: 15px; height: 15px; }
.mode-mobile .cd-name { font-size: 10px; letter-spacing: .02em; white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mode-mobile .tab[data-tab=systems] small { display: none; }
.mode-mobile .cd-lv { font-size: 10.5px; }
.mode-mobile .lv-n { font-size: 12px; }
.mode-mobile .pin-btn { width: 26px; height: 26px; margin-right: -4px; }
.mode-mobile .cd-desc { font-size: 11.5px; min-height: 0; -webkit-line-clamp: 2; }
.mode-mobile .cd-eff { font-size: 11px; padding: 4px 6px; gap: 4px; }
.mode-mobile .buy { min-height: 38px; padding: 6px 8px; font-size: 10px; letter-spacing: .08em; }
.mode-mobile .buy .bc { font-size: 12.5px; }
.mode-mobile .bulk .buy { flex-direction: column; gap: 0; min-height: 36px; padding: 3px 4px; justify-content: center; }
.mode-mobile .bulk .buy .bc { font-size: 10.5px; }
.mode-mobile .tl-long { display: none; }
.mode-mobile .matrix-wrap { display: flex; flex-direction: column; gap: 10px; }
.mode-mobile .matrix { min-height: 520px; }
.mode-mobile .mx-detail { position: sticky; bottom: 0; top: auto; order: 2; padding: 12px; gap: 7px; }
.mode-mobile .mxd-desc { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mode-mobile .mxd-hex { width: 40px; height: 46px; }
.mode-mobile .mxd-name { font-size: 15px; }
.mode-mobile .mxd-cost b { font-size: 20px; }
.mode-mobile .btn-install { min-height: 38px; }
.mode-mobile .mx-detail::before { background: rgba(5,9,24,.95); }
.mode-mobile .stats-panel { margin-top: 2px; }
.mode-mobile .stats { grid-template-columns: 1fr; }
.mode-mobile .hg-foot { padding: 8px calc(10px + var(--sar)) calc(10px + var(--sab)) calc(10px + var(--sal)); gap: 8px; }
.mode-mobile .btn-dive { flex: 1; min-width: 0; min-height: 66px; padding: 6px 10px; }
.mode-mobile .bd-main { font-size: 28px; }
.mode-mobile .bd-sub { font-size: 10.5px; letter-spacing: .08em; }
.mode-mobile .ss-arrow { width: 30px; }
.mode-mobile .ss-mid { min-width: 64px; }
.mode-mobile .ss-mid b { font-size: 21px; }
.mode-mobile .ss-bonus { font-size: 9px; }

/* ========================================================== RESULT */
.scr-result.on { pointer-events: auto; display: grid; place-items: center; cursor: pointer; }
.rs-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(5,6,15,.55), rgba(5,6,15,.9)); backdrop-filter: blur(2px); }
.rs-panel { --c: 18px; position: relative; width: min(560px, calc(100vw - 28px)); padding: 26px 28px 20px; }
.rs-panel.rise { animation: rise .7s var(--ease); }
@keyframes rise { from { transform: translateY(70px); opacity: 0; } }
.rs-head { text-align: center; margin-bottom: 18px; }
.rs-kicker { font-size: 12px; letter-spacing: .32em; color: var(--mag); }
.rs-title { font: 900 clamp(22px, 5vw, 32px) var(--f-disp); letter-spacing: .14em; color: #fff; text-shadow: 0 0 18px rgba(25,230,255,.7); margin-top: 4px; }
.rs-rows { display: flex; flex-direction: column; gap: 6px; }
.rs-row { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; opacity: 0; transform: translateX(-18px);
  background: linear-gradient(90deg, rgba(25,230,255,.08), transparent); border-left: 2px solid rgba(25,230,255,.5); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.rs-row.in { opacity: 1; transform: none; }
.rk { font: 700 12px var(--f-disp); letter-spacing: .2em; color: var(--dim); }
.rv { font-size: 20px; font-weight: 800; color: #fff; }
.rv.up { color: var(--lime); text-shadow: 0 0 10px rgba(182,255,60,.6); }
.rv.down { color: #FF8297; }
.rs-row.big { padding: 14px 12px; background: linear-gradient(90deg, rgba(182,255,60,.12), transparent); border-left-color: var(--lime); }
.rs-row.big .rv { font-size: clamp(30px, 7vw, 42px); text-shadow: 0 0 18px currentColor; }
.rs-row.rec { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(255,214,10,.16), transparent); box-shadow: inset 0 0 0 1px rgba(255,214,10,.55), 0 0 18px rgba(255,214,10,.2); }
.rs-rec { position: absolute; right: 10px; top: -8px; font: 800 9px var(--f-mono); letter-spacing: .16em; font-style: normal; color: #05060F; background: var(--gold); padding: 1px 6px; box-shadow: 0 0 10px var(--gold); }
.rs-foot { margin-top: 18px; text-align: center; font: 700 12px var(--f-mono); letter-spacing: .24em; color: var(--dim); opacity: 0; transition: opacity .4s; }
.rs-foot.show { opacity: 1; }

/* ========================================================== PAUSE */
.scr-pause.on { pointer-events: auto; display: grid; place-items: center; }
.pa-dim { position: absolute; inset: 0; background: rgba(5,6,15,.72); backdrop-filter: blur(4px); }
.pa-panel { --c: 18px; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: min(400px, calc(100vw - 32px)); padding: 26px 26px 20px; animation: rise .45s var(--ease); }
.pa-title { font: 900 24px var(--f-disp); letter-spacing: .22em; text-align: center; color: #fff; text-shadow: 0 0 16px rgba(25,230,255,.7); }
.pa-info { text-align: center; font-size: 12px; color: var(--cyan); letter-spacing: .08em; margin-bottom: 6px; }
.pa-panel .btn-hero { min-width: 0; }
.pa-hint { margin-top: 4px; text-align: center; font: 600 10px var(--f-mono); letter-spacing: .1em; color: var(--dim); }

/* ========================================================== ENDING */
.scr-ending.on { pointer-events: auto; background: #03040b; overflow: hidden; }
.en-white { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.scr-ending.on .en-white { animation: whiteOut 2.2s ease-out; }
@keyframes whiteOut { 0% { opacity: 1; } 100% { opacity: 0; } }
.en-stars { position: absolute; inset: -50%; background:
  radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #9ff, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #f9f, transparent),
  radial-gradient(1px 1px at 85% 15%, #fff, transparent), radial-gradient(1px 1px at 10% 70%, #fff, transparent);
  background-size: 300px 300px; opacity: .6; animation: stars 30s linear infinite; }
@keyframes stars { to { transform: translateY(300px); } }
.en-roll { position: absolute; left: 50%; top: 0; width: min(560px, calc(100vw - 32px)); transform: translate(-50%, 18vh); text-align: center; padding-bottom: 20vh; }
.en-roll.go { animation: credits 30s 3s linear forwards; }
@keyframes credits { from { transform: translate(-50%, 18vh); } to { transform: translate(-50%, calc(-100% + 62vh)); } }
.en-k { font-size: 12px; letter-spacing: .4em; color: var(--mag); }
.en-logo { font: 900 clamp(34px, 9vw, 64px) var(--f-disp); line-height: 1.05; letter-spacing: .12em; margin: 14px 0 10px;
  background: linear-gradient(90deg, var(--cyan), #fff, var(--mag)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(25,230,255,.5)); }
.en-thanks { font: 700 16px var(--f-disp); letter-spacing: .4em; color: #BFF4FF; margin-bottom: 60px; }
.en-block { display: flex; flex-direction: column; gap: 10px; padding: 20px; margin-bottom: 80px; box-shadow: inset 0 0 0 1px rgba(255,214,10,.5); background: rgba(255,214,10,.05); }
.en-l { display: flex; justify-content: space-between; align-items: baseline; font: 700 13px var(--f-disp); letter-spacing: .22em; color: var(--dim); margin-top: 26px; }
.en-block .en-l { margin-top: 0; }
.en-l:not(:has(b)) { justify-content: center; }
.en-l b { font-size: 22px; color: var(--gold); text-shadow: 0 0 12px rgba(255,214,10,.6); letter-spacing: 0; }
.en-n { font: 600 22px var(--f-body); color: #fff; letter-spacing: .08em; margin-top: 6px; }
.en-h { margin: 90px 0 10px; font: 900 18px var(--f-disp); letter-spacing: .4em; color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.en-final { margin: 120px 0 0; font: 700 14px var(--f-mono); letter-spacing: .4em; color: var(--dim); }
.en-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 40px 16px calc(20px + var(--sab)); opacity: 0; animation: fillIn .8s 2.5s forwards;
  background: linear-gradient(0deg, #03040b 40%, transparent); }
.scr-ending::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18vh; z-index: 1; background: linear-gradient(180deg, #03040b 30%, transparent); pointer-events: none; }

/* ========================================================== OVERLAYS */
.ovl { position: absolute; inset: 0; display: none; place-items: center; pointer-events: auto; z-index: 40; }
.ovl.open { display: grid; }
.ovl-confirm { z-index: 45; }
.ovl-dim { position: absolute; inset: 0; background: rgba(3,4,11,.72); backdrop-filter: blur(3px); }
.set-panel, .cf-panel { --c: 16px; position: relative; width: min(460px, calc(100vw - 28px)); padding: 20px 22px 22px; animation: rise .35s var(--ease); }
.set-h { display: flex; align-items: center; gap: 10px; font: 900 18px var(--f-disp); letter-spacing: .22em; color: #fff; margin-bottom: 12px; }
.set-h .x { margin-left: auto; font-size: 16px; }
.set-row { display: grid; grid-template-columns: 1fr 1.3fr 48px; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(25,230,255,.1); font: 700 13px var(--f-disp); letter-spacing: .14em; color: #BFD3EC; cursor: pointer; }
.set-row b { text-align: right; font-size: 13px; color: var(--cyan); }
.set-row input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --v: 50%; }
.set-row input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--cyan) var(--v), rgba(108,134,168,.35) var(--v)); }
.set-row input[type=range]::-moz-range-track { height: 4px; background: linear-gradient(90deg, var(--cyan) var(--v), rgba(108,134,168,.35) var(--v)); }
.set-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 18px; margin-top: -7px; background: #fff; box-shadow: 0 0 10px var(--cyan); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.set-row input[type=range]::-moz-range-thumb { width: 14px; height: 18px; border: 0; border-radius: 0; background: #fff; }
.set-row.tog { grid-template-columns: 1fr auto; }
.set-row.tog input { position: absolute; opacity: 0; pointer-events: none; }
.sw { position: relative; width: 48px; height: 24px; background: rgba(108,134,168,.25); box-shadow: inset 0 0 0 1px rgba(108,134,168,.6); transition: .2s var(--ease); }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: var(--dim); transition: .25s var(--ease); }
.set-row.tog input:checked + .sw { background: rgba(25,230,255,.25); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 12px rgba(25,230,255,.4); }
.set-row.tog input:checked + .sw::after { left: 27px; background: #fff; box-shadow: 0 0 8px var(--cyan); }
.set-row.tog input:focus-visible + .sw { outline: 2px solid var(--cyan); outline-offset: 2px; }
.set-danger { margin-top: 18px; display: flex; justify-content: flex-end; }
.cf-t { font: 900 18px var(--f-disp); letter-spacing: .18em; color: #fff; }
.cf-m { margin: 10px 0 18px; font-size: 15px; line-height: 1.4; color: #BFD3EC; }
.cf-btns { display: flex; justify-content: flex-end; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  .bd-glow, .en-stars, .mx-e.flow, .mx-e.avail { animation: none; }
}

/* ========================================================== crisp 1px borders on cut-corner controls
   (outer = border colour --bd, ::before inset = fill --bf, so the diagonal corners keep their border) */
.btn, .buy, .btn-dive, .m-pause, .sector-sel, .m-goal { position: relative; isolation: isolate; }
.btn, .btn:hover:not(:disabled), .buy, .buy:hover:not(:disabled), .btn-dive, .btn-dive:hover, .m-pause, .sector-sel, .m-goal { background: var(--bd); box-shadow: none; }
.btn::before, .buy::before, .btn-dive::before, .m-pause::before, .sector-sel::before, .m-goal::before {
  content: ''; position: absolute; inset: 1px; z-index: -1; clip-path: inherit; background: var(--bf); background-color: #060b1c; box-shadow: var(--bg-in, none); transition: box-shadow .2s; }
.btn-dive::before { inset: 2px; }
.btn { --bd: rgba(25,230,255,.6); --bf: linear-gradient(180deg, rgba(25,230,255,.18), rgba(7,14,34,.88)); }
.btn:hover:not(:disabled) { --bd: var(--cyan); --bf: linear-gradient(180deg, rgba(25,230,255,.34), rgba(7,14,34,.85)); --bg-in: inset 0 0 22px rgba(25,230,255,.35); filter: drop-shadow(0 0 8px rgba(25,230,255,.45)); }
.btn-ghost { --bd: rgba(108,134,168,.55); --bf: linear-gradient(rgba(12,20,44,.9), rgba(7,12,30,.9)); }
.btn-warn { --bd: rgba(255,51,85,.75); --bf: linear-gradient(180deg, rgba(255,51,85,.2), rgba(20,6,16,.88)); }
.btn-warn:hover:not(:disabled) { --bd: var(--warn); --bf: linear-gradient(180deg, rgba(255,51,85,.42), rgba(20,6,16,.85)); --bg-in: inset 0 0 22px rgba(255,51,85,.4); filter: drop-shadow(0 0 8px rgba(255,51,85,.5)); }
.btn-hero { --bd: var(--mag); --bf: linear-gradient(180deg, rgba(255,43,214,.36), rgba(26,6,34,.9)); --bg-in: inset 0 0 30px rgba(255,43,214,.25); }
.btn-hero:hover:not(:disabled) { --bd: #ff8ef0; --bf: linear-gradient(180deg, rgba(255,43,214,.6), rgba(26,6,34,.85)); --bg-in: inset 0 0 40px rgba(255,43,214,.5); filter: drop-shadow(0 0 12px rgba(255,43,214,.6)); }
.btn-install.can { --bd: var(--mag); --bf: linear-gradient(180deg, rgba(255,43,214,.45), rgba(26,6,34,.9)); }
.buy { --bd: rgba(25,230,255,.75); --bf: linear-gradient(180deg, rgba(25,230,255,.28), rgba(6,20,40,.9)); }
.buy:hover:not(:disabled) { --bd: #8ff3ff; --bf: linear-gradient(180deg, rgba(25,230,255,.5), rgba(6,20,40,.85)); --bg-in: inset 0 0 18px rgba(25,230,255,.5); }
.buy.no, .buy.no:hover:not(:disabled) { --bd: rgba(255,51,85,.4); --bf: linear-gradient(rgba(40,10,24,.9), rgba(18,8,20,.95)); --bg-in: none; }
.buy:disabled { --bd: rgba(255,214,10,.5); --bf: linear-gradient(rgba(60,48,6,.6), rgba(30,24,4,.85)); }
.btn-dive { --bd: var(--mag); --bf: linear-gradient(180deg, rgba(255,43,214,.5), rgba(40,6,40,.92)); --bg-in: inset 0 0 40px rgba(255,43,214,.35); filter: drop-shadow(0 0 14px rgba(255,43,214,.45)); }
.btn-dive:hover { --bd: #ff9df2; --bf: linear-gradient(180deg, rgba(255,43,214,.75), rgba(40,6,40,.88)); }
.m-pause { --bd: rgba(108,134,168,.7); --bf: linear-gradient(rgba(14,22,48,.9), rgba(9,16,38,.9)); }
.sector-sel { --bd: rgba(25,230,255,.45); --bf: linear-gradient(rgba(25,230,255,.1), rgba(9,16,38,.9)); }
.m-goal { --bd: rgba(182,255,60,.35); --bf: linear-gradient(rgba(9,16,38,.85), rgba(9,16,38,.85)); }

/* matrix detail close (mobile bottom sheet) */
.mxd-x { display: none; position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; color: var(--dim); font-size: 15px; z-index: 1; }
.mode-mobile .mxd-x { display: block; }
.mode-mobile .mx-detail.hide { display: none; }
.mode-mobile .mx-detail { animation: rise .3s var(--ease); }
.mode-mobile .scr-hangar[data-tab=matrix] .hg-left, .mode-mobile .scr-hangar[data-tab=stats] .hg-left { height: 64px; }
.mode-mobile .scr-hangar[data-tab=matrix] .holo-rings, .mode-mobile .scr-hangar[data-tab=stats] .holo-rings,
.mode-mobile .scr-hangar[data-tab=matrix] .holo::after, .mode-mobile .scr-hangar[data-tab=stats] .holo::after { display: none; }
.mode-mobile .scr-hangar[data-tab=matrix] .hg-left, .mode-mobile .scr-hangar[data-tab=stats] .hg-left { transition: height .3s var(--ease); }
.mode-mobile .mx-detail { align-self: stretch; }
.mode-mobile .mxd-head { padding-right: 30px; }
.warn-stripe { white-space: nowrap; overflow: hidden; }
.warn-stripe b { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mode-mobile .warn-stripe { font-size: 11px; letter-spacing: .1em; gap: 8px; padding: 7px 8px; }
.mode-mobile .warn-stripe span:last-child { display: none; }
.rv { white-space: nowrap; }
.mode-mobile .rs-panel { padding: 22px 16px 16px; }
.mode-mobile .rk { font-size: 10.5px; letter-spacing: .14em; }
.mode-mobile .rv { font-size: 17px; }
