:root {
  --bg-dark: #0a0f0a;
  --bg-felt: #0d1a0d;
  --bg-card: #141e14;
  --green-accent: #2ecc40;
  --green-glow: #1a8a2a;
  --green-muted: #1a3a1a;
  --gold: #d4a017;
  --gold-light: #f0d060;
  --cream: #f5f0e8;
  --cream-muted: #bfb9a8;
  --white: #ffffff;
  --text-primary: #f5f0e8;
  --text-secondary: #9a9480;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(46, 204, 64, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(212, 160, 23, 0.04) 0%, transparent 50%),
    var(--bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.card-float, .joker-float {
  position: absolute;
  font-size: 4rem;
  opacity: 0.04;
  animation: float 20s ease-in-out infinite;
}

.card-1 { top: 10%; left: 8%; animation-delay: 0s; font-size: 5rem; }
.card-2 { top: 60%; left: 5%; animation-delay: -5s; font-size: 3.5rem; }
.card-3 { top: 20%; right: 10%; animation-delay: -10s; font-size: 4.5rem; }
.card-4 { bottom: 15%; right: 8%; animation-delay: -15s; font-size: 3rem; }
.joker-1 { top: 40%; left: 15%; animation-delay: -3s; font-size: 6rem; color: var(--gold); opacity: 0.06; }
.joker-2 { bottom: 30%; right: 15%; animation-delay: -8s; font-size: 5.5rem; color: var(--gold); opacity: 0.06; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(3deg); }
  50% { transform: translateY(-10px) rotate(-2deg); }
  75% { transform: translateY(-25px) rotate(1deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-kicker {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  padding: 0.4rem 1rem;
  border: 1px solid var(--green-muted);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-accent);
  background: rgba(46, 204, 64, 0.05);
  letter-spacing: 0.02em;
}

/* ===== RULES ===== */
.rules {
  padding: 6rem 2rem;
  background: var(--bg-felt);
  border-top: 1px solid rgba(46, 204, 64, 0.08);
  border-bottom: 1px solid rgba(46, 204, 64, 0.08);
}

.rules-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.rules h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.rules-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

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

.rule-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(46, 204, 64, 0.1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: left;
  transition: border-color 0.3s, background 0.3s;
}

.rule-card:hover {
  border-color: rgba(46, 204, 64, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.rule-icon {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.rule-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.rule-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 2rem;
  background: var(--bg-dark);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.feature-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hand-display {
  background: rgba(46, 204, 64, 0.04);
  border: 1px solid rgba(46, 204, 64, 0.15);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  width: 280px;
}

.card-stack {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: var(--green-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.joker-hierarchy {
  background: rgba(212, 160, 23, 0.04);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  width: 300px;
}

.j-rank {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1rem;
}

.j-big { color: var(--gold); font-size: 1.6rem; }
.j-small { color: var(--cream-muted); font-size: 1.4rem; }

.j-timing {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 160, 23, 0.15);
}

/* ===== CLOSING ===== */
.closing {
  padding: 7rem 2rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(46, 204, 64, 0.05) 0%, transparent 60%),
    var(--bg-felt);
  border-top: 1px solid rgba(46, 204, 64, 0.08);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.closing-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.closing-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
}

.footer-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .feature-block.reverse > * { direction: ltr; }

  .closing-stats {
    gap: 2rem;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
  }

  .hand-display, .joker-hierarchy {
    width: 100%;
    max-width: 280px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-divider { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1.25rem; }
  .rules { padding: 4rem 1.25rem; }
  .features { padding: 4rem 1.25rem; }
  .closing { padding: 5rem 1.25rem; }
  .closing-stats { gap: 1.5rem; }
  .stat-num { font-size: 2.5rem; }
}