/* Mopi home: a felt toy box. Milky page, pastel cushions, rounded panels,
   candy buttons. home.js / home-companion.js / home-motion.js hook into the
   class names here, so rename with care. */
:root{
  --milk:#fff8ee;--card:#fffdf8;--ink:#4a3730;--muted:#8a7268;--line:rgba(74,55,48,.14);
  --pink:#ffd3dc;--pink-deep:#ef8aa0;--butter:#ffe9a8;--mint:#d3ecd9;--sky:#d6e7fb;--lilac:#e6dcfb;--peach:#ffdcc4;
  --round:"Fredoka","Jua","Apple SD Gothic Neo",sans-serif;
  --body:"Nunito","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
  --gutter:40px;--panel:16px;--radius:48px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{margin:0;color:var(--ink);font:500 16px/1.65 var(--body);-webkit-font-smoothing:antialiased;
  background:var(--milk) radial-gradient(circle,rgba(239,138,160,.13) 1.6px,transparent 2px) 0 0/28px 28px}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
button,a,input,select{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
figure,p,h1,h2,h3{margin:0}
h1,h2,h3{font-family:var(--round);font-weight:600;line-height:1.1}
h2{font-size:58px;letter-spacing:-.01em}
h2 em{font-style:normal;color:var(--pink-deep)}
:lang(ko) h1,:lang(ko) h2,:lang(ko) h3{font-family:"Jua",var(--round);font-weight:400;word-break:keep-all}
:lang(ko) body{word-break:keep-all}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--pink-deep);outline-offset:4px;border-radius:12px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link{position:fixed;top:8px;left:8px;z-index:100;background:#fff;padding:12px;border-radius:12px;transform:translateY(-160%)}
.skip-link:focus{transform:none}
.icon{width:20px;height:20px;flex:0 0 20px;object-fit:contain}
.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:50%;padding:0;flex:0 0 44px}
.icon-button:hover{background:rgba(74,55,48,.08)}

/* ---- candy buttons ---- */
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:54px;max-width:100%;padding:12px 26px;border:2.5px solid var(--ink);border-radius:999px;font:600 17px/1.2 var(--round);box-shadow:0 5px 0 var(--ink);transition:transform .15s,box-shadow .15s,background .2s}
.button:hover{transform:translateY(-2px);box-shadow:0 7px 0 var(--ink)}
.button:active{transform:translateY(4px);box-shadow:0 1px 0 var(--ink)}
.button-white{background:#fff;color:var(--ink)}
.button-ink{background:var(--pink-deep);color:#fff}
.button-ink .icon{filter:invert(1)}
.button-ink:hover{background:#e9778f}
.text-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;font:600 16px var(--round);color:var(--ink);padding:6px 16px;border-radius:999px;background:#fff;box-shadow:0 0 0 2px var(--ink)}
.text-link .icon{width:18px;height:18px;flex-basis:18px;transition:transform .2s}
.text-link:hover .icon{transform:translate(2px,-2px) rotate(8deg)}

/* ---- headings: a little felt badge above every title ---- */
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 16px 6px 10px;border-radius:999px;background:#fff;box-shadow:0 0 0 2px var(--ink);font:600 14px/1.3 var(--round)}
.eyebrow::before{content:"";width:22px;height:22px;background:var(--pink-deep);mask:url('assets/home/cream.webp') center/contain no-repeat;-webkit-mask:url('assets/home/cream.webp') center/contain no-repeat}
.section{margin:0 var(--panel) var(--panel);padding:96px max(calc(var(--gutter) + 8px),calc((100% - 1260px)/2));border-radius:var(--radius);position:relative;isolation:isolate}
.section-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px;flex-wrap:wrap}
.section-note,.availability{font:600 15px var(--round);color:var(--muted)}
.availability{display:flex;align-items:center;gap:8px}
.availability::before{content:"";width:10px;height:10px;border-radius:50%;background:#6cc28a;box-shadow:0 0 0 4px rgba(108,194,138,.25)}
.fine-print{font-size:13px;color:var(--muted);line-height:1.7}
.fine-print a{text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px}

/* ---- header: a floating pill ---- */
.site-header{position:sticky;top:14px;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:24px;height:68px;margin:14px var(--panel) 0;padding:0 14px 0 26px;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-radius:999px;box-shadow:0 0 0 2px var(--ink),0 6px 0 var(--ink)}
.wordmark{font:700 34px/1 var(--round);letter-spacing:-.02em;white-space:nowrap}
.brand-dot,.wordmark>span{color:var(--pink-deep)}
.site-menu{display:flex;align-items:center;gap:6px;font:600 16px var(--round)}
.site-menu a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;transition:background .2s}
.site-menu a:hover{background:var(--pink)}
.header-actions{display:flex;align-items:center;gap:8px}
.language-control{display:flex;align-items:center;gap:4px;padding:0 6px}
.language-control .icon{width:18px;height:18px;flex-basis:18px}
.language-control select{background:transparent;border:0;min-height:44px;font:600 14px var(--round);cursor:pointer}
.header-find{display:flex;align-items:center;gap:8px;min-height:46px;padding:0 18px;border-radius:999px;background:var(--butter);box-shadow:0 0 0 2px var(--ink);font:600 15px var(--round)}
.header-find:hover{background:#ffdf85}
.menu-toggle,.site-menu .mobile-find{display:none}

/* ---- hero ---- */
.hero-wrap{position:relative;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:40px;padding:56px max(var(--gutter),calc((100% - 1320px)/2)) 80px}
.hero-copy{position:relative;z-index:2}
.hero-copy .eyebrow{margin-bottom:22px;background:var(--butter)}
.hero h1,#hero-title{font:700 168px/.9 var(--round);letter-spacing:-.04em;margin:0 0 18px -6px;color:var(--ink);-webkit-text-stroke:0}
#hero-title>span:last-child,#hero-title .dot{color:var(--pink-deep)}
.hero-lede{font:500 30px/1.3 var(--round);margin-bottom:30px}
:lang(ko) .hero-lede{font-family:"Jua",var(--round);font-size:30px;line-height:1.45}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px}
.hero-note{margin-top:22px;font:600 15px var(--round);color:var(--muted)}
.hero{position:relative;isolation:isolate;height:min(74svh,660px);min-height:480px;border-radius:44% 56% 52% 48% / 54% 44% 56% 46%;overflow:hidden;box-shadow:0 0 0 3px var(--ink),0 0 0 14px #fff,0 0 0 16.5px var(--ink),0 30px 50px -20px rgba(74,55,48,.35);animation:blob 14s ease-in-out infinite alternate}
@keyframes blob{to{border-radius:52% 48% 44% 56% / 46% 56% 44% 54%}}
.hero-world{position:absolute;inset:0;z-index:-2}
.hero-world img{width:100%;height:100%;object-fit:cover}
.hero-companion{position:absolute;left:51%;top:72%;width:230px;transform:translate(-50%,-89%);z-index:2}
.hero-pet{display:block;width:100%;aspect-ratio:1;border:0;padding:0;background:transparent;transform-origin:50% 90%;transition:transform .3s}
.hero-pet img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 14px 10px rgba(47,37,15,.2));pointer-events:none}
.hero-pet:hover{transform:translateY(-6px) rotate(-3deg)}
.hero-pet.is-petted{animation:pet .65s ease}
@keyframes pet{0%,100%{transform:none}30%{transform:scale(1.12,.88)}65%{transform:translateY(-14px) scale(.96,1.05)}}
.hero-hint{position:absolute;right:-34%;top:0;padding:8px 16px;border-radius:20px 20px 20px 4px;background:#fff;box-shadow:0 0 0 2px var(--ink);font:600 16px var(--round);white-space:nowrap;animation:hint 2.4s ease-in-out infinite;pointer-events:none}
@keyframes hint{0%,100%{transform:translateY(0) rotate(4deg)}50%{transform:translateY(-6px) rotate(-2deg)}}
.confetti{position:absolute;inset:0;pointer-events:none;z-index:1}
.confetti i{position:absolute;font-style:normal;font-size:28px;line-height:1;animation:float 6s ease-in-out infinite}
.confetti i:nth-child(1){left:4%;top:12%;color:var(--pink-deep)}
.confetti i:nth-child(2){left:40%;top:8%;color:#f0bf3c;font-size:22px;animation-delay:-1s}
.confetti i:nth-child(3){left:46%;bottom:10%;color:#7cc39a;font-size:32px;animation-delay:-2s}
.confetti i:nth-child(4){right:3%;top:10%;color:#9a8ae0;font-size:24px;animation-delay:-3s}
.confetti i:nth-child(5){right:6%;bottom:8%;color:var(--pink-deep);font-size:20px;animation-delay:-4s}
.confetti i:nth-child(6){left:2%;bottom:14%;color:#7fb2e8;font-size:22px;animation-delay:-5s}
@keyframes float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-14px) rotate(12deg)}}

/* ---- the eight ---- */
.the-eight{background:var(--butter)}
.eight-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:48px}
.eight-heading>p{max-width:380px;font-size:17px;color:#7a6250}
.lineup{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}
.mopi-choice{--c:#fff;position:relative;min-width:0;display:grid;justify-items:center;gap:10px;padding:0;border:0;background:transparent;font:600 16px var(--round)}
.mopi-choice::before{content:"";position:absolute;left:4%;right:4%;top:10%;aspect-ratio:1;border-radius:50%;background:var(--c);box-shadow:inset 0 -8px 0 rgba(74,55,48,.07);transition:transform .35s cubic-bezier(.3,1.6,.5,1),box-shadow .3s;z-index:-1}
.lineup{isolation:isolate}
.mopi-choice[data-mopi="cream"]{--c:#fff4d6}.mopi-choice[data-mopi="patch"]{--c:var(--peach)}.mopi-choice[data-mopi="blush"]{--c:var(--pink)}.mopi-choice[data-mopi="dusty"]{--c:var(--lilac)}
.mopi-choice[data-mopi="speckle"]{--c:var(--sky)}.mopi-choice[data-mopi="tip"]{--c:#ffe6da}.mopi-choice[data-mopi="fluffy"]{--c:#fff}.mopi-choice[data-mopi="odd"]{--c:var(--mint)}
.mopi-choice img{width:100%;aspect-ratio:1;object-fit:contain;--mopi-scale:1;--mopi-lift:0px;transform:translateY(var(--mopi-lift)) scale(var(--mopi-scale));transition:transform .35s cubic-bezier(.3,1.6,.5,1);filter:drop-shadow(0 8px 6px rgba(74,55,48,.12))}
.mopi-choice[data-mopi="blush"] img,.mopi-choice[data-mopi="dusty"] img{--mopi-scale:1.38}.mopi-choice[data-mopi="odd"] img{--mopi-scale:.88}
.mopi-choice:hover img,.mopi-choice.is-selected img{--mopi-lift:-10px}
.mopi-choice.is-selected::before{transform:scale(1.08);box-shadow:0 0 0 3px var(--ink),inset 0 -8px 0 rgba(74,55,48,.07)}
.mopi-choice>span:not(.mopi-number):not(.choice-dot){padding:2px 14px;border-radius:999px;background:#fff;box-shadow:0 0 0 2px var(--ink);transition:background .2s,color .2s}
.mopi-choice.is-selected>span:not(.mopi-number):not(.choice-dot){background:var(--ink);color:#fff}
.mopi-number,.choice-dot{display:none}
.mopi-story{position:relative;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:40px;padding:24px 28px;border-radius:32px;background:#fff;box-shadow:0 0 0 2.5px var(--ink),0 6px 0 var(--ink)}
.mopi-story::before{content:"";position:absolute;left:60px;top:-14px;width:26px;height:26px;background:#fff;border-left:2.5px solid var(--ink);border-top:2.5px solid var(--ink);transform:rotate(45deg);border-radius:6px 0 0 0}
.mopi-story>div{display:flex;gap:20px;align-items:center;min-height:48px}
.story-name{font:700 30px var(--round);color:var(--pink-deep);min-width:96px}
#story-line{font:500 20px var(--round)}
:lang(ko) #story-line{font-family:"Jua",var(--round)}

/* ---- desktop ---- */
.desktop-experience{background:var(--sky)}
.desktop-backdrop{display:none}
.desktop-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:56px;align-items:center}
.product-label{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;font:600 16px var(--round)}
.desktop-copy>p:not(.fine-print){max-width:420px;margin-top:22px;font-size:17px;color:#5d5a6a}
.desktop-purchase{display:flex;align-items:center;gap:22px;margin-top:32px;flex-wrap:wrap}
.desktop-purchase>span{display:grid;place-items:center;width:112px;height:112px;border-radius:50%;background:var(--butter);box-shadow:0 0 0 2.5px var(--ink);font:700 26px/1 var(--round);text-align:center;transform:rotate(-10deg);white-space:nowrap}
.purchase-note{display:block;font:600 11px/1.2 var(--round);margin-top:4px;white-space:normal;max-width:80px}
.desktop-copy .fine-print{margin-top:18px}
.desktop-demo{min-width:0}
.companion-stage{position:relative;height:380px;overflow:hidden;border-radius:28px;background:linear-gradient(#fdfbff,#f1ecff);box-shadow:0 0 0 2.5px var(--ink),0 8px 0 var(--ink)}
.companion-stage::before{content:"";position:absolute;inset:0 0 auto;height:40px;border-bottom:2px solid var(--ink);background:radial-gradient(circle at 22px 20px,#ff9a9a 6px,transparent 7px),radial-gradient(circle at 44px 20px,#ffd166 6px,transparent 7px),radial-gradient(circle at 66px 20px,#7cc39a 6px,transparent 7px),#fff}
.companion-caption{position:absolute;left:20px;top:54px;display:grid;gap:2px;z-index:1}
#demo-name{font:700 15px var(--round);color:var(--pink-deep)}
#demo-action{font:500 20px/1.3 var(--round)}
:lang(ko) #demo-action{font-family:"Jua",var(--round)}
.companion-body{position:absolute;left:50%;bottom:8px;width:240px;height:240px;transform:translateX(-50%);border:0;background:transparent;padding:0;touch-action:none;cursor:grab;user-select:none;transform-origin:center bottom}
.companion-body:active{cursor:grabbing}
.companion-body img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.demo-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px}
.size-control{display:flex;align-items:center;gap:12px;font:600 13px var(--round)}
.size-control input{width:140px;max-width:100%;height:32px;accent-color:var(--pink-deep)}
.size-control output{width:40px;font-variant-numeric:tabular-nums}
#motion-toggle{background:#fff;box-shadow:0 0 0 2px var(--ink)}
.desktop-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:56px}
.desktop-features>div{padding:22px 24px;border-radius:28px;background:#fff;box-shadow:0 0 0 2px var(--ink)}
.desktop-features b{font:600 18px var(--round)}
.desktop-features p{font-size:14px;margin-top:6px;color:var(--muted)}

/* ---- touch ---- */
.touch-feature{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;align-items:center;background:var(--pink)}
.touch-photo{border-radius:36px;overflow:hidden;box-shadow:0 0 0 2.5px var(--ink),0 8px 0 var(--ink);aspect-ratio:3/2}
.touch-photo img{width:100%;height:100%;object-fit:cover}
.touch-copy .eyebrow{margin-bottom:22px}
.touch-copy .product-label{display:flex}
.touch-copy h2{font-size:64px}
.touch-copy>p:not(.eyebrow):not(.fine-print){margin-top:20px;font-size:17px;color:#7a5560}
.touch-copy .button{margin-top:28px}
.touch-copy .fine-print{margin-top:16px}

/* ---- play ---- */
.play{background:var(--mint)}
.play-heading{margin-bottom:44px}
.play-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:start}
.game-feature{min-width:0;padding:14px 14px 26px;border-radius:40px;background:#fff;box-shadow:0 0 0 2.5px var(--ink),0 8px 0 var(--ink);transition:transform .3s cubic-bezier(.3,1.5,.5,1)}
.game-feature:hover{transform:translateY(-4px) rotate(-.6deg)}
.game-feature--doku:hover{transform:translateY(-4px) rotate(.6deg)}
.game-scene{position:relative;aspect-ratio:1.2;overflow:hidden;border-radius:28px;background:#f6e2c3}
.game-feature--doku .game-scene{background:#e7f0da}
.game-campaign{width:100%;height:100%;object-fit:cover}
.game-feature--drop .game-campaign{object-position:66% center}
.game-feature--doku .game-campaign{object-position:28% center}
.trial-launch{position:absolute;left:18px;bottom:18px;display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 20px;border:2.5px solid var(--ink);border-radius:999px;background:var(--butter);box-shadow:0 4px 0 var(--ink);font:600 16px var(--round);transition:transform .15s,box-shadow .15s}
.trial-launch:hover{transform:translateY(-2px);box-shadow:0 6px 0 var(--ink)}
.game-copy{padding:22px 12px 0}
.game-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.game-title h3{font-size:30px}
.coming-soon{padding:3px 12px;border-radius:999px;background:var(--lilac);font:600 13px var(--round);white-space:nowrap}
.game-tagline{font:600 22px/1.35 var(--round);color:var(--pink-deep);margin:12px 0 4px}
:lang(ko) .game-tagline{font-family:"Jua",var(--round);font-weight:400}
.game-copy>p:last-child{font-size:15px;color:var(--muted)}
.game-trial{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(255,246,230,.96);padding:12px}
.game-feature--doku .game-trial{background:rgba(236,246,232,.96)}
.game-scene.is-playing{min-height:600px;aspect-ratio:auto}
.trial-heading{position:absolute;top:8px;left:0;display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 16px;font:600 13px var(--round)}
.trial-heading>span>span{font-size:11px;color:var(--muted);margin-left:6px}
.game-feature__runtime{width:244px;height:528.6px;margin-top:25px;max-width:100%;overflow:hidden;flex-shrink:0;border-radius:24px}
.game-feature__runtime-viewport{width:375px;height:812px;transform:scale(.65);transform-origin:top left}
.game-feature__runtime iframe{display:block;width:375px;height:812px;border:0;background:transparent}
.trial-status{position:absolute;bottom:6px;max-width:90%;text-align:center;font-size:12px}

/* ---- free things ---- */
.free-things{background:transparent}
.free-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:44px}
.free-heading .eyebrow{margin-bottom:22px}
.free-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.free-item{min-width:0;padding:12px 12px 22px;border-radius:36px;background:#fff;box-shadow:0 0 0 2.5px var(--ink),0 7px 0 var(--ink);transition:transform .3s cubic-bezier(.3,1.5,.5,1)}
.free-item:nth-child(1):hover{transform:translateY(-6px) rotate(-1.5deg)}
.free-item:nth-child(2):hover{transform:translateY(-6px)}
.free-item:nth-child(3):hover{transform:translateY(-6px) rotate(1.5deg)}
.free-art{position:relative;aspect-ratio:1.15;overflow:hidden;border-radius:26px;background:var(--lilac)}
.free-item>div:nth-child(2){display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 10px 0}
.free-item h3{font-size:22px}
.free-item>p{margin:4px 10px 0;font-size:14px;color:var(--muted)}
.wallpaper-art img{width:100%;height:100%;object-fit:cover}
.reactions-art{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;padding:14px 30px;background:var(--pink)}
.reactions-art img{width:100%;aspect-ratio:1;object-fit:contain}
.reactions-art img:nth-child(2){rotate:8deg}.reactions-art img:nth-child(3){rotate:-8deg}
.theme-art{display:flex;align-items:flex-start;justify-content:center;padding:26px 26px 0;background:var(--sky)}
.theme-art img{width:68%;border-radius:16px 16px 0 0;box-shadow:0 0 0 2px var(--ink)}

/* ---- someday: real Mopi ---- */
.real-mopi{background:var(--lilac)}
.merch-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:64px;align-items:center}
.merch-gallery{position:relative;min-width:0}
.merch-gallery>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:40px;background:#fff;box-shadow:0 0 0 2.5px var(--ink),0 8px 0 var(--ink)}
.concept-label{position:absolute;left:18px;bottom:24px;padding:4px 12px;border-radius:999px;background:#fff;box-shadow:0 0 0 2px var(--ink);font:600 12px var(--round)}
.merch-copy h2{font-size:64px}
.merch-copy>p:not(.fine-print){margin-top:20px;font-size:17px;color:#665c7a}
.merch-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:28px 0}
.merch-choice{display:grid;gap:8px;min-width:0;padding:6px 6px 10px;border:0;border-radius:22px;background:#fff;text-align:center;font:600 13px/1.3 var(--round);box-shadow:0 0 0 2px transparent;transition:box-shadow .2s,transform .2s}
.merch-choice img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:16px}
.merch-choice:hover{transform:translateY(-3px)}
.merch-choice.is-selected{box-shadow:0 0 0 2.5px var(--ink),0 4px 0 var(--ink)}
.heart-interest{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.heart-button{background:var(--pink-deep);color:#fff}
.heart-button[aria-pressed=true]{background:#c9607a}
.mopi-silhouette,.wish-mopi{display:block;width:24px;height:24px;background:currentColor;mask:url('assets/home/cream.webp') center/contain no-repeat;-webkit-mask:url('assets/home/cream.webp') center/contain no-repeat}
#heart-count{display:flex;align-items:center;gap:4px;min-height:28px;color:var(--pink-deep);font-weight:600}
.merch-copy .fine-print{margin-top:20px}

/* ---- closing + footer ---- */
.closing{display:flex;flex-direction:column;align-items:center;text-align:center;margin:0 var(--panel);padding:110px 24px 0;border-radius:var(--radius) var(--radius) 0 0;background:var(--peach);position:relative;isolation:isolate;overflow:hidden;transition:color 2.4s}
.closing>p{font:600 42px/1.25 var(--round)}
:lang(ko) .closing>p{font-family:"Jua",var(--round);font-weight:400}
.closing>a{margin-top:28px}
.closing>img{width:170px;height:170px;object-fit:contain;margin-top:40px;transform:rotate(-8deg);transition:transform 1.4s cubic-bezier(.2,.7,.2,1)}
.site-footer{margin:0 var(--panel) var(--panel);padding:44px 40px 22px;border-radius:0 0 var(--radius) var(--radius);background:var(--ink);color:#fbeee6}
.footer-top{display:flex;align-items:center;gap:36px;padding-bottom:36px}
.footer-top .wordmark{font-size:40px}
.footer-top>span{font:500 16px var(--round);color:#e3cfc5}
.footer-top>a:last-child{margin-left:auto;display:flex;align-items:center;gap:10px;min-height:44px;font:600 16px var(--round)}
.site-footer .icon{filter:invert(1)}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:18px;border-top:2px dashed rgba(251,238,230,.25);font:500 14px var(--round);color:#e3cfc5}
.footer-bottom nav{display:flex;gap:20px}
.footer-bottom a{display:flex;align-items:center;gap:8px;min-height:44px}

/* ---- motion layer (home-motion.js adds these classes) ---- */
@property --bob{syntax:"<length>";inherits:false;initial-value:0px}
.reveal{opacity:0;transform:translateY(30px) scale(.97);transition:opacity .7s ease,transform .8s cubic-bezier(.3,1.4,.5,1)}
.reveal.is-in{opacity:1;transform:none}
.hero-dust{position:absolute;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none}
.motion-ready #hero-title .letter{display:inline-block;animation:letter-pop .8s cubic-bezier(.3,1.7,.5,1) both}
@keyframes letter-pop{from{opacity:0;transform:translateY(.5em) scale(.6)}to{opacity:1;transform:none}}
#hero-title .letter:not(.dot){color:var(--ink)}
/* entrances hide things only through their keyframes (fill: both), so with
   Reduce Motion or no animation support the content is simply there */
.motion-ready .hero-copy .eyebrow,.motion-ready .hero-lede,.motion-ready .hero-actions,.motion-ready .hero-note{animation:soft-in .9s cubic-bezier(.3,1.4,.5,1) both}
.motion-ready .hero-lede{animation-delay:.6s}.motion-ready .hero-actions{animation-delay:.85s}.motion-ready .hero-note{animation-delay:1.1s}
@keyframes soft-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.hero-companion::before{content:"";position:absolute;left:50%;bottom:4%;width:190%;height:42%;transform:translateX(-50%);z-index:-1;border-radius:50%;background:radial-gradient(closest-side,rgba(255,226,166,.55),rgba(255,226,166,0));animation:sun-breath 7s ease-in-out infinite;pointer-events:none}
@keyframes sun-breath{0%,100%{opacity:.55;transform:translateX(-50%) scale(1)}50%{opacity:.95;transform:translateX(-50%) scale(1.06)}}
.hero-pet img{transform-origin:50% 92%;animation:breathe 3.4s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.03,.96) translateY(2px)}}
.float-heart,.float-spark{position:absolute;bottom:62%;z-index:5;pointer-events:none;font-size:24px;line-height:1;color:var(--pink-deep);animation:float-up 1.6s cubic-bezier(.2,.7,.3,1) forwards}
.float-spark{color:#f0bf3c;font-size:17px;bottom:70%;animation-duration:1.1s}
@keyframes float-up{0%{opacity:0;transform:translate(0,10px) scale(.5)}18%{opacity:1}100%{opacity:0;transform:translate(var(--dx),-130px) scale(1.15) rotate(var(--rot))}}
.lineup.pop-ready:not(.is-in) .mopi-choice{opacity:0}
.lineup.pop-ready.is-in .mopi-choice{animation:pop-in .8s cubic-bezier(.3,1.7,.5,1) both;animation-delay:calc(var(--i) * 80ms)}
@keyframes pop-in{from{opacity:0;transform:translateY(40px) scale(.7)}to{opacity:1;transform:none}}
.mopi-choice img{transform:translateY(calc(var(--mopi-lift) + var(--bob))) scale(var(--mopi-scale));animation:bob 3s ease-in-out infinite;animation-delay:calc(var(--i,0) * -.4s)}
@keyframes bob{0%,100%{--bob:0px}50%{--bob:-7px}}
.story-change{animation:story-in .6s cubic-bezier(.3,1.5,.5,1)}
@keyframes story-in{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
.companion-body::after{position:absolute;right:6%;top:4%;font:700 24px/1 var(--round);color:#9a8ae0;pointer-events:none;opacity:0}
.companion-stage[data-action="sleep"] .companion-body::after{content:"z";animation:zzz 2.6s ease-in-out infinite}
.companion-stage[data-action="happy"] .companion-body::after{content:"♥";color:var(--pink-deep);animation:zzz 1.6s ease-in-out infinite}
@keyframes zzz{0%{opacity:0;transform:translate(0,8px) scale(.7)}30%{opacity:.9}100%{opacity:0;transform:translate(14px,-40px) scale(1.25)}}
.reactions-art img{animation:sticker 2.6s ease-in-out infinite}
.reactions-art img:nth-child(2){animation-delay:-.6s}.reactions-art img:nth-child(3){animation-delay:-1.2s}.reactions-art img:nth-child(4){animation-delay:-1.8s}
@keyframes sticker{0%,100%{translate:0 0}50%{translate:0 -8px}}
.closing::after{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,var(--peach) 0%,#f6b9c4 16%,#b39ad8 34%,#6a67a8 55%,#3d3f6e 80%,#34304f 100%);opacity:0;transition:opacity 2.4s}
.closing.is-night::after{opacity:1}
.closing.is-night{color:#fff8ee}
.night-sky{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:0;transition:opacity 3s 1.2s}
.closing.is-night .night-sky{opacity:1}
.night-sky i{position:absolute;width:calc(var(--s) * 2);height:calc(var(--s) * 2);border-radius:50%;background:#fff6dc;box-shadow:0 0 8px 2px rgba(255,240,200,.7);animation:twinkle 4s ease-in-out infinite}
@keyframes twinkle{0%,100%{opacity:.2;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}}
.closing.is-night>img{transform:rotate(0);filter:drop-shadow(0 10px 16px rgba(10,12,30,.35))}
.peeker{position:fixed;right:22px;bottom:-12px;z-index:40;width:112px;height:112px;padding:0;border:0;background:transparent;transform:translateY(105%);transition:transform .7s cubic-bezier(.3,1.5,.5,1);cursor:pointer}
.peeker.from-left{right:auto;left:22px}
.peeker.is-out{transform:translateY(28%)}
.peeker img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 -2px 8px rgba(74,55,48,.15))}
.peeker .float-heart{bottom:70%;font-size:18px}
body.motion-paused .hero-pet img,body.motion-paused .hero-companion::before,body.motion-paused .mopi-choice img,body.motion-paused .reactions-art img,body.motion-paused .night-sky i,body.motion-paused .companion-body::after,body.motion-paused .confetti i,body.motion-paused .hero,body.motion-paused .hero-hint{animation-play-state:paused}

/* ---- responsive ---- */
@media(max-width:1150px){
  :root{--gutter:28px}
  h2{font-size:48px}
  .header-find{display:none}
  .site-menu a{padding:0 10px;font-size:15px}
  #hero-title{font-size:128px}
  .hero-lede{font-size:26px}
  .hero-companion{width:190px}
  .touch-copy h2,.merch-copy h2{font-size:52px}
  .desktop-layout,.merch-layout,.touch-feature{gap:36px}
}
@media(max-width:900px){
  .hero-wrap{grid-template-columns:1fr;gap:28px;padding-top:36px}
  .hero{height:440px;min-height:0}
  .hero-hint{right:-28%}
  .lineup{grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 16px}
  .eight-heading{flex-direction:column;align-items:flex-start;gap:18px}
  .desktop-layout,.touch-feature,.merch-layout{grid-template-columns:1fr}
  .desktop-features{grid-template-columns:1fr}
  .play-grid{gap:20px}
  .free-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  :root{--gutter:18px;--panel:10px;--radius:34px}
  html{scroll-padding-top:90px}
  body{font-size:15px}
  h2,:lang(ko) h2{font-size:38px}
  .section{padding:64px 22px}
  .site-header{top:10px;height:60px;margin:10px var(--panel) 0;padding:0 8px 0 20px}
  .wordmark{font-size:28px}
  .language-control .icon{display:none}
  .menu-toggle{display:inline-flex}
  .site-menu{display:none;position:absolute;top:calc(100% + 12px);left:0;right:0;padding:10px;background:#fff;border-radius:28px;box-shadow:0 0 0 2px var(--ink),0 6px 0 var(--ink)}
  .site-menu.is-open{display:grid;gap:2px}
  .site-menu a,.site-menu .mobile-find{display:flex;min-height:50px;font-size:18px;padding:0 16px}
  .hero-wrap{gap:22px;padding:22px 18px 48px}
  .hero-copy .eyebrow{margin-bottom:14px}
  #hero-title{font-size:84px;margin-bottom:10px}
  .hero-lede,:lang(ko) .hero-lede{font-size:21px;margin-bottom:18px}
  .hero-actions{flex-wrap:nowrap;gap:10px}
  .hero-actions .button{flex:1 1 0;min-width:0;min-height:48px;padding:10px 12px;gap:8px;font-size:15px;box-shadow:0 4px 0 var(--ink)}
  .hero-actions .button .icon{width:16px;height:16px;flex-basis:16px}
  .hero-note{margin-top:14px;font-size:13px}
  .hero{height:clamp(300px,82vw,380px);box-shadow:0 0 0 2.5px var(--ink),0 0 0 10px #fff,0 0 0 12px var(--ink)}
  .hero-companion{width:150px}
  .hero-hint{right:-30%;font-size:14px;padding:6px 12px}
  .confetti i{font-size:20px!important}
  .lineup{gap:22px 10px}
  .mopi-choice{font-size:14px}
  .mopi-choice>span:not(.mopi-number):not(.choice-dot){padding:1px 10px}
  .mopi-story{flex-direction:column;align-items:flex-start;padding:20px}
  .mopi-story>div{flex-direction:column;align-items:flex-start;gap:4px}
  #story-line{font-size:18px}
  .desktop-purchase>span{width:96px;height:96px;font-size:22px}
  .companion-stage{height:300px}
  .touch-copy h2,.merch-copy h2,:lang(ko) .touch-copy h2,:lang(ko) .merch-copy h2{font-size:42px}
  .play-grid,.free-grid{grid-template-columns:1fr}
  .game-scene{aspect-ratio:1.15}
  .game-title h3{font-size:26px}
  .free-heading{flex-direction:column;align-items:flex-start;margin-bottom:32px}
  .merch-choices{gap:8px}
  .merch-choice{font-size:12px}
  .closing{padding-top:72px}
  .closing>p{font-size:30px}
  .closing>img{width:140px;height:140px}
  .site-footer{padding:32px 22px 18px}
  .footer-top{flex-wrap:wrap;gap:14px}
  .footer-top>span{flex:1 1 100%}
  .footer-top>a:last-child{margin-left:0}
  .footer-bottom{flex-wrap:wrap}
  .footer-bottom nav{gap:14px;flex-wrap:wrap}
  .peeker{width:84px;height:84px;right:12px}.peeker.from-left{left:12px}
}
@media(max-width:374px){
  #hero-title{font-size:72px}
  .hero-actions .button{font-size:14px}
  .lineup{gap:18px 6px}
  .game-feature__runtime{width:225px;height:487.2px}
  .game-feature__runtime-viewport{transform:scale(.6)}
  .game-scene.is-playing{min-height:555px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal,.lineup.pop-ready .mopi-choice{opacity:1!important;transform:none!important}
  .peeker{display:none}
}
/* the full stop in the wordmark is a round felt bead, not Fredoka's square dot */
#hero-title>span:last-child,.brand-dot,.wordmark>span{display:inline-block;width:.19em;height:.19em;margin-left:.05em;border-radius:50%;background:var(--pink-deep);color:transparent;overflow:hidden;line-height:0;vertical-align:baseline}
#hero-title>span:last-child{width:.17em;height:.17em}
