/* ==========================================================================
   FANCODE.BET — Homepage stylesheet
   1.  Design tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Reusable components
   5.  Header / navigation
   6.  Hero
   7.  Marquee
   8.  Game categories
   9.  Featured experience
   10. Sports showcase
   11. Live casino
   12. Aviator
   13. Why FANCODE.BET
   14. Stats strip
   15. Experience / testimonials
   16. Final CTA
   17. Footer
   18. Floating UI (progress, back-to-top)
   19. Responsive
   20. Reduced motion
   ========================================================================== */

/* ============ 1. DESIGN TOKENS ============ */
:root {
  /* surfaces */
  --bg: #050505;
  --bg-2: #080808;
  --surface: #0d0d0d;
  --surface-2: #121212;

  /* brand */
  --orange: #ff5a00;
  --orange-light: #ff7a00;
  --gold: #ffb000;
  --silver: #d9d9d9;
  --white: #ffffff;

  /* text */
  --muted: #a5a5a5;
  --muted-2: #bdbdbd;
  --dim: #6e6e6e;

  /* glass + lines */
  --glass: rgba(255, 255, 255, .05);
  --glass-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .1);
  --border-soft: rgba(255, 255, 255, .06);
  --glow: rgba(255, 90, 0, .35);

  /* shape */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shell: 1280px;
  --nav-h: 76px;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .28s;
  --t-mid: .5s;
  --t-slow: .9s;

  /* type */
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* shadow */
  --shadow-card: 0 26px 60px -28px rgba(0, 0, 0, .95);
  --shadow-glow: 0 18px 50px -18px var(--glow);
}

/* ============ 2. RESET & BASE ============ */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

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

body {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient lighting + film grain sit behind every section */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 78% -6%, rgba(255, 90, 0, .12), transparent 62%),
    radial-gradient(52vw 42vw at 4% 34%, rgba(255, 122, 0, .07), transparent 66%),
    radial-gradient(70vw 50vw at 52% 108%, rgba(255, 176, 0, .06), transparent 64%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Everything real lives above the ambient layers */
.nav,
main,
.footer,
.totop,
.progress,
.nav__scrim { position: relative; z-index: 2; }

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

ul, ol { list-style: none; }

::selection { background: var(--orange); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Minimal custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #060606; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange), #7a2b00);
  border: 2px solid #060606;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--orange-light), var(--orange)); }
html { scrollbar-color: var(--orange) #060606; scrollbar-width: thin; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ 3. LAYOUT PRIMITIVES ============ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  position: relative;
  padding-block: clamp(76px, 9vw, 132px);
}
.section--tight { padding-block: clamp(56px, 6vw, 88px); }

.section__head {
  max-width: 720px;
  margin-bottom: clamp(38px, 4.5vw, 62px);
}
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}
.section__head--row .section__sub { max-width: 380px; margin-bottom: 6px; }

.section__title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 32%, #b9b9b9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.075rem);
  max-width: 62ch;
}

/* ============ 4. REUSABLE COMPONENTS ============ */

/* -- glass + HUD framing -- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hud { position: relative; }
.hud::before,
.hud::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
  border: 2px solid var(--orange);
  opacity: .55;
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease), width var(--t-mid) var(--ease), height var(--t-mid) var(--ease);
}
.hud::before {
  top: 14px; left: 14px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: 8px;
}
.hud::after {
  right: 14px; bottom: 14px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: 8px;
}
.hud:hover::before,
.hud:hover::after { width: 34px; height: 34px; opacity: .9; }

/* -- kicker label -- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--orange-light);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.kicker__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}
.kicker__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  opacity: .5;
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(.6); opacity: .7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* -- icons -- */
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke-width: 1.7;
}
.ic--flip { transform: rotate(180deg); }

/* -- buttons -- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  isolation: isolate;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.btn > span,
.btn > .ic { position: relative; z-index: 2; }
.btn .ic { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.btn:hover .ic { transform: translateX(4px); }

/* light sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, .3) 46%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.btn:hover::after { transform: translateX(130%); }

.btn--primary {
  background: linear-gradient(135deg, var(--orange-light), var(--orange) 55%, #d94a00);
  color: var(--white);
  box-shadow: 0 12px 34px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--primary:hover {
  box-shadow: 0 20px 50px -16px rgba(255, 90, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn--ghost {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--white);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover {
  border-color: rgba(255, 122, 0, .55);
  background: rgba(255, 90, 0, .1);
  color: #ffd9bd;
}

.btn--sm { padding: 11px 20px; font-size: .875rem; }
.btn--lg { padding: 18px 34px; font-size: 1rem; }

/* -- chips -- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 30px 34px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted-2);
  font-size: .88rem;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chip .ic { width: 16px; height: 16px; color: var(--orange-light); }
.chip:hover {
  transform: translateY(-3px);
  color: var(--white);
  border-color: rgba(255, 122, 0, .45);
  background: rgba(255, 90, 0, .08);
}

/* -- scroll reveal -- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; will-change: auto; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

/* ============ 5. HEADER / NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease),
              backdrop-filter var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
  animation: navDrop .9s var(--ease-out) both;
}
@keyframes navDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.nav.is-stuck {
  background: rgba(6, 6, 6, .72);
  border-bottom-color: var(--border-soft);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 46px -30px rgba(0, 0, 0, 1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.nav__brand {
  flex: none;
  display: block;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
.nav__brand img {
  width: auto;
  height: clamp(36px, 3.6vw, 46px);
  filter: drop-shadow(0 4px 18px rgba(255, 90, 0, .3));
}
.nav__brand:hover { transform: scale(1.03); }

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

.nav__link {
  position: relative;
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted-2);
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transform: translateX(-50%);
  transition: width var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--white); background: rgba(255, 255, 255, .04); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 20px; }
.nav__link.is-active { color: var(--white); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger,
.nav__close {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--glass);
  color: var(--white);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav__burger:hover,
.nav__close:hover { border-color: rgba(255, 122, 0, .5); background: rgba(255, 90, 0, .1); }

.nav__cta-mobile { display: none; }

.nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.nav__scrim.is-open { opacity: 1; }

/* ============ 6. HERO ============ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
  padding-block: calc(var(--nav-h) + 48px) 96px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__glow--1 {
  top: -14%;
  right: -6%;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 90, 0, .34), transparent 66%);
  animation: float1 15s ease-in-out infinite;
}
.hero__glow--2 {
  bottom: -22%;
  left: -12%;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 176, 0, .16), transparent 68%);
  animation: float2 19s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}
@keyframes float2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(4%, -5%, 0) scale(1.1); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 32%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 32%, transparent 78%);
}

.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero__title {
  font-size: clamp(2.5rem, 4.6vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 24px;
}
.hero__title .line { display: block; }
.hero__title .line > span { display: block; }
.hero__title .grad {
  background: linear-gradient(100deg, var(--gold) 4%, var(--orange-light) 38%, var(--orange) 62%, #ff9a4a 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(255, 90, 0, .28));
}

.hero__lede {
  max-width: 54ch;
  margin-bottom: 34px;
  color: var(--muted-2);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 46px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.4vw, 46px);
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.hero__stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #c9c9c9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stat-value i {
  font-style: normal;
  font-size: .62em;
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
}
.hero__stat dd {
  margin-top: 8px;
  color: var(--dim);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* -- hero layered visual -- */
.hero__visual {
  position: relative;
  /* width:100% is required — every child is absolutely positioned, so an
     auto-margin grid item would otherwise collapse to zero width. */
  width: 100%;
  aspect-ratio: 1;
  max-width: 620px;
  margin-inline: auto;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: visualIn 1.4s var(--ease-out) .25s both;
}
@keyframes visualIn {
  from { opacity: 0; transform: scale(.86) translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  aspect-ratio: 1;
  transform: translate3d(-50%, -50%, 0);
}
.core__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 0, .3);
}
.core__ring--1 { animation: spin 26s linear infinite; border-style: dashed; }
.core__ring--2 {
  inset: 11%;
  border-color: rgba(255, 176, 0, .22);
  border-top-color: var(--gold);
  border-width: 2px;
  animation: spin 17s linear infinite reverse;
}
.core__ring--3 {
  inset: 23%;
  border-color: rgba(255, 255, 255, .08);
  border-left-color: rgba(255, 90, 0, .8);
  border-width: 2px;
  animation: spin 11s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.core__pulse {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, .5), rgba(255, 90, 0, .06) 58%, transparent 72%);
  filter: blur(18px);
  animation: pulse 4.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.core__center {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, #ffd9a8, var(--gold) 26%, var(--orange) 62%, #8c2f00 100%);
  box-shadow: 0 0 60px rgba(255, 90, 0, .65), inset 0 -6px 18px rgba(0, 0, 0, .45);
}

/* floating sport objects at different depths */
.orb {
  position: absolute;
  width: 21%;
  aspect-ratio: 1;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .6));
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .5s var(--ease-out);
}
.orb svg { width: 100%; height: 100%; }
.orb::after {
  content: "";
  position: absolute;
  inset: -26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, .22), transparent 68%);
  z-index: -1;
}

.orb--cricket    { top: 6%;  left: 12%; width: 19%; animation: bob 7.5s ease-in-out infinite; }
.orb--basketball { top: 30%; right: 1%; width: 24%; animation: bob 6.2s ease-in-out infinite .8s; }
.orb--tennis     { bottom: 16%; left: 3%; width: 17%; animation: bob 8.4s ease-in-out infinite .4s; }
.orb--baseball   { bottom: 6%; right: 20%; width: 16%; animation: bob 7s ease-in-out infinite 1.2s; }
.orb--chip       { top: 12%; right: 22%; width: 15%; animation: bob 9s ease-in-out infinite .6s; }
.orb--plane      { top: 1%; left: 45%; width: 16%; animation: bob 6.8s ease-in-out infinite 1.6s; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* thin scanning line across the composition */
.hero__scan {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 1px;
  top: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, .7), transparent);
  animation: scan 6.5s var(--ease) infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(8%); opacity: 0; }
  10%      { opacity: 1; }
  90%      { opacity: 1; }
  100%     { transform: translateY(92%); }
}

/* -- scroll cue -- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--dim);
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: color var(--t-fast) var(--ease);
}
.scroll-cue:hover { color: var(--orange-light); }
.scroll-cue__track {
  display: grid;
  justify-items: center;
  width: 24px;
  height: 40px;
  padding-top: 7px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.scroll-cue__dot {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--orange);
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(15px); opacity: 0; }
}

/* ============ 7. MARQUEE ============ */
.marquee {
  position: relative;
  padding-block: 22px;
  border-block: 1px solid var(--border-soft);
  background: linear-gradient(90deg, rgba(255, 90, 0, .05), transparent 30%, transparent 70%, rgba(255, 90, 0, .05));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marq 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translate3d(-50%, 0, 0); } }

.marquee__row { display: flex; align-items: center; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-inline: clamp(20px, 3vw, 38px);
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, #f2f2f2, #7d7d7d);
  -webkit-background-clip: text;
  background-clip: text;
  transition: opacity var(--t-fast) var(--ease);
}
.marquee__item .ic {
  width: 22px;
  height: 22px;
  color: var(--orange);
  -webkit-text-fill-color: initial;
}
.marquee__sep {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--orange);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--glow);
}

/* ============ 8. GAME CATEGORIES ============ */
.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  perspective: 1400px;
}

.game {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(330px, 27vw, 400px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}
.game:hover,
.game:focus-within {
  border-color: rgba(255, 122, 0, .55);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 90, 0, .18), 0 24px 60px -26px rgba(255, 90, 0, .5);
}

.game__media { position: absolute; inset: 0; z-index: 0; }
.game__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: 50% 66%; /* bias the crop toward the pitch, not the sky */
  transition: transform 1.05s var(--ease-out);
}
.game:hover .game__media img,
.game:focus-within .game__media img { transform: scale(1.2); }

/* readability + moving light wash */
.game__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, .1) 0%, rgba(5, 5, 5, .55) 50%, rgba(5, 5, 5, .93) 100%),
    radial-gradient(120% 80% at 20% 0%, rgba(255, 90, 0, .16), transparent 60%);
  transition: opacity var(--t-mid) var(--ease);
}
.game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 122, 0, .22), transparent 62%);
  transition: opacity var(--t-mid) var(--ease);
  pointer-events: none;
}
.game:hover::before { opacity: 1; }

.game__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(20px, 2.2vw, 28px);
  transform: translateZ(38px);
}

.game__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--orange-light);
  transition: transform var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.game:hover .game__icon {
  transform: translateY(-4px) rotate(-6deg);
  border-color: rgba(255, 122, 0, .6);
  background: rgba(255, 90, 0, .16);
  color: var(--gold);
}

.game__title {
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  margin-bottom: 8px;
}

.game__text {
  min-height: 3.1em; /* exactly two lines — keeps titles aligned across the row */
  max-width: 34ch;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.game__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--orange-light);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.game__cta .ic { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.game:hover .game__cta,
.game:focus-within .game__cta { opacity: 1; transform: none; }
.game:hover .game__cta .ic { transform: translateX(5px); }

/* full-card link keeps the card a single accessible target */
.game__link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }

/* ============ 9. FEATURED EXPERIENCE ============ */
.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 5vw, 74px);
}

.split__frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.split__frame img {
  width: 100%;
  aspect-ratio: 10 / 11;
  object-fit: cover;
  will-change: transform;
}
/* Dedicated element rather than ::after — .hud already owns both
   pseudo-elements on this box for its corner brackets. */
.split__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 5, .7));
  pointer-events: none;
}

.split__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-radius: var(--radius);
}
.split__badge .ic { width: 22px; height: 22px; color: var(--orange); }
.split__badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
}
.split__badge span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}

/* ============ 10. SPORTS SHOWCASE ============ */
.showcase__tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.stab {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 600;
  transition: color var(--t-fast) var(--ease);
}
.stab .ic { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.stab:hover { color: var(--white); }
.stab:hover .ic { transform: scale(1.12); }
.stab.is-active { color: var(--white); }

/* sliding pill sits behind the active tab */
.showcase__indicator {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 0;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  box-shadow: 0 10px 26px -12px var(--glow);
  transition: transform var(--t-mid) var(--ease-out), width var(--t-mid) var(--ease-out);
}

.showcase__stage {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.spanel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.spanel.is-active {
  position: relative;
  opacity: 1;
  transform: none;
}
/* A fixed ratio keeps the stage cinematic instead of inheriting the
   artwork's native 4:3, which would tower over the fold. */
.spanel img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* Panels stay rendered through the crossfade; JS re-applies [hidden]
   once the transition has finished. */
.spanel[hidden] { display: block; pointer-events: none; }
.spanel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, .92) 6%, rgba(5, 5, 5, .55) 46%, transparent 78%);
}

.spanel__body {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 520px;
  padding: clamp(24px, 3.4vw, 46px);
}
.spanel__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 122, 0, .4);
  border-radius: 999px;
  background: rgba(255, 90, 0, .12);
  color: var(--orange-light);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.spanel__body h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  margin-bottom: 12px;
}
.spanel__body p {
  color: var(--muted-2);
  font-size: clamp(.94rem, 1.1vw, 1.02rem);
  max-width: 46ch;
}

/* ============ 11. LIVE CASINO ============ */
.casino { overflow: hidden; }

.casino__bg { position: absolute; inset: 0; z-index: 0; }
.casino__bg img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}
.casino__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .96) 4%, rgba(5, 5, 5, .74) 44%, rgba(5, 5, 5, .5) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 78%, var(--bg) 100%);
}

.casino__inner { position: relative; z-index: 2; }

.casino__panel {
  max-width: 620px;
  padding: clamp(28px, 3.6vw, 48px);
  border-radius: var(--radius-lg);
}
.casino__list {
  display: grid;
  gap: 13px;
  margin-block: 26px 32px;
}
.casino__list li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted-2);
  font-size: .96rem;
}
.tickbox {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid rgba(255, 176, 0, .5);
  border-radius: 6px;
  background: rgba(255, 176, 0, .1);
}
.tickbox::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6.5px;
  width: 5px;
  height: 10px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* floating chips */
.casino__float { position: absolute; inset: 0; pointer-events: none; }
.fchip {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 176, 0, .45);
  background: radial-gradient(circle at 34% 30%, rgba(255, 176, 0, .22), rgba(10, 10, 10, .5) 62%);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9), inset 0 0 20px rgba(255, 122, 0, .18);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.fchip--1 { top: 8%;  right: 12%; width: 92px;  height: 92px;  animation: bob 8s ease-in-out infinite; }
.fchip--2 { top: 44%; right: 30%; width: 58px;  height: 58px;  animation: bob 6.4s ease-in-out infinite .7s; }
.fchip--3 { bottom: 10%; right: 18%; width: 122px; height: 122px; animation: bob 9.6s ease-in-out infinite 1.4s; }

/* ============ 12. AVIATOR ============ */
.aviator { overflow: hidden; }

.aviator__bg { position: absolute; inset: 0; z-index: 0; }
.aviator__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 122, 0, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 0, .09) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, #000 10%, transparent 74%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 50%, #000 10%, transparent 74%);
}
.aviator__glow {
  position: absolute;
  top: 12%;
  right: 6%;
  width: min(48vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, .24), transparent 66%);
  filter: blur(70px);
}

.aviator__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 5vw, 68px);
}

.aviator__hud {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin-block: 30px 34px;
  padding: 20px 24px;
  border-radius: var(--radius);
}
.aviator__hud-label {
  display: block;
  color: var(--dim);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.aviator__hud-value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(255, 176, 0, .45);
}
.aviator__hud-bar {
  display: block;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.aviator__hud-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  box-shadow: 0 0 14px var(--glow);
}

.aviator__stage {
  position: relative;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 12, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.aviator__chart { width: 100%; height: auto; }
#avPath { stroke-dasharray: 1; stroke-dashoffset: 1; }
#avPlane { opacity: 0; }

.aviator__scan {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, .55), transparent);
  animation: scan 7s var(--ease) infinite;
}

/* ============ 13. WHY FANCODE.BET ============ */
.feats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}

.feat {
  position: relative;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease);
}
/* animated border light */
.feat::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--a, 0deg), transparent 0deg, var(--orange) 40deg, var(--gold) 70deg, transparent 130deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
  pointer-events: none;
}
.feat:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, .07);
}
.feat:hover::before { opacity: 1; animation: sweep 3s linear infinite; }
@keyframes sweep { to { --a: 360deg; } }

@property --a {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.feat__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 122, 0, .28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 90, 0, .18), rgba(255, 176, 0, .05));
  color: var(--orange-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.feat__icon .ic { width: 24px; height: 24px; }
.feat:hover .feat__icon { transform: translateY(-3px) scale(1.06); color: var(--gold); }

.feat h3 {
  min-height: 2.2em; /* two title lines — keeps body copy aligned across the row */
  font-size: 1.16rem;
  margin-bottom: 10px;
}
.feat p { color: var(--muted); font-size: .93rem; line-height: 1.6; }

/* ============ 14. STATS STRIP ============ */
.statstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.statstrip__item {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(28px, 3.4vw, 46px) 18px;
  text-align: center;
  border-right: 1px solid var(--border-soft);
  transition: background-color var(--t-mid) var(--ease);
}
.statstrip__item:last-child { border-right: 0; }
.statstrip__item:hover { background: rgba(255, 90, 0, .06); }

.statstrip__value {
  display: flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #a8a8a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.statstrip__value i {
  font-style: normal;
  font-size: .6em;
  color: var(--orange);
  -webkit-text-fill-color: var(--orange);
}
.statstrip__value--icon { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.statstrip__value--icon .ic {
  width: clamp(34px, 3.4vw, 46px);
  height: clamp(34px, 3.4vw, 46px);
  filter: drop-shadow(0 0 16px rgba(255, 176, 0, .5));
}
.statstrip__label {
  color: var(--dim);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ============ 15. EXPERIENCE / TESTIMONIALS ============ */
.slider__nav { display: flex; gap: 10px; }
.sbtn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--glass);
  color: var(--white);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.sbtn:hover { border-color: rgba(255, 122, 0, .55); background: rgba(255, 90, 0, .12); transform: scale(1.06); }
.sbtn[disabled] { opacity: .32; cursor: not-allowed; transform: none; }

.voices {
  --vgap: clamp(16px, 1.8vw, 22px);
  display: grid;
  grid-auto-flow: column;
  /* fixed track — minmax(0, X) would shrink the cards to fit and remove the scroll */
  grid-auto-columns: calc((100% - 2 * var(--vgap)) / 3);
  gap: var(--vgap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.voices::-webkit-scrollbar { display: none; }

.voice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
  transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease);
}
.voice:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, .38);
  background: rgba(255, 255, 255, .07);
}
.voice__mark {
  width: 30px;
  height: 30px;
  color: var(--orange);
  opacity: .45;
  stroke: none;
}
.voice p {
  flex: 1;
  color: var(--muted-2);
  font-size: .97rem;
  line-height: 1.68;
}
.voice__by {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid rgba(255, 122, 0, .34);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 90, 0, .26), rgba(255, 176, 0, .07));
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #ffd7b8;
}
.voice__by strong {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
}
.voice__by small {
  display: block;
  color: var(--dim);
  font-size: .78rem;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  transition: width var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.dot.is-active {
  width: 28px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

/* ============ 16. FINAL CTA ============ */
.cta { overflow: hidden; }
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
}
.cta__ring {
  position: absolute;
  border: 1px solid rgba(255, 122, 0, .16);
  border-radius: 50%;
  aspect-ratio: 1;
}
.cta__ring--1 { width: min(46vw, 520px); animation: ringPulse 7s var(--ease) infinite; }
.cta__ring--2 { width: min(64vw, 760px); animation: ringPulse 7s var(--ease) infinite .9s; }
.cta__ring--3 { width: min(84vw, 1020px); animation: ringPulse 7s var(--ease) infinite 1.8s; }
@keyframes ringPulse {
  0%   { transform: scale(.9); opacity: 0; }
  35%  { opacity: .9; }
  100% { transform: scale(1.14); opacity: 0; }
}
.cta__glow {
  position: absolute;
  width: min(70vw, 800px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 0, .2), transparent 62%);
  filter: blur(60px);
}

.cta__panel {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(38px, 5vw, 68px) clamp(24px, 4vw, 60px);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta__panel .kicker { justify-content: center; }
.cta__title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 30%, #bdbdbd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta__text {
  max-width: 56ch;
  margin: 0 auto 34px;
  color: var(--muted-2);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ============ 17. FOOTER ============ */
.footer {
  padding-block: clamp(56px, 6vw, 84px) 34px;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #060606, #030303);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.footer__brand img {
  width: auto;
  height: 52px;
  margin-bottom: 20px;
}
.footer__brand p {
  max-width: 42ch;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}

.socials { display: flex; gap: 10px; margin-top: 24px; }
.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.social .ic { width: 18px; height: 18px; }
.social:hover {
  transform: translateY(-3px);
  color: var(--white);
  border-color: rgba(255, 122, 0, .55);
  background: rgba(255, 90, 0, .12);
}

.footer__col h3 {
  margin-bottom: 18px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__col ul { display: grid; gap: 11px; }
.footer__col a {
  position: relative;
  color: var(--muted);
  font-size: .92rem;
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.footer__col a:hover { color: var(--orange-light); padding-left: 6px; }

.footer__mail { display: inline-flex; align-items: center; gap: 9px; }
.footer__mail .ic { width: 17px; height: 17px; color: var(--orange); }

.footer__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--dim);
  font-size: .8rem;
  line-height: 1.6;
}
.age {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid rgba(255, 122, 0, .5);
  border-radius: 50%;
  color: var(--orange-light);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
}

.footer__divider {
  height: 1px;
  margin-block: clamp(34px, 4vw, 52px) 26px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, .35), rgba(255, 176, 0, .18), transparent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--dim);
  font-size: .85rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a { transition: color var(--t-fast) var(--ease); }
.footer__legal a:hover { color: var(--orange-light); }

/* ============ 18. FLOATING UI ============ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  box-shadow: 0 0 12px var(--glow);
}

.totop {
  position: fixed;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(10, 10, 10, .7);
  color: var(--white);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease),
              visibility var(--t-mid), border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover {
  border-color: rgba(255, 122, 0, .6);
  background: rgba(255, 90, 0, .18);
}

/* ============ 19. RESPONSIVE ============ */

/* --- Laptop --- */
@media (max-width: 1200px) {
  .footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
}

/* --- Tablet & below: drawer navigation --- */
@media (max-width: 1023px) {
  :root { --nav-h: 68px; }

  .nav__burger { display: grid; }
  .nav__close { display: grid; position: absolute; top: 18px; right: 18px; }
  .nav__actions .btn { display: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 8px; }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 92;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    width: min(360px, 86vw);
    height: 100%;
    height: 100dvh;
    padding: 32px;
    background: rgba(8, 8, 8, .9);
    border-left: 1px solid var(--border);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: -30px 0 70px -30px rgba(0, 0, 0, 1);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-mid) var(--ease-out), visibility var(--t-mid);
  }
  .nav__menu.is-open { transform: none; visibility: visible; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav__link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }
  .nav__link::after { left: 16px; transform: none; bottom: 9px; }
  .nav__link:hover::after,
  .nav__link.is-active::after { width: 16px; }

  /* staggered drawer entrance */
  .nav__menu.is-open .nav__list li {
    animation: drawerIn .5s var(--ease-out) both;
  }
  .nav__menu.is-open .nav__list li:nth-child(1) { animation-delay: .06s; }
  .nav__menu.is-open .nav__list li:nth-child(2) { animation-delay: .11s; }
  .nav__menu.is-open .nav__list li:nth-child(3) { animation-delay: .16s; }
  .nav__menu.is-open .nav__list li:nth-child(4) { animation-delay: .21s; }
  .nav__menu.is-open .nav__list li:nth-child(5) { animation-delay: .26s; }
  .nav__menu.is-open .nav__list li:nth-child(6) { animation-delay: .31s; }
  @keyframes drawerIn {
    from { opacity: 0; transform: translateX(22px); }
    to   { opacity: 1; transform: none; }
  }

  /* hero stacks, visual moves below the copy */
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 56px) 88px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 460px; width: 82%; }
  .scroll-cue { display: none; }

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

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split__media { order: 2; }
  .split__frame img { aspect-ratio: 16 / 11; }

  .aviator__inner { grid-template-columns: 1fr; gap: 42px; }
  .aviator__hud { max-width: none; }

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

  .voices { grid-auto-columns: calc((100% - var(--vgap)) / 2); }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }

  .section__head--row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .section__head--row .section__sub { max-width: none; }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  body { font-size: 15px; }

  .section { padding-block: clamp(58px, 13vw, 80px); }

  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__stats { gap: 22px; }
  .hero__stat { flex: 1 1 88px; }
  .hero__visual { width: 100%; max-width: 380px; }

  /* mobile: horizontal swipe rail instead of a grid */
  .games {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin-inline: calc(clamp(20px, 5vw, 40px) * -1);
    padding-inline: clamp(20px, 5vw, 40px);
    perspective: none;
  }
  .games::-webkit-scrollbar { display: none; }
  .game { scroll-snap-align: center; min-height: 340px; }
  /* tilt is disabled on touch — keep cards flat and legible */
  .game { transform: none !important; }
  .game__body { transform: none; }
  .game__cta { opacity: 1; transform: none; }

  .showcase__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: var(--radius);
  }
  .showcase__tabs::-webkit-scrollbar { display: none; }
  .showcase__indicator { border-radius: var(--radius-sm); }
  .stab { padding: 11px 16px; font-size: .86rem; white-space: nowrap; }
  .spanel::after {
    background: linear-gradient(180deg, rgba(5, 5, 5, .3) 0%, rgba(5, 5, 5, .8) 46%, rgba(5, 5, 5, .96) 100%);
  }
  .spanel img { aspect-ratio: 3 / 4; }
  .spanel__body { max-width: none; }

  .feats { grid-template-columns: 1fr; }

  .statstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statstrip__item:nth-child(2n) { border-right: 0; }
  .statstrip__item:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }

  .voices { grid-auto-columns: 86%; }

  .casino__float { display: none; }
  .casino__panel { max-width: none; }
  .casino__veil {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, .82) 0%, rgba(5, 5, 5, .9) 60%, var(--bg) 100%);
  }

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .cta__actions .btn { width: 100%; justify-content: center; }

  /* HUD brackets get crowded on small screens */
  .hud::before, .hud::after { width: 16px; height: 16px; }
}

@media (max-width: 400px) {
  .hero__stats { gap: 16px; }
  .hero__stat dd { font-size: .72rem; letter-spacing: .06em; }
  .marquee__item { font-size: .95rem; }
}

/* Coarse pointers never get hover-only affordances */
@media (hover: none) {
  .game__cta { opacity: 1; transform: none; }
  .game { transform: none !important; }
}

/* ============ 20. REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1 !important; transform: none !important; }
  .game__cta { opacity: 1; transform: none; }
  .hero__particles,
  .hero__scan,
  .aviator__scan,
  .casino__float { display: none; }
  .marquee__track { animation: none; }
  #avPath { stroke-dashoffset: 0 !important; }
  #avPlane { opacity: 1 !important; }
}
