:root {
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.4);
  --secondary: #0ea5e9;
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.3);
  --bg-1: #0c1929;
  --bg-2: #0f2847;
  --bg-3: #020617;
  --card-bg: rgba(15, 40, 71, 0.6);
  --card-border: rgba(56, 189, 248, 0.2);
  --text: #e6f6ff;
  --muted: #9bd6f8;
  --mono: "JetBrains Mono", monospace;
  --body: Inter, system-ui, sans-serif;
  --radius: 8px;
  --speed: 0.25s;
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--text); font-family: var(--body); background: linear-gradient(135deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(130%) blur(8px); background: rgba(2, 6, 23, 0.6); border-bottom: 1px solid var(--card-border); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: 0.2px; }
.logo-text { font-weight: 700; }
.logo .tld { color: var(--primary); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; align-items: center; }
.nav-link { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: var(--radius); transition: color var(--speed) var(--ease), background var(--speed) var(--ease), transform var(--speed) var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(56, 189, 248, 0.06); transform: translateY(-1px); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.age-badge { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--card-border); color: var(--text); padding: 2px 8px; border-radius: 999px; font-size: 12px; letter-spacing: 0.6px; background: rgba(56, 189, 248, 0.06); box-shadow: 0 0 0 0 var(--primary-glow);
}
.age-badge.big { font-size: 14px; padding: 6px 10px; }
.age-badge.huge { font-size: 22px; padding: 10px 18px; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--primary); color: var(--primary); background: transparent; text-decoration: none; cursor: pointer; transition: all var(--speed) var(--ease); }
.btn:hover { transform: scale(1.05); box-shadow: 0 0 24px 0 var(--primary-glow), 0 0 10px 0 var(--accent-glow) inset; }
.btn:active { transform: scale(0.98); }
.btn-outline { background: transparent; }
.btn-fill { background: var(--primary); color: #001019; border-color: var(--primary); }
.btn-glow { box-shadow: 0 0 0 0 var(--primary-glow); }
.cta-pulse { animation: pulse 2.2s var(--ease) infinite; }

/* Hamburger */
.hamburger { width: 40px; height: 40px; display: none; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--card-border); border-radius: var(--radius); cursor: pointer; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px 0; transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(1200px 800px at 10% 20%, rgba(56,189,248,0.15), transparent 60%), radial-gradient(900px 600px at 90% 80%, rgba(34,211,238,0.12), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; min-height: calc(100vh - 64px); padding: 40px 0; }
.hero-copy { position: relative; max-width: 720px; }
.hero-title { font-size: 40px; line-height: 1.1; margin: 0 0 10px; font-weight: 700; }
.hero-subtitle { margin: 0 0 18px; color: var(--muted); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-disclaimer { color: var(--muted); font-size: 12px; margin-top: 8px; }
.corner-age { position: absolute; top: -6px; right: -6px; border: 1px solid var(--card-border); border-radius: 999px; padding: 6px 10px; font-weight: 700; background: rgba(56, 189, 248, 0.06); }
.hero-art { position: relative; min-height: 220px; }
.float-chip, .float-dice, .float-card { position: absolute; border: 1px solid var(--card-border); border-radius: var(--radius); width: 100px; height: 100px; display: grid; place-items: center; color: var(--primary); text-shadow: 0 0 8px var(--primary); box-shadow: 0 0 24px var(--primary-glow); }
.float-chip { left: 8%; top: 30%; background: conic-gradient(from 0deg, rgba(56,189,248,.05), rgba(34,211,238,.08)); animation: float 6s ease-in-out infinite; }
.float-dice { right: 10%; top: 10%; background: linear-gradient(135deg, rgba(56,189,248,.06), rgba(34,211,238,.06)); animation: float 7.5s ease-in-out infinite; }
.float-card { right: 20%; bottom: 10%; width: 80px; height: 80px; font-size: 40px; animation: float 5.5s ease-in-out infinite; }

/* Sections */
.section { padding: 50px 0; position: relative; }
.section.minimal { padding-top: 40px; padding-bottom: 40px; }
.section-header { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 16px; }
.section-header h2, .section-header h1 { margin: 0; font-size: 28px; font-weight: 700; }
.section-note { color: var(--muted); margin-bottom: 18px; }
.section-disclaimer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; }

/* Sticky CTA */
.sticky-cta { position: fixed; right: 20px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 40; }
.sticky-cta .cta-note { font-size: 11px; color: var(--muted); padding: 2px 8px; border: 1px solid var(--card-border); border-radius: 999px; background: rgba(56,189,248,0.04); }

/* Cards */
.card { background: transparent; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(6px); }

/* Games grid */
.games-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.game-card { border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; background: transparent; transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.game-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 0 28px var(--primary-glow); border-color: var(--primary); }
.game-image-container { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(600px 300px at 20% 20%, rgba(56,189,248,.08), transparent 60%), radial-gradient(600px 300px at 80% 70%, rgba(34,211,238,.08), transparent 60%); display: block; }
.game-image { width: 100%; height: 100%; object-fit: cover; }
.game-image-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); color: var(--primary); font-weight: 700; padding: 10px; text-align: center; }
.game-info { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0; }
.game-category { border: 1px solid var(--card-border); border-radius: 999px; padding: 4px 8px; color: var(--muted); font-size: 12px; }
.game-title { font-size: 18px; margin: 8px 12px; }
.play-demo-btn { margin: 0 12px 12px; width: calc(100% - 24px); border: 1px solid var(--primary); background: transparent; color: var(--primary); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; transition: all var(--speed) var(--ease); }
.play-demo-btn:hover { background: var(--primary); color: #001019; transform: scale(1.05); box-shadow: 0 0 22px var(--primary-glow); }

/* How */
.how-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.how-card h3 { margin: 6px 0 6px; }
.how-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--card-border); color: var(--primary); box-shadow: 0 0 18px var(--accent-glow); }

/* Features */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature-card h3 { margin: 4px 0 6px; }

/* Responsible Gaming */
.rg-block { background: linear-gradient(180deg, rgba(56,189,248,0.05), transparent 40%); }
.rg-header { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; }
.rg-badge { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #001019; background: var(--primary); box-shadow: 0 0 40px var(--primary-glow); }
.rg-links { display: grid; grid-template-columns: 1fr; gap: 8px; padding-left: 18px; }
.text-link { color: var(--primary); text-decoration: none; border-bottom: 1px dotted var(--primary); transition: color var(--speed) var(--ease); }
.text-link:hover { color: var(--accent); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr; gap: 12px; }
.faq details summary { cursor: pointer; color: var(--text); }
.faq details p { color: var(--muted); }

/* Banner */
.banner { padding-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--card-border); background: rgba(56,189,248,0.04); }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Policy */
.policy .policy-block { margin-bottom: 14px; }
.policy h2 { margin: 4px 0 8px; }
.list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--card-border); background: rgba(2, 6, 23, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; padding-top: 24px; padding-bottom: 12px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-age { display: grid; gap: 10px; justify-items: start; }
.footer-disclaimer { color: var(--muted); max-width: 800px; }
.footer-base { padding: 12px 0 24px; color: var(--muted); font-size: 12px; }
.footer-logo { align-items: center; display: inline-flex; gap: 10px; text-decoration: none; color: var(--text); }

/* Game modal */
.game-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 60; }
.game-modal.active { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 6, 14, 0.7); backdrop-filter: blur(6px); }
.modal-content { position: relative; width: min(1100px, 92vw); max-height: 86vh; display: grid; grid-template-rows: auto 1fr; gap: 10px; background: rgba(2, 6, 23, 0.5); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--card-border); }
.close-btn { background: transparent; color: var(--text); border: 1px solid var(--card-border); width: 36px; height: 36px; border-radius: var(--radius); cursor: pointer; transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.close-btn:hover { transform: scale(1.05); border-color: var(--primary); }
#game-iframe { width: 100%; height: 60vh; border: none; background: #00040a; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.demo-unavailable { display: none; align-items: center; justify-content: center; height: 60vh; color: var(--muted); }

/* Age Gate */
.age-gate { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 70; }
.age-gate.active { display: flex; }
.age-gate__backdrop { position: absolute; inset: 0; background: rgba(0, 6, 14, 0.75); backdrop-filter: blur(8px); }
.age-gate__dialog { position: relative; width: min(520px, 92vw); text-align: center; background: rgba(2, 6, 23, 0.6); }
.age-icon { width: 72px; height: 72px; margin: 6px auto 10px; border-radius: 20px; display: grid; place-items: center; font-weight: 800; color: #001019; background: var(--primary); box-shadow: 0 0 50px var(--primary-glow); }
.age-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }

/* Animations */
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--primary-glow); } 70% { box-shadow: 0 0 0 18px rgba(56,189,248,0); } 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); } }

/* Responsive */
@media (min-width: 640px) {
  .hero-title { font-size: 48px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .footer-grid { grid-template-columns: 1fr auto auto; }
}
@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .hero-title { font-size: 56px; }
}

/* Mobile nav */
#nav-menu { transition: height var(--speed) var(--ease), opacity var(--speed) var(--ease); }
@media (max-width: 900px) {
  .main-nav ul { position: absolute; top: 64px; right: 0; left: 0; background: rgba(2,6,23,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--card-border); padding: 10px 16px; display: none; flex-direction: column; gap: 8px; }
  .main-nav ul.open { display: flex; }
  .hamburger { display: inline-flex; }
}
