/* ==========================================================================
   ARROW PUZZLE — LUXURY MODERN ARCADE DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-app: #edf2f9;
  --bg-card: #ffffff;
  --bg-pill: #f1f5fa;
  --bg-pill-hover: #e5edf7;
  --text-main: #0f172a;
  --text-sub: #64748b;
  --primary-blue: #007aff;
  --primary-blue-glow: rgba(0, 122, 255, 0.45);
  --arrow-stroke: #1e293b;
  --arrow-highlight: #ffffff;
  --arrow-active: #0084ff;
  --arrow-blocked: #ff334b;
  --arrow-hint: #10b981;
  --heart-red: #ff2d55;
  --star-gold: #ffb703;
  --grid-dot-color: rgba(148, 163, 184, 0.28);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --border-subtle: rgba(148, 163, 184, 0.2);
  --border-radius-card: 32px;
  --transition-fast: 0.18s cubic-bezier(0.2, 0.9, 0.3, 1);
  --transition-spring: 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] {
  --bg-app: #06090f;
  --bg-card: #0f1523;
  --bg-pill: #182236;
  --bg-pill-hover: #22304d;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --primary-blue: #38bdf8;
  --primary-blue-glow: rgba(56, 189, 248, 0.5);
  --arrow-stroke: #f1f5f9;
  --arrow-highlight: #38bdf8;
  --arrow-active: #38bdf8;
  --arrow-blocked: #f43f5e;
  --arrow-hint: #34d399;
  --star-gold: #fbbf24;
  --grid-dot-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Confetti Canvas Overlay */
.confetti-canvas {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  pointer-events: none !important;
  z-index: 9999 !important;
}

html, body {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Desktop App Backdrop Container */
.screen-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: radial-gradient(circle at 50% 25%, rgba(56, 189, 248, 0.08), transparent 70%), var(--bg-app);
  padding: clamp(8px, 2vh, 24px) clamp(12px, 3vw, 40px);
  box-sizing: border-box !important;
  overflow: hidden !important;
  z-index: 1;
}

/* Phone Mockup Frame */
.phone-frame {
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: min(840px, calc(100vh - 32px));
  max-height: min(840px, calc(100dvh - 32px));
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  box-sizing: border-box;
  margin: auto !important;
  align-self: center !important;
  transition: transform 0.1s ease;
}

@media (min-width: 520px) {
  .phone-frame {
    width: min(420px, calc(100vw - 64px));
    height: min(840px, calc(100vh - 36px));
    height: min(840px, calc(100dvh - 36px));
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    border-radius: 40px;
    border: 8px solid #111827;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 519px) {
  .screen-container {
    padding: 0 !important;
  }
  .phone-frame {
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .phone-speaker-bar {
    display: none !important;
  }
}

/* While an ad break is active, block game interaction in the background */
body.ad-active .screen-container {
  pointer-events: none !important;
}

/* Ensure Google H5 Ad Placement API full-screen overlays sit on top and are fully clickable */
ins.adsbygoogle,
iframe[id^="google_ads_iframe"],
iframe[name^="google_ads_iframe"],
div[id^="google_ads_iframe"],
div[id^="aswift_"],
iframe[id^="aswift_"] {
  pointer-events: auto !important;
}

/* Suppress unwanted auto-placed web banner placeholders outside the game container */
.google-auto-placed,
.adsbygoogle-top-container,
.adsbygoogle-bottom-container,
.adsbygoogle-mobile-top-container,
.adsbygoogle-mobile-bottom-container,
ins.adsbygoogle[data-anchor-status] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* Dynamic Notch / Speaker Bar */
.phone-speaker-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 2px;
  width: 100%;
  flex-shrink: 0;
}

.speaker-pill {
  width: 80px;
  height: 5px;
  background: var(--text-sub);
  opacity: 0.25;
  border-radius: 6px;
}

/* Top Navigation Bar */
.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 18px 2px;
  z-index: 10;
  flex-shrink: 0;
}

.topbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.level-indicator {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.tier-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.tier-badge.tier-apprentice {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.35);
}

.tier-badge.tier-adept {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.tier-badge.tier-expert {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  box-shadow: 0 2px 8px rgba(217, 70, 239, 0.35);
}

.tier-badge.tier-master {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.tier-badge.tier-grandmaster {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}

.nav-icon-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  color: var(--primary-blue);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.nav-icon-btn:hover {
  background: var(--bg-pill);
}

.nav-icon-btn:active {
  transform: scale(0.9);
}

/* Status Sub-bar */
.game-subbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2px 18px 4px;
  z-index: 10;
  flex-shrink: 0;
}

.game-subbar > *:first-child {
  justify-self: start;
}

.game-subbar > *:last-child {
  justify-self: end;
}

.subbar-pill {
  background: var(--bg-pill);
  padding: 6px 14px;
  border-radius: 22px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease;
  min-height: 36px;
  line-height: 1;
}

.rocket-svg {
  animation: rocketPulse 2.4s ease-in-out infinite;
}

@keyframes rocketPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.08); }
}

.hearts-box {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
}

.heart-life {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(255, 45, 85, 0.35));
}

.heart-life.lost {
  opacity: 0.2;
  transform: scale(0.72);
  filter: grayscale(1);
}

.heart-life.heart-pop {
  animation: heartBreakAnim 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartBreakAnim {
  0% { transform: scale(1); }
  35% { transform: scale(1.45) rotate(-14deg); filter: drop-shadow(0 0 12px #ff2d55); }
  70% { transform: scale(0.55) rotate(14deg); }
  100% { transform: scale(0.72); opacity: 0.2; }
}

/* Interactive Difficulty Pill in Status Subbar */
.diff-badge-pill {
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-pill);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.diff-badge-pill:hover {
  background: var(--bg-pill-hover);
  border-color: var(--primary-blue);
  transform: translateY(-1px);
}

.diff-badge-pill:active {
  transform: scale(0.95);
}

.diff-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #007aff;
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.mode-easy .diff-indicator-dot,
.phone-frame.mode-easy .diff-indicator-dot,
.phone-screen.mode-easy .diff-indicator-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.mode-normal .diff-indicator-dot,
.phone-frame.mode-normal .diff-indicator-dot,
.phone-screen.mode-normal .diff-indicator-dot {
  background: #007aff;
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.7);
}

.mode-hard .diff-indicator-dot,
.phone-frame.mode-hard .diff-indicator-dot,
.phone-screen.mode-hard .diff-indicator-dot {
  background: #f59e0b;
  box-shadow: 0 0 9px rgba(245, 158, 11, 0.8);
}

.mode-insane .diff-indicator-dot,
.phone-frame.mode-insane .diff-indicator-dot,
.phone-screen.mode-insane .diff-indicator-dot {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
  animation: dotPulse 1.8s ease-in-out infinite alternate;
}

@keyframes dotPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 6px #ef4444); }
}

.chevron-down {
  margin-left: 2px;
  color: var(--text-sub);
  transition: transform 0.2s ease;
}

.diff-badge-pill:hover .chevron-down {
  transform: translateY(1px);
  color: var(--text-main);
}

/* Luxury Segmented Difficulty Control in Map Modal */
.modal-diff-segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 5px;
  margin-bottom: 14px;
}

.diff-seg-btn {
  background: transparent;
  border: none;
  border-radius: 13px;
  padding: 9px 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.diff-seg-btn:hover {
  color: var(--text-main);
}

.diff-seg-btn.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.diff-seg-btn[data-diff="easy"].active {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.diff-seg-btn[data-diff="normal"].active {
  background: linear-gradient(135deg, #007aff, #0056b3);
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.4);
}

.diff-seg-btn[data-diff="hard"].active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.diff-seg-btn[data-diff="insane"].active {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
  animation: insaneGlow 2.5s ease-in-out infinite alternate;
}

@keyframes insaneGlow {
  0% { box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35); }
  100% { box-shadow: 0 4px 22px rgba(239, 68, 68, 0.7); }
}

/* Hard & Insane Board Ambient Aura */
.phone-screen.mode-insane .board-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 0 32px rgba(239, 68, 68, 0.16);
  animation: insaneVignette 3s ease-in-out infinite alternate;
}

@keyframes insaneVignette {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.phone-screen.mode-hard .board-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 0 24px rgba(245, 158, 11, 0.12);
}

/* Board Viewport */
.board-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 4px 12px;
}

.svg-board-box {
  width: 100%;
  height: 100%;
  max-width: 440px;
  max-height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, var(--grid-dot-color) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  border-radius: 24px;
  transition: transform 0.1s ease;
}

/* Canvas for Particles & Sparks */
.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.arrow-maze-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 5;
}

/* Floating Combo Feedback */
.combo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}

.combo-tag {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.6);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #007aff, #38bdf8);
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.5);
  letter-spacing: 0.5px;
  white-space: nowrap;
  animation: comboFloat 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.combo-tag.high-combo {
  background: linear-gradient(135deg, #ff9500, #ff2d55);
  box-shadow: 0 6px 22px rgba(255, 45, 85, 0.6);
  font-size: 17px;
}

@keyframes comboFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.5);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -20px) scale(1.15);
  }
  45% {
    transform: translate(-50%, -28px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -60px) scale(0.9);
  }
}

/* Arrow Elements */
.arrow-group {
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.18s ease;
}

.arrow-group:hover .arrow-path {
  filter: drop-shadow(0 2px 6px rgba(0, 122, 255, 0.25));
}

.arrow-path {
  fill: none;
  stroke: var(--arrow-stroke);
  stroke-width: var(--arrow-stroke-w, 8px);
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.arrow-head-poly {
  fill: var(--arrow-stroke);
  transition: fill 0.2s ease, filter 0.2s ease;
}

/* Active Highlight / Tapped */
.arrow-group.active .arrow-path {
  stroke: var(--arrow-active);
  stroke-width: var(--arrow-active-stroke-w, 9.5px);
  filter: drop-shadow(0 0 10px var(--primary-blue-glow));
}

.arrow-group.active .arrow-head-poly {
  fill: var(--arrow-active);
  filter: drop-shadow(0 0 10px var(--primary-blue-glow));
}

/* Blocked Collision Recoil & Shake */
.arrow-group.blocked .arrow-path {
  stroke: var(--arrow-blocked) !important;
  stroke-width: var(--arrow-active-stroke-w, 9.5px);
  filter: drop-shadow(0 0 12px rgba(255, 51, 75, 0.8)) !important;
  animation: arrowRecoil 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.arrow-group.blocked .arrow-head-poly {
  fill: var(--arrow-blocked) !important;
  filter: drop-shadow(0 0 12px rgba(255, 51, 75, 0.8)) !important;
  animation: arrowRecoil 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes arrowRecoil {
  0% { transform: scale(1); }
  25% { transform: scale(0.92); }
  50% { transform: scale(1.05); }
  75% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* Board Shake Animation */
.shake-board {
  animation: cameraShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes cameraShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-6px, 3px) rotate(-0.8deg); }
  30% { transform: translate(6px, -3px) rotate(0.8deg); }
  45% { transform: translate(-4px, 2px) rotate(-0.4deg); }
  60% { transform: translate(4px, -1px) rotate(0.4deg); }
  75% { transform: translate(-2px, 1px) rotate(0deg); }
}

/* Hint Glow */
.arrow-group.hinted .arrow-path {
  stroke: var(--arrow-hint) !important;
  stroke-width: 10px;
  animation: hintPulse 0.85s ease-in-out infinite alternate;
}

.arrow-group.hinted .arrow-head-poly {
  fill: var(--arrow-hint) !important;
  animation: hintPulse 0.85s ease-in-out infinite alternate;
}

@keyframes hintPulse {
  0% { filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4)); }
  100% { filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.95)); }
}

/* Authentic Pointing Glove */
.tutorial-pointer {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  z-index: 25;
}

.tutorial-pointer.show {
  opacity: 1;
  visibility: visible;
}

.hand-glove-svg {
  position: absolute;
  left: -38px;
  top: -12px;
  animation: gloveTapBob 1.6s ease-in-out infinite;
}

@keyframes gloveTapBob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4px, -5px) scale(0.94); }
}

.ripple-wave {
  position: absolute;
  left: 0;
  top: 0;
  border: 2.5px solid var(--primary-blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rippleExpand 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

.wave-1 { animation-delay: 0s; }
.wave-2 { animation-delay: 0.6s; }
.wave-3 { animation-delay: 1.2s; }

@keyframes rippleExpand {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.85;
  }
  100% {
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

/* Bottom Action Bar */
.game-bottom-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 4px 18px 10px;
  z-index: 10;
  flex-shrink: 0;
}

.circle-tool-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--primary-blue);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.circle-tool-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-pill);
}

.circle-tool-btn:active {
  transform: scale(0.92);
}

.tool-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.4);
}

.skip-tool-btn {
  color: #10b981;
}

.skip-tool-btn:hover {
  color: #059669;
  border-color: #10b981;
}

.tool-badge.ad-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  width: 24px;
  height: 20px;
  border-radius: 10px;
  top: -4px;
  right: -6px;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
}

.tool-badge.ad-hint {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  font-size: 10px;
  width: 26px;
  height: 20px;
  border-radius: 10px;
  right: -8px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
  animation: adBadgePulse 1.5s infinite alternate;
}

@keyframes adBadgePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); box-shadow: 0 0 12px rgba(245, 158, 11, 0.8); }
}

/* Ad Reward Modal */
.ad-card {
  max-width: 320px;
  text-align: center;
  padding: 28px 24px 24px;
}

.ad-icon-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(16, 185, 129, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 2px solid rgba(0, 122, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.18);
  animation: adIconBounce 2.5s ease-in-out infinite;
}

@keyframes adIconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

.btn-watch-ad {
  background: linear-gradient(135deg, #007aff 0%, #00c6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
}

.btn-watch-ad:hover {
  box-shadow: 0 6px 22px rgba(0, 122, 255, 0.55);
}

.btn-revive {
  background: linear-gradient(135deg, #ff2d55 0%, #ff527b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 45, 85, 0.4);
}

.btn-revive:hover {
  box-shadow: 0 6px 22px rgba(255, 45, 85, 0.6);
}

.btn-give-up {
  color: #ef4444;
  opacity: 0.85;
  font-weight: 700;
  margin-top: 4px;
  font-size: 13.5px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-give-up:hover {
  opacity: 1;
  text-decoration: underline;
  transform: translateY(-1px);
}

.ad-actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* Simulated Ad Player */
.ad-player-box {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
}

[data-theme="dark"] .ad-player-box {
  background: rgba(255, 255, 255, 0.04);
}

.ad-player-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 122, 255, 0.2);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: adSpin 0.7s linear infinite;
}

@keyframes adSpin {
  to { transform: rotate(360deg); }
}

.ad-player-text {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.ad-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
}

.ad-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #007aff, #10b981);
  border-radius: 3px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 100;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-card);
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.85);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

/* Victory Radiant Halo & Glorious Shine Effect */
.win-card-halo {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.32) 0%, rgba(56, 189, 248, 0.18) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  transform: scale(0.2);
  opacity: 0;
  filter: blur(28px);
  transition: transform 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.55s ease;
}

.modal-backdrop.active .win-card-halo {
  transform: scale(1);
  opacity: 1;
  animation: haloPulse 3.6s ease-in-out infinite alternate;
}

@keyframes haloPulse {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.08); opacity: 1; filter: blur(34px); }
}

/* Crisp Cinematic Specular Glass Sheen */
.win-card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.win-card-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -160%;
  width: 90%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 28%,
    rgba(255, 255, 255, 0.06) 36%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.35) 55%,
    rgba(255, 255, 255, 0.06) 64%,
    transparent 72%,
    transparent 100%
  );
  transform: rotate(24deg);
  opacity: 0;
}

.modal-backdrop.active .win-card-shine::after {
  animation: perfectSheenSweep 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.32s 1 forwards,
             perfectSheenLoop 4.5s ease-in-out 3s infinite;
}

@keyframes perfectSheenSweep {
  0% {
    left: -160%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 190%;
    opacity: 0;
  }
}

@keyframes perfectSheenLoop {
  0%, 75% {
    left: -160%;
    opacity: 0;
  }
  80% {
    opacity: 0.85;
  }
  95% {
    opacity: 0.85;
  }
  100% {
    left: 190%;
    opacity: 0;
  }
}

.modal-title {
  font-size: 25px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.stars-row {
  font-size: 44px;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.star-item {
  transition: transform 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.star-item.earned {
  color: var(--star-gold);
  text-shadow: 0 0 18px rgba(255, 183, 3, 0.85), 0 0 36px rgba(255, 204, 0, 0.45);
  animation: starPop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.35) forwards;
}

.s1 { animation-delay: 0.12s; }
.s2 { animation-delay: 0.28s; }
.s3 { animation-delay: 0.44s; }

@keyframes starPop {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.45) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.stats-panel {
  display: flex;
  justify-content: space-around;
  background: var(--bg-pill);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 22px;
  border: 1px solid var(--border-subtle);
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-cell span {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-sub);
  letter-spacing: 0.8px;
}

.stat-cell strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
}

.btn-primary-blue {
  background: linear-gradient(135deg, var(--primary-blue), #0062cc);
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-blue-glow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary-blue::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.32),
    transparent
  );
  transform: rotate(20deg);
  pointer-events: none;
  animation: btnGlint 3.6s ease-in-out infinite;
}

@keyframes btnGlint {
  0%, 65% { left: -120%; }
  100% { left: 180%; }
}

.btn-primary-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--primary-blue-glow);
}

.btn-primary-blue:active {
  transform: scale(0.96);
}

.btn-secondary-link {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.2s ease;
}

.btn-secondary-link:hover {
  color: var(--text-main);
}

.heart-loss-badge {
  margin-bottom: 12px;
  animation: heartLossShake 0.6s ease;
}

@keyframes heartLossShake {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.25) rotate(-12deg); }
  75% { transform: scale(1.25) rotate(12deg); }
}

/* Map Card & 1-1000 Level Navigator */
.map-card {
  max-width: 440px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
}

.modal-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  text-align: left;
}

.map-subtitle {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  margin-top: 2px;
}

.btn-close-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-pill);
  color: var(--text-main);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-close-round:hover {
  background: var(--bg-pill-hover);
}

/* Quick Jump Input Row */
.level-jump-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.level-jump-row input {
  flex: 1;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.level-jump-row input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}

.btn-jump-go {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.btn-jump-go:active {
  transform: scale(0.92);
}

/* 100-Level Tab Navigation */
.level-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.level-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.level-tab-pill {
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-pill);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.level-tab-pill:hover {
  background: var(--bg-pill-hover);
}

.level-tab-pill.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 2px 8px var(--primary-blue-glow);
}

.level-grid-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  overflow-y: auto;
  max-height: 48vh;
  padding: 4px;
  scrollbar-width: thin;
}

.level-card-btn {
  background: var(--bg-pill);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: transform var(--transition-fast), border var(--transition-fast), background var(--transition-fast);
}

.level-card-btn:hover:not(.locked) {
  transform: translateY(-2px);
  background: var(--bg-pill-hover);
}

.level-card-btn.curr {
  border-color: var(--primary-blue);
  background: rgba(0, 122, 255, 0.1);
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.25);
}

.level-card-btn.locked {
  opacity: 0.35;
  cursor: not-allowed;
}

.lvl-card-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.lvl-card-stars {
  font-size: 11px;
  color: var(--star-gold);
}

/* Settings Card */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
}

.setting-item small {
  font-size: 12px;
  color: var(--text-sub);
}

/* Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .switch-slider {
  background-color: var(--primary-blue);
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
}

.btn-danger-text {
  background: none;
  border: none;
  color: #ff3b30;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Confetti Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ==========================================================================
   TOPBAR & IN-GAME BRANDING LOGO STYLES
   ========================================================================== */
.topbar-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.topbar-logo-badge {
  height: 24px;
  width: auto;
  max-width: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.topbar-logo-badge:hover {
  transform: scale(1.1) rotate(-3deg);
}

.map-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-brand-logo {
  height: 38px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

.settings-brand-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-pill);
  border-radius: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.settings-brand-logo-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 14px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.settings-brand-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.settings-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.settings-brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.win-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(0, 122, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-sub);
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
}

.win-mini-logo {
  height: 18px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   DYNAMIC HIGH-END SPLASH SCREEN (MATCHING GAME THEME & CONTRAST)
   ========================================================================== */
.splash-screen {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 24px 28px;
  background-color: #ffffff;
  background: #ffffff;
  color: var(--text-main);
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.55s ease;
}

[data-theme="dark"] .splash-screen {
  background-color: #0f1523;
  background: #0f1523;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  pointer-events: none;
}

/* Ambient dynamic background lighting */
.splash-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.splash-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: splashGlowPulse 4s ease-in-out infinite alternate;
}

.splash-glow-1 {
  width: 260px;
  height: 260px;
  background: var(--primary-blue);
  opacity: 0.18;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.splash-glow-2 {
  width: 220px;
  height: 220px;
  background: #00d2ff;
  opacity: 0.12;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -2s;
}

[data-theme="dark"] .splash-glow-1 {
  opacity: 0.28;
}

[data-theme="dark"] .splash-glow-2 {
  opacity: 0.22;
}

.splash-grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, var(--grid-dot-color) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.8;
}

@keyframes splashGlowPulse {
  0% {
    transform: translateX(-50%) scale(0.85);
  }
  100% {
    transform: translateX(-50%) scale(1.2);
  }
}

/* Splash Core Body */
.splash-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 360px;
  margin-top: auto;
  margin-bottom: auto;
}

/* Logo Hero with Halo and Card */
.splash-logo-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
}

.splash-logo-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--primary-blue-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(18px);
  animation: logoHaloPulse 3s ease-in-out infinite alternate;
}

.splash-logo-card {
  position: relative;
  width: 180px;
  height: 110px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  box-shadow: 
    var(--shadow-lg),
    0 0 24px var(--primary-blue-glow);
  animation: splashLogoFloat 3.6s ease-in-out infinite;
}

.splash-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.splash-badge-pill {
  margin-top: 14px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary-blue);
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

@keyframes splashLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes logoHaloPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.85;
  }
}

/* Titles */
.splash-text-group {
  margin-bottom: 26px;
}

.splash-app-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 6px;
}

.splash-app-tagline {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.2px;
}

/* Loader Track & Status */
.splash-loader-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.splash-loader-wrap.ready {
  opacity: 0.35;
  transform: scale(0.96);
}

.splash-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--bg-pill);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.splash-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-blue) 0%, #38bdf8 100%);
  border-radius: 12px;
  box-shadow: 0 0 12px var(--primary-blue-glow);
  transition: width 0.06s ease;
}

.splash-progress-sparkle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0%;
  width: 24px;
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.splash-status-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.splash-status-label {
  color: var(--text-sub);
}

.splash-status-percent {
  color: var(--primary-blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

/* Start Game Action Button */
.splash-start-action {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  margin-top: 18px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 
    0 10px 28px var(--primary-blue-glow),
    0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: splashBtnPop 0.4s var(--transition-spring), splashBtnPulse 2s ease-in-out infinite 0.5s;
}

[data-theme="dark"] .splash-start-action {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #06090f;
}

.splash-start-action.show {
  display: flex;
}

.splash-start-action:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 34px var(--primary-blue-glow);
}

.splash-start-action:active {
  transform: scale(0.96);
}

.splash-play-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@keyframes splashBtnPop {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes splashBtnPulse {
  0%, 100% {
    box-shadow: 0 10px 28px var(--primary-blue-glow);
  }
  50% {
    box-shadow: 0 14px 36px var(--primary-blue-glow), 0 0 0 6px rgba(0, 122, 255, 0.2);
  }
}

/* Footer Tag */
.splash-footer-info {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-sub);
  text-transform: uppercase;
}

.splash-footer-mini-logo {
  height: 18px;
  width: auto;
  opacity: 0.85;
  object-fit: contain;
}


