/* ═══════════════════════════════════════════════════════
   fortunedragoncasino.bet — Stylesheet
   Theme: Dark Egyptian Temple + Gold accents
   Mobile-first, responsive
   ═══════════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  --bg-primary:   #140718;
  --bg-secondary: #200f24;
  --bg-card:      #29152e;
  --bg-card-hover:#351c3b;

  --gold:         #c360dc;
  --gold-light:   #d98bec;
  --gold-dark:    #922bab;
  --gold-glow:    rgba(195, 96, 220, .30);
  --num:           #eec14f;
  --num-dark:      #c98f1d;
  --gold-glow-sm: rgba(195, 96, 220, .15);

  --text:         #f4eff5;
  --text-muted:   #beacc3;
  --text-dark:    #9d85a3;

  --border:       rgba(195, 96, 220, .20);
  --border-strong:rgba(195, 96, 220, .45);

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   100px;

  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --shadow-gold:   0 0 40px var(--gold-glow);

  --font-display:  Verdana, 'DejaVu Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:     system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --header-h:      72px;
  --container-max:  1200px;

  --ease-out:      cubic-bezier(.25, .46, .45, .94);
  --ease-spring:   cubic-bezier(.34, 1.56, .64, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ─── Utilities ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ─── Scroll Animation ─── */
/* Hidden only once the script has confirmed it is alive: the .js class is set
   inline in <head>. Otherwise, with JS off or broken, half the page would stay
   at opacity:0 — no content for a reader and none for the gate either. */
.js [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.js [data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-animate] { opacity: 1; transform: none; transition: none; }
}


/* ═══════════════════ BUTTONS ═══════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  transition: all .35s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { flex-shrink: 0; }

/* The gradient is darkened and the label white: against the light end of the
   previous gradient, dark text measured 2.94:1 where 4.5 is required. The worst
   stop is now 5.29:1. Measured by hand — the probe does not read gradients. */
.btn--primary {
  background: linear-gradient(135deg, #6d1f81, #8b2aa3, #a43cbe);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn--primary:hover {
  box-shadow: 0 6px 32px var(--gold-glow), 0 0 60px var(--gold-glow-sm);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn--outline:hover {
  background: var(--gold);
  color: #140718;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}


/* ═══════════════════ HEADER ═══════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--header-h);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.header--scrolled {
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  z-index: 151;
}

/* Burger */
.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 151;
  padding: 8px;
}
.header__logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Header Right (lang + CTA) */
.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 101;
}

/* Nav */
.header__nav {
  display: none;
}
@media (min-width: 992px) {
  .header__nav { display: flex; }
}
.header__menu {
  display: flex;
  gap: 32px;
}
.header__menu a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .25s;
  position: relative;
}
.header__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .3s var(--ease-out);
}
.header__menu a:hover { color: var(--gold); }
.header__menu a:hover::after { width: 100%; }

/* Header CTA */
.header__cta {
  display: none;
  font-size: .85rem;
  padding: 10px 24px;
}
@media (min-width: 992px) { .header__cta { display: inline-flex; } }

/* Language Selector */
.lang-selector {
  position: relative;
}
.lang-selector__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  transition: all .25s;
  background: rgba(255,255,255,.04);
}
.lang-selector__toggle:hover {
  border-color: var(--border-strong);
  color: var(--gold);
}
.lang-selector--open .lang-selector__toggle {
  border-color: var(--gold);
  color: var(--gold);
}
.lang-selector__globe { flex-shrink: 0; }
.lang-selector__arrow {
  flex-shrink: 0;
  transition: transform .25s var(--ease-out);
}
.lang-selector--open .lang-selector__arrow {
  transform: rotate(180deg);
}
.lang-selector__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: rgba(18, 14, 10, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 200;
  animation: langDrop .2s var(--ease-out);
}
.lang-selector--open .lang-selector__dropdown {
  display: block;
}
@keyframes langDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-selector__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .2s;
}
.lang-selector__option:hover {
  background: rgba(195,96,220,.1);
  color: var(--gold);
}
.lang-selector__option--active {
  color: var(--gold);
  font-weight: 600;
}
.lang-selector__option--active::after {
  content: '✓';
  margin-left: auto;
  font-size: .75rem;
  color: var(--gold);
}
.lang-selector__flag {
  font-size: 1.1rem;
  line-height: 1;
}

@media (min-width: 992px) { .header__burger { display: none; } }

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.header__burger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger--active span:nth-child(2) { opacity: 0; }
.header__burger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header right: hide lang + CTA on mobile (they go into mobile menu) */
@media (max-width: 991px) {
  .header__right { display: none; }
}

/* Mobile Nav */
@media (max-width: 991px) {
  .header__nav--open {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 150;
    animation: fadeIn .3s ease;
  }
  .header__nav--open .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .header__nav--open .header__menu a {
    font-size: 1.3rem;
    font-family: var(--font-display);
    color: var(--text);
    transition: color .2s;
  }
  .header__nav--open .header__menu a:hover {
    color: var(--gold);
  }
  /* Show mobile extras (lang + CTA) inside the overlay */
  .header__nav--open .nav__mobile-extras {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .header__nav--open .nav__mobile-extras .btn {
    min-width: 200px;
    justify-content: center;
  }
}
/* Hide mobile extras on desktop (they're in header__right) */
.nav__mobile-extras {
  display: none;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative;
  /* A ceiling on the first screen: on a 1440px-tall monitor a full-vh hero
     pushes everything else past the horizon, and a full-page screenshot comes
     out as an empty field. */
  min-height: min(100vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(195,96,220,.08) 0%, transparent 60%),
    linear-gradient(180deg, #1b0a22 0%, #140718 100%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(195,96,220,.02) 2px,
      rgba(195,96,220,.02) 4px
    );
  pointer-events: none;
}

/* Particles */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  bottom: -10px;
  background: var(--gold);
  border-radius: 50%;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) scale(.3); opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 0 80px;
}
.hero__provider {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: .8;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.hero__badge {
  margin-top: 40px;
  font-size: .8rem;
  color: var(--text-dark);
  letter-spacing: .06em;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero__scroll-indicator span {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text-dark);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: .3; transform: scaleY(.6); }
  50%      { opacity: 1; transform: scaleY(1); }
}


/* ═══════════════════ STATS BAR ═══════════════════ */
.stats {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 0;
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  min-width: 100px;
}
.stats__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.stats__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
}
.stats__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  display: none;
}
@media (min-width: 640px) {
  .stats__divider { display: block; }
  .stats__grid { gap: 0; }
}


/* ═══════════════════ DEMO ═══════════════════ */
.demo {
  padding: 80px 0;
}
.demo__wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.demo__frame {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}
.demo__disclaimer {
  text-align: center;
  margin-top: 16px;
  font-size: .8rem;
  color: var(--text-dark);
}


/* ═══════════════════ FEATURES ═══════════════════ */
.features {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 32px var(--gold-glow-sm);
  transform: translateY(-4px);
}
.feature-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 100%; height: 100%; }

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.feature-card__text {
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-card__list li {
  font-size: .88rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.feature-card__list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .7rem;
  top: 3px;
}


/* ═══════════════════ JACKPOTS ═══════════════════ */
.paytable {
  padding: 80px 0;
}
.paytable__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .paytable__grid { grid-template-columns: repeat(4, 1fr); }
}

.pay-card {
  position: relative;
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform .3s, box-shadow .3s;
}
.pay-card:hover {
  transform: translateY(-4px);
}

.pay-card__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #140718;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .08em;
  white-space: nowrap;
}

.pay-card__tier {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.pay-card__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.pay-card__desc {
  font-size: .75rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Tier colors */
.pay-card__value { color: var(--num); }
.pay-card--wild { border-color: var(--border-strong); }
.pay-card--wild .pay-card__value { color: var(--gold-light); }
.pay-card--grand:hover { box-shadow: var(--shadow-gold); }


/* ═══════════════════ HOW TO PLAY ═══════════════════ */
.how-to-play {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}
.step {
  text-align: center;
  flex: 1;
  padding: 0 16px;
}
.step__number {
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto 16px;
  background: rgba(195,96,220,.06);
}
.step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.step__text {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.step__connector {
  width: 2px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
  margin: 8px auto;
}
@media (min-width: 768px) {
  .step__connector {
    width: 40px;
    height: 2px;
    margin: 28px 0 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }
}


/* ═══════════════════ GAME INFO TABLE ═══════════════════ */
.game-info {
  padding: 80px 0;
}
.info-table {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.info-table table {
  width: 100%;
}
.info-table tr {
  border-bottom: 1px solid var(--border);
}
.info-table tr:last-child { border-bottom: none; }

.info-table td {
  padding: 14px 20px;
  font-size: .92rem;
  vertical-align: top;
}
.info-table td:first-child {
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  width: 140px;
}
.info-table td:last-child {
  color: var(--text-muted);
}
.info-table tr:hover {
  background: rgba(195,96,220,.04);
}


/* ═══════════════════ FAQ ═══════════════════ */
.faq {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color .3s;
}
.faq__item--open {
  border-color: var(--border-strong);
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color .25s;
  gap: 16px;
}
.faq__question:hover { color: var(--gold); }

.faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: transform .35s var(--ease-out);
}
.faq__item--open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.faq__answer p {
  padding: 0 20px 20px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq__answer strong { color: var(--gold); }


/* ═══════════════════ RESPONSIBLE GAMING ═══════════════════ */
.responsible {
  padding: 80px 0;
}
.responsible__content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
@media (max-width: 640px) {
  .responsible__content { flex-direction: column; align-items: center; text-align: center; }
}
.responsible__icon { flex-shrink: 0; }
.responsible__icon svg { width: 48px; height: 48px; }

.responsible__text p {
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.responsible__text strong { color: var(--gold); }

.responsible__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.responsible__links li a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  transition: all .25s;
}
.responsible__links li a:hover {
  background: var(--gold);
  color: #140718;
  border-color: var(--gold);
}


/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}

.footer__about {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .25s;
}
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer__age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__disclaimer {
  font-size: .78rem;
  color: var(--text-dark);
  max-width: 640px;
  margin: 0 auto 12px;
  line-height: 1.7;
}
.footer__copy {
  font-size: .75rem;
  color: var(--text-dark);
}


/* ═══════════════════ DECORATIVE ═══════════════════ */
/* Egyptian-inspired ornamental divider (before features) */
.features::before,
.paytable::before,
.how-to-play::before,
.faq::before {
  content: '◆ ◆ ◆';
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: .55rem;
  letter-spacing: 12px;
  margin-bottom: 48px;
  opacity: .5;
}

/* Gold line accent for section titles */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}


/* ═══════════════════ RESPONSIVE FINE-TUNING ═══════════════════ */
@media (max-width: 480px) {
  .hero__title  { font-size: 2.4rem; }
  .btn--lg      { padding: 14px 28px; font-size: .95rem; }
  .stats__item  { padding: 0 12px; }
  .stats__value { font-size: 1.2rem; }
  .pay-card__value { font-size: 1.3rem; }
}


/* ═══════════════════ FORTUNE DRAGON ADDITIONS ═══════════════════ */

/* Logo: mark and wordmark as separate files — otherwise the wordmark cannot
   be hidden on narrow screens, and the mark has to stay. */
.header__logo { gap: 10px; }
.header__logo-mark { height: 40px; width: auto; flex-shrink: 0; }
.header__logo-word { height: 42px; width: auto; }
@media (max-width: 400px) {
  /* Name kept: it shrinks with the mark in the header block instead. */
  .header__logo-word { height: 23px; }
}

/* Language indicator. SVG flags only: on Windows, emoji flags render as a
   pair of letters. */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-pill img { display: block; border-radius: 2px; }
/* The language code arrives from the <!--LANG--> macro in lower case: "en". */
.lang-pill { text-transform: uppercase; }

/* Note under the specs: what was read off the frames and what came from elsewhere. */
.stats__note,
.paytable__note {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--text-dark);
  text-align: center;
}
.paytable__note {
  margin-top: 32px;
  font-size: .88rem;
  color: var(--text-muted);
}
.paytable__note strong { color: var(--num); }

/* Symbol card: the figure in gold, the caption in body text. */
.pay-card__sym {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Figures in gold, every other accent in purple. Gold on borders and headings
   stops making the important thing stand out. */
.stats__value { color: var(--num); }

/* Demo: a poster instead of an iframe; the button opens a separate window. */
.demo__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 28px 20px;
  background:
    radial-gradient(ellipse at center, rgba(195,96,220,.07) 0%, transparent 70%),
    var(--bg-card);
}
@media (min-width: 768px) {
  .demo__frame { flex-direction: row; justify-content: center; gap: 40px; padding: 36px; }
}
.demo__poster {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.demo__cta { text-align: center; }
.demo__hint {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-dark);
}

/* Game frames with captions. The caption describes what is in the frame. */
.shot {
  max-width: 340px;
  margin: 40px auto 0;
}
.shot--narrow { max-width: 300px; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.shot figcaption {
  margin-top: 12px;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-items: center;
}
@media (min-width: 768px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 32px; }
}


/* ═══════════════════ SUBPAGES ═══════════════════ */

/* The header is fixed at --header-h, so the top offset is measured from it. */
.plain-page { padding: calc(var(--header-h) + 56px) 0 80px; }
.plain-page--center { text-align: center; }
.plain-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.plain-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 72ch;
  margin-bottom: 28px;
}
.plain-page--center .plain-lead { margin: 0 auto 28px; }
.prose { max-width: 75ch; }
.prose p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.prose strong { color: var(--text); }
.prose a,
.plain-lead a,
.casinos-foot a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .85rem;
  color: var(--text);
}
.page-updated {
  font-size: .85rem;
  color: var(--text-dark);
  margin-bottom: 26px;
}

/* Where to Play */
.affiliate-note {
  max-width: 75ch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.affiliate-note strong { color: var(--text); }
.casino-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  max-width: 880px;
}
.casino-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.casino-card-info { flex: 1 1 320px; }
.casino-card-info h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.casino-card-info p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.casino-card-warn { font-size: .8rem; color: var(--text-dark); margin: 0; }
.casino-card .btn { flex-shrink: 0; }
.casinos-foot { color: var(--text-muted); max-width: 75ch; }

/* Contact form. Styled here rather than inline on the contact page: inline
   styles are lost when the page is ported into the CMS, and the form would
   reach production unstyled. */
.contact-form { max-width: 640px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.form-field .req { color: var(--gold-light); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color .25s;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dark); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--gold-light); }

/* Turnstile renders a fixed 300px-wide widget; on a 320px screen it shifted the
   whole page sideways. zoom shrinks the layout box, overflow is the backstop. */
.cf-turnstile { margin-bottom: 18px; max-width: 100%; overflow-x: auto; }
@media (max-width: 359px) { .cf-turnstile { zoom: .92; } }

.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-result { margin-top: 16px; font-size: .92rem; min-height: 1em; }
.form-result.success { color: #6ee7a0; }
.form-result.error { color: #ff9ccf; }

/* Age gate. Hidden by default — without JS the page is never blocked. */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 3, 14, .94);
  backdrop-filter: blur(6px);
}
.age-overlay[hidden] { display: none; }
.age-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}
.age-box h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.age-box p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.age-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.age-lock body { overflow: hidden; }


/* Footer disclosures carry <strong>Label:</strong> prefixes — the production
   check K_template_drift looks for them. Long centred text does not read well,
   so the block is left-aligned inside a narrow column. */
.footer__disclosures {
  max-width: 760px;
  margin: 0 auto 12px;
  text-align: left;
}
.footer__disclosures .footer__disclaimer { margin: 0 0 12px; }
.footer__disclaimer strong { color: var(--text-muted); }
.footer__disclaimer a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Flags in the language switch are SVG, not emoji — Windows does not render
   emoji flags. The .lang-selector__flag stub was built for emoji. */
.lang-selector__toggle img,
.lang-selector__option img { display: block; border-radius: 2px; flex-shrink: 0; }
.lang-selector__name { text-transform: none; }
