/* ==========================================================================
   BLUEBIRD CLICKER — ARCADE & MINI-GAMES STYLESHEET
   Module I : Roue de Fortune, Pachinko Astral, Labo Génétique, Stand de Tir
   ========================================================================== */

/* --- BOUTONS DU HEADER ET DU FOOTER POUR L'ARCADE & LE LABO --- */
.btn-arcade-glow {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-arcade-glow:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(236, 72, 153, 0.35));
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
}

.btn-genetics-glow {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-genetics-glow:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(6, 182, 212, 0.35));
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
}

/* --- BADGES DE DEVISES DANS LE HEADER --- */
.minigames-currencies-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.currency-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.currency-chip.dna {
  color: #34d399;
}

.currency-chip.balls {
  color: #38bdf8;
}

/* --- MODAL ARCADE TABS (ROUE / PACHINKO) --- */
.arcade-modal-container {
  max-width: 860px;
  width: 95vw;
}

.arcade-nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.arcade-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #94a3b8);
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arcade-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.arcade-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(236, 72, 153, 0.25));
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

/* --- 1. SECTION ROUE DE LA FORTUNE --- */
.wheel-view-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .wheel-view-wrapper {
    grid-template-columns: 1fr;
  }
}

.wheel-stage {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 600px) {
  .wheel-stage {
    width: 380px;
    height: 380px;
  }
}

.wheel-outer-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 4px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.3), inset 0 0 25px rgba(245, 158, 11, 0.2);
  pointer-events: none;
  animation: wheelGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes wheelGlowPulse {
  0% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.2), inset 0 0 15px rgba(245, 158, 11, 0.1); }
  100% { box-shadow: 0 0 45px rgba(245, 158, 11, 0.5), inset 0 0 30px rgba(236, 72, 153, 0.3); }
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
  transition: transform 0.05s linear;
}

.wheel-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 42px;
  z-index: 10;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  transform-origin: top center;
  transition: transform 0.08s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-pointer.ticking {
  transform: translateX(-50%) rotate(-18deg);
}

.wheel-center-hub {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe066 0%, #d97706 70%, #78350f 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
}

.wheel-center-hub svg {
  color: #1a0f02;
}

.wheel-info-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wheel-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  width: fit-content;
}

.wheel-status-badge.cooldown {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.wheel-reward-result {
  min-height: 72px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.wheel-reward-result.reward-flash {
  border-color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  animation: rewardPulse 1s ease infinite alternate;
}

@keyframes rewardPulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
  100% { transform: scale(1.02); box-shadow: 0 0 25px rgba(245, 158, 11, 0.4); }
}

.btn-spin-wheel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-spin-wheel:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  filter: brightness(1.1);
}

.btn-spin-wheel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-buy-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-buy-spin:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* --- 2. SECTION PACHINKO ASTRAL --- */
.pachinko-view-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .pachinko-view-wrapper {
    grid-template-columns: 1fr;
  }
}

.pachinko-board-container {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #0f172a 0%, #020617 100%);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pachinko-canvas {
  display: block;
  width: 100%;
  max-width: 480px;
  height: 520px;
  background: transparent;
  cursor: crosshair;
}

.pachinko-controls-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pachinko-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
}

.pachinko-stat-row strong {
  color: #fff;
  font-size: 1rem;
}

.btn-launch-ball {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
  transition: all 0.2s ease;
}

.btn-launch-ball:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.btn-launch-multi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-launch-multi:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.35));
  border-color: #a855f7;
  color: #fff;
}

/* --- 3. SECTION LABORATOIRE D'HYBRIDATION GÉNÉTIQUE --- */
.genetics-modal-container {
  max-width: 920px;
  width: 95vw;
}

.genetics-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

@media (max-width: 860px) {
  .genetics-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Cuve Holographique & Incubateur */
.incubator-vat-card {
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(16, 185, 129, 0.12) 0%, rgba(2, 6, 23, 0.85) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.05);
  overflow: hidden;
}

.vat-glass-cylinder {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(6, 78, 59, 0.4) 60%, transparent 80%);
  border: 2px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.3), inset 0 0 30px rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.dna-helix-anim {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 2px dashed rgba(52, 211, 153, 0.6);
  animation: dnaSpin 10s linear infinite;
}

@keyframes dnaSpin {
  0% { transform: rotate(0deg) scale(0.95); opacity: 0.7; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.95); opacity: 0.7; }
}

.hybrid-preview-avatar {
  position: relative;
  width: 130px;
  height: 130px;
  z-index: 2;
  filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.6));
  animation: hybridFloat 3s ease-in-out infinite alternate;
}

@keyframes hybridFloat {
  0% { transform: translateY(-4px) scale(0.98); }
  100% { transform: translateY(4px) scale(1.02); }
}

.hybrid-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.strain-selectors-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.strain-slot {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.strain-slot:hover {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

.strain-slot.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.strain-slot-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-top: 4px;
}

.strain-slot-perk {
  font-size: 0.75rem;
  color: #34d399;
  margin-top: 2px;
}

.cross-fusion-icon {
  color: #f59e0b;
  font-size: 1.2rem;
  font-weight: 900;
}

.btn-fuse-dna {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-fuse-dna:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  filter: brightness(1.1);
}

.btn-fuse-dna:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Liste des Hybrides & Familiers Créés */
.hybrids-collection-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

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

.hybrids-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.hybrid-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}

.hybrid-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(52, 211, 153, 0.4);
}

.hybrid-item-card.equipped {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.hybrid-info-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hybrid-name-gen {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gen-badge {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.hybrid-traits-text {
  font-size: 0.74rem;
  color: #34d399;
}

.btn-equip-hybrid {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.btn-equip-hybrid.active {
  background: #10b981;
  border-color: #10b981;
  color: #042f2e;
}

/* --- HUD FAMILIER COMPANION ACTIF (À CÔTÉ DE L'OISEAU) --- */
.active-pet-companion-hud {
  position: absolute;
  right: -25px;
  top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.25);
  z-index: 8;
  animation: petFloat 4s ease-in-out infinite alternate;
}

@keyframes petFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.pet-hud-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.pet-hud-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
}

/* --- 4. STAND DE TIR & CIBLES VOLANTES "BIRDSEYE REFLEX" --- */
#shooting-targets-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.flying-target-entity {
  position: absolute;
  pointer-events: auto;
  cursor: crosshair;
  transform: translate(-50%, -50%);
  user-select: none;
  z-index: 101;
  transition: transform 0.05s linear;
}

.target-glow-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.6);
  animation: targetRotate 4s linear infinite;
}

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

.target-center-bullseye-zone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.4);
  border: 1px solid #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  pointer-events: none;
}

/* Type de cibles */
.flying-target-entity.target-gold .target-glow-ring {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.flying-target-entity.target-drone .target-glow-ring {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.flying-target-entity.target-storm .target-glow-ring {
  border-color: #9333ea;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.6);
}

/* BANNIÈRE & JAUGE HYPER-COMBO x25 */
.hyper-combo-banner {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(245, 158, 11, 0.95));
  border: 2px solid #fff;
  border-radius: 9999px;
  padding: 8px 24px;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.7), 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 200;
  animation: hyperComboPulse 0.6s ease-in-out infinite alternate;
}

@keyframes hyperComboPulse {
  0% { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-50%) scale(1.06); }
}

.hyper-combo-counter {
  background: #fff;
  color: #dc2626;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.9rem;
}

/* POPUP BULLSEYE */
.bullseye-toast-flash {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  background: radial-gradient(circle, rgba(255, 215, 0, 0.95) 0%, rgba(239, 68, 68, 0.95) 100%);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  padding: 16px 36px;
  border-radius: 24px;
  border: 3px solid #fff;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.9);
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 300;
  pointer-events: none;
  animation: bullseyeSplash 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bullseyeSplash {
  0% { transform: translate(-50%, -50%) scale(0.3) rotate(-10deg); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.15) rotate(4deg); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(0.8) translateY(-30px); opacity: 0; }
}
