
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0C1116;
  --section: #121A22;
  --card: #1B2632;
  --primary: #6C8EAD;
  --accent: #C9E4F2;
  --text: #F7FBFF;
  --muted: #A8B7C4;
  --border: rgba(201, 228, 242, 0.15);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all .25s ease;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: radial-gradient(circle at top, rgba(108,142,173,.12), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--text); }
img { max-width: 100%; height: auto; }
.container, .header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.age-gate-overlay {
  position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  background: rgba(7, 10, 14, .92); backdrop-filter: blur(8px); padding: 20px;
}
.age-gate-card {
  width: 100%; max-width: 460px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #16212c, #0f171f); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: 0 30px 90px rgba(0,0,0,.55); padding: 48px 38px;
}
.age-gate-card::before { content:''; position:absolute; inset:0 0 auto 0; height:3px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary)); }
.age-gate-glow { position:absolute; width:280px; height:280px; left:50%; top:-80px; transform:translateX(-50%); background: radial-gradient(circle, rgba(201,228,242,.18), transparent 70%); }
.age-gate-content { position: relative; text-align: center; }
.age-gate-title { font: 700 40px var(--font-heading); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.age-gate-text { color: var(--muted); font-size: 17px; margin-bottom: 12px; }
.age-gate-disclaimer { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.age-gate-btn, .btn-register, .btn-play, .hero-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  border: 0; border-radius: var(--radius-sm); padding: 14px 26px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; background: linear-gradient(135deg, var(--primary), #597793); color: var(--text);
  box-shadow: 0 10px 28px rgba(108,142,173,.28); transition: var(--transition);
}
.age-gate-btn:hover, .btn-register:hover, .btn-play:hover, .hero-button:hover { transform: translateY(-2px); background: linear-gradient(135deg, var(--accent), var(--primary)); color: #081018; }
.btn-login {
  color: var(--accent) !important; border: 1px solid rgba(201,228,242,.35); border-radius: var(--radius-sm);
  padding: 10px 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.btn-login:hover { background: rgba(201,228,242,.08); }

#site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(12,17,22,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,228,242,.12); box-shadow: 0 2px 20px rgba(0,0,0,.22);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 48px; height: 48px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #081018; font-size: 22px; font-weight: 700;
  box-shadow: 0 0 30px rgba(201,228,242,.18);
}
.logo-text { font: 700 28px var(--font-heading); color: var(--text); letter-spacing: 1px; }
.logo-text span { color: var(--accent); }
#main-nav ul, .footer-links, .header-cta { display: flex; align-items: center; gap: 10px; list-style: none; }
#main-nav ul li a {
  color: var(--muted); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  padding: 8px 14px; border-radius: var(--radius-sm);
}
#main-nav ul li a:hover { color: var(--accent); background: rgba(201,228,242,.08); }
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; }
.hamburger span { width:24px; height:2px; background: var(--accent); border-radius: 2px; }
.mobile-menu-overlay {
  position: fixed; inset:0; background: rgba(5,8,10,.65); opacity:0; pointer-events:none; transition: var(--transition); z-index: 1100;
}
.mobile-menu-overlay.active { opacity:1; pointer-events:auto; }
.mobile-menu {
  position: fixed; top:0; right:-320px; width:320px; max-width: 88vw; height:100vh; z-index:1110;
  background: var(--section); border-left:1px solid var(--border); transition: var(--transition); padding: 26px 22px;
}
.mobile-menu.active { right:0; }
.mobile-menu-close { display:flex; justify-content:flex-end; margin-bottom:18px; }
.mobile-menu-close button { font-size: 32px; line-height:1; border:0; background:none; color: var(--text); cursor:pointer; }
.mobile-nav ul { list-style:none; display:grid; gap: 8px; }
.mobile-nav a, .mobile-auth a { display:block; padding:12px 14px; border-radius: var(--radius-sm); }
.mobile-nav a { background: rgba(201,228,242,.04); color: var(--text); }
.mobile-auth { display:grid; gap: 10px; margin-top: 16px; }

.hero-section, .games-section, .leaderboard-section, .howto-section, .trust-section { padding: 72px 0; }
.hero-section { padding-top: 88px; }
.section-header { text-align:center; margin-bottom: 28px; }
.section-label, .hero-badge {
  display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px;
  background: rgba(201,228,242,.08); border:1px solid rgba(201,228,242,.12); color: var(--accent);
  text-transform: uppercase; letter-spacing: .8px; font-size: 13px; font-weight: 700;
}
.hero-section .container { text-align:center; }
.hero-title {
  font-family: var(--font-heading); font-size: clamp(42px, 8vw, 78px); line-height: .95; margin: 22px auto 18px; max-width: 860px;
  text-transform: uppercase;
}
.hero-title span { display:block; color: var(--accent); }
.hero-subtitle { max-width: 720px; margin: 0 auto 28px; color: var(--muted); font-size: 18px; }
.hero-actions { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin-bottom: 34px; }
.hero-features, .games-grid, .trust-inner, .footer-top { display:grid; gap: 22px; }
.hero-features { grid-template-columns: repeat(3,1fr); margin-top: 10px; }
.feature-card, .game-card, .leaderboard-wrapper, .howto-wrapper, .trust-badge, .iframe-shell {
  background: linear-gradient(180deg, rgba(27,38,50,.98), rgba(16,24,31,.98)); border:1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.feature-card { padding: 28px; text-align:left; }
.feature-icon {
  width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center; margin-bottom: 16px;
  background: rgba(201,228,242,.08); color: var(--accent); font-size: 26px;
}
.feature-card h3, .step-number { font-family: var(--font-heading); font-size: 28px; margin-bottom: 8px; }
.feature-card p, .howto-step p, .footer-brand p, .footer-disclaimer { color: var(--muted); }

.games-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
.game-card { overflow:hidden; }
.game-thumbnail { position: relative; padding: 18px; }
.game-thumbnail-placeholder {
  min-height: 320px; border-radius: 18px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  background: linear-gradient(145deg, rgba(108,142,173,.22), rgba(201,228,242,.08));
  border:1px solid rgba(201,228,242,.12); color: var(--text); font-family: var(--font-heading); text-transform: uppercase;
}
.game-thumbnail-placeholder span:first-child { font-size: 64px; }
.game-thumbnail-placeholder span:last-child { font-size: 34px; }
.game-overlay {
  position:absolute; inset: 18px; display:flex; align-items:center; justify-content:center; background: rgba(7,10,14,.36);
  opacity:0; transition: var(--transition); border-radius: 18px;
}
.game-card:hover .game-overlay { opacity:1; }
.game-info { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 0 22px 22px; }
.game-title { font-family: var(--font-heading); font-size: 30px; }

.leaderboard-wrapper { padding: 24px; }
.leaderboard-header { display:flex; align-items:center; gap: 12px; margin-bottom: 18px; }
.trophy-icon { font-size: 28px; }
.leaderboard-header h3 { font-family: var(--font-heading); font-size: 32px; }
.leaderboard-table { width:100%; border-collapse: collapse; }
.leaderboard-table th, .leaderboard-table td { padding: 16px 14px; border-bottom:1px solid rgba(201,228,242,.08); text-align:left; }
.leaderboard-table th { color: var(--accent); text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.rank-badge { font-size: 24px; }
.player-name, .score-value { font-weight: 700; }
.activity-text, .time-highlight { color: var(--muted); }
.time-highlight { color: var(--accent); }

.howto-wrapper { padding: 30px; max-width: 900px; margin: 0 auto; }
.howto-label {
  display:inline-flex; align-items:center; gap:10px; margin-bottom: 18px; color: var(--accent); background: rgba(201,228,242,.08);
  border:1px solid rgba(201,228,242,.12); padding: 10px 16px; border-radius: 999px; text-transform: uppercase; font-size: 13px; font-weight:700;
}
.howto-step + .howto-step { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(201,228,242,.08); }

.trust-inner { grid-template-columns: repeat(3, 1fr); }
.trust-badge { padding: 22px; text-align:center; min-height: 180px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; }
.badge-18plus, .badge-local, .badge-balance {
  width:86px; height:86px; border-radius: 50%; display:flex; align-items:center; justify-content:center; font: 700 28px var(--font-heading);
  background: linear-gradient(145deg, var(--primary), var(--accent)); color: #081018;
}
.badge-caption { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.badge-title { font-family: var(--font-heading); font-size: 24px; }

#iframe-section { display:none; padding-top: 0; }
.iframe-shell { padding: 18px; }
.iframe-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding: 8px 4px 16px; }
.iframe-head h3 { font-family: var(--font-heading); font-size: 32px; }
.iframe-note { color: var(--muted); font-size: 14px; }
.iframe-wrap { border-radius: 16px; overflow:hidden; border:1px solid rgba(201,228,242,.12); background: #0a1015; }
.iframe-wrap iframe { display:block; width:100%; height:720px; background:#0a1015; border:0; }

#site-footer { padding: 68px 0 30px; border-top:1px solid rgba(201,228,242,.1); }
.footer-top { grid-template-columns: 1.4fr .9fr .9fr; margin-bottom: 24px; }
.footer-brand, .footer-col { padding: 24px; }
.footer-col h4 { font-family: var(--font-heading); font-size: 26px; margin-bottom: 14px; }
.footer-col ul { list-style:none; display:grid; gap:10px; }
.footer-col a, .footer-links a { color: var(--muted); }
.footer-col a:hover, .footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; padding:18px 0; border-top:1px solid rgba(201,228,242,.08);
  border-bottom:1px solid rgba(201,228,242,.08); margin-bottom: 18px;
}
.footer-copyright { color: var(--muted); }
.footer-disclaimer { font-size: 14px; }

.page-hero { padding: 88px 0 50px; text-align:center; }
.page-panel { padding: 24px; max-width: 900px; margin: 0 auto 70px; }
.page-panel h2 { font-family: var(--font-heading); font-size: 34px; margin-bottom: 10px; }
.page-panel p + p, .page-panel li + li { margin-top: 12px; }
.page-panel ul { padding-left: 20px; color: var(--muted); }

@media (max-width: 980px) {
  #main-nav, .header-cta { display:none; }
  .hamburger { display:flex; }
  .hero-features, .trust-inner, .footer-top { grid-template-columns: 1fr; }
  .leaderboard-table { display:block; overflow-x:auto; }
}
@media (max-width: 700px) {
  .hero-section, .games-section, .leaderboard-section, .howto-section, .trust-section, #site-footer { padding-top: 54px; padding-bottom: 54px; }
  .hero-title { font-size: 44px; }
  .feature-card, .leaderboard-wrapper, .howto-wrapper, .trust-badge, .footer-brand, .footer-col { padding: 22px; }
  .game-info { flex-direction: column; align-items: stretch; }
  .iframe-wrap iframe { height: 500px; }
  .iframe-head { flex-direction:column; align-items:flex-start; }
}


.iframe-shell { background: linear-gradient(145deg, rgba(27,38,50,.95), rgba(18,26,34,.98)); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow); }
.iframe-banner-wrap { position: relative; border: 1px solid rgba(201,228,242,.18); background: linear-gradient(180deg, rgba(201,228,242,.05), rgba(12,17,22,.55)); border-radius: 22px; padding: 18px; min-height: 270px; }
.iframe-banner-label { display:inline-flex; padding: 6px 12px; margin-bottom: 14px; border-radius: 999px; background: rgba(201,228,242,.08); color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
#game-frame { width: 100%; height: 600px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #0d151d, #1b2632); }

.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.auth-copy h2 { font: 700 42px var(--font-heading); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.auth-benefits { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.auth-benefits li { padding-left: 18px; position: relative; color: var(--muted); }
.auth-benefits li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }
.auth-form { background: linear-gradient(145deg, rgba(27,38,50,.96), rgba(18,26,34,.98)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.auth-form label { display: grid; gap: 8px; color: var(--text); font-weight: 600; }
.auth-form input { width: 100%; background: rgba(12,17,22,.92); border: 1px solid rgba(201,228,242,.16); border-radius: 12px; padding: 14px 16px; color: var(--text); outline: none; transition: var(--transition); }
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,142,173,.18); }
.auth-row { display:flex; justify-content:space-between; align-items:center; gap:16px; font-size:14px; color: var(--muted); }
.checkbox { display:flex !important; grid-template-columns:none !important; align-items:flex-start; gap:10px !important; font-weight:500 !important; color: var(--muted) !important; }
.checkbox input { width:18px; height:18px; margin-top:2px; accent-color: var(--primary); padding: 0; }
.auth-submit { width: 100%; min-height: 52px; font-size: 16px; }
.auth-switch { color: var(--muted); text-align: center; font-size: 14px; }

@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { #game-frame { height: 180px; } .iframe-banner-wrap { min-height: 230px; padding: 14px; } .auth-copy h2 { font-size: 34px; } .auth-row { flex-direction: column; align-items: flex-start; } }

.game-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.game-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12,17,22,0.6);
    opacity: 0;
    transition: 0.3s;
}

.game-thumbnail:hover .game-overlay {
    opacity: 1;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.cookie-banner__content {
  width: 100%;
  max-width: 1100px;
  background: #1B2632;
  color: #F7FBFF;
  border: 1px solid rgba(201, 228, 242, 0.15);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner__content p {
  margin: 0;
  color: #A8B7C4;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.25s ease;
}

.cookie-btn-primary {
  background: #6C8EAD;
  color: #F7FBFF;
}

.cookie-btn-primary:hover {
  background: #C9E4F2;
  color: #0C1116;
}

.cookie-btn-secondary {
  background: transparent;
  color: #F7FBFF;
  border: 1px solid rgba(247, 251, 255, 0.18);
}

.cookie-btn-secondary:hover {
  background: #121A22;
}

@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }
}