/* ================================================================
   Spinception product page — groundmass.net/spinception
   Self-contained: local fonts, local art, no external requests.
   ================================================================ */

@font-face {
  font-family: 'Lilita One';
  src: url('../assets/fonts/LilitaOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/Nunito-Variable.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #140a10;
  --bg-2: #1b0f15;
  --panel: #241318;
  --panel-2: #2c171d;
  --line: rgba(242, 196, 100, .16);
  --line-strong: rgba(242, 196, 100, .38);
  --gold: #f2c464;
  --gold-2: #ffdf9e;
  --gold-deep: #c8922e;
  --red: #d84339;
  --red-deep: #8e2620;
  --green: #3fbf76;
  --text: #f6eddd;
  --muted: #c7ab99;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --r: 18px;
  --display: 'Lilita One', 'Arial Black', sans-serif;
  --body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--body);
  font-weight: 500;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 26px),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #201009; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 800; text-decoration: none;
}
.skip:focus { left: 0; }

::selection { background: rgba(242, 196, 100, .35); }

/* ---------------- typography helpers ---------------- */

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .4px; }

h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.12; margin-bottom: 14px; }

.grad {
  background: linear-gradient(100deg, var(--gold-2) 10%, var(--gold) 45%, #e08c3c 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .82rem;
  color: var(--red);
  text-shadow: 0 0 22px rgba(216, 67, 57, .35);
  margin-bottom: 10px;
}
.section-alt .kicker, #bosses .kicker { color: var(--gold); text-shadow: 0 0 22px rgba(242, 196, 100, .25); }

.lead { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
.head { margin-bottom: 44px; }
.fine { color: var(--muted); font-size: .85rem; opacity: .85; }
.center { text-align: center; }

/* ---------------- reveal animation ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .3, 1) var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------- nav ---------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(18, 9, 14, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  font-family: var(--display); font-size: 1.25rem; text-decoration: none;
  color: var(--red); letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(216, 67, 57, .4);
}
.brand span { color: var(--gold); text-shadow: 0 0 18px rgba(242, 196, 100, .35); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 700; font-size: .93rem;
  opacity: .85; transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold-2); }
.nav-cta {
  font-weight: 800; font-size: .9rem; text-decoration: none; color: #241207;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  padding: 9px 16px; border-radius: 999px;
  box-shadow: 0 4px 18px rgba(242, 196, 100, .25);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(242, 196, 100, .4); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-in { justify-content: space-between; } }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  padding: 130px 0 30px;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(216, 67, 57, .22), transparent 62%),
    radial-gradient(900px 700px at 82% 30%, rgba(242, 196, 100, .07), transparent 60%);
  overflow: hidden;
}

.hero-rays {
  position: absolute; inset: 0; pointer-events: none;
  /* Dissolve the whole ray layer toward the bottom so the beams fade out
     gradually instead of the old hard diagonal cut-off. */
  -webkit-mask: linear-gradient(to bottom, #000 42%, transparent 90%);
          mask: linear-gradient(to bottom, #000 42%, transparent 90%);
}
/* Two stage spotlights. The lamp (narrow top of each cone) sits OFF-SCREEN above
   the frame, flanking the logo to its upper-left / upper-right; the cone widens
   downward and its centre-line is aimed INWARD at the logo's centre, so the two
   beams converge on the logo. They gently pivot a few degrees about the lamp and
   breathe brighter/dimmer out of phase (different periods keep it organic). */
.ray {
  position: absolute; top: -260px;
  width: 34vw; height: 1120px;
  /* transparent at the (off-screen) lamp, ramps up before it enters the frame,
     peaks over the logo, then fades to nothing below — no visible start point. */
  background: linear-gradient(to bottom,
      rgba(255, 236, 196, 0) 0%,
      rgba(255, 236, 196, .5) 16%,
      rgba(255, 226, 168, .46) 42%,
      rgba(255, 210, 138, .3) 62%,
      rgba(242, 198, 108, .12) 82%,
      transparent 100%);
  /* widening cone with soft feathered sides so it glows like a light shaft. */
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  -webkit-mask: linear-gradient(to right, transparent, #000 42%, #000 58%, transparent);
          mask: linear-gradient(to right, transparent, #000 42%, #000 58%, transparent);
  filter: blur(10px) saturate(1.12);
  mix-blend-mode: screen;
  transform-origin: top center;
  will-change: transform, opacity;
}
/* Lamp x = left + half-width (17vw) = the flanking %; --aim tilts the beam in at
   the logo (~27% across on desktop). Keyframes pivot a few degrees either side. */
.ray-a { left: calc(9%  - 17vw); --aim: -22deg; animation: raySway 15s ease-in-out infinite alternate; }
.ray-b { left: calc(45% - 17vw); --aim: 22deg;  animation: raySway 19s ease-in-out infinite alternate-reverse; }
@keyframes raySway {
  from { transform: rotate(calc(var(--aim) - 4deg)); opacity: .34; }
  to   { transform: rotate(calc(var(--aim) + 4deg)); opacity: .6; }
}
/* Stacked layout: the logo is centred (~50%), so flank it there and re-aim. */
@media (max-width: 980px) {
  .ray-a { left: calc(31% - 17vw); --aim: -14deg; }
  .ray-b { left: calc(69% - 17vw); --aim: 14deg; }
}
@media (prefers-reduced-motion: reduce) {
  .ray { animation: none !important; transform: rotate(var(--aim)); opacity: .5; }
}

.hero-float { position: absolute; inset: 0; pointer-events: none; }
.fl {
  position: absolute; width: 64px; opacity: .8;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5));
  animation: floaty 7s ease-in-out infinite;
}
.fl-1 { top: 18%; left: 3%; animation-delay: -1s; }
.fl-2 { top: 64%; left: 7%; width: 52px; animation-delay: -3s; }
.fl-3 { top: 24%; right: 5%; width: 54px; animation-delay: -2s; }
.fl-4 { top: 74%; right: 10%; animation-delay: -5s; }
.fl-5 { top: 46%; left: 44%; width: 44px; opacity: .5; animation-delay: -4s; }
.fl-6 { top: 12%; left: 60%; width: 74px; opacity: .55; animation-delay: -6s; animation-duration: 9s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-20px) rotate(4deg); }
}
@media (max-width: 900px) { .fl-5, .fl-6 { display: none; } }

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center;
}
.hero-grid > * { min-width: 0; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; font-size: .78rem;
  color: var(--gold-2);
  border: 1px solid var(--line-strong);
  background: rgba(36, 19, 24, .6);
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(63, 191, 118, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 191, 118, .55); }
  70% { box-shadow: 0 0 0 9px rgba(63, 191, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 191, 118, 0); }
}

.hero-logo {
  width: min(560px, 92%); height: auto;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 60px rgba(216, 67, 57, .25));
  animation: logoIn 1s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes logoIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.tagline { font-size: 1.16rem; color: var(--muted); max-width: 560px; margin: 18px 0 26px; }
.tagline em { color: var(--gold-2); font-style: normal; font-weight: 800; }
.tagline b { color: var(--text); }

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.badge-link { display: inline-block; border-radius: 12px; transition: transform .2s, filter .2s; }
.badge-link:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }
.badge-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.cta-note { font-size: .95rem; color: var(--muted); max-width: 240px; line-height: 1.45; }
.cta-note strong { color: var(--text); display: block; }
.cta-note b { color: var(--gold-2); }

.trust { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin-top: 24px; }
.trust li {
  font-size: .82rem; font-weight: 800; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 10px;
  background: rgba(36, 19, 24, .5);
}
.trust li::before { content: '✓ '; color: var(--green); }

/* ---------------- hero slot cabinet widget ---------------- */

.hero-cab { justify-self: center; width: 100%; max-width: 360px; }

.cab {
  position: relative;
  background: linear-gradient(180deg, #431b1c, #2a1014 60%, #200b10);
  border: 2px solid var(--line-strong);
  border-radius: 22px;
  padding: 14px 14px 16px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 223, 158, .25);
  transition: transform .3s ease;
}
.cab.dive { animation: dive .9s cubic-bezier(.3, .7, .3, 1); }
@keyframes dive {
  0% { transform: scale(1); }
  45% { transform: scale(1.045); }
  100% { transform: scale(1); }
}
.cab.win { animation: winShake .5s ease; }
@keyframes winShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
}

/* pinball-style dot-matrix display for the narration */
.dmd {
  position: relative;
  background:
    radial-gradient(rgba(255, 140, 40, .08) 30%, transparent 32%) 0 0 / 4px 4px,
    linear-gradient(180deg, #1c0d05, #120704);
  border: 1px solid rgba(0, 0, 0, .85);
  border-radius: 10px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, .8), inset 0 0 26px rgba(255, 120, 20, .07),
    0 1px 0 rgba(255, 223, 158, .08);
  padding: 11px 12px;
  margin-bottom: 12px;
}
/* screen-door pixel grid over the whole panel (text stays solid underneath) */
.dmd::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, transparent 52%, rgba(10, 4, 2, .6) 60%) 0 0 / 4px 4px;
  pointer-events: none;
}

.cab-screen {
  position: relative;
  display: block;
  background: #17090d;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .6);
  padding: 10px;
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, .75);
}
.reelset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.reel {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(180deg, #efdfc2, #fdf4dd 30%, #fdf4dd 70%, #e6d3b3);
  box-shadow: inset 0 6px 14px rgba(60, 30, 10, .35), inset 0 -6px 14px rgba(60, 30, 10, .3);
  aspect-ratio: 1 / 3;
  transition: box-shadow .25s ease;
}
.reel.held {
  box-shadow:
    inset 0 0 0 3px var(--green),
    inset 0 0 22px rgba(63, 191, 118, .4),
    inset 0 6px 14px rgba(60, 30, 10, .35), inset 0 -6px 14px rgba(60, 30, 10, .3);
}
.hold-tag {
  position: absolute; left: 50%; bottom: 7px;
  transform: translateX(-50%) translateY(18px) scale(.7);
  opacity: 0;
  font-family: var(--display); font-size: .6rem; letter-spacing: 1.6px;
  color: #0b2416;
  background: linear-gradient(180deg, #85e2ac, #2e9c5c);
  padding: 3px 10px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
  pointer-events: none;
  transition: transform .3s cubic-bezier(.3, 1.4, .4, 1), opacity .25s ease;
}
.reel.held .hold-tag { transform: translateX(-50%); opacity: 1; }
.strip { display: flex; flex-direction: column; will-change: transform; }
.strip img { width: 100%; height: auto; padding: 7%; }
.strip.spinning { filter: blur(2px) saturate(1.1); }

.paylines {
  position: absolute; inset: 10px;
  width: calc(100% - 20px); height: calc(100% - 20px);
  pointer-events: none;
  overflow: visible;
}
.paylines line {
  stroke: url(#plGrad);
  stroke-width: 5px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px rgba(255, 75, 64, .85));
  opacity: 0;
}
.paylines line.show { animation: lineFlash 2.4s ease; }
.paylines line.static { opacity: 1; }
@keyframes lineFlash {
  0%, 100% { opacity: 0; }
  8%, 80% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .paylines line { stroke: var(--red); } /* mute the SMIL gradient sweep */
}

.cab-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.depth-chip {
  font-family: var(--display); font-size: .78rem; letter-spacing: 1px;
  color: var(--gold-2); border: 1px solid var(--line-strong);
  padding: 7px 10px; border-radius: 10px; background: rgba(23, 9, 13, .7);
  white-space: nowrap;
  transition: transform .25s, box-shadow .25s;
}
.depth-chip.pump {
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(242, 196, 100, .5);
}
.cab-msg {
  min-height: 2.7em;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: Consolas, 'Courier New', monospace;
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: .04em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #ffd575;
  text-shadow: 0 0 6px rgba(255, 185, 60, .9), 0 0 22px rgba(255, 130, 25, .55);
}
.cab-msg.blip { animation: dmdBlip .18s ease; }
@keyframes dmdBlip {
  from { opacity: .15; }
  to { opacity: 1; }
}
.spin-btn {
  display: inline-block;
  font-family: var(--display); font-size: 1rem; letter-spacing: 2px;
  color: #fff7ea;
  background: linear-gradient(180deg, #e6564a, #a92d24);
  border: 1px solid #ffb199; border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 5px 0 #6e1a14, 0 10px 22px rgba(216, 67, 57, .35);
  user-select: none;
}
.spin-btn.press { animation: btnPress .5s ease; }
@keyframes btnPress {
  0%, 100% { transform: none; box-shadow: 0 5px 0 #6e1a14, 0 10px 22px rgba(216, 67, 57, .35); }
  35% { transform: translateY(4px); box-shadow: 0 1px 0 #6e1a14, 0 4px 12px rgba(216, 67, 57, .3); }
}

.cab-caption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }
.cab-caption b { color: var(--gold-2); }

/* ---- cabinet swap: Old Faithful (3 reels) <-> Quadwheeler (4) ---- */

.cab.four .reelset { grid-template-columns: repeat(4, 1fr); }
.reel-4 { display: none; }
.cab.four .reel-4 { display: block; }
.cab.swapping .reelset { opacity: 0; transform: scale(.94); filter: blur(4px); }

/* ---- mini machine zoom overlay ---- */

.cab-screen .reelset { transition: transform .55s cubic-bezier(.3, .7, .3, 1), filter .55s ease, opacity .35s ease; }
.cab-screen.zoomed .reelset { transform: scale(1.16); filter: blur(5px) brightness(.4); }
.cab-screen.zoomed .paylines { opacity: 0; }

.mini-zoom {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center;
  opacity: 0;
  transform: scale(.16);
  transform-origin: 50% 50%;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.2, .75, .25, 1), opacity .3s ease;
  will-change: transform, opacity;
}
.mini-zoom.on { opacity: 1; transform: scale(1); }

.mini-cab {
  width: 74%;
  background: linear-gradient(180deg, #48211e, #2a1014 62%, #1d0a0f);
  border: 2px solid var(--line-strong);
  border-radius: 16px;
  padding: 10px 12px 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 223, 158, .25);
}
.mini-top {
  font-family: var(--display); text-align: center; letter-spacing: 2px; font-size: .68rem;
  color: var(--gold-2);
  background: linear-gradient(180deg, #6b2a24, #4a1a18);
  border: 1px solid var(--line-strong);
  border-radius: 9px; padding: 5px 0; margin-bottom: 9px;
}
.mini-reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  background: #17090d;
  border-radius: 10px;
  padding: 7px;
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, .75);
}
.mini-reel {
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(180deg, #efdfc2, #fdf4dd 30%, #fdf4dd 70%, #e6d3b3);
  box-shadow: inset 0 4px 10px rgba(60, 30, 10, .35), inset 0 -4px 10px rgba(60, 30, 10, .3);
  aspect-ratio: 1 / 3;
}
.mini-strip { display: flex; flex-direction: column; will-change: transform; }
.mini-strip img { width: 100%; height: auto; padding: 8%; }
.mini-zoom.on .mini-strip { animation: miniSpin .5s linear infinite; filter: blur(1.2px); }
.mini-zoom.on .mini-reel:nth-child(2) .mini-strip { animation-duration: .62s; }
.mini-zoom.on .mini-reel:nth-child(3) .mini-strip { animation-duration: .56s; }
@keyframes miniSpin { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.mini-zoom .mini-strip.stop { animation: none !important; filter: none !important; transform: none; }

/* second zoom: dig through the mini's own mini, into depth 2 */
.mini-zoom.dig {
  transform: scale(3.4);
  opacity: 0;
  transition: transform .68s cubic-bezier(.45, .05, .7, 1), opacity .5s ease .18s;
}

.mini-teaser {
  margin-top: 10px; text-align: center;
  font-family: var(--display); font-size: .7rem; letter-spacing: 1.5px;
  color: var(--gold-2);
  text-shadow: 0 0 14px rgba(242, 196, 100, .45);
  opacity: 0; transform: translateY(5px);
  transition: opacity .35s ease, transform .35s ease;
}
.mini-zoom.tease .mini-teaser { opacity: 1; transform: none; }


/* ---------------- stats band ---------------- */

.stats {
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 60px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 12px;
}
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold);
  text-shadow: 0 0 24px rgba(242, 196, 100, .35);
}
.stat span { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); row-gap: 20px; } }

/* ---------------- sections ---------------- */

.section { padding: 96px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(216, 67, 57, .08), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------------- mechanic split ---------------- */

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 940px) { .split { grid-template-columns: minmax(0, 1fr); } }

.mech-art { position: relative; text-align: center; }
.mech-art::before {
  content: '';
  position: absolute; inset: 6% 12%;
  background: radial-gradient(circle, rgba(216, 67, 57, .35), rgba(242, 196, 100, .12) 55%, transparent 70%);
  filter: blur(30px);
  animation: breathe 5s ease-in-out infinite;
  z-index: 0;
}
@keyframes breathe {
  0%, 100% { transform: scale(.94); opacity: .8; }
  50% { transform: scale(1.06); opacity: 1; }
}
.mech-cab {
  position: relative; z-index: 1;
  width: min(400px, 82%); margin: 0 auto;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .6));
  animation: floaty 8s ease-in-out infinite;
}
.mech-art figcaption { position: relative; z-index: 1; color: var(--muted); font-size: .88rem; margin-top: 16px; }

.split-copy p { margin-bottom: 14px; }
.split-copy p b { color: var(--gold-2); }
.mini-note { margin-top: 22px; font-weight: 800; color: var(--text); }

/* flex, not grid: 11 realms over 6 columns leaves a short last row, and flex
   lets that row centre under the full one instead of hanging off the left. */
.realms {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  list-style: none; margin: 14px 0 10px;
}
.realms li { flex: 0 0 calc((100% - 60px) / 6); text-align: center; }
@media (max-width: 700px) { .realms li { flex-basis: calc((100% - 24px) / 3); } }
.realms img {
  border-radius: 14px; border: 1px solid var(--line);
  background: rgba(36, 19, 24, .5);
  padding: 6px;
  transition: transform .25s ease, border-color .25s ease;
}
.realms li:hover img { transform: translateY(-4px) scale(1.04); border-color: var(--line-strong); }
.realms span { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .4px; color: var(--muted); margin-top: 7px; }

/* ---------------- loop steps ---------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: linear-gradient(180deg, var(--panel), rgba(36, 19, 24, .4));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 22px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.step img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.step img.wide { width: 120px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.step h3 span {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #241207; font-size: .85rem; flex: none;
}
.step p { color: var(--muted); font-size: .95rem; }

/* ---------------- combo band ---------------- */

.combo-band {
  position: relative; overflow: hidden;
  background: #0d060a;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 46px 0;
}
.band-flare {
  position: absolute; top: 50%; left: 50%;
  width: 900px; max-width: 160vw;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen; opacity: .5;
  animation: flarePulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flarePulse {
  0%, 100% { opacity: .3; transform: translate(-50%, -50%) scale(.96); }
  50% { opacity: .6; transform: translate(-50%, -50%) scale(1.05); }
}
.combo-in { position: relative; display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: center; }
.combo-badges { display: flex; gap: 26px; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.combo-badges figure { text-align: center; }
.combo-badges img {
  width: 66px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6));
  transition: transform .25s ease;
}
.combo-badges figure:nth-child(2) img { width: 76px; }
.combo-badges figure:nth-child(3) img { width: 86px; }
.combo-badges figure:nth-child(4) img { width: 104px; animation: megaPulse 2.6s ease-in-out infinite; }
@keyframes megaPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 26px rgba(242, 196, 100, .55)); }
}
.combo-badges figure:hover img { transform: scale(1.12) rotate(3deg); }
.combo-badges figcaption {
  font-family: var(--display); font-size: .68rem; letter-spacing: 1.6px;
  color: var(--gold-2); margin-top: 8px;
}
.combo-copy { max-width: 330px; color: var(--muted); font-size: 1.02rem; }
.combo-copy b { color: var(--gold-2); }

/* ---------------- decks ---------------- */

.decks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .decks { grid-template-columns: 1fr; } }

.deck {
  --accent: var(--gold);
  position: relative;
  background: linear-gradient(180deg, var(--panel), rgba(27, 15, 21, .6));
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 26px 24px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.deck:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.deck-classic { --accent: #e4572e; }
.deck-over    { --accent: #e8590c; }
.deck-swarm   { --accent: #b5651d; }
.deck-fam     { --accent: #e0729e; }
/* odd card count: let the last deck span the row instead of orphaning left */
.decks .deck:last-child:nth-child(odd) { grid-column: 1 / -1; }

.deck header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.deck header img { width: 58px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.deck h3 { font-size: 1.5rem; color: var(--accent); filter: brightness(1.35) saturate(.8); }
.deck-tag {
  font-size: .72rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 800;
  color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px;
}
.deck p { color: var(--muted); font-size: .98rem; }
.deck p b { color: var(--text); }
.deck-syms { display: flex; gap: 10px; margin-top: 16px; }
.deck-syms img {
  width: 46px; padding: 5px;
  background: rgba(20, 10, 16, .55);
  border: 1px solid var(--line); border-radius: 10px;
  transition: transform .2s ease;
}
.deck-syms img:hover { transform: translateY(-4px) rotate(-4deg); }

.curse-strip {
  margin-top: 22px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(138, 59, 74, .22), rgba(20, 10, 16, .4));
  border: 1px solid rgba(216, 67, 57, .3);
  border-radius: var(--r);
  padding: 20px 24px;
}
.curse-syms { display: flex; gap: 8px; }
.curse-syms img {
  width: 44px;
  filter: drop-shadow(0 0 10px rgba(216, 67, 57, .35));
  animation: floaty 6s ease-in-out infinite;
}
.curse-syms img:nth-child(2n) { animation-delay: -2s; }
.curse-syms img:nth-child(3n) { animation-delay: -4s; }
.curse-strip p { flex: 1; min-width: 260px; color: var(--muted); font-size: .95rem; }
.curse-strip b { color: #ff9d94; }

/* ---------------- cabinets ---------------- */

.cabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1020px) { .cabs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cabs { grid-template-columns: 1fr; } }

.cabcard {
  background: linear-gradient(180deg, var(--panel), rgba(27, 15, 21, .55));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 18px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cabcard:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.cabcard img {
  width: 72%; max-width: 190px; margin: 0 auto 12px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55));
  transition: transform .3s ease;
}
.cabcard:hover img { transform: scale(1.05) rotate(-1.2deg); }
.cabcard h3 { font-size: 1.12rem; margin-bottom: 6px; }
.cabcard p { color: var(--muted); font-size: .88rem; min-height: 3.4em; }

.chip {
  display: inline-block; margin-top: 12px;
  font-size: .72rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 12px;
  background: rgba(20, 10, 16, .5);
}
.chip-go { color: #8fe6b2; border-color: rgba(63, 191, 118, .45); }

/* ---------------- bosses ---------------- */

.bosses {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (max-width: 720px) { .bosses { grid-template-columns: 1fr; } }
.bosses li {
  display: flex; align-items: baseline; gap: 14px;
  background: rgba(36, 19, 24, .45);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  padding: 14px 18px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.bosses li:hover { transform: translateX(4px); border-left-color: var(--gold); background: rgba(36, 19, 24, .75); }
.bosses b { font-family: var(--display); font-weight: 400; color: var(--gold-2); white-space: nowrap; letter-spacing: .5px; }
.bosses span { color: var(--muted); font-size: .93rem; }

/* ---------------- marquees ---------------- */

.marquee-section { padding-bottom: 80px; }
.marquee {
  overflow: hidden;
  margin-top: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.track {
  display: inline-flex; gap: 18px;
  width: max-content;
  padding: 4px 9px;
  animation: slide 46s linear infinite;
}
.marquee-rev .track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.track figure {
  width: 104px; text-align: center;
  background: linear-gradient(180deg, var(--panel), rgba(27, 15, 21, .5));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 8px 10px;
  transition: transform .2s ease, border-color .2s ease;
}
.track figure:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.track img { width: 60px; margin: 0 auto 8px; }
.track figcaption { font-size: .68rem; font-weight: 800; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }

/* In-game "playing card" look for usable items (consumables): a white portrait
   plate with a marquee-S pip in the upper-right and lower-left (lower rotated
   180°, like a real card's index), the item art centred — mirrors the game's
   CardFrame (game/ui/symbol_icon.gd). Trinkets stay plain: they aren't usable. */
.ucard {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 86px; margin: 0 auto 8px;
  background: #f8f6f2;
  border: 2px solid #cfc9c0;
  border-radius: 9px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, .38);
}
.ucard img { width: 44px; margin: 0; }
.ucard::before, .ucard::after {
  content: ""; position: absolute;
  width: 12px; height: 19px;
  background: url('../assets/icons/card_pip_s.png') center / contain no-repeat;
}
.ucard::before { top: 5px; right: 5px; }
.ucard::after  { bottom: 5px; left: 5px; transform: rotate(180deg); }

/* ---------------- meta grid ---------------- */

/* 3-up: six cards fill two clean rows (4-up would orphan two on the second). */
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1020px) { .meta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .meta-grid { grid-template-columns: 1fr; } }
.metacard {
  background: linear-gradient(180deg, var(--panel), rgba(27, 15, 21, .5));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.metacard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.metacard img { height: 64px; width: auto; object-fit: contain; margin-bottom: 14px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5)); }
.metacard h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--gold-2); }
.metacard p { color: var(--muted); font-size: .92rem; }

/* ---------------- pricing ---------------- */

.pricing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: stretch; margin-bottom: 18px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

.price-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), rgba(27, 15, 21, .6));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px;
  display: flex; flex-direction: column;
}
.price-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.price-card h3 { font-size: 1.4rem; }
.price { font-family: var(--display); font-size: 2rem; color: var(--gold); }
.price span { font-size: .8rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 800; }

.price-card ul { list-style: none; margin-bottom: 26px; flex: 1; }
.price-card li {
  padding: 9px 0 9px 30px; position: relative;
  color: var(--muted); font-size: .97rem;
  border-bottom: 1px dashed rgba(242, 196, 100, .12);
}
.price-card li:last-child { border-bottom: 0; }
.price-card li b { color: var(--text); }
.price-card li::before {
  content: '✓';
  position: absolute; left: 4px; top: 8px;
  color: var(--green); font-weight: 900;
}
.price-full li::before { color: var(--gold); }
/* The save-transfer promise — the key reassurance, so it reads in light green. */
.price-card li.carry { color: #8fe9ad; font-weight: 700; }

.price-full {
  border: 2px solid var(--line-strong);
  background:
    radial-gradient(500px 300px at 85% -10%, rgba(242, 196, 100, .14), transparent 60%),
    linear-gradient(180deg, var(--panel-2), rgba(27, 15, 21, .75));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 50px rgba(242, 196, 100, .07);
}
.ribbon {
  position: absolute; top: -14px; right: 26px;
  font-family: var(--display); font-size: .74rem; letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #241207;
  padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(242, 196, 100, .35);
}

.btn-primary, .btn-secondary {
  display: block; text-align: center; text-decoration: none;
  font-family: var(--display); font-size: 1.05rem; letter-spacing: 1px;
  border-radius: 14px; padding: 15px 18px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #241207;
  box-shadow: 0 8px 26px rgba(242, 196, 100, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(242, 196, 100, .45); filter: brightness(1.05); }
.btn-secondary {
  border: 1px solid var(--line-strong); color: var(--gold-2);
  background: rgba(20, 10, 16, .4);
}
.btn-secondary:hover { transform: translateY(-2px); background: rgba(36, 19, 24, .7); }

/* ---------------- FAQ ---------------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel), rgba(27, 15, 21, .45));
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800; font-size: 1.02rem;
  padding: 17px 52px 17px 20px;
  position: relative;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 1.3rem; color: var(--gold);
  transition: transform .25s ease;
}
.faq details[open] summary { color: var(--gold-2); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: .96rem; }

/* ---------------- final CTA + footer ---------------- */

.final {
  position: relative;
  padding: 110px 0 120px;
  text-align: center;
  background:
    radial-gradient(700px 420px at 50% 20%, rgba(216, 67, 57, .18), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.final-in { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final-logo { width: min(430px, 86%); filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .6)); }
.final p { font-size: 1.25rem; color: var(--muted); }
.final .fine { font-size: .88rem; }

.solo-dev {
  margin-top: 22px;
  color: var(--muted);
  font-size: .98rem;
  font-style: italic;
}
.solo-dev .heart {
  display: inline-block;
  color: var(--red);
  font-style: normal;
  text-shadow: 0 0 12px rgba(216, 67, 57, .6);
  animation: heartbeat 1.8s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.25); }
  24% { transform: scale(1); }
  36% { transform: scale(1.18); }
  48% { transform: scale(1); }
}

.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; background: #0e0509; }
.foot-in { display: flex; flex-direction: column; gap: 8px; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer a { color: var(--gold-2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------------- legal pages (privacy) ---------------- */

/* These pages ship no JS, so the nav can't earn `.scrolled` on its own — it is
   opaque from the first pixel instead (there is no hero to float over). */
.nav.solid {
  background: rgba(18, 9, 14, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.legal {
  padding: 118px 0 90px;
  background: radial-gradient(900px 520px at 50% -12%, rgba(216, 67, 57, .16), transparent 64%);
}
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 12px; }
.legal h2 {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  margin: 40px 0 10px;
  color: var(--gold-2);
  letter-spacing: .6px;
}
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal p b, .legal li b { color: var(--text); }
.legal code {
  font-size: .92em; color: var(--gold);
  background: rgba(242, 196, 100, .09);
  border-radius: 6px; padding: 1px 6px;
}
.legal a { color: var(--gold-2); }

.legal-meta { font-size: .92rem; opacity: .9; margin-bottom: 34px; }

.legal-tldr {
  background: linear-gradient(180deg, var(--panel), rgba(27, 15, 21, .6));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 24px 26px 20px;
}
.legal-tldr h2 { margin: 0 0 8px; color: var(--gold); }
.legal-tldr p { margin-bottom: 0; color: var(--text); }

.legal-list { list-style: none; margin: 4px 0 14px; }
.legal-list li {
  position: relative; padding: 8px 0 8px 26px;
  color: var(--muted); font-size: .97rem;
  border-bottom: 1px dashed rgba(242, 196, 100, .12);
}
.legal-list li:last-child { border-bottom: 0; }
.legal-list li::before {
  content: '◆';
  position: absolute; left: 4px; top: 8px;
  color: var(--gold-deep); font-size: .7rem;
}

.legal-back { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-back a { font-weight: 800; text-decoration: none; }
.legal-back a:hover { text-decoration: underline; }

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .track { animation: none; }
}
