/* ===================================================================
   BetStory UK — "The Members' Club" design system
   Casino-luxe noir + emerald felt + gold foil. Immersive, animated.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..700&family=Inter:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ---- core palette ---- */
  --noir: #06080b;
  --bg: #080b10;
  --panel: #0e131b;
  --panel2: #141b25;
  --panel3: #1a2231;
  --felt: #0a1f18;
  --felt2: #0c2a20;

  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.045);

  /* ---- gold foil ---- */
  --gold: #FFD24A;
  --gold-deep: #d99a17;
  --gold-light: #FFEFB3;
  --gold-soft: rgba(255, 210, 74, 0.12);
  --foil: linear-gradient(135deg, #fff4cf 0%, #ffd24a 35%, #e0a412 60%, #ffe9a8 100%);
  --foil-btn: linear-gradient(135deg, #ffe9a8 0%, #ffd24a 45%, #e0a412 100%);

  /* ---- accents ---- */
  --crimson: #ef2d56;
  --crimson-deep: #c01840;
  --emerald: #25d07a;
  --emerald-deep: #15a35e;
  --teal: #2dd4bf;
  --royal: #5b8cff;

  /* ---- text ---- */
  --ivory: #f4efe2;
  --text: #e6e2d4;
  --muted: #9aa3ad;
  --dim: #6a7480;

  --maxw: 1240px;
  --radius: 18px;
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 10px 40px rgba(255, 210, 74, 0.22);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient casino lighting + felt vignette (whole page) */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -5%, rgba(255, 210, 74, 0.10), transparent 60%),
    radial-gradient(900px 600px at 12% 8%, rgba(37, 208, 122, 0.07), transparent 60%),
    radial-gradient(1200px 800px at 50% 120%, rgba(239, 45, 86, 0.06), transparent 60%),
    var(--bg);
}
/* Film grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(255, 210, 74, 0.25); color: #fff; }

/* Pretty scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold-deep), var(--gold)); border-radius: 9px; border: 3px solid var(--noir); }

/* ---------- Text effects ---------- */
.foil {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: foilShift 6s linear infinite;
}
@keyframes foilShift { to { background-position: 200% center; } }

.neon {
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 210, 74, .8),
    0 0 16px rgba(255, 210, 74, .55),
    0 0 34px rgba(217, 154, 23, .45);
}

/* ===================================================================
   ODDS TICKER (decorative sportsbook marquee)
   =================================================================== */
.ticker {
  background: linear-gradient(90deg, var(--noir), #0b0f15 50%, var(--noir));
  border-bottom: 1px solid var(--line2);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--noir), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--noir), transparent); }
.ticker-track {
  display: inline-flex; align-items: center; gap: 34px;
  padding: 9px 0;
  animation: tickerMove 38s linear infinite;
  font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
.tk b { color: var(--ivory); font-weight: 700; }
.tk .od { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.tk .up { color: var(--emerald); }
.tk .dn { color: var(--crimson); }
.tk .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); opacity: .6; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ---------- Safer-gambling strip ---------- */
.sg-strip { background: var(--noir); border-bottom: 1px solid var(--line2); font-size: 12.5px; color: var(--muted); }
.sg-strip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center;
}
.sg-strip strong { color: var(--gold); }
.sg-strip a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.sg-strip a:hover { color: #fff; }
.age-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 23px; padding: 0 8px;
  border: 2px solid var(--crimson); color: #fff; background: rgba(239, 45, 86, 0.14);
  border-radius: 999px; font-weight: 900; font-size: 11px; letter-spacing: .5px;
}

/* ===================================================================
   NAVIGATION
   =================================================================== */
.nav {
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 200;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(8, 11, 16, 0.94); box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 23px; font-weight: 800; color: var(--ivory); text-decoration: none;
  letter-spacing: -0.3px; display: inline-flex; align-items: center; gap: 11px;
}
.nav-logo span { color: var(--gold); }
.nav-logo .logo-mark { flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(255,210,74,.35)); transition: transform .5s var(--ease); }
.nav-logo:hover .logo-mark { transform: rotate(360deg); }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: color .25s; position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px;
  background: var(--foil); border-radius: 2px; transition: right .3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active:not(.nav-cta)::after { right: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--foil-btn); color: #20160a !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 800 !important; font-size: 13.5px !important;
  box-shadow: 0 6px 18px rgba(255, 210, 74, .25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 210, 74, .4); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 40px; color: #fff; font-size: 20px; cursor: pointer;
}

/* ===================================================================
   BUTTONS (poker-chip / foil)
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::after { /* shine sweep */
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn-gold { background: var(--foil-btn); color: #20160a; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(255, 210, 74, .42); }
.btn-ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-green { background: linear-gradient(135deg, var(--emerald), var(--emerald-deep)); color: #04130a; box-shadow: 0 10px 40px rgba(37, 208, 122, .25); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(37, 208, 122, .42); }
.btn-lg { padding: 17px 36px; font-size: 16.5px; }

/* ===================================================================
   GENERIC LAYOUT
   =================================================================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 840px; margin: 0 auto; padding: 0 24px; }
.section { padding-bottom: 28px; }
.divider {
  height: 1px; max-width: var(--maxw); margin: 28px auto;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.section-head { text-align: center; max-width: 780px; margin: 0 auto; padding: 76px 24px 40px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content: ''; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep)); opacity: .7;
}
.section-head .eyebrow::after { background: linear-gradient(270deg, transparent, var(--gold-deep)); }
.section-head h2 {
  font-family: 'Fraunces', serif; font-size: 44px; font-weight: 800; color: var(--ivory);
  line-height: 1.08; margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.65; }

/* ===================================================================
   GAMBLING DESIGN ELEMENTS
   =================================================================== */

/* --- Poker chip --- */
.chip {
  --c: var(--crimson);
  width: 64px; height: 64px; border-radius: 50%; position: relative; flex-shrink: 0;
  background:
    repeating-conic-gradient(var(--c) 0deg 18deg, #ffffff10 18deg 36deg);
  box-shadow: inset 0 0 0 6px var(--c), 0 8px 22px rgba(0,0,0,.45);
  display: grid; place-items: center;
}
.chip::before {
  content: ''; position: absolute; inset: 12px; border-radius: 50%;
  background: var(--c); border: 2px dashed rgba(255,255,255,.45);
}
.chip span { position: relative; z-index: 1; font-weight: 900; color: #fff; font-size: 14px; }
.chip.gold { --c: var(--gold-deep); }
.chip.green { --c: var(--emerald-deep); }
.chip.noir { --c: #1c2733; }

/* chip stack */
.chip-stack { position: relative; width: 90px; height: 120px; }
.chip-stack .chip { position: absolute; left: 13px; }
.chip-stack .chip:nth-child(1){ bottom: 0; }
.chip-stack .chip:nth-child(2){ bottom: 14px; }
.chip-stack .chip:nth-child(3){ bottom: 28px; }
.chip-stack .chip:nth-child(4){ bottom: 42px; }

/* --- Playing card --- */
.pcard {
  width: 116px; height: 164px; border-radius: 12px; background: #fbf7ee;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); position: relative; color: #14181d;
  font-family: 'Fraunces', serif; flex-shrink: 0; overflow: hidden;
  border: 1px solid rgba(0,0,0,.1);
}
.pcard .rank { position: absolute; top: 8px; left: 10px; font-size: 22px; font-weight: 800; line-height: 1; }
.pcard .rank.br { top: auto; left: auto; bottom: 8px; right: 10px; transform: rotate(180deg); }
.pcard .pip-c { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; }
.pcard.red { color: var(--crimson-deep); }
.pcard.back {
  background:
    repeating-linear-gradient(45deg, #b6202f 0 8px, #9c1726 8px 16px);
  border: 5px solid #fbf7ee;
}
.pcard.back::after { content: ''; position: absolute; inset: 8px; border: 2px solid rgba(255,255,255,.4); border-radius: 6px; }

/* card fan */
.card-fan { position: relative; width: 260px; height: 210px; }
.card-fan .pcard { position: absolute; bottom: 0; left: 70px; transform-origin: bottom center; transition: transform .5s var(--ease); }
.card-fan .pcard:nth-child(1){ transform: rotate(-22deg) translateX(-4px); }
.card-fan .pcard:nth-child(2){ transform: rotate(-8deg); }
.card-fan .pcard:nth-child(3){ transform: rotate(8deg); }
.card-fan .pcard:nth-child(4){ transform: rotate(22deg) translateX(4px); }
.card-fan:hover .pcard:nth-child(1){ transform: rotate(-34deg) translateX(-26px) translateY(-6px); }
.card-fan:hover .pcard:nth-child(2){ transform: rotate(-12deg) translateX(-10px) translateY(-14px); }
.card-fan:hover .pcard:nth-child(3){ transform: rotate(12deg) translateX(10px) translateY(-14px); }
.card-fan:hover .pcard:nth-child(4){ transform: rotate(34deg) translateX(26px) translateY(-6px); }

/* --- Dice --- */
.die {
  width: 58px; height: 58px; border-radius: 13px; background: linear-gradient(145deg, #fff, #d8d3c6);
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.15), 0 10px 24px rgba(0,0,0,.4);
  display: grid; grid-template: repeat(3,1fr)/repeat(3,1fr); padding: 9px; gap: 3px;
}
.die i { border-radius: 50%; background: #16181c; align-self: center; justify-self: center; width: 9px; height: 9px; opacity: 0; }
.die i.on { opacity: 1; }

/* --- Roulette wheel --- */
.roulette { position: relative; width: 280px; height: 280px; }
.roulette .wheel {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(
    #0c1512 0 9.73deg, #c01840 9.73deg 19.46deg, #0c1512 19.46deg 29.19deg, #c01840 29.19deg 38.92deg,
    #0c1512 38.92deg 48.65deg, #c01840 48.65deg 58.38deg, #0c1512 58.38deg 68.11deg, #c01840 68.11deg 77.84deg,
    #1a9e5f 77.84deg 87.57deg, #0c1512 87.57deg 97.3deg, #c01840 97.3deg 107.03deg, #0c1512 107.03deg 116.76deg,
    #c01840 116.76deg 126.49deg, #0c1512 126.49deg 136.22deg, #c01840 136.22deg 145.95deg, #0c1512 145.95deg 155.68deg,
    #c01840 155.68deg 165.41deg, #0c1512 165.41deg 175.14deg, #c01840 175.14deg 184.87deg, #0c1512 184.87deg 194.6deg,
    #c01840 194.6deg 204.33deg, #0c1512 204.33deg 214.06deg, #c01840 214.06deg 223.79deg, #0c1512 223.79deg 233.52deg,
    #c01840 233.52deg 243.25deg, #0c1512 243.25deg 252.98deg, #c01840 252.98deg 262.71deg, #0c1512 262.71deg 272.44deg,
    #c01840 272.44deg 282.17deg, #0c1512 282.17deg 291.9deg, #c01840 291.9deg 301.63deg, #0c1512 301.63deg 311.36deg,
    #c01840 311.36deg 321.09deg, #0c1512 321.09deg 330.82deg, #c01840 330.82deg 340.55deg, #0c1512 340.55deg 350.28deg,
    #c01840 350.28deg 360deg);
  box-shadow:
    inset 0 0 0 10px #1b130a, inset 0 0 0 14px var(--gold-deep),
    inset 0 0 60px rgba(0,0,0,.7), 0 30px 70px rgba(0,0,0,.6);
  animation: spin 18s linear infinite;
}
.roulette:hover .wheel { animation-duration: 5s; }
.roulette .hub {
  position: absolute; inset: 33%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a3340, #0c1218);
  box-shadow: inset 0 0 0 4px var(--gold-deep), 0 0 30px rgba(255,210,74,.2);
  display: grid; place-items: center;
}
.roulette .hub::before { content: ''; width: 60%; height: 6px; background: var(--gold); border-radius: 4px; box-shadow: 0 0 12px var(--gold); }
.roulette .hub::after { content: ''; position: absolute; width: 6px; height: 60%; background: var(--gold); border-radius: 4px; box-shadow: 0 0 12px var(--gold); }
.roulette .ball {
  position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b9b4a6); margin-left: -7px;
  box-shadow: 0 2px 6px rgba(0,0,0,.6); transform-origin: 7px 134px; animation: spin 3s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Suit glyphs --- */
.suit { display: inline-block; line-height: 1; }
.suit.red { color: var(--crimson); }
.suit.dark { color: var(--ivory); }

/* --- Floating felt-table background elements --- */
.gamble-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gamble-bg .gel { position: absolute; opacity: .05; color: var(--gold); }
.gamble-bg .gel.float { animation: drift 22s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0); }
  33% { transform: translateY(-22px) rotate(8deg); }
  66% { transform: translateY(14px) rotate(-6deg); }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-spotlight { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px 600px at var(--mx, 75%) var(--my, 20%), rgba(255,210,74,.10), transparent 70%);
  transition: background .2s;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 90px 24px 84px;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center;
  position: relative; z-index: 2;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold-soft); border: 1px solid rgba(255, 210, 74, .28);
  padding: 9px 18px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--gold);
  margin-bottom: 26px; text-transform: uppercase; letter-spacing: 2px;
}
.hero .badge .blink { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 68px; font-weight: 800; line-height: 1.0; color: var(--ivory);
  letter-spacing: -1.8px; margin-bottom: 24px;
}
.hero p.lead { font-size: 18.5px; color: var(--muted); max-width: 540px; margin-bottom: 34px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 24px; font-size: 13px; color: var(--dim); }
.hero-note strong { color: var(--muted); }

/* Hero visual stage */
.hero-stage { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero-stage .roulette { z-index: 2; }
.hero-stage .chip-stack { position: absolute; bottom: 4px; left: -6px; z-index: 3; }
.hero-stage .card-fan { position: absolute; top: -6px; right: -10px; z-index: 4; }
.hero-stage .die { position: absolute; }
.hero-stage .die.d1 { bottom: 30px; right: 30px; z-index: 5; animation: floaty 5s ease-in-out infinite; }
.hero-stage .die.d2 { top: 40px; left: 0; z-index: 5; animation: floaty 5s ease-in-out infinite .9s; }
.hero-glow-ring {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  border: 1px dashed rgba(255,210,74,.2); animation: spin 40s linear infinite;
}

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===================================================================
   STATS
   =================================================================== */
.stats-bar { background: linear-gradient(180deg, var(--panel), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.stats-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px 24px; display: flex; justify-content: space-around; gap: 20px; flex-wrap: wrap; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: -10px; top: 10%; height: 80%; width: 1px; background: var(--line); }
.stat-num { font-family: 'Fraunces', serif; font-size: 42px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 9px; }

/* ===================================================================
   STORY / ARTICLE CARDS (3D tilt + suit + glow)
   =================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.story-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  transform-style: preserve-3d; will-change: transform;
}
.story-card::before { /* gold top hairline on hover */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--foil);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); z-index: 5;
}
.story-card:hover::before { transform: scaleX(1); }
.story-card:hover { border-color: rgba(255, 210, 74, .3); box-shadow: 0 26px 60px rgba(0,0,0,.5); }
.story-thumb { height: 184px; position: relative; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; }
.story-thumb .suit-watermark { position: absolute; right: -14px; top: -22px; font-size: 150px; opacity: .14; line-height: 1; transform: rotate(8deg); }
.story-thumb .cat {
  position: relative; z-index: 2; background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 6px 13px; border-radius: 999px;
}
.story-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 30%, rgba(0,0,0,.5) 100%); }
.story-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.story-body h3 { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 700; color: var(--ivory); line-height: 1.22; margin-bottom: 11px; }
.story-body p { color: var(--muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.story-meta { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--dim); }
.story-meta .read-more { margin-left: auto; color: var(--gold); font-weight: 700; }

/* gradients (richer) */
.g-win   { background: radial-gradient(circle at 70% 20%, #1c7a45, #0a3a22 70%); }
.g-loss  { background: radial-gradient(circle at 70% 20%, #8a1f33, #390f1a 70%); }
.g-tip   { background: radial-gradient(circle at 70% 20%, #1f5e8a, #0a2436 70%); }
.g-news  { background: radial-gradient(circle at 70% 20%, #8a6a1f, #36280a 70%); }
.g-guide { background: radial-gradient(circle at 70% 20%, #5a2f8a, #261036 70%); }
.g-real  { background: radial-gradient(circle at 70% 20%, #1f7a8a, #0a2e36 70%); }

/* ===================================================================
   INFO CARDS (chip icons)
   =================================================================== */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s var(--ease), border-color .3s; position: relative; overflow: hidden;
}
.info-card::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); opacity: 0; transition: opacity .3s; }
.info-card:hover { transform: translateY(-4px); border-color: rgba(255, 210, 74, .25); }
.info-card:hover::after { opacity: 1; }
.info-ico {
  width: 56px; height: 56px; border-radius: 14px; background: var(--gold-soft);
  border: 1px solid rgba(255,210,74,.2);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px;
}
.info-card h3 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--ivory); margin-bottom: 10px; }
.info-card p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ===================================================================
   LONG-FORM ARTICLE
   =================================================================== */
.article { max-width: 780px; margin: 0 auto; padding: 8px 24px 44px; }
.article-hero { padding: 60px 24px 8px; max-width: 820px; margin: 0 auto; }
.article-hero .cat-tag { display: inline-block; color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; margin-bottom: 16px; }
.article-hero h1 { font-family: 'Fraunces', serif; font-size: 50px; font-weight: 800; color: var(--ivory); line-height: 1.08; letter-spacing: -1px; margin-bottom: 18px; }
.article-hero .dek { font-size: 20px; color: var(--muted); line-height: 1.6; }
.article-hero .byline { margin-top: 24px; display: flex; gap: 14px; align-items: center; font-size: 13.5px; color: var(--dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.article-banner { height: 260px; border-radius: var(--radius); margin: 10px auto 30px; max-width: 820px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.article p, .article ul, .article ol, .article blockquote { font-family: 'Lora', Georgia, serif; font-size: 19px; line-height: 1.8; color: #d3d8d0; margin-bottom: 22px; }
.article ul, .article ol { padding-left: 26px; }
.article li { margin-bottom: 10px; }
.article > p:first-of-type::first-letter,
.article .dropcap::first-letter {
  font-family: 'Fraunces', serif; float: left; font-size: 64px; line-height: .8; font-weight: 800;
  padding: 4px 12px 0 0; color: var(--gold);
}
.article h2 { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 700; color: var(--ivory); margin: 44px 0 16px; letter-spacing: -0.4px; }
.article h3 { font-family: 'Inter', sans-serif; font-size: 21px; font-weight: 700; color: var(--ivory); margin: 32px 0 12px; }
.article a { color: var(--gold); text-underline-offset: 3px; }
.article strong { color: var(--ivory); }
.article blockquote {
  border-left: 4px solid var(--gold); background: rgba(255, 210, 74, .055);
  padding: 20px 26px; border-radius: 0 14px 14px 0; font-style: italic; color: var(--ivory); position: relative;
}
.article blockquote::before { content: '\201C'; position: absolute; top: -10px; left: 12px; font-family: 'Fraunces', serif; font-size: 70px; color: rgba(255,210,74,.2); }
.article figcaption { font-size: 13px; color: var(--dim); text-align: center; margin: -12px 0 26px; }

/* Callout boxes (chip-marked) */
.callout { border-radius: 16px; padding: 24px 26px; margin: 30px 0; border: 1px solid var(--line); background: var(--panel); position: relative; }
.callout h4 { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 800; color: var(--ivory); margin-bottom: 9px; display: flex; align-items: center; gap: 10px; }
.callout p, .callout ul { font-family: 'Inter', sans-serif !important; font-size: 14.7px !important; line-height: 1.65 !important; color: var(--muted) !important; margin-bottom: 0 !important; }
.callout.warn { border-color: rgba(239, 45, 86, .38); background: rgba(239, 45, 86, .07); }
.callout.warn h4 { color: #ff8fa3; }
.callout.safe { border-color: rgba(37, 208, 122, .38); background: rgba(37, 208, 122, .07); }
.callout.safe h4 { color: #6ee7a8; }
.callout.tip { border-color: rgba(255, 210, 74, .38); background: rgba(255, 210, 74, .06); }
.callout.tip h4 { color: var(--gold); }

/* ===================================================================
   DATA TABLE
   =================================================================== */
.data-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table thead th { background: var(--panel3); padding: 16px 18px; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--line); }
.data-table tbody td { padding: 16px 18px; border-bottom: 1px solid var(--line2); font-size: 14.5px; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255, 210, 74, .03); }
.data-table tbody tr.highlight { background: rgba(255, 210, 74, .055); }
.data-table tbody tr.highlight td:first-child { color: var(--gold); font-weight: 700; }
.check { color: var(--emerald); font-weight: 700; }
.cross { color: var(--crimson); }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ===================================================================
   RESPONSIBLE GAMBLING PAGE
   =================================================================== */
.rg-hero { background: radial-gradient(900px 500px at 50% -10%, rgba(37,208,122,.12), transparent 60%), linear-gradient(180deg, var(--felt), var(--bg)); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.rg-hero-inner { max-width: 900px; margin: 0 auto; padding: 72px 24px 58px; text-align: center; position: relative; z-index: 2; }
.rg-hero .age-big {
  width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--crimson); color: #fff;
  background: rgba(239,45,86,.12); display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 900; margin-bottom: 24px; box-shadow: 0 0 40px rgba(239,45,86,.25);
}
.rg-hero h1 { font-family: 'Fraunces', serif; font-size: 52px; font-weight: 800; color: var(--ivory); letter-spacing: -1px; line-height: 1.08; margin-bottom: 18px; }
.rg-hero p { font-size: 18.5px; color: var(--muted); max-width: 660px; margin: 0 auto; line-height: 1.7; }

.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.sg-logo {
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px;
  text-decoration: none; text-align: center; transition: transform .25s var(--ease), border-color .25s; min-height: 128px;
}
.sg-logo:hover { border-color: rgba(255,255,255,.28); transform: translateY(-4px); }
.sg-logo .sg-label { font-size: 12px; color: var(--dim); font-weight: 600; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.help-card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 16px; padding: 26px; }
.help-card h3 { font-family: 'Fraunces', serif; font-size: 19px; color: var(--ivory); margin-bottom: 6px; }
.help-card .phone { font-size: 28px; font-weight: 900; color: var(--teal); margin: 10px 0 4px; letter-spacing: -0.5px; }
.help-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.help-card a { color: var(--teal); font-weight: 600; text-decoration: none; }
.help-card a:hover { text-decoration: underline; }

.check-list { list-style: none; }
.check-list li { position: relative; padding: 15px 16px 15px 54px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 12px; font-size: 15px; color: var(--text); }
.check-list li::before { content: '?'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: rgba(239, 45, 86, .16); color: #ff8fa3; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; }
.tool-card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 28px; transition: transform .3s var(--ease), border-color .3s; }
.tool-card:hover { border-color: rgba(45, 212, 191, .35); transform: translateY(-4px); }
.tool-card .t-ico { width: 52px; height: 52px; border-radius: 13px; background: rgba(45, 212, 191, .12); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 15px; }
.tool-card h3 { font-family: 'Fraunces', serif; font-size: 18px; color: var(--ivory); margin-bottom: 8px; }
.tool-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ===================================================================
   CTA BAND (felt table)
   =================================================================== */
.cta-band {
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(255,210,74,.12), transparent 60%),
    linear-gradient(135deg, var(--felt2), #0a130f);
  border: 1px solid rgba(255, 210, 74, .35); border-radius: 24px; padding: 50px 44px;
  margin: 44px auto; max-width: 1140px; text-align: center; position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), var(--shadow-lg);
}
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; pointer-events: none; }
.cta-band h2 { font-family: 'Fraunces', serif; font-size: 34px; font-weight: 800; color: var(--ivory); margin-bottom: 14px; position: relative; letter-spacing: -.5px; }
.cta-band h2 span { color: var(--gold); }
.cta-band p { color: var(--muted); font-size: 16.5px; max-width: 600px; margin: 0 auto 28px; position: relative; }

/* ===================================================================
   SLOT MACHINE (interactive)
   =================================================================== */
.slot {
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px; max-width: 560px; margin: 0 auto; text-align: center;
  box-shadow: var(--shadow-lg);
}
.slot-window {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: #05080c;
  border: 3px solid var(--gold-deep); border-radius: 16px; padding: 14px; margin-bottom: 22px;
  box-shadow: inset 0 0 30px rgba(0,0,0,.8);
}
.reel { height: 96px; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #11161d, #0a0e13); position: relative; }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 28px; z-index: 2; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(#05080c, transparent); }
.reel::after { bottom: 0; background: linear-gradient(transparent, #05080c); }
.reel-strip { display: flex; flex-direction: column; transition: transform .2s; }
.reel-strip span { height: 96px; display: grid; place-items: center; font-size: 50px; }
.reel.spinning .reel-strip { animation: reelSpin .4s linear infinite; }
@keyframes reelSpin { from { transform: translateY(0); } to { transform: translateY(-480px); } }
.slot-msg { min-height: 24px; margin-top: 4px; font-size: 15px; color: var(--muted); font-weight: 600; }

/* ===================================================================
   NEWSLETTER
   =================================================================== */
.newsletter { display: flex; gap: 12px; max-width: 500px; margin: 22px auto 0; flex-wrap: wrap; justify-content: center; }
.newsletter input { flex: 1; min-width: 230px; background: var(--noir); border: 1px solid var(--line); border-radius: 999px; padding: 14px 20px; color: #fff; font-size: 15px; font-family: inherit; }
.newsletter input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,210,74,.12); }

/* ===================================================================
   FOOTER
   =================================================================== */
footer { background: linear-gradient(180deg, var(--panel), var(--noir)); border-top: 1px solid var(--line); margin-top: 48px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; padding: 58px 24px 38px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--dim); font-size: 13.5px; line-height: 1.75; max-width: 330px; }
.footer-col h5 { color: var(--ivory); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 11px; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-sg { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.footer-sg .mini-logo { opacity: .78; transition: opacity .25s; }
.footer-sg a:hover .mini-logo { opacity: 1; }
.footer-bottom { border-top: 1px solid var(--line); text-align: center; padding: 24px 24px 36px; }
.footer-bottom p { color: var(--dim); font-size: 12.5px; line-height: 1.85; max-width: 820px; margin: 0 auto; }
.footer-bottom .legal { margin-top: 10px; color: #3f4a4f; font-size: 11.5px; }

/* ===================================================================
   AGE GATE
   =================================================================== */
.age-gate { position: fixed; inset: 0; z-index: 9999; background: rgba(4, 6, 9, .94); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .4s ease; }
.age-gate[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.age-box { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 22px; padding: 44px 36px; max-width: 460px; text-align: center; box-shadow: var(--shadow-lg); animation: popIn .5s var(--ease); }
@keyframes popIn { from { transform: translateY(20px) scale(.96); opacity: 0; } }
.age-box .age-big { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--crimson); color: #fff; background: rgba(239,45,86,.12); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; margin-bottom: 22px; }
.age-box h2 { font-family: 'Fraunces', serif; font-size: 26px; color: var(--ivory); margin-bottom: 12px; }
.age-box p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 26px; }
.age-box .age-actions { display: flex; gap: 12px; }
.age-box .btn { flex: 1; justify-content: center; padding: 14px; }
.age-box .age-leave { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }

/* ---------- breadcrumb ---------- */
.crumb { max-width: 820px; margin: 0 auto; padding: 24px 24px 0; font-size: 13px; color: var(--dim); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--gold); }

/* ===================================================================
   SCROLL REVEAL
   =================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* ---------- utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 52px; }
  .hero-stage { min-height: 380px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section-head h2 { font-size: 36px; }
}
@media (max-width: 680px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 0; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 40px; }
  .hero-inner { padding: 60px 24px 64px; }
  .section-head h2 { font-size: 30px; }
  .section-head { padding-top: 56px; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .article-hero h1 { font-size: 36px; }
  .article p, .article ul, .article ol, .article blockquote { font-size: 17.5px; }
  .stat-num { font-size: 34px; }
  .cta-band { padding: 34px 24px; }
  .roulette { width: 220px; height: 220px; }
  .card-fan { transform: scale(.82); }
  .rg-hero h1 { font-size: 38px; }
}
@media (max-width: 420px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ===================================================================
   COOKIE CONSENT BANNER (injected by JS)
   =================================================================== */
.cookie-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(140%);
  z-index: 9500; width: calc(100% - 40px); max-width: 760px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 22px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  transition: transform .5s var(--ease), opacity .5s;
}
.cookie-bar.show { transform: translateX(-50%) translateY(0); }
.cookie-bar .ck-ico { font-size: 26px; flex-shrink: 0; }
.cookie-bar .ck-text { flex: 1; min-width: 220px; }
.cookie-bar .ck-text h4 { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 800; color: var(--ivory); margin-bottom: 4px; }
.cookie-bar .ck-text p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.cookie-bar .ck-text a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar .ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar .ck-btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 13.5px;
  padding: 11px 20px; border-radius: 999px; transition: transform .2s, box-shadow .2s;
}
.cookie-bar .ck-accept { background: var(--foil-btn); color: #20160a; box-shadow: var(--shadow-gold); }
.cookie-bar .ck-accept:hover { transform: translateY(-1px); }
.cookie-bar .ck-reject { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ivory); }
.cookie-bar .ck-reject:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 560px) {
  .cookie-bar { padding: 18px; bottom: 12px; }
  .cookie-bar .ck-actions { width: 100%; }
  .cookie-bar .ck-btn { flex: 1; text-align: center; }
}

/* ===================================================================
   404 PAGE
   =================================================================== */
.err-wrap { min-height: 64vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; position: relative; overflow: hidden; }
.err-code { font-family: 'Fraunces', serif; font-size: 150px; font-weight: 900; line-height: 1; letter-spacing: -4px; }
.err-wrap h1 { font-family: 'Fraunces', serif; font-size: 34px; color: var(--ivory); margin: 8px 0 14px; }
.err-wrap p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto 28px; line-height: 1.7; }

/* ===================================================================
   ACCESSIBILITY — skip link + focus
   =================================================================== */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--foil-btn); color: #20160a; padding: 10px 18px; border-radius: 10px;
  font-weight: 800; font-size: 14px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ===================================================================
   READING PROGRESS BAR (injected on article pages)
   =================================================================== */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 300;
  background: var(--foil); box-shadow: 0 0 12px rgba(255,210,74,.6);
  transition: width .1s linear;
}

/* ===================================================================
   BACK TO TOP (injected)
   =================================================================== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 400;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel2), var(--panel)); color: var(--gold);
  font-size: 20px; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px) scale(.9);
  pointer-events: none; transition: opacity .3s, transform .3s, border-color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ===================================================================
   ARTICLE FURNITURE — TOC, author, tags, share, prev/next
   =================================================================== */
.toc-box {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 14px; padding: 20px 24px; margin: 6px 0 30px;
}
.toc-box h4 { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 12px; }
.toc-box ol { list-style: none; counter-reset: toc; }
.toc-box li { counter-increment: toc; margin-bottom: 8px; }
.toc-box a { font-family: 'Inter', sans-serif; font-size: 14.5px; color: var(--muted); text-decoration: none; display: flex; gap: 10px; transition: color .2s; }
.toc-box a::before { content: counter(toc, decimal-leading-zero); color: var(--gold-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.toc-box a:hover, .toc-box a.active { color: var(--gold); }

.author-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 30px 0;
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--foil); color: #20160a; display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 22px;
}
.author-card .a-name { font-weight: 800; color: var(--ivory); font-size: 15.5px; }
.author-card .a-bio { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 8px 0 4px; }
.tag-chip {
  font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px;
  transition: all .2s;
}
.tag-chip:hover { border-color: var(--gold); color: var(--gold); }

.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 26px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-row .share-label { font-size: 13px; color: var(--dim); font-weight: 600; margin-right: 4px; }
.share-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; text-decoration: none; transition: all .2s; font-size: 15px;
}
.share-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.share-btn.copied { border-color: var(--emerald); color: var(--emerald); }

.story-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 36px 0 10px; }
.story-nav-item {
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; text-decoration: none; color: inherit; transition: all .25s;
}
.story-nav-item:hover { border-color: rgba(255,210,74,.3); transform: translateY(-2px); }
.story-nav-item .sn-dir { font-size: 12px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.story-nav-item .sn-title { font-family: 'Fraunces', serif; font-size: 16px; color: var(--ivory); margin-top: 6px; line-height: 1.25; }
.story-nav-item.next { text-align: right; }
@media (max-width: 560px) { .story-nav { grid-template-columns: 1fr; } .story-nav-item.next { text-align: left; } }

/* ===================================================================
   FAQ ACCORDION
   =================================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--panel2), var(--panel)); margin-bottom: 14px; overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: rgba(255,210,74,.3); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 16.5px; font-weight: 700; color: var(--ivory);
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .faq-mark { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 18px; transition: transform .3s; }
.faq-item.open .faq-mark { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-a-inner a { color: var(--gold); }

/* ===================================================================
   FILTER TABS (stories hub)
   =================================================================== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-tab {
  font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 700; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--muted); transition: all .22s;
}
.filter-tab:hover { color: var(--ivory); border-color: rgba(255,255,255,.2); }
.filter-tab.active { background: var(--foil-btn); color: #20160a; border-color: transparent; box-shadow: var(--shadow-gold); }
.story-card.hide { display: none; }

/* ===================================================================
   CALCULATORS / TOOLS
   =================================================================== */
.calc {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 20px; padding: 30px; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.calc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--foil); opacity: .8; }
.calc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.calc-head .c-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--gold-soft); border: 1px solid rgba(255,210,74,.2); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.calc-head h3 { font-family: 'Fraunces', serif; font-size: 22px; color: var(--ivory); }
.calc > p.c-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; }
.calc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
.calc-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.calc-field input, .calc-field select {
  width: 100%; background: var(--noir); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; color: #fff; font-size: 16px; font-family: inherit; font-variant-numeric: tabular-nums;
}
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,210,74,.12); }
.calc-out { margin-top: 22px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.calc-stat { background: var(--noir); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.calc-stat .cs-num { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.calc-stat .cs-label { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }
.calc-note { margin-top: 18px; font-size: 13px; color: var(--dim); line-height: 1.6; }
.calc-bar { height: 12px; border-radius: 999px; background: var(--noir); border: 1px solid var(--line); overflow: hidden; margin-top: 6px; }
.calc-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold)); transition: width .4s var(--ease); }

/* ===================================================================
   ARTICLE BANNER & CARD IMAGES
   =================================================================== */
.banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; display: block;
}
.article-banner::after { /* readability veil over the image */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,11,16,0) 55%, rgba(8,11,16,.35) 100%);
}
.story-thumb .thumb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .92; transition: transform .5s var(--ease);
}
.story-card:hover .thumb-img { transform: scale(1.06); }
.story-thumb .cat, .story-thumb .suit-watermark { z-index: 2; }

/* ===================================================================
   GLOSSARY
   =================================================================== */
.gloss-search-wrap { max-width: 640px; margin: 0 auto 26px; position: relative; }
.gloss-search-wrap::before { content: '🔎'; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .7; }
.gloss-search { width: 100%; background: var(--noir); border: 1px solid var(--line); border-radius: 999px; padding: 15px 22px 15px 50px; color: #fff; font-size: 16px; font-family: inherit; }
.gloss-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,210,74,.12); }
.gloss-az { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 34px; }
.gloss-az a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 700; font-size: 13.5px; transition: all .2s; }
.gloss-az a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.gloss-group { margin-bottom: 32px; scroll-margin-top: 90px; }
.gloss-group > h2 { font-family: 'Fraunces', serif; font-size: 30px; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.gloss-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gloss-item { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: border-color .2s; }
.gloss-item:hover { border-color: rgba(255,210,74,.22); }
.gloss-term { font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 800; color: var(--ivory); margin-bottom: 6px; }
.gloss-def { font-size: 14px; color: var(--muted); line-height: 1.6; }
.gloss-def a { color: var(--gold); }
.gloss-item.hide, .gloss-group.hide { display: none; }
.gloss-empty { text-align: center; color: var(--dim); padding: 40px 20px; display: none; font-size: 16px; }
.gloss-empty.show { display: block; }

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
