:root {
  --bg: #070b14;
  --bg-glow: #141f39;
  --panel: rgba(15, 23, 42, 0.94);
  --panel-line: #24324f;
  --panel-line-heavy: #3a4f7a;
  --text: #dbe8ff;
  --muted: #8fa6cf;
  --accent: #60a5fa;
  --accent-2: #22c55e;
  --danger: #f87171;
  --gold: #fbbf24;
  --hud-void: #090d17;
  --hud-steel: #131c2d;
  --hud-plate: #1b263b;
  --hud-edge: #425879;
  --hud-rune: #6d86ad;
  --hud-alert: #f59e0b;
  --hud-glow: rgba(96, 165, 250, 0.28);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 31, 57, 0.95) 0%, rgba(20, 31, 57, 0) 34%),
    radial-gradient(circle at 80% 0%, rgba(96, 165, 250, 0.14) 0%, rgba(96, 165, 250, 0) 30%),
    linear-gradient(180deg, #0a1020 0%, var(--bg) 58%, #04070f 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overscroll-behavior: none;
  touch-action: manipulation;
}
body {
  min-height: 100dvh;
  overflow: hidden;
}
body.dead-screen {
  background:
    radial-gradient(circle at 20% 20%, rgba(92, 20, 20, 0.9) 0%, rgba(92, 20, 20, 0) 35%),
    linear-gradient(180deg, #1f0b12 0%, #12060a 55%, #080306 100%);
}
body.landing-body {
  overflow: auto;
  padding: 24px;
}
#game {
  display: block;
  width: 100vw;
  height: 100dvh;
  touch-action: none;
}
.hud {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: min(760px, calc(100vw - 24px));
  padding: 7px;
  border: 1px solid var(--hud-edge);
  background:
    linear-gradient(180deg, rgba(15, 22, 35, 0.96) 0%, rgba(8, 11, 18, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.45);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}
.hud::before,
.hud::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.hud::before {
  inset: 2px;
  border: 1px solid rgba(109, 134, 173, 0.28);
}
.hud::after {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 10px, rgba(251, 191, 36, 0.14) 10px 14px, transparent 14px calc(100% - 14px), rgba(251, 191, 36, 0.14) calc(100% - 14px) calc(100% - 10px), transparent calc(100% - 10px));
  mix-blend-mode: screen;
  opacity: 0.55;
}
.hud-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 6px;
  border-bottom: 1px solid rgba(66, 88, 121, 0.5);
}
.hud-title,
.hud-alert {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 9px;
  font-weight: 800;
}
.hud-title {
  color: #cbd9f4;
}
.hud-alert {
  color: var(--hud-alert);
}
.hud-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, auto));
  gap: 6px;
  align-items: stretch;
}
.hud-module {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 54px;
  min-height: 52px;
  padding: 8px 10px 7px;
  border: 1px solid var(--hud-edge);
  background:
    linear-gradient(180deg, rgba(27, 38, 59, 0.98) 0%, rgba(16, 23, 36, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(8, 12, 19, 0.42);
}
.hud-module::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(66, 88, 121, 0.28);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.hud-module-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, transparent 0 49%, rgba(251, 191, 36, 0.85) 50% 100%);
  opacity: 0.72;
}
.hud-label,
.hud-value,
.hud-xp-bar,
.hud-dash-bar {
  position: relative;
  z-index: 1;
}
.hud-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--hud-rune);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hud-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 0 8px var(--hud-glow);
}
.hud-item-header {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hud-item-nav {
  display: inline-flex;
  gap: 4px;
}
.hud-cycle-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(66, 88, 121, 0.55);
  background: rgba(8, 12, 19, 0.72);
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.hud-cycle-btn:disabled {
  opacity: 0.34;
}
.hud-item-name {
  display: block;
  min-height: 1.1rem;
  margin-top: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-value--small {
  font-size: 10px;
  font-weight: 700;
  color: #aab9d3;
  letter-spacing: 0.08em;
  text-shadow: none;
}
.hud-value--glyph {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.28);
}
.hud-xp,
.hud-dash {
  min-width: 110px;
}
.hud-xp-bar,
.hud-dash-bar {
  width: 100%;
  height: 6px;
  margin: 3px 0 4px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(20, 28, 44, 0.95) 100%);
  border: 1px solid rgba(66, 88, 121, 0.45);
  overflow: hidden;
}
.hud-xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6 0%, #93c5fd 55%, #dbeafe 100%);
  box-shadow: 0 0 8px var(--hud-glow);
  transition: width 150ms ease;
}
.hud-dash-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 55%, #fde68a 100%);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.28);
  transition: width 80ms linear;
}
.hud-synergy[hidden] {
  display: none !important;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(2, 6, 23, 0.72);
}
.overlay[hidden] {
  display: none !important;
}
.panel {
  width: min(560px, 100%);
  max-height: min(92dvh, 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(19, 32, 58, 0.96) 0%, rgba(10, 17, 32, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(0,0,0,0.5),
    0 4px 24px rgba(0,0,0,0.4);
  padding: 20px;
}
.panel-frame {
  position: relative;
  overflow: hidden;
}
.panel-frame::before,
.panel-frame::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.panel-frame::before {
  inset: 6px;
  border: 1px solid rgba(109, 134, 173, 0.22);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.panel-frame::after {
  inset: 0;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16) 0 14px, transparent 14px),
    linear-gradient(315deg, rgba(251, 191, 36, 0.12) 0 12px, transparent 12px);
  opacity: 0.85;
}
.panel-frame > * {
  position: relative;
  z-index: 1;
}
.panel h1, .panel h2, .panel p { margin-top: 0; }
.panel p { color: var(--muted); }
.panel--breach {
  border-color: #5c2430;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(35, 18, 22, 0.98) 0%, rgba(18, 10, 12, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(92, 36, 48, 0.5),
    0 4px 24px rgba(0,0,0,0.5);
}
.breach-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #3d1f26;
}
.breach-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #d66;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.breach-title {
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ff6b6b;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.25);
  margin: 0;
}
.breach-msg {
  font-size: 1rem;
  color: #c9a6a6;
  margin-bottom: 16px;
}
.breach-stats {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}
.breach-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 1px solid #4a2430;
  border-radius: 1px;
  background: rgba(15, 8, 10, 0.7);
}
.breach-stat-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #a66;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.breach-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #ffdbdb;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
}
.btn--breach {
  border-color: #7a3a45;
  background: linear-gradient(180deg, rgba(80, 30, 38, 0.98) 0%, rgba(45, 18, 22, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 16px rgba(150, 50, 60, 0.2);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.panel--draft {
  border-color: #2a4a6a;
  background:
    linear-gradient(180deg, rgba(18, 32, 52, 0.98) 0%, rgba(10, 17, 32, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(0,0,0,0.5),
    0 4px 24px rgba(0,0,0,0.4);
}
.draft-header {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #24324f;
}
.draft-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.draft-title {
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.25);
  margin: 0;
}
.draft-msg {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.panel-intro {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 2px;
}
.panel-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(96, 165, 250, 0.14), transparent 35%);
  pointer-events: none;
}
.panel-intro > * {
  position: relative;
  z-index: 1;
}
.landing-shell {
  min-height: calc(100dvh - 48px);
  display: grid;
  place-items: center;
}
.landing-panel,
.menu-panel {
  width: min(760px, 100%);
}
.eyebrow {
  margin-bottom: 10px;
  color: #9fb8e6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.title-lockup {
  margin-bottom: 14px;
  font-size: clamp(3rem, 10vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(96, 165, 250, 0.18);
}
.title-lockup--compact {
  font-size: clamp(2.5rem, 8vw, 4.25rem);
}
.tagline {
  max-width: 44rem;
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #d7e6ff;
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.intro-grid--dense {
  margin-bottom: 20px;
}
.intro-card {
  position: relative;
  padding: 14px 14px 15px;
  border: 1px solid rgba(73, 98, 145, 0.7);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(12, 19, 33, 0.9) 0%, rgba(8, 13, 24, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.intro-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(109, 134, 173, 0.18);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  pointer-events: none;
}
.intro-card > * {
  position: relative;
  z-index: 1;
}
.intro-card p {
  margin: 8px 0 0;
  font-size: 0.96rem;
  line-height: 1.55;
}
.intro-label {
  color: #c7dbff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.menu-stack {
  display: grid;
  gap: 12px;
}

.menu-pager {
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.menu-deck {
  position: relative;
  min-height: 320px;
}

.menu-card {
  display: none;
  gap: 12px;
  align-content: start;
}

.menu-card.is-active {
  display: grid;
}

.menu-card-grid {
  display: grid;
  gap: 12px;
}

.menu-pager-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-nav-btn {
  width: auto;
  min-width: 96px;
}

.menu-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(66, 88, 121, 0.5);
  background: rgba(10, 16, 28, 0.72);
}

.menu-dot {
  width: 18px;
  height: 12px;
  padding: 0;
  border: 1px solid rgba(109, 134, 173, 0.55);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(19, 30, 50, 0.95) 0%, rgba(9, 14, 25, 0.95) 100%);
  clip-path: polygon(0 50%, 4px 0, calc(100% - 4px) 0, 100% 50%, calc(100% - 4px) 100%, 4px 100%);
  cursor: pointer;
}

.menu-dot.is-active {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.95) 0%, rgba(180, 83, 9, 0.95) 100%);
  border-color: #fde68a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.24);
}

.meta-panel--menu {
  margin-top: 0;
}

#startBtn {
  margin-top: 4px;
}
.status-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 18px;
  color: #90a7cf;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  margin: 0 0.1em;
  padding: 0.14em 0.45em;
  border: 1px solid rgba(143, 166, 207, 0.45);
  border-bottom-width: 2px;
  border-radius: 0;
  background: rgba(20, 31, 57, 0.88);
  color: #eff6ff;
  font: inherit;
  font-size: 0.9em;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.choices {
  display: grid;
  gap: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.stats > div {
  padding: 10px;
  border: 1px solid var(--panel-line);
  border-radius: 2px;
  background: rgba(11, 18, 36, 0.9);
  text-align: center;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #33507e;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(19, 32, 58, 0.98) 0%, rgba(10, 18, 32, 0.98) 100%);
  color: #eff6ff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, border-color 120ms ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(109, 134, 173, 0.2);
  clip-path: inherit;
  pointer-events: none;
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn-primary {
  border-color: rgba(245, 158, 11, 0.9);
  background: linear-gradient(180deg, rgba(107, 58, 12, 0.98) 0%, rgba(56, 28, 7, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 4px 16px rgba(245, 158, 11, 0.18);
}
.btn-ghost {
  background: linear-gradient(180deg, rgba(13, 21, 37, 0.92) 0%, rgba(8, 13, 23, 0.95) 100%);
}
.btn:hover {
  filter: brightness(1.08);
  border-color: #b7c8ea;
}
.btn:active {
  transform: translateY(1px);
}
.mobileControls {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 25;
  display: none;
  justify-content: space-between;
  align-items: end;
  padding: 16px;
  pointer-events: none;
}
body.touch .mobileControls {
  display: flex;
}
.dpad {
  position: relative;
  width: 132px;
  height: 132px;
  border: 1px solid #33507e;
  background:
    linear-gradient(180deg, rgba(15, 22, 37, 0.9) 0%, rgba(8, 12, 22, 0.94) 100%);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 18px rgba(0,0,0,0.28);
  pointer-events: auto;
  touch-action: none;
}
.stick {
  position: absolute;
  left: 42px;
  top: 42px;
  width: 48px;
  height: 48px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.82) 0%, rgba(37, 99, 235, 0.76) 100%);
  border: 1px solid rgba(191, 219, 254, 0.75);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  pointer-events: none;
}
.actions {
  display: grid;
  gap: 10px;
  pointer-events: auto;
}
.actions .btn {
  width: 116px;
  min-height: 52px;
  background: linear-gradient(180deg, rgba(19, 32, 58, 0.98) 0%, rgba(10, 18, 32, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 6px 14px rgba(0,0,0,0.24);
}
@media (min-width: 769px) {
  .hud { max-width: max-content; }
}
@media (max-width: 768px) {
  body.landing-body {
    padding: 14px;
  }
  .overlay {
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
  .menu-panel {
    margin: 0;
    width: min(100%, 560px);
  }
  .menu-deck {
    min-height: 360px;
  }
  .menu-card-grid,
  .meta-upgrades {
    grid-template-columns: 1fr;
  }
  .meta-upgrade-carousel-controls {
    display: flex;
  }
  .meta-upgrades.is-paged {
    display: block;
  }
  .meta-upgrades.is-paged .meta-upgrade-btn {
    display: none;
  }
  .meta-upgrades.is-paged .meta-upgrade-btn.is-active {
    display: grid;
  }
  .hud-item-name {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }
  .hud-cycle-btn {
    min-width: 30px;
    min-height: 30px;
  }
  .menu-pager-controls {
    gap: 8px;
  }
  .menu-nav-btn {
    min-width: 88px;
    padding-inline: 12px;
  }
  .hud {
    top: 8px;
    left: 8px;
    min-width: min(420px, calc(100vw - 16px));
    gap: 6px;
    padding: 6px;
  }
  .hud-header {
    padding: 1px 5px 5px;
  }
  .hud-title,
  .hud-alert {
    font-size: 8px;
    letter-spacing: 0.14em;
  }
  .hud-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .hud-module {
    min-width: 0;
    min-height: 46px;
    padding: 6px 7px 6px;
  }
  .hud-module-mark {
    width: 10px;
    height: 10px;
  }
  .hud-label {
    font-size: 7px;
    letter-spacing: 0.14em;
    margin-bottom: 4px;
  }
  .hud-value {
    font-size: 14px;
  }
  .hud-value--small,
  .hud-value--glyph {
    font-size: 9px;
  }
  .hud-xp,
  .hud-dash {
    min-width: 0;
  }
  .panel,
  .panel-intro {
    padding: 16px;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 24px));
  }
  .title-lockup {
    letter-spacing: 0.12em;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .breach-stats {
    flex-direction: column;
    gap: 8px;
  }
  .breach-stat {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 12px;
  }
  .breach-stat-label {
    margin-bottom: 0;
  }
  .status-line {
    flex-direction: column;
  }
}

.meta-panel {
  position: relative;
  margin: 1.2rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(66, 88, 121, 0.8);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(9, 15, 27, 0.92) 0%, rgba(5, 9, 17, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 1px rgba(0,0,0,0.48);
  overflow: hidden;
}
.meta-panel::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(109, 134, 173, 0.18);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  pointer-events: none;
}

.meta-panel--death {
  margin-top: 1rem;
}

.meta-panel__header,
.meta-upgrade-carousel-controls,
.meta-upgrades {
  position: relative;
  z-index: 1;
}

.meta-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(66, 88, 121, 0.45);
}

.meta-panel__shards {
  color: #fde68a;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-upgrade-carousel-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.meta-upgrade-page {
  min-width: 4.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #cbd5e1;
}

.meta-upgrade-nav {
  min-width: 52px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  line-height: 1;
}

.meta-upgrades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.meta-upgrade-btn {
  position: relative;
  display: grid;
  gap: 0.36rem;
  padding: 0.9rem 0.95rem;
  border-radius: 0;
  border: 1px solid rgba(83, 104, 137, 0.75);
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.96) 0%, rgba(9, 14, 24, 0.96) 100%);
  color: #e2e8f0;
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.meta-upgrade-btn::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(109, 134, 173, 0.16);
  clip-path: inherit;
  pointer-events: none;
}

.meta-upgrade-btn:not(:disabled) {
  cursor: pointer;
}

.meta-upgrade-btn:not(:disabled):hover {
  border-color: rgba(245, 158, 11, 0.82);
  filter: brightness(1.06);
}

.meta-upgrade-btn:disabled {
  opacity: 0.6;
}

.meta-upgrade-btn strong,
.meta-upgrade-btn span {
  position: relative;
  z-index: 1;
}

.meta-upgrade-btn strong {
  color: #f8fafc;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
}

.meta-upgrade-btn span {
  font-size: 0.8rem;
}
