/* ==========================================================
   91 Club Colour Game — site styles
   Cream canvas · maroon ink · coral red · gold coins
   ========================================================== */

:root {
  --cream: #fff8f4;
  --cream-2: #ffefe7;
  --cream-3: #ffe3d8;
  --paper: #ffffff;
  --ink: #2b0b12;
  --ink-2: #4d2730;
  --muted: #7a5a61;
  --coral: #ee4b4f;
  --coral-2: #f6716a;
  --coral-3: #ff9a8b;
  --red: #d42a3f;
  --red-deep: #a51530;
  --gold: #f2b233;
  --gold-2: #ffd977;
  --gold-ink: #7a4a00;
  --line: rgba(43, 11, 18, 0.09);
  --line-2: rgba(43, 11, 18, 0.16);

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 32px;
  --r-xl: 44px;

  --sh-1: 0 1px 2px rgba(43, 11, 18, .05), 0 4px 14px rgba(43, 11, 18, .05);
  --sh-2: 0 2px 6px rgba(43, 11, 18, .05), 0 18px 44px rgba(120, 20, 30, .10);
  --sh-3: 0 30px 80px rgba(150, 25, 40, .22);
  --sh-coral: 0 12px 30px rgba(238, 75, 79, .38);

  --f-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* legacy aliases used by older pages */
  --muted-legacy: var(--muted);
  --green-deep: var(--red);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 88px; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--coral); color: #fff; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.15; }
p { text-wrap: pretty; }
em.hl, .hl { font-style: normal; color: var(--coral); }
.gold-txt { color: #d99800; }

/* ---------- small atoms ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--coral);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--sh-1);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #23c06b; box-shadow: 0 0 0 4px rgba(35,192,107,.18); animation: ping 2.2s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 7px rgba(35,192,107,0); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--cream-2); color: var(--red); border: 1px solid rgba(238,75,79,.18);
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  background: var(--bg); color: var(--fg); white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-coral { --bg: linear-gradient(135deg, var(--coral-2), var(--red)); background: var(--bg); box-shadow: var(--sh-coral); }
.btn-coral:hover { box-shadow: 0 18px 40px rgba(238,75,79,.45); }
.btn-ghost { --bg: var(--paper); --fg: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { --bg: #fff; --fg: var(--red); box-shadow: 0 12px 30px rgba(80, 0, 10, .25); }

.btn-play {
  --bg: #120407; padding: 11px 24px 11px 18px; gap: 12px; border-radius: 16px;
  box-shadow: 0 14px 34px rgba(43, 11, 18, .32); border: 1px solid rgba(255,255,255,.08);
}
.btn-play svg { width: 26px; height: 26px; }
.btn-play span { display: grid; text-align: left; line-height: 1.1; }
.btn-play small { font-size: .62rem; font-weight: 600; letter-spacing: .14em; opacity: .7; }
.btn-play strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(255, 248, 244, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; color: var(--ink); letter-spacing: -.03em; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 6px 10px rgba(212, 42, 63, .3)); }
.brand b { color: var(--coral); font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--cream-2); color: var(--ink); }
.nav .btn { padding: 11px 20px; font-size: .9rem; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); place-items: center; margin-left: auto; }
.burger i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger i + i { margin-top: 4px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer {
  position: fixed; inset: 74px 0 auto 0; z-index: 49; background: var(--cream);
  border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 22px;
  display: grid; gap: 2px; transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .25s; box-shadow: var(--sh-2);
}
.drawer.open { transform: none; opacity: 1; pointer-events: auto; }
.drawer a { padding: 13px 6px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer .btn { margin-top: 14px; border: 0; color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 36px 0 0; isolation: isolate; }
.hero::before { /* soft colour wash */
  content: ""; position: absolute; inset: -80px 0 0; z-index: -2;
  background:
    radial-gradient(600px 420px at 85% 18%, rgba(255, 154, 139, .38), transparent 70%),
    radial-gradient(520px 380px at 8% 60%, rgba(255, 217, 119, .30), transparent 70%);
}
.hero-dots { /* tile grid texture */
  position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(rgba(43, 11, 18, .09) 1.2px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero-copy { padding-bottom: 80px; }
.hero h1 { margin: 22px 0 22px; }
.h1-kicker { display: block; font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.01em; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.h1-big { display: block; font-size: clamp(4rem, 10.5vw, 8.4rem); font-weight: 900; line-height: .9; letter-spacing: -.055em; }
.h1-big em { font-style: normal; color: var(--coral); position: relative; }
.h1-big em::after { /* gold underline swoosh */
  content: ""; position: absolute; left: 4%; right: 8%; bottom: .02em; height: .1em;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px;
  transform-origin: left; animation: swoosh 1.1s .5s var(--ease) both;
}
@keyframes swoosh { from { transform: scaleX(0); } }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34em; color: var(--ink-2); }
.lead strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: #1fb463; }

.hero-art { position: relative; align-self: end; }
.stage {
  position: relative; border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden;
  aspect-ratio: 640 / 841; background: #fdf1ec;
}
.stage img { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; }
.orb {
  position: absolute; z-index: 3; width: 92px; height: 92px; border-radius: 26px;
  background: #fff; display: grid; place-items: center; box-shadow: var(--sh-2);
  animation: bob 6s ease-in-out infinite;
}
.orb img { width: 62px; height: 62px; }
.orb.o1 { left: -34px; top: 16%; }
.orb.o2 { right: -22px; top: 46%; width: 76px; height: 76px; border-radius: 22px; animation-delay: -2s; }
.orb.o2 img { width: 50px; height: 50px; }
.orb.o3 { left: -10px; bottom: 18%; width: 70px; height: 70px; border-radius: 20px; animation-delay: -4s; }
.orb.o3 img { width: 46px; height: 46px; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-3deg); } }
.coin {
  position: absolute; z-index: 2; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff6cf 0 12%, #ffd977 30%, #f2b233 62%, #c98300 100%);
  box-shadow: inset -4px -6px 10px rgba(150, 90, 0, .35), 0 10px 22px rgba(200, 130, 0, .35);
  animation: bob 7s ease-in-out infinite;
}
.coin.c1 { width: 54px; height: 54px; right: 10%; top: -12px; animation-delay: -1s; }
.coin.c2 { width: 30px; height: 30px; left: 18%; top: 4%; animation-delay: -3s; }
.coin.c3 { width: 40px; height: 40px; right: -14px; bottom: 26%; animation-delay: -5s; }

/* wave + ribbon */
.wave { display: block; width: 100%; height: 90px; margin-top: -1px; }
.ribbon { background: linear-gradient(135deg, var(--coral-2), var(--red) 70%); color: #fff; position: relative; }
.ribbon-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 18px 0 46px; }
.stat strong { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; }
.stat span { font-size: .92rem; font-weight: 600; opacity: .88; }

.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 46px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--gold); font-size: .9rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 136px) 0; position: relative; }
.section.paper { background: var(--paper); }
.section.tint { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { margin: 16px 0 16px; }
.head p { font-size: 1.08rem; color: var(--muted); }

/* ---------- try-it game ---------- */
.try { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.try-copy h2 { margin: 16px 0; }
.try-copy p { color: var(--muted); font-size: 1.05rem; }
.try-steps { display: grid; gap: 12px; margin: 26px 0 30px; }
.try-steps li { display: flex; gap: 14px; align-items: center; font-weight: 600; color: var(--ink); }
.try-steps b { width: 32px; height: 32px; border-radius: 10px; background: var(--cream-2); color: var(--red); display: grid; place-items: center; font-family: var(--f-display); flex: none; }
.board {
  background: var(--ink); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--sh-3); color: #fff; position: relative; overflow: hidden;
}
.board::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(238,75,79,.45), transparent 65%); pointer-events: none; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; position: relative; }
.board-title { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.board-title small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .8rem; opacity: .6; letter-spacing: 0; }
.hud { display: flex; gap: 8px; }
.hud span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.hud .coinbadge { color: var(--gold-2); }
.timebar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 18px; position: relative; }
.timebar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--coral)); transform-origin: left; transform: scaleX(1); }
.tiles { display: grid; gap: 8px; aspect-ratio: 1; position: relative; }
.tile { border-radius: 14%; transition: transform .15s var(--ease), filter .2s; }
.tile:hover { transform: scale(.96); filter: brightness(1.04); }
.tile.hit { animation: hit .45s var(--ease); }
.tile.miss { animation: shake .35s; }
@keyframes hit { 50% { transform: scale(1.12); box-shadow: 0 0 0 4px #fff; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.board-over {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: rgba(43, 11, 18, .86); backdrop-filter: blur(6px); border-radius: var(--r-xl);
  padding: 30px; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 5;
}
.board-over.show { opacity: 1; pointer-events: auto; }
.board-over h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.board-over p { opacity: .75; margin-bottom: 22px; }
.board-over .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- games bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.gcard {
  --c1: #ff7a59; --c2: #e8432e;
  grid-column: span 3; position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: 30px; min-height: 300px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: var(--sh-2); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  isolation: isolate;
}
.gcard:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }
.gcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 260px at 100% 0%, rgba(255,255,255,.28), transparent 60%); }
.gcard::after { /* tile pattern */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(200deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%);
}
.gcard.wide { grid-column: span 4; }
.gcard.narrow { grid-column: span 2; }
.gcard.match { --c1: #ff8a5c; --c2: #e2412f; }
.gcard.memory { --c1: #8b5cf6; --c2: #4c1d95; }
.gcard.sequence { --c1: #22d3ee; --c2: #0e7490; }
.gcard.spot { --c1: #fbbf24; --c2: #c2410c; }
.gcard .gicon { position: absolute; top: 26px; right: 26px; width: 104px; height: 104px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.28)); transition: transform .6s var(--ease); }
.gcard:hover .gicon { transform: rotate(-8deg) scale(1.06); }
.gcard .tag { position: absolute; top: 26px; left: 30px; background: rgba(0,0,0,.22); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.gcard h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 8px; }
.gcard p { color: rgba(255,255,255,.88); max-width: 30em; font-size: .97rem; }
.gcard .gmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.gcard .gmeta span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.22); padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.gcard .go { position: absolute; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.gcard:hover .go { transform: rotate(-45deg); }
.gcard .go svg { width: 20px; height: 20px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px 26px; position: relative; box-shadow: var(--sh-1); transition: transform .4s var(--ease), box-shadow .4s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step .n { font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--coral); margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--muted); }
.step code { font-size: .78rem; background: var(--cream-2); padding: 2px 6px; border-radius: 6px; color: var(--red); }

/* ---------- scrollytelling ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.story-phone { position: sticky; top: 100px; height: min(78vh, 720px); align-self: start; }
.phone-card { position: relative; height: 100%; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(180deg, #fff3ee, #ffe6dd); box-shadow: var(--sh-2); }
.phone-card img { position: absolute; left: 50%; bottom: 0; width: auto; height: 100%; max-width: none; transform: translateX(-50%) scale(1.02); opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.phone-card img.on { opacity: 1; transform: translateX(-50%) scale(1); }
.chapter { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; opacity: .35; transition: opacity .5s; }
.chapter.on { opacity: 1; }
.chapter h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.04em; line-height: 1.02; margin: 14px 0 16px; font-weight: 900; }
.chapter p { color: var(--muted); font-size: 1.05rem; margin-bottom: 18px; }
.checks { display: grid; gap: 10px; margin-bottom: 22px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.chapter .inline-shot { display: none; }

/* ---------- gallery ---------- */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 26px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.drag { cursor: grabbing; scroll-snap-type: none; }
.gallery figure { flex: 0 0 clamp(220px, 24vw, 290px); scroll-snap-align: start; border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: var(--sh-2); transition: transform .5s var(--ease); }
.gallery figure:hover { transform: translateY(-6px) rotate(-.6deg); }
.gallery img { width: 100%; aspect-ratio: 9/16; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.gal-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -10px; }
.gal-nav button { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.gal-nav button:hover { background: var(--ink); color: #fff; }
.gal-nav svg { width: 20px; height: 20px; }

/* ---------- safety (dark) ---------- */
.dark { background: var(--ink); color: rgba(255,255,255,.78); overflow: hidden; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--gold-2); }
.safe { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.big-zero { font-family: var(--f-display); font-weight: 900; font-size: clamp(7rem, 19vw, 15rem); line-height: .82; letter-spacing: -.07em; color: transparent; background: linear-gradient(160deg, #ffd977, #f2b233 40%, #ee4b4f 100%); -webkit-background-clip: text; background-clip: text; }
.big-zero + p { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; color: #fff; margin-top: 10px; letter-spacing: -.02em; }
.safe-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.safe-list li { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 18px; }
.safe-list b { display: block; color: #fff; font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 4px; letter-spacing: -.01em; }
.safe-list span { font-size: .9rem; }
.dark a { color: var(--gold-2); font-weight: 700; }

/* ---------- article (SEO long-form) ---------- */
.article { display: grid; grid-template-columns: 250px 1fr; gap: clamp(30px, 6vw, 80px); }
.toc { position: sticky; top: 100px; align-self: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.toc b { font-family: var(--f-display); color: var(--ink); display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 7px 0; font-size: .92rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.toc a:hover { color: var(--red); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 18px; }
.prose h3 { margin: 34px 0 10px; font-size: 1.35rem; }
.prose p { margin-bottom: 16px; font-size: 1.04rem; }
.prose ul { margin: 0 0 18px; display: grid; gap: 8px; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--coral); transform: rotate(45deg); }
.prose a { color: var(--red); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(212,42,63,.3); }
.prose a:hover { text-decoration-color: var(--red); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; font-size: .95rem; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-1); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--cream-2); color: var(--ink); font-family: var(--f-display); font-weight: 700; }
.note { background: var(--cream-2); border-left: 4px solid var(--coral); border-radius: 0 16px 16px 0; padding: 16px 18px; margin: 20px 0; font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--sh-2); border-color: rgba(238,75,79,.25); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); position: relative; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d42a3f' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }
.faq details a { color: var(--red); font-weight: 700; }

/* ---------- final CTA ---------- */
.final { padding: 0 0 clamp(70px, 9vw, 120px); }
.final-box {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 76px);
  background: linear-gradient(135deg, var(--coral-2) 0%, var(--red) 60%, var(--red-deep) 100%);
  color: #fff; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; box-shadow: var(--sh-3);
}
.final-box::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.3px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.final-box h2 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 900; margin-bottom: 14px; position: relative; }
.final-box p { font-size: 1.1rem; opacity: .92; max-width: 30em; position: relative; }
.final-box .cta-row { position: relative; }
.final-art { position: relative; display: grid; place-items: center; }
.final-art img { width: min(280px, 70%); filter: drop-shadow(0 30px 40px rgba(80, 0, 15, .45)); animation: bob 6s ease-in-out infinite; }
.final-art .coin { position: absolute; }

/* ---------- footer ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 64px 0 30px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.foot-grid p { color: var(--muted); margin-top: 14px; max-width: 26em; }
.foot-grid h4 { font-size: .95rem; margin-bottom: 14px; letter-spacing: -.01em; }
.foot-grid a:not(.brand) { display: block; padding: 5px 0; color: var(--muted); }
.foot-grid a:not(.brand):hover { color: var(--red); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }

/* ---------- mobile sticky download ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none;
  align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
  background: rgba(43, 11, 18, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff;
  box-shadow: 0 16px 40px rgba(43,11,18,.35); transform: translateY(140%); transition: transform .45s var(--ease);
}
.dock.show { transform: none; }
.dock img { width: 40px; height: 40px; }
.dock div { flex: 1; line-height: 1.2; }
.dock b { font-family: var(--f-display); display: block; }
.dock small { opacity: .7; font-size: .78rem; }
.dock .btn { padding: 11px 18px; font-size: .9rem; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* ---------- legal / content pages ---------- */
.page-hero { padding: 60px 0 30px; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; margin: 14px 0 12px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--red); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-body { padding: 10px 0 90px; }
.card-prose { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 56px); box-shadow: var(--sh-1); max-width: 860px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav .btn-nav { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { padding-bottom: 30px; text-align: left; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .try { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .bento .gcard, .bento .gcard.wide, .bento .gcard.narrow { grid-column: span 3; }
  .story { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .chapter { min-height: 0; opacity: 1; padding: 0 0 70px; }
  .chapter .inline-shot { display: block; border-radius: var(--r-lg); overflow: hidden; margin-top: 8px; background: linear-gradient(180deg, #fff3ee, #ffe6dd); max-width: 460px; }
  .safe { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .toc { position: static; }
  .final-box { grid-template-columns: 1fr; }
  .final-art { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dock { display: flex; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .h1-big { font-size: clamp(3.6rem, 19vw, 5.2rem); }
  .ribbon-in { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .steps { grid-template-columns: 1fr; }
  .bento .gcard, .bento .gcard.wide, .bento .gcard.narrow { grid-column: 1 / -1; min-height: 270px; padding: 24px; }
  .gcard .gicon { width: 80px; height: 80px; top: 22px; right: 22px; }
  .gcard .tag { left: 24px; top: 22px; }
  .safe-list { grid-template-columns: 1fr; }
  .orb.o1 { left: -6px; } .orb.o2 { right: -6px; } .orb.o3 { left: 4px; }
  .orb { width: 70px; height: 70px; } .orb img { width: 46px; height: 46px; }
  .cta-row .btn { flex: 1 1 auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.02rem; padding: 18px 58px 18px 18px; }
  .faq details p { padding: 0 18px 18px; }
  .hud span { padding: 7px 9px; font-size: .78rem; }
  .board-title small { display: none; }
  .wave { height: 54px; }
  footer.footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
