/* ========================================================================= */
/* 🗼 HAWKMOTH'S LABYRINTH (ROGUELIKE ENDLESS TOWER) STYLES                  */
/* ========================================================================= */

.labyrinth-panel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-bottom: 30px;
}

/* ------------------------------------------------------------------------- */
/* 1. Header & Vault Status HUD                                              */
/* ------------------------------------------------------------------------- */

.labyrinth-header-panel {
  background: linear-gradient(135deg, rgba(28, 12, 45, 0.94) 0%, rgba(14, 8, 26, 0.98) 50%, rgba(22, 10, 38, 0.94) 100%);
  border: 1px solid rgba(153, 51, 255, 0.45);
  border-radius: 22px;
  padding: 22px 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), inset 0 0 25px rgba(153, 51, 255, 0.12), 0 0 25px rgba(153, 51, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.labyrinth-header-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(153, 51, 255, 0.8), rgba(255, 0, 128, 0.8), transparent);
}

.labyrinth-title-group h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
}

.labyrinth-theme-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9933ff, #ff007a);
  color: #fff;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(153, 51, 255, 0.4);
}

.labyrinth-vault-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.labyrinth-stat-pill {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffd700;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.labyrinth-boons-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 6px 2px;
}

.labyrinth-boon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(153, 51, 255, 0.22);
  border: 1px solid rgba(153, 51, 255, 0.5);
  color: #e2cbff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.labyrinth-boon-badge:hover,
.labyrinth-boon-badge:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(153, 51, 255, 0.4);
  border-color: rgba(153, 51, 255, 0.8);
}

.labyrinth-boon-badge.uncommon {
  background: rgba(0, 255, 170, 0.18);
  border-color: rgba(0, 255, 170, 0.5);
  color: #00ffaa;
}
.labyrinth-boon-badge.rare {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.55);
  color: #00f0ff;
}
.labyrinth-boon-badge.legendary {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 0, 128, 0.3));
  border-color: rgba(255, 215, 0, 0.75);
  color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

/* ------------------------------------------------------------------------- */
/* 2. Floor Progression Track & Boss Radar                                  */
/* ------------------------------------------------------------------------- */

.lab-floor-track-wrap {
  background: linear-gradient(135deg, rgba(18, 12, 28, 0.85), rgba(10, 6, 18, 0.92));
  border: 1px solid rgba(153, 51, 255, 0.25);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lab-floor-track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 800;
}

.lab-floor-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lab-floor-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9933ff, #ff007a, #ffd700);
  border-radius: 8px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(255, 0, 122, 0.5);
}

.lab-floor-milestones {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #8c8b9f;
  font-weight: 700;
}

/* ------------------------------------------------------------------------- */
/* 2.1 Dynamic Biome Atmosphere & Branching Route Map                       */
/* ------------------------------------------------------------------------- */

.labyrinth-panel-wrapper.biome-sewers {
  --biome-accent: #00ffaa;
  box-shadow: inset 0 0 80px rgba(0, 255, 170, 0.06);
}
.labyrinth-panel-wrapper.biome-catacombs {
  --biome-accent: #00f0ff;
  box-shadow: inset 0 0 80px rgba(0, 240, 255, 0.08);
}
.labyrinth-panel-wrapper.biome-sentimonster {
  --biome-accent: #ff00aa;
  box-shadow: inset 0 0 80px rgba(255, 0, 170, 0.08);
}
.labyrinth-panel-wrapper.biome-monarch {
  --biome-accent: #ffd700;
  box-shadow: inset 0 0 80px rgba(255, 215, 0, 0.08);
}
.labyrinth-panel-wrapper.biome-chrysalis {
  --biome-accent: #9933ff;
  box-shadow: inset 0 0 80px rgba(153, 51, 255, 0.1);
}

.lab-route-map {
  background: linear-gradient(135deg, rgba(18, 12, 30, 0.92), rgba(10, 6, 18, 0.96));
  border: 1.5px solid rgba(153, 51, 255, 0.35);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.lab-route-nodes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  padding: 10px 0;
  box-sizing: border-box;
}

.lab-route-connector {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
  z-index: 1;
}

.lab-route-connector-fill {
  height: 100%;
  background: linear-gradient(90deg, #9933ff, #ff007a, #ffd700);
  box-shadow: 0 0 10px rgba(255, 0, 122, 0.5);
  transition: width 0.4s ease;
}

.lab-route-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.lab-route-node-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #140d22;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  transition: all 0.25s ease;
}

.lab-route-node.cleared .lab-route-node-circle {
  border-color: #00ffaa;
  background: rgba(0, 255, 170, 0.18);
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.4);
}

.lab-route-node.current .lab-route-node-circle {
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 0, 122, 0.3));
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
  animation: pulseNode 2s infinite ease-in-out;
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(255, 215, 0, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 24px rgba(255, 215, 0, 0.8); }
}

.lab-route-node.upcoming .lab-route-node-circle {
  opacity: 0.6;
}

.lab-route-node-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #a0a0b8;
  white-space: nowrap;
}
.lab-route-node.current .lab-route-node-label {
  color: #ffd700;
  font-weight: 900;
}

.lab-synergy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(0, 240, 255, 0.25));
  border: 1.5px solid #ffd700;
  color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
  animation: pulseSynergy 2.5s infinite ease-in-out;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
@keyframes pulseSynergy {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 10px rgba(255, 215, 0, 0.25); }
  50% { transform: translateY(-2px); box-shadow: 0 0 18px rgba(255, 215, 0, 0.5); }
}

/* ------------------------------------------------------------------------- */
/* 3. Vanguard Squad Lobby Presentation                                     */
/* ------------------------------------------------------------------------- */

.labyrinth-squad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) {
  .labyrinth-squad-grid {
    grid-template-columns: 1fr;
  }
}

/* Rich Lobby Vanguard Card */
.lab-lobby-card {
  background: linear-gradient(145deg, rgba(22, 14, 36, 0.92) 0%, rgba(12, 8, 20, 0.96) 100%);
  border: 1.5px solid rgba(153, 51, 255, 0.35);
  border-radius: 20px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.lab-lobby-card:hover {
  transform: translateY(-4px);
  border-color: rgba(153, 51, 255, 0.8);
  box-shadow: 0 14px 32px rgba(153, 51, 255, 0.25);
}

.lab-lobby-card.empty-slot {
  border: 2px dashed rgba(153, 51, 255, 0.4);
  background: rgba(18, 12, 28, 0.45);
  min-height: 240px;
  justify-content: center;
}

.lab-lobby-card.empty-slot:hover {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.lab-slot-pill {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.55);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.lab-tier-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 6px;
  color: #fff;
}

.lab-card-avatar-wrap {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 51, 255, 0.25) 0%, rgba(0, 0, 0, 0.4) 70%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin-top: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease;
}

.lab-lobby-card:hover .lab-card-avatar-wrap {
  transform: scale(1.08);
}

.lab-hero-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-hero-stars {
  color: #ffd700;
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  margin-top: -6px;
}

.lab-stats-chip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.lab-stat-chip {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 2px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lab-stat-chip .chip-label {
  font-size: 0.62rem;
  color: #8c8b9f;
  text-transform: uppercase;
}

.lab-change-hero-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #e2cbff;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}
.lab-lobby-card:hover .lab-change-hero-btn {
  background: linear-gradient(135deg, rgba(153, 51, 255, 0.35), rgba(255, 0, 122, 0.35));
  border-color: rgba(153, 51, 255, 0.6);
  color: #fff;
}

/* ------------------------------------------------------------------------- */
/* 4. Squad Intel Banner (PWR + Active Synergies)                            */
/* ------------------------------------------------------------------------- */

.lab-squad-intel-box {
  background: linear-gradient(135deg, rgba(18, 12, 30, 0.88), rgba(10, 6, 18, 0.94));
  border: 1px solid rgba(153, 51, 255, 0.35);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.lab-intel-power-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(112, 0, 255, 0.25));
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.lab-intel-synergies-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lab-synergy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 9px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: #ffd700;
}

/* ------------------------------------------------------------------------- */
/* 5. Checkpoint Selection Rail                                              */
/* ------------------------------------------------------------------------- */

.lab-checkpoint-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
}

.lab-checkpoint-card {
  background: rgba(18, 12, 28, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.lab-checkpoint-card:hover:not(.is-locked) {
  transform: translateY(-2px);
  border-color: rgba(153, 51, 255, 0.7);
  background: rgba(28, 16, 46, 0.85);
  box-shadow: 0 6px 18px rgba(153, 51, 255, 0.25);
}

.lab-checkpoint-card.is-selected {
  background: linear-gradient(135deg, rgba(153, 51, 255, 0.3), rgba(255, 0, 122, 0.25));
  border-color: #9933ff;
  box-shadow: 0 0 20px rgba(153, 51, 255, 0.4);
}

.lab-checkpoint-card.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.6);
  border-style: dashed;
}

.lab-checkpoint-num {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lab-checkpoint-theme {
  font-size: 0.78rem;
  color: #a0a0b8;
  font-weight: 700;
}

/* ------------------------------------------------------------------------- */
/* 6. Active Squad Vitals & Health States                                   */
/* ------------------------------------------------------------------------- */

.labyrinth-hero-card {
  background: linear-gradient(145deg, rgba(22, 14, 34, 0.92) 0%, rgba(12, 8, 20, 0.96) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.labyrinth-hero-card.healthy {
  border-color: rgba(0, 255, 170, 0.4);
}
.labyrinth-hero-card.wounded {
  border-color: rgba(255, 215, 0, 0.45);
}
.labyrinth-hero-card.critical {
  border-color: rgba(255, 0, 85, 0.6);
  animation: pulseCritical 2s infinite ease-in-out;
}
@keyframes pulseCritical {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 85, 0.2); }
  50% { box-shadow: 0 0 22px rgba(255, 0, 85, 0.45); }
}

.labyrinth-hero-card.is-fallen {
  filter: grayscale(0.85);
  border-color: rgba(255, 0, 85, 0.55);
  background: rgba(24, 8, 14, 0.92);
}

.lab-vitals-status-pill {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 6px;
}
.lab-vitals-status-pill.healthy {
  background: rgba(0, 255, 170, 0.18);
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 170, 0.35);
}
.lab-vitals-status-pill.wounded {
  background: rgba(255, 215, 0, 0.18);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.35);
}
.lab-vitals-status-pill.critical {
  background: rgba(255, 0, 85, 0.25);
  color: #ff3366;
  border: 1px solid rgba(255, 0, 85, 0.5);
}
.lab-vitals-status-pill.fallen {
  background: rgba(255, 0, 85, 0.35);
  color: #fff;
  border: 1px solid #ff0055;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

.labyrinth-hp-bar-wrap {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.labyrinth-hp-bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.4s ease, background 0.4s ease;
}
.labyrinth-hp-bar-fill.high {
  background: linear-gradient(90deg, #00ffaa, #00f0ff);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}
.labyrinth-hp-bar-fill.medium {
  background: linear-gradient(90deg, #ffd700, #ff8800);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}
.labyrinth-hp-bar-fill.low {
  background: linear-gradient(90deg, #ff0055, #ff3300);
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
}

/* ------------------------------------------------------------------------- */
/* 7. Chamber Selection Crossroads                                           */
/* ------------------------------------------------------------------------- */

.labyrinth-chambers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.labyrinth-chamber-card {
  background: linear-gradient(145deg, rgba(22, 14, 35, 0.96), rgba(12, 8, 22, 0.98));
  border: 1.5px solid rgba(153, 51, 255, 0.4);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.labyrinth-chamber-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #9933ff, #ff007a);
}

.labyrinth-chamber-card:hover {
  transform: translateY(-5px);
  border-color: rgba(153, 51, 255, 0.85);
  box-shadow: 0 16px 36px rgba(153, 51, 255, 0.28);
}

.labyrinth-chamber-card.elite {
  border-color: rgba(255, 215, 0, 0.55);
  background: linear-gradient(145deg, rgba(38, 26, 12, 0.96), rgba(18, 12, 8, 0.98));
}
.labyrinth-chamber-card.elite::after {
  background: linear-gradient(90deg, #ffd700, #ff8800);
}
.labyrinth-chamber-card.elite:hover {
  border-color: rgba(255, 215, 0, 0.95);
  box-shadow: 0 16px 38px rgba(255, 215, 0, 0.28);
}

.labyrinth-chamber-card.boss {
  border-color: rgba(255, 0, 85, 0.65);
  background: linear-gradient(145deg, rgba(45, 10, 28, 0.96), rgba(22, 5, 15, 0.98));
  animation: pulseBossCard 2.5s infinite ease-in-out;
}
@keyframes pulseBossCard {
  0%, 100% { box-shadow: 0 10px 28px rgba(255, 0, 85, 0.25); }
  50% { box-shadow: 0 16px 42px rgba(255, 0, 85, 0.5); }
}
.labyrinth-chamber-card.boss::after {
  background: linear-gradient(90deg, #ff0055, #990033);
}

.labyrinth-chamber-card.rest {
  border-color: rgba(0, 255, 170, 0.5);
  background: linear-gradient(145deg, rgba(10, 32, 24, 0.96), rgba(6, 18, 14, 0.98));
}
.labyrinth-chamber-card.rest::after {
  background: linear-gradient(90deg, #00ffaa, #00aaff);
}

.labyrinth-chamber-card.shrine {
  border-color: rgba(255, 215, 0, 0.65);
  background: linear-gradient(145deg, rgba(32, 24, 8, 0.96), rgba(10, 26, 24, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.1);
}
.labyrinth-chamber-card.shrine::after {
  background: linear-gradient(90deg, #ffd700, #00ffaa);
}
.labyrinth-chamber-card.shrine:hover {
  border-color: #ffd700;
  box-shadow: 0 16px 40px rgba(255, 215, 0, 0.35);
}

.labyrinth-chamber-card.mystery {
  border-color: rgba(0, 240, 255, 0.5);
  background: linear-gradient(145deg, rgba(12, 24, 40, 0.96), rgba(8, 14, 26, 0.98));
}
.labyrinth-chamber-card.mystery::after {
  background: linear-gradient(90deg, #00f0ff, #7000ff);
}

.lab-chamber-rewards-teaser {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.labyrinth-chamber-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  background: linear-gradient(135deg, #9933ff, #ff007a);
  box-shadow: 0 4px 16px rgba(153, 51, 255, 0.35);
}
.labyrinth-chamber-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 8px 22px rgba(153, 51, 255, 0.5);
}

.labyrinth-chamber-btn.elite-btn {
  background: linear-gradient(135deg, #ffd700, #ff8800);
  color: #111;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
}

.labyrinth-chamber-btn.boss-btn {
  background: linear-gradient(135deg, #ff0055, #990033);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 0, 85, 0.45);
}

.labyrinth-chamber-btn.rest-btn {
  background: linear-gradient(135deg, #00ffaa, #00aaff);
  color: #08141d;
  box-shadow: 0 4px 16px rgba(0, 255, 170, 0.35);
}

.labyrinth-chamber-btn.shrine-btn {
  background: linear-gradient(135deg, #ffd700, #00ffaa);
  color: #0c1a14;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
  font-weight: 900;
}

/* ------------------------------------------------------------------------- */
/* 8. Miracle Box Tarot Draft Modal                                          */
/* ------------------------------------------------------------------------- */

.lab-tarot-card {
  background: linear-gradient(145deg, rgba(28, 18, 48, 0.98) 0%, rgba(14, 10, 26, 0.98) 100%);
  border: 2px solid rgba(153, 51, 255, 0.5);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 320px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.lab-tarot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(153, 51, 255, 0.6), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.lab-tarot-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #ffd700;
  box-shadow: 0 18px 40px rgba(153, 51, 255, 0.4), 0 0 25px rgba(255, 215, 0, 0.35);
}

.lab-tarot-card.legendary {
  border-color: rgba(255, 215, 0, 0.75);
  background: linear-gradient(145deg, rgba(42, 28, 12, 0.98) 0%, rgba(20, 12, 6, 0.98) 100%);
}
.lab-tarot-card.legendary:hover {
  border-color: #ffd700;
  box-shadow: 0 18px 45px rgba(255, 215, 0, 0.4);
}

.lab-tarot-icon-wrap {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 51, 255, 0.3) 0%, rgba(0,0,0,0.5) 75%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  animation: floatTarotIcon 3s ease-in-out infinite alternate;
}
@keyframes floatTarotIcon {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.lab-tarot-rarity-pill {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 8px;
}
.lab-tarot-rarity-pill.common {
  background: rgba(153, 51, 255, 0.25);
  color: #d8b4fe;
  border: 1px solid rgba(153, 51, 255, 0.5);
}
.lab-tarot-rarity-pill.uncommon {
  background: rgba(0, 255, 170, 0.22);
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 170, 0.5);
}
.lab-tarot-rarity-pill.rare {
  background: rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.6);
}
.lab-tarot-rarity-pill.legendary {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.35), rgba(255, 0, 128, 0.35));
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.75);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

/* ------------------------------------------------------------------------- */
/* 9. Bench Substitution Upgrade                                             */
/* ------------------------------------------------------------------------- */

#labBenchCardsGrid,
.lab-bench-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  grid-auto-rows: max-content !important;
  align-content: start;
  gap: 12px;
  max-height: 420px;
  min-height: 160px;
  overflow-y: auto;
  padding: 4px 6px 4px 2px;
  scrollbar-width: thin;
  box-sizing: border-box;
}

#labBenchCardsGrid::-webkit-scrollbar,
.lab-bench-cards-grid::-webkit-scrollbar {
  width: 6px;
}
#labBenchCardsGrid::-webkit-scrollbar-track,
.lab-bench-cards-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}
#labBenchCardsGrid::-webkit-scrollbar-thumb,
.lab-bench-cards-grid::-webkit-scrollbar-thumb {
  background: rgba(153, 51, 255, 0.45);
  border-radius: 3px;
}

.lab-bench-card {
  background: rgba(18, 12, 28, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 135px !important;
  height: auto !important;
  flex-shrink: 0 !important;
  box-sizing: border-box;
}

.lab-bench-card:hover:not(.disabled) {
  transform: translateY(-3px);
  border-color: #00f0ff;
  background: rgba(28, 18, 44, 0.95);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.25);
}

.lab-bench-card:active:not(.disabled) {
  transform: translateY(0);
}

.lab-bench-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.7);
}

.lab-bench-synergy-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  background: #ffd700;
  color: #111;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

/* ------------------------------------------------------------------------- */
/* 10. Modals Shared Styling                                                 */
/* ------------------------------------------------------------------------- */

.labyrinth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 3, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#labCombatModal {
  z-index: 10010;
}

#labBoonModal {
  z-index: 10020;
}

#labBoonDetailModal {
  z-index: 10030;
}

.labyrinth-modal-backdrop.active {
  display: flex !important;
}

.labyrinth-modal-card {
  background: linear-gradient(135deg, #181126 0%, #0d0818 100%);
  border: 1.5px solid rgba(153, 51, 255, 0.45);
  border-radius: 22px;
  padding: 28px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(153, 51, 255, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ------------------------------------------------------------------------- */
/* 11. Bespoke Labyrinth Combat Theater Modal                                */
/* ------------------------------------------------------------------------- */

.lab-combat-theater-card {
  max-width: 780px !important;
  max-height: 88vh !important;
  padding: 22px 26px !important;
  gap: 14px !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, rgba(22, 14, 36, 0.98) 0%, rgba(10, 6, 18, 0.99) 100%) !important;
  border: 1.5px solid rgba(153, 51, 255, 0.5) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8), 0 0 35px rgba(153, 51, 255, 0.25) !important;
  overflow-y: auto;
}

.lab-combat-theater-card::-webkit-scrollbar {
  width: 6px;
}
.lab-combat-theater-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}
.lab-combat-theater-card::-webkit-scrollbar-thumb {
  background: rgba(153, 51, 255, 0.5);
  border-radius: 3px;
}

.lab-combat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  gap: 12px;
}

.lab-combat-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lab-combat-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-combat-subtitle {
  font-size: 0.8rem;
  color: #a09ebb;
  font-weight: 600;
}

.lab-combat-outcome-badge {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lab-combat-outcome-badge.victory {
  background: rgba(0, 255, 170, 0.18);
  border: 1px solid rgba(0, 255, 170, 0.6);
  color: #00ffaa;
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.25);
}
.lab-combat-outcome-badge.defeat {
  background: rgba(255, 0, 85, 0.2);
  border: 1px solid rgba(255, 0, 85, 0.6);
  color: #ff3366;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.25);
}

/* Versus Arena Matchup */
.lab-combat-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(153, 51, 255, 0.22);
  border-radius: 16px;
  padding: 14px 18px;
}

.lab-combat-fighter-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lab-combat-fighter-box.enemy-side {
  flex-direction: row-reverse;
  text-align: right;
}

.lab-combat-fighter-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: radial-gradient(circle, rgba(153, 51, 255, 0.3) 0%, rgba(0,0,0,0.6) 80%);
  border: 2px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
  flex-shrink: 0;
}
.lab-combat-fighter-box.enemy-side .lab-combat-fighter-avatar {
  border-color: rgba(255, 0, 85, 0.55);
  box-shadow: 0 0 16px rgba(255, 0, 85, 0.25);
}

.lab-combat-fighter-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.lab-combat-fighter-name {
  font-weight: 900;
  font-size: 0.98rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-combat-fighter-role {
  font-size: 0.72rem;
  font-weight: 800;
  color: #a09ebb;
}

.lab-combat-fighter-hp-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 2px;
}
.lab-combat-fighter-box.enemy-side .lab-combat-fighter-hp-meta {
  flex-direction: row-reverse;
}

.lab-combat-fighter-hp-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.lab-combat-fighter-hp-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.lab-combat-fighter-hp-fill.hero-fill {
  background: linear-gradient(90deg, #00ffaa, #00f0ff);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}
.lab-combat-fighter-hp-fill.enemy-fill {
  background: linear-gradient(90deg, #ff0055, #ff6699);
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

/* VS Sigil */
.lab-combat-vs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lab-combat-vs-sigil {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(153, 51, 255, 0.4), rgba(255, 0, 128, 0.4));
  border: 1.5px solid rgba(255, 215, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.3);
}

.lab-combat-round-pill {
  font-size: 0.68rem;
  font-weight: 800;
  color: #a09ebb;
  white-space: nowrap;
}

/* Combat Highlights Chronicle */
.lab-combat-chronicle-wrap {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(153, 51, 255, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lab-combat-chronicle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #d8b4fe;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lab-combat-chronicle-feed {
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
  font-size: 0.82rem;
  color: #c9c7dc;
  line-height: 1.45;
}
.lab-combat-chronicle-feed::-webkit-scrollbar {
  width: 5px;
}
.lab-combat-chronicle-feed::-webkit-scrollbar-thumb {
  background: rgba(153, 51, 255, 0.4);
  border-radius: 3px;
}

.lab-combat-log-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.lab-combat-log-line strong {
  color: #fff;
}
.lab-combat-log-line .rnd-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}
.lab-combat-log-line .dmg-deal {
  color: #00ffaa;
  font-weight: 800;
}
.lab-combat-log-line .dmg-take {
  color: #ff3366;
  font-weight: 800;
}

/* Summary Grid: Spoils on Left, Vanguard Vitals on Right */
.lab-combat-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
}

.lab-combat-spoils-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.lab-combat-spoils-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lab-combat-spoils-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lab-combat-spoil-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #ffd700;
}
.lab-combat-spoil-pill.stardust {
  border-color: rgba(0, 240, 255, 0.35);
  color: #00f0ff;
}

/* Vanguard Vitals Strip */
.lab-combat-vitals-strip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(153, 51, 255, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lab-combat-vitals-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #d8b4fe;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
}

.lab-combat-vitals-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.lab-combat-vital-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.72rem;
}
.lab-combat-vital-card.is-fallen {
  border-color: rgba(255, 0, 85, 0.4);
  background: rgba(255, 0, 85, 0.1);
}

.lab-combat-vital-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-combat-vital-track {
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
}
.lab-combat-vital-fill {
  height: 100%;
  border-radius: 3px;
}
.lab-combat-vital-fill.healthy { background: #00ffaa; }
.lab-combat-vital-fill.wounded { background: #ffd700; }
.lab-combat-vital-fill.critical { background: #ff3366; }
.lab-combat-vital-fill.fallen { background: #ff0055; width: 0% !important; }

.lab-combat-vital-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 800;
  color: #a09ebb;
}

/* Single CTA Button */
.lab-combat-cta-btn {
  width: 100% !important;
  margin: 4px 0 0 !important;
  padding: 13px 20px !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  border: none !important;
}
.lab-combat-cta-btn:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .lab-combat-theater-card {
    padding: 16px !important;
  }
  .lab-combat-arena {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .lab-combat-fighter-box {
    justify-content: center;
  }
  .lab-combat-fighter-box.enemy-side {
    flex-direction: row;
    text-align: left;
  }
  .lab-combat-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------- */
/* 12. Arena Sub-Navigation Tabs & Mobile Responsive Fix                      */
/* ------------------------------------------------------------------------- */

.arena-subnav-tabs {
  display: flex !important;
  gap: 10px !important;
  background: rgba(18, 16, 28, 0.75) !important;
  padding: 6px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}
.arena-subnav-tabs::-webkit-scrollbar {
  display: none !important;
}

.arena-subnav-btn {
  flex: 1 1 0 !important;
  min-width: 150px !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  border: none !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  color: #b9b8cd !important;
  background: transparent !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.arena-subnav-btn.active {
  color: #fff !important;
}

.arena-tab-badge {
  font-size: 0.65rem !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, #00f0ff, #7000ff) !important;
  color: #fff !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35) !important;
}

.arena-tab-mobile {
  display: none !important;
}
.arena-tab-full {
  display: inline !important;
}

@media (max-width: 640px) {
  .arena-subnav-tabs {
    gap: 6px !important;
    padding: 5px !important;
    justify-content: flex-start !important;
  }
  .arena-subnav-btn {
    flex: 0 0 auto !important;
    min-width: auto !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }
  .arena-tab-badge {
    font-size: 0.58rem !important;
    padding: 2px 5px !important;
  }
  .arena-tab-mobile {
    display: inline !important;
  }
  .arena-tab-full {
    display: none !important;
  }
}

/* ------------------------------------------------------------------------- */
/* 13. Interactive Player-Friendly Guide Modal Styles                        */
/* ------------------------------------------------------------------------- */

.lab-guide-modal-card {
  max-width: 780px !important;
  max-height: 88vh !important;
  padding: 24px 26px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: linear-gradient(135deg, rgba(22, 14, 36, 0.98) 0%, rgba(10, 6, 18, 0.99) 100%) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.45) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.2) !important;
}

.lab-guide-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lab-guide-tabs::-webkit-scrollbar {
  display: none;
}

.lab-guide-tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 8px 14px;
  border-radius: 9px;
  border: none;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  color: #a09ebb;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.lab-guide-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.lab-guide-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #00f0ff, #7000ff);
  box-shadow: 0 3px 12px rgba(0, 240, 255, 0.35);
}

.lab-guide-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}
.lab-guide-content-wrap::-webkit-scrollbar {
  width: 5px;
}
.lab-guide-content-wrap::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.4);
  border-radius: 3px;
}

.lab-guide-section {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.lab-guide-section.active {
  display: flex;
  animation: fadeInGuide 0.25s ease forwards;
}

@keyframes fadeInGuide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lab-guide-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}
.lab-guide-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.lab-guide-card.accent-cyan { border-left: 3.5px solid #00f0ff; }
.lab-guide-card.accent-gold { border-left: 3.5px solid #ffd700; }
.lab-guide-card.accent-purple { border-left: 3.5px solid #9933ff; }
.lab-guide-card.accent-pink { border-left: 3.5px solid #ff007a; }
.lab-guide-card.accent-green { border-left: 3.5px solid #00ffaa; }

.lab-guide-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lab-guide-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-guide-card-badge {
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.lab-guide-card-body {
  font-size: 0.86rem;
  color: #c9c7dc;
  line-height: 1.55;
  margin: 0;
}

.lab-guide-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px) {
  .lab-guide-grid-2 {
    grid-template-columns: 1fr;
  }
  .lab-guide-modal-card {
    padding: 16px !important;
  }
}

/* ------------------------------------------------------------------------- */
/* 13. Labyrinth Leaderboard (Hall of Fame) Styles                           */
/* ------------------------------------------------------------------------- */

.lab-lb-modal-card {
  max-width: 680px !important;
  width: 95%;
  background: linear-gradient(135deg, rgba(24, 15, 38, 0.98) 0%, rgba(13, 8, 24, 0.99) 100%) !important;
  border: 1.5px solid rgba(255, 215, 0, 0.35) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 215, 0, 0.15) !important;
  border-radius: 20px;
  padding: 24px !important;
  color: #fff;
}

.lab-lb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 14px;
}

.lab-lb-title-wrap h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.lab-lb-subtitle {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #a5a3bd;
  line-height: 1.4;
}

.lab-lb-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #c9c7dc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lab-lb-close-btn:hover {
  background: rgba(255, 0, 85, 0.2);
  border-color: rgba(255, 0, 85, 0.5);
  color: #fff;
  transform: scale(1.05);
}

.lab-lb-columns-bar {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.2fr;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8b88a4;
  margin-bottom: 10px;
}

.lab-lb-col-user { text-align: left; }
.lab-lb-col-floor { text-align: center; }
.lab-lb-col-score { text-align: right; }

.lab-lb-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.lab-lb-list::-webkit-scrollbar {
  width: 6px;
}
.lab-lb-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}
.lab-lb-list::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.25);
  border-radius: 6px;
}
.lab-lb-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.45);
}

.lab-lb-item {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.2fr;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lab-lb-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

/* Podium Rank 1 - Golden Champion */
.lab-lb-item.rank-1 {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.14) 0%, rgba(255, 215, 0, 0.04) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.12), inset 0 0 15px rgba(255, 215, 0, 0.05);
}
.lab-lb-item.rank-1:hover {
  border-color: rgba(255, 215, 0, 0.75);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.22);
}

/* Podium Rank 2 - Silver */
.lab-lb-item.rank-2 {
  background: linear-gradient(90deg, rgba(210, 215, 230, 0.12) 0%, rgba(210, 215, 230, 0.03) 100%);
  border: 1.5px solid rgba(210, 215, 230, 0.4);
  box-shadow: 0 4px 14px rgba(210, 215, 230, 0.1);
}
.lab-lb-item.rank-2:hover {
  border-color: rgba(210, 215, 230, 0.65);
}

/* Podium Rank 3 - Bronze */
.lab-lb-item.rank-3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.12) 0%, rgba(205, 127, 50, 0.03) 100%);
  border: 1.5px solid rgba(205, 127, 50, 0.38);
  box-shadow: 0 4px 14px rgba(205, 127, 50, 0.1);
}
.lab-lb-item.rank-3:hover {
  border-color: rgba(205, 127, 50, 0.6);
}

/* User identity inside item */
.lab-lb-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lab-lb-rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.88rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #a5a3bd;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-lb-item.rank-1 .lab-lb-rank-badge {
  background: linear-gradient(135deg, #ffd700, #ff9900);
  color: #1a0f00;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
}

.lab-lb-item.rank-2 .lab-lb-rank-badge {
  background: linear-gradient(135deg, #f0f0f5, #a0a5b5);
  color: #14141a;
  border-color: #e0e5f0;
  box-shadow: 0 0 10px rgba(210, 215, 230, 0.35);
}

.lab-lb-item.rank-3 .lab-lb-rank-badge {
  background: linear-gradient(135deg, #e69145, #9c4f1a);
  color: #ffffff;
  border-color: #cd7f32;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.35);
}

.lab-lb-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7928ca, #ff0080);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.lab-lb-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lab-lb-username {
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-lb-user-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #8b88a4;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lab-lb-item.rank-1 .lab-lb-user-tag {
  color: #ffd700;
}

.lab-lb-floor-cell {
  text-align: center;
}

.lab-lb-floor-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.lab-lb-score-cell {
  text-align: right;
}

.lab-lb-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 900;
  font-size: 0.95rem;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.lab-lb-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #7b7894;
}

@media (max-width: 600px) {
  .lab-lb-modal-card {
    padding: 16px !important;
  }
  .lab-lb-columns-bar {
    grid-template-columns: 2fr 1fr 1fr;
    font-size: 0.65rem;
    padding: 6px 8px;
  }
  .lab-lb-item {
    grid-template-columns: 2fr 1fr 1fr;
    padding: 8px 10px;
  }
  .lab-lb-user-cell {
    gap: 8px;
  }
  .lab-lb-avatar-circle {
    display: none;
  }
  .lab-lb-username {
    font-size: 0.82rem;
  }
  .lab-lb-floor-badge {
    padding: 2px 6px;
    font-size: 0.75rem;
  }
  .lab-lb-score-badge {
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .labyrinth-modal-card {
    padding: 18px 14px !important;
    gap: 14px !important;
    border-radius: 18px !important;
  }
  #labBenchCardsGrid,
  .lab-bench-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)) !important;
    gap: 10px !important;
    max-height: 360px !important;
  }
  .lab-bench-card {
    min-height: 125px !important;
    padding: 10px 8px !important;
  }
}

@media (max-width: 380px) {
  #labBenchCardsGrid,
  .lab-bench-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}





