/* Dino Egg Odyssey — Prehistoric Tri-Elemental Arcade Stylesheet */

:root {
  --primary-green: #22c55e;
  --primary-gold: #f59e0b;
  --primary-sky: #38bdf8;
  --primary-fire: #ea580c;
  --primary-aqua: #06b6d4;
  --bg-dark: #0f172a;
  --card-bg: rgba(15, 23, 42, 0.92);
  --border-glow: rgba(56, 189, 248, 0.35);
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Main Arcade Wrapper */
.game-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  max-height: 740px;
  display: flex;
  flex-direction: column;
  background: #090d16;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Glassmorphic Top HUD */
.game-header {
  height: 60px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 20;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-btn {
  font-size: 1.15rem;
  color: var(--primary-green);
  text-decoration: none;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.home-btn:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: scale(1.05);
}

.title-text {
  display: flex;
  flex-direction: column;
}

.title-main {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #38bdf8, #4ade80, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-level {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* HUD Middle Stats Chips */
.hud-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.stat-chip.goal-chip {
  background: rgba(34, 197, 94, 0.2) !important;
  border: 1.5px solid #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.stat-icon {
  font-size: 0.95rem;
}

.egg-pulse {
  animation: eggWobble 2s infinite ease-in-out;
}

@keyframes eggWobble {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(8deg); }
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
}

.lives-value {
  font-size: 1.05rem;
  letter-spacing: 2px;
}

/* Active Tri-Elemental Form Badge */
.form-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-chip.terra {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #4ade80;
}

.form-chip.aero {
  background: rgba(56, 189, 248, 0.25);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  animation: pulseForm 1s infinite alternate;
}

.form-chip.aqua {
  background: rgba(6, 182, 212, 0.25);
  border: 1px solid #06b6d4;
  color: #67e8f9;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
  animation: pulseForm 1s infinite alternate;
}

@keyframes pulseForm {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.04); filter: brightness(1.25); }
}

/* Companion Badge */
.companion-chip {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(254, 240, 138, 0.2);
  border: 1px solid #fef08a;
  color: #fef08a;
  padding: 3px 8px;
  border-radius: 6px;
  display: none;
  align-items: center;
  gap: 4px;
}

/* Action Control Buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-master-mute {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

.btn-master-mute:hover {
  background: rgba(34, 197, 94, 0.3);
  transform: scale(1.04);
}

.btn-master-mute.muted {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.btn-master-mute.muted:hover {
  background: rgba(239, 68, 68, 0.3);
}

.btn-sanctuary-nav {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fef08a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-sanctuary-nav:hover {
  background: rgba(245, 158, 11, 0.35);
  transform: scale(1.05);
}

/* Stage Progress Bar (Visual Distance to Finish Line) */
.stage-progress-wrap {
  position: relative;
  height: 14px;
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  z-index: 15;
  display: flex;
  align-items: center;
  overflow: visible;
}

/* Dynamic Stamina & Oxygen Energy Gauge */
.hud-energy-wrap {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 260px;
  max-width: 340px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.25);
  z-index: 25;
  pointer-events: none;
  animation: energyFadeIn 0.2s ease-out;
}

@keyframes energyFadeIn {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hud-energy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.energy-icon {
  font-size: 1rem;
}

.energy-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.energy-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: #38bdf8;
  margin-left: auto;
}

.hud-energy-track {
  width: 100%;
  height: 8px;
  background: rgba(2, 6, 23, 0.75);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-energy-fill {
  height: 100%;
  width: 100%;
  border-radius: 4px;
  transition: width 0.08s linear;
}

.hud-energy-fill.flight-mode {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 10px #38bdf8;
}

.hud-energy-fill.swim-mode {
  background: linear-gradient(90deg, #0891b2, #06b6d4, #67e8f9);
  box-shadow: 0 0 10px #06b6d4;
}

.hud-energy-fill.glide-mode {
  background: linear-gradient(90deg, #64748b, #bae6fd);
  box-shadow: 0 0 8px #bae6fd;
}

.hud-energy-fill.warning {
  background: linear-gradient(90deg, #ef4444, #f97316) !important;
  box-shadow: 0 0 14px #ef4444 !important;
  animation: pulseWarning 0.5s infinite alternate;
}

/* Mega Boss Health Bar HUD */
.hud-boss-wrap {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(35, 8, 8, 0.94), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(12px);
  border: 2px solid #ef4444;
  border-radius: 14px;
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 320px;
  max-width: 480px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.45);
  z-index: 28;
  pointer-events: none;
  animation: bossFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bossFadeIn {
  from { opacity: 0; transform: translate(-50%, -16px) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.hud-boss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.boss-icon {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px #ef4444);
  animation: bossIconPulse 1s infinite alternate;
}

@keyframes bossIconPulse {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.15); }
}

.boss-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.boss-name {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fca5a5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.boss-sub {
  font-size: 0.68rem;
  color: #f87171;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.boss-hp-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

.hud-boss-track {
  position: relative;
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  overflow: hidden;
}

.hud-boss-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308);
  box-shadow: 0 0 12px #ef4444;
  border-radius: 5px;
  transition: width 0.15s ease-out;
}

.hud-boss-fill.enrage {
  background: linear-gradient(90deg, #dc2626, #7f1d1d) !important;
  box-shadow: 0 0 20px #ef4444 !important;
  animation: pulseWarning 0.3s infinite alternate;
}

/* 101-Stage Prehistoric Saga Map */
.saga-header-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.saga-chip {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: #e2e8f0;
}

.saga-chip.gold {
  border-color: #f59e0b;
  color: #facc15;
  background: rgba(245, 158, 11, 0.12);
}

.saga-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.saga-tab {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  transition: all 0.2s ease;
}

.saga-tab:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #f8fafc;
  border-color: #38bdf8;
}

.saga-tab.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.saga-tab.gold-tab {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fef08a;
}

.saga-tab.gold-tab.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #facc15;
  color: #ffffff;
}

.saga-world-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 14px;
  text-align: left;
}

#saga-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

#saga-banner-title {
  margin: 0 0 2px 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #38bdf8;
}

#saga-banner-desc {
  margin: 0;
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.3;
}

.saga-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.saga-node {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.saga-node:hover:not(.locked) {
  transform: translateY(-2px) scale(1.05);
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.3);
}

.saga-node.active-stage {
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.35);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.saga-node-num {
  font-size: 1rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1;
}

.saga-node-stars {
  font-size: 0.65rem;
  color: #facc15;
  margin-top: 4px;
  letter-spacing: -1px;
}

.saga-node.boss-node {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.4), rgba(245, 158, 11, 0.25));
  border: 2px solid #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.45);
  cursor: pointer !important;
  opacity: 1 !important;
  animation: pulseBossNode 2.2s infinite alternate;
}

@keyframes pulseBossNode {
  0% { transform: scale(1); box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); }
  100% { transform: scale(1.03); box-shadow: 0 0 22px rgba(239, 68, 68, 0.7); }
}

.saga-node.boss-node .saga-node-num {
  color: #fef08a;
  font-size: 0.85rem;
}

.saga-node.locked {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
}

.saga-node.locked .saga-node-num {
  color: #64748b;
}

@keyframes pulseWarning {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.4); }
}

.track-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #22c55e, #f59e0b);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  transition: width 0.1s linear;
}

.start-pin {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 2;
}

.dino-pin {
  position: absolute;
  top: -8px;
  left: 0%;
  font-size: 1.15rem;
  transform: translateX(-50%);
  transition: left 0.1s linear;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9));
  pointer-events: none;
  z-index: 3;
}

.nest-pin {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  font-size: 0.72rem;
  font-weight: 900;
  color: #facc15;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
  pointer-events: none;
  z-index: 2;
}

/* Canvas Area */
.canvas-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0284c7;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating Non-Blocking Relic / Vault Toast Notification Banner */
.relic-toast-banner {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px);
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 92%;
  max-width: 580px;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.relic-toast-banner.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.relic-toast-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border: 2px solid #38bdf8;
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65), 0 0 28px rgba(56, 189, 248, 0.35);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  backdrop-filter: blur(8px);
}

.relic-toast-emblem {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
  animation: pulseEmblem 1.4s ease-in-out infinite alternate;
}

@keyframes pulseEmblem {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.08); }
}

.relic-toast-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.relic-toast-title {
  margin: 0 0 3px 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.relic-toast-desc {
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.relic-toast-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 9px 15px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.relic-toast-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.6);
  background: linear-gradient(135deg, #0369a1, #0891b2);
}

.relic-toast-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Modals & Overlays */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.modal-card {
  margin: auto;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-emblem {
  font-size: 3.2rem;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.modal-title.gold {
  background: linear-gradient(135deg, #fef08a, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-title.cyan {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-title.red {
  background: linear-gradient(135deg, #f87171, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-body {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-score-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}

.score-box-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.score-box-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #facc15;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #22c55e);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Keybindings Pill List */
.controls-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.ctrl-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.key-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #facc15;
}

/* Evolution Sanctuary Upgrade Grid */
.sanctuary-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}

.sanctuary-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sanctuary-info h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 3px;
  color: #ffffff;
}

.sanctuary-info p {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.btn-buy {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Touch Controls */
.touch-controls {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  z-index: 30;
}

.touch-dpad-grid {
  position: relative;
  width: 140px;
  height: 140px;
  pointer-events: auto;
}

.touch-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.touch-btn {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s ease, background 0.1s ease;
}

.touch-dpad-btn {
  position: absolute;
  width: 44px;
  height: 44px;
}

.touch-dpad-btn.up { top: 0; left: 48px; }
.touch-dpad-btn.down { bottom: 0; left: 48px; }
.touch-dpad-btn.left { top: 48px; left: 0; }
.touch-dpad-btn.right { top: 48px; right: 0; }

.touch-action-btn {
  width: 52px;
  height: 52px;
}

.touch-action-btn.whip {
  background: rgba(14, 165, 233, 0.45);
  border-color: #38bdf8;
}

.touch-action-btn.scent {
  background: rgba(168, 85, 247, 0.45);
  border-color: #c084fc;
}

.touch-action-btn.jump {
  background: rgba(2, 132, 199, 0.4);
  border-color: #38bdf8;
}

.touch-action-btn.fire {
  background: rgba(234, 88, 12, 0.4);
  border-color: #ea580c;
}

.touch-action-btn.roar {
  background: rgba(245, 158, 11, 0.4);
  border-color: #fbbf24;
}

.touch-btn:active {
  transform: scale(0.9);
  filter: brightness(1.3);
}

@media (hover: hover) and (min-width: 900px) {
  .touch-controls {
    display: none;
  }
}

/* =========================================================================
   REALM / STAGE SELECTOR & ROYAL GOLD VAULT STYLES
   ========================================================================= */

.btn-realms-nav {
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid #38bdf8;
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-realms-nav:hover {
  background: rgba(14, 165, 233, 0.35);
  transform: scale(1.05);
}

.realms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  text-align: left;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.realm-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
}

.realm-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.95);
}

.realm-card.gold-border {
  border: 1.5px solid #facc15;
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.8), rgba(69, 26, 3, 0.8));
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
}

.realm-card.gold-border:hover {
  border-color: #fef08a;
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.4);
}

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

.realm-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.realm-badge.gold-badge {
  background: rgba(250, 204, 21, 0.25);
  color: #fef08a;
  border-color: #facc15;
}

.realm-icon {
  font-size: 1.2rem;
}

.realm-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.realm-name.gold {
  color: #facc15;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.realm-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
  margin: 0;
}

.realm-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 8px 0;
}

.realm-features span {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.gold-btn {
  background: linear-gradient(135deg, #eab308, #ca8a04) !important;
  color: #1e1b4b !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.45) !important;
}

.gold-btn:hover {
  background: linear-gradient(135deg, #facc15, #eab308) !important;
  box-shadow: 0 6px 22px rgba(234, 179, 8, 0.6) !important;
}

/* =========================================================================
   RESPONSIVE MOBILE PHONE & TABLET OPTIMIZATIONS
   ========================================================================= */

@media (max-width: 768px) {
  html, body {
    height: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    overflow: hidden;
  }

  .game-container {
    width: 100vw;
    height: 100%;
    height: 100dvh;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .game-header {
    height: 48px;
    padding: 0 8px;
  }

  .title-level {
    display: none;
  }

  .title-main {
    font-size: 0.82rem;
  }

  .hud-stats .stat-chip {
    padding: 3px 6px;
    font-size: 0.72rem;
  }

  .hud-stats .stat-label {
    display: none;
  }

  #hud-form, #hud-companion, #hud-high, #hud-goal-box {
    display: none !important;
  }

  .action-buttons button:not(#btn-master-mute):not(#btn-sanctuary):not(#btn-boss-select):not(#btn-realms-nav) {
    display: none;
  }

  #btn-boss-select {
    display: inline-flex !important;
    font-size: 0.68rem;
    padding: 4px 7px;
    border-radius: 6px;
    font-weight: 800;
  }

  #btn-realms-nav {
    display: inline-flex !important;
    font-size: 0.68rem;
    padding: 4px 7px;
    border-radius: 6px;
  }

  .btn-master-mute {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .btn-sanctuary-nav {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  /* Compact Start & Stage Modals on Mobile */
  .controls-summary, .controls-pill-grid {
    display: none !important;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-card {
    padding: 16px 14px;
    border-radius: 16px;
    max-height: 94vh;
  }

  .modal-emblem {
    font-size: 2.2rem;
    margin-bottom: 4px;
  }

  .modal-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }

  .modal-body {
    font-size: 0.82rem;
    margin-bottom: 12px;
    line-height: 1.35;
  }

  #btn-start-game {
    width: 100%;
    font-size: 1.15rem !important;
    padding: 15px 18px !important;
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.6) !important;
  }

  .modal-actions {
    gap: 8px;
  }

  .modal-actions .btn-secondary {
    font-size: 0.82rem;
    padding: 9px 14px;
  }

  /* Responsive Touch Controls */
  .touch-controls {
    bottom: 10px;
    padding: 0 10px;
  }

  .touch-dpad-grid {
    width: 116px;
    height: 116px;
  }

  .touch-dpad-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .touch-dpad-btn.up { top: 0; left: 39px; }
  .touch-dpad-btn.down { bottom: 0; left: 39px; }
  .touch-dpad-btn.left { top: 39px; left: 0; }
  .touch-dpad-btn.right { top: 39px; right: 0; }

  .touch-actions {
    gap: 6px;
    flex-wrap: wrap;
    max-width: 180px;
    justify-content: flex-end;
  }

  .touch-action-btn {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .touch-action-btn.jump {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }
}

/* Mobile Landscape Mode */
@media (max-height: 500px) {
  .game-header {
    height: 38px;
    padding: 0 8px;
  }

  .home-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .title-main {
    font-size: 0.78rem;
  }

  .title-level {
    display: none;
  }

  .stage-progress-wrap {
    height: 16px;
  }

  .controls-summary, .controls-pill-grid {
    display: none !important;
  }

  .modal-overlay {
    padding: 6px;
  }

  .modal-card {
    padding: 10px 14px;
    max-height: 96vh;
  }

  .modal-emblem {
    display: none;
  }

  .modal-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }

  .modal-body {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }

  #btn-start-game {
    font-size: 0.95rem !important;
    padding: 10px 16px !important;
  }

  .touch-controls {
    bottom: 6px;
    padding: 0 8px;
  }

  .touch-dpad-grid {
    width: 96px;
    height: 96px;
  }

  .touch-dpad-btn {
    width: 32px;
    height: 32px;
  }

  .touch-dpad-btn.up { top: 0; left: 32px; }
  .touch-dpad-btn.down { bottom: 0; left: 32px; }
  .touch-dpad-btn.left { top: 32px; left: 0; }
  .touch-dpad-btn.right { top: 32px; right: 0; }

  .touch-action-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .touch-action-btn.jump {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   MEGA BOSS ARENAS TESTER MODAL STYLES
   ========================================================================== */
.boss-tester-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.boss-card {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  gap: 12px;
  transition: all 0.2s ease;
}

.boss-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(239, 68, 68, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.boss-card-omega {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(30, 27, 75, 0.8);
}

.boss-card-omega:hover {
  border-color: #facc15;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.boss-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.boss-info {
  flex: 1;
  text-align: left;
}

.boss-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #f87171;
  line-height: 1.2;
}

.boss-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 2px 0 4px 0;
}

.boss-hp-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-boss-fight {
  padding: 8px 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.btn-boss-fight:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #f87171, #dc2626);
}

.btn-boss-fight-omega {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-boss-fight-omega:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

@media (max-width: 640px) {
  .boss-tester-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .boss-card {
    padding: 8px 10px;
  }
  .boss-icon {
    font-size: 1.8rem;
  }
  .boss-name {
    font-size: 0.9rem;
  }
  .btn-boss-fight {
    padding: 6px 10px;
    font-size: 0.6rem;
  }
}

/* ==========================================================================
   🔒 VARNAMS VIP PASSCODE SECURITY GATE (Passcode: "Biryani")
   Mirrors Royal Smash & Solitaire Lounge Luxury Sovereign Styling
   ========================================================================== */
html.gate-locked .game-container {
  display: none !important;
}

.app-password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: radial-gradient(circle at 50% 25%, #0f231e 0%, #071311 55%, #020605 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-password-gate.unlocked-fade {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.gate-backdrop-stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #22c55e, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.7), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 40px, #f59e0b, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #38bdf8, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 230px 180px, #22c55e, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 300px 90px, rgba(255,255,255,0.6), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 350px 350px;
  opacity: 0.35;
  pointer-events: none;
}

.gate-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(165deg, rgba(15, 35, 28, 0.95) 0%, rgba(6, 18, 14, 0.98) 100%);
  border: 1.5px solid rgba(74, 222, 128, 0.45);
  border-radius: 26px;
  padding: 38px 30px 30px;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(34, 197, 94, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 10;
  animation: gateCardPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gateCardPop {
  0% { opacity: 0; transform: scale(0.92) translateY(18px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.gate-card.shake {
  animation: gateShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes gateShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.gate-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.gate-logo-img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(34, 197, 94, 0.45));
  position: relative;
  z-index: 2;
}

.gate-logo-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0) 70%);
  animation: gateGlowPulse 2.8s ease-in-out infinite;
  z-index: 1;
}

@keyframes gateGlowPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.gate-brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #4ade80, #facc15, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.gate-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 1px;
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gate-subtitle {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 340px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gate-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(8, 20, 16, 0.85);
  border: 1.5px solid rgba(74, 222, 128, 0.4);
  border-radius: 14px;
  padding: 0 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.gate-input-wrapper:focus-within {
  border-color: #22c55e;
  box-shadow: 
    0 0 18px rgba(34, 197, 94, 0.4),
    inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.gate-input-icon {
  font-size: 18px;
  margin-right: 8px;
  opacity: 0.85;
}

.gate-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 4px;
  font-family: inherit;
  letter-spacing: 0.5px;
  text-align: left;
}

.gate-input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.gate-pwd-toggle {
  background: none;
  border: none;
  font-size: 17px;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  transition: transform 0.15s, color 0.15s;
}

.gate-pwd-toggle:hover {
  color: #22c55e;
  transform: scale(1.1);
}

.gate-error-banner {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.gate-success-banner {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.gate-unlock-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 50%, #047857 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 15px 22px;
  border-radius: 14px;
  border: 1px solid rgba(134, 239, 172, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.38);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gate-unlock-btn:hover {
  background: linear-gradient(135deg, #4ade80 0%, #16a34a 50%, #059669 100%);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.55);
  transform: translateY(-1.5px);
}

.gate-unlock-btn:active {
  transform: translateY(0.5px) scale(0.98);
}

.btn-unlock-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: unlockBtnShine 3.2s infinite;
}

@keyframes unlockBtnShine {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

.gate-footer {
  margin-top: 24px;
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gate-dot { opacity: 0.4; }

@media (max-width: 480px) {
  .gate-card {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }
  .gate-title { font-size: 19px; }
}
