/* ============================================================
   Moko's Moons: the game's own look. Candy-coloured space: deep violet, bubblegum pink, star gold and mint.
   Same layout as the other KK Studio game pages; only tokens differ.
   ============================================================ */

:root {
    --paper: #FAF6FF;
    --card: #FFFFFF;
    --hairline: #E9E0F5;
    --ink: #2A1B4A;
    --muted-text: #62557F;
    --pond: #7A4FD8;
    --pond-deep: #3A2478;
    --pond-text: #6336C0;
    --pond-tint: #EEE6FC;
    --blossom: #F26AAE;
    --blossom-text: #B8226A;
    --blossom-tint: #FDE4F0;
    --gold: #F7C948;
    --gold-tint: #FDF2D0;
    --gold-text: #8A5A05;
    --lotus: #2DB8A6;
    --lotus-text: #16786C;
    --lotus-tint: #DDF5F1;
    --night: #1B1440;
    --band: #F3ECFB;
    --on-ink: #FFFFFF;
    --shadow: 0 1px 2px rgba(42, 27, 74, .05), 0 12px 32px rgba(42, 27, 74, .10);
    --radius-card: 22px;
    --head: 'Baloo 2';
    --hero-1: #3A2A7A;
    --hero-2: #7A3F9E;
    --hero-3: #B8508F;
    --hero-glow: rgba(255, 143, 200, .30);
    --hero-shadow: rgba(24, 10, 60, .40);
    --eyebrow: #FFD9F0;
    --hl: #FFE27A;
    --btn: #FF6FB5;
    --btn-ink: #fff;
    --btn-edge: #C93F86;
    --nav-glow: rgba(122, 79, 216, .3);
    --w1a: #E0609E;
    --w1b: #7A4FD8;
    --w2a: #3AA6B8;
    --w2b: #2A4FA8;
    --w3a: #8A5CE0;
    --w3b: #2A1660;
    --cta-1: #7A4FD8;
    --cta-2: #3A2478;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #150F2B;
        --card: #20173D;
        --hairline: #33285A;
        --ink: #F4EEFF;
        --muted-text: #B5A8D6;
        --pond-text: #B79BFF;
        --pond-tint: #2A1F55;
        --blossom-text: #FF8FC4;
        --blossom-tint: #45203F;
        --gold-tint: #3A2E14;
        --gold-text: #F7C948;
        --lotus-text: #4ED9C6;
        --lotus-tint: #123A36;
        --band: #1B1336;
        --on-ink: #150F2B;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .4);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo-text {
    font-family: var(--head), 'Nunito', -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -.005em;
}
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pond-text); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Nav */
#navbar {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
#navbar.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 4px 20px rgba(16, 50, 58, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.nav-left { display: flex; align-items: center; gap: 6px; }
.nav-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--muted-text); }
.nav-back:hover { background: var(--pond-tint); color: var(--pond-text); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-icon { border-radius: 9px; }
.logo-text { font-size: 1.25rem; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--pond-text); }
.nav-links .nav-cta {
    background: var(--pond); color: #fff; padding: 9px 18px; border-radius: 999px;
    box-shadow: 0 6px 16px var(--nav-glow);
}
.nav-links .nav-cta:hover { color: #fff; background: var(--pond-deep); }
.mobile-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.mobile-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }

/* Hero: the pond itself */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(ellipse 60% 50% at 78% 30%, rgba(255, 255, 255, .22), transparent 70%),
        radial-gradient(ellipse 50% 40% at 15% 85%, var(--hero-glow), transparent 70%),
        linear-gradient(170deg, var(--hero-1) 0%, var(--hero-2) 42%, var(--hero-3) 100%);
    padding: 72px 0 84px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--eyebrow); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); text-shadow: 0 3px 0 var(--hero-shadow); }
.hero h1 .hl { color: var(--hl); display: block; }
.hero-sub { font-size: 1.2rem; max-width: 34em; margin: 20px 0 28px; color: #E9FAF8; }
.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-weight: 800; font-size: 1.05rem; padding: 14px 26px; border-radius: 999px;
    background: var(--btn); color: var(--btn-ink); box-shadow: 0 5px 0 var(--btn-edge), 0 12px 24px rgba(0, 0, 0, .2);
    transition: transform .12s, box-shadow .12s;
}
.btn:hover { color: var(--btn-ink); transform: translateY(2px); box-shadow: 0 3px 0 var(--btn-edge), 0 8px 18px rgba(0, 0, 0, .2); }
.btn.ghost { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px #fff; background: rgba(255, 255, 255, .26); }
.cta-note { font-size: .95rem; color: #D5F1EE; }
.hero-art { position: relative; display: flex; justify-content: center; }
.device { background: #141D22; box-shadow: 0 30px 60px rgba(4, 30, 40, .45); transform: rotate(3deg); }

/* The home screen inside the phone (structure in ../games/live.css). moons.js paints the sky, the planets and
   Moko; these are the game's own measurements, colours and bobbing candy title. */
.game-screen { --game-backdrop: linear-gradient(#2A1D5C, #C45C9C); }
.game-ui {
    --game-bottom: 12; --game-menu-pad: 34; --game-gap: 8; --game-count-font: 17; --game-ring: .4;
    --game-chip-bg: rgba(0, 0, 0, .3); --game-count-ring: rgba(255, 255, 255, .25);
    --game-round: .4; --game-tall: 72; --game-sub: .9; --game-dot: #FF6FB5;
    --gloss: .3; --gloss-h: .26; --gloss-round: .13; --gloss-inset: calc(var(--pt) * 14);
}
.game-title { margin-top: calc(var(--pt) * 6); display: flex; flex-direction: column; align-items: center; font-size: calc(var(--pt) * 64); font-weight: 900; line-height: 1.19; }
.orbit-row { display: flex; }
.orbit-row + .orbit-row { margin-top: calc(var(--pt) * -14.1); }
/* Each letter is a candy planet: a gradient face (b) over its own outline and drop shadow (i). */
.orbit { position: relative; margin: 0 calc(var(--pt) * -.64); transform: translateY(calc(var(--pt) * -3)); }
.orbit i, .orbit b { display: block; font: inherit; }
.orbit i {
    position: absolute; inset: 0; color: var(--ink); --o: calc(var(--pt) * 2.5);
    text-shadow: var(--o) var(--o) 0 var(--ink), calc(var(--o) * -1) var(--o) 0 var(--ink), var(--o) calc(var(--o) * -1) 0 var(--ink),
        calc(var(--o) * -1) calc(var(--o) * -1) 0 var(--ink), 0 calc(var(--pt) * 7) 0 rgba(18, 10, 48, .45);
}
.orbit b { position: relative; color: var(--c); background: linear-gradient(var(--light), var(--c)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.orbit-row:nth-child(1) .orbit:nth-child(1) { --c: #FFE27A; --light: #FFF2C3; --ink: #7B675C; animation-delay: 0.0s; }
.orbit-row:nth-child(1) .orbit:nth-child(2) { --c: #FF9AC8; --light: #FFD2E6; --ink: #7B4B7A; animation-delay: 0.1s; }
.orbit-row:nth-child(1) .orbit:nth-child(3) { --c: #9CE8FF; --light: #D2F5FF; --ink: #55698F; animation-delay: 0.2s; }
.orbit-row:nth-child(1) .orbit:nth-child(4) { --c: #C8A8FF; --light: #E6D8FF; --ink: #66518F; animation-delay: 0.3s; }
.orbit-row:nth-child(1) .orbit:nth-child(5) { --c: #9CFFC8; --light: #D2FFE6; --ink: #55727A; animation-delay: 0.4s; }
.orbit-row:nth-child(1) .orbit:nth-child(6) { --c: #FFB98A; --light: #FFE0CA; --ink: #7B5762; animation-delay: 0.5s; }
.orbit-row:nth-child(2) .orbit:nth-child(1) { --c: #9CE8FF; --light: #D2F5FF; --ink: #55698F; animation-delay: 0.3s; }
.orbit-row:nth-child(2) .orbit:nth-child(2) { --c: #C8A8FF; --light: #E6D8FF; --ink: #66518F; animation-delay: 0.4s; }
.orbit-row:nth-child(2) .orbit:nth-child(3) { --c: #9CFFC8; --light: #D2FFE6; --ink: #55727A; animation-delay: 0.5s; }
.orbit-row:nth-child(2) .orbit:nth-child(4) { --c: #FFB98A; --light: #FFE0CA; --ink: #7B5762; animation-delay: 0.6s; }
.orbit-row:nth-child(2) .orbit:nth-child(5) { --c: #FFE27A; --light: #FFF2C3; --ink: #7B675C; animation-delay: 0.7s; }
.game-tagline {
    margin-top: calc(var(--pt) * 10); font-size: calc(var(--pt) * 16); font-weight: 800; color: rgba(255, 255, 255, .9);
    text-shadow: 0 calc(var(--pt) * 1) calc(var(--pt) * 3) rgba(0, 0, 0, .35);
}
.game-btn.play { --face: #FF6FB5; --face-top: #FF86C1; --edge: #C93F86; }
.game-btn.cream { --face: #FFF8F0; --face-top: #FFFAF4; --edge: #CDBBE8; --label: #2A1B4A; }
.petal { position: absolute; width: 34px; height: 34px; opacity: .9; }
.petal svg { width: 100%; height: 100%; }
.petal.p1 { top: 4%; left: 6%; transform: rotate(-24deg); }
.petal.p2 { bottom: 12%; right: 2%; width: 26px; height: 26px; transform: rotate(40deg); }
.petal.p3 { top: 40%; left: -2%; width: 22px; height: 22px; transform: rotate(10deg); }

/* Numbers */
.numbers { padding: 0; margin-top: -34px; position: relative; z-index: 2; }
.numbers-grid {
    list-style: none; margin: 0; padding: 22px 12px; display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); text-align: center;
}
.numbers-grid b { display: block; font-family: var(--head), sans-serif; font-size: 2.1rem; line-height: 1.1; color: var(--pond-text); }
.numbers-grid span { font-size: .9rem; color: var(--muted-text); font-weight: 600; }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-tag { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--blossom-text); margin-bottom: 10px; }
.section-head h2, .panel h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--muted-text); }

/* Worlds */
.worlds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.world {
    border-radius: var(--radius-card); padding: 28px; color: #fff; position: relative; overflow: hidden;
    box-shadow: var(--shadow); min-height: 250px;
}
.world .wn { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.world h3 { font-size: 1.7rem; margin: 6px 0 10px; }
.world p { margin: 0; font-size: 1rem; }
.world.w1 { background: linear-gradient(160deg, var(--w1a), var(--w1b)); }
.world.w2 { background: linear-gradient(160deg, var(--w2a), var(--w2b)); }
.world.w3 { background: linear-gradient(160deg, var(--w3a), var(--w3b)); }
.world .ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin-bottom: 16px; }
.world .ico svg { width: 26px; height: 26px; }
.soon-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.soon { padding: 8px 16px; border-radius: 999px; background: var(--band); color: var(--muted-text); font-weight: 700; font-size: .92rem; border: 1px dashed var(--hairline); }

/* Features */
.features { background: var(--band); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.3rem; margin: 16px 0 8px; }
.feature p { margin: 0; color: var(--muted-text); font-size: 1rem; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }
.ico.pond { background: var(--pond-tint); color: var(--pond-text); }
.ico.blossom { background: var(--blossom-tint); color: var(--blossom-text); }
.ico.gold { background: var(--gold-tint); color: var(--gold-text); }
.ico.lotus { background: var(--lotus-tint); color: var(--lotus-text); }

/* Lotus + koi */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.duo p { color: var(--muted-text); }
.lotus-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.lotus-list li { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); font-weight: 700; }
.lotus-list .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blossom-tint); color: var(--blossom-text); display: grid; place-items: center; font-family: var(--head), sans-serif; font-size: 1.1rem; }
.koi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.koi { background: var(--card); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.koi b { display: block; font-family: var(--head), sans-serif; font-size: 1.15rem; }
.koi span { color: var(--muted-text); font-size: .92rem; }
.koi.rare { background: var(--gold-tint); }
.koi.rare span { color: var(--gold-text); }

/* Screens */
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px; scrollbar-width: thin; }
.shot { flex: 0 0 min(248px, 66vw); margin: 0; scroll-snap-align: start; }
.shot img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }
.scroll-btn {
    position: absolute; top: 45%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center;
}
.scroll-btn.prev { left: -14px; } .scroll-btn.next { right: -14px; }
.scroll-btn:disabled { opacity: 0; pointer-events: none; }

/* Twin panels */
.twin { padding-top: 0; }
.twin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--card); border-radius: var(--radius-card); padding: 36px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.8rem; }
.panel > p { color: var(--muted-text); }
.checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--muted-text); }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--lotus) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks b { color: var(--ink); }
.text-link { font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Free / Full Pond */
.compare { max-width: 760px; margin: 0 auto; background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 20px; border-top: 1px solid var(--hairline); text-align: left; }
.compare thead th { border-top: 0; background: var(--pond-deep); color: #fff; font-family: var(--head), sans-serif; font-size: 1.05rem; }
.compare tbody th { font-weight: 600; }
.compare td { text-align: center; width: 24%; font-weight: 700; font-size: .95rem; }
.compare thead th:not(:first-child) { text-align: center; }
.yes { color: var(--lotus-text); } .no { color: var(--muted-text); font-weight: 600; } .part { color: var(--gold-text); }
.plans { text-align: center; color: var(--muted-text); max-width: 640px; margin: 22px auto 0; }

/* CTA */
.cta { background: linear-gradient(170deg, var(--cta-1), var(--cta-2)); color: #fff; text-align: center; }
.cta-icon { margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 12px; }
.cta p { max-width: 34em; margin: 0 auto 26px; color: #DDF5F2; }
.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Footer */
footer { background: var(--band); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--head), sans-serif; font-weight: 700; font-size: 1.1rem; }
.footer-logo img { border-radius: 7px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted-text); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--pond-text); }
.footer-copy { width: 100%; margin: 0; color: var(--muted-text); font-size: .9rem; }
.footer-copy a { color: inherit; }

/* Reveal */
.js [data-animate] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js [data-animate].visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-animate] { opacity: 1; transform: none; transition: none; }
    .btn { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .device { animation: bob 7s ease-in-out infinite; }
    @keyframes bob { 50% { transform: rotate(3deg) translateY(-8px); } }
    .orbit { animation: orbit-bob 1.1s ease-in-out infinite alternate; }
    @keyframes orbit-bob { to { transform: translateY(calc(var(--pt) * 3)); } }
}

@media (max-width: 1000px) {
    .feature-grid, .worlds-grid { grid-template-columns: 1fr 1fr; }
    .numbers-grid { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
}
@media (max-width: 860px) {
    section { padding: 64px 0; }
    .hero-grid, .duo, .twin-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 72px; }
    .hero-art { order: -1; }
    .mobile-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch;
        gap: 0; background: var(--paper); border-bottom: 1px solid var(--hairline); padding: 8px 16px 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 4px; }
    .nav-links .nav-cta { text-align: center; margin-top: 8px; }
    .scroll-btn { display: none; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .feature-grid, .worlds-grid, .koi-grid { grid-template-columns: 1fr; }
    .numbers-grid { grid-template-columns: 1fr 1fr; }
    .panel { padding: 26px; }
    .compare th, .compare td { padding: 12px 12px; font-size: .9rem; }
    .btn { width: 100%; justify-content: center; }
}

.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { opacity: .9; }
@media (max-width: 600px) { .store-badge { width: auto; } }
