/* ═══════════════════════════════════════════════════════════════
   HappyTown — landing site · bright pastel theme
   cream base · sky / peach / lavender / mint / butter washes · slate-ink text
   Fraunces (display) / Be Vietnam Pro (text)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #fffaf3; --paper: #fff6ea; --ink: #2b3148; --ink-2: #5d6480; --ink-3: #8f95ad;
  --honey: #f6b945; --honey-d: #e08e1f; --coral: #ff8f7a; --peach: #ffd6c2; --rose: #ffdbe6;
  --sky: #d3ecff; --lav: #e6e0ff; --mint: #c9f0d6; --mint-d: #3c9a68; --butter: #fff0c4;
  --line: rgba(43, 49, 72, .09); --line-2: rgba(43, 49, 72, .16);
  --card: rgba(255, 255, 255, .78); --shadow: 0 30px 60px -34px rgba(78, 70, 120, .35);
  --grad-em: linear-gradient(100deg, #f7735a 0%, #f08f35 50%, #de9314 100%);
  --serif: 'Fraunces', 'Times New Roman', serif; --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r-lg: 28px; --r-md: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--butter); color: var(--ink); }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); position: relative; }

/* ── type ── */
.h2 { font: 600 clamp(40px, 5.4vw, 84px)/1.02 var(--serif); letter-spacing: -.025em; margin: 0; font-variation-settings: 'opsz' 144; }
.h3 { font: 600 clamp(28px, 3vw, 44px)/1.08 var(--serif); letter-spacing: -.02em; margin: 0; }
.h2 em, .h3 em, .hero-title em, .cta-title em, .hero-statement em { font-style: italic; font-weight: 400; background: var(--grad-em); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: var(--ink-2); max-width: 540px; margin: 0; }
.kicker { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 28px; }
.kicker span { font: 600 italic 15px/1 var(--serif); letter-spacing: 0; color: var(--honey-d); padding: 6px 11px; background: #fff; border: 1px solid rgba(224, 142, 31, .28); border-radius: 99px; box-shadow: 0 6px 14px -8px rgba(224, 142, 31, .5); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 99px; font: 600 14px/1 var(--sans); letter-spacing: .01em; white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 15.5px; }
.btn-xl { height: 64px; padding: 0 34px; font-size: 17px; }
.btn-gold { background: linear-gradient(180deg, #ffdc84, var(--honey) 50%, #f3a531); color: #4a2c06; box-shadow: 0 12px 26px -10px rgba(240, 160, 40, .65), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(170, 90, 0, .18); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(240, 160, 40, .75), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(170, 90, 0, .18); }
.btn-glass, .glass { background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); color: var(--ink); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 10px 30px -16px rgba(78, 70, 120, .35); }
.btn-glass:hover { background: rgba(255, 255, 255, .85); transform: translateY(-2px); }
.play-ico { width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.play-ico svg { width: 13px; height: 13px; fill: currentColor; stroke: none; margin-left: 2px; }

/* ── nav ── */
.nav { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; margin: 0 auto; width: calc(100% - 32px); max-width: 1400px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 10px 8px 18px; border-radius: 99px; transition: background .4s, box-shadow .4s, border-color .4s, transform .5s var(--ease); border: 1px solid transparent; }
.nav.scrolled { background: rgba(255, 255, 255, .72); border-color: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 18px 40px -24px rgba(78, 70, 120, .45); }
.nav.hide { transform: translateY(-120%); }
.nav-brand { width: 104px; justify-self: start; filter: drop-shadow(0 6px 12px rgba(120, 80, 40, .22)); transition: transform .4s var(--ease); }
.nav-brand:hover { transform: rotate(-3deg) scale(1.04); }
.nav-pills { display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 24px -16px rgba(78, 70, 120, .4); }
.nav-pills a { padding: 9px 16px; border-radius: 99px; font: 500 13.5px/1 var(--sans); color: var(--ink-2); transition: background .3s, color .3s; }
.nav-pills a:hover { background: rgba(255, 255, 255, .9); color: var(--ink); }
.nav-pills a.on { background: var(--ink); color: #fff; }
.nav-cta { justify-self: end; }
.nav-burger { display: none; justify-self: end; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .8); position: relative; box-shadow: 0 8px 20px -12px rgba(78, 70, 120, .5); }
.nav-burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.nav-burger i:first-child { top: 17px; } .nav-burger i:last-child { top: 25px; }
.nav.open .nav-burger i:first-child { transform: translateY(4px) rotate(45deg); } .nav.open .nav-burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── HERO — bright video with a milky fade ── */
.hero { position: relative; height: 240vh; background: var(--bg); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-frame { position: absolute; inset: 0; background: #cfe8f5 url(../assets/thumbs/poster_loading.v2.webp) center/cover; --ci: 0px; --cr: 0px; clip-path: inset(var(--ci) calc(var(--ci) * 1.6) round var(--cr)); will-change: clip-path; }
.hero-frame::after { content: ''; position: absolute; inset: 0; background: rgba(255, 250, 243, var(--dim, 0)); pointer-events: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--vs, 1.04)); transform-origin: 50% 60%; will-change: transform; }
.hero-grade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(255, 250, 243, .5) 0%, rgba(255, 250, 243, 0) 18%),
  linear-gradient(0deg, rgba(255, 250, 243, .97) 0%, rgba(255, 250, 243, .8) 22%, rgba(255, 250, 243, .25) 48%, rgba(255, 250, 243, 0) 62%),
  radial-gradient(62% 78% at 14% 74%, rgba(255, 250, 243, .9) 0%, rgba(255, 250, 243, .6) 45%, transparent 72%); }
.hero-content { position: absolute; left: 0; right: 0; bottom: 132px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; will-change: transform, opacity; }
.hero-copy { max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px; font: 500 13px/1 var(--sans); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #5cc98a; box-shadow: 0 0 0 4px rgba(92, 201, 138, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(92, 201, 138, 0); } }
.hero-title { font: 600 clamp(46px, 7.2vw, 118px)/.96 var(--serif); letter-spacing: -.035em; margin: 22px 0 22px; color: var(--ink); text-shadow: 0 2px 30px rgba(255, 255, 255, .9); font-variation-settings: 'opsz' 144; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > * { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero-title .line:nth-child(2) > * { transition-delay: .12s; }
.ready .hero-title .line > * { transform: none; }
.hero-title em { text-shadow: none; background: linear-gradient(100deg, #f0613f 0%, #ec7f2a 50%, #d88410 100%); -webkit-background-clip: text; background-clip: text; }
.hero-sub { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 560px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-copy > *:not(.hero-title) { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.ready .hero-copy > * { opacity: 1; transform: none; }
.ready .hero-sub { transition-delay: .3s; } .ready .hero-ctas { transition-delay: .42s; }
.hero-card { width: 250px; padding: 18px; border-radius: 22px; flex-shrink: 0; opacity: 0; transform: translateY(18px); transition: opacity 1s .55s var(--ease), transform 1s .55s var(--ease); }
.ready .hero-card { opacity: 1; transform: none; }
.hc-logo { width: 150px; margin: -6px auto 10px; }
.hc-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
.hc-row b { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.hc-row b::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff6f6f; box-shadow: 0 0 0 3px rgba(255, 111, 111, .2); }
.hc-prog { height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(43, 49, 72, .1); overflow: hidden; }
.hc-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--honey)); }
.hero-stats { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; align-items: center; gap: clamp(20px, 4vw, 64px); padding-top: 22px; will-change: opacity; }
.hero-stats::before { content: ''; position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); top: 0; height: 1px; background: linear-gradient(90deg, var(--line-2), rgba(43, 49, 72, .03)); }
.hero-stats > div:not(.scroll-cue) { display: flex; align-items: baseline; gap: 8px; }
.hero-stats b { font: 600 28px/1 var(--serif); color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--ink-2); }
.scroll-cue { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.scroll-cue i { width: 22px; height: 34px; border: 1.5px solid var(--ink-3); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s infinite var(--ease); }
@keyframes wheel { 60% { transform: translateY(9px); opacity: 0; } 61% { transform: none; opacity: 0; } }
.hero-statement { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.hero-statement p { font: 600 clamp(40px, 6.4vw, 104px)/1 var(--serif); letter-spacing: -.035em; text-align: center; margin: 0; color: var(--ink); text-shadow: 0 0 50px rgba(255, 255, 255, .95), 0 0 16px rgba(255, 255, 255, .8); }
.hero-statement em { text-shadow: none; background: linear-gradient(100deg, #e0552f 0%, #d9731c 55%, #c47a0c 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .95)); }

/* ── ABOUT ── */
.about { position: relative; padding: clamp(100px, 12vw, 170px) 0 clamp(60px, 7vw, 100px); background: radial-gradient(40% 50% at 90% 10%, rgba(255, 214, 194, .55), transparent 70%), radial-gradient(40% 50% at 5% 80%, rgba(211, 236, 255, .7), transparent 70%), linear-gradient(180deg, var(--bg), #fff4ea); overflow: hidden; }
.manifesto { font: 400 clamp(28px, 3.5vw, 54px)/1.22 var(--serif); letter-spacing: -.02em; margin: 0 0 clamp(70px, 9vw, 130px); max-width: 1180px; }
.manifesto .w { opacity: .18; transition: opacity .3s linear; }
.manifesto .w.on { opacity: 1; }
.manifesto .w.hl { font-style: italic; color: var(--honey-d); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { padding: 28px 26px 30px; border-radius: var(--r-lg); background: linear-gradient(170deg, #fff, var(--pb, #fff6ea)); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pillar:nth-child(1) { --pb: #eaf9ee; } .pillar:nth-child(2) { --pb: #fff0e4; } .pillar:nth-child(3) { --pb: #ffeef4; } .pillar:nth-child(4) { --pb: #e9f4ff; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -34px rgba(78, 70, 120, .45); }
.pillar img { width: 56px; height: 56px; object-fit: contain; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 10px 20px -12px rgba(78, 70, 120, .45); }
.pillar h3 { font: 600 26px/1.1 var(--serif); margin: 22px 0 10px; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ── HEROES stage ── */
.heroes { position: relative; padding: clamp(70px, 8vw, 110px) 0 clamp(70px, 8vw, 110px); background: linear-gradient(180deg, #fff4ea 0%, #f3efff 30%, #eaf4ff 100%); overflow: hidden; }
.heroes-glow { position: absolute; left: 50%; top: 60%; width: 1100px; height: 800px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--hc, #5b7cff), transparent); opacity: .22; filter: blur(40px); transition: background .8s; pointer-events: none; }
.heroes-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 40px; margin-bottom: 40px; }
.heroes-head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.heroes-head .lead { justify-self: end; }
.stage-grid { display: grid; grid-template-columns: 260px 1fr 360px; gap: 28px; align-items: stretch; min-height: 660px; }
.hero-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.hero-list button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; border-radius: 20px; border: 1px solid transparent; text-align: left; transition: background .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.hero-list button:hover { background: rgba(255, 255, 255, .6); transform: translateX(4px); }
.hero-list button.on { background: #fff; border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--c) 90%, transparent); }
.hl-port { width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0; background-color: color-mix(in srgb, var(--c) 35%, #fff); background-size: 200% auto; background-position: 50% 25%; background-repeat: no-repeat; box-shadow: inset 0 -10px 20px -10px color-mix(in srgb, var(--c) 60%, transparent); }
.hl-txt b { display: block; font: 600 19px/1.15 var(--serif); }
.hl-txt small { font-size: 12.5px; color: var(--ink-2); }
.stage { position: relative; border-radius: 36px; min-height: 560px; cursor: grab; touch-action: pan-y; }
.stage:active { cursor: grabbing; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-hint { position: absolute; right: 8px; top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .75); border: 1px solid #fff; pointer-events: none; }
.stage-hint svg { width: 16px; height: 16px; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity .4s; }
.stage-loading i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(43, 49, 72, .1); border-top-color: var(--honey); animation: spin 1s linear infinite; }
.stage-loading.off { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-info { align-self: center; padding: 30px 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid #fff; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hi-top { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hi-index { color: color-mix(in srgb, var(--c, var(--honey)) 80%, #000); font-weight: 600; }
.hi-name { font: 600 54px/1 var(--serif); letter-spacing: -.03em; margin: 18px 0 6px; }
.hi-role { font-size: 14px; color: color-mix(in srgb, var(--c, var(--honey)) 78%, #000); font-weight: 600; }
.hi-lore { color: var(--ink-2); font-size: 15px; margin: 16px 0 22px; min-height: 72px; }
.hi-bonus { padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--c, #fff) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c, #fff) 25%, #fff); margin-bottom: 22px; }
.hib-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.hib-head b { font: 600 30px/1 var(--serif); color: var(--ink); letter-spacing: -.02em; text-transform: none; }
.hib-name { font-weight: 600; margin: 4px 0 12px; }
.hib-meter { height: 7px; border-radius: 7px; background: rgba(43, 49, 72, .08); overflow: hidden; }
.hib-meter i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, #fff), var(--c)); transition: width 1s var(--ease); }
.hi-label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.chips button { padding: 8px 12px; border-radius: 99px; font-size: 13px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); transition: background .25s, border-color .25s, color .25s; }
.chips button:hover { border-color: var(--ink-3); color: var(--ink); }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; background: var(--s); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1), 0 0 0 1px var(--line-2); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .25s, transform .25s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button.on { outline-color: var(--ink); }

/* ── WORLD ── */
.world { position: relative; height: 790vh; background: #eaf4ff; }
.world-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--ink); }
.world-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--s1, #bfe6ff), var(--s2, #fff4d8)); }
.world-sky::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 62% 58%, rgba(255, 255, 255, .6), transparent 70%); }
.cloud { position: absolute; display: block; width: 420px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); filter: blur(6px); opacity: .8; animation: drift 70s linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); }
.cloud::before { width: 60%; height: 150%; left: 14%; top: -55%; } .cloud::after { width: 46%; height: 120%; left: 46%; top: -35%; }
.c1 { top: 12%; left: -10%; } .c2 { top: 30%; left: 30%; transform: scale(.6); animation-duration: 95s; animation-delay: -40s; opacity: .6; }
.c3 { top: 8%; left: 60%; transform: scale(.8); animation-duration: 85s; animation-delay: -20s; } .c4 { top: 64%; left: 10%; transform: scale(.9); animation-duration: 110s; animation-delay: -70s; opacity: .5; }
@keyframes drift { from { translate: -30vw 0; } to { translate: 110vw 0; } }
#worldCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-ui { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.world-copy { max-width: 440px; pointer-events: auto; }
.w-count { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); color: var(--ink-3); }
.w-count b { font: italic 600 22px/1 var(--serif); color: var(--ink-2); } .w-count span { font-size: 15px; }
.w-name { font: 600 clamp(46px, 5.2vw, 86px)/.95 var(--serif); letter-spacing: -.04em; margin: 8px 0 14px; }
.w-level { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font: 600 12.5px/1 var(--sans); background: var(--za, #7cc35a); color: #fff; box-shadow: 0 8px 20px -8px var(--za); }
.w-level::before { content: ''; width: 14px; height: 14px; background: url(../assets/icons/lock.png) center/contain no-repeat; filter: brightness(10); opacity: .9; }
.w-desc { font-size: 16px; line-height: 1.6; margin: 16px 0 16px; color: var(--ink-2); }
.w-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.w-tags span { padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .7); border: 1px solid #fff; box-shadow: 0 6px 16px -10px rgba(78, 70, 120, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.world-copy > * { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.world-copy.swap > *:not(.kicker) { opacity: 0; transform: translateY(14px); }
.world-rail { pointer-events: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 22px; background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.world-rail button { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 0; font-size: 13.5px; font-weight: 500; color: var(--ink-2); opacity: .7; transition: opacity .3s, color .3s; }
.world-rail button i { width: 18px; height: 3px; border-radius: 3px; background: var(--line-2); transition: width .4s var(--ease), background .4s; }
.world-rail button:hover { opacity: 1; }
.world-rail button.on { opacity: 1; font-weight: 700; color: var(--ink); }
.world-rail button.on i { width: 40px; background: var(--za); }
.world-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); pointer-events: none; }
.world-hint i { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.world-hint i::after { content: ''; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.8s infinite var(--ease); }
.world-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(43, 49, 72, .05); }
.world-progress i { display: block; height: 100%; width: 0; background: var(--za, #7cc35a); }
.world-loading { position: absolute; right: 32px; bottom: 26px; font-size: 12.5px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .75); opacity: 0; transition: opacity .3s; }
.world-loading.on { opacity: 1; }

/* ── PLAY / bento ── */
.light { color: var(--ink); }
.play { padding: clamp(100px, 11vw, 160px) 0 clamp(70px, 7vw, 100px); position: relative; background: linear-gradient(180deg, #f2fbf2 0%, #fffaf3 100%); }
.play-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.bento { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 320px; gap: 18px; grid-template-areas: 'crops crops animals race' 'fish home pets race' 'staff staff delivery delivery'; }
#bentoCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #fffefb, var(--cb, #f7efe0)); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow); transition: box-shadow .4s var(--ease); }
.card:hover { box-shadow: 0 44px 80px -36px rgba(78, 70, 120, .5); }
.card::before { content: ''; position: absolute; left: 50%; top: 38%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, var(--cg, rgba(139, 212, 110, .35)), transparent); }
.card[data-view=crops] { grid-area: crops; --cb: #e9f8e4; --cg: rgba(139, 212, 110, .45); }
.card[data-view=animals] { grid-area: animals; --cb: #fff0e2; --cg: rgba(255, 190, 120, .45); }
.card[data-view=race] { grid-area: race; --cb: #ffe9df; --cg: rgba(255, 143, 122, .32); }
.card[data-view=fish] { grid-area: fish; --cb: #e0f4fb; --cg: rgba(63, 183, 201, .32); }
.card[data-view=home] { grid-area: home; --cb: #fbeee2; --cg: rgba(230, 170, 110, .3); }
.card[data-view=pets] { grid-area: pets; --cb: #ffedf3; --cg: rgba(255, 140, 170, .3); }
.card[data-view=staff] { grid-area: staff; --cb: #ecefff; --cg: rgba(140, 150, 255, .28); }
.card[data-view=delivery] { grid-area: delivery; --cb: #fff5d6; --cg: rgba(246, 196, 83, .45); }
.card .view { position: absolute; left: 0; right: 0; top: 0; bottom: 40%; }
.c-wide .view, .c-wide2 .view { left: 38%; bottom: 0; }
.c-wide::before, .c-wide2::before { left: 68%; top: 50%; width: 50%; }
.c-tall .view { bottom: 34%; }
.c-tall::before { top: 32%; width: 90%; }
.card-txt { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; }
.c-wide .card-txt, .c-wide2 .card-txt { right: 62%; }
.card .tag { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mint-d); margin-bottom: 10px; }
.card h3 { font: 600 24px/1.12 var(--serif); letter-spacing: -.015em; margin: 0 0 8px; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.card .big { position: absolute; z-index: 2; left: 26px; top: 22px; font: 600 64px/1 var(--serif); letter-spacing: -.04em; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.card .big small { font: 500 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.c-tall .big { top: auto; bottom: 150px; }
.extras { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }
.extras span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 99px; background: #fff; border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 24px -16px rgba(78, 70, 120, .45); font-size: 14px; font-weight: 500; }
.extras img { width: 26px; height: 26px; object-fit: contain; }

/* ── TRAILER ── */
.trailer { padding: clamp(100px, 11vw, 160px) 0; background: radial-gradient(50% 50% at 85% 20%, rgba(255, 219, 230, .8), transparent 70%), linear-gradient(180deg, #fffaf3 0%, #e9f4ff 55%, #f3efff 100%); }
.trailer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.eps { display: flex; gap: 10px; }
.ep { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .6); text-align: left; box-shadow: 0 12px 24px -18px rgba(78, 70, 120, .5); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.ep i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font: italic 600 16px/1 var(--serif); background: var(--sky); color: var(--ink); }
.ep b { display: block; font-weight: 600; font-size: 14.5px; }
.ep small { font-size: 12px; color: var(--ink-2); }
.ep:hover { background: #fff; transform: translateY(-2px); }
.ep.on { background: #fff; border-color: rgba(246, 185, 69, .7); }
.ep.on i { background: linear-gradient(180deg, #ffdc84, var(--honey)); color: #4a2c06; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 34px; overflow: hidden; background: #cfe8f5; border: 8px solid #fff; box-shadow: 0 60px 100px -50px rgba(78, 90, 160, .55); transform: scale(var(--ss, .94)); transform-origin: 50% 0; will-change: transform; }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.screen-ui { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(43, 49, 72, .45), transparent 32%); color: #fff; }
.sc-play { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); border: 1px solid #fff; box-shadow: 0 20px 40px -16px rgba(43, 49, 72, .5); transition: transform .4s var(--ease), background .3s; }
.sc-play::before { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: ring 2.4s infinite var(--ease); }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.sc-play svg { width: 32px; height: 32px; fill: var(--ink); stroke: none; margin-left: 5px; }
.sc-play:hover { transform: scale(1.08); background: #fff; }
.sc-bar { position: absolute; left: 32px; right: 32px; bottom: 26px; display: flex; align-items: center; gap: 18px; font-size: 13.5px; font-weight: 500; }
.sc-prog { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.sc-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffdc84, var(--honey)); }

/* ── GALLERY ── */
.gallery { padding: clamp(100px, 11vw, 160px) 0 clamp(100px, 10vw, 150px); overflow: hidden; background: linear-gradient(180deg, #f3efff 0%, #fff8e6 30%, #fffaf3 100%); }
.numbers { display: grid; grid-template-columns: repeat(5, 1fr); margin: 56px 0 64px; border-top: 1px solid var(--line-2); }
.num { padding: 26px 20px 0 0; border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num + .num { padding-left: 24px; }
.num b { display: block; font: 600 clamp(40px, 4.4vw, 68px)/1 var(--serif); letter-spacing: -.04em; }
.num span { font-size: 14px; color: var(--ink-2); }
.marquee { display: flex; gap: 16px; width: max-content; padding: 10px 0; animation: marquee 80s linear infinite; }
.marquee.rev { animation-direction: reverse; animation-duration: 95s; margin-top: 8px; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.mq { width: 196px; flex-shrink: 0; padding: 12px 12px 14px; border-radius: 22px; background: #fff; border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 16px 30px -24px rgba(78, 70, 120, .5); transition: transform .4s var(--ease), box-shadow .4s; }
.mq:nth-child(5n+1) .ph { --ph: #e9f8e4; } .mq:nth-child(5n+2) .ph { --ph: #fff0e2; } .mq:nth-child(5n+3) .ph { --ph: #e6f2ff; } .mq:nth-child(5n+4) .ph { --ph: #ffedf3; } .mq:nth-child(5n) .ph { --ph: #f0ecff; }
.mq:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 28px 44px -24px rgba(78, 70, 120, .55); }
.mq .ph { height: 150px; border-radius: 14px; background: radial-gradient(circle at 50% 60%, #ffffff, var(--ph, #f5ecdc) 80%); display: grid; place-items: center; }
.mq img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(78, 70, 120, .2)); }
.mq b { display: block; font: 600 16px/1.2 var(--serif); margin: 12px 4px 2px; }
.mq small { font-size: 12px; color: var(--ink-2); margin-left: 4px; }
.chapters-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 110px 0 32px; flex-wrap: wrap; }
.chapters-head p { margin: 0; max-width: 420px; color: var(--ink-2); }
.chapters { display: grid; grid-template-columns: repeat(7, minmax(168px, 1fr)); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: thin; }
.chap { scroll-snap-align: start; position: relative; padding: 22px 20px 24px; border-radius: 22px; background: #fff; border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 16px 30px -24px rgba(78, 70, 120, .5); min-height: 230px; display: flex; flex-direction: column; transition: background .35s, transform .35s var(--ease); }
.chap:nth-child(7n+1) { --cp: #e9f8e4; } .chap:nth-child(7n+2) { --cp: #fff0e2; } .chap:nth-child(7n+3) { --cp: #e6f2ff; } .chap:nth-child(7n+4) { --cp: #e9f8e4; } .chap:nth-child(7n+5) { --cp: #ffedf3; } .chap:nth-child(7n+6) { --cp: #fff3d0; } .chap:nth-child(7n) { --cp: #dff6ef; }
.chap:hover { background: var(--cp); transform: translateY(-4px); }
.chap .n { font: italic 600 44px/1 var(--serif); letter-spacing: -.03em; background: var(--grad-em); -webkit-background-clip: text; background-clip: text; color: transparent; align-self: flex-start; padding-right: .08em; }
.chap b { font: 600 20px/1.15 var(--serif); margin: 18px 0 8px; }
.chap p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.chap .z { margin-top: auto; padding-top: 16px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ── CTA ── */
.cta { position: relative; min-height: 100vh; background: #cfe8f5 url(../assets/thumbs/poster_login.v2.webp) center/cover; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 120px 0; }
.cta-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.cta-shade { position: absolute; inset: 0; background: radial-gradient(55% 55% at 50% 50%, rgba(255, 250, 243, .9), rgba(255, 250, 243, .55) 70%, rgba(255, 250, 243, .35)); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-logo { width: min(320px, 70vw); filter: drop-shadow(0 20px 36px rgba(120, 80, 40, .3)); }
.cta-title { font: 600 clamp(52px, 8vw, 132px)/.95 var(--serif); letter-spacing: -.04em; margin: 10px 0 18px; color: var(--ink); }
.cta-inner > p { font-size: 18px; color: var(--ink-2); margin: 0 0 34px; }
.stores { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; box-shadow: 0 10px 24px -14px rgba(78, 70, 120, .5); text-align: left; font-weight: 600; font-size: 15px; line-height: 1.1; cursor: pointer; }
.store svg { width: 24px; height: 24px; fill: var(--ink); stroke: none; }
.store small { display: block; font-size: 10.5px; font-weight: 400; color: var(--ink-2); }

/* ── footer ── */
.foot { background: linear-gradient(180deg, #fff6ea, #fdeee4); padding: 80px 0 30px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand .logo-slot { width: 150px; display: block; }
.foot-brand p { color: var(--ink-2); font-size: 14px; }
.foot-cols { display: flex; gap: clamp(40px, 7vw, 100px); }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-cols b { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.foot-cols a { color: var(--ink-2); transition: color .25s; }
.foot-cols a:hover { color: var(--honey-d); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }

/* ── lightbox / toast ── */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(60, 64, 96, .55); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); animation: fade .35s var(--ease); }
.lightbox video { width: min(1280px, 92vw); max-height: 84vh; border-radius: 22px; background: #000; border: 6px solid #fff; box-shadow: 0 40px 100px rgba(40, 40, 80, .45); }
.lb-close { position: absolute; top: 24px; right: 24px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(40, 40, 80, .5); }
.lb-close svg { width: 22px; height: 22px; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 30px); opacity: 0; padding: 14px 22px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 20px 40px -14px rgba(40, 40, 80, .5); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 1180px) {
  .nav-pills a { padding: 9px 11px; }
  .stage-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-list { flex-direction: row; overflow-x: auto; order: 1; padding-bottom: 6px; }
  .hero-list li { flex: 0 0 auto; }
  .stage { order: 2; min-height: 520px; }
  .hero-info { order: 3; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: 'crops crops' 'animals race' 'fish race' 'home pets' 'staff staff' 'delivery delivery'; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .num:nth-child(3) { border-right: 0; }
  .num:nth-child(4) { padding-left: 0; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-pills { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav.open { background: rgba(255, 255, 255, .95); border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(78, 70, 120, .5); }
  .nav.open .nav-pills { display: flex; flex-direction: column; grid-column: 1 / -1; background: none; border: 0; box-shadow: none; padding: 10px 0; }
  .nav.open .nav-pills a { font-size: 17px; padding: 14px 12px; }
  .nav.open .nav-cta { display: inline-flex; grid-column: 1 / -1; justify-self: stretch; justify-content: center; height: 50px; margin: 0 4px 8px; }
  .nav.open .nav-pills a.on { background: var(--sky); color: var(--ink); }
  .nav.open { align-items: start; row-gap: 4px; }
  .hero-content { flex-direction: column; align-items: flex-start; bottom: 120px; }
  .hero-card { display: none; }
  .hero-stats > div:nth-child(4), .scroll-cue { display: none; }
  .heroes-head, .play-head { grid-template-columns: 1fr; }
  .heroes-head .lead { justify-self: start; }
  .world { height: auto; }
  .world-sticky { position: relative; height: auto; min-height: 100svh; }
  #worldCanvas { position: relative; height: 56vh; margin-top: 76px; }
  .world-ui { flex-direction: column; align-items: stretch; padding-top: 40px; padding-bottom: 50px; height: auto; }
  .world-rail { flex-direction: row; overflow-x: auto; gap: 6px; margin-top: 24px; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .world-rail button { flex: 0 0 auto; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .7); opacity: .85; }
  .world-rail button.on { background: #fff; }
  .world-rail button i { display: none; }
  .world-hint { display: none; }
  .trailer-head { flex-direction: column; align-items: flex-start; }
  .eps { flex-direction: column; width: 100%; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 340px; grid-template-areas: 'crops' 'animals' 'race' 'fish' 'home' 'pets' 'staff' 'delivery'; }
  .c-wide .view, .c-wide2 .view { left: 0; bottom: 40%; }
  .c-wide .card-txt, .c-wide2 .card-txt { right: 26px; }
  .shots-grid { grid-template-columns: 1fr; }
  .shot.big { grid-column: auto; grid-row: auto; }
  .sx-card { flex-wrap: wrap; }
  .c-tall .big { bottom: 140px; }
  .pillars { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .num { border-right: 0 !important; padding-left: 0 !important; }
  .hero-stats b { font-size: 22px; }
  .hero-stats { gap: 18px; }
  .sc-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .sc-bar { left: 18px; right: 18px; bottom: 16px; }
  .screen { border-radius: 20px; border-width: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── additions: a11y, 3D fade-in, zone features, in-game shots, SentryX credit ── */
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; transition: top .25s; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid rgba(240, 143, 53, .7); outline-offset: 3px; border-radius: 10px; }
.kicker-h { font: inherit; letter-spacing: inherit; margin: 0; color: inherit; }
.noscript { position: fixed; bottom: 16px; left: 16px; right: 16px; padding: 14px; border-radius: 14px; background: var(--ink); color: #fff; text-align: center; z-index: 100; }
.gl { opacity: 0; transition: opacity 1.6s var(--ease); }
.gl.on { opacity: 1; }
/* hero credit */
.hc-by { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); opacity: .8; transition: opacity .3s; }
.hc-by:hover { opacity: 1; }
.hc-by small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hc-by .sx-logo { width: 74px; height: auto; }
/* world: featured builds + optional backdrop media */
.w-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; max-width: 430px; }
.w-feats figure { margin: 0; padding: 6px 6px 8px; border-radius: 16px; background: rgba(255, 255, 255, .72); border: 1px solid #fff; box-shadow: 0 10px 22px -16px rgba(78, 70, 120, .55); text-align: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .35s var(--ease); }
.w-feats figure:hover { transform: translateY(-4px); }
.w-feats span { position: relative; display: block; height: 62px; border-radius: 11px; overflow: hidden; background: radial-gradient(circle at 50% 60%, #fff, color-mix(in srgb, var(--za, #7cc35a) 22%, #fff)); }
.w-feats img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); max-width: none; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(78, 70, 120, .25)); }
.w-feats figcaption { font-size: 11px; font-weight: 600; line-height: 1.2; margin-top: 6px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone-media { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); -webkit-mask: radial-gradient(90% 90% at 60% 45%, #000 45%, transparent 100%); mask: radial-gradient(90% 90% at 60% 45%, #000 45%, transparent 100%); }
.zone-media.on { opacity: .9; }
.zone-media img, .zone-media video { width: 100%; height: 100%; object-fit: cover; }
/* in-game shots */
.shots { padding: clamp(90px, 10vw, 140px) 0; background: linear-gradient(180deg, #fffaf3 0%, #eef8ff 100%); }
.shots-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.shots-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.shot { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: #e8eef6; border: 5px solid #fff; box-shadow: var(--shadow); }
.shot.big { grid-column: span 2; grid-row: span 2; }
.shot button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 14px; background: linear-gradient(0deg, rgba(30, 34, 54, .86) 0%, rgba(30, 34, 54, .55) 45%, transparent); text-shadow: 0 1px 8px rgba(0, 0, 0, .35); color: #fff; pointer-events: none; }
.shot figcaption b { display: block; font: 600 19px/1.15 var(--serif); }
.shot.big figcaption b { font-size: 28px; }
.shot figcaption span { font-size: 12.5px; opacity: .85; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 20px; border: 6px solid #fff; box-shadow: 0 40px 100px rgba(40, 40, 80, .45); }
/* SentryX credit card */
.sx-logo { display: block; color: var(--ink); }
.sx-card { display: flex; align-items: center; gap: 26px; margin-top: 44px; padding: 22px 28px; border-radius: 26px; background: #fff; border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.sx-card:hover { transform: translateY(-3px); box-shadow: 0 40px 70px -34px rgba(76, 107, 205, .45); }
.sx-badge { flex-shrink: 0; display: grid; place-items: center; width: 210px; height: 74px; border-radius: 18px; background: linear-gradient(135deg, #f4f6ff, #e9edff); }
.sx-badge .sx-logo { width: 150px; height: auto; }
.sx-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sx-txt small { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sx-txt b { font: 600 24px/1.1 var(--serif); color: var(--ink); }
.sx-txt em { font-style: normal; font-size: 13.5px; color: var(--ink-2); }
.sx-go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #4c6bcd; color: #fff; flex-shrink: 0; transition: transform .35s var(--ease); }
.sx-go svg { width: 20px; height: 20px; }
.sx-card:hover .sx-go { transform: rotate(45deg); }
@media (max-width: 900px) { .shots-head { grid-template-columns: 1fr; } .shots-grid { grid-template-columns: repeat(2, 1fr); } .w-feats { grid-template-columns: repeat(4, 1fr); } }

.logo-slot img { display: block; width: 100%; height: auto; }

/* ── residents: auto-gliding carousel, the card at the centre grows ── */
.residents { padding: clamp(90px, 10vw, 140px) 0 clamp(70px, 8vw, 110px); background: linear-gradient(180deg, #eaf4ff 0%, #fff6ec 100%); overflow: hidden; }
.res-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 30px; }
.res-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.res-filters button { padding: 9px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: rgba(255, 255, 255, .7); border: 1px solid #fff; box-shadow: 0 6px 16px -12px rgba(78, 70, 120, .45); transition: background .25s, color .25s; }
.res-filters button i { font-style: normal; font-size: 11.5px; margin-left: 4px; padding: 2px 7px; border-radius: 99px; background: rgba(43, 49, 72, .07); }
.res-filters button:hover { background: #fff; color: var(--ink); }
.res-filters button.on { background: var(--ink); color: #fff; }
.res-filters button.on i { background: rgba(255, 255, 255, .18); }
.res-stage { position: relative; height: 470px; margin-top: 10px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.res-stage:active { cursor: grabbing; }
.res-stage::before { content: ''; position: absolute; left: 50%; bottom: 36px; width: 460px; height: 150px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ra, #7cc35a) 40%, transparent), transparent); transition: background .6s; }
.res-stage::after { content: ''; position: absolute; left: 50%; bottom: 58px; width: 300px; height: 34px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(78, 70, 120, .22), transparent); }
.res-track { position: absolute; left: 0; bottom: 70px; display: flex; align-items: flex-end; gap: 18px; margin: 0; padding: 0; list-style: none; will-change: transform; }
.res { position: relative; flex: 0 0 var(--cw, 168px); padding: 7px 7px 10px; border-radius: 22px; background: #fff; border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 16px 30px -24px rgba(78, 70, 120, .5); text-align: center; transform-origin: 50% 100%; will-change: transform, opacity; }
.res.on { box-shadow: 0 34px 60px -30px color-mix(in srgb, var(--ra, #7cc35a) 70%, rgba(78, 70, 120, .6)), 0 0 0 3px color-mix(in srgb, var(--ra, #7cc35a) 55%, #fff); }
.res-ph { display: block; aspect-ratio: 206 / 252; border-radius: 16px; overflow: hidden; background: #eef3fb; pointer-events: none; }
.res-ph img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.res b { display: block; font: 600 14px/1.2 var(--serif); margin: 8px 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-spot { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: -8px; }
.rs-txt { min-width: 280px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rs-i { font: italic 600 14px/1 var(--serif); color: var(--ink-3); }
.rs-txt b { font: 600 clamp(26px, 2.6vw, 36px)/1.1 var(--serif); letter-spacing: -.02em; }
.rs-txt small { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 99px; color: #fff; background: var(--ra, #7cc35a); box-shadow: 0 8px 18px -10px var(--ra, #7cc35a); transition: background .5s; }
.rs-txt.swap > * { animation: rsSwap .45s var(--ease); }
@keyframes rsSwap { from { opacity: 0; transform: translateY(8px); } }
.rs-nav { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 12px 24px -14px rgba(78, 70, 120, .55); transition: transform .3s var(--ease); }
.rs-nav:hover { transform: scale(1.08); }
.rs-nav svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .res-head { grid-template-columns: 1fr; } .res-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .res-filters button { flex: 0 0 auto; }
  .res-stage { height: 400px; } .res { --cw: 136px; } .res-stage::before { width: 320px; } .rs-txt { min-width: 0; } }

/* ── Cờ Tỷ Phú: live board ── */
.board { padding: clamp(90px, 10vw, 140px) 0; background: radial-gradient(45% 50% at 85% 10%, rgba(255, 207, 184, .6), transparent 70%), linear-gradient(180deg, #fff6ec 0%, #ffece2 45%, #fff6ec 100%); overflow: hidden; }
.board-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: stretch; }
.board-stage { position: relative; min-height: 660px; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #cfe9ff 0%, #fff4e0 100%); border: 6px solid #fff; box-shadow: 0 60px 110px -60px rgba(160, 80, 60, .55); cursor: grab; touch-action: pan-y; }
.board-stage:active { cursor: grabbing; }
.board-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bd-hud { position: absolute; inset: 14px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.bd-players { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bd-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 9px 12px; border-radius: 16px; background: rgba(255, 255, 255, .82); border: 2px solid transparent; box-shadow: 0 10px 22px -16px rgba(43, 49, 72, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .3s, transform .3s var(--ease); }
.bd-chip i { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 25%, transparent); }
.bd-chip b { font-size: 13px; line-height: 1.1; }
.bd-chip span { font: 600 15px/1.1 var(--serif); grid-column: 2; }
.bd-chip small { display: none; }
.bd-chip.on { border-color: var(--pc); transform: translateY(-2px); }
.bd-bar { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 20px; background: rgba(255, 255, 255, .88); box-shadow: 0 18px 36px -22px rgba(43, 49, 72, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); pointer-events: auto; }
.bd-txt { flex: 1; min-width: 0; }
.bd-turn { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.bd-log { font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
.bd-log.swap { animation: rsSwap .4s var(--ease); }
.bd-d { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; font-size: 12.5px; }
.bd-actions { display: flex; gap: 8px; flex-shrink: 0; }
#bdRoll[disabled] { opacity: .55; cursor: default; transform: none; }
#bdRoll.pulse { animation: rollPulse 1.4s infinite; }
@keyframes rollPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 185, 69, .7), 0 12px 26px -10px rgba(240, 160, 40, .65); } 50% { box-shadow: 0 0 0 12px rgba(246, 185, 69, 0), 0 12px 26px -10px rgba(240, 160, 40, .65); } }
.bd-pops { position: absolute; inset: 0; pointer-events: none; }
.bd-pop { position: absolute; transform: translate(-50%, -50%); font: 800 18px/1 var(--sans); padding: 5px 10px; border-radius: 99px; background: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .3); animation: bdPop 1.6s var(--ease) forwards; white-space: nowrap; }
.bd-pop.good { color: #1f9d55; } .bd-pop.bad { color: #e5484d; }
@keyframes bdPop { 0% { opacity: 0; margin-top: 10px; } 15% { opacity: 1; margin-top: 0; } 80% { opacity: 1; } 100% { opacity: 0; margin-top: -36px; } }
.bd-banner { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.6); opacity: 0; display: flex; flex-direction: column; align-items: center; padding: 22px 42px; border-radius: 26px; background: linear-gradient(180deg, #ffe39a, #f6b945); color: #4a2c06; box-shadow: 0 30px 60px -20px rgba(160, 90, 0, .6); transition: opacity .4s, transform .6s var(--ease); pointer-events: none; }
.bd-banner b { font: 600 44px/1 var(--serif); } .bd-banner span { font-weight: 700; margin-top: 6px; }
.bd-banner.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.board-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rule { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px 16px 16px 14px; border-radius: 22px; background: #fff; border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 14px 28px -22px rgba(160, 80, 60, .5); flex: 1; }
.rule-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #fff4e3, #ffe2cc); }
.rule-ico img { width: 34px; height: 34px; object-fit: contain; }
.rule b { display: block; font: 600 18px/1.2 var(--serif); margin-bottom: 3px; }
.rule p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.rule p b { display: inline; font: inherit; font-weight: 700; color: var(--ink); margin: 0; }

/* ── Tất cả tính năng ── */
.features { padding: clamp(90px, 10vw, 140px) 0; background: radial-gradient(40% 50% at 10% 20%, rgba(211, 236, 255, .8), transparent 70%), linear-gradient(180deg, #fffaf3 0%, #f2f8ff 100%); }
.feat-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 34px; }
.feat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.feat-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .8); border: 1px solid #fff; box-shadow: 0 8px 18px -14px rgba(78, 70, 120, .5); transition: background .25s, color .25s, transform .25s var(--ease); }
.feat-tabs button img { width: 24px; height: 24px; object-fit: contain; }
.feat-tabs button i { font-style: normal; font-size: 11.5px; padding: 2px 7px; border-radius: 99px; background: rgba(43, 49, 72, .07); }
.feat-tabs button:hover { transform: translateY(-2px); color: var(--ink); }
.feat-tabs button.on { background: var(--ink); color: #fff; }
.feat-tabs button.on i { background: rgba(255, 255, 255, .18); }
.feat-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; padding: 20px 18px 20px 16px; border-radius: 24px; background: #fff; border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 18px 34px -26px rgba(78, 70, 120, .5); animation: featIn .55s var(--ease) both; animation-delay: var(--d, 0ms); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feat:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(78, 70, 120, .55); }
.feat-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(160deg, #f3f7ff, #e6efff); }
.feat-ico img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(78, 70, 120, .2)); }
.feat h3 { font: 600 18.5px/1.2 var(--serif); margin: 2px 90px 6px 0; }
.feat p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.feat-num { position: absolute; top: 16px; right: 14px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; color: var(--honey-d); background: #fff4e0; white-space: nowrap; }
@keyframes featIn { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1080px) {
  .board-grid { grid-template-columns: 1fr; }
  .board-rules { display: grid; grid-template-columns: repeat(2, 1fr); }
  .feat-panel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .board-head, .feat-head { grid-template-columns: 1fr; }
  .board-stage { min-height: 520px; }
  .feat-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .feat-tabs button { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  /* phones: the board gets the whole frame, chips + controls move below it */
  .board-stage { min-height: 0; display: flex; flex-direction: column; border-width: 4px; border-radius: 24px; background: #fffaf3; }
  .board-stage canvas { position: relative; inset: auto; width: 100%; height: 360px; flex-shrink: 0; background: linear-gradient(180deg, #cfe9ff 0%, #fff4e0 100%); }
  .bd-pops { bottom: auto; height: 360px; }
  .bd-banner { top: 180px; }
  .bd-hud { position: static; inset: auto; gap: 8px; padding: 10px; }
  .bd-bar { box-shadow: none; background: #fff; border: 1px solid var(--line); }
  .bd-players { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .bd-chip { padding: 6px 9px; } .bd-chip span { font-size: 13px; }
  .bd-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .bd-log { font-size: 13px; }
  .bd-actions .btn { flex: 1; justify-content: center; }
  .board-rules { grid-template-columns: 1fr; }
  .feat-panel { grid-template-columns: 1fr; }
}

/* 30/9 — thẻ cộng đồng (nhóm Zalo) trong phần CTA */
.community { display: flex; align-items: center; gap: 22px; margin-top: 34px; padding: 18px 22px; max-width: 640px; border-radius: 22px; background: rgba(255, 255, 255, .9); border: 1px solid #fff; box-shadow: 0 18px 40px -22px rgba(78, 70, 40, .45); text-align: left; }
.cm-qr { flex: none; display: block; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.cm-qr img { display: block; width: 150px; height: 150px; }
.cm-txt b { display: block; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.cm-txt p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.cm-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; color: #fff; text-decoration: none; transition: transform .2s, filter .2s; }
.cm-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.cm-btn.zalo { background: #0068ff; }
.cm-btn.msg { background: linear-gradient(135deg, #0a7cff, #a334fa); }
.cm-link { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); word-break: break-all; }
@media (max-width: 640px) { .community { flex-direction: column; text-align: center; padding: 18px 16px; margin-left: 16px; margin-right: 16px; } .cm-btns { justify-content: center; } .cm-qr img { width: 132px; height: 132px; } }
