/* Marin — festive home page (public/site/festive/index.html).
 * Shared world, nav, cards and tiers live in fx.css; this is the home story:
 * intro, hero + 3D stage, stats, gifts, four chapters, panel, steps, final.
 * States that only make sense with JS (closed gifts, hidden hero copy) are
 * gated on html.fxh-js / data-fx so the page always renders without it.
 */

.fxh { --fxh-max: 1220px; }
.fxh .lp-wrap { max-width: var(--fxh-max); }
.fxh .lp-section { position: relative; }

/* ------------------------------------------------------------------ intro */
.fxh-intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; overflow: hidden;
  /* failsafe: if scripts never run, the curtain still lifts */
  animation: fxhIntroFailsafe .6s ease 5.5s forwards;
}
html.fxh-js .fxh-intro { animation: none; }
html[data-fx="0"] .fxh-intro, html.fxh-intro-done .fxh-intro { display: none; }
@keyframes fxhIntroFailsafe { to { opacity: 0; visibility: hidden; } }
.fxh-intro-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 50%, var(--mix-a-22), transparent 70%),
    linear-gradient(180deg, var(--fx-sky1), var(--fx-sky2) 60%, var(--fx-sky3));
}
.fxh-intro-mark { position: relative; display: grid; place-items: center; width: min(46vmin, 300px); aspect-ratio: 1; }
.fxh-sakura { width: 64%; height: auto; overflow: visible; filter: drop-shadow(0 0 30px var(--mix-a-55)); }
.fxh-sakura .pe { transform: rotate(var(--r)) scale(.001); transform-origin: 0 0; opacity: 0; }
.fxh-sakura .fxh-stamens { opacity: 0; transform: scale(.4); transform-origin: 0 0; }
.fxh-intro-ring {
  position: absolute; inset: 8%; border-radius: 50%; border: 1.5px solid var(--mix-b-70);
  box-shadow: 0 0 30px var(--mix-a-40), inset 0 0 30px var(--mix-a-25);
  opacity: 0; transform: scale(.6);
}
.fxh-intro-word {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); display: flex; gap: .02em;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(34px, 6vmin, 56px); letter-spacing: .02em; color: #fff;
  text-shadow: 0 0 24px var(--mix-a-60);
}
.fxh-intro-word i { font-style: normal; display: inline-block; opacity: 0; transform: translate3d(0, 60%, 0); }
html[data-theme="light"] .fxh-intro-word { color: #2a1636; text-shadow: none; }
.fxh-skip {
  position: absolute; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); font: 600 12px/1 var(--fx-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--mix-text-70); background: var(--mix-surface2-70);
  border: 1px solid var(--fx-line-2); border-radius: 999px; padding: 10px 14px; cursor: pointer; opacity: 0; transition: opacity .4s ease .5s;
}
html.fxh-js .fxh-skip { opacity: 1; }
.fxh-skip:hover { color: var(--text); border-color: var(--fx-a); }

/* ------------------------------------------------------------------ hero */
.fxh-hero { position: relative; min-height: calc(100svh - var(--nav-h) - 8px); display: flex; align-items: center; padding: 30px 0 90px; }
.fxh-hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: center; width: 100%; }
.fxh-hero-copy { position: relative; z-index: 2; }
.fxh-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; margin-bottom: 22px;
  font-weight: 700; font-size: 14px; color: var(--text);
  background: var(--mix-surface2-80); border: 1px solid var(--fx-line-2);
  box-shadow: 0 10px 30px -14px var(--fx-glow);
}
.fxh-badge-orn { width: 22px; height: 22px; flex: none; border-radius: 50%; position: relative; }
html[data-season="winter"] .fxh-badge-orn {
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, color-mix(in srgb, var(--fx-a) 90%, #fff) 20%, var(--fx-a) 55%, color-mix(in srgb, var(--fx-a) 60%, #000) 100%);
  box-shadow: 0 0 12px var(--fx-glow);
}
html[data-season="winter"] .fxh-badge-orn::before { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 5px; margin-left: -3.5px; border-radius: 2px; background: var(--fx-gold); }
html[data-season="autumn"] .fxh-badge-orn {
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 2 2'%3E%3Cpath d='M0-1l.16.38.22-.12-.06.36.46-.12-.12.2.26.18-.42.18.08.26-.4-.12-.12.24-.03.54h-.06l-.03-.54-.12-.24-.4.12.08-.26-.42-.18.26-.18-.12-.2.46.12-.06-.36.22.12Z' fill='%23ffab5e'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 150, 80, .6));
}
html[data-fx="2"] .fxh-badge-orn, html[data-fx="3"] .fxh-badge-orn { animation: fxhSwing 3.6s ease-in-out infinite; transform-origin: 50% -4px; }
@keyframes fxhSwing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.fxh-title { font-size: clamp(40px, 5.3vw, 78px); line-height: 1.02; letter-spacing: -.022em; margin-bottom: 20px; text-wrap: balance; }
.fxh-hero .lp-lead { max-width: 560px; }

/* entrance (after the intro): staggered rise; failsafe if JS never runs */
html:not([data-fx="0"]) .fxh-in { opacity: 0; transform: translate3d(0, 26px, 0); filter: blur(6px); animation: fxhInFailsafe .01s linear 6s forwards; }
html.fxh-js:not([data-fx="0"]) .fxh-in { animation: none; }
html.fxh-go .fxh-in { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--fx-ease), transform 1.2s var(--fx-ease), filter .9s var(--fx-ease); }
html.fxh-go .fxh-hero-copy > .fxh-in:nth-child(1) { transition-delay: .05s; }
html.fxh-go .fxh-hero-copy > .fxh-in:nth-child(2) { transition-delay: .14s; }
html.fxh-go .fxh-hero-copy > .fxh-in:nth-child(3) { transition-delay: .26s; }
html.fxh-go .fxh-hero-copy > .fxh-in:nth-child(4) { transition-delay: .36s; }
html.fxh-go .fxh-hero-copy > .fxh-in:nth-child(5) { transition-delay: .46s; }
html.fxh-go .fxh-stage.fxh-in { transition-delay: .1s; transition-duration: 1.2s, 1.6s, 1s; }
html[data-fx="1"] .fxh-in { filter: none; }
@keyframes fxhInFailsafe { to { opacity: 1; transform: none; filter: none; } }
/* the title's words rise one by one (home.js wraps them) */
.fxh-title .fx-wi { transform: translate3d(0, 110%, 0) rotate(5deg); opacity: 0; }
html.fxh-go .fxh-title .fx-wi { transform: none; opacity: 1; transition: transform 1.1s var(--fx-ease), opacity .6s ease; transition-delay: calc(.12s + var(--i) * 60ms); }
html[data-fx="0"] .fxh-title .fx-wi { transform: none; opacity: 1; }

/* ---- 3D stage */
.fxh-stage { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; justify-self: center; touch-action: pan-y; cursor: grab; }
.fxh-stage:active { cursor: grabbing; }
.fxh-stage-glow {
  position: absolute; inset: 6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--mix-a-30), var(--mix-c-12) 60%, transparent 100%);
  filter: blur(20px);
}
.fxh-3d { position: absolute; inset: -6%; width: 112%; height: 112%; opacity: 0; transition: opacity 1.2s ease; }
.fxh-stage.has-3d .fxh-3d { opacity: 1; }
.fxh-stage.has-3d .fxh-2d { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.fxh-stage.has-3d .fxh-2d * { animation-play-state: paused; }   /* hidden behind the 3D: don't keep animating */
.fxh-stage-label {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; transform: translate3d(var(--lx, -999px), var(--ly, -999px), 0);
}
.fxh-stage-name {
  display: inline-block; translate: -50% -140%; white-space: nowrap; font: 700 13px/1 'Quicksand', sans-serif; color: var(--text);
  padding: 8px 12px; border-radius: 999px; background: var(--fx-surface-2); border: 1px solid var(--fx-line-2);
  box-shadow: 0 10px 24px -10px var(--fx-glow); opacity: 0; transition: opacity .2s ease;
}
.fxh-stage.is-hover .fxh-stage-name { opacity: 1; }
.fxh-stage.is-hover { cursor: pointer; }
.fxh-stage-hint {
  position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); white-space: nowrap;
  font: 600 11px/1 var(--fx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: .8;
}
.fxh-stage-hint::before { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }

/* 2D stage (tier 1, no WebGL, or until 3D is ready) */
.fxh-2d { position: absolute; inset: 8%; transition: opacity .8s ease; }
.fxh-2d-orb {
  position: absolute; inset: 12%; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .28), transparent 22%),
    radial-gradient(circle at 70% 78%, var(--mix-a-22), transparent 50%),
    radial-gradient(circle at 50% 50%, var(--mix-s3-60), var(--mix-s2-70));
  border: 1.5px solid var(--mix-b-45);
  box-shadow: inset 0 0 50px var(--mix-b-22), 0 30px 80px -30px var(--fx-glow);
}
.fxh-2d-orb img { width: 30%; height: auto; border-radius: 50%; border: 2px solid var(--fx-a); box-shadow: 0 0 30px var(--fx-glow); }
html[data-season="winter"] .fxh-2d-orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-image: radial-gradient(circle, #fff 0 1.2px, transparent 1.8px), radial-gradient(circle, rgba(255, 255, 255, .7) 0 1px, transparent 1.6px);
  background-size: 38px 38px, 23px 23px; background-position: 0 0, 11px 17px; opacity: .6;
}
html[data-fx="2"][data-season="winter"] .fxh-2d-orb::after, html[data-fx="3"][data-season="winter"] .fxh-2d-orb::after, html[data-fx="1"][data-season="winter"] .fxh-2d-orb::after { animation: fxhSnowIn 9s linear infinite; }
@keyframes fxhSnowIn { to { background-position: 0 380px, 11px 247px; } }
.fxh-2d-ring { position: absolute; inset: 0; --rad: -205px; z-index: 2; }
.fxh-2d-ico {
  /* an arc that leaves the bottom clear for the globe's base */
  --a: calc(-120deg + var(--k) * 30deg);
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 16px;
  display: grid; place-items: center; color: var(--c);
  background: var(--mix-surface2-90); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 22px -6px var(--c);
  transform: rotate(var(--a)) translateY(var(--rad)) rotate(calc(var(--a) * -1));
}
.fxh-2d-ico svg { width: 24px; height: 24px; }
/* each icon orbits while staying upright */
html:not([data-fx="0"]) .fxh-2d-ico { animation: fxhOrbit 44s linear infinite; }
@keyframes fxhOrbit {
  from { transform: rotate(var(--a)) translateY(var(--rad)) rotate(calc(var(--a) * -1)); }
  to { transform: rotate(calc(var(--a) + 1turn)) translateY(var(--rad)) rotate(calc(var(--a) * -1 - 1turn)); }
}
html[data-season="winter"] .fxh-2d-base {
  position: absolute; left: 22%; right: 22%; bottom: 2%; height: 13%; border-radius: 12px 12px 30px 30px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fx-gold) 70%, #6b4a2a), #3a2418);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), 0 20px 40px -10px rgba(0, 0, 0, .5);
}
html[data-season="autumn"] .fxh-2d-base {
  position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed var(--mix-b-40);
}

.fxh-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 600 10.5px/1 var(--fx-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.fxh-cue i { width: 1px; height: 42px; background: linear-gradient(180deg, transparent, var(--fx-a)); position: relative; overflow: hidden; }
.fxh-cue i::after { content: ""; position: absolute; left: -1.5px; top: -10px; width: 4px; height: 10px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px var(--fx-a); }
html[data-fx="2"] .fxh-cue i::after, html[data-fx="3"] .fxh-cue i::after { animation: fxhDrip 2.2s var(--fx-ease-io) infinite; }
/* Scroll-cue dripple. Was `top: -10px -> 46px`, which forces layout on every
   frame of an infinite loop; the same 56px of travel as a transform is
   pixel-identical and never touches layout. */
@keyframes fxhDrip { to { transform: translateY(56px); } }

/* ------------------------------------------------------------------ stats */
.fxh-stats-sec { padding-top: 0 !important; }
.fxh-stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: 26px; overflow: hidden;
  background: var(--fx-surface); border: 1px solid var(--fx-line);
}
.fxh-stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, var(--mix-a-14) 50%, transparent 70%);
  transform: translateX(-100%);
}
html[data-fx="2"] .fxh-stats::before, html[data-fx="3"] .fxh-stats::before { animation: fxhBandSweep 6s var(--fx-ease-io) infinite 1.5s; }
@keyframes fxhBandSweep { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.fxh-stat { position: relative; padding: 34px 28px; text-align: center; }
.fxh-stat + .fxh-stat { border-left: 1px solid var(--fx-line); }
.fxh-stat .stat-num {
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(38px, 4.6vw, 62px); line-height: 1;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--c) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c) 40%, transparent));
}
html[data-theme="light"] .fxh-stat .stat-num { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #301b40), color-mix(in srgb, var(--c) 85%, #301b40)); -webkit-background-clip: text; background-clip: text; filter: none; }
.fxh-stat .stat-label { color: var(--muted); font-weight: 600; margin-top: 8px; font-size: 14px; }
.fxh-stat .stat-fallback .stat-label { font-family: 'Baloo 2', sans-serif; font-size: 24px; color: var(--text); font-weight: 700; }

/* ------------------------------------------------------------------ gifts (modules) */
.fxh-gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.fxh-gift {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 24px 22px; border-radius: 22px; border: 1px solid var(--fx-line); background: var(--fx-surface);
  color: var(--text); text-decoration: none; min-height: 112px; overflow: visible;
}
.fxh-gift-ico { width: 52px; height: 52px; border-radius: 16px; position: relative; z-index: 1; }
.fxh-gift-ico svg { width: 24px; height: 24px; }
.fxh-gift-txt { display: grid; gap: 4px; position: relative; z-index: 1; }
.fxh-gift-txt b { font-family: 'Baloo 2', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.2; }
.fxh-gift-txt small { color: var(--muted); font-size: 13px; font-weight: 600; }
.fxh-gift-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fx-line-2); color: var(--muted); transition: transform .4s var(--fx-ease), color .2s, border-color .2s, background .2s; position: relative; z-index: 1; }
.fxh-gift-go svg { width: 15px; height: 15px; }
.fxh-gift:hover .fxh-gift-go { transform: translateX(3px) rotate(-45deg); color: #fff; border-color: transparent; background: var(--c); }
/* ribbon + lid (winter): closed until the card scrolls in */
.fxh-gift-lid { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; display: none; }
html[data-season="winter"] .fxh-gift-lid { display: block; }
html[data-season="winter"] .fxh-gift-lid::before,
html[data-season="winter"] .fxh-gift-lid::after { content: ""; position: absolute; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); opacity: .9; transition: transform .7s var(--fx-ease), opacity .5s ease; }
html[data-season="winter"] .fxh-gift-lid::before { left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; transform-origin: 0 50%; }
html[data-season="winter"] .fxh-gift-lid::after { top: 0; bottom: 0; left: 30%; width: 10px; margin-left: -5px; transform-origin: 50% 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); }
.fxh-bow { position: absolute; left: 30%; top: 50%; width: 38px; height: 26px; margin: -13px 0 0 -19px; transition: transform .7s var(--fx-ease), opacity .4s ease; }
.fxh-bow::before, .fxh-bow::after { content: ""; position: absolute; top: 2px; width: 18px; height: 20px; border: 4px solid color-mix(in srgb, var(--c) 85%, #fff); border-radius: 60% 40% 50% 50%; }
.fxh-bow::before { left: 0; transform: rotate(-24deg); }
.fxh-bow::after { right: 0; transform: rotate(24deg) scaleX(-1); }
/* closed state (JS only, below the fold) */
html.fxh-js[data-season="winter"]:not([data-fx="0"]) .fxh-gift:not(.open) .fxh-gift-ico { transform: scale(.5) translateY(10px); opacity: 0; }
html.fxh-js[data-season="winter"]:not([data-fx="0"]) .fxh-gift:not(.open) .fxh-gift-txt { opacity: 0; transform: translateY(8px); }
html.fxh-js[data-season="winter"]:not([data-fx="0"]) .fxh-gift:not(.open) { background: color-mix(in srgb, var(--c) 10%, var(--fx-surface)); }
html[data-season="winter"] .fxh-gift.open .fxh-gift-lid::before { transform: scaleX(0); opacity: 0; }
html[data-season="winter"] .fxh-gift.open .fxh-gift-lid::after { transform: scaleY(0); opacity: 0; }
html[data-season="winter"] .fxh-gift.open .fxh-bow { transform: translate3d(-10px, -70px, 0) rotate(-30deg) scale(.6); opacity: 0; }
html:not(.fxh-js) .fxh-gift-lid, html[data-fx="0"] .fxh-gift-lid { display: none !important; }
.fxh-gift-ico, .fxh-gift-txt { transition: transform .9s cubic-bezier(.34, 1.56, .64, 1), opacity .6s ease; }
.fxh-gift.open .fxh-gift-txt { transition-delay: .15s; }
.fxh-gift { transition: background .6s ease, border-color .3s ease, box-shadow .4s ease, transform .5s var(--fx-ease); }
/* autumn: cards drift down like leaves and settle */
html.fxh-js[data-season="autumn"]:not([data-fx="0"]) .fxh-gift:not(.open) { opacity: 0; transform: translate3d(calc((var(--gi) - 4) * 6px), -40px, 0) rotate(calc((var(--gi) - 4) * 1.6deg)); }
html[data-season="autumn"] .fxh-gift.open { animation: fxhSettle 1.3s var(--fx-ease) both; animation-delay: calc(var(--gi) % 3 * 90ms); }
@keyframes fxhSettle {
  0% { opacity: 0; transform: translate3d(calc((var(--gi) - 4) * 6px), -40px, 0) rotate(calc((var(--gi) - 4) * 1.6deg)); }
  55% { opacity: 1; transform: translate3d(0, 4px, 0) rotate(-.6deg); }
  80% { transform: translate3d(0, -1px, 0) rotate(.3deg); }
  100% { opacity: 1; transform: none; }
}
html[data-fx="2"] .fxh-gift:hover .fxh-gift-ico, html[data-fx="3"] .fxh-gift:hover .fxh-gift-ico { animation: fxhWiggle .7s ease; }
@keyframes fxhWiggle { 20% { transform: rotate(-9deg) scale(1.08); } 45% { transform: rotate(7deg) scale(1.08); } 70% { transform: rotate(-4deg); } }

/* ------------------------------------------------------------------ chapters */
.fxh-chapters { position: relative; }
.fxh-ch { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 90px 0; }
.fxh-ch-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: center; width: 100%; }
.fxh-ch-k { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--fx-mono); letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 75%, var(--text)); margin-bottom: 18px; }
.fxh-ch-k b { font-size: 13px; color: var(--c); }
.fxh-ch-k i { width: 44px; height: 1px; background: linear-gradient(90deg, var(--c), transparent); }
.fxh-ch-title { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.06; letter-spacing: -.018em; margin-bottom: 16px; text-wrap: balance; }
.fxh-ch-lead { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 24px; }
.fxh-ch-mods { list-style: none; display: grid; gap: 10px; max-width: 560px; }
.fxh-ch-mods a {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--text);
  border: 1px solid var(--fx-line); background: var(--mix-surface-70);
  transition: border-color .35s ease, background .35s ease, transform .5s var(--fx-ease), opacity .4s ease;
}
.fxh-ch-mods a b { display: block; font-family: 'Baloo 2', sans-serif; font-size: 16.5px; line-height: 1.25; margin-bottom: 3px; }
.fxh-ch-mods a span span { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; }
.fxh-ch-mods .lp-tile { width: 40px; height: 40px; border-radius: 12px; }
.fxh-ch-mods .lp-tile svg { width: 19px; height: 19px; }
.fxh-ch-mods a:hover, .fxh-ch-mods a.is-on { border-color: color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 9%, var(--fx-surface)); transform: translateX(6px); }
html.fxh-pinned .fxh-ch-mods a:not(.is-on) { opacity: .62; }
.fxh-ch-rail { position: sticky; top: 50vh; height: 0; z-index: 3; margin-left: max(14px, calc((100vw - var(--fxh-max)) / 2 - 34px)); width: 0; }
.fxh-ch-rail i { position: absolute; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--fx-line-2); transition: background .3s, box-shadow .3s, transform .4s var(--fx-ease); }
.fxh-ch-rail i:nth-child(1) { top: -42px; } .fxh-ch-rail i:nth-child(2) { top: -14px; } .fxh-ch-rail i:nth-child(3) { top: 14px; } .fxh-ch-rail i:nth-child(4) { top: 42px; }
.fxh-ch-rail i.on { background: var(--fx-a); box-shadow: 0 0 12px var(--fx-a); transform: scale(1.35); }
@media (max-width: 1280px) { .fxh-ch-rail { display: none; } }

/* ---- scenes (shared frame) */
.fxh-ch-scene { position: relative; }
.fxs {
  position: relative; border-radius: 26px; padding: 18px; min-height: 420px; overflow: hidden;
  background:
    radial-gradient(80% 60% at 70% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    var(--fx-surface-2);
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--fx-line));
  box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--c) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* faint HUD grid + scanline shimmer */
.fxs::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--fx-line) 1px, transparent 1px), linear-gradient(90deg, var(--fx-line) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent);
}
.fxs::after {
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none;
  will-change: transform;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c) 12%, transparent), transparent);
}
html[data-fx="3"] .fxs::after { animation: fxsScan 5.5s linear infinite; }
/* Scan light. `top: -30% -> 110%` resolved against the panel (it is 30% of
   the panel tall), so the travel is 140% of the panel height; a transform
   does the same with no layout, and the backdrop-filter behind it cannot
   re-blur the page on every frame. */
@keyframes fxsScan { to { transform: translateY(140%); } }
.fxs > * { position: relative; z-index: 1; }
.fxs-hud { display: flex; align-items: center; gap: 10px; font: 600 11.5px/1 var(--fx-mono); letter-spacing: .08em; color: var(--muted); padding: 4px 4px 16px; border-bottom: 1px dashed var(--fx-line-2); margin-bottom: 16px; }
.fxs-hud-r { margin-left: auto; opacity: .7; }
.fxs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.fxs-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 14px/1 'Baloo 2', sans-serif; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 60%, #000)); border: 2px solid color-mix(in srgb, var(--c) 40%, transparent); }
.fxs-av.warn { background: linear-gradient(135deg, #ffd27a, #c48a2a); }
.fxs-av.img { object-fit: cover; padding: 0; background: none; border-color: var(--fx-a); }

/* scene 1: shield */
.fxs-shield-svg { position: absolute; right: 6%; top: 18%; width: 46%; height: auto; overflow: visible; }
.fxs-ring { fill: none; stroke: color-mix(in srgb, var(--c) 50%, transparent); stroke-width: 1; stroke-dasharray: 4 7; transform-origin: 100px 104px; }
html[data-fx="2"] .fxs-ring.r1, html[data-fx="3"] .fxs-ring.r1 { animation: fxSpin 28s linear infinite; }
html[data-fx="2"] .fxs-ring.r2, html[data-fx="3"] .fxs-ring.r2 { animation: fxSpin 20s linear infinite reverse; }
.fxs-shield-body { fill: color-mix(in srgb, var(--c) 14%, transparent); stroke: url(#fxsSg); stroke-width: 2.4; }
.fxs-shield-check { fill: none; stroke: var(--fx-b); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; stroke-dashoffset: 0; }
.fxs-lane { display: grid; gap: 14px; width: 54%; margin-top: 18px; }
.fxs-guest { display: flex; align-items: center; gap: 10px; }
.fxs-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.fxs-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.fxs-chip.ok { color: #6fe3a8; background: rgba(87, 242, 135, .1); border: 1px solid rgba(87, 242, 135, .3); }
.fxs-chip.warn { color: #ffd27a; background: rgba(255, 210, 122, .1); border: 1px solid rgba(255, 210, 122, .3); }
html[data-theme="light"] .fxs-chip.ok { color: #1b8a52; } html[data-theme="light"] .fxs-chip.warn { color: #9a6a10; }
.fxs-raid { position: absolute; left: 0; top: 46%; width: 100%; height: 30%; pointer-events: none; }
.fxs-raid i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #ff5f6d; box-shadow: 0 0 10px #ff5f6d; opacity: 0; }
.fxs-log { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.fxs-log-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: var(--mix-surface-80); border: 1px solid var(--fx-line); font-size: 13px; }
.fxs-log-row b { font-weight: 700; } .fxs-log-row small { font-family: var(--fx-mono); color: var(--muted); }
.fxs-log-row.r1 b { color: #ff8a95; } .fxs-log-row.r2 b { color: var(--fx-b); }
html[data-theme="light"] .fxs-log-row.r1 b { color: #c0303e; } html[data-theme="light"] .fxs-log-row.r2 b { color: #3d5fb8; }

/* scene 2: leaderboard */
.fxs-rows { list-style: none; position: relative; height: 290px; }
.fxs-row { position: absolute; left: 0; right: 0; height: 50px; top: calc((var(--pos, 1) - 1) * 58px); display: grid; grid-template-columns: 26px 34px 70px 1fr 54px; align-items: center; gap: 12px; padding: 0 14px; border-radius: 14px; background: var(--mix-surface-75); border: 1px solid var(--fx-line); }
.fxs-row[data-r="1"] { --pos: 1; } .fxs-row[data-r="2"] { --pos: 2; } .fxs-row[data-r="3"] { --pos: 3; } .fxs-row[data-r="4"] { --pos: 4; } .fxs-row[data-r="5"] { --pos: 5; }
.fxs-row .n { font: 800 15px/1 'Baloo 2', sans-serif; color: var(--muted); text-align: center; }
.fxs-row[data-r="1"] .n { color: var(--fx-gold); }
.fxs-row b { font-size: 14px; }
.fxs-row .bar { height: 6px; border-radius: 6px; background: var(--fx-line); overflow: hidden; }
.fxs-row .bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); }
.fxs-row .pts { font: 700 13px/1 var(--fx-mono); text-align: right; color: var(--text); }
.fxs-row.me { border-color: var(--mix-a-55); background: color-mix(in srgb, var(--fx-a) 10%, var(--fx-surface)); box-shadow: 0 0 0 1px var(--mix-a-30), 0 14px 30px -16px var(--fx-glow); }
.fxs-row.me .fxs-av { --c: var(--fx-a); }
.fxs-tag { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.fxs-tag svg { width: 14px; height: 14px; }
.fxs-tag.challenge { right: 18px; top: 64px; color: #fff; background: linear-gradient(135deg, var(--fx-a), color-mix(in srgb, var(--fx-a) 50%, var(--fx-c))); box-shadow: 0 8px 20px -6px var(--fx-glow); }
.fxs-tag.protect { right: 18px; bottom: 22px; color: var(--fx-b); background: var(--mix-b-12); border: 1px solid var(--mix-b-40); }
html[data-theme="light"] .fxs-tag.protect { color: #3d5fb8; }

/* scene 3: ticket */
.fxs-msgs { display: grid; gap: 12px; }
.fxs-msg { display: flex; gap: 10px; align-items: flex-start; }
.fxs-msg p { padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; max-width: 330px; background: var(--mix-surface-85); border: 1px solid var(--fx-line); }
.fxs-msg.ai p { background: color-mix(in srgb, var(--c) 12%, var(--fx-surface)); border-color: color-mix(in srgb, var(--c) 34%, transparent); }
.fxs-typing { display: flex; gap: 4px; padding: 6px 0 0 46px; height: 20px; }
.fxs-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
html[data-fx="2"] .fxs-typing i, html[data-fx="3"] .fxs-typing i { animation: typingBounce 1.1s ease-in-out infinite; }
.fxs-typing i:nth-child(2) { animation-delay: .15s; } .fxs-typing i:nth-child(3) { animation-delay: .3s; }
.fxs-sys { justify-self: center; font: 600 11.5px/1 var(--fx-mono); letter-spacing: .06em; color: var(--fx-gold); padding: 8px 12px; border-radius: 999px; border: 1px dashed var(--mix-gold-50); }
html[data-theme="light"] .fxs-sys { color: #9a6a10; }
.fxs-sum { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 14px 16px; border-radius: 16px; background: var(--fx-surface); border: 1px solid var(--fx-line-2); display: grid; gap: 9px; }
.fxs-sum b { font-size: 13px; color: var(--c); font-family: var(--fx-mono); letter-spacing: .06em; }
.fxs-sum .l { height: 7px; border-radius: 6px; width: var(--w); background: linear-gradient(90deg, var(--fx-line-2), var(--fx-line)); }

/* scene 4: music */
.fxs-player { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.fxs-disc {
  width: 150px; aspect-ratio: 1; border-radius: 50%; position: relative;
  background: repeating-radial-gradient(circle, #15101d 0 2px, #1d1628 2px 4px);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}
html[data-fx="2"] .fxs-disc, html[data-fx="3"] .fxs-disc { animation: fxSpin 6s linear infinite; }
.fxs-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, .14) 15%, transparent 22% 60%, rgba(255, 255, 255, .1) 65%, transparent 72%); }
.fxs-disc-label { position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #0b0713 0 8%, transparent 9%), linear-gradient(135deg, var(--fx-a), var(--fx-c)); }
.fxs-meta b { display: block; font-family: 'Baloo 2', sans-serif; font-size: 20px; }
.fxs-meta small { color: var(--muted); font-weight: 600; }
.fxs-prog { height: 5px; border-radius: 5px; background: var(--fx-line); margin: 16px 0 14px; overflow: hidden; }
.fxs-prog i { display: block; height: 100%; width: var(--prog, 38%); border-radius: inherit; background: linear-gradient(90deg, var(--fx-a), var(--fx-gold)); }
.fxs-eq { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.fxs-eq i { flex: 1; height: 30%; border-radius: 3px; background: linear-gradient(180deg, var(--fx-b), var(--fx-a)); transform-origin: 50% 100%; will-change: transform; }
html[data-fx="2"] .fxs-eq i, html[data-fx="3"] .fxs-eq i { animation: fxsEq .9s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); }
/* Bars that dance like a level meter. `height` re-lays-out the row on every
   frame; `scaleY` about the bottom (transform-origin above) is the same
   picture at the same values, done by the compositor. The bars' own height is
   the 100% the keyframe percentages were resolving against. */
@keyframes fxsEq { 0% { transform: scaleY(0.18); } 50% { transform: scaleY(0.92); } 100% { transform: scaleY(0.40); } }
.fxs-lyrics { margin-top: 26px; display: grid; gap: 8px; }
.fxs-lyrics .ly { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; color: var(--mix-text-30); transition: color .5s ease, transform .6s var(--fx-ease); }
.fxs-lyrics .ly.on { color: var(--text); transform: translateX(6px); text-shadow: 0 0 22px var(--fx-glow); }
.fxs-lyrics .ly.done { color: var(--mix-text-55); }

/* ------------------------------------------------------------------ panel */
.fxh-panel-sec .lp-split { align-items: center; }
.fxh-checks { list-style: none; display: grid; gap: 12px; margin: 24px 0 26px; }
.fxh-checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.fxh-checks svg { width: 20px; height: 20px; flex: none; color: var(--fx-a); margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--mix-a-14); }
.fxh-panel-vis { position: relative; }
.fxh-mug { position: absolute; left: -30px; bottom: -26px; width: 92px; z-index: 3; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .35)); }
.fxh-mug svg { width: 100%; height: auto; overflow: visible; }
.fxh-mug .cup { fill: color-mix(in srgb, var(--fx-a) 80%, #fff); }
html[data-season="autumn"] .fxh-mug .cup { fill: var(--fx-c); }
.fxh-mug .band { stroke: rgba(255, 255, 255, .5); stroke-width: 3; fill: none; }
.fxh-mug .handle { fill: none; stroke: color-mix(in srgb, var(--fx-a) 80%, #fff); stroke-width: 5; stroke-linecap: round; }
html[data-season="autumn"] .fxh-mug .handle { stroke: var(--fx-c); }
.fxh-mug .st { fill: none; stroke: var(--mix-text-50); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 22 40; opacity: .7; }
html[data-fx="2"] .fxh-mug .st, html[data-fx="3"] .fxh-mug .st { animation: fxhSteam 3s linear infinite; }
.fxh-mug .s2 { animation-delay: -1s !important; } .fxh-mug .s3 { animation-delay: -2s !important; }
@keyframes fxhSteam { from { stroke-dashoffset: 62; } to { stroke-dashoffset: 0; } }
.fxh-panel-vis .app { transform: perspective(1400px) rotateY(var(--pry, -10deg)) rotateX(var(--prx, 4deg)); transition: transform 1.2s var(--fx-ease); background: var(--fx-surface-2); border-color: var(--fx-line-2); }
.fxh-panel-vis.is-visible .app { --pry: -4deg; --prx: 2deg; }
.fxh-panel-vis .app-mod { opacity: 1; }
html.fxh-js:not([data-fx="0"]) .fxh-panel-vis:not(.is-visible) .app-mod { opacity: 0; transform: translateX(20px); }
.fxh-panel-vis .app-mod { transition: opacity .6s ease, transform .8s var(--fx-ease); }
.fxh-panel-vis.is-visible .app-mod:nth-child(1) { transition-delay: .35s; } .fxh-panel-vis.is-visible .app-mod:nth-child(2) { transition-delay: .5s; }
.fxh-panel-vis.is-visible .app-mod:nth-child(3) { transition-delay: .65s; } .fxh-panel-vis.is-visible .app-mod:nth-child(4) { transition-delay: .8s; }

/* ------------------------------------------------------------------ steps */
.fxh-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; padding-top: 10px; }
.fxh-steps-line { position: absolute; left: 6%; right: 6%; top: 80px; width: 88%; height: 40px; overflow: visible; pointer-events: none; }
.fxh-steps-line path { fill: none; stroke: var(--mix-a-60); stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; }
.fxh-step { position: relative; z-index: 1; padding: 34px 8px 0; }
.fxh-step h3 { font-size: 21px; margin: 18px 0 8px; }
.fxh-step p { color: var(--muted); font-size: 15px; max-width: 300px; margin: 0 auto; }
/* winter: a gift box that opens; autumn: a paper lantern that lights */
.fxh-box { position: relative; display: block; width: 96px; height: 96px; margin: 0 auto; }
.fxh-box .num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 34px/1 'Baloo 2', sans-serif; color: #fff; z-index: 3; transition: transform .8s cubic-bezier(.34, 1.56, .64, 1), opacity .5s; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
html[data-season="winter"] .fxh-box .body { position: absolute; left: 10px; right: 10px; bottom: 6px; top: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--fx-a), color-mix(in srgb, var(--fx-a) 55%, var(--fx-c))); box-shadow: 0 18px 30px -12px var(--fx-glow); }
html[data-season="winter"] .fxh-box .body::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px; background: var(--fx-gold); }
html[data-season="winter"] .fxh-box .lid { position: absolute; left: 4px; right: 4px; top: 20px; height: 20px; border-radius: 6px; z-index: 2; background: linear-gradient(135deg, color-mix(in srgb, var(--fx-a) 85%, #fff), var(--fx-a)); transition: transform .9s cubic-bezier(.34, 1.56, .64, 1); }
html[data-season="winter"] .fxh-box .lid::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 10px; margin-left: -5px; background: var(--fx-gold); }
html[data-season="winter"] .fxh-box .lid::before { content: ""; position: absolute; left: 50%; top: -14px; width: 28px; height: 16px; margin-left: -14px; border: 4px solid var(--fx-gold); border-bottom: 0; border-radius: 14px 14px 0 0; }
html.fxh-js[data-season="winter"]:not([data-fx="0"]) .fxh-step:not(.on) .num { transform: translate(-50%, -10%) scale(.4); opacity: 0; }
html[data-season="winter"] .fxh-step.on .lid { transform: translate3d(-52px, 34px, 0) rotate(-72deg); }
html[data-season="winter"] .fxh-step.on .num, html:not(.fxh-js)[data-season="winter"] .fxh-box .num, html[data-fx="0"][data-season="winter"] .fxh-box .num { transform: translate(-50%, -150%) scale(1); opacity: 1; }
html[data-season="winter"] .fxh-box .num { text-shadow: 0 0 18px var(--fx-a), 0 2px 10px rgba(0, 0, 0, .35); }
html[data-season="autumn"] .fxh-box .body { position: absolute; inset: 12px 14px 4px; border-radius: 46% 46% 40% 40%; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--fx-gold) 70%, #fff) 0%, var(--fx-b) 45%, var(--fx-c) 100%); opacity: .35; transition: opacity .8s ease, box-shadow .8s ease; }
html[data-season="autumn"] .fxh-box .body::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(90, 30, 10, .25) 12px 13px); }
html[data-season="autumn"] .fxh-box .lid { position: absolute; left: 30px; right: 30px; top: 4px; height: 10px; border-radius: 4px; background: #3a1a10; }
html[data-season="autumn"] .fxh-step.on .body, html:not(.fxh-js) .fxh-box .body { opacity: 1; box-shadow: 0 0 40px 6px rgba(255, 170, 90, .45); }
html[data-season="autumn"] .fxh-box .num { color: #4a1a0a; text-shadow: none; }

/* ------------------------------------------------------------------ final */
.fxh-final {
  position: relative; text-align: center; padding: 56px 32px 48px; border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(70% 90% at 50% 110%, var(--mix-a-26), transparent 65%),
    var(--fx-surface-2);
  border: 1px solid var(--fx-line-2);
}
.fxh-final::before {
  content: ""; position: absolute; inset: -50%; pointer-events: none; opacity: .45; filter: blur(40px);
  background: conic-gradient(from 0deg, transparent 0 70%, var(--mix-a-60) 80%, var(--mix-gold-50) 88%, transparent 96%);
}
html[data-fx="2"] .fxh-final::before, html[data-fx="3"] .fxh-final::before { animation: fxSpin 12s linear infinite; }
.fxh-final > * { position: relative; z-index: 1; }
.fxh-final-mascot { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--fx-a); box-shadow: 0 0 34px var(--fx-glow); margin: 18px auto 14px; display: block; }
.fxh-final .lp-h2 { max-width: 760px; margin: 0 auto 10px; }
.fxh-final .lp-ctas { justify-content: center; }
.fxh-final-scene { display: flex; justify-content: center; }
/* winter: the nice list */
.fxh-list { width: min(420px, 100%); padding: 16px 18px; border-radius: 18px; text-align: left; background: var(--mix-surface-80); border: 1px solid var(--fx-line-2); }
.fxh-list-head { font: 700 12px/1 var(--fx-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fx-gold); padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px dashed var(--fx-line-2); }
html[data-theme="light"] .fxh-list-head { color: #9a6a10; }
.fxh-list-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; font-weight: 700; border-bottom: 1px solid var(--fx-line); }
.fxh-list-row:last-child { border-bottom: 0; }
.fxh-list-row .ck { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, #57f287 18%, transparent); border: 1px solid rgba(87, 242, 135, .45); position: relative; }
.fxh-list-row .ck::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #6fe3a8; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.fxh-list-row.you { color: var(--fx-a); }
.fxh-list-row.you .type { position: relative; }
html.fxh-js:not([data-fx="0"]) .fxh-final:not(.is-visible) .fxh-list-row.you .type { clip-path: inset(0 100% 0 0); }
.fxh-list-row.you .type { transition: clip-path 1.4s steps(12) .8s; clip-path: inset(0 0 0 0); }
html.fxh-js:not([data-fx="0"]) .fxh-final:not(.is-visible) .fxh-list-row.you .ck { transform: scale(0); }
.fxh-list-row.you .ck { transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) 2.3s; }
/* autumn: a seat at the table */
.fxh-table { position: relative; width: min(520px, 100%); height: 120px; }
.fxh-table-top { position: absolute; left: 0; right: 0; bottom: 18px; height: 16px; border-radius: 10px; background: linear-gradient(180deg, #6b3420, #3a1810); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .5); }
.fxh-seat { position: absolute; bottom: 34px; display: grid; justify-items: center; gap: 6px; }
.fxh-seat.s1 { left: 10%; } .fxh-seat.s2 { left: 40%; } .fxh-seat.s3 { right: 8%; }
.fxh-candle { width: 8px; height: 30px; border-radius: 3px; background: linear-gradient(180deg, #fff3dc, #e9cfa4); position: relative; }
.fxh-candle::before { content: ""; position: absolute; left: 50%; top: -14px; width: 10px; height: 14px; margin-left: -5px; border-radius: 50% 50% 45% 45%; background: radial-gradient(circle at 50% 70%, #fff6c8, #ffb050 60%, transparent 70%); filter: drop-shadow(0 0 8px #ffb050); }
html[data-fx="2"] .fxh-candle::before, html[data-fx="3"] .fxh-candle::before { animation: fxhFlicker 1.6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes fxhFlicker { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.92, 1.08) rotate(2deg); } 100% { transform: scale(1.04, .96) rotate(-1deg); } }
.fxh-card-name { font: 700 12px/1 var(--fx-mono); padding: 6px 10px; border-radius: 8px; background: #fff3e2; color: #5a2414; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.fxh-seat.you .fxh-card-name { background: linear-gradient(135deg, var(--fx-a), var(--fx-b)); color: #fff; box-shadow: 0 0 22px var(--fx-glow); }
html.fxh-js:not([data-fx="0"]) .fxh-final:not(.is-visible) .fxh-seat.you { opacity: 0; transform: translateY(14px); }
.fxh-seat.you { transition: opacity .8s ease 1s, transform 1s var(--fx-ease) 1s; }

/* ------------------------------------------------------------------ responsive */
/* the hero copy stays left-aligned at every width (landing.css centres it ≤1080) */
.fxh-hero .lp-lead { margin-left: 0; margin-right: 0; }
.fxh-hero .lp-ctas, .fxh-hero .lp-trust { justify-content: flex-start; }
@media (min-width: 901px) and (max-width: 1080px) {
  .fxh-hero .lp-wrap.fxh-hero-inner { grid-template-columns: 1.08fr 1fr; gap: 28px; }
  .fxh-hero { min-height: calc(100svh - var(--nav-h) - 8px); padding: 24px 0 80px; }
  .fxh-2d-ring { --rad: -170px; }
}
/* large and 4K-class screens: a wider stage, a bigger headline */
@media (min-width: 1800px) {
  .fxh { --fxh-max: 1560px; }
  .fxh-title { font-size: clamp(80px, 4.5vw, 112px); }
  .fxh-hero .lp-lead { font-size: 20px; max-width: 660px; }
  .fxh-stage { max-width: 820px; }
  .fxh-2d-ring { --rad: -260px; }
  .fxh-ch-title { font-size: clamp(54px, 3vw, 68px); }
  .fxs { min-height: 480px; }
}
@media (min-width: 2400px) {
  .fxh { --fxh-max: 1840px; }
  .fxh-stage { max-width: 960px; }
  .fxh-2d-ring { --rad: -300px; }
}
@media (max-width: 1080px) {
  .fxh-gifts { grid-template-columns: repeat(2, 1fr); }
  .fxh-ch-inner { grid-template-columns: 1fr; }
  .fxh-ch { min-height: 0; padding: 70px 0; }
  .fxh-ch-scene { max-width: 560px; }
}
@media (max-width: 900px) {
  .fxh-hero { padding: 18px 0 80px; min-height: 0; }
  .fxh-hero-inner { grid-template-columns: 1fr; text-align: left; }
  .fxh-stage { max-width: min(92vw, 470px); margin-top: 6px; }
  .fxh-2d-ring { --rad: min(-30vw, -170px); }
  .fxh-cue { display: none; }
}
@media (max-width: 640px) {
  .fxh-title { font-size: clamp(36px, 10.4vw, 52px); }
  .fxh-badge { font-size: 13px; }
  .fxh-stats { grid-template-columns: 1fr; }
  .fxh-stat { padding: 24px 18px; }
  .fxh-stat + .fxh-stat { border-left: 0; border-top: 1px solid var(--fx-line); }
  .fxh-gifts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fxh-gift { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px; min-height: 0; }
  .fxh-gift-go { position: absolute; right: 12px; top: 14px; width: 28px; height: 28px; }
  .fxh-gift-ico { width: 44px; height: 44px; border-radius: 14px; }
  .fxh-gift-txt b { font-size: 16px; }
  .fxh-gift-txt small { font-size: 12px; }
  .fxh-bow { left: 50%; }
  html[data-season="winter"] .fxh-gift-lid::after { left: 50%; }
  .fxh-ch { padding: 56px 0; }
  .fxh-ch-title { font-size: clamp(28px, 8vw, 38px); }
  .fxs { min-height: 360px; padding: 14px; border-radius: 22px; }
  .fxs-shield-svg { width: 42%; right: 4%; top: 22%; }
  .fxs-lane { width: 62%; }
  .fxs-row { grid-template-columns: 22px 30px 1fr 50px; gap: 8px; padding: 0 10px; }
  .fxs-row .bar { display: none; }
  .fxs-player { grid-template-columns: 104px 1fr; gap: 14px; }
  .fxs-disc { width: 104px; }
  .fxh-steps { grid-template-columns: 1fr; gap: 34px; }
  .fxh-steps-line { display: none; }
  .fxh-final { padding: 40px 18px 36px; border-radius: 24px; }
  .fxh-mug { width: 66px; left: -6px; bottom: -20px; }
  .fxh-stage-hint { font-size: 10px; }
}
@media (max-width: 380px) { .fxh-gifts { grid-template-columns: 1fr; } }
