/* Nightluck casino — emerald felt, burnished gold, ivory. Tokens follow the brand design system. */
:root {
  color-scheme: dark;
  --emerald-950: #04100b;
  --emerald-900: #07190f;
  --emerald-850: #0a2316;
  --emerald-800: #10311f;
  --emerald-700: #154129;
  --emerald-600: #1e5637;
  --emerald-500: #2a7048;
  --gold-100: #fff4cf;
  --gold-200: #f2d489;
  --gold-300: #ebc873;
  --gold-400: #d9ae50;
  --gold-500: #c4953a;
  --gold-600: #a07428;
  --gold-700: #7a551b;
  --gold-800: #6e4e17;
  --ivory: #f7f1e3;
  --parchment: #d9d1bc;
  --muted: #c9c2ae;
  --sage: #9fae9f;
  --ink: #1e1406;
  --ruby: #c62839;
  --sapphire: #2e5fcb;
  --line: rgba(217, 174, 80, .24);
  --line-strong: rgba(217, 174, 80, .5);
  --metal: linear-gradient(180deg, #fff1c4 0%, #f0cf7a 30%, #d3a447 62%, #b98a34 84%, #e2be6c 100%);
  --metal-hover: linear-gradient(180deg, #fff7dc 0%, #f6db90 30%, #e0b458 62%, #c79a42 84%, #f0cf7a 100%);
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shell: 1248px;
  --content: 1120px;
  --measure: 820px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --caps: Cinzel, "Trajan Pro", Georgia, "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--emerald-950); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-200); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
.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; }
.skip-link { position: fixed; z-index: 200; left: 16px; top: -80px; padding: 10px 16px; border-radius: 10px; color: var(--ink); background: var(--gold-200); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 16, 11, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.header-shell {
  width: min(calc(100% - 48px), var(--shell));
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { width: 168px; height: auto; }
.navigation-shell { display: flex; align-items: center; gap: 28px; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--parchment);
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .25s var(--ease-out);
}
.nav-link:hover { color: var(--gold-100); background: rgba(217, 174, 80, .1); transform: translateY(-2px); }
.nav-link[aria-current="page"] { color: var(--gold-300); background: rgba(217, 174, 80, .12); box-shadow: inset 0 0 0 1px rgba(217, 174, 80, .38); }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.header-cta, .primary-cta, .page-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  overflow: hidden;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.header-cta, .primary-cta {
  color: var(--ink);
  background: var(--metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(90, 60, 15, .45), 0 0 0 1px var(--gold-800), 0 8px 22px rgba(196, 149, 58, .28);
}
.header-cta { padding: 0 22px; font-size: .9rem; font-weight: 800; }
.primary-cta {
  min-height: 56px;
  padding: 0 28px;
  font-family: var(--caps);
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.page-tag {
  min-height: 56px;
  padding: 0 24px;
  border: 1.5px solid var(--gold-400);
  color: var(--gold-300);
  background: rgba(4, 16, 11, .4);
  font-family: var(--caps);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.header-cta:hover, .primary-cta:hover { background: var(--metal-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(90, 60, 15, .4), 0 0 0 1px var(--gold-800), 0 0 30px rgba(235, 200, 115, .5); transform: translateY(-2px); }
.page-tag:hover { color: var(--gold-100); background: rgba(217, 174, 80, .12); transform: translateY(-2px); }
.header-cta:active, .primary-cta:active, .page-tag:active { transform: translateY(1px) scale(.98); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 48px), var(--shell));
  margin: 36px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 520px at 8% -6%, rgba(42, 112, 72, .45), transparent 62%),
    radial-gradient(620px 520px at 104% 104%, rgba(30, 86, 55, .38), transparent 70%),
    var(--emerald-900);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 244, 207, .08);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(217, 174, 80, .14);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.hero-card {
  min-width: 0;
  padding: clamp(40px, 4.6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.breadcrumbs { margin-bottom: 22px; font-size: .84rem; }
.breadcrumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.breadcrumbs li { color: var(--sage); }
.breadcrumbs li + li::before { content: "›"; margin-right: 10px; color: var(--gold-500); }
.breadcrumbs a { display: inline-flex; min-height: 32px; align-items: center; color: var(--parchment); text-decoration: underline; text-decoration-color: rgba(217, 174, 80, .45); text-underline-offset: 4px; }
.breadcrumbs a:hover { color: var(--gold-100); }
.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-400);
  font-family: var(--caps);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; flex: 0 0 auto; background: linear-gradient(90deg, rgba(196, 149, 58, 0), var(--gold-500)); }
.hero h1 {
  margin: 0;
  max-width: 680px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.015em;
}
.hero h1::after { content: ""; display: block; width: 144px; height: 1px; margin-top: 24px; background: linear-gradient(90deg, var(--gold-500), rgba(196, 149, 58, 0)); }
.hero-intro p { margin: 22px 0 0; max-width: 620px; color: var(--parchment); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; }
.hero-intro strong { color: var(--gold-200); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.age-note { margin: 18px 0 0; color: var(--sage); font-size: .8rem; font-weight: 700; letter-spacing: .03em; }
.hero-visual {
  position: relative;
  min-width: 0;
  padding: 24px 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 60% 45%, rgba(42, 112, 72, .38), transparent 68%), rgba(5, 21, 13, .72);
  border-left: 1px solid rgba(217, 174, 80, .18);
}
.hero-visual .media-card { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.hero-visual .media-card img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(217, 174, 80, .34);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
  transform: perspective(1000px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform .5s var(--ease-out);
}

/* ---------- lucky wheel (home first screen; built by app.js from the design's Hero Games · A) ---------- */
.gold-text { background-image: linear-gradient(180deg, #fff4cf 0%, #f2d489 30%, #c4953a 58%, #f0d08a 80%, #a07428 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero.has-wheel { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.hero.has-wheel .hero-card { padding: clamp(32px, 3.5vw, 50px); }
.hero.has-wheel h1 { font-size: clamp(2.1rem, 3.2vw, 3.25rem); }
.hero-visual.is-stage { padding: clamp(20px, 2.2vw, 30px); }
.wheel-stage { position: relative; width: 100%; aspect-ratio: 100 / 94; }
.wheel-stage > .media-card { position: absolute; top: 0; right: 0; width: 86%; }
.wheel-stage > .lucky-wheel { position: absolute; left: 0; bottom: 0; width: 55%; }
.wheel-stage > .wheel-panel { position: absolute; left: 58%; right: -1%; top: 54%; bottom: -2%; }

.lucky-wheel { container-type: inline-size; aspect-ratio: 1; z-index: 2; }
.wheel-aura, .wheel-won-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.wheel-aura { inset: -6.7%; background: radial-gradient(circle, rgba(235, 200, 115, .2) 0%, rgba(235, 200, 115, 0) 62%); }
.wheel-won-glow { inset: -15%; opacity: 0; background: radial-gradient(circle, rgba(255, 244, 207, .32) 0%, rgba(255, 244, 207, 0) 58%); transition: opacity .7s var(--ease-out); }
.lucky-wheel[data-state="won"] .wheel-won-glow { opacity: 1; }
.wheel-sway { position: absolute; inset: 3.333%; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .6)); filter: drop-shadow(0 5cqw 8cqw rgba(0, 0, 0, .6)); }
.lucky-wheel[data-state="idle"] .wheel-sway { animation: nl-sway 4.8s ease-in-out infinite; }
.wheel-sway svg { position: absolute; display: block; }
.wheel-frame { inset: 0; width: 100%; height: 100%; }
.wheel-rotor { position: absolute; inset: 3.93%; will-change: transform; }
.wheel-rotor svg { position: static; width: 100%; height: 100%; }
.wheel-highlight { inset: 3.93%; width: 92.14%; height: 92.14%; opacity: 0; pointer-events: none; }
.lucky-wheel[data-state="won"] .wheel-highlight { animation: nl-win 850ms ease-in-out infinite alternate; }
.wheel-bulb { animation: nl-bulb 1.4s steps(1, end) infinite; }
.wheel-bulb.alt { animation-delay: -.7s; }
.lucky-wheel[data-state="spinning"] .wheel-bulb { animation-duration: .28s; }
.lucky-wheel[data-state="spinning"] .wheel-bulb.alt { animation-delay: -.14s; }
.lucky-wheel[data-state="won"] .wheel-bulb { animation-duration: .6s; }
.lucky-wheel[data-state="won"] .wheel-bulb.alt { animation-delay: -.3s; }
.wheel-pointer { position: absolute; z-index: 3; left: 44.667%; top: -1%; width: 10.667%; height: 14%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); pointer-events: none; }
.wheel-pointer-arm { width: 100%; height: 100%; transform-origin: 50% 28.6%; }
.wheel-pointer-arm svg { display: block; width: 100%; height: 100%; }
.wheel-pointer-arm.tick-fast { animation: nl-tick 90ms linear infinite; }
.wheel-pointer-arm.tick-mid { animation: nl-tick 180ms ease-in-out infinite; }
.wheel-pointer-arm.tick-slow { animation: nl-tick 380ms ease-in-out infinite; }
.wheel-ping { position: absolute; left: 39%; top: 39%; width: 22%; height: 22%; border: 2px solid var(--gold-300); border-radius: 50%; opacity: 0; pointer-events: none; }
.lucky-wheel[data-state="idle"] .wheel-ping { animation: nl-ping 1.9s cubic-bezier(0, 0, .2, 1) infinite; }
.lucky-wheel[data-state="idle"] .wheel-ping.late { animation-delay: .95s; }
.wheel-hub {
  position: absolute;
  z-index: 2;
  left: 39%;
  top: 39%;
  width: 22%;
  height: 22%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--metal);
  font-family: var(--caps);
  font-size: 20px;
  font-size: 4.67cqw;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), inset 0 -4px 0 rgba(90, 60, 15, .5), 0 0 0 4px var(--emerald-900), 0 0 0 5.5px var(--gold-500), 0 10px 24px rgba(0, 0, 0, .6);
  box-shadow: inset 0 .33cqw 0 rgba(255, 255, 255, .8), inset 0 -.67cqw 0 rgba(90, 60, 15, .5), 0 0 0 1cqw var(--emerald-900), 0 0 0 1.33cqw var(--gold-500), 0 2cqw 5cqw rgba(0, 0, 0, .6);
  transition: transform 180ms var(--ease-out), filter .3s ease;
}
.wheel-hub:hover { transform: scale(1.06); }
.wheel-hub:active { transform: scale(.97); }
.wheel-hub:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 6px; border-radius: 50%; }
.wheel-hub[aria-disabled="true"], .wheel-spin-btn[aria-disabled="true"] { filter: saturate(.35) brightness(.75); cursor: default; transform: none; }
.wheel-coins { position: absolute; z-index: 4; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.wheel-coins > span { position: absolute; left: 0; top: 0; transform: rotate(var(--a)); }
.wheel-coins i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff4cf 0%, #ebc873 35%, #b98a34 75%, #7a551b 100%); box-shadow: inset 0 0 0 2px rgba(122, 85, 27, .6); animation: nl-coin 1300ms cubic-bezier(.15, .75, .3, 1) both; }

.wheel-panel { z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.wheel-pre, .wheel-won { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wheel-pre[hidden], .wheel-won[hidden] { display: none; }
.wheel-kicker { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--gold-400); font-family: var(--caps); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.wheel-kicker::before { content: ""; width: 20px; height: 1px; flex: 0 0 auto; background: linear-gradient(90deg, rgba(196, 149, 58, 0), var(--gold-500)); }
.wheel-title { margin: 0; font-family: var(--caps); font-size: clamp(1.02rem, 1.45vw, 1.4rem); font-weight: 700; line-height: 1.16; text-transform: uppercase; }
.wheel-value { margin: 0; padding-right: 6px; font-family: var(--serif); font-size: clamp(3rem, 4.6vw, 4.6rem); font-weight: 900; line-height: .95; letter-spacing: -.01em; }
.wheel-won-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.wheel-spin-btn, .wheel-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  overflow: hidden;
  border-radius: 999px;
  font-family: var(--caps);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .25s ease, background-color .25s ease, color .25s ease, filter .3s ease;
}
.wheel-spin-btn { border: 1.5px solid var(--gold-400); color: var(--gold-300); background: rgba(4, 16, 11, .45); }
.wheel-spin-btn:hover { color: var(--gold-100); background: rgba(217, 174, 80, .12); }
.wheel-cta { border: 0; color: var(--ink); background: var(--metal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(90, 60, 15, .45), 0 0 0 1px var(--gold-800), 0 8px 22px rgba(196, 149, 58, .28); }
.wheel-cta:hover { background: var(--metal-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(90, 60, 15, .4), 0 0 0 1px var(--gold-800), 0 0 30px rgba(235, 200, 115, .5); }
.wheel-cta:active, .wheel-spin-btn:active { transform: translateY(1px) scale(.98); }
.wheel-cta::after, .wheel-spin-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 28%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); transform: translateX(-160%) skewX(-20deg); animation: nl-shine 3.4s ease-in-out infinite; pointer-events: none; }
.wheel-spin-btn::after { background: linear-gradient(90deg, rgba(255, 244, 207, 0), rgba(255, 244, 207, .22), rgba(255, 244, 207, 0)); }
.wheel-spin-btn[aria-disabled="true"]::after { animation: none; opacity: 0; }
.wheel-replay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; color: var(--sage); background: none; font-size: .88rem; font-weight: 700; cursor: pointer; }
.wheel-replay:hover { color: var(--ivory); }
.wheel-replay svg { width: 17px; height: 17px; flex: 0 0 auto; }
.wheel-won > * { animation: nl-rise .7s var(--ease-out) both; }
.wheel-won > :nth-child(2) { animation-delay: 120ms; }
.wheel-won > :nth-child(3) { animation-delay: 240ms; }

/* ---------- content ---------- */
.content-shell { width: min(calc(100% - 48px), var(--content)); margin: 0 auto 96px; }
.content-note {
  margin: 0 0 28px;
  padding: clamp(24px, 4vw, 40px) clamp(22px, 4.5vw, 52px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(16, 49, 31, .9), rgba(10, 35, 22, .9));
  box-shadow: 0 12px 38px rgba(0, 0, 0, .24);
}
.content-note p { margin: 0 0 1em; color: var(--parchment); font-size: 1.04rem; }
.content-note p:last-child { margin-bottom: 0; }
.article-body {
  position: relative;
  padding: clamp(28px, 5.5vw, 72px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 49, 31, .88) 0%, rgba(10, 35, 22, .9) 100%);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 244, 207, .05);
}
.article-body > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.article-body > .media-card, .article-body > .table-wrap, .article-body > .related { max-width: 100%; }
.article-body h2 {
  position: relative;
  margin-top: 2.1em;
  margin-bottom: .7em;
  padding-top: 26px;
  color: var(--gold-200);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.18;
}
.article-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-300), rgba(196, 149, 58, 0)); transform-origin: left; transition: transform .5s var(--ease-out); }
.article-body h2:hover::before { transform: scaleX(1.8); }
.article-body > h2:first-child { margin-top: 0; }
.article-body h3 {
  margin-top: 1.9em;
  margin-bottom: .6em;
  padding-left: 16px;
  border-left: 2px solid rgba(217, 174, 80, .55);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.28;
}
.article-body h4 { margin-top: 1.6em; margin-bottom: .5em; color: var(--gold-300); font-size: 1.1rem; }
.article-body p { margin-top: 0; margin-bottom: 1.1em; color: var(--parchment); }
.article-body strong { color: var(--ivory); }
.article-body p a, .article-body li a {
  color: var(--gold-300);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(235, 200, 115, .55);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  background: linear-gradient(var(--gold-300), var(--gold-300)) left bottom / 0 2px no-repeat;
  transition: color .2s ease, background-size .35s var(--ease-out), text-decoration-color .2s ease;
}
.article-body p a:hover, .article-body li a:hover { color: var(--gold-100); text-decoration-color: transparent; background-size: 100% 2px; }
.article-body ul, .article-body ol { margin-top: 1.2em; margin-bottom: 1.4em; padding: 0; list-style: none; display: grid; gap: 12px; }
.article-body ul li { position: relative; padding-left: 30px; color: var(--parchment); }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold-400); background: rgba(217, 174, 80, .18); }
.article-body ol { counter-reset: nl-step; }
.article-body ol li { position: relative; padding-left: 44px; color: var(--parchment); counter-increment: nl-step; }
.article-body ol li::before { content: counter(nl-step); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--gold-500); border-radius: 50%; color: var(--gold-200); font-family: var(--serif); font-size: .9rem; font-weight: 700; line-height: 1; }
.table-wrap { margin-top: 1.8em; margin-bottom: 1.9em; overflow-x: auto; border: 1px solid rgba(217, 174, 80, .3); border-radius: 14px; background: rgba(4, 16, 11, .38); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 15px 18px; border-bottom: 1px solid rgba(217, 174, 80, .16); text-align: left; vertical-align: top; }
.table-wrap th { color: var(--gold-200); background: rgba(30, 86, 55, .66); font-family: var(--serif); font-size: .96rem; font-weight: 700; }
.table-wrap td { color: var(--parchment); font-size: .95rem; transition: background-color .2s ease, color .2s ease; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover td { background: rgba(217, 174, 80, .08); color: var(--ivory); }
.article-body > .media-card {
  margin-top: 2.6em;
  margin-bottom: 2.6em;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(217, 174, 80, .48);
  border-radius: 20px;
  background: var(--emerald-900);
  box-shadow: var(--shadow);
}
.article-body > .media-card img { width: 100%; height: auto; border-radius: 13px; transition: transform .8s var(--ease-out); }
.article-body > .media-card:hover img { transform: scale(1.035); }

/* related + end CTA */
.related { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line); }
.related-title { margin: 0 0 20px; color: var(--gold-400); font-family: var(--caps); font-size: .84rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.related-card {
  position: relative;
  padding: 26px 58px 26px 26px;
  border: 1px solid rgba(217, 174, 80, .28);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(30, 86, 55, .5), rgba(7, 25, 15, .8));
  transition: transform .35s var(--ease-out), border-color .3s ease, box-shadow .35s ease;
}
.related-card a { display: block; color: var(--ivory); font-family: var(--serif); font-size: 1.24rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.related-card a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.related-card a::after { content: "→"; position: absolute; right: 22px; top: 24px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(217, 174, 80, .5); border-radius: 50%; color: var(--gold-300); font-family: var(--sans); font-size: 1rem; transition: transform .35s var(--ease-out), background-color .3s ease, color .3s ease; }
.related-card p { margin: 10px 0 0; color: var(--sage); font-size: .95rem; line-height: 1.55; }
.related-card:hover { transform: translateY(-6px); border-color: rgba(217, 174, 80, .6); box-shadow: 0 18px 40px rgba(0, 0, 0, .38); }
.related-card:hover a { color: var(--gold-100); }
.related-card:hover a::after { transform: translateX(4px); color: var(--ink); background: var(--gold-300); }
.related-card a:focus-visible { outline: none; }
.related-card:focus-within { outline: 3px solid var(--gold-200); outline-offset: 3px; }
.article-end { margin-top: 48px; display: flex; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #030d08; }
.footer-shell { width: min(calc(100% - 48px), var(--shell)); margin: 0 auto; padding: 54px 0 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px 48px; align-items: start; }
.footer-brand .brand img { width: 150px; }
.footer-copy { max-width: 620px; margin: 14px 0 0; color: var(--sage); font-size: .9rem; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--parchment); font-size: .92rem; font-weight: 700; text-decoration: none; border-radius: 999px; transition: color .2s ease, background-color .2s ease; }
.footer-nav a:hover { color: var(--gold-100); background: rgba(217, 174, 80, .1); }
.footer-bottom { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(217, 174, 80, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--sage); font-size: .82rem; }

/* ---------- service pages (404, CTA fallback) ---------- */
.service-shell { min-height: 60vh; display: grid; place-items: center; padding: 56px 0; }
.service-card { width: min(100%, 760px); padding: clamp(34px, 7vw, 64px); text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(16, 49, 31, .96), rgba(10, 35, 22, .96)); box-shadow: var(--shadow); }
.service-card .eyebrow { justify-content: center; }
.service-card h1 { margin: 0 0 18px; color: var(--gold-200); font-family: var(--serif); font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.1; }
.service-card p { margin: 0 auto 26px; max-width: 560px; color: var(--parchment); }
.service-card ul { margin: 0; display: grid; gap: 8px; }
.service-card li a { display: inline-flex; min-height: 44px; align-items: center; color: var(--gold-300); font-weight: 700; text-underline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .header-shell { width: min(calc(100% - 32px), var(--shell)); min-height: 72px; }
  .brand img { width: 150px; }
  .menu-toggle {
    position: relative;
    z-index: 3;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--gold-200);
    background: var(--emerald-800);
    cursor: pointer;
  }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 21px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease-out), background-color .2s ease; }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -7px; }
  .menu-lines::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-7px) rotate(-45deg); }
  .navigation-shell {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 12px 16px 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(4, 16, 11, .985);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .44);
  }
  .navigation-shell[data-open="true"] { display: flex; }
  .desktop-nav { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { min-height: 50px; padding: 0 16px; border-radius: 12px; }
  .nav-link:hover { transform: translateX(4px); }
  .navigation-shell[data-open="true"] .nav-link, .navigation-shell[data-open="true"] .header-cta { animation: nl-drop .38s var(--ease-out) both; }
  .navigation-shell[data-open="true"] .nav-link:nth-child(2) { animation-delay: 50ms; }
  .navigation-shell[data-open="true"] .nav-link:nth-child(3) { animation-delay: 100ms; }
  .navigation-shell[data-open="true"] .nav-link:nth-child(4) { animation-delay: 150ms; }
  .navigation-shell[data-open="true"] .header-cta { animation-delay: 180ms; }
  .header-cta { min-height: 50px; }
  html:not(.js) .header-shell { flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .navigation-shell { position: static; width: 100%; display: flex; padding: 0; border: 0; box-shadow: none; background: none; }
  .hero { width: min(calc(100% - 32px), var(--shell)); margin-top: 20px; margin-bottom: 52px; grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; padding: 14px 14px 12px; border-left: 0; border-bottom: 1px solid rgba(217, 174, 80, .2); }
  .hero-visual .media-card img { border-radius: 14px; }
  .hero-card { padding: 30px 24px 34px; }
  .hero::after { display: none; }
  .content-shell, .footer-shell { width: min(calc(100% - 32px), var(--content)); }
  /* home with the wheel: the wheel takes the photo's place; H1, wheel and CTA share the first screen */
  .hero.has-wheel { display: flex; flex-direction: column; }
  .hero.has-wheel .hero-card { display: contents; }
  .hero.has-wheel .eyebrow { order: 1; margin: 26px 24px 14px; }
  .hero.has-wheel h1 { order: 2; margin: 0 24px; }
  .hero.has-wheel .hero-visual { order: 3; padding: 26px 20px 4px; border: 0; background: none; }
  .hero.has-wheel .hero-actions { order: 4; width: auto; margin: 18px 24px 0; }
  .hero.has-wheel .hero-intro { order: 5; margin: 0 24px; }
  .hero.has-wheel .age-note { order: 6; margin: 18px 24px 30px; }
  .hero.has-wheel h1::after { margin-top: 18px; }
  .wheel-stage { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .wheel-stage > .media-card { display: none; }
  .wheel-stage > .lucky-wheel { position: relative; left: auto; bottom: auto; width: min(100%, 300px); }
  .wheel-stage > .wheel-panel { position: static; width: 100%; }
  .wheel-pre, .wheel-won { align-items: center; text-align: center; }
  .wheel-pre .wheel-kicker, .wheel-pre .wheel-spin-btn { display: none; }
  .wheel-won-actions { justify-content: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(1.95rem, 9vw, 2.6rem); }
  .eyebrow { gap: 10px; font-size: .72rem; letter-spacing: .18em; }
  .eyebrow::before { width: 26px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .primary-cta, .page-tag { width: 100%; white-space: normal; text-align: center; }
  .hero .primary-cta, .hero .page-tag { min-height: 54px; padding: 0 20px; }
  .article-end .primary-cta { width: auto; padding: 0 26px; }
  .article-body { border-radius: 18px; }
  .article-body > .media-card { margin-left: -6px; margin-right: -6px; padding: 5px; border-radius: 15px; }
  .article-body > .media-card img { border-radius: 10px; }
  .related-card { padding: 22px 54px 22px 20px; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; margin-left: -12px; }
  .footer-bottom { grid-column: 1; }
}

/* ==========================================================================
   Motion & interaction layer
   transform/opacity only; hidden start states are added by JS; reduced motion stops everything.
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% 6%, rgba(42, 112, 72, .3), transparent 62%),
    radial-gradient(820px 640px at 96% 38%, rgba(30, 86, 55, .26), transparent 70%),
    radial-gradient(700px 520px at 40% 100%, rgba(196, 149, 58, .07), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 244, 207, .012) 0 2px, transparent 2px 7px);
  animation: nl-felt-drift 48s ease-in-out infinite alternate;
  will-change: transform;
}

/* hero entrance */
.js .hero-card > * { animation: nl-rise .8s var(--ease-out) both; }
.js .hero-card > :nth-child(2) { animation-delay: 70ms; }
.js .hero-card > :nth-child(3) { animation-delay: 140ms; }
.js .hero-card > :nth-child(4) { animation-delay: 210ms; }
.js .hero-card > :nth-child(5) { animation-delay: 280ms; }
.js .hero-card > :nth-child(6) { animation-delay: 340ms; }
.js .hero-visual .media-card { animation: nl-fade-in .9s var(--ease-out) both, nl-float 7s ease-in-out 1s infinite; }
.js .hero.has-wheel .hero-visual .media-card { animation: nl-fade-in .9s var(--ease-out) both; }

/* CTA shine + pulse */
.header-cta::after, .primary-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
  transform: translateX(-160%) skewX(-20deg);
  animation: nl-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.header-cta::after { animation-delay: 1.6s; }
.hero-actions .primary-cta { overflow: visible; isolation: isolate; }
.hero-actions .primary-cta::after { content: none; }
.hero-actions .primary-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 0 2px rgba(235, 200, 115, .75);
  animation: nl-pulse-ring 2.4s cubic-bezier(0, 0, .2, 1) infinite;
  pointer-events: none;
}

/* header after scroll */
.site-header.is-scrolled { background: rgba(4, 16, 11, .96); border-bottom-color: rgba(217, 174, 80, .34); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }

/* reading progress + back to top */
.reading-progress { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-200), var(--gold-400)); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.back-to-top {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 18px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--gold-800);
  border-radius: 50%;
  color: var(--ink);
  background: var(--metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 26px rgba(0, 0, 0, .45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top.is-visible:hover { transform: translateY(-3px); }
.back-to-top:active { transform: scale(.94); }

/* scroll reveal (figures, related cards, end CTA only) */
.will-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.will-reveal.is-revealed { opacity: 1; transform: none; }
.related-grid .related-card.will-reveal:nth-child(2) { transition-delay: 90ms; }
.related-grid .related-card.will-reveal:nth-child(3) { transition-delay: 180ms; }

@keyframes nl-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes nl-fade-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes nl-felt-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-3%, 2.5%, 0); } }
@keyframes nl-shine { 0% { transform: translateX(-160%) skewX(-20deg); } 55%, 100% { transform: translateX(520%) skewX(-20deg); } }
@keyframes nl-pulse-ring { 0% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(1.14, 1.4); } }
@keyframes nl-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes nl-sway { 0%, 72%, 100% { transform: rotate(0deg); } 78% { transform: rotate(-5deg); } 85% { transform: rotate(3.5deg); } 91% { transform: rotate(-1.5deg); } 96% { transform: rotate(.5deg); } }
@keyframes nl-bulb { 0% { opacity: 1; } 50% { opacity: .22; } }
@keyframes nl-ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes nl-tick { 0%, 100% { transform: rotate(0deg); } 35% { transform: rotate(-16deg); } }
@keyframes nl-win { from { opacity: .3; } to { opacity: 1; } }
@keyframes nl-coin { 0% { opacity: 0; transform: translateY(var(--from, -40px)) scale(.3); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--to, -270px)) scale(var(--end, 1)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  body::before, .header-cta::after, .primary-cta::after, .hero-actions .primary-cta::before, .wheel-ping, .wheel-bulb, .wheel-sway, .wheel-cta::after, .wheel-spin-btn::after, .wheel-coins i { animation: none !important; }
  .wheel-coins i { opacity: 0; }
  .will-reveal { opacity: 1; transform: none; }
}
