@charset "UTF-8";

/* ==========================================
   BOOK OF DEAD DESIGN SYSTEM & THEME
   ========================================== */
:root {
  --bod-gold: #FFD700;
  --bod-light-gold: #FFF176;
  --bod-dark-gold: #D4AF37;
  --bod-amber: #F5A623;
  --bod-ruby: #FF2E4C;
  --bod-turquoise: #00D2C4;
  --bod-obsidian: #0A0704;
  --bod-tomb-dark: #140E07;
  --bod-tomb-card: rgba(20, 14, 7, 0.85);
  --bod-gold-border: rgba(255, 215, 0, 0.35);
  
  --font-egyptian: 'Cinzel Decorative', 'Cinzel', serif;
  --font-header: 'Cinzel', 'Plus Jakarta Sans', serif;
  --font-primary: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bod-obsidian);
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(255, 46, 76, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 7, 4, 0.7) 0%, rgba(10, 7, 4, 0.85) 100%),
    url('img/bg.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  line-height: 1.5;
}

/* ==========================================
   SOUND TOGGLE BUTTON
   ========================================== */
.sound-toggle-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 14, 7, 0.8);
  border: 2px solid var(--bod-gold);
  color: var(--bod-gold);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 215, 0, 0.3);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.sound-toggle-btn:hover {
  transform: scale(1.1);
  background: var(--bod-gold);
  color: var(--bod-obsidian);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* ==========================================
   FLOATING EURO COINS & GOLD SPARKS
   ========================================== */
.floating-coins {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.coin {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF176, var(--bod-gold), #8B6508);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid #FFE082;
  animation: coinFall linear infinite;
  opacity: 0;
}

.coin::after {
  content: '€';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  font-family: var(--font-primary);
  color: #3E2723;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

@keyframes coinFall {
  0% {
    transform: translateY(-30px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

/* ==========================================
   LAYOUT CONTAINER & HEADER
   ========================================== */
.container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  min-height: 100vh;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.logo-section {
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: center;
}

.logo-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 6px 20px rgba(255, 215, 0, 0.35));
}

.bod-logo-img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  border-radius: 12px;
}

/* ==========================================
   TITLES SECTION
   ========================================== */
.main-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2px;
}

.title-glow {
  font-family: var(--font-egyptian);
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bod-light-gold) 40%, var(--bod-gold) 70%, var(--bod-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
  text-transform: uppercase;
}

.title-accent {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 800;
  color: var(--bod-turquoise);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 0 8px rgba(0, 210, 196, 0.6);
}

.subtitle {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 340px;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   WHEEL OF RA SECTION
   ========================================== */
.wheel-wrapper {
  position: relative;
  width: 330px;
  height: 330px;
  max-width: 86vw;
  max-height: 86vw;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  flex-shrink: 0;
}

.wheel-glow {
  position: absolute;
  inset: -35px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(255, 46, 76, 0.1) 45%, transparent 70%);
  animation: wheelGlowPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wheelGlowPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.wheel-outer-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2A1D11 0%, #140E07 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: 
    0 18px 45px rgba(0, 0, 0, 0.85), 
    0 0 35px rgba(255, 215, 0, 0.4), 
    inset 0 0 25px rgba(0, 0, 0, 0.9);
  border: 5px solid var(--bod-dark-gold);
}

.wheel-outer-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 6px dotted var(--bod-gold);
  animation: ledBlink 1.8s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes ledBlink {
  0%, 100% {
    border-color: rgba(255, 215, 0, 0.4);
  }
  50% {
    border-color: #FFFFFF;
    box-shadow: 0 0 15px var(--bod-gold);
  }
}

/* Wheel Pointer (Golden Dagger Pointer with Ruby Gem) */
.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.7));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pointer-shape {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 34px solid var(--bod-gold);
  position: relative;
}

.pointer-gem {
  position: absolute;
  top: -30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FF8A80, var(--bod-ruby), #800000);
  border: 1.5px solid var(--bod-gold);
  box-shadow: 0 0 8px var(--bod-ruby);
}

#wheelCanvas {
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.wheel-center-cap {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3D2914, #100A04);
  border: 3px solid var(--bod-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  box-shadow: 
    0 4px 18px rgba(0, 0, 0, 0.7), 
    0 0 20px rgba(255, 215, 0, 0.4),
    inset 0 0 12px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  gap: 2px;
}

.wheel-center-cap:hover {
  transform: scale(1.08);
}

.center-cap-book-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.wheel-center-cap span {
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 900;
  color: var(--bod-gold);
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   SPIN BUTTON
   ========================================== */
.spin-btn {
  width: 100%;
  max-width: 290px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #FFE082 0%, var(--bod-gold) 40%, var(--bod-amber) 70%, #C59B27 100%);
  border: 2px solid #FFF59D;
  border-radius: 50px;
  padding: 16px 40px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(255, 215, 0, 0.4), 
    0 12px 30px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.spin-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #FFF176 0%, #FFD700 40%, #FFA726 70%, #D4AF37 100%);
  box-shadow: 
    0 8px 25px rgba(255, 215, 0, 0.6), 
    0 15px 35px rgba(0, 0, 0, 0.6);
}

.spin-btn:active {
  transform: translateY(1px);
}

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

.spin-btn-text {
  font-family: var(--font-header);
  font-size: 21px;
  font-weight: 900;
  color: #261605;
  letter-spacing: 3px;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.spin-btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: btnShine 3.5s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 60% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ==========================================
   SPIN COUNTER
   ========================================== */
.spin-counter {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.counter-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  transition: all 0.4s ease;
}

.counter-dot.active {
  background: var(--bod-gold);
  border-color: #FFF176;
  box-shadow: 0 0 12px var(--bod-gold);
}

.counter-dot.completed {
  background: var(--bod-turquoise);
  border-color: #80DEEA;
  box-shadow: 0 0 12px var(--bod-turquoise);
}

/* ==========================================
   MODAL PANELS (EGYPTIAN GLASSMORPHIC DIALOGS)
   ========================================== */
.result-panel, .cta-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 7, 4, 0.88);
  backdrop-filter: blur(16px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.35s ease-out;
}

.result-panel.visible, .cta-panel.visible {
  display: flex;
}

.result-content, .cta-content {
  text-align: center;
  padding: 40px 24px;
  background: var(--bod-tomb-card);
  border: 2px solid var(--bod-gold-border);
  border-radius: 28px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(255, 215, 0, 0.2);
  animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-icon {
  font-size: 58px;
  margin-bottom: 12px;
  animation: bounceIn 0.6s ease 0.2s both;
}

.result-title {
  font-family: var(--font-header);
  font-size: 16px;
  font-weight: 800;
  color: var(--bod-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.result-value {
  font-family: var(--font-header);
  font-size: 40px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 24px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.next-btn {
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  border: 2px solid #B9F6CA;
  border-radius: 50px;
  padding: 16px 36px;
  color: #05260F;
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.next-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #69F0AE 0%, #00E676 100%);
  box-shadow: 0 8px 25px rgba(0, 230, 118, 0.6);
}

.result-particles, .cta-fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 28px;
}

/* ==========================================
   FINAL CTA PANEL
   ========================================== */
.cta-badge {
  display: inline-block;
  background: var(--bod-ruby);
  color: #FFFFFF;
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 0 10px var(--bod-ruby);
}

.cta-title {
  font-family: var(--font-egyptian);
  font-size: 22px;
  font-weight: 900;
  color: var(--bod-gold);
  margin-bottom: 25px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cta-bonuses {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.bonus-card {
  flex: 1;
  padding: 20px 10px;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid var(--bod-gold-border);
  border-radius: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bonus-card:hover {
  transform: translateY(-3px);
  border-color: var(--bod-gold);
}

.bonus-card:first-child {
  border-top: 3px solid var(--bod-gold);
}

.bonus-card:last-child {
  border-top: 3px solid var(--bod-turquoise);
}

.bonus-icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.bonus-amount {
  font-family: var(--font-header);
  font-size: 28px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.bonus-card:first-child .bonus-amount {
  color: var(--bod-gold);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.bonus-card:last-child .bonus-amount {
  color: var(--bod-turquoise);
  text-shadow: 0 0 12px rgba(0, 210, 196, 0.4);
}

.bonus-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bonus-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bod-gold), transparent);
}

.cta-btn {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
  border: 2px solid #B9F6CA;
  border-radius: 50px;
  padding: 18px 46px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 
    0 6px 20px rgba(0, 230, 118, 0.4), 
    0 12px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.cta-btn span {
  font-family: var(--font-header);
  font-size: 17px;
  font-weight: 900;
  color: #05260F;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.cta-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #69F0AE 0%, #00E676 100%);
  box-shadow: 
    0 8px 25px rgba(0, 230, 118, 0.6), 
    0 15px 35px rgba(0, 0, 0, 0.6);
}

.cta-btn-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid rgba(0, 230, 118, 0.6);
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0;
  }
}

/* ==========================================
   ANIMATIONS & MEDIA QUERIES
   ========================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounceIn {
  from {
    transform: scale(0) rotate(-15deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 24px 16px;
    gap: 16px;
  }
  .logo-section {
    max-width: 260px;
  }
  .title-glow {
    font-size: 22px;
  }
  .title-accent {
    font-size: 11px;
  }
  .subtitle {
    font-size: 13px;
  }
  .wheel-wrapper {
    width: 290px;
    height: 290px;
  }
  .wheel-outer-ring {
    padding: 10px;
    border-width: 4px;
  }
  .wheel-center-cap {
    width: 72px;
    height: 72px;
  }
  .center-cap-book-img {
    width: 28px;
    height: 28px;
  }
  .wheel-center-cap span {
    font-size: 10px;
  }
  .spin-btn {
    padding: 14px 30px;
  }
  .spin-btn-text {
    font-size: 18px;
  }
  .result-content, .cta-content {
    padding: 32px 16px;
  }
  .result-value {
    font-size: 34px;
  }
  .bonus-amount {
    font-size: 24px;
  }
  .cta-bonuses {
    gap: 10px;
  }
  .cta-btn {
    padding: 16px 32px;
  }
  .cta-btn span {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .wheel-wrapper {
    width: 250px;
    height: 250px;
  }
  .bonus-amount {
    font-size: 20px;
  }
}