/* Muan's download page: the colours of the melting-M icon (hot pink on lime, navy outlines), chunky sticker shapes,
   springy motion. */
@font-face { font-family: Mitr; font-weight: 400; font-display: swap; src: url(/fonts/Mitr-Regular.ttf); }
@font-face { font-family: Mitr; font-weight: 600; font-display: swap; src: url(/fonts/Mitr-SemiBold.ttf); }
@font-face { font-family: Mitr; font-weight: 700; font-display: swap; src: url(/fonts/Mitr-Bold.ttf); }

:root {
  --ink: #1b1b2f;
  --muted: #5d6175;
  --cream: #fffaf2;
  --pink: #ff3e8a;
  --pink-dark: #d81b6a;
  --lime: #b8f35b;
  --sun: #ffd84a;
  --sky: #4fd6ff;
  --line: #ece4d6;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --smooth: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 Mitr, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- top bar --- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px clamp(18px, 5vw, 64px); background: rgba(255, 250, 242, .86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; text-decoration: none; }
.brand img { transition: transform .4s var(--spring); }
.brand:hover img { transform: rotate(-10deg) scale(1.1); }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; transition: color .2s; }
.nav nav a:hover { color: var(--ink); }

/* --- buttons: chunky, with an edge underneath --- */
.btn { --edge: var(--ink); display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 16px; background: var(--pink); color: #fff; font-weight: 700; text-decoration: none; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--edge); transition: transform .15s var(--smooth), box-shadow .15s var(--smooth); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); transition-duration: .05s; }
.btn.small { padding: 7px 16px; font-size: 15px; border-width: 2.5px; box-shadow: 0 3px 0 var(--edge); }
.btn.big { padding: 16px 28px 16px 22px; font-size: 20px; }
.btn.big span { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.btn.big small { font-weight: 400; font-size: 13.5px; opacity: .9; }
.btn.big svg { width: 30px; height: 30px; stroke-width: 2.8; }
.btn.light { background: #fff; color: var(--ink); }

/* --- hero --- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; max-width: 1200px; margin: 0 auto; padding: clamp(30px, 6vw, 80px) clamp(18px, 5vw, 64px) 60px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 2.5px solid var(--ink); border-radius: 99px; padding: 5px 16px; font-weight: 600; font-size: 15px; box-shadow: 0 3px 0 var(--ink); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 59, 92, .18); } }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 700; margin: 22px 0 18px; letter-spacing: -.5px; }
.hero mark { background: none; color: var(--pink); position: relative; white-space: nowrap; }
.hero mark::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: 4px; height: 14px; background: var(--lime); z-index: -1; border-radius: 7px; transform: rotate(-1.5deg); }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.alt { color: var(--muted); font-weight: 600; text-underline-offset: 4px; }
.alt:hover { color: var(--ink); }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: #2bb36a; stroke-width: 3; }
.mobile-note { display: none; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff3c4; font-size: 15px; }

/* the stage: the mascot dripping, game stickers floating, hearts rising like a live */
.stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.stage::before { content: ''; position: absolute; inset: 12% 8%; border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; background: var(--lime); border: 3px solid var(--ink); animation: blob 9s ease-in-out infinite; }
@keyframes blob { 50% { border-radius: 56% 44% 45% 55% / 44% 56% 44% 56%; transform: rotate(4deg); } }
.mascot { position: absolute; left: 25%; top: 18%; width: 50%; height: auto; stroke: none; overflow: visible; animation: wobble 3.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes wobble { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97) translateY(4px); } }
.mascot .eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.drop { position: absolute; width: 14px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--pink); border: 3px solid var(--ink); animation: fall 2.8s cubic-bezier(.55, 0, .9, .5) infinite; opacity: 0; }
.d1 { left: 33%; top: 80%; animation-delay: .2s; }
.d2 { left: 62%; top: 74%; animation-delay: 1.3s; }
.d3 { left: 48%; top: 70%; animation-delay: 2.1s; }
@keyframes fall { 0% { transform: translateY(-10px) scale(.4); opacity: 0; } 15% { opacity: 1; transform: translateY(0) scale(1); } 80% { opacity: 1; } 100% { transform: translateY(90px) scale(.8); opacity: 0; } }
.sticker { position: absolute; width: 27%; border-radius: 14px; border: 4px solid #fff; outline: 3px solid var(--ink); box-shadow: 0 14px 28px rgba(27, 27, 47, .22); animation: bob 5s ease-in-out infinite; transition: transform .35s var(--spring); }
.sticker:hover { animation-play-state: paused; transform: scale(1.08) rotate(0deg) !important; }
.s1 { --r: -9deg; left: 0; top: 4%; }
.s2 { --r: 8deg; right: 0; top: 0; animation-delay: -1.2s; }
.s3 { --r: -6deg; left: 4%; bottom: 2%; animation-delay: -2.4s; }
.s4 { --r: 10deg; right: 3%; bottom: 6%; animation-delay: -3.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-12px) rotate(var(--r)); } }
.live { position: absolute; z-index: 2; left: 41%; top: 3%; background: #ff3b5c; color: #fff; font-weight: 700; font-size: 14px; padding: 3px 12px; border-radius: 8px; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transform: rotate(-4deg); }
.float { position: absolute; bottom: 8%; opacity: 0; animation: rise 5s ease-out infinite; }
.float svg { width: 30px; height: 30px; stroke: var(--ink); stroke-width: 1.8; }
.float.heart svg { fill: var(--pink); }
.float.f3 svg { fill: #ff8fb8; width: 24px; height: 24px; }
.float.star svg { fill: var(--sun); }
.float.gift svg { fill: var(--sky); }
.f1 { left: 72%; } .f2 { left: 80%; animation-delay: 1s; } .f3 { left: 66%; animation-delay: 2s; } .f4 { left: 86%; animation-delay: 3s; } .f5 { left: 76%; animation-delay: 4s; }
@keyframes rise { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-30px, -300px) scale(1.2); opacity: 0; } }

/* --- sections --- */
section { max-width: 1200px; margin: 0 auto; padding: 70px clamp(18px, 5vw, 64px); }
.head { text-align: center; margin-bottom: 38px; }
.head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
.head p { color: var(--muted); margin: 8px 0 0; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); transition: transform .35s var(--spring), box-shadow .35s var(--spring); }
.card:nth-child(odd):hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 12px 0 var(--ink); }
.card:nth-child(even):hover { transform: translateY(-8px) rotate(1.5deg); box-shadow: 0 12px 0 var(--ink); }
.card img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-bottom: 3px solid var(--ink); }
.card div { padding: 14px 16px 18px; }
.card h3 { font-size: 20px; font-weight: 700; }
.card h3 small { font-size: 12px; font-weight: 600; background: var(--sky); color: var(--ink); padding: 1px 8px; border-radius: 99px; vertical-align: middle; }
.card p { font-size: 14.5px; color: var(--muted); margin: 6px 0 12px; line-height: 1.55; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; background: #fff3c4; border-radius: 99px; padding: 2px 12px; }
.tag.free { background: var(--lime); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 26px 24px 22px; box-shadow: 0 6px 0 var(--ink); }
.steps b { position: absolute; top: -26px; left: 22px; width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; box-shadow: 0 4px 0 var(--ink); }
.steps li:nth-child(2) b { background: var(--sky); color: var(--ink); }
.steps li:nth-child(3) b { background: var(--sun); color: var(--ink); }
.steps h3 { font-size: 21px; font-weight: 700; margin-top: 14px; }
.steps p { color: var(--muted); margin: 6px 0 0; font-size: 15.5px; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 10px; }
.perk { background: #fff; border: 2.5px solid var(--line); border-radius: 18px; padding: 20px; }
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); background: var(--pink); color: #fff; }
.ico svg { width: 24px; height: 24px; stroke-width: 2.3; }
.perk:nth-child(2) .ico { background: var(--sky); color: var(--ink); }
.perk:nth-child(3) .ico { background: var(--sun); color: var(--ink); }
.perk:nth-child(4) .ico { background: var(--lime); color: var(--ink); }
.perk:hover .ico { animation: hop .5s var(--spring); }
@keyframes hop { 40% { transform: translateY(-6px) rotate(-6deg); } }
.perk h3 { font-size: 17px; font-weight: 700; margin: 8px 0 4px; }
.perk p { margin: 0; font-size: 14.5px; color: var(--muted); }

.faq { max-width: 820px; }
.faq details { background: #fff; border: 2.5px solid var(--ink); border-radius: 18px; margin-bottom: 12px; box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); font-weight: 700; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.final { margin: 40px auto 70px; max-width: 1100px; text-align: center; background: var(--pink); color: #fff; border: 3px solid var(--ink); border-radius: 32px; box-shadow: 0 8px 0 var(--ink); padding: 56px 24px; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; inset: auto -40px -80px auto; width: 260px; height: 260px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); opacity: .9; }
.final h2 { position: relative; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; margin-bottom: 26px; }
.final .cta { justify-content: center; position: relative; }

footer { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 26px; color: var(--muted); font-size: 14px; }

/* things slide up as they come into view (site.js adds .in) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--smooth), transform .7s var(--spring); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2), .perks .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3), .perks .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .perks .reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .cta, .trust { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cards, .perks { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 520px) { .cards, .perks { grid-template-columns: 1fr; } }
body.mobile .cta { display: none; }
body.mobile .mobile-note { display: block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* the note that drops in from the top when a download starts */
.dl-banner { position: fixed; z-index: 50; left: 50%; top: 14px; width: min(580px, calc(100% - 24px)); transform: translate(-50%, -160%); background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); padding: 18px 56px 16px 18px; display: flex; gap: 16px; align-items: flex-start; transition: transform .6s var(--spring); }
.dl-banner.show { transform: translate(-50%, 0); }
.dl-banner .bubble { flex: none; width: 50px; height: 50px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); display: grid; place-items: center; }
.dl-banner .bubble svg { width: 26px; height: 26px; stroke-width: 2.8; animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.dl-banner h3 { font-size: 19px; font-weight: 700; }
.dl-banner ol { margin: 6px 0 6px; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.dl-banner .again { font-size: 14px; color: var(--muted); }
.dl-banner .again a { color: var(--pink-dark); font-weight: 600; }
.dl-banner .x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; cursor: pointer; font: 700 16px Mitr, sans-serif; line-height: 1; color: var(--ink); }
.dl-banner .x { display: grid; place-items: center; padding: 0; }
.dl-banner .x svg { width: 16px; height: 16px; stroke-width: 3; }
.dl-banner .x:hover { background: var(--sun); }
