/* Vibes Casino — website styles. Brand tokens match the app (theme/colors.ts). */
:root {
  --night: #0a0512;
  --navy: #101828;
  --surface: #160b2a;
  --surface-2: #1e0f38;
  --border: rgba(255, 255, 255, 0.1);
  --purple: #6c3cf0;
  --violet: #9b30ff;
  --magenta: #ff3dcb;
  --gold: #f9b800;
  --coin: #ffd700;
  --text: #ffffff;
  --text-2: #d9c8ff;
  --muted: #9b8bb8;
  --radius: 20px;
  --max: 1160px;
  --display: 'Lilita One', 'Fredoka', system-ui, sans-serif;
  --body: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--coin); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 5, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 52px; height: 52px; }
.brand span { font-family: var(--display); font-size: 20px; letter-spacing: 0.5px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 5, 18, 0.95) 0%, rgba(10, 5, 18, 0.6) 55%, rgba(10, 5, 18, 0.2) 100%),
    url('/assets/hero-bg.jpg') center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-block: 72px 88px; }
.hero-logo { width: 190px; height: auto; margin-bottom: 8px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; margin: 0 0 18px; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); margin: 0 0 28px; max-width: 34em; }
.age-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 186px; padding: 10px 26px; border-radius: 999px; text-decoration: none; line-height: 1.15;
}
.store small { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.store strong { font-family: var(--display); font-weight: 400; font-size: 21px; }
.store.gold { background: var(--gold); color: #2a1600; box-shadow: 0 0 24px rgba(249, 184, 0, 0.35); }
.store.violet { background: #1a0b30; color: var(--text); border: 2px solid var(--violet); }
.store[aria-disabled='true'] { cursor: default; }

.hero .wrap > * { min-width: 0; }
.emblems { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.emblems img {
  grid-column: span 2; width: 100%; height: auto; border-radius: 22%;
  border: 1.5px solid rgba(255, 214, 64, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 28px rgba(155, 48, 255, 0.35);
}
.emblems img:nth-child(4) { grid-column: 2 / span 2; }
.emblems img:nth-child(5) { grid-column: 4 / span 2; }

/* ---------- Sections ---------- */
section { padding-block: 72px; }
.kicker { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 8px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin: 0 0 14px; }
.section-lead { color: var(--text-2); max-width: 40em; margin: 0 0 36px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.game {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.game img { width: 116px; height: 116px; margin: 0 auto 12px; border-radius: 22%; }
.game h3 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 0 0 4px; letter-spacing: 0.3px; }
.game p { color: var(--muted); font-size: 14px; margin: 0; }
.game .rtp { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: 0.05em; }

.soon { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.soon figure { margin: 0; flex: 0 0 120px; text-align: center; scroll-snap-align: start; opacity: 0.9; }
.soon img { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 22%; filter: saturate(0.85); }
.soon figcaption { font-size: 13px; font-weight: 600; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .icon { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.feature h3 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 0 0 6px; }
.feature p { color: var(--text-2); margin: 0; font-size: 15px; }

.callout {
  background: linear-gradient(135deg, rgba(108, 60, 240, 0.25), rgba(255, 61, 203, 0.12));
  border: 1px solid rgba(155, 48, 255, 0.45); border-radius: var(--radius); padding: 28px;
}
.callout p { margin: 0; color: var(--text-2); }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc { padding-block: 56px 80px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 28px; margin-top: 44px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }
.table-scroll { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--gold); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface); }
td { color: var(--text-2); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #2a1600;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--text); }
details p { margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 36px 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ---------- Motion (GSAP + Three.js) ---------- */
.hero .wrap { position: relative; z-index: 1; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero { cursor: default; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; }
.emblems { perspective: 900px; }
.emblems img { will-change: transform; }
.tap-hint {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; margin: 0; text-align: center;
  color: var(--muted); font-size: 13px; letter-spacing: 0.04em; pointer-events: none; display: none;
}
.motion .tap-hint { display: block; }
.store { position: relative; overflow: hidden; }
.store .shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
}
.games, .features { perspective: 1000px; }
.game, .feature { transform-style: preserve-3d; will-change: transform; }
.site-header { transition: background 0.3s ease, box-shadow 0.3s ease; }
.site-header.scrolled { background: rgba(10, 5, 18, 0.94); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
/* Hide animated hero pieces until GSAP reveals them, so nothing flashes on load. */
.motion .hero [data-anim] { visibility: hidden; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 64px; }
  .emblems { max-width: 440px; }
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .nav a { font-size: 14px; }
  .store { min-width: 0; flex: 1 1 150px; padding-inline: 16px; }
  .emblems { gap: 10px; }
}
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
