/* ==========================================================================
   DEWA SLOT — DARK CASINO UI  (v2)
   Palette: onyx bg · magenta brand · casino gold accent
   Fonts:   Bricolage Grotesque (display) + Plus Jakarta Sans (body)
   ========================================================================== */

:root {
  --brand:        #ff2e7e;
  --brand-dark:   #c4155c;
  --brand-light:  #ff7ab0;

  --accent:       #f6c451;
  --accent-warm:  #ffd96a;
  --accent-soft:  rgba(246, 196, 81, 0.55);
  --accent-deep:  #b8892a;

  --bg:           #08080d;
  --bg-card:      #111117;
  --bg-elevated:  #181821;
  --bg-panel:     #040406;
  --bg-header:    #000000;

  --text:         #f3efe6;
  --text-muted:   #b3afa6;
  --text-dim:     #6f6d66;

  --border:       rgba(246, 196, 81, 0.14);
  --border-strong:rgba(246, 196, 81, 0.32);
  --border-soft:  rgba(243, 239, 230, 0.08);

  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Bricolage Grotesque', 'Fraunces', Georgia, serif;
  --font-serif:   'Fraunces', 'Cormorant Garamond', Georgia, serif;

  --radius-sm:  4px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-pill: 999px;

  --shadow-card:  0 30px 60px -30px rgba(0, 0, 0, 0.65), 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 20px 60px -20px rgba(0, 0, 0, 0.85);
  --shadow-glow:  0 0 0 1px rgba(246, 196, 81, 0.12), 0 20px 45px -18px rgba(255, 46, 126, 0.35);

  --container:   1240px;
  --gutter:      1.5rem;

  --header-height: 5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(60rem 60rem at 85% -20%, rgba(255, 46, 126, 0.10), transparent 60%),
    radial-gradient(50rem 50rem at -10% 30%, rgba(246, 196, 81, 0.07), transparent 65%),
    linear-gradient(180deg, #08080d 0%, #0a0a12 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-warm); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-light); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 700; }

::selection { background: var(--brand); color: #fff; }

/* ---------- Container (single source of truth for content width) ---------- */
.container,
.header-inner,
.footer-inner,
.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-warm) 100%);
  color: #0a0a12 !important;
  box-shadow: 0 14px 32px -12px rgba(255, 46, 126, 0.55), 0 6px 18px -8px rgba(246, 196, 81, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(255, 46, 126, 0.7), 0 8px 22px -8px rgba(246, 196, 81, 0.6); }
.btn-secondary {
  background: transparent;
  color: var(--accent) !important;
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: rgba(246, 196, 81, 0.08); color: var(--accent-warm) !important; }
.btn-ghost {
  background: rgba(246, 196, 81, 0.06);
  color: var(--accent) !important;
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(246, 196, 81, 0.12); }

/* ==========================================================================
   HEADER — full-width horizontal glass bar (v2)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--bg-header);
  /* No backdrop-filter here: bg is opaque #000 so blur has no visual effect,
     and backdrop-filter creates a containing block which would trap the
     mobile nav's `position: fixed; inset: 0` inside the header. */
  border-bottom: 1px solid var(--border);
  transition: padding .2s ease, background .2s ease, border-color .2s ease;
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
  pointer-events: none;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.94);
  border-bottom-color: var(--border-strong);
}
.header-inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.nav a {
  position: relative;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: color .18s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent-warm); outline: none; }
.nav a.active { color: var(--accent); }
.nav-indicator {
  position: absolute;
  bottom: 0.15rem;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
  opacity: 0;
  transition: left .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1), opacity .2s ease;
  pointer-events: none;
}
.nav-indicator.is-active { opacity: 1; }

/* Close button is mobile-only; the @media block enables it. */
.nav-close { display: none; }

.header-aside { display: flex; align-items: center; gap: 0.75rem; }
.header-cta { padding: 0.7rem 1.25rem; font-size: 0.82rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
  border-radius: 2px;
}
.menu-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ==========================================================================
   HERO — centered dramatic (v2)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 88vh;
  margin-top: calc(-1 * var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 80% at 50% 40%, rgba(8, 8, 13, 0.25) 0%, rgba(8, 8, 13, 0.72) 60%, rgba(8, 8, 13, 0.95) 100%),
    linear-gradient(180deg, rgba(8, 8, 13, 0.6) 0%, transparent 35%, rgba(8, 8, 13, 0.9) 100%);
}
.hero:not(:has(.hero-bg img))::before {
  background:
    radial-gradient(60rem 40rem at 50% 40%, rgba(255, 46, 126, 0.22), transparent 60%),
    radial-gradient(50rem 35rem at 20% 80%, rgba(246, 196, 81, 0.12), transparent 60%),
    linear-gradient(180deg, #08080d 0%, #0a0a12 100%);
}

.hero-inner {
  position: relative;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
}
.hero-content {
  max-width: 56rem;
  margin: 0 auto;
}
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.kicker::before, .kicker::after {
  content: ''; width: 32px; height: 1px; background: var(--accent);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--accent-warm);
  background: linear-gradient(135deg, var(--accent-warm), var(--brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 42rem;
  margin: 0 auto 2.25rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.85rem;
}

/* Gold ornament above the hero H1 */
.hero-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.hero-ornament::before, .hero-ornament::after {
  content: ''; width: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.hero-ornament::after { background: linear-gradient(270deg, transparent, var(--accent)); }
.hero-ornament .diamond {
  width: 8px; height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ==========================================================================
   CATEGORY MARQUEE (under hero on every page)
   ========================================================================== */

.cat-marquee {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0.75rem 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(8,8,13,0.7));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.cat-marquee::before, .cat-marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.cat-marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.cat-marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.cat-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: catScroll 60s linear infinite;
  will-change: transform;
}
@keyframes catScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.cat-marquee:hover .cat-marquee-track { animation-play-state: paused; }
.cat-marquee img {
  height: 48px;
  width: auto;
  max-width: none;
  margin-right: 1.1rem;          /* replaces flex gap so -50% is seamless */
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(255, 46, 126, 0.18));
  transition: transform .3s ease;
  flex: 0 0 auto;
}
.cat-marquee img:hover { transform: translateY(-2px) scale(1.04); }

/* ==========================================================================
   FULLSCREEN SLIDER  (homepage only)
   ========================================================================== */

.fs-slider {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: clamp(340px, 58vw, 620px);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.fs-slider-track {
  position: absolute; inset: 0;
}
.fs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.fs-slide.is-active { opacity: 1; z-index: 1; }
.fs-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.fs-slider::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.55) 100%);
}
.fs-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.55rem;
}
.fs-slider-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.fs-slider-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ==========================================================================
   GAMES REEL (5 columns, slides bottom → top)
   ========================================================================== */

.games-reel-section { padding: 5rem 0 6rem; }
.games-reel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
  height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image:         linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.games-reel-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation-name: reelScroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}
.games-reel-col:nth-child(1) { animation-duration: 28s; }
.games-reel-col:nth-child(2) { animation-duration: 42s; }
.games-reel-col:nth-child(3) { animation-duration: 34s; }
.games-reel-col:nth-child(4) { animation-duration: 48s; }
.games-reel-col:nth-child(5) { animation-duration: 36s; }
@keyframes reelScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.games-reel-section:hover .games-reel-col { animation-play-state: paused; }
.games-reel-card {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.games-reel-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(246, 196, 81, 0.1);
  pointer-events: none;
}
.games-reel-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.games-reel-card:hover img { transform: scale(1.06); }

/* ==========================================================================
   SECTION HEAD
   ========================================================================== */

section { padding: 5rem 0; position: relative; }
.home-section-head { max-width: 46rem; margin-bottom: 3rem; }
.home-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Unified content column used by text-heavy sections (heading + body together).
   Spans the full .container width so the section aligns edge-to-edge with
   the header and footer. */
.section-stack { width: 100%; }
.section-stack > .section-label { display: inline-flex; margin-bottom: 1rem; }
.section-stack > h2,
.section-stack > .section-heading { margin-bottom: 1.25rem; }
.section-stack > p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.section-stack > p:last-child { margin-bottom: 0; }
.section-stack > ul,
.section-stack > ol { margin-top: 1.25rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before { content: '—'; color: var(--accent); }
.section-heading { margin-bottom: 0.8rem; }
.section-intro { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- Intro block ---------- */
.intro-block { padding: 4.5rem 0; position: relative; }
.intro-block-inner {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.intro-block p { font-size: 1.08rem; line-height: 1.75; color: var(--text); margin-bottom: 1.2rem; }
.intro-glyph {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3.2rem;
  color: var(--accent);
  line-height: 1;
  text-align: center;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

/* ==========================================================================
   FLOOR GRID
   ========================================================================== */

.floor-grid {
  display: grid;
  gap: 1.25rem;
}
.floor-grid--cols-1 { grid-template-columns: 1fr; }
.floor-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.floor-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.floor-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.floor-tile {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.floor-tile::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.floor-tile::after {
  content: attr(data-mono);
  position: absolute;
  right: -0.4rem; bottom: -1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.05;
  pointer-events: none;
  letter-spacing: -0.05em;
}
.floor-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}
.floor-tile h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.floor-tile p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }
.floor-tile .tile-link {
  display: inline-flex;
  margin-top: 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.floor-tile .tile-link::after { content: ' →'; transition: transform .2s ease; display: inline-block; margin-left: 0.35rem; }
.floor-tile:hover .tile-link::after { transform: translateX(4px); }

/* ==========================================================================
   FEATURE CHECK-LIST + SPLIT LAYOUT
   ========================================================================== */

.feature-check-list {
  list-style: none;
  padding: 1.75rem 1.5rem;
  margin: 0;
  background: linear-gradient(135deg, rgba(246, 196, 81, 0.08), rgba(255, 46, 126, 0.04));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}
.feature-check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.5rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}
.feature-check-list li + li { border-top: 1px solid var(--border-soft); }
.feature-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0.55rem;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #0a0a12;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split-layout--reverse { direction: rtl; }
.split-layout--reverse > * { direction: ltr; }
.split-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(225deg, transparent 50%, rgba(255, 46, 126, 0.12));
  pointer-events: none;
}
.split-content > h2 { margin-bottom: 1.25rem; }
.split-content > .split-intro { color: var(--text-muted); margin-bottom: 1.5rem; }
.split-content > .split-outro { color: var(--text-muted); margin-top: 1.5rem; font-size: 0.95rem; }

/* ==========================================================================
   PLAIN CARD
   ========================================================================== */

.plain-card {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
}
.plain-card::before, .plain-card::after {
  content: '';
  position: absolute;
  width: 40px; height: 1px;
  background: var(--accent);
  top: 50%; opacity: 0.4;
}
.plain-card::before { left: -60px; }
.plain-card::after { right: -60px; }
.plain-card h2 { margin-bottom: 1.25rem; }
.plain-card p { color: var(--text-muted); max-width: 42rem; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   ART-DECO SECURITY GRID
   ========================================================================== */

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.security-card {
  position: relative;
  padding: 2.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
  overflow: hidden;
  transition: transform .25s ease, background .25s ease;
}
.security-card::before {
  content: '';
  position: absolute;
  top: -80%; left: -30%;
  width: 200%; height: 200%;
  background: linear-gradient(115deg, transparent 40%, rgba(246, 196, 81, 0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .9s ease;
  pointer-events: none;
}
.security-card:hover::before { transform: translateX(50%); }
.security-card:hover { transform: translateY(-3px); background: var(--bg-elevated); }
.security-card .accred-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent);
  transition: width .25s ease, height .25s ease, border-color .25s ease;
}
.accred-corner--tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.accred-corner--tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.accred-corner--bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.accred-corner--br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.security-card:hover .accred-corner { width: 18px; height: 18px; border-color: var(--accent-warm); }
.security-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0.5rem 0 0.4rem;
  color: var(--text);
}
.security-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.security-card .card-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-warm), var(--accent-deep));
  color: #0a0a12;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
}

/* ==========================================================================
   HOME-SPECIFIC SECTIONS
   ========================================================================== */

.home-intro {
  padding: 6rem 0 5rem;
  text-align: center;
}
.home-intro-inner {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.home-intro .intro-glyph { font-size: 3.8rem; margin-bottom: 2rem; }
.home-intro p { font-size: 1.1rem; line-height: 1.8; color: var(--text); margin-bottom: 1.2rem; }
.home-intro .intro-cta { margin-top: 2.5rem; }

.home-floor .floor-grid { margin-top: 1rem; }

/* ---------- home-app — split with app.png ---------- */
.home-app { padding: 6rem 0; position: relative; overflow: hidden; }
.home-app::before {
  content: '';
  position: absolute;
  left: -20%; top: 20%;
  width: 60rem; height: 60rem;
  background: radial-gradient(circle, rgba(255, 46, 126, 0.12), transparent 60%);
  pointer-events: none;
}
.home-app-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.home-app-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-app-image::before {
  content: '';
  position: absolute;
  width: 90%; height: 90%;
  background: radial-gradient(circle, rgba(246, 196, 81, 0.25), transparent 60%);
  filter: blur(30px);
  z-index: 0;
}
.home-app-image img {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 20px 40px rgba(255, 46, 126, 0.25));
  z-index: 1;
}
.home-app-content h2 { margin-bottom: 1.25rem; }
.home-app-content p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 1rem; }
.home-app-badges {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.home-app-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(246, 196, 81, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

/* ---------- home-rewards ---------- */
.home-rewards {
  background: linear-gradient(180deg, transparent, rgba(255, 46, 126, 0.05), transparent);
}
.rewards-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.reward-tile {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.reward-tile::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.reward-tile--wide {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255, 46, 126, 0.18), rgba(246, 196, 81, 0.08));
  border-color: var(--border-strong);
}
.reward-tile--wide h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.55rem;
  color: var(--accent-warm);
  margin-bottom: 1rem;
}
.reward-tile h3 { color: var(--text); margin-bottom: 0.85rem; }
.reward-tile p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- home-support ---------- */
.home-support { padding: 6rem 0; position: relative; overflow: hidden; }
.support-card {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  overflow: hidden;
}
.support-card::before {
  content: '24/7';
  position: absolute;
  right: -1rem; bottom: -3rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 18rem;
  color: var(--accent);
  opacity: 0.05;
  pointer-events: none;
  line-height: 1;
}
.support-card h2 { margin-bottom: 1.25rem; position: relative; }
.support-card p { color: var(--text-muted); max-width: 40rem; margin-left: auto; margin-right: auto; position: relative; }
.support-card .support-cta { margin-top: 2rem; position: relative; }

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.faq-item {
  padding: 1.3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  text-align: left;
}
.faq-item p { color: var(--text); margin: 0; }
.faq-item p strong { color: var(--accent-warm); font-weight: 700; margin-right: 0.4rem; }

/* ==========================================================================
   IMAGE DIVIDER
   ========================================================================== */

.image-divider {
  position: relative;
  aspect-ratio: 21 / 9;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid var(--accent-soft);
  border-bottom: 1px solid var(--accent-soft);
}
.image-divider img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.image-divider::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,13,0.4), rgba(8,8,13,0.2) 40%, rgba(184, 137, 42, 0.18) 100%);
  pointer-events: none;
}

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */

.page-hero {
  position: relative;
  padding: 6rem 0 4rem;
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(var(--header-height) + 4rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero[data-bg] { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,8,13,0.82) 0%, rgba(8,8,13,0.92) 100%),
              radial-gradient(50rem 40rem at 20% 30%, rgba(246, 196, 81, 0.1), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: 1rem; max-width: 48rem; }
.page-hero .subtitle {
  font-size: 1.15rem; line-height: 1.6;
  color: var(--text); max-width: 42rem; margin: 0;
}

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent); font-weight: 600; }
.breadcrumb span[aria-current="page"] { color: var(--text-muted); }
.breadcrumb .sep { color: var(--text-dim); }

/* ==========================================================================
   FOOTER (simplified v2)
   ========================================================================== */

.site-footer {
  margin-top: 6rem;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-fret {
  height: 22px;
  background-color: var(--bg-panel);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='22' viewBox='0 0 40 22'><path d='M0 22 L10 2 L20 22 L30 2 L40 22' fill='none' stroke='%23f6c451' stroke-opacity='0.35' stroke-width='1'/></svg>");
  background-repeat: repeat-x;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.footer-main {
  padding: 4rem var(--gutter) 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.footer-pedestal .brand-mark { height: 44px; margin-bottom: 1.25rem; }
.footer-pedestal p { color: var(--text-muted); font-size: 0.95rem; max-width: 30rem; margin: 0 0 1.25rem; }
.footer-trustlinks {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-trustlinks a { color: var(--text-muted); font-weight: 600; transition: color .18s ease; }
.footer-trustlinks a:hover { color: var(--accent-warm); }
.footer-trustlinks .sep { color: var(--text-dim); opacity: 0.5; }

.footer-vip {
  padding: 2rem 2rem 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(246, 196, 81, 0.1), rgba(255, 46, 126, 0.06));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
}
.footer-vip .kicker {
  font-size: 0.7rem; letter-spacing: 0.26em; color: var(--accent);
  margin: 0 0 0.5rem;
}
.footer-vip .kicker::before, .footer-vip .kicker::after { display: none; }
.footer-vip h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.55rem;
  color: var(--text);
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0.6rem;
}
.footer-vip p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.footer-vip .vip-cta {
  display: inline-flex;
  padding: 0.7rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  color: var(--accent) !important;
  transition: background .2s ease, color .2s ease;
}
.footer-vip .vip-cta:hover { background: var(--accent); color: #0a0a12 !important; }

.footer-accreditations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 0 var(--gutter) 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.accred-badge {
  position: relative;
  padding: 1.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
  overflow: hidden;
  transition: background .22s ease;
}
.accred-badge::before {
  content: '';
  position: absolute;
  top: -80%; left: -30%;
  width: 200%; height: 200%;
  background: linear-gradient(115deg, transparent 40%, rgba(246, 196, 81, 0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 1s ease;
  pointer-events: none;
}
.accred-badge:hover::before { transform: translateX(50%); }
.accred-badge:hover { background: var(--bg-elevated); }
.accred-badge .accred-corner {
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--accent);
  transition: width .25s ease, height .25s ease;
}
.accred-badge .accred-corner--tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.accred-badge .accred-corner--tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.accred-badge .accred-corner--bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.accred-badge .accred-corner--br { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.accred-badge:hover .accred-corner { width: 16px; height: 16px; }
.accred-icon {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-warm);
  display: block;
  margin-bottom: 0.3rem;
}
.accred-title { font-size: 0.86rem; font-weight: 700; color: var(--text); display: block; }
.accred-caption { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.08em; margin-top: 0.15rem; }

.footer-bottom {
  position: relative;
  padding: 2rem var(--gutter);
  text-align: center;
  border-top: 1px solid var(--border);
  max-width: var(--container);
  margin: 0 auto;
}
.footer-bottom::before {
  content: '§';
  position: absolute;
  top: -0.8rem; left: 50%;
  transform: translateX(-50%);
  width: 2.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  background: var(--bg-panel);
  text-align: center;
  line-height: 1.6rem;
}
.footer-bottom .copyright {
  font-family: var(--font-serif);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 0.4rem;
}
.footer-bottom .disclaimer {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}

/* ==========================================================================
   404
   ========================================================================== */

.err-404 {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--gutter);
}
.err-glyph {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 14rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0;
}
.err-404 h1 { font-size: 2rem; margin: 1rem 0; }
.err-404 p { color: var(--text-muted); max-width: 32rem; margin-bottom: 2rem; }

/* ==========================================================================
   INLINE CTA + ARTICLE PROSE
   ========================================================================== */

.cta-inline {
  margin: 4rem auto;
  max-width: 58rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(255, 46, 126, 0.12), rgba(246, 196, 81, 0.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
}
.cta-inline h3 { color: var(--text); margin-bottom: 0.6rem; }
.cta-inline p { color: var(--text-muted); margin-bottom: 1.5rem; }
.cta-inline a { color: inherit; }
.cta-inline .btn-primary { color: #0a0a12 !important; }

.seo-article { padding: 4rem 0; }
.seo-article .container > section + section { margin-top: 4rem; }
.seo-article h2 { margin-bottom: 1.2rem; }
.seo-article h3 { color: var(--text); margin-bottom: 0.6rem; }
.seo-article p { color: var(--text-muted); line-height: 1.7; }
.seo-article a { color: var(--accent-warm); border-bottom: 1px dotted var(--accent-soft); }

/* ==========================================================================
   FLOATING CTA (Google Play + App Store badges)
   ========================================================================== */

.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  gap: 0.9rem;
  background: transparent;
  border: 0;
  padding: 0;
  pointer-events: auto;
}
.floating-cta-btn {
  display: inline-flex;
  align-items: center;
  transition: transform .2s ease, filter .2s ease;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}
.floating-cta-btn:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.7)) brightness(1.06);
}
/* Source badges are 562×204 (≈2.75:1). Lock the aspect ratio explicitly so
   nothing in the cascade can stretch them, and keep them at a natural size. */
.floating-cta-btn img {
  height: 60px;
  width: auto;
  max-width: none;
  aspect-ratio: 2.75 / 1;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .floating-cta { bottom: 1rem; gap: 0.7rem; }
  .floating-cta-btn img { height: 60px; }
}
@media (max-width: 560px) {
  .floating-cta { bottom: 0.85rem; gap: 0.6rem; }
  .floating-cta-btn img { height: 54px; }
}

/* ==========================================================================
   REVEAL
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in-view { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-marquee-track,
  .games-reel-col,
  .fs-slide { animation-duration: 0s !important; transition: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .cat-marquee img { height: 42px; }
  .games-reel { height: 560px; }
}

@media (max-width: 900px) {
  /* Logo left, menu trigger right — explicit space-between */
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 4.5rem 1.25rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.5,0,.2,1);
    z-index: 70;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a {
    font-size: 1.1rem;
    padding: 0.85rem 0.5rem;
    font-family: var(--font-heading);
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    text-align: left;
  }
  .nav a:first-of-type { border-top: 1px solid var(--border-soft); }
  .nav-indicator { display: none; }

  /* Dedicated close X inside the open menu */
  .nav-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--accent);
    font-size: 1.7rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
  }
  .nav-close:hover, .nav-close:focus-visible {
    background: rgba(246, 196, 81, 0.12);
    border-color: var(--border-strong);
    color: var(--accent-warm);
    outline: none;
  }

  /* When mobile menu is open, hide the floating download badges so they
     don't compete with the menu, and stop background scroll. */
  body.nav-open .floating-cta { display: none; }

  .hero { min-height: 78vh; }
  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); }

  .split-layout { grid-template-columns: 1fr; gap: 2rem; }
  .split-layout--reverse { direction: ltr; }
  .split-image { aspect-ratio: 16 / 10; }

  .home-app-split { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .home-app-badges { justify-content: center; }

  .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .rewards-bento { grid-template-columns: 1fr; }
  .reward-tile--wide { grid-column: span 1; }

  .footer-main { grid-template-columns: 1fr; gap: 2rem; padding: 3rem var(--gutter) 2rem; }
  .footer-accreditations { grid-template-columns: repeat(2, 1fr); }

  .cat-marquee img { height: 38px; }

  .games-reel { grid-template-columns: repeat(3, 1fr); height: 520px; }
  .games-reel-col:nth-child(4), .games-reel-col:nth-child(5) { display: none; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.1rem; --header-height: 4.25rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }
  .hero { min-height: 72vh; }
  .hero .lead { font-size: 1rem; }

  .floor-grid--cols-2, .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-accreditations { grid-template-columns: 1fr 1fr; }
  .plain-card::before, .plain-card::after { display: none; }
  .support-card { padding: 3rem 1.5rem; }
  .support-card::before { font-size: 10rem; right: -2rem; bottom: -2rem; }

  .fs-slider { height: 320px; }
  .cat-marquee { padding: 0.6rem 0; }
  .cat-marquee img { height: 32px; margin-right: 0.85rem; }

  .games-reel { grid-template-columns: repeat(2, 1fr); height: 460px; }
  .games-reel-col:nth-child(3) { display: none; }
}
