/* =========================================================
   Lirik's Roulette Land — Sirius Dessalines
   Mood: royal-purple night, gold coins, gem sparkles.
   ========================================================= */

:root {
  --bg: #1a0b2e;
  --bg-2: #3a1458;
  --bg-3: #22103d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(245, 197, 24, 0.25);
  --magenta: #c026d3;
  --gold: #f5c518;
  --gold-2: #ffd86b;
  --gold-deep: #b8862a;
  --gem-cyan: #5eead4;
  --gem-rose: #f472b6;
  --text: #f8efff;
  --text-dim: #cdbfe4;
  --parchment: #f4e4b8;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --shadow-gold: 0 0 0 1px rgba(245, 197, 24, 0.35),
    0 10px 30px -12px rgba(245, 197, 24, 0.35),
    0 20px 60px -20px rgba(192, 38, 211, 0.35);
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(
      1200px 700px at 85% -10%,
      rgba(192, 38, 211, 0.35),
      transparent 60%
    ),
    radial-gradient(900px 600px at -10% 20%, rgba(94, 234, 212, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 60%, var(--bg) 100%);
  background-attachment: fixed;
}

/* =========================================================
   Background particles (site-wide, subtle)
   ========================================================= */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-particles::before,
.bg-particles::after {
  content: "";
  position: absolute;
  inset: -10% 0;
  background-repeat: repeat;
  background-size: 100% 900px;
  will-change: transform, opacity;
}
/* Drifting dots layer */
.bg-particles::before {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 8%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 14%, rgba(255, 215, 120, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 34% 22%, rgba(244, 114, 182, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 31%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 18% 44%, rgba(94, 234, 212, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 49%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 58%, rgba(255, 215, 120, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 67%, rgba(255, 255, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 73%, rgba(192, 38, 211, 0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 82%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 88%, rgba(94, 234, 212, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 95%, rgba(255, 215, 120, 0.45) 50%, transparent 51%);
  opacity: 0.55;
  animation: bg-drift 60s linear infinite;
}
/* Twinkling stars layer */
.bg-particles::after {
  background-image:
    radial-gradient(1.5px 1.5px at 22% 18%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 36%, rgba(245, 197, 24, 0.75) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 64%, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
    radial-gradient(2px 2px at 86% 78%, rgba(192, 38, 211, 0.65) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 14% 86%, rgba(94, 234, 212, 0.7) 50%, transparent 51%);
  opacity: 0.4;
  animation: bg-twinkle 7s ease-in-out infinite alternate;
}

@keyframes bg-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -900px, 0); }
}
@keyframes bg-twinkle {
  from { opacity: 0.18; }
  to   { opacity: 0.55; }
}

/* Keep all page content above the particle layer */
body > header,
body > main,
body > footer,
body > .skip-link {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-2);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: "Cinzel", "Cormorant SC", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(
    180deg,
    rgba(26, 11, 46, 0.88),
    rgba(26, 11, 46, 0.66)
  );
  border-bottom: 1px solid rgba(245, 197, 24, 0.18);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--gold-2);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(245, 197, 24, 0.5);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--gold-2);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(26, 11, 46, 0.98);
  border-bottom: 1px solid rgba(245, 197, 24, 0.18);
  padding: 12px 0;
}
.primary-nav.is-open {
  display: block;
}
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline: max(1rem, env(safe-area-inset-left));
}
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
  border-radius: 10px;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--gold);
  background: rgba(245, 197, 24, 0.08);
  text-decoration: none;
}
.primary-nav .nav-cta {
  color: var(--bg);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  margin-top: 6px;
  justify-content: center;
  box-shadow: 0 6px 16px -8px rgba(245, 197, 24, 0.7);
}
.primary-nav .nav-cta:hover {
  color: var(--bg);
  filter: brightness(1.05);
}

@media (min-width: 760px) {
  .nav-toggle {
    display: none;
  }
  .primary-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
  }
  .primary-nav a {
    min-height: 40px;
    padding: 8px 12px;
  }
  .primary-nav .nav-cta {
    margin-top: 0;
    margin-left: 6px;
    padding-inline: 18px;
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-icon {
  flex: none;
}

.btn-gold {
  color: #2b1708;
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.btn-gold:hover::after,
.btn-gold:focus-visible::after {
  transform: translateX(120%);
}
.btn-gold:hover {
  color: #2b1708;
  filter: brightness(1.03);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(245, 197, 24, 0.45);
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.07);
}

.btn-lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 48px 0 64px;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(192, 38, 211, 0.35), transparent 60%),
    radial-gradient(500px 300px at 80% 80%, rgba(94, 234, 212, 0.18), transparent 60%);
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 15% 30%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 65% 18%, rgba(255, 215, 120, 0.9) 50%, transparent 51%),
    radial-gradient(2px 2px at 40% 75%, rgba(244, 114, 182, 0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 80% 55%, rgba(94, 234, 212, 0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 10% 85%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 30%, rgba(255, 215, 120, 0.7) 50%, transparent 51%);
  background-repeat: no-repeat;
  opacity: 0.85;
}
.hero-bg::after {
  background-image:
    radial-gradient(1.5px 1.5px at 25% 60%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 40%, rgba(245, 197, 24, 0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 85%, rgba(192, 38, 211, 0.8) 50%, transparent 51%);
  animation: sparkle 6s ease-in-out infinite alternate;
}

@keyframes sparkle {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  font-family: "Cinzel", serif;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw + 0.5rem, 5rem);
  margin-bottom: 0.35em;
  text-shadow: 0 4px 30px rgba(192, 38, 211, 0.45);
}
.hero-title-line {
  display: block;
}
.hero-title-accent {
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 16px rgba(245, 197, 24, 0.35));
}

.hero-tagline {
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-style: italic;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.6vw + 0.6rem, 1.5rem);
  margin-bottom: 0.9em;
}

.hero-desc {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.15rem);
  color: var(--text-dim);
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.hero-ctas .btn {
  flex: 1 1 auto;
}
@media (min-width: 520px) {
  .hero-ctas .btn {
    flex: 0 0 auto;
  }
}

.hero-note {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: min(440px, 85vw);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}
.hero-art-glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(245, 197, 24, 0.55) 0%,
    rgba(192, 38, 211, 0.45) 35%,
    transparent 65%
  );
  filter: blur(14px);
  animation: pulse 5s ease-in-out infinite alternate;
}
@keyframes pulse {
  from {
    transform: scale(0.96);
    opacity: 0.75;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 72px 0 96px;
  }
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
  .hero-art {
    width: min(480px, 100%);
    justify-self: end;
  }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 64px 0;
  position: relative;
}
.section-dark {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.1)
  );
  border-block: 1px solid rgba(245, 197, 24, 0.12);
}

.section-title {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.75rem);
  text-align: center;
  color: var(--text);
  margin-bottom: 0.9em;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 999px;
}

.game-blurb {
  max-width: 72ch;
  margin: 0 auto;
  text-align: center;
  color: var(--text-dim);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem);
}
.game-blurb strong {
  color: var(--gold-2);
  font-weight: 800;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 28px 22px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--panel-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 40px -24px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 24, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -30px rgba(245, 197, 24, 0.35);
}
.feature-emoji {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(245, 197, 24, 0.25));
}
.feature-card h3 {
  font-size: 1.2rem;
  color: var(--gold-2);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.feature-card p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.98rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.gallery li {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.gallery li:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 24, 0.5);
  box-shadow: 0 30px 60px -28px rgba(245, 197, 24, 0.28);
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Get it */
.get-it {
  padding: 72px 0 88px;
  text-align: center;
}
.get-it-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.get-it-sub {
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0 auto 22px;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid rgba(245, 197, 24, 0.18);
  background: rgba(0, 0, 0, 0.35);
  padding: 28px 0;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}
.footer-brand img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold-deep);
}
.footer-meta {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.footer-meta a {
  color: var(--gold-2);
}
@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =========================================================
   Legal / long-form prose (Privacy Notice, etc.)
   ========================================================= */
.legal-prose {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
}
.legal-prose h3 {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
  color: var(--gold-2);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.legal-prose p {
  margin: 0 0 1.1em;
}
.legal-prose a {
  color: var(--gold-2);
  text-decoration: underline;
  text-decoration-color: rgba(245, 197, 24, 0.35);
  text-underline-offset: 2px;
}
.legal-prose a:hover,
.legal-prose a:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--gold);
}
.legal-prose strong {
  color: var(--text);
}
.legal-prose ul.legal-list {
  list-style: disc outside;
  padding-left: 1.6em;
  margin: 0 0 1.2em;
}
.legal-prose ul.legal-list li {
  display: list-item;
  margin-bottom: 0.6em;
  color: var(--text-dim);
}
.legal-prose ul.legal-list li::marker {
  color: var(--gold);
}
.legal-back-top,
.legal-back-bottom {
  margin: 0 0 1.5em;
}
.legal-back-bottom {
  margin-top: 2em;
  text-align: center;
}

/* =========================================================
   404
   ========================================================= */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.error-wrap h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 0.25em;
}
.error-wrap p {
  color: var(--text-dim);
  margin-bottom: 1.5em;
}

/* =========================================================
   Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
