@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg-base:       #0d1018;
  --bg-elevated:   #141720;
  --bg-surface:    #1b1f2e;
  --bg-overlay:    #222638;
  --gold-300:      #e8d090;
  --gold-400:      #d4b96a;
  --gold-500:      #c2a040;
  --gold-600:      #a8882e;
  --teal-400:      #3aaabf;
  --teal-500:      #2a8a9f;
  --teal-600:      #1e6a7a;
  --fog-100:       #c8d2e0;
  --fog-200:       #a8b5c8;
  --fog-300:       #7a8ba0;
  --fog-400:       #556070;
  --text-primary:  #e8e3d8;
  --text-secondary:#9e9388;
  --text-muted:    #5e5850;
  --border:        #252835;
  --border-gold:   #3a3020;
  --danger:        #d4453a;
  --success:       #3aab6d;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.35);
  --shadow-md:     0 8px 24px rgba(0,0,0,.45);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.55);
  --shadow-gold:   0 0 24px rgba(194,160,64,.2);
  --transition:    0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text-primary);
}

a { color: var(--gold-400); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-300); }

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

/* ─── LAYOUT ──────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 72px;
  background: rgba(13,16,24,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--bg-base);
  letter-spacing: 1px;
  box-shadow: 0 0 16px rgba(194,160,64,.3);
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: .5px;
}
.logo-text span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  letter-spacing: .3px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text-primary);
  background: var(--bg-surface);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.coins-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-400);
  white-space: nowrap;
}
.coins-pill::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold-500);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
/* mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg-elevated);
  z-index: 899;
  overflow-y: auto;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--bg-surface); color: var(--text-primary); }
.mobile-nav .coins-pill-mobile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-400);
  font-weight: 600;
  padding: 16px;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  margin-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-400); }
.footer-disclaimer {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
}
.footer-disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-disclaimer strong { color: var(--text-secondary); }
.footer-disclaimer a {
  color: var(--teal-400);
  font-size: 12px;
}
.footer-disclaimer a:hover { color: var(--teal-500); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-badges {
  display: flex;
  gap: 12px;
}
.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-overlay);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: .3px;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--bg-base);
  box-shadow: 0 4px 16px rgba(194,160,64,.25);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(194,160,64,.35);
  color: var(--bg-base);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background: rgba(194,160,64,.05);
}
.btn-teal {
  background: var(--teal-500);
  color: #fff;
}
.btn-teal:hover { background: var(--teal-400); transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 15px; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ─── SECTION ─────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

/* ─── AGE MODAL ───────────────────────────────────────── */
.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,7,12,.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.age-overlay.hidden { display: none; }
.age-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.7), var(--shadow-gold);
  animation: modalIn .4s cubic-bezier(.16,1,.3,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.age-emblem {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-overlay));
  border: 2px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
}
.age-modal h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.age-modal p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.age-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition);
}
.age-check-label:hover { border-color: var(--border-gold); }
.age-check-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.age-check-label span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.age-check-label span strong { color: var(--text-primary); }
.age-confirm-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--bg-base);
  transition: all var(--transition);
  opacity: .4;
  pointer-events: none;
}
.age-confirm-btn.active {
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(194,160,64,.3);
}
.age-confirm-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(194,160,64,.4);
}
.age-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

/* ─── COOKIE BANNER ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 640px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .4s cubic-bezier(.16,1,.3,1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-banner.hidden { display: none; }
.cookie-banner p {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.6;
}
.cookie-banner a { font-size: 13px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 65% 50%, rgba(42,138,159,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(194,160,64,.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-base) 0%, #0f1520 100%);
  z-index: 0;
}
.hero-fog {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0065' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.04'/%3E%3C/svg%3E") center/cover;
  z-index: 0;
  opacity: .6;
  animation: fogDrift 20s ease-in-out infinite alternate;
}
@keyframes fogDrift {
  from { transform: translateX(-2%) translateY(-1%); }
  to   { transform: translateX(2%) translateY(1%); }
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42,138,159,.12);
  border: 1px solid rgba(42,138,159,.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 24px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--teal-400); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-400);
}
.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-400);
  display: block;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-visual {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 500px; height: 500px;
  z-index: 0;
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: rotate linear infinite;
}
.hero-ring:nth-child(1) {
  width: 300px; height: 300px;
  top: 100px; left: 100px;
  border-color: rgba(194,160,64,.12);
  animation-duration: 30s;
}
.hero-ring:nth-child(2) {
  width: 420px; height: 420px;
  top: 40px; left: 40px;
  border-color: rgba(42,138,159,.08);
  animation-duration: 45s;
  animation-direction: reverse;
}
.hero-ring:nth-child(3) {
  width: 200px; height: 200px;
  top: 150px; left: 150px;
  border-color: rgba(194,160,64,.2);
  animation-duration: 20s;
}
@keyframes rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ─── GAMES GRID ──────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}
.game-card-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-icon-large {
  font-size: 72px;
  filter: drop-shadow(0 0 20px rgba(194,160,64,.3));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.game-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.game-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 10px;
}
.game-card-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.game-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}
.game-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.game-meta-item {
  font-size: 12px;
  color: var(--text-muted);
}
.game-meta-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ─── FEATURES ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--border-gold); }
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--bg-overlay), var(--bg-elevated));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ─── INNER PAGE ──────────────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-content h2 {
  font-size: 26px;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--gold-400);
}
.page-content h3 { font-size: 18px; margin: 32px 0 10px; }
.page-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}
.info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box p { margin: 0; font-size: 14px; }
.warning-box {
  background: rgba(212,69,58,.08);
  border: 1px solid rgba(212,69,58,.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.warning-box p { margin: 0; color: var(--fog-200); font-size: 14px; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .games-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .hero-visual { display: none; }
  .section { padding: 64px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── UTILS ───────────────────────────────────────────── */
.text-gold { color: var(--gold-400); }
.text-teal { color: var(--teal-400); }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0 !important; }
