/* ==========================================================================
   Y1 Game — Core design system (dark)
   Shared across every page: type, shell, rails, header, footer, buttons,
   panels, game cards, marquee, forms, motion.
   Page-specific rules live in assets/css/pages/*.css.

   Contents
     01 · Self-hosted fonts (optional)
     02 · Base + typography
     03 · Shell, rails & section architecture
     04 · Eyebrows, section heads & rules
     05 · Buttons
     06 · Badges, chips, seals
     07 · Panels & cards
     08 · Game cards
     09 · Marquee ticker
     10 · Stats & counters
     11 · Header & navigation
     12 · Mobile drawer
     13 · Bonus bar
     14 · Footer
     15 · Page hero (inner pages)
     16 · Prose (legal / long copy)
     17 · Accordion
     18 · Forms
     19 · Lightbox
     20 · Preloader
     21 · Motion & reveal
     22 · Utilities
   ========================================================================== */


/* ==========================================================================
   01 · SELF-HOSTED FONTS
   Uncomment after dropping the WOFF2 files into assets/fonts/.
   See assets/fonts/README.txt for the exact filenames and the three steps.
   ==========================================================================

@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-garamond-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cinzel';             src: url('../fonts/cinzel-600.woff2')             format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope';            src: url('../fonts/manrope-400.woff2')            format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope';            src: url('../fonts/manrope-600.woff2')            format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope';            src: url('../fonts/manrope-800.woff2')            format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

   ========================================================================== */


/* ==========================================================================
   02 · BASE + TYPOGRAPHY
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--ink-muted);
  background: var(--surface-base);
  position: relative;
}

/* Fixed atmosphere behind every page: one ruby glow, one gold glow, and a
   very faint champagne grain so flat black never looks dead */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 640px at 84% -8%, rgba(212, 175, 55, 0.10), transparent 62%),
    radial-gradient(980px 620px at -10% 6%, rgba(155, 17, 30, 0.20), transparent 60%),
    var(--surface-base);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.14; }
h4 { font-size: var(--fs-h4); line-height: 1.24; font-weight: 600; }

.display-mega {
  font-size: var(--fs-mega);
  line-height: 0.92;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.66;
  color: var(--ink-muted);
}

.muted { color: var(--ink-soft); }
.fine  { font-size: var(--fs-xs); line-height: 1.62; color: var(--ink-soft); }

em.gold-italic {
  font-style: italic;
  color: var(--gold);
}

strong { font-weight: 700; color: var(--ink); }

/* Inline link: gold rule draws in under ruby-bright type */
.link-ruby {
  color: var(--gold-bright);
  font-weight: 600;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--t-base) var(--ease-out), color var(--t-fast) linear;
}
.link-ruby:hover { background-size: 100% 1px; color: var(--gold); }


/* ==========================================================================
   03 · SHELL, RAILS & SECTION ARCHITECTURE
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}

.shell--narrow { max-width: var(--shell-narrow); }

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight { padding-block: calc(var(--section-y) * 0.62); }

/* Lifted band — the dark equivalent of an alternating tint. A warm wash
   plus a gold edge does the work a champagne fill did on light. */
.section--tint {
  background:
    radial-gradient(900px 420px at 80% 0%, rgba(212, 175, 55, 0.07), transparent 64%),
    radial-gradient(760px 420px at 4% 100%, rgba(155, 17, 30, 0.16), transparent 62%),
    linear-gradient(180deg, var(--surface-tint) 0%, #191512 50%, var(--surface-tint) 100%);
  box-shadow: inset 0 1px 0 var(--line-gold-faint), inset 0 -1px 0 var(--line-gold-faint);
}

/* Deepest band, washed with ruby */
.section--dark {
  background: var(--surface-deep);
  color: var(--ink-muted);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--ink); }

@supports (clip-path: polygon(0 0, 1px 0, 1px 1px, 0 1px)) {
  @media (min-width: 860px) {
    .seam-both {
      clip-path: polygon(0 2.4vw, 100% 0, 100% calc(100% - 2.4vw), 0 100%);
      padding-block: calc(var(--section-y) + 1.4vw);
    }
    .seam-top {
      clip-path: polygon(0 2.4vw, 100% 0, 100% 100%, 0 100%);
      padding-block: calc(var(--section-y) + 1.4vw) var(--section-y);
    }
    .seam-bottom {
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.4vw), 0 100%);
      padding-block: var(--section-y) calc(var(--section-y) + 1.4vw);
    }
    /* clip-path removes the inset rules, so draw the seam with a border */
    .section--tint.seam-both,
    .section--tint.seam-top,
    .section--tint.seam-bottom { box-shadow: none; }
  }
}

/* Decorative full-height gold rails aligned to the shell edges */
.rails {
  position: fixed;
  inset: 0;
  z-index: var(--z-rails);
  pointer-events: none;
  display: none;
}
.rails span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
      transparent 0%,
      var(--line-gold-faint) 12%,
      var(--line-gold-faint) 88%,
      transparent 100%);
}
.rails span:nth-child(1) { left: max(var(--gutter), calc(50% - (var(--shell) / 2) + var(--gutter))); }
.rails span:nth-child(2) { right: max(var(--gutter), calc(50% - (var(--shell) / 2) + var(--gutter))); }

@media (min-width: 1180px) { .rails { display: block; } }

/* Hairline divider */
.rule-gold {
  height: 1px;
  border: 0;
  background: var(--rule-gold);
  opacity: 0.9;
}

/* Big outlined watermark numeral */
.wm-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 3rem + 8vw, 11rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-gold);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}


/* ==========================================================================
   04 · EYEBROWS, SECTION HEADS & RULES
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
}
.eyebrow--diamond::after {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--ruby-bright);
  transform: rotate(45deg);
}
.eyebrow--center { justify-content: center; }
.eyebrow--invert { color: var(--gold); }

.sec-head {
  display: grid;
  gap: var(--sp-4);
  max-width: 62ch;
  margin-bottom: clamp(2.2rem, 1rem + 3vw, 3.75rem);
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.sec-head--wide { max-width: 78ch; }

.sec-head__title { position: relative; }

/* Gold accent line that draws itself in when the heading enters view */
.draw-line {
  display: block;
  height: 2px;
  width: min(180px, 42%);
  margin-top: var(--sp-4);
  background: linear-gradient(90deg, var(--gold) 0%, var(--ruby-bright) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-reveal) var(--ease-out) 180ms;
}
.sec-head--center .draw-line { margin-inline: auto; transform-origin: center; }
.is-in .draw-line,
.draw-line.is-in { transform: scaleX(1); }

/* Head with an action on the right */
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: clamp(2rem, 1rem + 2.6vw, 3.25rem);
}
.head-row .sec-head { margin-bottom: 0; }


/* ==========================================================================
   05 · BUTTONS
   ========================================================================== */

.btn {
  --btn-py: 1.02rem;
  --btn-px: 2.1rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out);
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Gold shimmer sweep — shared by every filled button */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg,
      transparent 32%,
      rgba(247, 231, 206, 0.34) 46%,
      rgba(255, 255, 255, 0.62) 52%,
      rgba(247, 231, 206, 0.34) 58%,
      transparent 72%);
  transform: translateX(-120%);
  transition: transform 900ms var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateX(120%); }

.btn__icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  font-size: 1.05em;
}

/* — Ruby: the primary action ---------------------------------------------- */
.btn--ruby {
  background: var(--ruby-plate);
  color: #FFFFFF;
  box-shadow: var(--shadow-ruby), inset 0 0 0 1px rgba(212, 175, 55, 0.5);
}
.btn--ruby:hover {
  box-shadow: 0 26px 56px -18px rgba(196, 30, 58, 0.8), inset 0 0 0 1px rgba(212, 175, 55, 0.95);
}

/* Soft pulsing halo, primary CTAs only */
.btn--pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.45);
  animation: pulseRing 2.8s var(--ease-out) infinite;
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(196, 30, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
}

/* — Gold: secondary emphasis ---------------------------------------------- */
.btn--gold {
  background: var(--gold-plate);
  color: var(--ink-invert);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { box-shadow: 0 28px 58px -20px rgba(212, 175, 55, 0.75); }

/* — Plate: raised dark ----------------------------------------------------- */
.btn--dark {
  background: var(--surface-lift);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-gold), var(--shadow-sm);
}
.btn--dark:hover { background: var(--surface-lift-2); box-shadow: inset 0 0 0 1px var(--line-gold-strong), var(--shadow-md); }

/* — Ghost / outline -------------------------------------------------------- */
.btn--ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(212, 175, 55, 0.12);
  box-shadow: inset 0 0 0 1px var(--line-gold-strong);
}
/* Kept for markup written against the light build */
.btn--ghost.on-dark { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-gold); }
.btn--ghost.on-dark:hover { background: rgba(212, 175, 55, 0.14); }

/* — Telegram: brand-coloured, used wherever a channel CTA sits beside the
   primary Play Now action ------------------------------------------------- */
.btn--telegram {
  background: rgba(38, 165, 228, 0.1);
  color: #EAF6FE;
  box-shadow: inset 0 0 0 1px rgba(38, 165, 228, 0.5);
}
.btn--telegram:hover {
  background: rgba(38, 165, 228, 0.18);
  box-shadow: inset 0 0 0 1px rgba(38, 165, 228, 0.85), 0 16px 34px -18px rgba(38, 165, 228, 0.6);
}
.btn--telegram .btn__icon { width: 1.3em; height: 1.3em; font-size: 1.05em; }
.btn--telegram .btn__icon svg { width: 100%; height: 100%; }

/* Quiet inline Telegram link — sits just under a primary button row
   ("near the container button area") without competing with it */
.tg-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color var(--t-fast) linear, gap var(--t-base) var(--ease-out);
}
.tg-inline svg { width: 22px; height: 22px; flex-shrink: 0; }
.tg-inline span { border-bottom: 1px solid transparent; }
.tg-inline:hover { color: var(--ink); gap: 0.75rem; }
.tg-inline:hover span { border-color: var(--line-gold-strong); }

/* — Sizes ------------------------------------------------------------------ */
.btn--lg { --btn-py: 1.22rem; --btn-px: 2.6rem; font-size: 0.84rem; }
.btn--sm { --btn-py: 0.72rem; --btn-px: 1.4rem; font-size: 0.7rem; letter-spacing: 0.12em; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

/* Quiet text link with an arrow that slides */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line-gold);
  transition: color var(--t-fast) linear, border-color var(--t-fast) linear;
}
.link-arrow span { transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow.on-dark { color: var(--ink); }
.link-arrow.on-dark:hover { color: var(--gold); border-color: var(--gold); }


/* ==========================================================================
   06 · BADGES, CHIPS, SEALS
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(212, 175, 55, 0.10);
  color: var(--gold-bright);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--line-gold);
}
.chip--ruby {
  background: rgba(196, 30, 58, 0.14);
  color: #F09AA6;
  box-shadow: inset 0 0 0 1px rgba(196, 30, 58, 0.4);
}
.chip--dark {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--line-gold);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* The ₹10,000 wax-seal medallion */
.seal {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(112px, 9vw, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ruby-plate);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-ruby), inset 0 0 0 1px rgba(212, 175, 55, 0.65);
}
.seal::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.6);
}
.seal__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1;
  color: var(--gold-soft);
}
.seal__label {
  font-family: var(--font-label);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Ribbon flag used on featured cards */
.ribbon {
  position: absolute;
  top: 0.85rem;
  left: 0;
  z-index: 3;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  background: var(--ruby);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.9);
}


/* ==========================================================================
   07 · PANELS & CARDS
   ========================================================================== */

.panel {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0) 100%),
    var(--surface-lift);
  box-shadow: inset 0 0 0 1px var(--line-gold-faint), var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out);
}
.panel--hover:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px var(--line-gold-strong), var(--shadow-md);
}
.panel--flat {
  background: var(--surface-lift);
}
.panel--dark {
  background: var(--surface-deep);
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 1px var(--line-gold), var(--shadow-lg);
}
.panel--dark h3,
.panel--dark h4 { color: var(--ink); }

/* Gold corner brackets — the signature detail on feature panels */
.panel--bracket::before,
.panel--bracket::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  opacity: 0.7;
  transition: width var(--t-base) var(--ease-out), height var(--t-base) var(--ease-out), opacity var(--t-base) linear;
}
.panel--bracket::before {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 4px;
}
.panel--bracket::after {
  right: 12px;
  bottom: 12px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 4px;
}
.panel--bracket:hover::before,
.panel--bracket:hover::after { width: 30px; height: 30px; opacity: 1; }

/* Icon medallion inside feature cards */
.ficon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.22), rgba(255, 255, 255, 0.03));
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  margin-bottom: var(--sp-5);
  transition: transform var(--t-base) var(--ease-spring), color var(--t-base) linear;
}
.ficon svg { width: 26px; height: 26px; }
.panel:hover .ficon { transform: rotate(-6deg) scale(1.06); }
.ficon--dark {
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.2), rgba(255, 255, 255, 0.04));
  color: var(--gold);
}

/* Generic auto-fit grid */
.grid {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* Quote card */
.quote {
  display: grid;
  gap: var(--sp-4);
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.7;
}
.quote__text {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.44;
  color: var(--ink);
}
.quote__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.quote__who b {
  color: var(--gold);
  font-weight: 700;
}
.quote__stars { color: var(--gold); letter-spacing: 0.12em; }


/* ==========================================================================
   08 · GAME CARDS
   ========================================================================== */

.gcard {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: block;
  border-radius: var(--r-md);
  background: var(--surface-lift);
  box-shadow: inset 0 0 0 1px var(--line-ink), var(--shadow-xs);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), background-color 260ms linear;
  will-change: transform;
}
.gcard:hover {
  background: var(--surface-lift-2);
  box-shadow: inset 0 0 0 1px var(--line-gold-strong), var(--shadow-md), 0 0 42px -18px rgba(212, 175, 55, 0.5);
}

.gcard__frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 0 0;
  /* Matches the native 211 × 260 game art, so nothing is cropped away */
  aspect-ratio: 211 / 260;
  background: var(--surface-deep);
}
.gcard__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms var(--ease-out), filter 420ms linear;
}
.gcard:hover .gcard__frame img { transform: scale(1.07); }

/* Sheen sweep across the art on hover */
.gcard__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.34) 50%, transparent 62%);
  transform: translateX(-110%);
  transition: transform 780ms var(--ease-out);
  pointer-events: none;
}
.gcard:hover .gcard__frame::after { transform: translateX(110%); }

.gcard__play {
  position: absolute;
  inset: auto 0.7rem 0.7rem auto;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ruby-plate);
  color: #fff;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(212, 175, 55, 0.7);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-spring);
}
.gcard:hover .gcard__play,
.gcard:focus-visible .gcard__play { opacity: 1; transform: translateY(0) scale(1); }

.gcard__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  /* Fixed height keeps grid rows aligned when a title wraps to two lines */
  min-height: 3.6rem;
  padding: 0.7rem 0.95rem;
  border-top: 1px solid var(--line-gold-faint);
}
.gcard__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.gcard__cat {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.28rem 0.5rem;
  border-radius: var(--r-xs);
  background: rgba(212, 175, 55, 0.12);
}

.games-grid {
  display: grid;
  /* Always two-up on phones, however narrow the handset */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 0.5rem + 1vw, 1.5rem);
}
@media (min-width: 700px) {
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 214px), 1fr)); }
}

/* Fixed-column variant for curated strips, so a 12-card set always fills
   its rows exactly instead of leaving two orphans on the last line */
@media (min-width: 700px) and (max-width: 1099px) {
  .games-grid--set { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .games-grid--set { grid-template-columns: repeat(6, 1fr); }
}


/* ==========================================================================
   09 · MARQUEE TICKER
   ========================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(155, 17, 30, 0.32), transparent 40%, transparent 60%, rgba(212, 175, 55, 0.12)),
    var(--surface-deep);
  border-block: 1px solid var(--line-gold);
  padding-block: 0.95rem;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--surface-deep), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--surface-deep), transparent); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: clamp(1.1rem, 2vw, 2rem);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.marquee__item b { color: var(--gold); font-weight: 800; }
.marquee__item::after {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--ruby-bright);
  transform: rotate(45deg);
  margin-left: clamp(1.1rem, 2vw, 2rem);
}

@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}


/* ==========================================================================
   10 · STATS & COUNTERS
   ========================================================================== */

.stat {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.75rem) 0.5rem;
  text-align: center;
  position: relative;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.stat__num .unit { color: var(--gold); }
.stat__label {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat--invert .stat__num { color: var(--ink); }
.stat--invert .stat__num .unit { color: var(--gold); }
.stat--invert .stat__label { color: var(--ink-soft); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-gold-faint);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-gold-faint), var(--shadow-sm);
}
.stat-row .stat { background: var(--surface-lift); }
.section--dark .stat-row { background: var(--line-gold-faint); }
.section--dark .stat-row .stat { background: var(--surface-deep); }

@media (min-width: 780px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   11 · HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  transition: background-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule-gold);
  opacity: 0;
  transition: opacity var(--t-base) linear;
}
.header.is-stuck {
  background: rgba(10, 9, 8, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95);
}
.header.is-stuck::after { opacity: 1; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 86px;
  transition: height var(--t-base) var(--ease-out);
}
.header.is-stuck .header__inner { height: 66px; }

/* — Brand lockup ----------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.brand__plate {
  display: grid;
  place-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  transition: transform var(--t-base) var(--ease-spring), box-shadow var(--t-base) linear, padding var(--t-base) var(--ease-out);
}
/* Sized against the wordmark's native 760×156 plate so it reads clearly
   at a glance without dominating the header row */
.brand__plate img {
  width: auto;
  height: 30px;
  transition: height var(--t-base) var(--ease-out);
}
.header.is-stuck .brand__plate { padding: 0.42rem 0.7rem; }
.header.is-stuck .brand__plate img { height: 24px; }
.brand:hover .brand__plate {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px var(--line-gold-strong), 0 0 26px -10px rgba(212, 175, 55, 0.7);
}
.brand__text {
  display: grid;
  line-height: 1;
}
.brand__text b {
  font-family: var(--font-label);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand__text span {
  font-size: 0.54rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.28rem;
}
@media (max-width: 359px) { .brand__text { display: none; } }

/* — Desktop nav ------------------------------------------------------------ */
.nav { display: none; }

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.6vw, 2.1rem);
  }
}

.nav__link {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--t-fast) linear;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--ruby-bright));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { transform: scaleX(1); }

/* Legacy hook from the light build — the whole site is dark now, so the
   inverted header is simply the default header */
.header--invert .nav__link { color: var(--ink-muted); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header__cta { display: none; }
@media (min-width: 620px) { .header__cta { display: inline-flex; } }

/* — Burger ---------------------------------------------------------------- */
.burger {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  transition: background-color var(--t-fast) linear;
}
.burger:hover { background: rgba(212, 175, 55, 0.16); }
.burger span {
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast) linear;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 1024px) { .burger { display: none; } }


/* ==========================================================================
   12 · MOBILE DRAWER
   ========================================================================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity var(--t-base) linear;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 88vw);
  padding: 1.4rem var(--sp-6) var(--sp-6);
  overflow-y: auto;
  background:
    radial-gradient(520px 320px at 90% 4%, rgba(155, 17, 30, 0.34), transparent 62%),
    linear-gradient(180deg, var(--surface-tint), var(--surface-base));
  box-shadow: -30px 0 70px -40px rgba(0, 0, 0, 1), inset 1px 0 0 var(--line-gold);
  transform: translateX(100%);
  transition: transform 460ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-gold);
}
.drawer__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  background: rgba(255, 255, 255, 0.05);
}
.drawer__close:hover { background: rgba(212, 175, 55, 0.16); }

.drawer__nav {
  display: grid;
  gap: 0.15rem;
}
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.72rem 0;
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line-ink-soft);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out), color var(--t-fast) linear;
}
.drawer__link i {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.drawer.is-open .drawer__link { opacity: 1; transform: translateX(0); }
.drawer__link:hover,
.drawer__link.is-active { color: var(--gold); }

.drawer__foot {
  margin-top: auto;
  display: grid;
  gap: 0.8rem;
}
.drawer__tg {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.drawer__tg svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.drawer__tg:hover { background: rgba(212, 175, 55, 0.14); }

body.no-scroll { overflow: hidden; }


/* ==========================================================================
   13 · BONUS BAR (persistent, dismissible)
   ========================================================================== */

.bonusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-bar);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(90deg, rgba(155, 17, 30, 0.4), transparent 62%),
    rgba(8, 8, 7, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-gold);
  transform: translateY(110%);
  transition: transform 520ms var(--ease-out);
}
.bonusbar.is-shown { transform: translateY(0); }
.bonusbar.is-hidden { transform: translateY(110%); }

.bonusbar__copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}
.bonusbar__copy b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.bonusbar__copy span {
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bonusbar__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--line-invert);
  font-size: 0.85rem;
}
.bonusbar__close:hover { color: var(--ink); }

@media (min-width: 900px) { .bonusbar { display: none; } }


/* ==========================================================================
   14 · FOOTER
   ========================================================================== */

.footer {
  position: relative;
  background: var(--surface-deep);
  color: var(--ink-muted);
  padding-block: clamp(3.5rem, 2rem + 5vw, 6rem) 0;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule-gold);
}
.footer::after {
  content: '';
  position: absolute;
  right: -12%;
  top: -30%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 17, 30, 0.32), transparent 62%);
  pointer-events: none;
}

.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.8fr 1fr 1fr 1.35fr; } }

.footer__about { display: grid; gap: var(--sp-4); align-content: start; }
.footer__about p { font-size: var(--fs-sm); line-height: 1.7; max-width: 44ch; }

.footer .brand__plate img { height: 32px; }

.footer__col h4 {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-5);
}
.footer__links { display: grid; gap: 0.72rem; }
.footer__links a {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  width: fit-content;
  transition: color var(--t-fast) linear, transform var(--t-fast) var(--ease-out);
}
.footer__links a:hover { color: var(--gold); transform: translateX(3px); }

.footer__tg {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-invert);
  transition: box-shadow var(--t-base) linear, background-color var(--t-base) linear, transform var(--t-base) var(--ease-out);
}
.footer__tg:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  transform: translateY(-2px);
}
.footer__tg svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.footer__tg div { display: grid; gap: 0.12rem; min-width: 0; }
.footer__tg b { font-size: 0.86rem; color: var(--ink); font-weight: 700; }
.footer__tg span { font-size: 0.7rem; color: var(--ink-soft); }
.footer__col--contact { display: grid; gap: 0.75rem; align-content: start; }

.footer__legal {
  position: relative;
  z-index: 1;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line-invert);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}
.footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}
.footer__legal a:hover { color: var(--gold); }

.footer__disclaimer {
  position: relative;
  z-index: 1;
  padding: var(--sp-5) 0 var(--sp-7);
  border-top: 1px solid var(--line-invert);
  display: grid;
  gap: 0.7rem;
}
.footer__disclaimer p {
  font-size: 0.74rem;
  line-height: 1.68;
  color: var(--ink-faint);
  max-width: 92ch;
}

/* Closing search-term paragraph — a readable sentence, never a bare list.
   Lives here rather than in home.css so every page's footer picks it up. */
.kw-strip {
  position: relative;
  z-index: 1;
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-top: 1px solid var(--line-gold-faint);
  text-align: center;
}
.kw-strip p {
  max-width: 74ch;
  margin-inline: auto;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--ink-faint);
}
.kw-strip b { color: var(--ink-soft); font-weight: 700; }


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

.phero {
  position: relative;
  padding-top: clamp(8.5rem, 6rem + 7vw, 12rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(760px 380px at 86% 4%, rgba(212, 175, 55, 0.16), transparent 66%),
    radial-gradient(720px 420px at 6% 0%, rgba(155, 17, 30, 0.34), transparent 64%),
    linear-gradient(180deg, var(--surface-tint) 0%, var(--surface) 72%, var(--surface-base) 100%);
  overflow: hidden;
}
.phero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule-gold);
}
.phero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-5);
  max-width: 72ch;
}
.phero__title { font-size: var(--fs-h1); }
.phero__lead { font-size: var(--fs-lead); max-width: 60ch; }

/* Watermark glyph behind inner-page heroes */
.phero__glyph {
  position: absolute;
  right: -2%;
  top: 34%;
  font-family: var(--font-display);
  font-size: clamp(11rem, 6rem + 22vw, 26rem);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.2);
  pointer-events: none;
  user-select: none;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.crumb a:hover { color: var(--gold); }
.crumb span { color: var(--gold); }


/* ==========================================================================
   16 · PROSE (legal / long copy)
   ========================================================================== */

.prose {
  max-width: 74ch;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--ink-muted);
}
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-gold-faint);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 {
  font-size: 1.24rem;
  margin-top: var(--sp-6);
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
}
.prose ul,
.prose ol { padding-left: 1.35rem; display: grid; gap: 0.55rem; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-gold); }
.prose a:hover { text-decoration-color: var(--gold); }
.prose blockquote {
  padding: var(--sp-5);
  border-left: 2px solid var(--gold);
  background: var(--surface-lift);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.94rem;
}
.prose table {
  font-size: var(--fs-sm);
  border: 1px solid var(--line-gold-faint);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.prose th,
.prose td { padding: 0.72rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line-ink-soft); }
.prose th { background: var(--surface-lift); color: var(--ink); font-weight: 700; }


/* ==========================================================================
   17 · ACCORDION
   ========================================================================== */

.acc { display: grid; gap: 0.7rem; }

.acc__item {
  border-radius: var(--r-md);
  background: var(--surface-lift);
  box-shadow: inset 0 0 0 1px var(--line-ink);
  overflow: hidden;
  transition: box-shadow var(--t-base) linear, background-color var(--t-base) linear;
}
.acc__item:hover { box-shadow: inset 0 0 0 1px var(--line-gold); }
.acc__item.is-open {
  background: var(--surface-lift-2);
  box-shadow: inset 0 0 0 1px var(--line-gold-strong), var(--shadow-sm);
}

.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 1.15rem 1.3rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  transition: color var(--t-fast) linear;
}
.acc__btn:hover { color: var(--gold); }

.acc__sign {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-gold);
  transition: background-color var(--t-base) linear, transform var(--t-base) var(--ease-out);
}
.acc__sign::before,
.acc__sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform var(--t-base) var(--ease-out), background-color var(--t-base) linear;
}
.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__sign { background: var(--ruby); transform: rotate(180deg); }
.acc__item.is-open .acc__sign::before,
.acc__item.is-open .acc__sign::after { background: #fff; }
.acc__item.is-open .acc__sign::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-out);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p {
  padding: 0 1.3rem 1.3rem;
  font-size: var(--fs-sm);
  line-height: 1.74;
  max-width: 76ch;
  color: var(--ink-muted);
}


/* ==========================================================================
   18 · FORMS
   ========================================================================== */

.field { display: grid; gap: 0.45rem; }

.field label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r-sm);
  background: var(--surface-base);
  color: var(--ink);
  font-size: 0.95rem;
  border: 1px solid var(--line-ink);
  transition: border-color var(--t-fast) linear, box-shadow var(--t-fast) linear, background-color var(--t-fast) linear;
}
.field textarea { min-height: 156px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: var(--surface-lift);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--ruby-bright); }
.field__err {
  font-size: 0.72rem;
  color: #F09AA6;
  min-height: 1em;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  line-height: 1.6;
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  background: rgba(212, 175, 55, 0.1);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-gold);
}
.form-status svg { color: var(--gold); }
.form-status.is-shown { display: flex; }


/* ==========================================================================
   19 · LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) linear, visibility var(--t-base) linear;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
  max-width: min(92vw, 520px);
  max-height: 86vh;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 1), inset 0 0 0 1px var(--line-gold);
  transform: scale(0.94);
  transition: transform 420ms var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line-gold);
  font-size: 1.1rem;
  transition: background-color var(--t-fast) linear;
}
.lightbox__btn:hover { background: var(--ruby); }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev  { left: clamp(0.5rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: clamp(0.5rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}


/* ==========================================================================
   20 · PRELOADER
   ========================================================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 400px at 50% 44%, rgba(155, 17, 30, 0.22), transparent 68%),
    var(--surface-base);
  transition: opacity 520ms var(--ease-out), visibility 520ms;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader__mark {
  display: grid;
  place-items: center;
  padding: 1rem 1.35rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-gold), 0 30px 80px -40px rgba(212, 175, 55, 0.6);
  animation: markIn 900ms var(--ease-out) both;
}
.loader__mark img { height: 30px; width: auto; }
.loader__bar {
  position: absolute;
  bottom: 34%;
  left: 50%;
  transform: translateX(-50%);
  width: min(220px, 42vw);
  height: 1px;
  background: var(--line-gold-faint);
  overflow: hidden;
}
.loader__bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--ruby-bright), transparent);
  transform: translateX(-100%);
  animation: barSweep 1.15s var(--ease-inout) infinite;
}
@keyframes markIn {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes barSweep {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}


/* ==========================================================================
   21 · MOTION & REVEAL
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity var(--t-reveal) var(--ease-out) var(--d, 0ms),
    transform var(--t-reveal) var(--ease-out) var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal='left']  { transform: translate3d(-34px, 0, 0); }
[data-reveal='right'] { transform: translate3d(34px, 0, 0); }
[data-reveal='zoom']  { transform: scale(0.94); }
[data-reveal='mask']  { clip-path: inset(0 0 100% 0); transform: none; }

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* Words that rise out of a mask, used on big headlines */
.rise {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* room for descenders so the mask never clips a 'g' or 'p' */
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.rise > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1000ms var(--ease-out) var(--d, 0ms);
}
.is-in .rise > span,
.rise.is-in > span { transform: translateY(0); }

/* Subtle float used on decorative art */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.floaty { animation: floaty 7s var(--ease-inout) infinite; }
.floaty--slow { animation-duration: 10s; }
.floaty--delay { animation-delay: -3.5s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .rise > span { transform: none !important; }
  .floaty { animation: none; }
  .btn--pulse::after { animation: none; }
}


/* ==========================================================================
   22 · UTILITIES
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--gutter);
  z-index: var(--z-loader);
  padding: 0.75rem 1.2rem;
  background: var(--gold);
  color: var(--ink-invert);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top var(--t-base) var(--ease-out);
}
.skip-link:focus { top: 0; }

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

.center { text-align: center; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.stack-3 { display: grid; gap: var(--sp-3); }
.stack-4 { display: grid; gap: var(--sp-4); }
.stack-5 { display: grid; gap: var(--sp-5); }
.stack-6 { display: grid; gap: var(--sp-6); }
.no-wrap { white-space: nowrap; }

.tick-list { display: grid; gap: 0.85rem; }
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.62;
}
.tick-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--ruby-plate);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.5);
}
.tick-list--gold li::before {
  background-color: var(--gold-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0A09' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
