:root {
  --bg: #0d0614;
  --bg-2: #170a24;
  --card: #211233;
  --line: #3a2354;
  --ruby: #e0115f;
  --ruby-dark: #a1073f;
  --gold: #ffc83d;
  --gold-soft: #ffe08a;
  --text: #f6f0fb;
  --muted: #bdaed0;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-soft); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #1a0a26;
  padding: .6rem 1rem; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Top bar */
.topbar {
  background: linear-gradient(90deg, var(--ruby-dark), var(--ruby), var(--ruby-dark));
  color: #fff; text-align: center; font-size: .85rem; padding: .45rem 1rem; font-weight: 600;
}
.topbar a { color: #fff; text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 6, 20, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.brand b { color: var(--gold); }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: 38px; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-color: var(--gold); color: var(--gold-soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block; text-align: center; cursor: pointer; border: 0;
  background: linear-gradient(180deg, #ffd964, var(--gold) 55%, #e0a500);
  color: #2a0a1c; font-weight: 800; text-decoration: none; font-family: var(--font);
  padding: .75rem 1.4rem; border-radius: 999px; font-size: 1rem;
  box-shadow: 0 4px 0 #a87700, 0 8px 24px rgba(255, 200, 61, .25);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #2a0a1c; transform: translateY(-2px); box-shadow: 0 6px 0 #a87700, 0 12px 28px rgba(255, 200, 61, .35); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a87700; }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--gold); border: 2px solid var(--gold); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 200, 61, .12); color: var(--gold-soft); box-shadow: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(224, 17, 95, .38), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(122, 75, 209, .35), transparent 50%),
    var(--bg);
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 800; margin-bottom: .8rem; }
.gold-text { background: linear-gradient(90deg, #fff0b3, var(--gold), #e0a500); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: #e3d7f0; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted); font-size: .95rem; }
.trust li::before { content: "\2714"; color: var(--gold); margin-right: .45rem; }
.hero-art svg { width: min(400px, 100%); margin-inline: auto; filter: drop-shadow(0 0 40px rgba(224, 17, 95, .55)); animation: float 5s ease-in-out infinite; }
.payline { animation: dash 1.2s linear infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes dash { to { stroke-dashoffset: -28; } }
.coins i {
  position: absolute; top: -30px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff0b3, var(--gold) 60%, #b07d00);
  border: 2px solid #ffe08a; opacity: .8; animation: fall linear infinite;
}
.coins i:nth-child(1) { left: 8%; animation-duration: 9s; }
.coins i:nth-child(2) { left: 24%; animation-duration: 12s; animation-delay: 2s; width: 16px; height: 16px; }
.coins i:nth-child(3) { left: 46%; animation-duration: 10s; animation-delay: 4s; }
.coins i:nth-child(4) { left: 63%; animation-duration: 13s; animation-delay: 1s; width: 18px; height: 18px; }
.coins i:nth-child(5) { left: 82%; animation-duration: 11s; animation-delay: 3s; }
.coins i:nth-child(6) { left: 94%; animation-duration: 14s; animation-delay: 5s; width: 14px; height: 14px; }
@keyframes fall { to { transform: translateY(700px) rotate(360deg); } }

/* Strip */
.strip { background: var(--bg-2); border-block: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 1.2rem 0; gap: 1rem; }
.strip strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.strip span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.game-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; transition: transform .25s, border-color .25s, box-shadow .25s; position: relative;
}
.game-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(224, 17, 95, .25); }
.game-art {
  background: radial-gradient(circle at 50% 40%, #4a2275, #1a0a26 75%);
  border-radius: 14px; padding: 1.2rem; margin-bottom: 1rem;
}
.game-art svg { width: 130px; height: 130px; margin: 0 auto; }
.game-card p { color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; background: rgba(255, 200, 61, .14); color: var(--gold); border-radius: 999px; padding: .2rem .8rem; font-size: .78rem; font-weight: 700; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ruby), var(--ruby-dark)); border: 2px solid var(--gold);
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem;
}

.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.promo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.promo p { color: var(--muted); flex: 1; }
.promo-featured { background: linear-gradient(160deg, #6d0530, #2b0b3d); border: 2px solid var(--gold); box-shadow: 0 0 40px rgba(224, 17, 95, .3); }
.promo-featured p { color: #e9dcf5; }
.ribbon { position: absolute; top: -14px; right: 18px; background: var(--gold); color: #2a0a1c; font-weight: 800; font-size: .75rem; padding: .3rem .8rem; border-radius: 999px; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .8rem; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.3rem 1.2rem; margin: 0; color: var(--muted); }

/* Join */
.join { background: radial-gradient(circle at 20% 20%, rgba(224, 17, 95, .3), transparent 55%), var(--bg); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.checks { list-style: none; color: #e3d7f0; }
.checks li { padding: .3rem 0; }
.checks li::before { content: "\2605"; color: var(--gold); margin-right: .6rem; }
.join-form { background: var(--card); border: 2px solid var(--gold); border-radius: 22px; padding: 2rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 2px solid var(--line);
  background: #130820; color: var(--text); font-size: 1rem; font-family: var(--font);
}
.field input:focus { outline: none; border-color: var(--gold); }
.field.invalid input[type="text"], .field.invalid input[type="email"] { border-color: #ff6b8e; }
.field.check { display: grid; grid-template-columns: 22px 1fr; gap: .2rem .7rem; align-items: start; }
.field.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--ruby); }
.field.check label { font-weight: 500; margin: 0; }
.field.check .error { grid-column: 2; }
.error { display: block; color: #ff8fab; font-size: .85rem; min-height: 0; margin-top: .25rem; }
.form-success { margin: 1rem 0 0; padding: 1rem; background: rgba(60, 200, 120, .15); border: 1px solid #3cc878; border-radius: 12px; color: #b9f5d3; }

/* Page hero & prose */
.page-hero { background: radial-gradient(circle at 80% 0%, rgba(224, 17, 95, .3), transparent 55%), var(--bg-2); padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; color: var(--gold-soft); }
.prose p, .prose li { color: #dacce9; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }

/* Footer */
.site-footer { background: #080310; border-top: 1px solid var(--line); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-title { font-family: var(--font); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .4rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-soft); }
.legal { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; color: var(--muted); font-size: .82rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .card-grid, .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .promo-grid .promo:last-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2);
    border-bottom: 1px solid var(--line); display: none; padding: 1rem 1.25rem 1.5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .3rem; }
  .site-nav a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { display: block; margin-top: .8rem; }
  .hero-grid, .join-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(260px, 70%); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: span 2; }
}
@media (max-width: 600px) {
  .card-grid, .promo-grid, .steps { grid-template-columns: 1fr; }
  .promo-grid .promo:last-child { grid-column: auto; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-row .btn { width: 100%; }
  .join-form { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}