:root { --ink: #111; --green: #3bf906; --sky: #8fd8ff; --sun: #ffe84a; --cream: #fffdf2; --head: "Chewy", cursive; --body: "Fredoka", system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 600 18px/1.45 var(--body); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- luki with live eyes ---------- */
.lk { position: relative; display: block; }
.lk img { width: 100%; }
.lk .eye { position: absolute; width: 7.8%; height: 7.9%; margin: -3.95% 0 0 -3.9%; background: var(--ink); border-radius: 50%; transition: transform .08s linear; }
.lk .eye.l { left: 28.84%; top: 38.82%; }
.lk .eye.r { left: 57%; top: 35.16%; }
.lk .eye::after { content: ""; position: absolute; left: 22%; top: 18%; width: 26%; height: 26%; border-radius: 50%; background: #fff; opacity: .85; }
.lk.blink .eye { transform: scaleY(.12) !important; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 12px 22px; background: var(--cream); border-bottom: 5px solid var(--ink); }
.brand { font: 400 38px/1 var(--head); color: var(--green); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-decoration: none; letter-spacing: .03em; }
.nav { display: flex; gap: 22px; margin: 0 auto; font: 700 17px/1 var(--body); text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline wavy #22b800 3px; text-underline-offset: 6px; }
.act { display: flex; gap: 10px; }
.snd.off { opacity: .5; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; font: 400 22px/1 var(--head); letter-spacing: .04em; color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 18px 22px 16px 24px; box-shadow: 5px 5px 0 var(--ink); text-decoration: none; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.go { background: var(--green); }
.btn.big { min-height: 60px; padding: 12px 30px; font-size: 28px; }
.btn.sm { min-height: 42px; padding: 6px 14px; font-size: 20px; box-shadow: 3px 3px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, input:focus-visible, .hero-luki:focus-visible, .ca:focus-visible { outline: 4px dashed var(--ink); outline-offset: 4px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.center { justify-content: center; }

/* ---------- hero (parallax) ---------- */
.hero { position: relative; min-height: calc(100vh - 70px); overflow: hidden; background: linear-gradient(#7fd0ff, #a8e2ff 70%); }
.ly { position: absolute; max-width: none; pointer-events: none; will-change: transform; }
.ly-sunw { left: 2%; top: 3%; z-index: 1; width: clamp(140px, 16vw, 240px); }
.ly-sun { width: 100%; animation: sunwob 5s ease-in-out infinite; }
@keyframes sunwob { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.06); } }
.rays { position: absolute; left: calc(2% + clamp(70px, 8vw, 120px)); top: calc(3% + clamp(70px, 8vw, 120px)); width: 300vmax; height: 300vmax; margin: -150vmax 0 0 -150vmax; background: repeating-conic-gradient(rgba(255,255,255,.28) 0 6deg, transparent 6deg 18deg); animation: spin 70s linear infinite; pointer-events: none; -webkit-mask-image: radial-gradient(circle, #000 0, #000 15%, transparent 45%); mask-image: radial-gradient(circle, #000 0, #000 15%, transparent 45%); }
@keyframes spin { to { transform: rotate(360deg); } }
.ly-clouds { left: 0; top: 0; width: 100%; overflow: hidden; }
.cl-track { display: flex; width: 200%; animation: drift 45s linear infinite; }
.cl-track img { width: 50%; }
.ly-clouds.far { top: 9%; opacity: .75; }
.ly-clouds.far .cl-track { width: 240%; animation-duration: 80s; }
.ly-clouds.far .cl-track img { width: 25%; }
.ly-float { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ly-float i { position: absolute; bottom: -60px; width: 30px; height: 30px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'><g fill='%23111'><circle cx='-17' cy='-17' r='22'/><circle cx='17' cy='-17' r='22'/><circle cx='-17' cy='17' r='22'/><circle cx='17' cy='17' r='22'/></g><g fill='%233bf906'><circle cx='-17' cy='-17' r='17'/><circle cx='17' cy='-17' r='17'/><circle cx='-17' cy='17' r='17'/><circle cx='17' cy='17' r='17'/></g></svg>") center / contain no-repeat; animation: floatup linear infinite; }
@keyframes floatup { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(40px, -55vh) rotate(200deg); } 90% { opacity: 1; } 100% { transform: translate(-20px, -110vh) rotate(420deg); opacity: 0; } }
.ly-hill2 { left: -5%; bottom: 9%; width: 110%; height: 100%; }
.ly-hill2 img { width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: bottom; transform: scaleX(-1); filter: brightness(1.12) saturate(.75); }
@keyframes drift { to { transform: translateX(-50%); } }
.ly-hill { left: -5%; bottom: -1%; width: 110%; height: 104%; object-fit: cover; object-position: bottom; }
.hero-in { position: relative; z-index: 2; min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 40px 6vw 12vh; }
.word { margin: 0; display: flex; font: 400 clamp(120px, 17vw, 260px)/.9 var(--head); color: var(--green); -webkit-text-stroke: .07em var(--ink); paint-order: stroke fill; text-shadow: .05em .06em 0 var(--ink); transform: rotate(-4deg); letter-spacing: .02em; }
.word span { display: inline-block; animation: hop 2.4s ease-in-out infinite; }
.word span:nth-child(2) { animation-delay: .15s; } .word span:nth-child(3) { animation-delay: .3s; } .word span:nth-child(4) { animation-delay: .45s; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-14px) rotate(-3deg); } }
.tag { margin: 18px 0 30px 10px; font: 700 clamp(26px, 3vw, 40px)/1.1 var(--body); color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; }
.thumb { display: inline-block; animation: thumb 1.6s ease-in-out infinite; -webkit-text-stroke: 0; }
@keyframes thumb { 50% { transform: rotate(-14deg) scale(1.15); } }
.hero-luki { position: relative; justify-self: center; width: min(560px, 90%); padding: 0; border: 0; background: none; cursor: pointer; animation: bob 2.6s ease-in-out infinite; }
.hero-luki img { filter: drop-shadow(8px 10px 0 rgba(0,0,0,.18)); }
.hero-luki.boing { animation: boing .5s; }
@keyframes bob { 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes boing { 30% { transform: scale(1.12, .88); } 60% { transform: scale(.94, 1.08) translateY(-20px); } }
.bubble { position: absolute; left: -10%; top: -4%; z-index: 3; padding: 12px 20px; background: #fff; border: 4px solid var(--ink); border-radius: 26px 22px 28px 18px; font: 400 30px/1 var(--head); white-space: nowrap; animation: pop .25s; }
.bubble::after { content: ""; position: absolute; right: 26%; bottom: -18px; width: 24px; height: 24px; background: #fff; border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: rotate(40deg) skewX(10deg); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------- wave dividers ---------- */
.wave { display: block; width: 100%; height: 70px; margin: -66px 0 -4px; position: relative; z-index: 3; }
.wave path { stroke: none; }
.wave { filter: drop-shadow(0 -5px 0 #111); }

/* ---------- sections ---------- */
.sec { padding: 70px 6vw 100px; }
h2 { margin: 0 0 10px; text-align: center; font: 400 clamp(54px, 7vw, 96px)/1 var(--head); color: #fff; -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; text-shadow: .05em .06em 0 var(--ink); letter-spacing: .02em; }
.sub { text-align: center; margin: 0 0 40px; font: 700 22px/1.3 var(--body); }

/* ---------- luck machine ---------- */
.luck { position: relative; overflow: hidden; isolation: isolate; background: var(--sun); }
.luck::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 40%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax; background: repeating-conic-gradient(#fff27e 0 10deg, transparent 10deg 20deg); animation: spin 60s linear infinite; }
.machine { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: center; }
.slot { background: #ff5b5b; border: 5px solid var(--ink); border-radius: 30px 34px 26px 32px; box-shadow: 10px 10px 0 var(--ink); padding: 18px 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.slot-top { display: flex; align-items: center; gap: 10px; font: 400 34px/1 var(--head); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.slot-top .mini { width: 70px; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; background: var(--ink); padding: 10px; border-radius: 18px; }
.reel { height: 110px; background: #fff; border-radius: 10px; overflow: hidden; position: relative; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.25), transparent 25%, transparent 75%, rgba(0,0,0,.25)); pointer-events: none; }
.strip { display: flex; flex-direction: column; will-change: transform; }
.strip span { height: 110px; display: grid; place-items: center; font-size: 62px; line-height: 1; }
.reel.wobble { animation: wob .5s; }
@keyframes wob { 25% { transform: translateY(-6px) rotate(-2deg); } 75% { transform: translateY(4px) rotate(2deg); } }
input { width: 100%; font: 700 22px/1.2 var(--body); padding: 12px 16px; border: 4px solid var(--ink); border-radius: 16px 20px 14px 22px; background: #fff; color: var(--ink); text-align: center; }
.slot .btn { width: 100%; }
.m-card { min-height: 430px; background: #fff; border: 5px solid var(--ink); border-radius: 26px 32px 24px 30px; box-shadow: 10px 10px 0 var(--ink); padding: 30px; display: grid; place-items: center; }
.m-empty { font: 400 40px/1.15 var(--head); text-align: center; color: #777; }
.m-res { width: 100%; text-align: center; animation: pop .3s; }
.m-pct { font: 400 120px/1 var(--head); color: var(--green); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 5px 6px 0 var(--ink); }
.m-tier { font: 400 34px/1.1 var(--head); margin: 8px 0 18px; }
.m-row { display: flex; justify-content: space-between; border-top: 3px dashed #ccc; padding: 8px 4px; font-size: 18px; }
.m-row b { font: 400 22px/1 var(--head); }
.m-fortune { font: 700 21px/1.35 var(--body); background: #effee6; border: 3px solid var(--ink); border-radius: 16px; padding: 14px 16px; margin: 14px 0 20px; }
.board { max-width: 520px; margin: 40px auto 0; background: #fff; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 18px 24px; }
.board h3 { margin: 0 0 8px; font: 400 30px/1 var(--head); }
.board h3 small { font: 600 14px/1 var(--body); color: #777; }
.board ol { margin: 0; padding-left: 26px; font-size: 18px; }
.board li { padding: 4px 0; } .board li b { font-family: var(--head); font-weight: 400; font-size: 22px; }
.board .none { color: #888; list-style: none; margin-left: -26px; }

/* ---------- luki 👍 everything ---------- */
.thumbs { background: var(--green) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><g fill='%2330d400'><circle cx='22' cy='22' r='9'/><circle cx='38' cy='22' r='9'/><circle cx='22' cy='38' r='9'/><circle cx='38' cy='38' r='9'/><circle cx='82' cy='82' r='9'/><circle cx='98' cy='82' r='9'/><circle cx='82' cy='98' r='9'/><circle cx='98' cy='98' r='9'/></g></svg>") 0 0 / 120px 120px; animation: pan 8s linear infinite; }
@keyframes pan { to { background-position: 120px 120px; } }
.grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tcard { background: #fff; border: 4px solid var(--ink); border-radius: 22px 26px 20px 28px; box-shadow: 6px 6px 0 var(--ink); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s; }
.tcard:nth-child(odd) { transform: rotate(-1.4deg); } .tcard:nth-child(even) { transform: rotate(1.2deg); }
.tcard:hover { transform: rotate(0) translateY(-6px); }
.tcard .what { font: 400 30px/1.05 var(--head); min-height: 64px; }
.tcard .say { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--body); }
.tcard .say img { width: 64px; transition: transform .2s; }
.tcard:hover .say img { transform: rotate(-10deg) scale(1.15); }

/* ---------- coin + footer ---------- */
.coin { position: relative; overflow: hidden; isolation: isolate; background: var(--cream); text-align: center; }
.coin::before { content: ""; position: absolute; z-index: -1; inset: -60%; background: url("/assets/site/luki-sm.webp") 0 0 / 110px 110px; opacity: .1; transform: rotate(-12deg); animation: pan2 20s linear infinite; }
@keyframes pan2 { to { background-position: 220px 220px; } }
.ca { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin: 0 auto 28px; padding: 12px 16px; background: #fff; border: 4px solid var(--ink); border-radius: 18px; font: 600 16px/1.2 ui-monospace, Menlo, monospace; color: var(--ink); cursor: pointer; box-shadow: 5px 5px 0 var(--ink); }
.ca .k { font: 400 22px/1 var(--head); }
.ca .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca .c { font: 400 18px/1 var(--head); background: var(--green); border: 3px solid var(--ink); border-radius: 10px; padding: 6px 10px; }
.foot { background: #7ad94e; border-top: 5px solid var(--ink); padding: 40px 6vw 50px; text-align: center; }
.foot-luki { width: 120px; margin: 0 auto 14px; }
.foot p { max-width: 760px; margin: 0 auto; font-size: 14px; }

/* ---------- confetti + toast ---------- */
.conf { position: fixed; z-index: 120; pointer-events: none; width: 34px; height: 34px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'><g fill='%23111'><circle cx='-17' cy='-17' r='22'/><circle cx='17' cy='-17' r='22'/><circle cx='-17' cy='17' r='22'/><circle cx='17' cy='17' r='22'/></g><g fill='%233bf906'><circle cx='-17' cy='-17' r='17'/><circle cx='17' cy='-17' r='17'/><circle cx='-17' cy='17' r='17'/><circle cx='17' cy='17' r='17'/></g></svg>") center / contain no-repeat; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); visibility: hidden; z-index: 90; background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); font: 400 24px/1.1 var(--head); padding: 12px 22px; transition: transform .25s, visibility .25s; max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- intro ---------- */
#intro { display: none; }
.intro-on #intro { display: block; position: fixed; inset: 0; z-index: 100; background: #fff; }
.intro-on { overflow: hidden; }
.in-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.in-clover { position: absolute; width: 120px; left: calc(50% - 60px); top: calc(50% - 70px); }
.in-luki { position: absolute; width: min(460px, 70vw); left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); }
.in-stamp { position: absolute; left: 50%; top: 50%; font-size: min(300px, 50vw); line-height: 1; opacity: 0; filter: drop-shadow(8px 8px 0 #111); }
.in-word { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; font: 400 clamp(70px, 12vw, 150px)/1 var(--head); color: var(--green); -webkit-text-stroke: .07em #111; paint-order: stroke fill; text-shadow: .05em .06em 0 #111; opacity: 0; }
.in-skip { position: absolute; right: 22px; bottom: 22px; font: 400 20px/1 var(--head); background: #fff; border: 3px solid #111; border-radius: 14px; padding: 8px 16px; cursor: pointer; box-shadow: 3px 3px 0 #111; z-index: 2; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; } .act { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-copy { order: 2; } .hero-in .cta { justify-content: center; } .word { justify-content: center; } .tag { margin-left: 0; }
  .hero-luki { width: min(360px, 78%); }
  .machine { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .bar { padding: 10px 12px; gap: 8px; } .act { gap: 6px; } .m-pct { font-size: 96px; } .strip span { font-size: 50px; } }
@media (prefers-reduced-motion: reduce) { .hero-luki, .thumb, .word span, .cl-track, .ly-sun, .rays, .ly-float i, .luck::before, .thumbs, .coin::before, .how, .mq-track { animation: none !important; } .rv { opacity: 1 !important; translate: none !important; } html { scroll-behavior: auto; } }

/* ---------- marquee bands ---------- */
.marq { position: relative; z-index: 4; overflow: hidden; background: var(--ink); border-block: 5px solid var(--ink); transform: rotate(-1.6deg); margin: -10px -2vw; padding: 0; }
.marq.rev { transform: rotate(1.4deg); }
.mq-track { display: flex; width: max-content; animation: mq 22s linear infinite; }
.marq.rev .mq-track { animation-direction: reverse; }
.mq-track span { padding: 12px 22px; font: 400 34px/1 var(--head); color: var(--green); white-space: nowrap; letter-spacing: .03em; }
.mq-track span:nth-child(even) { color: #fff; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- how to buy ---------- */
.how { background: var(--sky) url("/assets/site/clouds.webp") 0 10px / 1600px auto repeat-x; animation: skydrift 40s linear infinite; }
@keyframes skydrift { to { background-position: -1600px 10px; } }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1160px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: #fff; border: 4px solid var(--ink); border-radius: 24px 28px 22px 30px; box-shadow: 7px 7px 0 var(--ink); padding: 40px 20px 20px; }
.step:nth-child(odd) { rotate: -1.5deg; } .step:nth-child(even) { rotate: 1.3deg; }
.step .n { position: absolute; top: -26px; left: 18px; width: 54px; height: 54px; display: grid; place-items: center; background: var(--green); border: 4px solid var(--ink); border-radius: 50%; font: 400 32px/1 var(--head); box-shadow: 3px 3px 0 var(--ink); }
.step b { display: block; font: 400 32px/1.05 var(--head); margin-bottom: 8px; }
.step p { margin: 0; font-size: 17px; }

/* ---------- scroll reveal + cursor trail ---------- */
.rv { opacity: 0; translate: 0 50px; transition: opacity .6s, translate .6s cubic-bezier(.2,1.4,.4,1); }
.rv.in { opacity: 1; translate: 0 0; }
.trail { position: fixed; z-index: 110; pointer-events: none; width: 18px; height: 18px; margin: -9px 0 0 -9px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; } .ly-hill2 { bottom: 6%; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .mq-track span { font-size: 26px; padding: 10px 16px; } }
.how .sub { width: fit-content; margin-inline: auto; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 4px 14px; }
