/* ==========================================================================
   BLUEBIRD CLICKER — END-GAME & COSMIC SYSTEMS STYLESHEET
   Section IV: Failles Dimensionnelles, Grimoire des Runes & Astrolabe
   ========================================================================== */

/* --- Dimension Theme Overrides --- */
body.dimension-antimatter {
  background: 
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.25) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #07030e 0%, #150624 100%) !important;
}

body.dimension-cyber {
  background: 
    radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.2) 0%, transparent 65%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #020f0a 0%, #061e16 100%) !important;
}

body.dimension-primordial {
  background: 
    radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.28) 0%, transparent 70%),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #140404 0%, #290808 100%) !important;
}

/* --- Dynamic Screen FX Overlays --- */
.lightning-flash-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(56, 189, 248, 0.8) 50%, transparent 100%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.05s ease-out;
}

.lightning-flash-overlay.active {
  opacity: 1;
}

.singularity-warp-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(192, 132, 252, 0.4) 60%, rgba(7, 3, 14, 0.9) 100%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.singularity-warp-overlay.active {
  opacity: 1;
  animation: singularityPulse 1.2s ease-in-out infinite alternate;
}

@keyframes singularityPulse {
  0% { transform: scale(1); filter: hue-rotate(0deg); }
  100% { transform: scale(1.03); filter: hue-rotate(90deg); }
}

/* --- Header Astrolabe / Celestial Era Badge --- */
.era-header-badge {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.35rem, 0.8vw, 0.55rem);
  padding: clamp(0.3rem, 0.7vw, 0.45rem) clamp(0.6rem, 1.2vw, 0.9rem);
  border-radius: var(--radius-pill);
  background: rgba(14, 21, 38, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.2);
  color: var(--text-main);
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.era-header-badge:hover {
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.45);
  transform: translateY(-1px);
}

.era-dragon {
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

.era-swan {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.era-owl {
  border-color: rgba(192, 132, 252, 0.5) !important;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.25) !important;
}

.era-icon-anim {
  font-size: 1.1rem;
  animation: eraIconFloat 3s ease-in-out infinite;
}

@keyframes eraIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.era-timer-hint {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

/* --- Header Action Buttons Glow --- */
.btn-dimension-glow {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
  border: 1px solid rgba(192, 132, 252, 0.4);
}
.btn-dimension-glow:hover {
  border-color: rgba(192, 132, 252, 0.8);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.45);
}

.btn-runes-glow {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.btn-runes-glow:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.btn-astrolabe-glow {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(192, 132, 252, 0.2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.btn-astrolabe-glow:hover {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
}

/* Active Dimension Status Tag in stage */
.dimension-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tag-dim-normal { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); color: var(--accent-cyan); }
.tag-dim-antimatter { background: rgba(236, 72, 153, 0.2); border: 1px solid rgba(236, 72, 153, 0.4); color: #f472b6; }
.tag-dim-cyber { background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.4); color: #34d399; }
.tag-dim-primordial { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }

/* ==========================================================================
   MODAL: FAILLES DIMENSIONNELLES & SINGULARITÉS
   ========================================================================== */
.dimension-hero-card {
  background: radial-gradient(circle at center, rgba(30, 27, 75, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.dimension-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  animation: vortexSpin 20s linear infinite;
  pointer-events: none;
}

@keyframes vortexSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(15rem, 30vw, 22rem), 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.dimension-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.dimension-card:hover {
  border-color: var(--surface-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dimension-card.active-dim {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  background: rgba(14, 28, 54, 0.9);
}

.dimension-card.locked-dim {
  opacity: 0.75;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 26, 0.7);
}

.dimension-card.locked-dim:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.dimension-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dimension-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dimension-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.dimension-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dimension-perks {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dimension-prereqs-list {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dimension-prereqs-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.dimension-prereqs-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prereq-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.25;
}

.prereq-item.fulfilled {
  color: #34d399;
}

.prereq-item.fulfilled .prereq-status-icon {
  color: #10b981;
  font-weight: 900;
}

.prereq-item.unfulfilled {
  color: #f87171;
}

.prereq-item.unfulfilled .prereq-status-icon {
  color: #ef4444;
  font-weight: 900;
}

.prereq-text {
  flex: 1;
}

.prereq-progress {
  font-size: 0.72rem;
  opacity: 0.85;
  font-family: var(--font-mono, monospace);
}

.btn-warp-dimension {
  margin-top: auto;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-warp-dimension:hover:not(:disabled) {
  background: var(--accent-blue);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-glow);
}

.btn-warp-dimension.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
  cursor: default;
}

.btn-warp-dimension.locked {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  cursor: pointer;
}

.btn-warp-dimension.locked:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.nav-link-btn.nav-locked {
  opacity: 0.65;
}

/* Singularité Temporelle Widget */
.singularity-section {
  background: radial-gradient(circle at center, rgba(46, 16, 101, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.singularity-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.singularity-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cosmic-purple);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.singularity-harvest-preview {
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 700;
}

.singularity-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(8rem, 20vw, 14rem), 1fr));
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.singularity-tier-card {
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.singularity-tier-card:hover {
  border-color: var(--cosmic-purple);
  background: rgba(30, 20, 55, 0.8);
}

.singularity-tier-card.selected {
  border-color: var(--cosmic-purple);
  background: rgba(88, 28, 135, 0.35);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.3);
}

.btn-trigger-singularity {
  width: 100%;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  border: 1px solid #c084fc;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
  transition: all 0.2s ease;
}

.btn-trigger-singularity:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(192, 132, 252, 0.7);
}

.btn-trigger-singularity:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

/* Antimatter Generators List */
.antimatter-generators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(13rem, 28vw, 18rem), 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.generator-card-dark {
  background: rgba(15, 10, 25, 0.75);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.generator-card-dark:hover {
  border-color: rgba(236, 72, 153, 0.6);
}

/* ==========================================================================
   MODAL: GRIMOIRE DES RUNES & SERTISSAGE
   ========================================================================== */
.runes-hero-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(16rem, 35vw, 24rem), 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.sockets-board {
  background: rgba(14, 21, 38, 0.85);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.sockets-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sockets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.socket-slot {
  aspect-ratio: 1;
  background: rgba(5, 8, 17, 0.85);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem;
  cursor: pointer;
  position: relative;
  transition: all 0.25s var(--ease-smooth);
}

.socket-slot:hover {
  border-color: var(--accent-cyan);
  background: rgba(14, 28, 54, 0.9);
}

.socket-slot.filled {
  border-style: solid;
  border-color: var(--cosmic-purple);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.35);
  background: rgba(30, 20, 50, 0.9);
}

.socket-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.1;
}

.socket-rune-glyph {
  font-size: 1.4rem;
}

/* Rune Inventory Grid */
.runes-inventory-section {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.runes-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(11rem, 22vw, 15rem), 1fr));
  gap: var(--space-sm);
  max-height: 240px;
  overflow-y: auto;
  padding: 0.25rem;
}

.rune-item-card {
  background: rgba(8, 12, 22, 0.8);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
  position: relative;
}

.rune-tier-1 { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 0 8px rgba(56, 189, 248, 0.15); }
.rune-tier-2 { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 10px rgba(139, 92, 246, 0.25); }
.rune-tier-3 { border-color: rgba(236, 72, 153, 0.6); box-shadow: 0 0 12px rgba(236, 72, 153, 0.35); }
.rune-tier-4 { 
  border-color: rgba(245, 158, 11, 0.8); 
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, rgba(30, 20, 10, 0.9) 0%, rgba(50, 25, 20, 0.9) 100%);
  animation: runeGoldGlow 3s ease-in-out infinite alternate;
}

@keyframes runeGoldGlow {
  0% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }
  100% { box-shadow: 0 0 22px rgba(245, 158, 11, 0.8); }
}

.rune-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rune-name-badge {
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rune-tier-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.tbadge-1 { background: rgba(56, 189, 248, 0.2); color: var(--accent-cyan); }
.tbadge-2 { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.tbadge-3 { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.tbadge-4 { background: rgba(245, 158, 11, 0.2); color: var(--gold-light); }

.rune-power-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.rune-card-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: auto;
}

.btn-socket-rune, .btn-fuse-rune {
  flex: 1;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-socket-rune:hover {
  background: var(--accent-blue);
  border-color: var(--accent-cyan);
}

.btn-fuse-rune:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.3);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* Rune Forge Section */
.forge-altar-section {
  background: radial-gradient(circle at center, rgba(60, 30, 10, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.forge-info-group {
  max-width: 320px;
}

.forge-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.forge-actions-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn-summon-rune {
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  border: 1px solid #38bdf8;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  transition: all 0.2s ease;
}

.btn-summon-rune:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

/* ==========================================================================
   MODAL: ASTROLABE DES CONSTELLATIONS & ÈRES PLANÉTAIRES
   ========================================================================== */
.astrolabe-hero-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(16rem, 30vw, 22rem), 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.astrolabe-wheel-card {
  background: radial-gradient(circle at center, rgba(20, 15, 40, 0.8) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.astrolabe-svg-wheel {
  width: clamp(140px, 30vw, 200px);
  height: clamp(140px, 30vw, 200px);
  animation: astrolabeRotate 60s linear infinite;
}

@keyframes astrolabeRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.astrolabe-center-info {
  margin-top: var(--space-sm);
}

.astrolabe-era-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.astrolabe-era-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.astrolabe-eras-overview {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.era-preview-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.era-preview-card.active-era-card {
  border-color: var(--cosmic-purple);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.3);
  background: rgba(30, 20, 55, 0.85);
}

.era-preview-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.era-preview-details {
  flex: 1;
}

.era-preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.era-preview-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Harmonie Cosmique Banner */
.harmony-ritual-card {
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.35) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.harmony-desc-group {
  max-width: 420px;
}

.harmony-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cosmic-purple);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-trigger-harmony {
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f59e0b 0%, #c084fc 100%);
  border: 1px solid #fbbf24;
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  transition: all 0.2s ease;
}

.btn-trigger-harmony:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
}

.btn-trigger-harmony:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

/* =========================================================
   ARSENAL DU CHASSEUR CÉLESTE & AMÉLIORATIONS ANTI-FAUCON
   ========================================================= */

/* Bouton Quick-Action dans l'Arène de Boss */
.boss-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-boss-arena-arsenal {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fecaca;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.btn-boss-arena-arsenal:hover {
  background: rgba(220, 38, 38, 0.45);
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
}

/* Modale Arsenal */
.modal-slayer-container {
  max-width: 820px;
  width: 95%;
}

.slayer-hero-card {
  background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.slayer-hero-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.slayer-icon-box {
  font-size: 2.2rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.slayer-hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fca5a5;
  margin: 0 0 4px 0;
}

.slayer-hero-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.slayer-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
}

.slayer-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.slayer-stat-pill strong {
  font-size: 0.95rem;
  font-weight: 800;
}

/* Grille des Cartes d'Amélioration */
.slayer-upgrades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(15rem, 45vw, 23rem), 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.slayer-upgrades-grid.locked-grid {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.6);
}

.slayer-locked-gate {
  background: rgba(220, 38, 38, 0.15);
  border: 1px dashed rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  margin-bottom: var(--space-md);
}

.slayer-locked-gate .slayer-lock-icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.slayer-locked-gate h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f87171;
  margin: 0 0 0.25rem 0;
}

.slayer-locked-gate p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.slayer-upgrade-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.2s var(--ease-smooth);
}

.slayer-upgrade-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.slayer-upgrade-card.maxed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(10, 30, 22, 0.85);
}

.slayer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slayer-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slayer-card-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.slayer-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.slayer-card-tier {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
}

.slayer-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.slayer-card-stats-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.slayer-current-effect strong {
  color: #fbbf24;
}

.slayer-next-effect {
  color: var(--text-muted);
}

.slayer-next-effect span {
  color: #38bdf8;
  font-weight: 700;
}

.slayer-card-footer {
  margin-top: auto;
}

.btn-buy-slayer {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(220, 38, 38, 0.2);
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-buy-slayer.affordable:hover {
  background: rgba(220, 38, 38, 0.45);
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.btn-buy-slayer.unaffordable {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.btn-buy-slayer.maxed {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  justify-content: center;
  cursor: default;
}

.slayer-cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #38bdf8;
}

.badge-max {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
}

/* Quick Summon Banner in Arsenal */
.slayer-summon-banner {
  background: radial-gradient(circle at left, rgba(220, 38, 38, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.slayer-summon-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fca5a5;
  margin: 0 0 4px 0;
}

.slayer-summon-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 450px;
  line-height: 1.35;
}

.btn-slayer-summon {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 1px solid #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45);
  transition: all 0.2s ease;
}

.btn-slayer-summon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.75);
}
