/* ============================================
   Winderland Casino - Alice in Wonderland theme
   Custom CSS (no frameworks, animations included)
   ============================================ */

:root {
  --ivory: #f7f1e3;
  --parchment: #efe6cf;
  --tea-rose: #e6b8b0;
  --tea-pink: #f3d5cf;
  --sky-alice: #cfe6f1;
  --sky-deep: #9bc6d8;
  --garden: #1f5d3a;
  --garden-deep: #143f27;
  --garden-light: #2f7d50;
  --mint-glow: #aef3c4;
  --brass: #c9a14a;
  --brass-deep: #8c6c25;
  --brass-light: #e9c97a;
  --chocolate: #5b3a22;
  --chocolate-deep: #3a2415;
  --porcelain: #fbf7ee;
  --ruby: #a3142a;
  --ruby-bright: #c61b34;
  --rose-dust: #cda6a0;
  --shadow-soft: 0 12px 30px -10px rgba(58, 36, 21, 0.35);
  --shadow-deep: 0 24px 60px -20px rgba(20, 63, 39, 0.5);
}

/* ----- Base reset + smooth scroll ----- */
html { scroll-behavior: smooth; }
body {
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(207, 230, 241, 0.35), transparent 35%),
    radial-gradient(circle at 80% 90%, rgba(243, 213, 207, 0.35), transparent 40%);
}

/* Selection */
::selection { background: var(--ruby); color: var(--ivory); }

/* Painted parchment texture — used on bonus and support sections */
.parchment-bg {
  position: absolute; inset: 0;
  background-color: var(--ivory); /* fallback while image loads */
  background-image:
    /* warm wash that lifts the parchment toward the brand palette */
    linear-gradient(180deg,
      rgba(247, 241, 227, 0.35) 0%,
      rgba(239, 230, 207, 0.55) 100%),
    url('/images/parchment-texture.webp');
  background-size: cover, 720px 720px;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
  pointer-events: none;
  opacity: 0.95;
  mix-blend-mode: multiply;
}

/* ============================================
   HEADER / STICKY NAV
   ============================================ */
.site-header {
  background: rgba(247, 241, 227, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(31, 93, 58, 0.08);
  box-shadow: 0 4px 18px -10px rgba(20, 63, 39, 0.15);
}
.site-header.is-scrolled {
  background: rgba(31, 93, 58, 0.92);
  border-bottom-color: rgba(201, 161, 74, 0.35);
  box-shadow: 0 6px 24px -10px rgba(20, 63, 39, 0.55);
}
.site-header.is-scrolled .logo-text { color: var(--ivory); }
.site-header.is-scrolled .nav-link { color: var(--ivory); }
.site-header.is-scrolled .nav-link:hover { color: var(--brass-light); }

.logo-mark { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.logo:hover .logo-mark { transform: rotate(15deg) scale(1.05); }
.logo-clock { animation: tick 6s steps(12) infinite; }

@keyframes tick {
  0%, 100% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--ruby); }
.nav-underline {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--ruby));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover .nav-underline { transform: scaleX(1); }

/* ============================================
   CTA BUTTONS - tea party style
   ============================================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--ruby) 0%, var(--ruby-bright) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px -8px rgba(163, 20, 42, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}
.cta-btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: translateX(-150%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(163, 20, 42, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.cta-btn:hover::before { transform: translateX(150%); }
.cta-btn:active { transform: translateY(0); }

.cta-btn--small { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

.cta-btn--ghost {
  background: transparent;
  color: var(--garden-deep);
  border: 1.5px solid var(--garden-deep);
  box-shadow: none;
}
.cta-btn--ghost:hover {
  background: var(--garden-deep); color: var(--ivory);
  box-shadow: 0 10px 24px -8px rgba(20, 63, 39, 0.45);
}
.cta-btn--ghost-light {
  color: var(--ivory); border-color: rgba(247, 241, 227, 0.6);
}
.cta-btn--ghost-light:hover { background: var(--ivory); color: var(--garden-deep); }

.cta-btn--brass {
  background: linear-gradient(135deg, var(--brass-light) 0%, var(--brass) 50%, var(--brass-deep) 100%);
  color: var(--chocolate-deep);
  box-shadow: 0 10px 24px -8px rgba(140, 108, 37, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero { padding-top: 2rem; min-height: 100vh; }

.hero-bg { position: absolute; inset: 0; overflow: hidden; }

/* Painted Wonderland scene + readability gradient on the left where text sits */
.hero-bg__sky {
  position: absolute; inset: 0;
  background-color: var(--ivory); /* fallback before image loads */
  background-image:
    linear-gradient(105deg,
      rgba(247, 241, 227, 0.92) 0%,
      rgba(247, 241, 227, 0.78) 28%,
      rgba(247, 241, 227, 0.45) 52%,
      rgba(247, 241, 227, 0.15) 72%,
      rgba(247, 241, 227, 0) 100%),
    url('/images/hero-bg.webp');
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
}

/* Image already paints garden hills, so the CSS layer is hidden to avoid clashing */
.hero-bg__hills { display: none; }

/* Subtle parchment dot texture sitting on top of the painting */
.hero-bg__parchment {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(91, 58, 34, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* Light vignette to push focus to the centre */
.hero-bg__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(58, 36, 21, 0.12) 100%);
}

/* On tablet and mobile: image moves to bottom, top is washed lighter so the
   stacked headline stays comfortably readable above the painted scene */
@media (max-width: 1023px) {
  .hero-bg__sky {
    background-image:
      linear-gradient(180deg,
        rgba(247, 241, 227, 0.95) 0%,
        rgba(247, 241, 227, 0.7) 35%,
        rgba(247, 241, 227, 0.2) 70%,
        rgba(247, 241, 227, 0) 100%),
      url('/images/hero-bg.webp');
    background-position: center top, center bottom;
  }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(201, 161, 74, 0.4);
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--garden-deep);
  box-shadow: 0 4px 14px -6px rgba(20, 63, 39, 0.2);
}
.hero-eyebrow i { color: var(--brass); }

.hero-title { text-shadow: 0 2px 0 rgba(255, 255, 255, 0.4); }

/* Floating painted cutouts (replace old FA white circles) */
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floater {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 14px 22px rgba(58, 36, 21, 0.35));
  will-change: transform;
}

/* Magical objects (square cutouts) */
.floater--watch  { top:  8%;  left: 3%;   width: 110px; animation: drift 8s  ease-in-out infinite; }
.floater--key    { top: 68%;  left: 5%;   width:  88px; animation: drift 10s ease-in-out infinite -1.5s; }
.floater--teacup { top: 18%;  right: 4%;  width: 110px; animation: drift 9s  ease-in-out infinite -2.4s; }
.floater--coin   { top: 78%;  right: 22%; width:  72px; animation: drift 7s  ease-in-out infinite -3s; }

/* Painted playing cards (portrait) */
.floater--card-ace   { top: 36%;  left: -1%;  width: 96px; animation: drift 11s ease-in-out infinite -1s;   transform-origin: center; }
.floater--card-queen { top:  6%;  right: 32%; width: 78px; animation: drift 12s ease-in-out infinite -2.2s; }
.floater--card-king  { top: 2%;   left: 42%;  width: 78px; animation: drift 13s ease-in-out infinite -3.5s; }
.floater--card-jack  { top: 56%;  right: 2%;  width: 92px; animation: drift 10s ease-in-out infinite -4s; }

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  50%      { transform: translate3d(0, -18px, 0) rotate(3deg); }
}

/* Hero bonus banner */
.hero-bonus { box-shadow: 0 16px 36px -12px rgba(58, 36, 21, 0.4); }

/* ============================================
   CLOCK PORTAL VISUAL — painted illustration
   ============================================ */
.clock-portal {
  position: relative;
  width: 100%; max-width: 520px;
  aspect-ratio: 1;
  margin: 0 auto;
  isolation: isolate;
}

/* Soft mint-gold halo behind the watch — slow breathing pulse */
.clock-portal__halo {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(174, 243, 196, 0.55) 0%,
      rgba(201, 161, 74, 0.25) 35%,
      rgba(230, 184, 176, 0.12) 60%,
      transparent 80%);
  filter: blur(36px);
  z-index: 0;
  animation: portal-breathe 5s ease-in-out infinite;
}
@keyframes portal-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

/* The painted illustration itself — gentle drift with a brass-warm drop shadow */
.clock-portal__art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(58, 36, 21, 0.35));
  animation: portal-drift 9s ease-in-out infinite;
}
@keyframes portal-drift {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50%      { transform: translateY(-12px) rotate(0.6deg); }
}

/* Tiny gold sparkles drifting around the watch */
.clock-portal__sparkles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
}
.spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brass-light) 0%, var(--brass) 60%, transparent 100%);
  box-shadow: 0 0 12px rgba(233, 201, 122, 0.9);
  opacity: 0;
  animation: spark-twinkle 4s ease-in-out infinite;
}
.spark--1 { top: 8%;  left: 12%; animation-delay: 0s;   }
.spark--2 { top: 22%; right: 8%; animation-delay: 0.7s; width: 4px; height: 4px; }
.spark--3 { top: 60%; left: 6%;  animation-delay: 1.4s; }
.spark--4 { bottom: 10%; right: 18%; animation-delay: 2.1s; width: 5px; height: 5px; }
.spark--5 { top: 45%; right: 28%; animation-delay: 2.8s; width: 3px; height: 3px; }
@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* ============================================
   SECTION HEAD COMMON
   ============================================ */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(31, 93, 58, 0.07);
  border: 1px solid rgba(31, 93, 58, 0.2);
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--garden-deep);
}
.section-eyebrow i { color: var(--brass); }
.section-eyebrow--light {
  background: rgba(247, 241, 227, 0.1);
  border-color: rgba(247, 241, 227, 0.3);
  color: var(--ivory);
}
.section-eyebrow--light i { color: var(--brass-light); }

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--garden-deep);
  margin-top: 1rem;
  letter-spacing: -0.01em;
}
.section-title--light { color: var(--ivory); }
.section-title--left  { text-align: left; }

.section-lead {
  margin-top: 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(58, 36, 21, 0.78);
  line-height: 1.6;
}
.section-lead--light { color: rgba(247, 241, 227, 0.85); }

/* ============================================
   BONUS CARDS (playing-card style)
   ============================================ */
.bonus-card {
  position: relative;
  background: var(--porcelain);
  border-radius: 22px;
  padding: 2rem 2rem 2rem 2rem;
  border: 2px solid rgba(201, 161, 74, 0.35);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: 360px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.bonus-card::after {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(201, 161, 74, 0.35);
  border-radius: 18px;
  pointer-events: none;
}
.bonus-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: var(--shadow-deep); }

.bonus-card--feature {
  background: linear-gradient(135deg, var(--porcelain) 0%, var(--tea-pink) 100%);
  border-color: var(--ruby);
}
.bonus-card--alt {
  background: linear-gradient(135deg, var(--ivory) 0%, var(--sky-alice) 100%);
  border-color: var(--garden-deep);
}

.bonus-card__corner {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  font-family: 'Cinzel', serif; font-weight: 700;
  color: var(--ruby);
  z-index: 2;
}
.bonus-card--alt .bonus-card__corner { color: var(--garden-deep); }
.bonus-card__corner--tl { top: 1rem; left: 1.2rem; font-size: 1.4rem; }
.bonus-card__corner--br { bottom: 1rem; right: 1.2rem; font-size: 1.4rem; transform: rotate(180deg); }
.bonus-card__corner i { font-size: 0.9rem; margin-top: 0.1rem; }
.bonus-card__corner .rank { line-height: 1; }

.bonus-card__suit-bg {
  position: absolute;
  font-size: 18rem;
  color: rgba(163, 20, 42, 0.07);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.bonus-card__suit-bg--dark { color: rgba(20, 63, 39, 0.07); }

.bonus-card__kicker {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--brass-deep);
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.bonus-card__title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--ruby);
  margin-bottom: 0.6rem;
}
.bonus-card__title--alt { color: var(--garden-deep); }
.bonus-card__plus {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--chocolate);
  margin-bottom: 1.2rem;
}
.bonus-card__list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.bonus-card__list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.95rem; color: var(--chocolate);
}
.bonus-card__list i { color: var(--garden-light); margin-top: 0.25rem; }

/* ----- Invite cards ----- */
.invite-card {
  background: var(--porcelain);
  border: 1.5px solid rgba(201, 161, 74, 0.3);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px -8px rgba(58, 36, 21, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.invite-card::before {
  content: ""; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(174, 243, 196, 0.45), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.invite-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.invite-card:hover::before { opacity: 1; }
.invite-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--brass-light), var(--brass));
  color: var(--chocolate-deep);
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}
.invite-card h4 { font-family: 'Cinzel', serif; color: var(--garden-deep); font-size: 1.05rem; margin-bottom: 0.35rem; }
.invite-card p { color: var(--chocolate); font-size: 0.9rem; line-height: 1.55; }

/* ============================================
   GAMES SECTION
   ============================================ */
.section-games { color: var(--ivory); }

/* Painted Wonderland garden + tinted dark overlay for text/card legibility */
.garden-bg {
  position: absolute; inset: 0;
  background-color: var(--garden-deep); /* fallback while image loads */
  background-image:
    linear-gradient(180deg,
      rgba(20, 63, 39, 0.72) 0%,
      rgba(20, 63, 39, 0.4) 28%,
      rgba(20, 63, 39, 0.32) 60%,
      rgba(20, 63, 39, 0.78) 100%),
    url('/images/garden-bg.webp');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* Subtle gold-dust speckle on top of the painting */
.garden-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(201, 161, 74, 0.18) 1px, transparent 1.5px),
    radial-gradient(rgba(247, 241, 227, 0.05) 1px, transparent 1px);
  background-size: 64px 64px, 30px 30px;
  background-position: 0 0, 16px 16px;
  opacity: 0.55;
  mix-blend-mode: screen;
}

/* Tabs styled as cards */
.tabs--cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tab-card {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: rgba(247, 241, 227, 0.08);
  color: var(--ivory);
  border: 1.5px solid rgba(247, 241, 227, 0.25);
  border-radius: 14px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-card i { color: var(--brass-light); }
.tab-card:hover {
  background: rgba(247, 241, 227, 0.15);
  border-color: var(--brass-light);
  transform: translateY(-2px);
}
.tab-card.is-active {
  background: var(--ivory);
  color: var(--garden-deep);
  border-color: var(--brass);
  box-shadow: 0 8px 22px -8px rgba(201, 161, 74, 0.6);
}
.tab-card.is-active i { color: var(--ruby); }

/* Tab panels */
.tab-panel { margin-top: 2.5rem; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active { display: block; animation: panel-in 0.45s ease both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Game cards */
.game-card {
  perspective: 1000px;
  display: flex;
  height: 100%;
}
.game-card__inner {
  position: relative;
  background: linear-gradient(180deg, var(--porcelain) 0%, var(--ivory) 100%);
  border-radius: 18px;
  padding: 1.25rem;
  border: 1.5px solid rgba(201, 161, 74, 0.45);
  box-shadow: var(--shadow-soft);
  min-height: 300px;
  flex: 1;
  width: 100%;
  display: flex; flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.game-card__inner::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(201, 161, 74, 0.3);
  border-radius: 14px;
  pointer-events: none;
}
.game-card:hover .game-card__inner {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 22px 50px -16px rgba(20, 63, 39, 0.45), 0 0 0 1px var(--brass);
  border-color: var(--ruby);
}
.game-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.9rem;
  position: relative; z-index: 2;
}
.game-card__tag {
  background: var(--ruby);
  color: var(--ivory);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.game-card__icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brass-light), var(--brass));
  color: var(--chocolate-deep);
  font-size: 1rem;
}
.game-card__art {
  position: relative;
  height: 130px;
  margin: 0 -0.5rem 0.8rem -0.5rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(174, 243, 196, 0.4), transparent 60%),
    linear-gradient(135deg, var(--tea-pink) 0%, var(--sky-alice) 100%);
  border-radius: 12px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* When the game has a real thumbnail, the image fills the art box */
.game-card__art--image { background: var(--chocolate-deep); }
.game-card__art--image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.game-card:hover .game-card__art--image img {
  transform: scale(1.08);
}
.game-card__art--image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 50%,
    rgba(20, 63, 39, 0.18) 100%);
  pointer-events: none;
}
.suit { position: absolute; font-size: 1.6rem; opacity: 0.5; transition: transform 0.5s ease, opacity 0.5s ease; }
.suit--heart   { top: 12%; left: 14%; color: var(--ruby); }
.suit--diamond { top: 14%; right: 14%; color: var(--ruby); }
.suit--spade   { bottom: 14%; left: 18%; color: var(--garden-deep); }
.suit--club    { bottom: 10%; right: 18%; color: var(--garden-deep); }
.game-card:hover .suit { transform: scale(1.2) rotate(8deg); opacity: 0.9; }

.game-card__body { flex: 1; }
.game-card__title { font-family: 'Cinzel', serif; font-size: 1.05rem; color: var(--garden-deep); margin-bottom: 0.25rem; }
.game-card__rtp { font-size: 0.85rem; color: var(--chocolate); }
.game-card__rtp strong { color: var(--ruby); }

.game-card__play {
  margin-top: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--garden-deep);
  color: var(--ivory);
  border-radius: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.game-card__play:hover {
  background: var(--ruby);
  box-shadow: 0 8px 18px -6px rgba(163, 20, 42, 0.5);
}

/* ============================================
   VIP SECTION
   ============================================ */
.section-vip {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--parchment) 100%);
}
.vip-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(140, 108, 37, 0.1) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: 0.6;
}
.vip-crown {
  display: inline-flex; align-items: center; justify-content: center;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brass-light), var(--brass) 60%, var(--brass-deep));
  color: var(--ivory);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  box-shadow: 0 12px 28px -8px rgba(140, 108, 37, 0.5);
  animation: crown-shimmer 4s ease-in-out infinite;
}
@keyframes crown-shimmer {
  0%, 100% { box-shadow: 0 12px 28px -8px rgba(140, 108, 37, 0.5), 0 0 0 0 rgba(174, 243, 196, 0); }
  50%      { box-shadow: 0 12px 28px -8px rgba(140, 108, 37, 0.5), 0 0 24px 0 rgba(174, 243, 196, 0.5); }
}

.vip-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}
.vip-tier {
  background: var(--porcelain);
  border: 1.5px solid rgba(201, 161, 74, 0.4);
  border-radius: 14px;
  padding: 1rem 1rem 1rem 3.4rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 16px -8px rgba(58, 36, 21, 0.2);
}
.vip-tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.vip-tier__rank {
  position: absolute;
  left: 0.8rem; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--garden-deep);
  color: var(--brass-light);
  border-radius: 50%;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
}
.vip-tier__name {
  display: block;
  font-family: 'Cinzel', serif;
  color: var(--garden-deep);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.vip-tier__perk {
  display: block;
  font-size: 0.85rem;
  color: var(--chocolate);
}
.vip-tier--gold { background: linear-gradient(135deg, var(--porcelain) 0%, var(--brass-light) 100%); border-color: var(--brass); }
.vip-tier--gold .vip-tier__rank { background: var(--brass-deep); color: var(--ivory); }
.vip-tier--ruby { background: linear-gradient(135deg, var(--porcelain) 0%, var(--tea-pink) 100%); border-color: var(--ruby); }
.vip-tier--ruby .vip-tier__rank { background: var(--ruby); color: var(--ivory); }

/* ============================================
   PAYMENTS
   ============================================ */
.section-payments { background: var(--ivory); }
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.payment-method {
  background: var(--porcelain);
  border: 1.5px solid rgba(201, 161, 74, 0.4);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.payment-method:hover { transform: translateY(-3px); border-color: var(--brass); box-shadow: var(--shadow-soft); }
.payment-method i { font-size: 2rem; color: var(--garden-deep); }
.payment-method span { font-size: 0.85rem; font-weight: 500; color: var(--chocolate); }

.payments-table {
  background: var(--porcelain);
  border: 1.5px solid rgba(201, 161, 74, 0.35);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.payments-table__head, .payments-table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  align-items: center;
}
.payments-table__head {
  background: var(--garden-deep);
  color: var(--ivory);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.payments-table__row {
  border-top: 1px solid rgba(201, 161, 74, 0.25);
  font-size: 0.9rem;
  color: var(--chocolate);
  transition: background 0.25s ease;
}
.payments-table__row:hover { background: rgba(174, 243, 196, 0.15); }
.payments-table__row > div:first-child { display: flex; align-items: center; gap: 0.7rem; color: var(--garden-deep); font-weight: 500; }
.payments-table__row i { font-size: 1.4rem; }

@media (max-width: 720px) {
  .payments-table__head { display: none; }
  .payments-table__row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
  }
  .payments-table__row > div:first-child { grid-column: 1 / -1; }
}

/* ============================================
   TRUST SECTION
   ============================================ */
.section-trust {
  background:
    linear-gradient(180deg, var(--parchment) 0%, var(--ivory) 100%);
}
.trust-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(31, 93, 58, 0.07) 1px, transparent 1px),
    radial-gradient(rgba(201, 161, 74, 0.07) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 20px 20px;
  opacity: 0.7;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.trust-card {
  background: var(--porcelain);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1.5px solid rgba(201, 161, 74, 0.35);
  box-shadow: 0 6px 18px -10px rgba(58, 36, 21, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.trust-card::before {
  content: ""; position: absolute; bottom: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(174, 243, 196, 0.4), transparent 70%);
  border-radius: 50%;
  opacity: 0; transition: opacity 0.4s ease;
}
.trust-card:hover { transform: translateY(-4px); border-color: var(--brass); box-shadow: var(--shadow-soft); }
.trust-card:hover::before { opacity: 1; }
.trust-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--garden-deep), var(--garden-light));
  color: var(--brass-light);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.trust-card h3 {
  font-family: 'Cinzel', serif;
  color: var(--garden-deep);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.trust-card p { color: var(--chocolate); line-height: 1.6; font-size: 0.95rem; }

/* ============================================
   STEPS / HOW IT WORKS
   ============================================ */
.section-how { background: var(--porcelain); }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 0;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--ivory);
  border: 1.5px solid rgba(201, 161, 74, 0.4);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ruby), var(--ruby-bright));
  color: var(--ivory);
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px -6px rgba(163, 20, 42, 0.5);
  flex-shrink: 0;
}
.step h3 { font-family: 'Cinzel', serif; color: var(--garden-deep); font-size: 1.15rem; margin-bottom: 0.45rem; }
.step p  { color: var(--chocolate); font-size: 0.95rem; line-height: 1.55; }

/* Stacked variant — used when the step list sits next to a side illustration.
   Switches each step to a horizontal row (number + content), left aligned. */
.steps--stacked {
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 560px;
}
.steps--stacked .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  text-align: left;
  padding: 1.25rem 1.5rem;
}
.steps--stacked .step__num {
  margin-bottom: 0;
  margin-top: 0.15rem;
}
.steps--stacked .step h3 { margin-top: 0; margin-bottom: 0.3rem; }

/* White Rabbit figure */
.rabbit-figure {
  position: relative;
  text-align: center;
  margin: 0;
}
.rabbit-figure__halo {
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(
    ellipse at center,
    rgba(174, 243, 196, 0.45) 0%,
    rgba(230, 184, 176, 0.25) 35%,
    transparent 70%
  );
  filter: blur(40px);
  z-index: 0;
  animation: halo-breathe 6s ease-in-out infinite;
}
@keyframes halo-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
.rabbit-figure img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(58, 36, 21, 0.25));
  animation: rabbit-idle 7s ease-in-out infinite;
  z-index: 1;
}
@keyframes rabbit-idle {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50%      { transform: translateY(-10px) rotate(0.8deg); }
}
.rabbit-caption {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
}
.rabbit-caption__quote {
  display: block;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--chocolate-deep);
  letter-spacing: 0.01em;
}
.rabbit-caption__byline {
  display: block;
  font-size: 0.85rem;
  color: var(--chocolate);
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* On mobile keep the rabbit a bit smaller so the page doesn't get top-heavy */
@media (max-width: 1023px) {
  .rabbit-figure img { max-width: 320px; }
  .steps--stacked { max-width: none; margin: 0 auto; }
}

/* ============================================
   SUPPORT / FAQ
   ============================================ */
.section-support { background: var(--ivory); }
.support-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--porcelain);
  border: 1.5px solid rgba(201, 161, 74, 0.35);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.support-card:hover { border-color: var(--brass); box-shadow: 0 6px 16px -8px rgba(58, 36, 21, 0.25); }
.support-card i {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--garden-deep);
  color: var(--brass-light);
  border-radius: 10px;
  font-size: 1rem;
  flex-shrink: 0;
}
.support-card h4 { font-family: 'Cinzel', serif; color: var(--garden-deep); margin-bottom: 0.15rem; font-size: 1rem; }
.support-card p, .support-card a { color: var(--chocolate); font-size: 0.92rem; }
.support-card a:hover { color: var(--ruby); }

.faq { display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item {
  background: var(--porcelain);
  border: 1.5px solid rgba(201, 161, 74, 0.35);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] {
  border-color: var(--brass);
  box-shadow: 0 8px 20px -8px rgba(58, 36, 21, 0.3);
}
.faq-item summary {
  font-family: 'Cinzel', serif;
  color: var(--garden-deep);
  cursor: pointer;
  position: relative;
  padding-right: 2rem;
  font-size: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--brass-deep);
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); color: var(--ruby); }
.faq-item p { margin-top: 0.75rem; color: var(--chocolate); line-height: 1.6; }

/* ============================================
   FINAL CTA
   ============================================ */
.section-final { overflow: hidden; }
.final-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(174, 243, 196, 0.25), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(201, 161, 74, 0.25), transparent 60%),
    linear-gradient(135deg, var(--garden-deep) 0%, var(--chocolate-deep) 100%);
}
.final-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(247, 241, 227, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background:
    linear-gradient(180deg, var(--garden-deep) 0%, var(--chocolate-deep) 100%);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(247, 241, 227, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  opacity: 0.6;
}

.footer-cards {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: center; gap: 1.5rem;
  transform: translateY(-50%);
}
.footer-card {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 80px;
  background: var(--porcelain);
  border: 2px solid var(--brass);
  border-radius: 8px;
  font-size: 1.4rem;
  box-shadow: var(--shadow-soft);
}
.footer-card.heart   { color: var(--ruby); transform: rotate(-8deg); }
.footer-card.spade   { color: var(--chocolate-deep); transform: rotate(-2deg); }
.footer-card.diamond { color: var(--ruby); transform: rotate(4deg); }
.footer-card.club    { color: var(--garden-deep); transform: rotate(10deg); }

.footer-link {
  position: relative;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-link:hover { color: var(--brass-light); padding-left: 0.4rem; }
.footer-link::before {
  content: "›";
  position: absolute; left: -0.6rem; top: 0;
  opacity: 0; transition: opacity 0.25s ease;
  color: var(--brass-light);
}
.footer-link:hover::before { opacity: 1; }

.social-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(247, 241, 227, 0.08);
  border: 1px solid rgba(247, 241, 227, 0.2);
  color: var(--ivory);
  transition: all 0.3s ease;
}
.social-badge:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--chocolate-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -6px rgba(201, 161, 74, 0.5);
}

.responsible-band {
  background: rgba(247, 241, 227, 0.06);
  border: 1px solid rgba(247, 241, 227, 0.15);
}
.rg-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--ruby);
  color: var(--ivory);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.rg-link { color: var(--brass-light); transition: color 0.25s ease; }
.rg-link:hover { color: var(--ivory); }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 2px solid var(--ivory);
  border-radius: 50%;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ivory);
}

/* ============================================
   PROSE / SINGLE PAGE
   ============================================ */
.prose {
  color: var(--chocolate);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.7;
}
.prose h2, .prose h3, .prose h4 {
  font-family: 'Cinzel', serif;
  color: var(--garden-deep);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.35rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose strong { color: var(--chocolate-deep); font-weight: 600; }
.prose a { color: var(--ruby); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ruby-bright); }
.prose blockquote {
  border-left: 4px solid var(--brass);
  padding-left: 1rem;
  font-style: italic;
  color: var(--chocolate-deep);
  margin: 1.5rem 0;
}

/* ============================================
   RESPONSIVE BITS
   ============================================ */
@media (max-width: 1023px) {
  /* On tablet keep only the 4 strongest floaters so the hero stays uncluttered */
  .floater--card-king, .floater--card-queen, .floater--coin, .floater--key { display: none; }
  .clock-portal { max-width: 380px; margin-top: 2rem; }
}
@media (max-width: 640px) {
  .floater--watch  { width: 70px; }
  .floater--teacup { width: 70px; }
  .floater--card-ace  { width: 60px; }
  .floater--card-jack { width: 56px; }
  .hero { padding-bottom: 4rem; }
  .clock-portal { max-width: 280px; }
  .footer-card { width: 44px; height: 64px; font-size: 1.1rem; }
}

/* ============================================
   ACCESSIBILITY / MOTION SAFETY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .clock-hand--hour, .clock-hand--minute { animation: none !important; }
}

/* Focus rings */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Reveal-on-scroll (used by JS IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
