/* Yasins Spielwelt - Main Design System & Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;900&family=Fredoka:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #0f0c20;
  --bg-card: rgba(30, 22, 58, 0.75);
  --bg-card-hover: rgba(45, 33, 85, 0.9);
  --border-glow: rgba(255, 255, 255, 0.12);
  
  --primary-pink: #ff007f;
  --primary-cyan: #00f2fe;
  --primary-purple: #7928ca;
  --accent-gold: #ffd700;
  --accent-green: #00e676;
  --accent-orange: #ff6b35;

  --text-main: #ffffff;
  --text-muted: #b8b3d6;
  --text-glow: 0 0 15px rgba(0, 242, 254, 0.6);

  --font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(121, 40, 202, 0.2);
}

[dir="rtl"], body.is-rtl {
  --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: var(--font-family);
  background: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(121, 40, 202, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 0, 127, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.15) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Background floating decorative stars */
.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cosmic-star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: starTwinkle 3s infinite ease-in-out;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 12, 32, 0.75);
  border-bottom: 1px solid var(--border-glow);
  padding: 12px 20px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 0, 127, 0.4);
}

.logo-text h1 {
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff4081, #00f2fe, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.logo-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language selector */
.lang-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid var(--border-glow);
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  padding: 5px 9px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(255, 0, 127, 0.5);
}

/* Avatar button in header */
.avatar-header-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--primary-cyan);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
  transition: transform 0.2s;
}

.avatar-header-btn:active {
  transform: scale(0.92);
}

/* Sound toggle button */
.sound-toggle-btn, .install-pwa-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sound-toggle-btn:hover, .install-pwa-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* Main Container */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 60px;
  flex: 1;
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, rgba(121, 40, 202, 0.4), rgba(255, 0, 127, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  gap: 16px;
}

.stat-chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 10px 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-chip .stat-icon {
  font-size: 1.4rem;
}

/* Section Title */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Game Cards Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--card-color-1, #ff007f), var(--card-color-2, #00f2fe));
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 25px var(--card-glow, rgba(0, 242, 254, 0.4));
}

.game-card-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.game-card-info h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.game-card-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: auto;
}

.game-card-badge {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-play-card {
  background: linear-gradient(135deg, var(--card-color-1, #ff007f), var(--card-color-2, #7928ca));
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.game-card:hover .btn-play-card {
  transform: scale(1.06);
}

/* Active Game Screen Modal / Wrapper */
.game-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0d0a1c;
  z-index: 200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.game-screen.active {
  opacity: 1;
  pointer-events: all;
}

.game-screen-header {
  padding: 12px 20px;
  background: rgba(15, 12, 32, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glow);
}

.game-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.in-game-sound-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.in-game-sound-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
  border-color: #ffd700;
}

.in-game-sound-btn.is-muted {
  background: rgba(235, 77, 75, 0.25);
  border-color: rgba(235, 77, 75, 0.5);
}

/* Sound Status Floating Toast */
.sound-status-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 30px;
  border: 2px solid rgba(255, 215, 0, 0.4);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sound-status-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.game-screen-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Generic Buttons */
.btn {
  font-family: inherit;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid var(--border-glow);
}

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

.btn-sm {
  padding: 6px 14px;
  font-size: 0.88rem;
  border-radius: 18px;
}

/* Avatar Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hidden,
.modal-backdrop.hidden {
  display: none !important;
}

.modal-card {
  background: #1b1338;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.avatar-choice {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 12px 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.avatar-choice .avatar-emoji {
  font-size: 2.2rem;
}

.avatar-choice .avatar-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.avatar-choice.selected, .avatar-choice:hover {
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.15);
  transform: scale(1.06);
}

/* Confetti Container */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 500;
}

/* ==============================================
   RESPONSIVE DESIGN (TABLETS & SMARTPHONES)
   ============================================== */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* Standard Mobile & Phablets (<= 768px) */
@media (max-width: 768px) {
  .app-header {
    padding: 8px 12px;
  }

  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }

  .logo-group {
    gap: 8px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-text h1 {
    font-size: 1.15rem;
  }

  .logo-text p {
    display: none;
  }

  .header-controls {
    gap: 6px;
    flex-wrap: wrap;
  }

  .btn-header {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .hero-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 16px 12px;
  }

  .hero-main-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .mascot-speech-bubble {
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: -55px !important;
    width: min(85vw, 250px) !important;
  }

  .mascot-bubble-tail {
    left: 50% !important;
    transform: translateX(-50%) rotate(45deg) !important;
  }

  .hero-text h2 {
    font-size: 1.4rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-stats {
    justify-content: center;
    width: 100%;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Lucky Wheel Responsive Modal */
  .lucky-wheel-card {
    width: 94vw !important;
    max-width: 94vw !important;
    padding: 20px 12px !important;
  }

  #wheel-canvas {
    max-width: min(78vw, 270px) !important;
    height: auto !important;
  }

  .wheel-center-pin {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .btn-wheel-spin {
    font-size: 1.05rem;
    padding: 10px 28px;
  }
}

/* Small Smartphone Viewports (<= 480px) */
@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 1rem;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
  }

  .btn-header {
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .hero-stats {
    gap: 8px;
  }

  .stat-badge {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* ==============================================
   INTERACTIVE MASCOT COMPANION (ASTRO-YASIN)
   ============================================== */
.hero-main-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mascot-container {
  position: relative;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.mascot-character {
  position: relative;
  width: 76px;
  height: 76px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.28) 0%, rgba(121, 40, 202, 0.35) 70%, transparent 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mascotFloat 3s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mascot-character:hover {
  transform: scale(1.15) rotate(6deg);
}

.mascot-character.spin-anim {
  animation: mascotSpin 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mascot-emoji {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 12px rgba(0, 242, 254, 0.6));
  pointer-events: none;
}

.mascot-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 242, 254, 0.6);
  animation: ringRotate 8s linear infinite;
  pointer-events: none;
}

.mascot-star-sparkle {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 1.3rem;
  animation: pulseStar 1.8s ease-in-out infinite;
  pointer-events: none;
}

.mascot-speech-bubble {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  background: #ffffff;
  color: #1a103c;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  width: 230px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 242, 254, 0.4);
  z-index: 30;
  animation: popIn 0.3s ease-out;
  border: 2px solid #00f2fe;
}

.mascot-bubble-tail {
  position: absolute;
  bottom: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  border-right: 2px solid #00f2fe;
  border-bottom: 2px solid #00f2fe;
}

/* RTL Mascot adjustments */
.is-rtl .mascot-speech-bubble {
  left: auto;
  right: 0;
}
.is-rtl .mascot-bubble-tail {
  left: auto;
  right: 28px;
  border-right: none;
  border-left: 2px solid #00f2fe;
}

/* Hero Action Row (Lucky Wheel Button) */
.hero-action-row {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-lucky-wheel {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #ff007f 100%);
  color: #1a103c;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-lucky-wheel:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(255, 140, 0, 0.7);
}

.btn-lucky-wheel:active {
  transform: translateY(0) scale(0.98);
}

.spin-gift-icon {
  font-size: 1.3rem;
  animation: wiggle 2s ease-in-out infinite;
}

/* ==============================================
   LUCKY PRIZE WHEEL MODAL
   ============================================== */
.wheel-modal-card {
  background: radial-gradient(circle at 50% 30%, #291a52 0%, #150d2e 100%);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 215, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: scaleIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.wheel-modal-close:hover {
  background: #ff007f;
}

.wheel-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  margin-bottom: 6px;
}

.wheel-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.wheel-stage {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.wheel-indicator {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  color: #ffd700;
  z-index: 10;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
  animation: arrowBounce 1s infinite alternate;
}

#wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.3);
  border: 4px solid #ffd700;
}

.wheel-center-pin {
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #ffffff 0%, #ffd700 70%, #d4af37 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  z-index: 5;
  border: 2px solid #ffffff;
}

.btn-wheel-spin {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #0b132b;
  border: none;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 12px 36px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-wheel-spin:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.7);
}

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

.wheel-result-banner {
  margin-top: 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.prize-emoji {
  font-size: 3rem;
  margin-bottom: 4px;
  animation: pulseStar 1.2s infinite;
}

.prize-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.btn-claim-reward {
  background: linear-gradient(135deg, #00e676 0%, #10b981 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 24px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s;
}

.btn-claim-reward:hover {
  transform: scale(1.05);
}

/* ==============================================
   CARD HOVER VIBRANCY & 3D FEEL
   ============================================== */
.game-card {
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 16px 36px var(--card-glow), 0 0 25px rgba(255, 255, 255, 0.15) !important;
}

/* Animations */
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}

@keyframes mascotSpin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

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

@keyframes arrowBounce {
  0% { transform: translate(-50%, 0); }
  100% { transform: translate(-50%, 4px); }
}

@keyframes pulseStar {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==============================================
   ARCADE JOYSTICK CUSTOM CURSOR SYSTEM 🕹️
   ============================================== */
:root {
  --cursor-joystick: url('../assets/cursor-joystick.svg') 6 6, auto;
  --cursor-joystick-pointer: url('../assets/cursor-joystick-pointer.svg') 6 6, pointer;
}

html, body {
  cursor: var(--cursor-joystick);
}

button, a, [role="button"], .btn, .game-card, .sound-toggle-btn, .lang-btn, 
.avatar-option, .hotbar-slot, .minecraft-btn, .realcraft-btn, .world-card, 
.toggle-pill, .btn-play-card, .btn-back-lobby, .modal-close-btn, .rc-modal-close,
.hud-item, .garden-btn, input[type="button"], input[type="submit"], select, .card-badge,
.garden-floating-bag, .garden-item-card, .btn-spawn-item, .garden-tab-btn {
  cursor: var(--cursor-joystick-pointer) !important;
}

/* Floating Arcade Joystick Follower for maximum visibility & feel */
#arcade-joystick-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  pointer-events: none;
  z-index: 999999;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.2s ease, filter 0.15s ease;
  will-change: transform;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(0, 242, 254, 0.5));
}

#arcade-joystick-follower img {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 6px 6px;
  transition: transform 0.08s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#arcade-joystick-follower.hidden {
  display: none !important;
}

#arcade-joystick-follower.clicking img {
  transform: scale(0.85) rotate(-14deg) !important;
}

#arcade-joystick-follower.hovering {
  filter: drop-shadow(0 0 14px rgba(0, 242, 254, 0.95)) drop-shadow(0 0 22px rgba(255, 0, 127, 0.65));
}

.joystick-click-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 999998;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 8px #00f2fe, 0 0 14px #ff007f;
  animation: sparklePop 0.45s ease-out forwards;
}

@keyframes sparklePop {
  0% { transform: scale(1.4) translate(0, 0); opacity: 1; }
  100% { transform: scale(0) translate(var(--dx), var(--dy)); opacity: 0; }
}

@media (hover: none) or (pointer: coarse) {
  #arcade-joystick-follower {
    display: none !important;
  }
}

/* ==============================================
   CURSOR PICKER MODAL & HEADER BUTTON 🕹️✨
   ============================================== */
.cursor-header-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--accent-gold);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cursor-header-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.7);
}

.cursor-header-btn:active {
  transform: scale(0.92);
}

.cursor-modal-card {
  max-width: 580px;
  width: 95%;
  background: #1a1538;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.3);
}

.cursor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 4px;
}

.cursor-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.cursor-option-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.cursor-option-card.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 129, 0.15));
  border-color: var(--accent-gold);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
}

.cursor-preview-box {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.cursor-preview-img {
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease;
}

.cursor-option-card:hover .cursor-preview-img {
  transform: scale(1.2) rotate(10deg);
}

.cursor-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.cursor-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
}

.cursor-option-card.active .cursor-badge-pill {
  background: var(--accent-gold);
  color: #000;
}
