/* Landing page — tema pesta pixel. Judul: Silkscreen, teks: Fredoka. */
.lp {
  --ink: #2d1b3d; --cream: #fff8ef;
  --pink: #ff5d8f; --purple: #a855f7; --blue: #3fb4e8; --green: #22c55e; --yellow: #ffd23f; --orange: #ff9f43;
  background: var(--cream); color: var(--ink); overflow-x: hidden;
}
.lp h1, .lp h2, .lp h3 { font-family: 'Silkscreen', monospace; font-weight: 400; }
.lp code { background: #fff; border: 2px solid var(--ink); }

/* ---------- buttons & stickers ---------- */
.lbtn {
  --bg: var(--pink);
  display: inline-flex; align-items: center; gap: 8px; font: 600 17px 'Fredoka', sans-serif; text-decoration: none;
  color: #fff; background: var(--bg); border: 3px solid var(--ink); border-radius: 14px; padding: 12px 22px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.lbtn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.lbtn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.lbtn.big { font-size: 19px; padding: 15px 26px; }
.lbtn.small { font-size: 15px; padding: 7px 14px; box-shadow: 3px 3px 0 var(--ink); }
.lbtn.ghost { background: #fff; color: var(--ink); }
.lbtn.ghost.light { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 #fff; }
.lbtn.tinted { --bg: var(--c); }
.lbtn.wa { --bg: #25d366; }
.sticker {
  display: inline-block; font-weight: 600; background: var(--bg, #fff); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 999px; padding: 6px 16px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(var(--r, 0deg));
}

/* ---------- nav ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 20px; background: rgba(255, 248, 239, .88); backdrop-filter: blur(8px); border-bottom: 3px solid var(--ink);
}
.lp-nav .brand { font-size: 18px; }
.lp-links { display: flex; align-items: center; gap: 20px; }
.lp-links a:not(.lbtn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.lp-links a:not(.lbtn):hover { color: var(--pink); }
@media (max-width: 640px) { .lp-links a:not(.lbtn) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 56px 20px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.55) 0 8%, transparent 9%),
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.4) 0 6%, transparent 7%),
    linear-gradient(160deg, #ffb3d1 0%, #ffcf9e 45%, #c8b5ff 100%);
  border-bottom: 3px solid var(--ink);
}
.hero .confetti, .final .confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.balloons { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.balloons img { position: absolute; bottom: -120px; width: 42px; image-rendering: pixelated; animation: rise linear forwards; }
@keyframes rise {
  0% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(18px, -55vh) rotate(4deg); }
  100% { transform: translate(-10px, -115vh) rotate(-4deg); }
}
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5.2vw, 56px); line-height: 1.15; margin: 20px 0 18px; text-shadow: 3px 3px 0 #fff; }
.hl { display: inline-block; background: var(--c); color: var(--ink); padding: 0 10px; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); text-shadow: none; transform: rotate(-2deg); margin: 4px 2px; }
.hl + .hl { transform: rotate(1.5deg); }
.hero-copy > p { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 560px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.checks { display: flex; gap: 10px 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 24px 0 0; font-weight: 600; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; background: var(--green); color: #fff; border: 2px solid var(--ink); border-radius: 6px; font-size: 13px; }

.hero-art { position: relative; min-height: 420px; }
.browser { background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 8px 8px 0 var(--ink); }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #fff3e6; border-bottom: 3px solid var(--ink); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: var(--pink); }
.browser .bar i:nth-child(2) { background: var(--yellow); }
.browser .bar i:nth-child(3) { background: var(--green); }
.browser .bar span { margin-left: 8px; font-size: 12px; font-weight: 500; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-art .browser { position: absolute; top: 10px; right: 0; width: 92%; }
.phone {
  position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 9 / 17; background: var(--ink); border-radius: 26px;
  padding: 10px; box-shadow: 8px 8px 0 rgba(45,27,61,.35); border: 3px solid var(--ink);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.tilt-r { animation: bob 5s ease-in-out infinite; transform: rotate(2deg); }
.tilt-l { animation: bob 5s ease-in-out infinite -2.5s; transform: rotate(-5deg); }
@keyframes bob { 50% { translate: 0 -10px; } }
.float-sticker {
  position: absolute; font-size: 34px; width: 62px; height: 62px; display: grid; place-items: center; background: #fff;
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); animation: bob 4s ease-in-out infinite;
}
.float-sticker.s1 { top: -14px; left: 8%; transform: rotate(-10deg); }
.float-sticker.s2 { top: 40%; right: -14px; transform: rotate(8deg); animation-delay: -1s; }
.float-sticker.s3 { bottom: 4%; right: 22%; transform: rotate(-6deg); animation-delay: -2s; background: var(--yellow); }
.float-sticker.s4 { bottom: 34%; left: 30%; transform: rotate(12deg); animation-delay: -3s; background: #ffe0ec; }

/* walking parade along the bottom of the hero */
.parade { position: relative; height: 110px; margin-top: 40px; }
.walkers { position: absolute; bottom: 22px; left: 0; display: flex; align-items: flex-end; gap: 6px; animation: walk 26s linear infinite; white-space: nowrap; }
@keyframes walk { from { transform: translateX(-110%); } to { transform: translateX(100vw); } }
.px { display: inline-block; width: 64px; height: 64px; background-size: 768px 704px; image-rendering: pixelated; animation: hop .5s steps(2) infinite; flex: none; }
.px.gap { margin-left: 70px; }
.px.flip { transform: scaleX(-1); }
.heart-px { font-size: 28px; animation: bob 1s ease-in-out infinite; }
@keyframes hop { 50% { translate: 0 -5px; } }
.grass { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background:
  repeating-linear-gradient(90deg, #5fbf4a 0 16px, #4fae3c 16px 32px); border-top: 3px solid var(--ink); }
.grass::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, #5fbf4a 6px 10px, transparent 10px 16px); }

/* ---------- marquee ---------- */
.marquee { background: var(--yellow); border-bottom: 3px solid var(--ink); border-top: 3px solid var(--ink); overflow: hidden; transform: rotate(-1.5deg); margin: -8px -10px 0; position: relative; z-index: 2; }
.marquee .track { display: flex; gap: 24px; width: max-content; padding: 14px 0; animation: scroll 30s linear infinite; font-family: 'Silkscreen', monospace; font-size: 20px; }
.marquee b { color: var(--pink); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { max-width: 1180px; margin: 0 auto; padding: 90px 20px 20px; }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head h2 { font-size: clamp(26px, 4.5vw, 42px); margin: 18px 0 10px; }
.sec-head p { font-size: 18px; color: #6b4f5c; margin: 0; }

/* quick gallery of every game, linking down to its showcase row */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: -10px 0 70px; }
.gal { position: relative; display: block; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 4px 4px 0 var(--c); text-decoration: none; color: var(--ink); transition: transform .15s; }
.gal:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 6px 6px 0 var(--c); }
.gal img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 3px solid var(--ink); }
.gal span { display: block; padding: 8px 12px; font-weight: 700; font-size: 15px; background: color-mix(in srgb, var(--c) 18%, #fff); }

/* template showcase rows */
.show { scroll-margin-top: 90px; }
.show { display: grid; grid-template-columns: 1.2fr 1fr; gap: 46px; align-items: center; margin-bottom: 70px; padding: 30px; border-radius: 28px; background: color-mix(in srgb, var(--c) 14%, #fff); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--c); }
.show.flip .show-art { order: 2; }
.show-art { position: relative; display: block; text-decoration: none; transition: transform .2s; }
.show-art:hover { transform: rotate(-1deg) scale(1.01); }
.show.flip .show-art:hover { transform: rotate(1deg) scale(1.01); }
.show-art .play { position: absolute; right: 18px; bottom: -16px; font-weight: 700; color: #fff; background: var(--c); border: 3px solid var(--ink); border-radius: 12px; padding: 9px 16px; box-shadow: 4px 4px 0 var(--ink); }
.show-icon { width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px; background: var(--c); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-6deg); }
.show-copy h3 { font-size: clamp(22px, 3vw, 30px); margin: 20px 0 10px; }
.show-copy .lead { font-size: 18px; line-height: 1.5; margin: 0 0 16px; }
.feat { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.feat li::before { content: "★"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--c); color: #fff; border: 2px solid var(--ink); font-size: 12px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tags span { background: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 3px 12px; font-size: 14px; font-weight: 600; }

/* why */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.feat-card { background: var(--bg); border: 3px solid var(--ink); border-radius: 22px; padding: 24px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(var(--r)); transition: transform .2s; }
.feat-card:hover { transform: rotate(0) translateY(-4px); }
.feat-card .em { font-size: 40px; width: 70px; height: 70px; display: grid; place-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 18px; }
.feat-card h3 { font-size: 18px; margin: 16px 0 8px; }
.feat-card p { margin: 0; line-height: 1.5; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; position: relative; }
.steps li { background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 30px 24px 24px; box-shadow: 6px 6px 0 var(--c); position: relative; }
.steps .num { position: absolute; top: -26px; left: 22px; width: 52px; height: 52px; display: grid; place-items: center; font-family: 'Silkscreen', monospace; font-size: 26px; color: #fff; background: var(--c); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-6deg); }
.steps h3 { font-size: 18px; margin: 12px 0 8px; }
.steps p { margin: 0; line-height: 1.5; }

/* occasions */
.occ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.occ { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--c); color: #fff; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .15s; }
.occ:hover { transform: rotate(-2deg) scale(1.03); }
.occ span { font-size: 34px; width: 56px; height: 56px; display: grid; place-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.occ b { font-size: 18px; text-shadow: 2px 2px 0 rgba(45,27,61,.35); }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 16px 20px; box-shadow: 4px 4px 0 var(--ink); }
.faq details[open] { background: #fff4d6; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'Silkscreen', monospace; font-size: 20px; color: var(--pink); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; line-height: 1.55; }

/* final cta */
.final { position: relative; overflow: hidden; margin-top: 90px; padding: 90px 20px; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 120%, #7c3aed 0%, #2d1b3d 65%); border-top: 3px solid var(--ink); }
.final-inner { position: relative; max-width: 720px; margin: 0 auto; }
.final h2 { font-size: clamp(28px, 5vw, 48px); margin: 16px 0 12px; text-shadow: 4px 4px 0 var(--pink); }
.final p { font-size: 19px; color: #eadcf5; margin: 0 0 28px; }
.final .hero-cta { justify-content: center; }
.duo { display: flex; justify-content: center; align-items: flex-end; gap: 10px; font-size: 30px; }
.duo .px.flip { transform: scaleX(-1); }

.lp-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 26px 24px; background: var(--ink); color: #cdbcd8; font-size: 14px; }
.lp-foot .brand { color: #fff; }
.lp-foot a:not(.brand) { color: var(--yellow); }
.lp-foot p { margin: 0; }

/* scroll reveal */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s ease; }
.reveal.in { opacity: 1; translate: 0 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; aspect-ratio: 1 / .78; }
  .show, .show.flip { grid-template-columns: 1fr; padding: 20px; gap: 34px; }
  .show.flip .show-art { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}
