/* ============================= */
/* MENU PANELS */
/* ============================= */

.menu-panel {
  height: 100%;
  padding: 1rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(12, 6, 24, 0.88) 0%, rgba(8, 5, 17, 0.9) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(194, 127, 255, 0.18);
  overflow: auto;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 0 40px rgba(180, 0, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(177, 104, 255, 0.7) rgba(255,255,255,0.02);
}

.menu-panel::-webkit-scrollbar {
  width: 12px;
}

.menu-panel::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
}

.menu-panel::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.95) 0%, rgba(255, 104, 195, 0.9) 100%);
  border-radius: 999px;
  border: 2px solid rgba(10, 5, 18, 0.9);
}

.menu-panel::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(166, 94, 255, 1) 0%, rgba(255, 136, 206, 0.96) 100%);
}

.submenu-panel {
  padding: 1rem 1rem 1.15rem;
}

.submenu-header {
  position: sticky;
  top: -1rem;
  z-index: 2;
  padding: 0 0 0.85rem;
  margin-bottom: 0.9rem;
  background:
    linear-gradient(180deg, rgba(12, 6, 24, 0.98) 0%, rgba(12, 6, 24, 0.94) 72%, rgba(12, 6, 24, 0) 100%);
}

.menu-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  color: var(--bm-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-title {
  margin: 0 0 0.45rem;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
}

.submenu-title {
  font-size: 1.7rem;
}

.menu-copy {
  margin: 0;
  color: var(--bm-text-soft);
}

.info-stack {
  display: grid;
  gap: 0.85rem;
}

.info-card {
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.info-card h3 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  color: var(--bm-text-soft);
  line-height: 1.55;
}

.menu-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--bm-text-soft);
  line-height: 1.6;
}

.coming-soon-copy-wrap {
  display: grid;
  gap: 1rem;
}

.coming-soon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(255, 104, 195, 0.2));
  border: 1px solid rgba(190, 135, 255, 0.24);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================= */
/* MAIN MENU LEFT SIDE */
/* ============================= */

.game-main-menu-panel {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(11, 6, 21, 0.9) 0%, rgba(9, 5, 18, 0.92) 100%);
}

.game-main-menu-panel::before {
  content: '';
  position: absolute;
  inset: auto 8% 0 8%;
  height: 24%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(129, 72, 255, 0.18), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.game-menu-stack {
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.95rem;
}

.boltypass-summary-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.boltypass-summary-head,
.boltypass-summary-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.boltypass-summary-title {
  color: #fff;
  font-weight: 900;
}

.boltypass-summary-tier,
.boltypass-summary-foot {
  color: var(--bm-text-soft);
  font-size: 0.86rem;
}

.boltypass-summary-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.boltypass-summary-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #58ddff 0%, #ffc926 100%);
  box-shadow: 0 0 18px rgba(88, 221, 255, 0.28);
}

.boltypass-dock-card {
  display: grid;
  gap: 0.55rem;
  min-height: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(28, 13, 50, 0.8) 0%, rgba(14, 8, 29, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.boltypass-dock-head,
.boltypass-dock-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.boltypass-dock-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.boltypass-dock-tier,
.boltypass-dock-foot {
  color: var(--bm-text-soft);
  font-size: 0.92rem;
}

.boltypass-dock-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.boltypass-dock-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #58ddff 0%, #8a2cff 50%, #ffc926 100%);
  box-shadow: 0 0 22px rgba(88, 221, 255, 0.24);
}

.menu-action {
  appearance: none;
  border: 1px solid rgba(194, 127, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.025) 100%);
  color: var(--bm-text);
  min-height: 58px;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 10px 20px rgba(0, 0, 0, 0.14);
}

.menu-action:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 184, 255, 0.32);
  background: rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 16px 28px rgba(0,0,0,0.22),
    0 0 22px rgba(168, 85, 247, 0.16);
}

.menu-action.primary {
  border: none;
  background: linear-gradient(180deg, #ffe159 0%, #ffc926 100%);
  color: #241400;
  box-shadow:
    0 0 18px rgba(255, 213, 74, 0.36),
    0 16px 26px rgba(0, 0, 0, 0.22);
}

.menu-action.primary:hover {
  background: linear-gradient(180deg, #ffea7c 0%, #ffcf2f 100%);
  box-shadow:
    0 0 26px rgba(255, 213, 74, 0.46),
    0 18px 30px rgba(0, 0, 0, 0.26);
}

/* ============================= */
/* SETTINGS */
/* ============================= */

.settings-stack {
  display: grid;
  gap: 0.75rem;
}

.setting-row,
.setting-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.setting-copy {
  display: grid;
  gap: 0.24rem;
}

.setting-label {
  font-weight: 800;
  color: #fff;
}

.setting-help {
  color: var(--bm-text-muted);
  font-size: 0.86rem;
}

.setting-control {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.setting-control input[type="range"] {
  width: 160px;
  accent-color: var(--bm-gold);
}

.setting-value {
  min-width: 48px;
  text-align: right;
  color: var(--bm-gold);
  font-weight: 800;
}

/* ============================= */
/* SHOP / CUSTOMIZE */
/* ============================= */

.cosmetic-toolbar {
  position: static;
  top: 3.9rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 0.72rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.cosmetic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cosmetic-tab {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #d5c7ee;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.16s ease;
}

.cosmetic-tab:hover {
  border-color: rgba(215, 177, 255, 0.22);
  background: rgba(255,255,255,0.08);
}

.cosmetic-tab.active {
  background: linear-gradient(135deg, #8a2cff, #ff37c7);
  color: #fff;
  border: none;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.3);
}

.cosmetic-coins-display,
.cosmetic-equipped-summary {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--bm-text-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.cosmetic-preview-summary {
  margin-bottom: 12px;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
  color: var(--bm-text-soft);
}

/* GRID */

.cosmetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

/* CARD */

.cosmetic-card {
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(21, 13, 38, 0.92) 0%, rgba(14, 9, 26, 0.94) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 194px;
  transition: 0.2s;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 12px 24px rgba(0,0,0,0.18);
}

.cosmetic-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 0 18px rgba(255,0,200,0.16),
    0 14px 28px rgba(0,0,0,0.24);
}

/* HEADER */

.cosmetic-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: start;
}

.cosmetic-title {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  color: #fff;
}

.cosmetic-price {
  font-weight: 900;
  color: var(--bm-gold);
  white-space: nowrap;
}

/* META */

.cosmetic-meta {
  font-size: 0.78rem;
  color: var(--bm-text-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ACTIONS */

.cosmetic-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.cosmetic-action {
  flex: 1;
  border-radius: 12px;
  min-height: 42px;
  border: none;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

/* PREVIEW */

.cosmetic-action.preview {
  background: rgba(0, 200, 255, 0.14);
  color: #8ce9ff;
  border: 1px solid rgba(104, 225, 255, 0.18);
}

.cosmetic-action.preview.active {
  background: rgba(0, 200, 255, 0.26);
  box-shadow: 0 0 12px rgba(0,200,255,0.28);
}

/* OWNED */

.cosmetic-action.owned {
  background: rgba(0,255,100,0.16);
  color: #7cff9e;
  border: 1px solid rgba(124,255,158,0.16);
}

/* RARITY */

.rarity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rarity-badge.common { background: #555; }
.rarity-badge.uncommon { background: #2ecc71; }
.rarity-badge.rare { background: #3498db; }
.rarity-badge.epic { background: #9b59b6; }
.rarity-badge.legendary { background: gold; color: black; }

/* ============================= */
/* SHOP SCREEN */
/* ============================= */

.shop-list-panel,
.shop-details-panel {
  height: 100%;
}

.shop-list-header {
  margin-bottom: 0.7rem;
}

.shop-wallet-banner {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.shop-wallet-label {
  color: var(--bm-text-muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-wallet-value {
  color: var(--bm-gold);
  font-size: 1.5rem;
  font-weight: 900;
}

.shop-wallet-message {
  margin: 0;
  color: var(--bm-text-soft);
  font-size: 0.88rem;
}

.shop-wallet-banner-locked .shop-wallet-value {
  color: var(--bm-text-soft);
}

.shop-item-list,
.shop-item-list-empty {
  display: grid;
  gap: 0.65rem;
}

.shop-item-row {
  appearance: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--bm-text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.shop-item-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 213, 74, 0.28);
}

.shop-item-row.active {
  background: linear-gradient(180deg, rgba(255, 213, 74, 0.16), rgba(255,255,255,0.05));
  border-color: rgba(255, 213, 74, 0.42);
  box-shadow: 0 0 18px rgba(255, 213, 74, 0.12);
}

.shop-item-row-main,
.shop-item-row-side {
  display: grid;
  gap: 0.22rem;
}

.shop-item-row-name {
  font-weight: 900;
  color: #fff;
}

.shop-item-row-meta {
  color: var(--bm-text-muted);
  font-size: 0.8rem;
}

.shop-item-row-price {
  color: var(--bm-gold);
  font-weight: 800;
  white-space: nowrap;
}

.shop-item-list-empty {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.shop-item-list-empty h3,
.shop-description-card h3 {
  margin: 0 0 0.35rem;
}

.shop-item-list-empty p {
  margin: 0;
  color: var(--bm-text-soft);
}

.shop-details-panel {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
  min-height: 0;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(12, 6, 24, 0.88) 0%, rgba(8, 5, 17, 0.9) 100%);
  border: 1px solid rgba(194, 127, 255, 0.18);
  overflow: auto;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 0 40px rgba(180, 0, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(177, 104, 255, 0.7) rgba(255,255,255,0.02);
}

.shop-detail-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.shop-detail-price {
  color: var(--bm-gold);
  font-weight: 900;
}

.shop-detail-stats {
  display: grid;
  gap: 0.55rem;
}

.shop-detail-stat {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.shop-detail-stat-label {
  color: var(--bm-text-muted);
}

.shop-detail-stat-value {
  color: #fff;
  font-weight: 800;
}

.shop-details-wallet-note {
  color: var(--bm-text-soft);
  font-size: 0.9rem;
}

.shop-details-wallet-note.locked {
  color: #ffd9a3;
}

.shop-detail-actions {
  margin-top: auto;
}

.shop-detail-actions .menu-action {
  width: 100%;
}

.shop-detail-actions .menu-action.equipped-state {
  cursor: default;
  filter: saturate(0.8);
}

/* ============================= */
/* BOLTY PASS */
/* ============================= */

.boltypass-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0.4rem;
  overflow: hidden;
}

.boltypass-full-panel {
  padding: 1rem 1.1rem 0.9rem;
}

.boltypass-panel .submenu-header {
  position: static;
  margin-bottom: 0;
  padding-bottom: 0.15rem;
  background: transparent;
}

.boltypass-header {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(320px, 1.45fr);
  gap: 0.7rem;
  align-items: start;
}

.boltypass-header-copy {
  display: grid;
  gap: 0.18rem;
}

.boltypass-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.3rem;
}

.boltypass-back-button {
  min-height: 30px;
  padding: 0.38rem 0.78rem;
  border-radius: 12px;
  font-size: 0.76rem;
}

.boltypass-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.boltypass-overview-card {
  display: grid;
  gap: 0.25rem;
}

.boltypass-overview-label {
  color: var(--bm-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.boltypass-overview-value {
  color: #fff;
  font-size: 1.35rem;
}

.boltypass-progress-card {
  display: grid;
  gap: 0.38rem;
  padding: 0.72rem 0.82rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.boltypass-progress-hero {
  align-self: stretch;
}

.boltypass-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}

.boltypass-progress-bar {
  height: 11px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.boltypass-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #58ddff 0%, #8a2cff 50%, #ffc926 100%);
  box-shadow: 0 0 22px rgba(138, 44, 255, 0.26);
}

.boltypass-tier-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 188px);
  gap: 0.45rem;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  padding: 0.05rem 0.2rem 0.2rem;
  scrollbar-width: thin;
}

.boltypass-tier-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(54px, 1fr) 18px minmax(54px, 1fr);
  align-items: stretch;
  gap: 0.22rem;
  min-height: 140px;
}

.boltypass-tier-card.unlocked {
  --boltypass-tier-accent: rgba(88, 221, 255, 0.95);
  --boltypass-tier-accent-soft: rgba(88, 221, 255, 0.22);
}

.boltypass-tier-card.claimed {
  --boltypass-tier-accent: rgba(124, 255, 158, 0.95);
  --boltypass-tier-accent-soft: rgba(124, 255, 158, 0.22);
}

.boltypass-tier-card.locked {
  --boltypass-tier-accent: rgba(168, 155, 195, 0.8);
  --boltypass-tier-accent-soft: rgba(255, 255, 255, 0.12);
}

.boltypass-tier-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  grid-row: 2;
}

.boltypass-tier-line {
  position: absolute;
  inset: calc(50% - 1px) 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(88, 221, 255, 0.25) 0%, rgba(138, 44, 255, 0.3) 50%, rgba(255, 201, 38, 0.25) 100%);
}

.boltypass-tier-node {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--boltypass-tier-accent, rgba(168, 155, 195, 0.8));
  box-shadow:
    0 0 0 3px rgba(12, 6, 24, 0.92),
    0 0 10px var(--boltypass-tier-accent-soft, rgba(255,255,255,0.12));
}

.boltypass-tier-content {
  position: relative;
  display: grid;
  gap: 0.28rem;
  padding: 0.45rem 0.55rem;
  align-content: start;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 6px 12px rgba(0, 0, 0, 0.12);
}

.boltypass-tier-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: auto;
  bottom: -6px;
  width: 9px;
  height: 9px;
  background: inherit;
  border-right: inherit;
  border-bottom: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0 0 0 4px;
}

.boltypass-tier-card.top .boltypass-tier-content {
  grid-row: 1;
  align-self: end;
}

.boltypass-tier-card.bottom .boltypass-tier-content {
  grid-row: 3;
  align-self: start;
}

.boltypass-tier-card.bottom .boltypass-tier-track {
  grid-row: 2;
}

.boltypass-tier-card.bottom .boltypass-tier-content::before {
  top: -6px;
  bottom: auto;
  border-right: none;
  border-bottom: none;
  border-left: inherit;
  border-top: inherit;
}

.boltypass-tier-card.unlocked .boltypass-tier-content {
  border-color: rgba(88, 221, 255, 0.22);
}

.boltypass-tier-card.claimed .boltypass-tier-content {
  border-color: rgba(124,255,158,0.2);
  background: rgba(124,255,158,0.06);
}

.boltypass-tier-copy {
  display: grid;
  gap: 0.12rem;
}

.boltypass-tier-number {
  color: #fff;
  font-weight: 900;
  font-size: 0.76rem;
  line-height: 1.05;
}

.boltypass-tier-reward {
  color: var(--bm-text-soft);
  font-size: 0.64rem;
  line-height: 1.15;
}

.boltypass-tier-action {
  display: flex;
  align-items: center;
}

.boltypass-tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 26px;
  padding: 0.22rem 0.42rem;
  border-radius: 10px;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.boltypass-tier-badge.claimed {
  background: rgba(124,255,158,0.14);
  color: #7cff9e;
  border: 1px solid rgba(124,255,158,0.18);
}

.boltypass-tier-badge.locked {
  background: rgba(255,255,255,0.05);
  color: var(--bm-text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}

.boltypass-claim-button {
  min-width: 68px;
  min-height: 26px;
  padding: 0.22rem 0.42rem;
  font-size: 0.64rem;
}

@media (max-width: 760px) {
  .boltypass-header {
    grid-template-columns: 1fr;
  }

  .boltypass-tier-card {
    min-height: 130px;
  }

  .boltypass-tier-list {
    grid-auto-columns: minmax(156px, 172px);
    gap: 0.4rem;
  }

  .boltypass-tier-content {
    gap: 0.24rem;
    padding: 0.42rem 0.48rem;
  }
}

/* ============================= */
/* GAME OVER */
/* ============================= */

.stats-title {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
}

.stats-subtitle {
  margin: 0;
  color: var(--bm-text-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.gameover-panel {
  display: grid;
  align-content: start;
  min-height: 100%;
}

.stats-item {
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}

.stats-label {
  display: block;
  font-size: 0.72rem;
  color: var(--bm-text-muted);
  margin-bottom: 0.25rem;
}

.stats-value {
  font-weight: 900;
  font-size: 1.04rem;
  color: #fff;
}

/* ============================= */
/* FOOTER ACTIONS */
/* ============================= */

.menu-footer-actions {
  position: sticky;
  bottom: -1rem;
  z-index: 1;
  margin-top: 1rem;
  display: flex;
  gap: 8px;
  padding-top: 0.8rem;
  background:
    linear-gradient(180deg, rgba(12, 6, 24, 0) 0%, rgba(12, 6, 24, 0.92) 32%, rgba(12, 6, 24, 0.98) 100%);
}

.menu-footer-actions .menu-action {
  min-height: 50px;
}

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

.gameover-footer-actions .menu-action {
  width: 100%;
  min-height: 72px;
}

.gameover-revive-action {
  font-size: 0.92rem;
  line-height: 1.2;
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px) {
  .cosmetic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cosmetic-toolbar {
    top: 3.45rem;
  }

  .shop-detail-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .boltypass-overview-grid {
    grid-template-columns: 1fr;
  }

  .boltypass-progress-head,
  .boltypass-tier-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .cosmetic-grid {
    grid-template-columns: 1fr;
  }

  .cosmetic-actions {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .menu-footer-actions {
    flex-direction: column;
  }

  .gameover-footer-actions {
    grid-template-columns: 1fr;
  }
}
