:root {
  --bg-base: #08081a;
  --bg-card: #0f0f2b;
  --accent-primary: #00c8f0;
  --accent-secondary: #a78bfa;
  --text-primary: #f0f4ff;
  --text-muted: #8892b0;
  --gradient-hero: linear-gradient(135deg, #08081a 0%, #0d1235 50%, #08081a 100%);
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #00c8f0 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  padding: 0.72rem 1.3rem;
  border-radius: 50px;
}

.btn-primary {
  background: linear-gradient(90deg, #00c8f0, #a78bfa);
  color: #08081a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-secondary:hover {
  background: rgba(0, 200, 240, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 26, 0.9);
  border-bottom: 1px solid rgba(0, 200, 240, 0.2);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.age-pill {
  border: 1px solid rgba(167, 139, 250, 0.65);
  color: #d8ccff;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--accent-primary);
}

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-hero);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(0, 200, 240, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 30%, rgba(167, 139, 250, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 70%, rgba(0, 200, 240, 0.5) 0 1.5px, transparent 3px),
    radial-gradient(circle at 30% 85%, rgba(167, 139, 250, 0.4) 0 1.8px, transparent 3px);
  animation: floatDots 16s linear infinite;
  opacity: 0.65;
}

.hero::after {
  animation-duration: 22s;
  transform: scale(1.08);
  opacity: 0.4;
}

@keyframes floatDots {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-40px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 92%);
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin-bottom: 1.1rem;
  background: linear-gradient(90deg, #00c8f0 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  color: #c4cae4;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-age {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 240, 0.38);
  color: var(--accent-primary);
  padding: 0.33rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.features-strip {
  padding: 2rem 0;
}

.features-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 200, 240, 0.15);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  color: #cbd2ef;
}

.section {
  padding: 4.4rem 0;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.games-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 200, 240, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.game-card:hover {
  border-color: rgba(0, 200, 240, 0.5);
  transform: translateY(-4px);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-card-body {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.game-card h3 {
  font-size: 1.18rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.step-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-secondary);
}

.newsletter-box {
  background: var(--bg-card);
  border: 1px solid rgba(0, 200, 240, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.newsletter-box input {
  flex: 1;
  min-width: 230px;
  border-radius: 10px;
  border: 1px solid rgba(136, 146, 176, 0.4);
  background: rgba(8, 8, 26, 0.9);
  color: var(--text-primary);
  padding: 0.72rem 0.8rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 200, 240, 0.2);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.stat-card strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent-primary);
  line-height: 1.1;
}

.page-main {
  padding: 3rem 0 4.4rem;
}

.page-main p {
  color: #cfd5ee;
}

.game-frame {
  margin: 1.2rem 0 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 200, 240, 0.25);
  overflow: hidden;
  background: #050512;
}

.game-notes {
  background: var(--bg-card);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.game-notes ul,
.legal-content ul {
  margin-left: 1.1rem;
}

.back-link {
  color: var(--accent-primary);
  font-weight: 700;
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-content section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 200, 240, 0.15);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.legal-content h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin-bottom: 0.6rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid rgba(136, 146, 176, 0.35);
  text-align: left;
  padding: 0.58rem;
}

.cookie-table th {
  color: #d9dfff;
}

.site-footer {
  border-top: 1px solid rgba(0, 200, 240, 0.2);
  padding: 2rem 0;
  background: #060613;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-primary);
}

.rg-logos {
  margin: 1.2rem 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.disclaimer {
  color: #bcc5e8;
  font-size: 0.94rem;
  margin-bottom: 0.8rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cookie-banner {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92%);
  background: #121233;
  border: 1px solid rgba(0, 200, 240, 0.3);
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  z-index: 9998;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  font-size: 0.92rem;
  color: #d5dbf7;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay[hidden] {
  display: none !important;
}

.age-gate-modal {
  z-index: 11000;
}

.age-gate-text {
  color: var(--text-muted);
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.age-gate-actions .btn {
  width: 100%;
  text-align: center;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid rgba(0, 200, 240, 0.3);
  border-radius: 16px;
  padding: 48px 40px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .games-grid,
  .steps,
  .features-strip .container,
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #0c1030;
    border-bottom: 1px solid rgba(0, 200, 240, 0.2);
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    padding: 0.8rem 4%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-controls .age-pill {
    display: none;
  }

  .games-grid,
  .steps,
  .features-strip .container,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 68px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .newsletter-box input {
    min-width: 0;
    width: 100%;
  }

  .newsletter-box .btn {
    width: 100%;
  }
}
