:root {
  --sapphire: #0b2545;
  --steel: #4a5568;
  --gold: #d4af37;
  --light-gold: #f7e98e;
  --dark-sapphire: #051929;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(
    135deg,
    var(--dark-sapphire) 0%,
    var(--sapphire) 100%
  );
  color: white;
}

.cinzel {
  font-family: "Cinzel", serif;
}

.gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
}

.sapphire-gradient {
  background: linear-gradient(
    135deg,
    var(--sapphire) 0%,
    var(--dark-sapphire) 100%
  );
}

.gem-shadow {
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.steel-bg {
  background-color: var(--steel);
}

.hero-bg {
  background: linear-gradient(rgba(11, 37, 69, 0.8), rgba(5, 25, 41, 0.9)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="gem"><stop offset="0%" stop-color="%23D4AF37" stop-opacity="0.1"/><stop offset="100%" stop-color="%230B2545" stop-opacity="0.3"/></radialGradient></defs><circle cx="20" cy="20" r="3" fill="url(%23gem)"/><circle cx="80" cy="30" r="2" fill="url(%23gem)"/><circle cx="30" cy="70" r="4" fill="url(%23gem)"/><circle cx="70" cy="80" r="2.5" fill="url(%23gem)"/></svg>');
}

.modal {
  backdrop-filter: blur(10px);
  background: rgba(11, 37, 69, 0.95);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
  color: var(--sapphire);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.card-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner {
  background: linear-gradient(
    135deg,
    var(--sapphire) 0%,
    var(--dark-sapphire) 100%
  );
  border-top: 2px solid var(--gold);
}

#ageModal,
#gameModal,
#cookieBanner {
  display: none;
}

#ageModal.show,
#gameModal.show,
#cookieBanner.show {
  display: flex;
}

.leaderboard-item {
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(74, 85, 104, 0.1) 100%
  );
  border-left: 3px solid var(--gold);
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--gold);
}

.legal-content {
  max-height: 70vh;
  overflow-y: auto;
}

.legal-content::-webkit-scrollbar {
  width: 6px;
}

.legal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.legal-content::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

@keyframes gemSparkle {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.sparkle {
  animation: gemSparkle 2s infinite;
}

.nav-link:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  nav.desktop-nav {
    display: none !important;
  }

  .burger-btn {
    display: flex !important;
  }
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1001;
  /* Поверх всего */
  position: relative;
  background: none;
  border: none;
}

.burger-btn span {
  height: 4px;
  width: 100%;
  background: var(--gold);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(11, 37, 69, 0.98);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 220px;
  padding: 20px 0 10px 0;
  z-index: 1000;
}

.mobile-nav a,
.mobile-nav button {
  padding: 12px 24px;
  color: var(--gold);
  font-weight: 600;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: none;
  border: none;
  width: 100%;
  display: block;
  text-align: right;
}

.mobile-nav a:last-child,
.mobile-nav button:last-child {
  border-bottom: none;
}

.mobile-nav button {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
  color: var(--sapphire);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
  transition: all 0.2s;
}

.mobile-nav button:hover {
  background: var(--gold);
  color: var(--sapphire);
}

@media (max-width: 900px) {
  .desktop-play-btn {
    display: none !important;
  }
}
