/* ==========================================================================
 * Cloudpaw Skyblitz — 45° Chamfered Tactical Steel Cockpit UI (`tactical_angled_steel`)
 * Full-bleed 100vw×100vh sky arena + floating chamfered cockpit HUD + >= 18 real
 * 9-slice `border-image` regions + Round 5 spatial budgets + ZERO backdrop-filter blur.
 * ========================================================================== */

:root,
html[data-ui-vault-style="tactical_angled_steel"] {
  --cockpit-gunmetal: #141A22;
  --cockpit-surface: #1A212C;
  --cockpit-slate: #263140;
  --tactical-amber: #F5A623;
  --tactical-gold: #FFD15C;
  --tactical-cyan: #38BDF8;
  --tactical-cobalt: #2B8AE2;
  --tactical-crimson: #E13436;
  --tactical-emerald: #10B981;
  --ink-dark: #0F172A;
  --text-crisp: #F8FAFC;
  --text-muted: #CBD5E1;

  --font-display: 'Bahnschrift', 'Segoe UI Black', 'Impact', system-ui, sans-serif;
  --font-telemetry: 'Bahnschrift', 'Consolas', monospace;
  --font-body: 'Bahnschrift', 'Segoe UI Semibold', 'Segoe UI', system-ui, sans-serif;

  /* TrackBUIMotion v2.7.0 <-> UI Vault Slot VFX Contract */
  --tb-slot-style: 'tactical_angled_steel';
  --tb-slot-shape: chamfer;
  --tb-slot-radius: 0px;
  --tb-slot-chamfer: 10px;
  --tb-slot-inset: 2px 2px 2px 2px;
  --tb-slot-palette: tactical_amber;
  --tb-slot-mode: lightning_slot;
  --tb-slot-daylight: 0;
  --tb-slot-z: 3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-drag: none;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--cockpit-gunmetal);
  color: var(--text-crisp);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.telemetry-num {
  font-family: 'Chakra Petch', 'Consolas', monospace;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.amber-text { color: var(--tactical-gold); }
.cyan-text { color: var(--tactical-cyan); }

/* ==================== SHELL & FULL-BLEED CANVASES ==================== */

#game-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  touch-action: none;
}

.idle-overlay-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  display: none;
}

#vfx3d-canvas { z-index: 18; }
#cutin-canvas { z-index: 88; }
#uimotion-overlay-canvas { z-index: 92; }

.screen-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==================== 9-SLICE TACTICAL ANGLED STEEL PRIMITIVES ==================== */

.uiv-frame-modal {
  background-color: #1B222C;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 16px 16px 17px 16px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/frame_modal.png') 41 41 42 41 fill / 16px 16px 17px 16px / 0 stretch;
  filter: drop-shadow(0 12px 24px rgba(6, 10, 18, 0.72));
}

.uiv-frame-subpanel {
  background-color: #242A32;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 12px 12px 12px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/frame_subpanel.png') 100 91 98 88 fill / 12px 12px 12px 12px / 0 stretch;
  filter: drop-shadow(0 5px 10px rgba(6, 10, 18, 0.52));
}

.uiv-ribbon-header {
  background-color: #242A32;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 16px 10px 16px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/ribbon_header.png') 59 92 58 92 fill / 10px 16px 10px 16px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
}

.uiv-hud-pill {
  background-color: #242A32;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 12px 10px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/hud_pill.png') 54 56 54 57 fill / 10px 12px 10px 12px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  filter: drop-shadow(0 4px 8px rgba(6, 10, 18, 0.5));
}

.uiv-slot-tile {
  background-color: #242A32;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 10px 11px 10px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/slot_tile.png') 95 95 98 95 fill / 10px 10px 11px 10px / 0 stretch;
  color: #FFFFFF;
}

.uiv-btn-primary {
  background-color: #F5A623;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 14px 12px 9px 13px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/btn_primary.png') 97 54 58 75 fill / 14px 12px 9px 13px / 0 stretch;
  color: #141821;
  font-family: var(--font-display);
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  position: relative;
  overflow: visible !important;
  filter: drop-shadow(0 4px 8px rgba(6, 10, 18, 0.55));
}

.uiv-btn-secondary,
.uiv-pill-btn {
  background-color: #1E7AD4;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 12px 11px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/btn_secondary.png') 56 66 59 66 fill / 10px 12px 11px 12px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 0 1.5px 2px rgba(8, 13, 24, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  position: relative;
  overflow: visible !important;
  filter: drop-shadow(0 4px 8px rgba(6, 10, 18, 0.5));
}

.uiv-btn-danger {
  background-color: #DC3B3B;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 10px 12px 10px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/btn_danger.png') 57 68 57 64 fill / 10px 12px 10px 12px / 0 stretch;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 800;
  text-shadow: 0 1.5px 2px rgba(15, 6, 8, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  position: relative;
  overflow: visible !important;
  filter: drop-shadow(0 4px 8px rgba(6, 10, 18, 0.5));
}

.uiv-btn-disabled,
.uiv-btn-primary:disabled,
.uiv-btn-secondary:disabled,
.uiv-btn-danger:disabled {
  background: transparent !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 10px 12px 10px 12px !important;
  border-image: url('../assets/ui/vault_tactical_angled_steel/btn_disabled.png') 56 69 57 69 fill / 10px 12px 10px 12px / 0 stretch !important;
  color: #CBD5E1 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6) !important;
  cursor: not-allowed !important;
  opacity: 0.88;
}

.uiv-card-common {
  background-color: #293038;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 11px 11px 13px 11px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/card_common.png') 96 90 119 87 fill / 11px 11px 13px 11px / 0 stretch;
  color: #FFFFFF;
}

.uiv-card-rare {
  background-color: #282F37;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 11px 11px 12px 11px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/card_rare.png') 95 95 89 84 fill / 11px 11px 12px 11px / 0 stretch;
  color: #FFFFFF;
}

.uiv-card-epic {
  background-color: #293038;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 11px 11px 12px 11px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/card_epic.png') 95 95 96 88 fill / 11px 11px 12px 11px / 0 stretch;
  color: #FFFFFF;
}

.uiv-card-legendary {
  background-color: #293038;
  background-clip: padding-box;
  border-style: solid;
  border-color: transparent;
  border-width: 11px 11px 13px 11px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/card_legendary.png') 91 89 132 87 fill / 11px 11px 13px 11px / 0 stretch;
  color: #FFFFFF;
}

.uiv-bar-track {
  position: relative;
  background: transparent;
  border-style: solid;
  border-color: transparent;
  border-width: 4px 5px 4px 5px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/bar_track.png') 36 39 40 40 fill / 4px 5px 4px 5px / 0 stretch;
  height: 14px;
  overflow: hidden;
}

.uiv-bar-fill {
  height: 100%;
  min-width: 0;
  background: transparent;
  border-style: solid;
  border-color: transparent;
  border-width: 3px 4px 3px 4px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/bar_fill_primary.png') 24 30 24 30 fill / 3px 4px 3px 4px / 0 stretch;
  transition: width 0.14s ease-out;
}

.uiv-bar-fill.hp-fill { filter: hue-rotate(-8deg) saturate(1.15); }
.uiv-bar-fill.xp-fill { filter: hue-rotate(42deg) brightness(1.08); }
.uiv-bar-fill.od-fill { filter: hue-rotate(-118deg) saturate(1.55) brightness(1.12); }
.uiv-bar-fill.boss-fill { filter: hue-rotate(-148deg) saturate(1.65); }

.uiv-tab {
  background: rgba(20, 26, 34, 0.85);
  border: 2px solid #475569;
  color: #CBD5E1;
  font-family: var(--font-display);
  font-size: 12.5px;
  padding: 5px 11px;
  cursor: pointer;
  min-width: 0;
  position: relative;
  overflow: visible !important;
  white-space: nowrap;
}

.uiv-tab.active {
  background: transparent;
  border-style: solid;
  border-color: transparent;
  border-width: 9px 12px 4px 12px;
  border-image: url('../assets/ui/vault_tactical_angled_steel/tab_active.png') 61 87 11 89 fill / 9px 12px 4px 12px / 0 stretch;
  color: #FFFFFF;
  text-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.8);
}

.modal-close-x {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: none;
  background: url('../assets/ui/vault_tactical_angled_steel/btn_close.png') center / contain no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

/* Safe Button Text Span & Unclipped Notification Badges */
.btn-label {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.has-badge,
.uiv-popout {
  position: relative;
  overflow: visible !important;
}

/* Anchor inside padding-box right edge (right: 0) so scrollWidth === clientWidth (0px DOM overflow at 720p..4K) while lifting above text */
.notify-badge {
  position: absolute;
  top: -14px;
  right: 0;
  z-index: 8;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, #FF5964 0%, #D91E2A 100%);
  border: 2px solid #0F172A;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ==================== HEROIC NO-BOX TITLE SCREEN (0 BOXED_LOGIN_TITLE_SCREEN) ==================== */

#title-screen {
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 28px;
}

.title-bg-layer {
  position: absolute;
  inset: 0;
  background: url('../assets/art/title_bg.png') center / cover no-repeat;
  z-index: 0;
}

.title-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 64% at 54% 52%, rgba(9, 15, 28, 0.48) 0%, rgba(9, 15, 28, 0.14) 58%, rgba(8, 13, 24, 0.56) 100%),
    linear-gradient(180deg, rgba(8, 13, 24, 0.42) 0%, rgba(8, 13, 24, 0.04) 26%, rgba(8, 13, 24, 0.18) 72%, rgba(8, 13, 24, 0.68) 100%);
  z-index: 1;
  pointer-events: none;
}

.title-resource-bar {
  position: absolute;
  top: 14px;
  left: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-top-bar {
  position: absolute;
  top: 14px;
  right: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-util-btn {
  min-height: 38px;
  font-size: 13px;
  padding: 2px 11px;
}

.title-util-icon-btn {
  width: 46px;
  height: 38px;
  min-width: 46px;
  padding: 0;
}

.util-btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.title-center-stage {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 62px);
  width: min(1220px, 95vw);
  background: transparent !important;
  border: none !important;
}

.title-hero-showcase {
  position: relative;
  flex: 0 1 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible !important;
}

.title-hero-halo {
  position: absolute;
  width: 310px;
  height: 310px;
  top: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.42) 0%, rgba(56, 189, 248, 0.2) 48%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}

#title-hero-portrait {
  width: clamp(240px, 24vw, 336px);
  height: auto;
  max-height: 380px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 16px 26px rgba(6, 10, 20, 0.72));
}

.title-pilot-tag {
  margin-top: -12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 14px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--tactical-gold);
}

.uiv-inline-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Strictly ZERO background/border box around h1 so Key Art breathes 100%! */
.title-heroic-stack {
  flex: 1 1 560px;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: transparent !important;
  border: none !important;
  border-image: none !important;
  box-shadow: none !important;
  padding: 0;
}

.title-ribbon {
  align-self: flex-start;
  padding: 3px 16px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--tactical-gold);
}

.game-logo-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(50px, 4.9vw, 70px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.025em;
  color: #FFE46B;
  -webkit-text-stroke: 3px #0A101C;
  paint-order: stroke fill;
  text-shadow:
    0 4px 0 #854607,
    0 8px 0 #0A101C,
    0 16px 30px rgba(4, 8, 18, 0.88);
}

.game-logo-subtitle {
  margin: -2px 0 4px;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(4, 8, 18, 0.95), 0 0 14px rgba(8, 15, 28, 0.85);
}

.boot-loading-wrap {
  width: min(440px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px;
}

.boot-loading-head {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tactical-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.boot-bar-track {
  height: 18px;
}

.title-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.title-play-cta {
  min-width: 280px;
  width: min(370px, 84vw);
  min-height: 64px;
  font-size: clamp(20px, 1.85vw, 24px);
  letter-spacing: 0.05em;
  padding: 0 22px;
}

.btn-pop-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.btn-inline-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.title-dock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.title-dock-btn {
  min-height: 46px;
  font-size: 13.5px;
  padding: 0 14px;
}

/* ==================== FLOATING GAMEPLAY COCKPIT HUD ==================== */

#hud-layer {
  z-index: 30;
  pointer-events: none;
}

/* Remove per-frame Gaussian drop-shadow / box-shadow re-rasterization over animated 60fps canvas */
#hud-layer *,
#hud-layer .uiv-hud-pill,
#hud-layer .uiv-frame-subpanel,
#hud-layer .uiv-btn-primary,
#hud-layer .uiv-btn-secondary,
#hud-layer .uiv-btn-danger,
#hud-layer .tactical-skill-btn {
  filter: none !important;
  box-shadow: none !important;
}

/* Top HUD: ZERO solid full-width bar, nowrap across 1280x720..4K */
.top-cockpit-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  gap: 8px;
  background: linear-gradient(180deg, rgba(14, 20, 29, 0.56) 0%, rgba(14, 20, 29, 0.14) 74%, rgba(14, 20, 29, 0) 100%);
  pointer-events: none;
  z-index: 35;
}

.hud-cluster {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 7px;
  pointer-events: auto;
  min-width: 0;
}

.hud-cluster-center {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 1 auto;
}

.uiv-pop-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin: -6px 4px -6px -8px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55));
}

.hud-vital-pill {
  display: inline-flex;
  align-items: center;
  min-width: 168px;
  padding: 0 4px;
}

.hud-xp-pill {
  display: inline-flex;
  align-items: center;
  min-width: 112px;
  padding: 0 4px;
}

.vital-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.vital-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 13px;
  white-space: nowrap;
}

.lvl-tag {
  color: var(--tactical-gold);
  font-weight: 800;
}

.shield-pips {
  display: inline-flex;
  gap: 2px;
}

.shield-pip {
  width: 8px;
  height: 8px;
  background: var(--tactical-cyan);
  border: 1px solid #0F172A;
  transform: skewX(-18deg);
}

.hud-mini-bar {
  height: 10px;
}

.hud-wave-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  gap: 7px;
  padding: 1px 10px;
  font-size: 13.5px;
  white-space: nowrap;
}

.sector-tag {
  color: var(--tactical-cyan);
}

.score-amber {
  color: var(--tactical-gold);
}

.sep-dot {
  color: #64748B;
}

.boss-hud-wrap {
  width: min(360px, 30vw);
  background: rgba(15, 22, 32, 0.84);
  border: 1.5px solid rgba(225, 52, 54, 0.72);
  padding: 3px 8px 5px;
}

.boss-hud-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 13px;
  color: #FCA5A5;
  margin-bottom: 2px;
}

.boss-bar-track {
  height: 12px;
}

.hud-currency-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 78px;
  gap: 4px;
  padding: 0 6px 0 2px;
  font-size: 13.5px;
  white-space: nowrap;
}

.hud-top-btn {
  min-height: 38px;
  padding: 0 8px;
  font-size: 13px;
  white-space: nowrap;
}

.hud-top-btn.has-badge {
  padding-right: 12px;
}

.hud-top-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.hud-icon-only-btn {
  width: 40px;
  height: 38px;
  min-width: 40px;
  padding: 0;
  font-size: 13px;
}

.hud-icon-only-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.quit-glyph {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

/* ==================== LEFT FLOATING EVOLUTION CONNECTOR RAIL ==================== */

.left-evo-rail {
  position: fixed;
  left: 10px;
  top: 68px;
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  background: transparent !important;
  pointer-events: none;
}

.rail-header-chip {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--tactical-gold);
  padding: 0 7px;
  pointer-events: auto;
}

.evo-pair-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.evo-pair-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}

.evo-slot-tile {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-width: 7px 7px 8px 7px;
  padding: 0;
  overflow: visible !important;
}

.evo-slot-tile.passive-tile {
  width: 34px;
  height: 34px;
  border-width: 6px;
  opacity: 0.92;
}

.evo-slot-tile.is-empty {
  opacity: 0.42;
}

.evo-slot-tile.is-evolved {
  border-image: url('../assets/ui/vault_tactical_angled_steel/card_legendary.png') 91 89 132 87 fill / 7px 7px 8px 7px / 0 stretch;
}

.evo-slot-canvas-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.evo-slot-lvl {
  position: absolute;
  bottom: -6px;
  right: -4px;
  z-index: 7;
  background: #0F172A;
  border: 1px solid var(--tactical-amber);
  color: var(--tactical-gold);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 13px;
  padding: 0 3px;
}

.evo-connector-arrow {
  width: 20px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 13px;
  color: #E2E8F0;
  text-shadow: 0 1px 2px #0F172A;
  transition: color 0.2s ease, transform 0.2s ease;
}

.evo-connector-arrow.synergy-primed {
  color: var(--tactical-cyan);
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.85);
}

.evo-connector-arrow.synergy-evolved {
  color: var(--tactical-gold);
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.95);
  transform: scale(1.14);
}

/* ==================== RIGHT TELEMETRY WING & BOTTOM COMPACT SKILL CLUSTER ==================== */

.right-telemetry-wing {
  position: fixed;
  right: 12px;
  top: 68px;
  z-index: 32;
  pointer-events: none;
}

.telemetry-wing-card {
  width: 176px;
  padding: 5px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: auto;
}

.tw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.tw-label {
  color: #CBD5E1;
  font-weight: 700;
}

.tw-od-bar {
  height: 10px;
}

.tw-mini-toggle {
  background: #1E293B;
  border: 1px solid var(--tactical-amber);
  color: var(--tactical-gold);
  font-family: var(--font-display);
  font-size: 12px;
  padding: 2px 6px;
  cursor: pointer;
}

/* Round 5 Spatial Law: Compact 68-86px skill buttons, icon 58-70% height, align-content: start! */
.bottom-action-cluster {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 34;
  display: flex;
  align-items: flex-end;
  align-content: flex-start;
  gap: 12px;
  pointer-events: auto;
}

.tactical-skill-btn {
  position: relative;
  width: 82px;
  height: 82px;
  max-height: 86px;
  border-width: 7px 7px 8px 7px !important;
  padding: 2px 2px 1px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: flex-start;
  gap: 1px;
  cursor: pointer;
  overflow: visible !important;
}

.tactical-skill-btn.is-active-focus {
  outline: 2px solid var(--tactical-cyan);
  transform: translateY(-2px);
}

.tactical-skill-btn.is-od-ready {
  outline: 2px solid var(--tactical-gold);
}

.skill-btn-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
  flex-shrink: 0;
}

.skill-btn-name {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.05;
  color: #F8FAFC;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotkey-chip {
  position: absolute;
  top: -13px;
  left: -6px;
  z-index: 7;
  background: #0F172A;
  border: 1.5px solid #94A3B8;
  color: var(--tactical-gold);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 14px;
  padding: 1px 4px;
  pointer-events: none;
}

/* ==================== PILLAR 3: SPOTLIGHT RING + ANIMATED TUT-HAND + 3-ICON GUIDE ==================== */

.tut-spotlight-layer {
  position: fixed;
  inset: 0;
  z-index: 37;
  pointer-events: none !important;
}

.tut-spotlight {
  position: fixed;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  border: 3px solid #FFD15C;
  outline: 2px solid #38BDF8;
  border-radius: 6px;
  background: rgba(245, 166, 35, 0.08);
  pointer-events: none !important;
  will-change: transform;
  animation: tutPulse 1.1s ease-in-out infinite;
}

.tut-hand-wrap {
  position: fixed;
  transform: translate(-50%, 0);
  pointer-events: none !important;
}

.tut-hand {
  font-size: 36px;
  line-height: 1;
  pointer-events: none !important;
  will-change: transform;
  animation: tutHandBob 0.85s ease-in-out infinite;
}

@keyframes tutPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.96; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

@keyframes tutHandBob {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50% { transform: translateY(10px) rotate(-6deg); }
}

.tutorial-callout {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: auto;
  max-width: min(500px, 62vw);
  z-index: 38;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 12px;
  pointer-events: auto;
}

.tut-body {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tut-step-badge {
  background: var(--tactical-amber);
  color: #0F172A;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  padding: 2px 7px;
  flex-shrink: 0;
}

.tut-step-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.tut-step-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #FFD15C;
  line-height: 1.2;
  white-space: nowrap;
}

.tut-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tut-btn {
  min-height: 34px;
  font-size: 12.5px;
  padding: 0 10px;
}

.cockpit-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 42;
  padding: 3px 16px;
  font-size: 13px;
  color: var(--tactical-gold);
  pointer-events: none;
  white-space: nowrap;
}

/* ==================== UNIFIED MODALS (ZERO backdrop-filter blur!) ==================== */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop,
.dlg-backdrop {
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 20, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-root.hidden,
.modal-root:empty,
.modal-root[aria-hidden="true"],
.modal-root.modal-closing,
.modal-root.modal-prewarm {
  pointer-events: none !important;
}

.modal-root.hidden,
.modal-root:empty {
  display: none !important;
}

.modal-root.hidden .dlg-backdrop,
.modal-root.hidden .modal-backdrop,
.modal-root[aria-hidden="true"] .dlg-backdrop,
.modal-root[aria-hidden="true"] .modal-backdrop,
.modal-root.modal-closing .dlg-backdrop,
.modal-root.modal-closing .modal-backdrop,
.modal-root.modal-prewarm *,
.dlg-backdrop.is-closing,
.modal-backdrop.is-closing {
  pointer-events: none !important;
}

/* Shield background interactive layers cleanly while any modal is open (0 occluded background buttons; sky/arena art stays visible behind veil) */
body.modal-open #title-screen {
  pointer-events: none !important;
}

body.modal-open #title-screen > :not(.title-bg-layer):not(.title-vignette),
body.modal-open #title-screen button,
body.modal-open #title-screen [role="button"],
body.modal-open #title-screen a,
body.modal-open #hud-layer,
body.modal-open #hud-layer button,
body.modal-open #hud-layer [role="button"],
body.modal-open #hud-layer a {
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal-card {
  width: min(920px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 14px 12px;
  overflow: visible;
  filter: none !important;
  will-change: opacity;
}

/* Disable expensive Gaussian filter: drop-shadow inside scaled modal subtrees to keep popup open < 16ms! */
.modal-card *,
.modal-card .uiv-btn-primary,
.modal-card .uiv-btn-secondary,
.modal-card .uiv-btn-danger,
.modal-card .uiv-frame-subpanel,
.modal-card .modal-close-x {
  filter: none !important;
}

.modal-card.modal-compact {
  width: min(520px, 92vw);
}

.modal-header,
.dlg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid rgba(100, 116, 139, 0.35);
}

.modal-ribbon-title,
.dlg-ribbon-title {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 20px);
  padding: 2px 14px;
  color: var(--tactical-gold);
  letter-spacing: 0.03em;
}

.modal-tabs-row,
.dlg-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-body-scroll,
.dlg-body-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 66vh;
  padding: 4px 4px 6px;
  scrollbar-width: thin;
  scrollbar-color: #475569 transparent;
}

.modal-footer-row,
.dlg-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

/* Draft 3-Card Grid */
.draft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 6px 2px;
}

.draft-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  cursor: pointer;
  overflow: visible !important;
  transition: transform 0.14s ease;
}

.draft-card:hover {
  transform: translateY(-3px);
}

.draft-card-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 10.5px;
}

.draft-rarity-tag {
  color: var(--tactical-gold);
  text-transform: uppercase;
}

.draft-evo-pill {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid #10B981;
  color: #6EE7B7;
  font-size: 10px;
  padding: 1px 6px;
  font-weight: 700;
}

.draft-icon-frame {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.draft-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #FFFFFF;
  overflow-wrap: break-word;
  max-width: 100%;
}

.draft-card-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #CBD5E1;
  overflow-wrap: break-word;
  max-width: 100%;
}

.draft-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Supply Shop 8-SKU Grid (fits 4x2 cleanly at 1280x720!) */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 4px 2px;
}

.shop-sku-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 8px 8px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  contain: layout style;
  overflow: visible !important;
}

.shop-sku-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  z-index: 8;
  background: linear-gradient(180deg, #F5A623 0%, #D97706 100%);
  border: 1.5px solid #0F172A;
  color: #0F172A;
  font-family: var(--font-display);
  font-size: 9.5px;
  padding: 1px 6px;
  pointer-events: none;
}

/* ==================== PILLAR 5: ANTI-SAAS 60/25/15 VISUAL-FIRST CARD SYSTEM ==================== */

.dlg-wallet-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid #475569;
  font-family: var(--font-telemetry);
  font-size: 14px;
  font-weight: 800;
  color: #F8FAFC;
}

.wallet-tag,
.currency-micro-lbl {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #94A3B8;
  text-transform: uppercase;
  white-space: nowrap;
}

.wallet-chip img,
.rwd-ico {
  width: 19px;
  height: 19px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.rwd-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.vf-subtabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.vf-subtab-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vf-subpill {
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid #475569;
  color: #CBD5E1;
  font-family: var(--font-display);
  font-size: 12.5px;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vf-subpill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.vf-subpill.active {
  background: rgba(245, 166, 35, 0.22);
  border-color: var(--tactical-amber);
  color: #FFE46B;
}

.vf-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vf-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.vf-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

/* Core 60/25/15 Visual-First Portrait Card (>= 55% art stage, <= 3-word title, stat chip, icon CTA) */
.vf-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 8px 8px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  overflow: visible !important;
}

.vf-card-wide {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible !important;
}

.vf-art-stage {
  width: 100%;
  min-height: 82px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #131B26;
  border: 1px solid rgba(100, 116, 139, 0.42);
  border-bottom: 2px solid #38BDF8;
}

.vf-art-stage.amber-stage {
  background-color: #1A1814;
  border-color: rgba(245, 166, 35, 0.48);
  border-bottom: 2px solid #F5A623;
}

.vf-art-stage.crimson-stage {
  background-color: #1C131B;
  border-color: rgba(244, 63, 94, 0.48);
  border-bottom: 2px solid #F43F5E;
}

.vf-art-stage-side {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #1A1814;
  border: 1px solid rgba(245, 166, 35, 0.48);
  border-bottom: 2px solid #F5A623;
}

.vf-art-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}

.vf-art-img.lg {
  width: 78px;
  height: 78px;
}

.vf-corner-tag {
  position: absolute;
  top: 4px;
  left: 5px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(245, 166, 35, 0.65);
  color: #FFE46B;
  font-family: var(--font-display);
  font-size: 11.5px;
  line-height: 1.1;
  padding: 2px 6px;
}

.vf-corner-right {
  position: absolute;
  top: 4px;
  right: 5px;
  background: rgba(16, 185, 129, 0.24);
  border: 1px solid #10B981;
  color: #6EE7B7;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.1;
  padding: 2px 5px;
}

.vf-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  max-width: 100%;
  overflow-wrap: break-word;
}

.vf-stat-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 3px 7px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #7DD3FC;
  font-family: var(--font-telemetry);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.22;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.vf-stat-chip.vf-perk-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1px;
  padding: 4px 4px;
  font-size: 11px;
  line-height: 1.2;
}

.vf-stat-chip.vf-perk-stack span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.vf-bp-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding-top: 14px;
}

.vf-bp-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 44%;
}

.vf-bp-node img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.vf-bp-node span {
  font-family: var(--font-telemetry);
  font-size: 10px;
  font-weight: 700;
  color: #CBD5E1;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
}

.vf-bp-plus {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: #FFD15C;
  flex-shrink: 0;
}

.vf-stat-chip.gold-chip {
  border-color: rgba(245, 166, 35, 0.55);
  color: #FFE46B;
}

.vf-meter {
  width: 100%;
  height: 9px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #475569;
  overflow: hidden;
}

.vf-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #F5A623 0%, #FFE46B 100%);
}

.vf-btn-split {
  width: 100%;
  display: flex;
  gap: 5px;
  margin-top: auto;
}

/* 3-Icon Visual Strip Feature Guide (`js/feature_guides.js`) */
.fg-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fg-visual-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 4px;
}

.fg-step-box {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.fg-step-num {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 22px;
  height: 22px;
  background: var(--tactical-amber);
  color: #0F172A;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fg-step-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.fg-step-lbl {
  font-family: var(--font-display);
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.2;
}

.fg-arrow {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--tactical-gold);
  flex-shrink: 0;
}

/* Pillar 6: Commercial 3-Star ResultLoot Tray & Icon Settings */
.res-hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: radial-gradient(circle at 50% 35%, rgba(245, 166, 35, 0.26) 0%, rgba(15, 23, 42, 0.75) 75%);
  border: 1px solid rgba(245, 166, 35, 0.42);
}

.res-star-strip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.res-star-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.res-star-img.dim {
  opacity: 0.28;
  filter: grayscale(1) !important;
}

.shop-sku-art {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.shop-sku-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12.5px;
  line-height: 1.15;
  color: #FFFFFF;
  max-width: 100%;
  overflow-wrap: break-word;
}

.shop-sku-desc {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.22;
  color: #CBD5E1;
  flex: 1;
  max-width: 100%;
  overflow-wrap: break-word;
}

.shop-buy-btn {
  width: 100%;
  min-height: 34px;
  font-size: 12px;
  padding: 0 6px;
}

/* Hangar, Research & Contracts Grids */
.hangar-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hangar-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.item-row-card {
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: visible !important;
}

.item-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.item-row-head img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.item-row-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  color: #FFFFFF;
  overflow-wrap: break-word;
}

.item-row-sub {
  font-size: 11.5px;
  color: #CBD5E1;
  line-height: 1.28;
}

.delta-preview {
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--tactical-cyan);
}

/* Settings Controls */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
}

.setting-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="range"].tactical-slider {
  width: 130px;
  accent-color: var(--tactical-amber);
  cursor: pointer;
}

.lang-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.lang-choice-btn {
  min-height: 34px;
  font-size: 11.5px;
  padding: 0 6px;
}

.lang-choice-btn.active {
  color: #141821;
  border-image: url('../assets/ui/vault_tactical_angled_steel/btn_primary.png') 97 54 58 75 fill / 11px 10px 8px 10px / 0 stretch;
}

/* Preview-Only [DEV F2] Panel */
.dev-pill-btn {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 140;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid var(--tactical-amber);
  color: var(--tactical-gold);
  font-family: var(--font-display);
  font-size: 10.5px;
  padding: 3px 8px;
  cursor: pointer;
}

.dev-panel-box {
  position: fixed;
  left: 10px;
  bottom: 40px;
  width: 280px;
  z-index: 140;
  background: rgba(15, 21, 30, 0.96);
  border: 2px solid var(--tactical-amber);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.dev-panel-grid button {
  background: #1E293B;
  border: 1px solid #475569;
  color: #F8FAFC;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 6px;
  cursor: pointer;
}

.dev-panel-grid button:hover {
  border-color: var(--tactical-amber);
  color: var(--tactical-gold);
}

/* ==================== 1280x720 COMPACT LAPTOP VIEWPORT RULES (>= 12.5px-13px HUD TEXT, NOWRAP!) ==================== */
@media (max-width: 1460px) {
  .top-cockpit-hud {
    padding: 5px 8px;
    gap: 5px;
  }

  .hud-cluster {
    gap: 4px;
  }

  .hud-vital-pill {
    min-width: 142px;
    border-width: 7px 9px 7px 9px;
  }

  .hud-xp-pill {
    min-width: 96px;
    border-width: 7px 9px 7px 9px;
  }

  .uiv-pop-icon {
    width: 24px;
    height: 24px;
    margin: -4px 3px -4px -5px;
  }

  .vital-label-row {
    font-size: 12.5px;
  }

  .hud-wave-banner {
    min-width: 148px;
    font-size: 13px;
    padding: 0 7px;
    border-width: 7px 10px 7px 10px;
    gap: 5px;
  }

  /* Keep center wave banner ultra-compact at 720p so 9-lang buttons never collide! */
  .hud-wave-banner .sector-tag,
  .hud-wave-banner .sep-dot:first-of-type {
    display: none;
  }

  .hud-currency-pill {
    min-width: 68px;
    font-size: 13px;
    border-width: 7px 8px 7px 8px;
    padding: 0 5px 0 1px;
  }

  .hud-top-btn {
    min-height: 34px;
    font-size: 12.5px;
    padding: 0 6px;
    gap: 4px;
    border-width: 7px 8px 8px 8px;
  }

  .hud-top-btn.has-badge {
    padding-right: 11px;
  }

  .hud-top-btn .notify-badge {
    top: -11px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 12px;
  }

  .hud-top-btn img {
    width: 19px;
    height: 19px;
  }

  .hud-icon-only-btn {
    width: 35px;
    height: 34px;
    min-width: 35px;
    border-width: 7px 8px 8px 8px;
    font-size: 12.5px;
  }

  .hud-icon-only-btn img {
    width: 19px;
    height: 19px;
  }

  .left-evo-rail {
    top: 54px;
    left: 7px;
  }

  .evo-slot-tile {
    width: 36px;
    height: 36px;
  }

  .evo-slot-tile.passive-tile {
    width: 29px;
    height: 29px;
  }

  .evo-slot-canvas-icon {
    width: 20px;
    height: 20px;
  }

  .right-telemetry-wing {
    top: 54px;
    right: 8px;
  }

  .telemetry-wing-card {
    width: 164px;
    padding: 4px 7px;
  }

  .tw-row {
    font-size: 12.5px;
  }

  .tw-mini-toggle {
    font-size: 12px;
  }

  .notify-badge {
    top: -11px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10.5px;
    line-height: 14px;
  }

  .tactical-skill-btn .notify-badge {
    top: -11px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 13px;
  }

  .tactical-skill-btn .hotkey-chip {
    font-size: 10.5px;
    line-height: 13px;
    padding: 1px 3px;
  }

  .tactical-skill-btn {
    width: 74px;
    height: 74px;
    border-width: 7px 7px 8px 7px !important;
    padding: 1px 2px !important;
    gap: 1px;
  }

  .skill-btn-icon {
    width: 44px;
    height: 44px;
  }

  .skill-btn-name {
    font-size: 12px;
    line-height: 1.05;
  }
}

@media (max-width: 960px) {
  .title-center-stage {
    flex-direction: column;
    gap: 12px;
  }

  #title-hero-portrait {
    max-height: 180px;
  }

  .sector-tag {
    display: none;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}
