/*
 * SlotFafa88 site styles
 * Palette: navy #0f172a with gold #fbbf24
 */

:root {
  --navy: #0f172a;
  --navy-deep: #0a1122;
  --navy-ink: #070d1c;
  --surface: #131d35;
  --surface-raised: #182442;
  --field: #0b1328;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --gold: #fbbf24;
  --gold-light: #fde68a;
  --gold-dark: #f59e0b;
  --gold-tint: rgba(251, 191, 36, 0.12);
  --gold-line: rgba(251, 191, 36, 0.38);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --header-height: 68px;
  --container: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-light);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--text-strong);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.5rem);
  font-weight: 700;
}

h3,
.h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--gold-light);
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.narrow {
  max-width: 820px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--navy);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.88rem;
}

.text-gold {
  color: var(--gold) !important;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.mini-list li::marker {
  color: var(--gold);
}

/* ---------- Buttons and chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 10px 30px -12px rgba(251, 191, 36, 0.55);
}

.btn-primary:hover {
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(251, 191, 36, 0.75);
}

.btn-ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text-strong);
  border-color: var(--gold);
  background: var(--gold-tint);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip-gold {
  border-color: var(--gold-line);
  background: var(--gold-tint);
  color: var(--gold);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text-strong);
}

.brand-name span {
  color: var(--gold);
}

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

.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--text-strong);
  background: rgba(148, 163, 184, 0.1);
}

.nav a:not(.btn)[aria-current="page"] {
  color: var(--gold);
}

.nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--navy);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 12px;
  }

  .nav .btn {
    margin: 10px 0 0;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-tight {
  padding-top: 0;
}

.section-alt {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
}

.section-head {
  max-width: 740px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .lead {
  margin-bottom: 0;
}

.card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card > :last-child {
  margin-bottom: 0;
}

.note {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02));
  color: var(--text-soft);
}

.note strong {
  color: var(--text-strong);
}

/* ---------- Hero ---------- */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 80px);
}

.page-hero {
  padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--border);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 55% at 82% 18%, rgba(251, 191, 36, 0.15), transparent 62%),
    radial-gradient(45% 60% at 8% 92%, rgba(56, 189, 248, 0.1), transparent 62%);
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
}

.page-hero .lead {
  max-width: 700px;
}

.updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions.center {
  justify-content: center;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-strip svg {
  flex: none;
  color: var(--gold);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
}

/* ---------- Slot machine (hero preview and live game) ---------- */

.machine {
  --accent: rgba(251, 191, 36, 0.2);
  position: relative;
  width: 100%;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #16213c, #0d1529);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.machine::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.75), rgba(251, 191, 36, 0.08) 40%, rgba(245, 158, 11, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.machine[data-game="dragon-fortune"] {
  --accent: rgba(239, 68, 68, 0.3);
}

.machine[data-game="ancient-temple"] {
  --accent: rgba(217, 119, 6, 0.3);
}

.machine[data-game="jade-garden"] {
  --accent: rgba(16, 185, 129, 0.28);
}

.machine[data-game="ocean-pearl"] {
  --accent: rgba(14, 165, 233, 0.3);
}

.machine-preview {
  max-width: 440px;
}

.machine-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.machine-name {
  color: var(--text-strong);
  font-weight: 700;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.4vw, 10px);
  padding: clamp(8px, 1.6vw, 12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, var(--accent), transparent 65%), var(--navy-ink);
}

.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, #1f2b4a, #111a31);
  font-size: clamp(2rem, 8.5vw, 3.4rem);
  line-height: 1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.machine-preview .cell {
  font-size: clamp(1.9rem, 7vw, 2.8rem);
}

.cell .sym {
  display: block;
  user-select: none;
}

.cell.is-spinning .sym {
  animation: reel-blur 0.12s linear infinite;
}

.cell.is-landing .sym {
  animation: reel-land 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.cell.is-win {
  border-color: var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.28), #111a31 70%);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 26px -6px rgba(251, 191, 36, 0.7);
}

.cell.is-win .sym {
  animation: win-pulse 1.1s ease-in-out 2;
}

@keyframes reel-blur {
  from {
    transform: translateY(-18%);
    filter: blur(2px);
    opacity: 0.7;
  }
  to {
    transform: translateY(18%);
    filter: blur(2px);
    opacity: 0.7;
  }
}

@keyframes reel-land {
  from {
    transform: translateY(-30%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes win-pulse {
  50% {
    transform: scale(1.12);
  }
}

.preview-stats,
.slot-controls {
  display: grid;
  gap: 10px;
}

.preview-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.stat {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--field);
  text-align: center;
}

.stat-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Game cards ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow);
}

.game-art {
  --art: rgba(251, 191, 36, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(70% 90% at 50% 20%, var(--art), transparent 70%), linear-gradient(180deg, #111a31, var(--navy-ink));
}

.game-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}

.art-dragon {
  --art: rgba(239, 68, 68, 0.4);
}

.art-temple {
  --art: rgba(217, 119, 6, 0.4);
}

.art-jade {
  --art: rgba(16, 185, 129, 0.36);
}

.art-ocean {
  --art: rgba(14, 165, 233, 0.4);
}

.art-main {
  position: relative;
  font-size: 4.2rem;
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s ease;
}

.game-card:hover .art-main {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(251, 191, 36, 0.5));
}

.art-row {
  position: relative;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  opacity: 0.9;
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 22px;
}

.game-body h3 {
  margin: 0;
}

.game-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Features, steps, stats ---------- */

.feature-grid,
.tech-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tech-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p,
.tech-grid p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--gold);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.step p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Split layouts, lists, code ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.split-top {
  align-items: start;
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.check-list,
.cross-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.check-list li,
.cross-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-soft);
}

.check-list li::before,
.cross-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}

.check-list li::before {
  border: 1px solid var(--gold-line);
  background-color: var(--gold-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.cross-list li::before {
  border: 1px solid rgba(248, 113, 113, 0.4);
  background-color: rgba(248, 113, 113, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fca5a5' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}

.check-list strong {
  color: var(--text-strong);
}

.code-window {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--navy-ink);
  box-shadow: var(--shadow);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.code-window-bar i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.code-window-bar span {
  margin-left: 8px;
}

.code-window pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
}

.code-window code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}

.tok-c {
  color: #8391a7;
}

.tok-k {
  color: var(--gold);
}

.tok-f {
  color: #7dd3fc;
}

.tok-n {
  color: #fda4af;
}

/* ---------- Callouts ---------- */

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(15, 23, 42, 0) 60%), var(--surface);
}

.callout h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.callout p {
  margin: 0;
  color: var(--muted);
}

.age-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 800;
}

@media (max-width: 860px) {
  .callout {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
}

.cta-band {
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: radial-gradient(80% 120% at 50% 0%, rgba(251, 191, 36, 0.18), transparent 60%), linear-gradient(180deg, #16213c, #0d1529);
  text-align: center;
}

.cta-band .lead {
  max-width: 560px;
  margin-inline: auto;
}

.fine-print {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 20px;
}

.contact-aside .feature-icon {
  margin-bottom: 14px;
}

.contact-aside p {
  margin-bottom: 0.6em;
}

.card-warning {
  border-color: var(--gold-line);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--text-strong);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select option {
  background: var(--field);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.22);
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.field label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-weight: 400;
}

.checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--gold-light);
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: var(--gold-line);
}

.faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  color: var(--text-strong);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Legal pages ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.toc-title {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .toc {
    position: static;
    max-height: none;
  }
}

.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
}

.prose > h2:first-child,
.prose > .summary-box + h2 {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.6em;
  font-size: 1.08rem;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--gold);
}

.prose strong {
  color: var(--text-strong);
}

.summary-box {
  margin-bottom: 2.4em;
  padding: 22px 24px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02));
}

.summary-box h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.summary-box ul {
  margin: 0;
}

.table-wrap {
  margin: 1.2em 0 1.6em;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-strong);
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody th {
  color: var(--text-strong);
  font-weight: 600;
}

.data-table td {
  color: var(--text-soft);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Responsible gaming ---------- */

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.support-card h3 {
  margin-bottom: 6px;
}

.support-card p {
  color: var(--muted);
}

.plain-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--text-soft);
}

.plain-steps li::marker {
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Play page ---------- */

.play-section {
  position: relative;
  padding-block: 32px 72px;
}

.game-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.game-tabs a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.game-tabs a:hover {
  border-color: var(--gold);
  color: var(--text-strong);
}

.game-tabs a[aria-current="page"] {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--gold);
}

.notice {
  padding: 16px 20px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  background: var(--gold-tint);
  color: var(--gold-light);
}

.play-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}

/* The reels are sized from the viewport height so that on laptop screens the reels, controls
   and result message fit on screen together. 268px = control panel + gap + machine padding. */
.machine-column {
  flex: 0 1 auto;
  width: calc(clamp(300px, 100vh - 400px, 540px) + 268px);
  min-width: 0;
}

.play-side {
  flex: 0 0 320px;
}

@media (max-width: 980px) {
  .play-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .machine-column,
  .play-side {
    flex: none;
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }
}

.machine-live {
  padding: 24px;
}

.machine-head {
  margin-bottom: 18px;
}

.machine-head .eyebrow {
  margin-bottom: 6px;
}

.machine-head h1 {
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.machine-head p {
  margin: 0;
}

.slot-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  grid-template-areas:
    "reels panel"
    "message message";
  column-gap: 20px;
}

.slot-stage .slot-grid {
  grid-area: reels;
  align-self: start;
}

.slot-panel {
  display: flex;
  grid-area: panel;
  flex-direction: column;
  gap: 10px;
}

.slot-message {
  display: flex;
  grid-area: message;
  align-items: center;
  justify-content: center;
  min-height: 3em;
  margin: 12px 0 0;
  color: var(--text-strong);
  font-weight: 600;
  text-align: center;
}

.slot-message.is-win {
  color: var(--gold);
}

.slot-controls {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 600px) {
  .machine-live {
    padding: 16px;
  }

  .slot-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "reels"
      "message"
      "panel";
  }

  .slot-message {
    margin: 12px 0;
  }

  .slot-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stepper button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text-strong);
  line-height: 1;
  cursor: pointer;
}

.stepper button:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper output {
  min-width: 3ch;
  color: var(--text-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.btn-spin {
  width: 100%;
  margin-top: auto;
  padding: 16px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-spin.is-busy {
  cursor: progress;
  opacity: 0.85;
}

.slot-secondary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 600px) {
  .slot-secondary {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.slot-locked {
  padding: 40px 12px 24px;
  text-align: center;
}

.slot-locked .feature-icon {
  margin: 0 auto 18px;
}

.slot-locked h2:focus {
  outline: none;
}

.reality-check {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  padding: 20px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--field);
  box-shadow: var(--shadow);
}

.reality-check p {
  color: var(--text-soft);
}

.play-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.numbers {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.numbers div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.numbers dt {
  color: var(--muted);
}

.numbers dd {
  margin: 0;
  color: var(--text-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.math-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .math-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pt-icon {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.5rem;
  line-height: 1;
  vertical-align: middle;
}

.paylines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 18px;
}

.payline {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.payline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 72px;
  margin: 0 auto 8px;
}

.payline-grid span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #1e293b;
}

.payline-grid span.on {
  background: var(--gold);
}

/* ---------- Dialogs ---------- */

.modal {
  width: min(460px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #111a31;
  color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
}

.modal::backdrop {
  background: rgba(2, 6, 23, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal h2 {
  font-size: 1.45rem;
}

.modal p {
  color: var(--text-soft);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.break-options {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.break-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
}

.break-options label:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-tint);
}

.break-options input {
  accent-color: var(--gold);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 64px 32px;
  border-top: 1px solid var(--border);
  background: var(--navy-deep);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 16px;
  color: var(--muted);
}

.footer-title {
  margin-bottom: 14px;
  color: var(--text-strong);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--gold);
}

.age-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-badge span {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Motion ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}

/* Header and navigation */

a {
  transition: color 0.2s ease;
}

.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(251, 191, 36, 0.16);
  background: rgba(10, 17, 34, 0.94);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.9);
}

.nav a:not(.btn) {
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-toggle-bars span:nth-child(1) {
  top: 0;
}

.nav-toggle-bars span:nth-child(2) {
  top: 6px;
}

.nav-toggle-bars span:nth-child(3) {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .nav.is-open {
    animation: menu-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.is-open > * {
    animation: rise-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }

  .nav.is-open > :nth-child(2) {
    animation-delay: 40ms;
  }

  .nav.is-open > :nth-child(3) {
    animation-delay: 80ms;
  }

  .nav.is-open > :nth-child(4) {
    animation-delay: 120ms;
  }

  .nav.is-open > :nth-child(5) {
    animation-delay: 160ms;
  }

  .nav a:not(.btn)::after {
    display: none;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Buttons */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  z-index: -1;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: btn-shine 0.85s ease;
}

@keyframes btn-shine {
  to {
    transform: skewX(-20deg) translateX(420%);
  }
}

.btn-glow,
.btn-spin:not(:disabled):not(.is-busy) {
  animation: glow-pulse 2.8s ease-in-out infinite;
}

@keyframes glow-pulse {
  50% {
    box-shadow: 0 12px 36px -8px rgba(251, 191, 36, 0.8), 0 0 0 5px rgba(251, 191, 36, 0.12);
  }
}

/* Hero entrances and ambient movement */

.hero::before,
.page-hero::before {
  animation: glow-drift 16s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  to {
    transform: translate3d(-4%, 5%, 0) scale(1.1);
  }
}

.hero-copy > *,
.page-hero .container > * {
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-copy > :nth-child(2),
.page-hero .container > :nth-child(2) {
  animation-delay: 90ms;
}

.hero-copy > :nth-child(3),
.page-hero .container > :nth-child(3) {
  animation-delay: 180ms;
}

.hero-copy > :nth-child(4),
.page-hero .container > :nth-child(4) {
  animation-delay: 270ms;
}

.hero-copy > :nth-child(5) {
  animation-delay: 360ms;
}

.hero h1 .accent {
  background-image: linear-gradient(110deg, var(--gold-dark) 0%, var(--gold) 25%, var(--gold-light) 50%, var(--gold) 75%, var(--gold-dark) 100%);
  background-size: 200% auto;
  animation: gold-shimmer 6s linear infinite;
}

@keyframes gold-shimmer {
  to {
    background-position: -200% center;
  }
}

.hero-visual {
  animation: pop-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) 250ms backwards;
}

.machine-preview {
  animation: float 7s ease-in-out 1.4s infinite;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.trust-strip li {
  animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) 450ms backwards;
}

.trust-strip li:nth-child(2) {
  animation-delay: 520ms;
}

.trust-strip li:nth-child(3) {
  animation-delay: 590ms;
}

.trust-strip li:nth-child(4) {
  animation-delay: 660ms;
}

.trust-strip li:nth-child(5) {
  animation-delay: 730ms;
}

/* Scroll reveal. Elements start hidden only when JavaScript is running (the inline script adds
   .js); main.js adds .reveal-on and marks elements .is-visible as they scroll into view. If
   main.js never runs, the failsafe animation shows everything after a short delay. */

.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  animation: reveal-failsafe 0.6s ease 2.5s forwards;
}

.reveal-on [data-reveal]:not(.is-visible),
.reveal-on [data-reveal-group] > :not(.is-visible) {
  animation: none;
}

.js [data-reveal].is-visible,
.js [data-reveal-group] > .is-visible {
  opacity: 1;
  animation: reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms) backwards;
}

@keyframes reveal-failsafe {
  to {
    opacity: 1;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* Cards */

.feature,
.step,
.stat-card,
.support-card,
.tech-grid > .card,
.contact-aside > .card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.feature:hover,
.step:hover,
.stat-card:hover,
.support-card:hover,
.tech-grid > .card:hover,
.contact-aside > .card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow);
}

.feature-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.feature:hover .feature-icon,
.card:hover > .feature-icon {
  background-color: rgba(251, 191, 36, 0.22);
  transform: rotate(-8deg) scale(1.08);
}

.art-main,
.art-row {
  z-index: 1;
}

.art-main {
  animation: bob 5s ease-in-out infinite;
}

.game-card:nth-child(2) .art-main {
  animation-delay: -1.25s;
}

.game-card:nth-child(3) .art-main {
  animation-delay: -2.5s;
}

.game-card:nth-child(4) .art-main {
  animation-delay: -3.75s;
}

@keyframes bob {
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 60% at 50% 45%, rgba(251, 191, 36, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.game-card:hover .game-art::after {
  opacity: 1;
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.05);
}

.site-footer ul a {
  display: inline-block;
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-footer ul a:hover {
  transform: translateX(4px);
}

/* Code sample types itself in line by line */

.code-line {
  display: block;
  min-height: 1.7em;
}

.reveal-on .code-window:not(.is-visible) .code-line {
  opacity: 0;
}

.reveal-on .code-window.is-visible .code-line {
  animation: code-line-in 0.45s ease backwards;
  animation-delay: calc(var(--line) * 120ms + 350ms);
}

@keyframes code-line-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}

.code-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--gold);
  animation: cursor-blink 1s steps(2, start) infinite;
}

@keyframes cursor-blink {
  to {
    visibility: hidden;
  }
}

/* Callouts */

.age-mark {
  position: relative;
}

.age-mark::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(251, 191, 36, 0.55);
  border-radius: 50%;
  animation: spin-slow 18s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: -1;
  background: radial-gradient(35% 45% at 50% 50%, rgba(251, 191, 36, 0.16), transparent 70%);
  animation: glow-sweep 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glow-sweep {
  from {
    transform: translateX(-28%);
  }
  to {
    transform: translateX(28%);
  }
}

/* FAQ and dialogs */

.faq summary {
  transition: color 0.2s ease;
}

.faq summary:hover {
  color: var(--gold-light);
}

.faq details[open] .answer {
  animation: faq-open 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.modal[open] {
  animation: pop-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal[open]::backdrop {
  animation: fade-in 0.3s ease;
}

.reality-check:not([hidden]) {
  animation: pop-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.slot-locked:not([hidden]) {
  animation: rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Play page */

.game-tabs a {
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  animation: fade-in 0.6s ease backwards;
}

.game-tabs a:nth-child(2) {
  animation-delay: 60ms;
}

.game-tabs a:nth-child(3) {
  animation-delay: 120ms;
}

.game-tabs a:nth-child(4) {
  animation-delay: 180ms;
}

.play-layout > * {
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.play-layout > :nth-child(2) {
  animation-delay: 120ms;
}

.stat-value,
.stepper output {
  display: inline-block;
}

.is-bumped {
  animation: bump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bump {
  40% {
    transform: scale(1.22);
    color: var(--gold);
  }
}

.slot-message.is-win {
  animation: message-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes message-pop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

.fx-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: var(--size, 6px);
  height: var(--size, 6px);
  margin: calc(var(--size, 6px) / -2) 0 0 calc(var(--size, 6px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8dc, var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.85);
  animation: spark-fly 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms) both;
}

@keyframes spark-fly {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(0.4);
  }
  70% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1);
  }
}

.machine.is-big-win {
  animation: big-win 1.4s ease;
}

@keyframes big-win {
  20%,
  60% {
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.9), 0 0 90px -10px rgba(251, 191, 36, 0.55), 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
