:root {
  --bg-deep: #0B1713;
  --bg-forest: #122620;
  --gold: #D4AF37;
  --gold-bright: #F3D576;
  --cream: #F4F1EA;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.12), transparent 42%),
    radial-gradient(circle at 85% 20%, rgba(168, 36, 48, 0.14), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(27, 94, 67, 0.22), transparent 55%);
}

.snow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -12px;
  color: rgba(244, 241, 234, 0.65);
  animation: snowFall linear infinite;
  user-select: none;
}

@keyframes snowFall {
  0% {
    transform: translate3d(0, -10px, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(36px, 105vh, 0) rotate(360deg);
  }
}

.nav-btn {
  color: rgba(244, 241, 234, 0.75);
}
.nav-btn.active {
  background: linear-gradient(135deg, #D4AF37 0%, #B38B1D 100%);
  color: #0B1713;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.28);
}

.tv-mode-btn.active,
.finale-mode-btn.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: #D4AF37;
  color: #F3D576;
  font-weight: 600;
}

/* TV Skatuves rāmis */
.tv-frame {
  background:
    linear-gradient(160deg, rgba(22, 49, 40, 0.92) 0%, rgba(11, 23, 19, 0.96) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.ornate-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}

/* Telefona makets */
.phone-bezel {
  background: linear-gradient(145deg, #27302d, #0d1210);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.phone-notch {
  width: 96px;
  height: 18px;
  border-radius: 999px;
  background: #070a09;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-screen {
  background: linear-gradient(180deg, #132821 0%, #0A1511 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Sveces liesma */
@keyframes flameFlicker {
  0%, 100% { transform: scaleY(1) rotate(-1deg); opacity: 0.95; }
  50% { transform: scaleY(1.12) rotate(2deg); opacity: 1; }
}
.candle-flame {
  transform-origin: bottom center;
  animation: flameFlicker 1.2s ease-in-out infinite;
}

/* Vinila plate */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.vinyl-spin {
  animation: spinSlow 7s linear infinite;
}
.vinyl-paused {
  animation-play-state: paused;
}

/* Ekvalaizers */
@keyframes eqBounce {
  0%, 100% { height: 20%; }
  50% { height: 95%; }
}
.eq-bar {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F3D576, #D4AF37);
  animation: eqBounce 0.9s ease-in-out infinite;
}

/* Vaska zīmogs */
@keyframes sealPop {
  0% { transform: scale(2.2) rotate(-25deg); opacity: 0; }
  70% { transform: scale(0.92) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.wax-seal {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #d93848, #7d1420);
  border: 2px solid rgba(243, 213, 118, 0.55);
  box-shadow: 0 4px 12px rgba(125, 20, 32, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  animation: sealPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Titulu individuālās auras */
.aura-ember {
  border-color: rgba(249, 115, 22, 0.65) !important;
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.22), inset 0 0 22px rgba(249, 115, 22, 0.08);
  background: linear-gradient(155deg, rgba(67, 26, 11, 0.72), rgba(14, 25, 21, 0.95));
}
.aura-citrus {
  border-color: rgba(250, 204, 21, 0.7) !important;
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.22), inset 0 0 22px rgba(250, 204, 21, 0.08);
  background: linear-gradient(155deg, rgba(66, 51, 9, 0.72), rgba(14, 25, 21, 0.95));
}
.aura-ginger {
  border-color: rgba(217, 119, 6, 0.7) !important;
  box-shadow: 0 0 28px rgba(217, 119, 6, 0.24), inset 0 0 22px rgba(217, 119, 6, 0.09);
  background: linear-gradient(155deg, rgba(58, 31, 10, 0.75), rgba(14, 25, 21, 0.95));
}
.aura-aurora {
  border-color: rgba(45, 212, 191, 0.7) !important;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.22), inset 0 0 22px rgba(45, 212, 191, 0.08);
  background: linear-gradient(155deg, rgba(13, 56, 52, 0.72), rgba(14, 25, 21, 0.95));
}

/* Fināla dāvanas un sertifikāta stili */
@keyframes boxShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-5deg) scale(1.04); }
  40% { transform: rotate(5deg) scale(1.06); }
  60% { transform: rotate(-4deg) scale(1.04); }
  80% { transform: rotate(4deg) scale(1.02); }
}
.gift-shaking {
  animation: boxShake 0.65s ease-in-out infinite;
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid #F3D576;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.certificate-box {
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 50%),
    linear-gradient(160deg, #162E26 0%, #0D1B16 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: inset 0 0 0 4px rgba(11, 23, 19, 0.8), inset 0 0 0 5px rgba(212, 175, 55, 0.25);
}
