:root{color-scheme:dark;--night:#191131;--cream:#fff6dd;--gold:#ffc94a;--ink:#261832;--lavender:#e7dbff;--leaf:#c8ed9a}
*{box-sizing:border-box}
body{margin:0;background:var(--night);color:var(--cream);font:500 1.05rem/1.6 ui-rounded,"Avenir Next",system-ui,sans-serif}
a{color:inherit}
a:focus-visible,summary:focus-visible{outline:3px solid currentColor;outline-offset:5px}
.wrap{width:min(1100px,calc(100% - 2.5rem));margin-inline:auto}
.nav,footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:1rem}
.brand{display:flex;align-items:center;gap:.55rem;font-size:1.35rem;font-weight:900;text-decoration:none}
.brand img{border-radius:7px}
nav{display:flex;gap:1.4rem}
nav a,footer a{text-underline-offset:4px}
.button{display:inline-flex;align-items:center;gap:.6rem;background:var(--gold);color:var(--ink);border-radius:100px;padding:.68em 1.25em;font-weight:850;text-decoration:none;box-shadow:0 4px 0 #aa6a23}
.button:hover{background:#ffe18a}
.button.small{font-size:.88rem}
.hero{overflow:hidden;text-align:center;background:#191131}
.hero-copy{position:relative;z-index:1;padding-block:clamp(2.5rem,6vw,5rem) .75rem}
h1,h2{margin:0;line-height:1.02;font-weight:900;letter-spacing:-.034em;text-wrap:balance}
h1{font-size:clamp(2.65rem,7vw,5.8rem)}
h2{font-size:clamp(2.15rem,5vw,4.1rem)}
em{font-style:normal;color:var(--gold)}
p{max-width:54ch;text-wrap:pretty}
.hero p{margin:1.2rem auto 1.5rem}
.how{display:inline-block;margin:.75rem 0 .25rem 1rem;font-weight:700;text-underline-offset:4px}
.scene{position:relative;min-height:280px;height:clamp(290px,36vw,490px);background:url(assets/mk-latar-1.png) center center/cover no-repeat;image-rendering:pixelated}
.equation{position:absolute;z-index:1;inset:3% 0 auto;display:flex;justify-content:center;align-items:center;gap:.12em;color:var(--gold);font-size:clamp(4.25rem,12.5vw,10rem);font-weight:950;line-height:1;letter-spacing:-.04em;text-shadow:0 .04em #6d391f,.026em .065em #321b3d}
.equation span:nth-child(2){color:#94e887;font-size:.75em;transform:rotate(-9deg)}
.equation span:last-child{color:#ffd8a0;transform:rotate(7deg)}
.stalls{position:absolute;inset:auto 0 1% ;display:flex;align-items:end;justify-content:center;gap:clamp(3px,1.5vw,20px)}
.stalls img{width:min(19%,205px);height:auto;object-fit:contain;filter:drop-shadow(0 8px 0 #1d11278a)}
.band{position:relative;padding-block:clamp(3rem,7vw,6rem)}
.band::before{content:"";position:absolute;top:-17px;left:0;width:100%;height:18px;background:inherit;clip-path:polygon(0 56%,16% 17%,37% 35%,61% 0,83% 29%,100% 15%,100% 100%,0 100%)}
.play{background:var(--leaf);color:var(--ink)}
.split{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(1.75rem,6vw,6rem)}
figure{margin:0;text-align:center}
.screen{display:block;width:min(100%,275px);height:auto;margin:auto;border:6px solid var(--night);border-radius:22px;box-shadow:0 9px 0 #19113142}
figcaption{margin-top:.85rem;font-size:.85rem;font-weight:700}
.cups{display:flex;gap:.4rem}
.cups img{width:clamp(2rem,7vw,3.6rem);height:auto;image-rendering:pixelated}
.receipt{display:inline-block;background:var(--cream);color:var(--ink);padding:.2em .55em;border-radius:8px;margin-top:.5rem;font-size:clamp(1.5rem,4vw,2.3rem)}
ol{padding-left:1.45rem}
li{padding-left:.2rem;margin-bottom:.23rem}
.help{font-weight:700}
.grow{background:#35225a}
.pet-art{display:grid;place-items:center;min-height:200px;background:radial-gradient(ellipse closest-side,#7853a7,transparent)}
.pet{width:min(68%,220px);image-rendering:pixelated}
.parents{background:var(--lavender);color:var(--ink)}
details{padding:.75rem 0;border-bottom:1px solid #736187}
summary{cursor:pointer;font-weight:750}
details p{margin:.5rem 0 0}
.closing{text-align:center;background:#2b1946}
.closing .button{margin-top:1.5rem}
footer{font-size:.88rem}
@media(max-width:650px){
  .nav nav{display:none}
  .split{grid-template-columns:1fr}
  .scene{min-height:235px;height:63vw;background-size:auto 100%}
  .hero-copy{padding-top:2.25rem}
  .hero p{font-size:1rem}
  .stalls img{width:28%}
  .stalls{inset-inline:-9%}
  .parents .screen,.play .screen{width:min(70%,265px)}
  .pet-art{min-height:140px}
}
.customer{position:absolute;bottom:0;left:51%;height:35%;width:auto;filter:drop-shadow(0 4px 0 #1d11278a)}
.button{white-space:nowrap}
@media(max-width:370px){
  .nav{gap:.55rem}
  .brand{font-size:1.15rem}
  .button.small{padding-inline:.85em}
}
@media(min-width:1000px){
  .hero-copy{padding-top:2.75rem}
  .scene{height:430px}
}

/* Gabungan A+B (2026-11-17) */
.skip{position:absolute;left:-999px;top:.5rem;background:var(--gold);color:var(--ink);padding:.5rem 1rem;border-radius:8px;z-index:9}
.skip:focus{left:.5rem}
.brand img{border-radius:0;width:clamp(120px,14vw,160px);height:auto}
.facts{font-size:.9rem;opacity:.85;margin:.9rem auto 0!important}
.helpband{background:#fff6dd;color:var(--ink)}
.help-figs{display:grid;grid-template-columns:1.25fr 1fr;gap:1rem;align-items:start}
.shot{display:block;width:100%;height:auto;border:5px solid var(--night);border-radius:18px;box-shadow:0 8px 0 #19113133}
.helpband figcaption{font-size:.8rem}
.report-list{padding-left:1.2rem}
.report-list li{margin-bottom:.45rem}
.note{font-size:.9rem;opacity:.85}
.faqband{background:#efe6ff;color:var(--ink)}
.faq{max-width:760px}
.faq h2{margin-bottom:1rem}
.closing p{margin:1rem auto 0}
@media(max-width:650px){
  .help-figs{grid-template-columns:1fr 1fr;gap:.6rem}
  .stalls img{width:26%}
  .equation{font-size:clamp(3.6rem,17vw,5rem)}
}

/* Senarai menunggu + halaman undang-undang (2026-11-17) */
.waitband{background:#35225a}
.wait{max-width:760px;text-align:center}
.wait p{margin-inline:auto}
.wait-form{margin-top:1.5rem;text-align:left;max-width:520px;margin-inline:auto}
.wait-form>label{display:block;font-weight:800;margin-bottom:.4rem}
.wait-input{display:block;width:100%;font:inherit;padding:.68em 1em;border-radius:100px;border:2px solid #7853a7;background:#fff6dd;color:var(--ink)}
.wait-input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.wait-consent{display:flex;gap:.6rem;align-items:flex-start;font-size:.9rem;margin-top:.9rem;line-height:1.45}
.wait-consent input{width:1.2rem;height:1.2rem;margin-top:.15rem;flex:none;accent-color:var(--gold)}
.wait-msg{min-height:1.5em;font-weight:700;margin:.8rem 0 0}
.wait-msg[data-kind=ok]{color:#94e887}
.wait-msg[data-kind=err]{color:#ffb4a8}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.button:disabled{opacity:.6}
button.button{border:0;font:inherit;font-weight:850;cursor:pointer}
.foot-links{display:flex;gap:1rem;flex-wrap:wrap}
.legal{max-width:760px;padding-block:2rem 4rem}
.legal h1{font-size:clamp(2rem,6vw,3rem);margin-bottom:.5rem}
.legal h2{font-size:1.35rem;letter-spacing:-.01em;margin:2rem 0 .5rem}
.legal h3{font-size:1.05rem;margin:1.2rem 0 .3rem}
.legal p,.legal li{max-width:70ch}
.legal .meta{opacity:.75;font-size:.9rem}
.legal a{color:var(--gold)}
@media(max-width:420px){footer{flex-direction:column;align-items:flex-start}}
.wait-btn{margin-top:1rem;width:100%;justify-content:center}

/* ───────────── Gerakan (dipindah daripada commit e5b1e0e pemilik) ─────────────
   Kandungan penuh tanpa JS / reduced-motion. Keadaan tersembunyi hanya di bawah .js
   (motion.js buang .js bila reduced-motion). Elemen hiasan semua aria-hidden. */
.hero,.closing{position:relative;overflow:hidden}
.closing .wrap{position:relative;z-index:1}
.sky{position:absolute;inset:0;pointer-events:none}
.sky i{position:absolute;width:4px;height:4px;background:var(--cream);box-shadow:0 0 6px rgba(255,244,223,.8);opacity:.25}
.sky i:nth-child(1){left:6%;top:8%}
.sky i:nth-child(2){left:22%;top:30%;width:3px;height:3px}
.sky i:nth-child(3){left:41%;top:4%}
.sky i:nth-child(4){left:62%;top:22%;width:3px;height:3px}
.sky i:nth-child(5){left:79%;top:6%}
.sky i:nth-child(6){left:91%;top:30%;width:3px;height:3px}
.sky i:nth-child(7){left:12%;top:52%;width:3px;height:3px}
.sky i:nth-child(8){left:95%;top:56%}
.hero .sky{bottom:auto;height:min(60%,560px)}
.button{position:relative;overflow:hidden;isolation:isolate;transition:background-color 160ms ease,transform 160ms ease,box-shadow 160ms ease}
.receipt b{display:inline-block;font-weight:inherit}

@media (prefers-reduced-motion: no-preference){
  .sky i{animation:twinkle 3.2s ease-in-out infinite}
  .sky i:nth-child(2n){animation-duration:2.4s;animation-delay:-1.1s}
  .sky i:nth-child(3n){animation-duration:4s;animation-delay:-2.3s}

  /* Hero masuk */
  .hero .line{display:inline-block;animation:rise 700ms cubic-bezier(.2,.8,.2,1) both}
  .hero .line.accent{animation-delay:140ms}
  .hero-copy p:not(.facts){animation:rise 600ms 280ms cubic-bezier(.2,.8,.2,1) both}
  .hero-copy .button,.hero-copy .how{animation:rise 600ms 380ms cubic-bezier(.2,.8,.2,1) both}
  .hero-copy .facts{animation:rise 600ms 460ms cubic-bezier(.2,.8,.2,1) both}
  .scene .stalls img{animation:artIn 800ms cubic-bezier(.2,.8,.2,1) both}
  .scene .stalls img:nth-child(1){animation-delay:200ms}
  .scene .stalls img:nth-child(2){animation-delay:300ms}
  .scene .stalls img:nth-child(3){animation-delay:400ms}
  .scene .stalls img:nth-child(4){animation-delay:500ms}
  .scene .customer{animation:artIn 800ms 650ms cubic-bezier(.2,.8,.2,1) both}
  .equation{animation:ticketPop 650ms 900ms cubic-bezier(.34,1.56,.64,1) both,bob 3.6s 1.6s ease-in-out infinite}

  /* Butang: kilauan + angkat */
  .button::after{content:"";position:absolute;inset:0 auto 0 -60%;width:45%;z-index:-1;background:linear-gradient(100deg,transparent,rgba(255,255,255,.7),transparent);transform:skewX(-18deg);animation:shine 4.5s 2s ease-in-out infinite}
  .button.small::after{animation-delay:3.2s}
  .button:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(255,207,90,.35)}
  .button:active{transform:translateY(0)}
  .closing .button{animation:ring 2.6s 1s ease-out infinite}

  /* Reveal semasa skrol */
  .js .reveal{transition:opacity 650ms cubic-bezier(.2,.8,.2,1) var(--d,0ms),transform 650ms cubic-bezier(.2,.8,.2,1) var(--d,0ms)}
  .js .reveal:not(.in){opacity:0;transform:translateY(28px)}
  .js figure.reveal:not(.in),.js .pet-art.reveal:not(.in){transform:translateY(28px) scale(.96)}
  .js .help-figs figure.reveal:not(.in){transform:translateY(28px) rotate(-1.5deg)}
  .js .cups img.reveal:not(.in){transform:translateY(-18px) scale(.6)}
  .receipt b.pop{animation:sumPop 520ms cubic-bezier(.34,1.56,.64,1)}
  .faq details[open] p{animation:rise 320ms ease both}
}

@keyframes twinkle{0%,100%{opacity:.15}50%{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes artIn{from{opacity:0;transform:scale(.94) translateY(16px)}to{opacity:1;transform:none}}
@keyframes ticketPop{0%{opacity:0;transform:scale(.5) rotate(-8deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@keyframes bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-6px) rotate(-1deg)}}
@keyframes shine{0%{left:-60%}30%,100%{left:130%}}
@keyframes ring{0%{box-shadow:0 0 0 0 rgba(255,207,90,.55)}70%,100%{box-shadow:0 0 0 18px rgba(255,207,90,0)}}
@keyframes sumPop{0%{transform:scale(1)}40%{transform:scale(1.45);color:#1C8A4A}100%{transform:scale(1)}}

/* Video gameplay (2026-11-17) */
video.screen{background:var(--night);aspect-ratio:390/844;object-fit:cover}
.wait-form>.wait-consent{display:flex;font-weight:600;margin-bottom:0}
/* Banner persetujuan piksel (piksel.js). Tolak dan Setuju sama saiz dan sama mudah ditekan. */
.consent{position:fixed;z-index:50;left:max(1rem,env(safe-area-inset-left,0px));right:max(1rem,env(safe-area-inset-right,0px));bottom:calc(1rem + env(safe-area-inset-bottom,0px));max-width:560px;margin-inline:auto;background:var(--cream);color:var(--ink);border-radius:18px;padding:1rem 1.1rem;box-shadow:0 10px 30px #0008;display:grid;gap:.8rem;font-size:.95rem}
.consent p{margin:0;max-width:none}
.consent a{color:var(--ink);font-weight:800}
.consent-btns{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.consent .button{justify-content:center;width:100%;white-space:nowrap}
.consent .consent-no{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
.consent .consent-no:hover{background:#0000000f}
.consent .button::after{content:none}
.consent .button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
