/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-red:      #c8102e;
  --c-red-dk:   #9b0b22;
  --c-red-lt:   #e8314f;
  --c-gold:     #d4a017;
  --c-gold-lt:  #f0c040;
  --c-gold-dk:  #a07810;
  --c-dark:     #0d0f14;
  --c-dark2:    #161920;
  --c-dark3:    #1f2330;
  --c-dark4:    #272c3a;
  --c-card:     #1a1d28;
  --c-border:   #2c3145;
  --c-text:     #e8eaf0;
  --c-muted:    #8890a8;
  --c-success:  #18b06a;
  --c-warn:     #e8a020;
  --c-error:    #e83a3a;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.45);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.65);
  --trans:      .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--c-dark);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--c-muted); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ===== BADGES / TAGS ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(200,16,46,.15); border: 1px solid rgba(200,16,46,.35);
  color: var(--c-red-lt); border-radius: 100px;
  font-size: .78rem; font-weight: 600; padding: 4px 14px;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge-gold {
  background: rgba(212,160,23,.12); border-color: rgba(212,160,23,.35);
  color: var(--c-gold-lt);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--trans);
}
.btn:hover::after { background: rgba(255,255,255,.06); }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dk));
  color: #fff; box-shadow: 0 4px 20px rgba(200,16,46,.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(200,16,46,.55); transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dk));
  color: #0d0f14; box-shadow: 0 4px 20px rgba(212,160,23,.4);
}
.btn-gold:hover { box-shadow: 0 6px 28px rgba(212,160,23,.55); transform: translateY(-1px); }

.btn-outline {
  border: 2px solid var(--c-border); color: var(--c-text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--c-red); color: var(--c-red-lt); }

.btn-sm { padding: 9px 20px; font-size: .85rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background var(--trans), box-shadow var(--trans);
  backdrop-filter: blur(0);
}
.nav.scrolled {
  background: rgba(13,15,20,.95); box-shadow: 0 2px 20px rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
  color: var(--c-text); white-space: nowrap;
}
.nav-logo .logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dk));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.nav-logo span.accent { color: var(--c-red-lt); }

.nav-links {
  display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center;
}
.nav-links a {
  padding: 8px 14px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--c-muted);
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: var(--c-text); background: rgba(255,255,255,.06); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--c-text); border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 16px; background: var(--c-dark2); border-top: 1px solid var(--c-border); }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 12px 16px; border-radius: 8px; font-weight: 500; color: var(--c-muted); }
  .nav-mobile a:hover { color: var(--c-text); background: rgba(255,255,255,.06); }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(200,16,46,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(212,160,23,.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark2) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 80px 0;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero-title { margin-bottom: 24px; }
.hero-title .line2 { color: var(--c-red-lt); }
.hero-desc { font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--c-gold-lt); }
.hero-stat span { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }

.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-cards-wrap {
  position: relative; width: 320px; height: 380px;
}
.hero-card-float {
  position: absolute;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  animation: floatCard 6s ease-in-out infinite;
}
.hero-card-float:nth-child(1) { top: 0; left: 0; width: 200px; animation-delay: 0s; }
.hero-card-float:nth-child(2) { top: 60px; right: 0; width: 180px; animation-delay: 1.5s; }
.hero-card-float:nth-child(3) { bottom: 0; left: 40px; width: 220px; animation-delay: 3s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-0.5deg); }
}

.card-suit { font-size: 2rem; margin-bottom: 8px; }
.card-label { font-size: .75rem; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.card-value { font-size: 1.4rem; font-weight: 800; }
.card-value.gold { color: var(--c-gold-lt); }
.card-value.red  { color: var(--c-red-lt); }
.card-value.green { color: var(--c-success); }
.card-bar { height: 6px; background: var(--c-dark3); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.card-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--c-gold), var(--c-red-lt)); }
.card-players { display: flex; gap: -6px; margin-top: 10px; }
.card-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--c-dark3); border: 2px solid var(--c-dark); font-size: .65rem; display: flex; align-items: center; justify-content: center; margin-left: -6px; }
.card-avatar:first-child { margin-left: 0; }

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-top: 12px; margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ===== GAMES SECTION ===== */
.games-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.game-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  cursor: pointer;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.5); border-color: var(--c-red); }

.game-thumb {
  height: 200px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative; overflow: hidden;
}
.game-thumb-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-dark3), var(--c-dark4));
}
.game-thumb-icon { position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.game-thumb-glow {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,.3), transparent 70%);
  z-index: 0;
}
.game-info { padding: 24px; }
.game-info h3 { margin-bottom: 8px; }
.game-info p { font-size: .9rem; margin-bottom: 20px; }
.game-meta { display: flex; align-items: center; justify-content: space-between; }
.game-players { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--c-muted); }
.game-players svg { width: 14px; height: 14px; }
.game-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 100px; background: rgba(212,160,23,.15); color: var(--c-gold-lt); }

@media (max-width: 900px) { .games-grid { grid-template-columns: 1fr; } }
@media (min-width: 600px) and (max-width: 900px) { .games-grid { grid-template-columns: 1fr 1fr; } }

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step-card {
  text-align: center; padding: 40px 28px;
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--trans);
}
.step-card:hover { border-color: var(--c-gold); }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-red), var(--c-red-dk));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(200,16,46,.4);
}
.step-card h3 { margin-bottom: 10px; }

@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }

/* ===== FEATURES ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.feature-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 28px; background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); transition: border-color var(--trans);
}
.feature-item:hover { border-color: var(--c-red); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(200,16,46,.12); border: 1px solid rgba(200,16,46,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.feature-text h4 { margin-bottom: 6px; }
.feature-text p { font-size: .88rem; }

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== COMMUNITY ===== */
.community-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.community-card {
  padding: 32px; background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); text-align: center;
  transition: transform var(--trans), border-color var(--trans);
}
.community-card:hover { transform: translateY(-4px); border-color: var(--c-gold); }
.community-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.community-card h3 { margin-bottom: 10px; }

@media (max-width: 768px) { .community-grid { grid-template-columns: 1fr; } }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--c-red-dk) 0%, var(--c-dark2) 60%);
  border: 1px solid rgba(200,16,46,.3);
  border-radius: var(--radius-lg);
  padding: 64px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(200,16,46,.2), transparent 70%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { margin-bottom: 32px; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer {
  background: var(--c-dark2); border-top: 1px solid var(--c-border);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: .88rem; margin-top: 16px; max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 4px; }
.footer-col h5 { font-size: .85rem; font-weight: 700; color: var(--c-text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .88rem; color: var(--c-muted); transition: color var(--trans); }
.footer-col a:hover { color: var(--c-text); }

.footer-disclaimer {
  background: var(--c-dark3); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 32px;
}
.footer-disclaimer strong { color: var(--c-warn); font-size: .85rem; display: block; margin-bottom: 8px; }
.footer-disclaimer p { font-size: .8rem; line-height: 1.65; }
.footer-disclaimer a { color: var(--c-gold-lt); text-decoration: underline; }
.footer-disclaimer a:hover { color: var(--c-gold); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--c-border);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--c-muted); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  background: var(--c-dark4); border: 1px solid var(--c-border); color: var(--c-muted);
}

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity var(--trans);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--c-dark2); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 48px 40px;
  max-width: 480px; width: 100%; text-align: center;
  transform: scale(.95) translateY(20px);
  transition: transform var(--trans);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal h2 { margin-bottom: 12px; font-size: 1.6rem; }
.modal p { margin-bottom: 24px; font-size: .92rem; }

.modal-check {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--c-dark3); border: 1px solid var(--c-border);
  border-radius: 10px; padding: 16px; margin-bottom: 24px; text-align: left;
}
.modal-check input[type="checkbox"] {
  width: 20px; height: 20px; cursor: pointer; accent-color: var(--c-red);
  flex-shrink: 0; margin-top: 2px;
}
.modal-check label { font-size: .88rem; line-height: 1.6; cursor: pointer; }
.modal-check label a { color: var(--c-gold-lt); text-decoration: underline; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px; z-index: 8000;
  background: var(--c-dark2); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto;
  transform: translateY(120%); transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text strong { color: var(--c-text); display: block; margin-bottom: 4px; }
.cookie-text p { font-size: .83rem; }
.cookie-text a { color: var(--c-gold-lt); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ===== INNER PAGE ===== */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--c-dark2) 0%, var(--c-dark) 100%);
  position: relative; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(200,16,46,.15), transparent 70%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .badge { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.page-content { padding: 80px 0; }
.page-content h2 { margin-bottom: 16px; margin-top: 48px; font-size: 1.6rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 20px; list-style: disc; }
.page-content ul li { color: var(--c-muted); margin-bottom: 8px; line-height: 1.7; }
.page-content strong { color: var(--c-text); }
.page-content .divider { height: 1px; background: var(--c-border); margin: 32px 0; }

/* ===== GAME MODAL ===== */
.game-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.game-modal-overlay.active { opacity: 1; pointer-events: all; }

.game-modal {
  background: var(--c-dark2); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); width: 100%; max-width: 720px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.95); transition: transform .3s;
}
.game-modal-overlay.active .game-modal { transform: scale(1); }

.game-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; background: var(--c-dark2); z-index: 1;
}
.game-modal-header h3 { font-size: 1.1rem; }
.game-close {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--c-dark3); color: var(--c-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: background var(--trans), color var(--trans);
}
.game-close:hover { background: var(--c-red); color: #fff; }

.game-body { padding: 24px; }

/* ===== COIN DISPLAY ===== */
.coins-display {
  display: flex; align-items: center; gap: 8px;
  background: var(--c-dark3); border: 1px solid var(--c-border);
  border-radius: 100px; padding: 8px 16px;
  font-weight: 700; color: var(--c-gold-lt); font-size: .95rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== UTILITY ===== */
.text-red   { color: var(--c-red-lt); }
.text-gold  { color: var(--c-gold-lt); }
.text-green { color: var(--c-success); }
.text-muted { color: var(--c-muted); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.gap-sm { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ===== DIVIDER ===== */
.divider-line { height: 1px; background: var(--c-border); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-dark); }
::-webkit-scrollbar-thumb { background: var(--c-dark4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-border); }
