/* Cozy Rooms Atelier — landing page
   Summer palette, chunky glossy casual-game UI, lots of gentle motion. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --lemon: #ffd93b;
  --sunny: #ffb21e;
  --orange: #ff9b2f;
  --coral: #ff7a59;
  --melon: #ff4d6d;
  --turq: #2ec4d6;
  --aqua: #7fe3ee;
  --sky: #5bc0f8;
  --sea: #1597c9;
  --navy: #0b3d5c;
  --ink: #17435f;
  --cream: #fff8e7;
  --sand: #ffeec7;
  --white: #fff;
  --night: #2a1f6b;
  --night-2: #43308f;
  --radius: 28px;
  --shadow: 0 18px 40px -18px rgba(11, 61, 92, .45);
  --shadow-lg: 0 30px 60px -24px rgba(11, 61, 92, .55);
  --ease-out: cubic-bezier(.2, .9, .25, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Fredoka", "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw + 11px, 19px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: .2px; }
h2 { font-size: clamp(34px, 4.6vw, 62px); }
h3 { font-size: clamp(22px, 1.8vw, 28px); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --c1: var(--lemon); --c2: var(--sunny); --c3: #d8820a;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--display); font-size: 20px; color: #6b3a00; text-decoration: none;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: inset 0 3px 0 rgba(255,255,255,.75), inset 0 -5px 0 var(--c3), 0 10px 22px -8px rgba(216,130,10,.65);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
  transition: transform .25s var(--ease-bounce), filter .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.04); filter: saturate(1.15); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn--sm { padding: 10px 20px; font-size: 16px; }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0 16px; }
.stores--center { justify-content: center; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-width: 196px; padding: 11px 22px 11px 16px; border-radius: 18px;
  background: #0f1b24; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 14px 26px -12px rgba(0,0,0,.6);
  transition: transform .3s var(--ease-bounce), box-shadow .3s;
  overflow: hidden;
}
.store::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.store:hover { transform: translateY(-4px) rotate(-1.5deg) scale(1.04); }
.store:hover::after { animation: shine .9s ease; }
.store svg { width: 30px; height: 30px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; opacity: .85; letter-spacing: .4px; }
.store b { font-family: var(--display); font-size: 21px; font-weight: 700; }
.store b, .store small { white-space: nowrap; }
.store.is-soon { background: #2b3a46; }
.store .soon {
  position: absolute; top: -2px; right: -2px; padding: 3px 10px 3px 12px;
  border-radius: 0 16px 0 14px; background: var(--coral); color: #fff;
  font: 700 11px/1.4 var(--display); letter-spacing: .5px; text-transform: uppercase;
}
@keyframes shine { to { transform: translateX(120%) skewX(-20deg); } }

/* --------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 12px var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -18px rgba(11,61,92,.6), inset 0 0 0 1px rgba(255,255,255,.7);
  transition: transform .4s var(--ease-out), background .3s;
}
.nav.is-hidden { transform: translateY(-140%); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 19px; color: var(--navy); white-space: nowrap; }
.nav__brand img { border-radius: 12px; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); }
.nav__brand b { color: var(--coral); }
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--navy); transition: background .2s, transform .2s; }
.nav__links a:hover { background: rgba(46,196,214,.18); transform: translateY(-1px); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; padding: 4px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(11,61,92,.08); font: 800 13px/1 var(--body); color: var(--navy);
}
.lang span { padding: 7px 10px; border-radius: 999px; transition: background .25s, color .25s; }
html[lang="en"] .lang [data-lang="en"], html[lang="tr"] .lang [data-lang="tr"] { background: var(--turq); color: #fff; }

.scroll-sun { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.scroll-sun__track { position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--turq), var(--lemon), var(--coral)); border-radius: 0 4px 4px 0; }
.scroll-sun__dot { position: absolute; right: -12px; top: -10px; width: 24px; height: 24px; animation: spin 6s linear infinite; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; padding: 92px var(--gutter) 120px;
  background: linear-gradient(180deg, #8fdcff 0%, #c8f0ff 55%, #fff4cf 100%);
}
.hero__bg {
  position: absolute; inset: -6% -4%; z-index: -2;
  background: url("img/hero_wide.webp") center 40% / cover no-repeat;
  will-change: transform;
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,250,230,.82) 0%, rgba(255,250,230,.55) 40%, rgba(255,250,230,0) 70%); }
.hero__inner { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.hero__emblem { width: clamp(140px, min(15vw, 22vh), 250px); height: auto; margin: 0 0 6px -10px; filter: drop-shadow(0 18px 24px rgba(11,61,92,.35)); animation: bob 5s ease-in-out infinite; }
.hero__title { font-size: clamp(46px, min(6.4vw, 11vh), 100px); color: #fff; -webkit-text-stroke: 0; text-shadow: 0 4px 0 var(--navy), 0 0 0 var(--navy), 3px 3px 0 var(--navy), -3px 3px 0 var(--navy), 3px -2px 0 var(--navy), -3px -2px 0 var(--navy), 0 14px 30px rgba(11,61,92,.45); }
.hero__title .word { display: inline-block; opacity: 0; transform: translateY(40px) rotate(-6deg) scale(.8); animation: wordIn .9s var(--ease-bounce) forwards; }
.hero__title .word:nth-child(2) { animation-delay: .12s; }
.hero__title .word:nth-child(3) { animation-delay: .24s; }
.hero__title .word--accent { color: var(--lemon); }
.hero__tag { margin: 12px 0 6px; font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); color: var(--coral); text-shadow: 0 2px 0 #fff; opacity: 0; animation: fadeUp .8s .45s var(--ease-out) forwards; }
.hero__sub { max-width: 560px; font-size: 1.05em; font-weight: 600; opacity: 0; animation: fadeUp .8s .6s var(--ease-out) forwards; }
.hero .stores { opacity: 0; animation: fadeUp .8s .75s var(--ease-out) forwards; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; opacity: 0; animation: fadeUp .8s .9s var(--ease-out) forwards; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.78); font-weight: 800; font-size: 14px; box-shadow: var(--shadow); }
.chips img { width: 28px; height: 28px; }

.hero__phone { position: relative; justify-self: center; perspective: 1200px; opacity: 0; animation: phoneIn 1.2s .3s var(--ease-out) forwards; }
.phone {
  position: relative; width: clamp(230px, 24vw, 330px); aspect-ratio: 0.48; border-radius: 46px; overflow: hidden;
  background: #0d1a24; padding: 11px;
  box-shadow: inset 0 0 0 2px #2e4555, 0 0 0 3px #0d1a24, var(--shadow-lg);
  transform-style: preserve-3d;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 32%; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #05090c; z-index: 3; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: center 100%; border-radius: 36px; }
.tilt { transition: transform .5s var(--ease-out); transform-style: preserve-3d; }
.sparkle-orbit { position: absolute; inset: -40px; pointer-events: none; animation: spin 18s linear infinite; z-index: 2; }
.sparkle-orbit img { position: absolute; width: 38px; animation: twinkle 2.4s ease-in-out infinite; }
.sparkle-orbit img:nth-child(1) { top: 6%; left: 10%; }
.sparkle-orbit img:nth-child(2) { top: 50%; right: -2%; width: 30px; animation-delay: .8s; }
.sparkle-orbit img:nth-child(3) { bottom: 4%; left: 30%; animation-delay: 1.6s; }

.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fl { position: absolute; width: clamp(54px, 6vw, 96px); filter: drop-shadow(0 12px 14px rgba(11,61,92,.3)); animation: float 7s ease-in-out infinite; will-change: transform; }
.fl--1 { top: 18%; left: 46%; animation-delay: -1s; }
.fl--2 { bottom: 9%; left: 1%; width: clamp(70px, 7vw, 120px); animation-delay: -3s; }
.fl--3 { top: 14%; right: 6%; animation-delay: -2s; }
.fl--4 { bottom: 16%; right: 32%; animation-delay: -4s; }
.fl--5 { bottom: 12%; left: 46%; width: clamp(46px, 4.5vw, 72px); animation-delay: -5s; }
.fl--6 { top: 32%; right: 2%; animation-delay: -2.5s; }
.fl--7 { bottom: 30%; right: 4%; width: clamp(44px, 4vw, 66px); animation-delay: -6s; }

.cloud { position: absolute; z-index: -1; opacity: .92; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(255,255,255,.6)); }
.cloud--a { width: clamp(220px, 26vw, 420px); top: 9%; left: -6%; animation: drift 60s linear infinite; }
.cloud--b { width: clamp(120px, 12vw, 200px); top: 4%; right: 20%; animation: drift 80s linear infinite reverse; }
.cloud--c { width: clamp(100px, 10vw, 160px); top: 40%; left: 30%; opacity: .7; animation: drift 95s linear infinite; }

.scroll-cue { position: absolute; left: 50%; bottom: 96px; width: 58px; transform: translateX(-50%); z-index: 3; animation: cue 2.2s ease-in-out infinite; }
.waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 110px; z-index: 2; }
.wave--1 { fill: rgba(127, 227, 238, .75); animation: wave 9s ease-in-out infinite alternate; transform-origin: center; }
.wave--2 { fill: var(--cream); animation: wave 7s ease-in-out infinite alternate-reverse; }

/* ------------------------------------------------------------ shared heads */
section { position: relative; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 48px; padding: 0 var(--gutter); }
.section-head h2 { color: var(--navy); }
.section-head--light h2, .section-head--light .section-lead { color: #fff; }
.section-head--light h2 { text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 16px; border-radius: 999px;
  background: var(--turq); color: #fff; font: 700 15px/1.4 var(--display); letter-spacing: .6px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.section-lead { margin-top: 16px; font-size: 1.1em; font-weight: 600; opacity: .9; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(44px) scale(.98); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ letter */
.letter { padding: 80px var(--gutter) 120px; display: grid; place-items: center; background: var(--cream); }
.letter__sea { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.letter__bottle { position: absolute; width: clamp(110px, 12vw, 190px); left: 6%; top: 18%; animation: bottle 6s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(11,61,92,.3)); }
.letter__paper {
  position: relative; max-width: 760px; padding: clamp(28px, 4vw, 56px);
  background: #fffdf6; border-radius: 30px; text-align: center;
  box-shadow: 0 2px 0 #f4e5bf, 0 30px 60px -30px rgba(170, 120, 40, .55), inset 0 0 0 2px #f8e9c4;
  background-image: radial-gradient(circle at 10% 10%, rgba(255,217,59,.18), transparent 40%), radial-gradient(circle at 90% 90%, rgba(46,196,214,.14), transparent 40%);
  transform: rotate(-.6deg);
}
.letter__paper h2 { color: var(--navy); margin-bottom: 22px; }
.letter__paper p { font-size: 1.08em; font-weight: 600; }
.letter__key { position: absolute; right: -28px; bottom: -36px; width: 110px; transform: rotate(-28deg); animation: wiggle 4s ease-in-out infinite; }

/* ---------------------------------------------------------------- chapters */
.chapters { padding: 40px 0 120px; background: linear-gradient(180deg, var(--cream), #e6f9fc 30%, #e6f9fc 70%, var(--cream)); }
.chapters__grid { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
.chapters__phone-wrap { position: sticky; top: 90px; height: calc(100vh - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.phone--story { width: clamp(240px, 23vw, 330px); }
.phone--story img { position: absolute; inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.phone--story img.is-active { opacity: 1; transform: none; }
.chapters__dots { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chapters__dots li { width: 12px; height: 12px; border-radius: 99px; background: rgba(11,61,92,.18); transition: width .4s var(--ease-out), background .4s; }
.chapters__dots li.is-active { width: 34px; background: var(--coral); }
.chapters__steps { display: flex; flex-direction: column; gap: 32vh; padding: 14vh 0 22vh; }
.step {
  position: relative; padding: 34px 34px 30px; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); opacity: .35; transform: scale(.94); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), box-shadow .6s;
}
.step.is-active { opacity: 1; transform: none; box-shadow: var(--shadow-lg), inset 0 0 0 3px var(--lemon); }
.step__num { position: absolute; top: -18px; left: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font: 700 22px var(--display); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.step__icon { position: absolute; top: -34px; right: 24px; width: 76px; filter: drop-shadow(0 8px 10px rgba(11,61,92,.3)); }
.step h3 { color: var(--navy); margin: 8px 0 12px; }
.step p { font-weight: 600; }
.step__shot { display: none; }
.step__art { position: relative; height: 120px; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.step__art img { width: 76px; height: auto; filter: drop-shadow(0 8px 8px rgba(11,61,92,.25)); }
.step.is-active .step__art--find img { animation: popFind 3.2s var(--ease-bounce) infinite; }
.step__art--find img:nth-child(2) { animation-delay: .4s !important; }
.step__art--find img:nth-child(3) { animation-delay: .8s !important; }
.step__art--find img:nth-child(4) { animation-delay: 1.2s !important; }
.tidy-slot { width: 86px; height: 86px; border-radius: 22px; border: 3px dashed var(--turq); background: rgba(46,196,214,.12); animation: pulse 1.6s ease-in-out infinite; }
.tidy-item { position: absolute; left: calc(50% - 150px); }
.step.is-active .tidy-item { animation: tidy 3.4s var(--ease-out) infinite; }
.swap { position: relative; width: 96px; height: 110px; }
.swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.swap img:last-child { opacity: 0; }
.step.is-active .swap img:first-child { animation: swapOut 3.6s ease-in-out infinite; }
.step.is-active .swap img:last-child { animation: swapIn 3.6s ease-in-out infinite; }
.swap--d img { animation-delay: 1s !important; }
.step__art--reveal { border-radius: 22px; background: radial-gradient(circle at var(--lx, 50%) 50%, rgba(255,240,180,.95) 0, rgba(130,90,220,.15) 60px, #2a1f6b 120px); animation: lanternSweep 4s ease-in-out infinite alternate; }
.step__art--reveal img { width: 60px; filter: drop-shadow(0 0 12px rgba(255,220,120,.9)); }
.step.is-active .step__art--decor img { animation: decorPop 3.6s var(--ease-bounce) infinite; }
.step__art--decor img:nth-child(2) { animation-delay: .35s !important; }
.step__art--decor img:nth-child(3) { animation-delay: .7s !important; }

/* -------------------------------------------------------------------- hunt */
.play { padding: 110px 0 120px; background: radial-gradient(1200px 500px at 50% 0%, #fff3c4, transparent), var(--cream); }
.hunt { max-width: 1060px; margin: 0 auto; padding: 0 var(--gutter); }
.hunt__scene {
  position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 1; touch-action: manipulation;
  box-shadow: 0 0 0 8px #fff, 0 0 0 12px var(--lemon), var(--shadow-lg); cursor: none; user-select: none; -webkit-user-select: none;
}
.hunt__bg { width: 100%; height: 100%; object-fit: cover; }
.hunt__items { position: absolute; inset: 0; }
.hunt__item {
  position: absolute; transform: translate(-50%, -50%) rotate(var(--rot)); padding: 0; border: 0; background: none; cursor: none;
  width: var(--size); aspect-ratio: 1; display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.hunt__item img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(80,50,20,.35)); }
.hunt__item::after { content: ""; position: absolute; inset: -14%; }
.hunt__item.is-found { pointer-events: none; animation: foundPop .9s var(--ease-bounce) forwards; }
.hunt__item.is-hint::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; border: 4px solid var(--lemon); box-shadow: 0 0 30px var(--lemon); animation: hintRing 1.2s ease-out infinite; }
.lens {
  position: absolute; width: 170px; height: 170px; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 4;
  transform: translate(-50%, -50%); transition: opacity .25s;
  box-shadow: 0 0 0 7px #f4c430, 0 0 0 10px #c48a0e, 0 14px 30px rgba(0,0,0,.35), inset 0 0 22px rgba(255,255,255,.65);
}
.lens__view { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background-repeat: no-repeat; }
.lens::after { content: ""; position: absolute; width: 22px; height: 86px; right: -42px; bottom: -78px; border-radius: 12px; transform: rotate(-42deg); background: linear-gradient(90deg, #c23f2b, #ff7a59 45%, #b8331f); box-shadow: 0 6px 10px rgba(0,0,0,.3); }
.lens.is-on { opacity: 1; }
.hunt__win {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 10px;
  background: radial-gradient(circle, rgba(255,250,225,.92), rgba(255,240,190,.88)); animation: fadeIn .5s ease;
}
.hunt__win img { width: 180px; animation: bob 3s ease-in-out infinite; }
.hunt__win h3 { font-size: clamp(32px, 4vw, 52px); color: var(--coral); }
.hunt__win p { font-weight: 700; max-width: 420px; }
.hunt__bar { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.hunt__targets { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; list-style: none; padding: 12px; margin: 0; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.hunt__targets li { position: relative; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, #e9fbff, #c9f1f8); box-shadow: inset 0 0 0 3px #fff, inset 0 -4px 0 rgba(21,151,201,.18); transition: transform .3s var(--ease-bounce); }
.hunt__targets li img { width: 74%; height: 74%; object-fit: contain; }
.hunt__targets li.is-done { background: linear-gradient(180deg, #fff6c9, #ffe27a); transform: scale(1.06); }
.hunt__targets li.is-done img { opacity: .45; }
.hunt__targets li.is-done::after { content: "✓"; position: absolute; right: -6px; top: -6px; width: 28px; height: 28px; border-radius: 50%; background: #2fbf71; color: #fff; display: grid; place-items: center; font: 700 16px var(--display); box-shadow: 0 4px 8px rgba(0,0,0,.25); animation: popIn .5s var(--ease-bounce); }
.hint-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 14px; border: 0; border-radius: 22px; background: linear-gradient(180deg, #8ff0fb, var(--turq)); color: #fff; font: 700 16px var(--display); cursor: pointer; box-shadow: inset 0 3px 0 rgba(255,255,255,.6), inset 0 -5px 0 #1594a5, var(--shadow); transition: transform .25s var(--ease-bounce); }
.hint-btn img { width: 52px; }
.hint-btn:hover { transform: translateY(-3px) rotate(-3deg); }

/* ------------------------------------------------------------ before/after */
.ba { padding: 40px 0 120px; }
.ba__frame { --pos: 50%; position: relative; max-width: 980px; margin: 0 auto; aspect-ratio: 1; border-radius: 34px; overflow: hidden; box-shadow: 0 0 0 8px #fff, 0 0 0 12px var(--turq), var(--shadow-lg); user-select: none; }
.ba__frame > img, .ba__before img { width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 6px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 18px rgba(0,0,0,.25); pointer-events: none; }
.ba__handle img { position: absolute; top: 50%; left: 50%; width: 86px; transform: translate(-50%, -50%) rotate(-20deg); filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__label { position: absolute; top: 18px; padding: 8px 18px; border-radius: 999px; font: 700 18px var(--display); color: #fff; pointer-events: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.ba__label--l { left: 18px; background: #9aa7b4; }
.ba__label--r { right: 18px; background: var(--coral); }

/* ----------------------------------------------------------------- rooms */
.rooms { padding: 40px 0 110px; overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto 48px; padding: 0 var(--gutter); }
.stat { text-align: center; padding: 22px 10px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.stat b { display: block; font: 700 clamp(36px, 4vw, 58px)/1 var(--display); background: linear-gradient(180deg, var(--sunny), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .8px; opacity: .75; }
.marquee { overflow: hidden; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.room-card { position: relative; width: clamp(200px, 20vw, 280px); aspect-ratio: 1; border-radius: 26px; overflow: hidden; flex: none; box-shadow: 0 0 0 5px #fff, var(--shadow); transition: transform .5s var(--ease-bounce); }
.room-card:hover { transform: translateY(-8px) rotate(-1.5deg) scale(1.05); }
.room-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.room-card:hover img { transform: scale(1.12); }
.room-card figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 16px; background: rgba(255,255,255,.9); font: 700 16px/1.2 var(--display); color: var(--navy); text-align: center; }

/* ----------------------------------------------------------------- world */
.world { height: 420vh; background: linear-gradient(180deg, var(--cream) 0, #57c8ef 6%, #2ab0de 50%, #1d8fcf 100%); }
.world__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; padding-top: max(80px, 9vh); }
.world__sticky::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 2px, transparent 3px) 0 0 / 46px 46px; opacity: .6; animation: drift 120s linear infinite; }
.world .section-head { margin-bottom: 56px; }
.world .section-head h2 { font-size: clamp(32px, 3.8vw, 54px); }
.world__rail { position: relative; overflow: visible; }
.world__track { display: flex; gap: 34px; padding: 10px 8vw 30px; width: max-content; will-change: transform; }
.region {
  position: relative; width: clamp(240px, min(21vw, 35vh), 330px); flex: none; border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.9), 0 30px 50px -24px rgba(0,30,60,.6);
  transform: rotate(var(--r, 0deg)); transition: transform .6s var(--ease-bounce);
}
.region:hover { transform: rotate(0) translateY(-10px) scale(1.03); }
.region__map { aspect-ratio: 1; overflow: hidden; }
.region__map img { object-position: center 60%; }
.region__map img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s linear; }
.region:hover .region__map img { transform: scale(1.12) translateY(-4%); }
.region__body { position: relative; padding: 46px 20px 20px; text-align: center; }
.region__emblem { position: absolute; top: -52px; left: 50%; width: 96px; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); animation: bob 4s ease-in-out infinite; }
.region__num { font: 700 13px var(--display); letter-spacing: 1.4px; text-transform: uppercase; color: var(--turq); }
.region h3 { color: var(--navy); margin: 4px 0 6px; }
.region p { font-size: 15px; font-weight: 600; margin: 0 0 12px; opacity: .85; }
.region__rooms { display: flex; justify-content: center; gap: 6px; }
.region__rooms img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 4px 8px rgba(0,0,0,.2); }
.world__boat { position: absolute; bottom: 1.5vh; left: 0; width: clamp(64px, min(6vw, 9vh), 110px); filter: drop-shadow(0 10px 10px rgba(0,30,60,.35)); animation: boatBob 2.6s ease-in-out infinite; will-change: transform; }

/* ----------------------------------------------------------------- night */
.night { padding: 120px 0 130px; overflow: hidden; background: radial-gradient(1200px 700px at 50% 0%, #5b3fc1 0%, var(--night-2) 40%, var(--night) 100%); color: #fff; }
.night__stars { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 10% 20%, #fff, transparent), radial-gradient(2px 2px at 30% 70%, #ffe9a6, transparent), radial-gradient(1.5px 1.5px at 60% 30%, #fff, transparent), radial-gradient(2px 2px at 80% 60%, #aef3ff, transparent), radial-gradient(1.5px 1.5px at 90% 15%, #fff, transparent), radial-gradient(2px 2px at 45% 85%, #ffe9a6, transparent); background-size: 340px 340px; animation: twinkleBg 6s ease-in-out infinite alternate; opacity: .8; }
.night__field { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.night__grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 18px); padding: clamp(18px, 3vw, 36px); border-radius: 34px; background: rgba(255,255,255,.06); }
.keepsake { aspect-ratio: 1; display: grid; place-items: center; border-radius: 20px; background: radial-gradient(circle, rgba(255,230,160,.18), transparent 70%); }
.keepsake img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,220,130,.55)); transition: transform .5s var(--ease-bounce); }
.keepsake:hover img { transform: scale(1.18) rotate(-6deg); }
.night__dark {
  position: absolute; inset: 0 var(--gutter); border-radius: 34px; pointer-events: none;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), rgba(42,31,107,0) 0, rgba(42,31,107,0) 90px, rgba(42,31,107,.78) 190px, rgba(28,20,78,.94) 320px);
  transition: background .05s;
}
.night__lantern { position: absolute; left: var(--lx, 50%); top: var(--ly, 50%); width: 70px; transform: translate(-50%, -110%); pointer-events: none; filter: drop-shadow(0 0 22px rgba(255,220,120,.95)); animation: swing 2.4s ease-in-out infinite; transform-origin: 50% 0; }

/* -------------------------------------------------------------- features */
.features { padding: 120px 0 110px; background: linear-gradient(180deg, #fff4cf, var(--cream)); }
.cards { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card { padding: 30px 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: left; }
.card img { width: 72px; margin-bottom: 14px; filter: drop-shadow(0 8px 8px rgba(11,61,92,.25)); transition: transform .5s var(--ease-bounce); }
.card:hover img { transform: rotate(-10deg) scale(1.15); }
.card h3 { color: var(--navy); margin-bottom: 8px; }
.card p { margin: 0; font-weight: 600; opacity: .85; }
.cards .card:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3) { transition-delay: .16s; }
.cards .card:nth-child(5) { transition-delay: .08s; }
.cards .card:nth-child(6) { transition-delay: .16s; }

/* -------------------------------------------------------------- download */
.download { padding: 130px var(--gutter) 150px; overflow: hidden; text-align: center; background: radial-gradient(900px 600px at 50% 40%, #fff7c2, #ffd36b 55%, #ffb23e 100%); }
.download__sun { position: absolute; left: 50%; top: 42%; width: min(1100px, 160vw); transform: translate(-50%, -50%); pointer-events: none; opacity: .55; }
.download__sun img { width: 100%; animation: spin 50s linear infinite; }
.download__inner { position: relative; max-width: 760px; margin: 0 auto; }
.download__chest { width: clamp(220px, 26vw, 360px); margin: 0 auto -30px; filter: drop-shadow(0 26px 30px rgba(140,70,0,.35)); animation: bob 4s ease-in-out infinite; }
.download__icon { width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 28px; box-shadow: 0 0 0 5px #fff, 0 20px 30px -12px rgba(140,70,0,.6); position: relative; animation: wiggle 5s ease-in-out infinite; }
.download h2 { color: #fff; text-shadow: 0 4px 0 #c96a00, 3px 3px 0 #c96a00, -3px 3px 0 #c96a00, 0 14px 30px rgba(140,70,0,.45); font-size: clamp(42px, 6vw, 84px); }
.download .section-lead { color: #7a3d00; }

/* ---------------------------------------------------------------- footer */
.footer { padding: 46px var(--gutter) 40px; background: var(--navy); color: #d6ecf6; text-align: center; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 36px; margin-bottom: 18px; }
.footer__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font: 700 22px var(--display); }
.footer__brand b { color: var(--lemon); }
.footer__brand img { border-radius: 12px; }
.footer__by { margin: 0; font-weight: 700; }
.footer__by a { color: var(--lemon); text-decoration: none; border-bottom: 2px solid rgba(255,217,59,.4); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 18px; }
.footer__links a { color: #fff; font-weight: 700; text-decoration: none; opacity: .85; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__legal { font-size: 13px; opacity: .6; margin: 0; }

/* ---------------------------------------------------------------- misc fx */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 220%); opacity: 0; visibility: hidden; padding: 14px 22px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; box-shadow: var(--shadow-lg); transition: transform .45s var(--ease-bounce); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast { transition: transform .45s var(--ease-bounce), opacity .3s, visibility .3s; }
.trail { position: fixed; z-index: 80; width: 18px; height: 18px; pointer-events: none; transform: translate(-50%, -50%); animation: trail .9s ease-out forwards; }

/* ------------------------------------------------------------- keyframes */
@keyframes wordIn { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(80px) rotate(8deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -22px; rotate: 8deg; } }
@keyframes drift { from { transform: translateX(-10vw); } to { transform: translateX(110vw); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0) rotate(-10deg); } 50% { transform: translate(-50%, 14px) rotate(10deg); } }
@keyframes wave { from { transform: translateX(-2%) scaleY(1); } to { transform: translateX(2%) scaleY(1.15); } }
@keyframes bottle { 0%, 100% { transform: translate(0, 0) rotate(-14deg); } 50% { transform: translate(24px, -16px) rotate(10deg); } }
@keyframes wiggle { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes popFind { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.35) rotate(-8deg); filter: drop-shadow(0 0 16px #ffd93b); } 80% { transform: scale(.95); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: .6; } }
@keyframes tidy { 0% { transform: translate(0, 10px) rotate(-30deg); } 45% { transform: translate(150px, -30px) rotate(-6deg) scale(1.1); } 60%, 85% { transform: translate(150px, 0) rotate(0); } 100% { transform: translate(0, 10px) rotate(-30deg); opacity: 0; } }
@keyframes swapOut { 0%, 35% { opacity: 1; filter: grayscale(.2); } 45%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swapIn { 0%, 35% { opacity: 0; transform: scale(.8); } 45% { opacity: 1; transform: scale(1.18); } 55%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes lanternSweep { from { --lx: 15%; background-position: 0 0; } to { --lx: 85%; } }
@keyframes decorPop { 0%, 55%, 100% { transform: translateY(0) scale(1); } 65% { transform: translateY(-16px) scale(1.15); } 75% { transform: translateY(0) scale(.95); } }
@keyframes foundPop { 0% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(1); } 40% { transform: translate(-50%, -60%) rotate(0) scale(1.6); filter: drop-shadow(0 0 18px #fff6a0); } 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; } }
@keyframes hintRing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes boatBob { 0%, 100% { rotate: -4deg; translate: 0 0; } 50% { rotate: 4deg; translate: 0 -8px; } }
@keyframes twinkleBg { from { opacity: .45; } to { opacity: 1; } }
@keyframes swing { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }
@keyframes trail { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, 20px) scale(.2) rotate(120deg); } }

@property --lx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

/* ---------------------------------------------------------------- layout */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .night__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hero { padding: 96px 16px 150px; text-align: center; }
  .hero__bg { background-image: url("img/hero_portrait.webp"); background-position: center 30%; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(255,250,230,.25) 0%, rgba(255,250,230,.78) 45%, rgba(255,250,230,.92) 100%); }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__emblem { margin: 0 auto 4px; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero .stores, .chips { justify-content: center; }
  .hero__phone { order: 2; }
  .fl--1, .fl--5 { display: none; }
  .chapters__grid { grid-template-columns: 1fr; gap: 0; }
  .chapters__phone-wrap { display: none; }
  .chapters__steps { gap: 56px; padding: 30px 0 20px; }
  .step { opacity: 1; transform: none; }
  .step__shot { display: block; width: min(62vw, 230px); aspect-ratio: .48; margin: 18px auto 4px; padding: 7px; border-radius: 30px; background: #0d1a24; box-shadow: var(--shadow-lg); }
  .step__shot img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; border-radius: 24px; }
  .step { padding: 30px 22px 22px; }
  .step__icon { width: 62px; top: -28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .night__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .world { height: auto; }
  .world__sticky { position: relative; height: auto; padding: 90px 0 120px; }
  .world__rail { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .world__rail::-webkit-scrollbar { display: none; }
  .world__track { transform: none !important; padding: 60px 16px 30px; }
  .region { scroll-snap-align: center; width: 78vw; }
  .world__boat { display: none; }
  .hunt__scene { cursor: auto; border-radius: 24px; }
  .hunt__item { cursor: pointer; }
  .hunt__targets { grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 8px; border-radius: 18px; }
  .hunt__targets li { border-radius: 12px; }
  .hunt__targets li.is-done::after { width: 20px; height: 20px; font-size: 12px; right: -4px; top: -4px; }
  .hunt__item { width: calc(var(--size) * 1.45); }
  .hint-btn { padding: 8px 10px; font-size: 14px; }
  .hint-btn img { width: 38px; }
  .lens { width: 120px; height: 120px; }
  .letter__bottle { left: auto; right: 4%; top: 2%; width: 100px; }
  .letter__key { width: 80px; right: -10px; }
  .waves { height: 56px; }
  .scroll-cue { bottom: 64px; width: 46px; }
}
@media (max-width: 520px) {
  .nav { inset: 8px 8px auto; }
  .nav__brand span { display: none; }
  .store { min-width: 0; flex: 1 1 150px; justify-content: center; padding: 12px 14px 10px; gap: 10px; }
  .store b { font-size: 18px; }
  .store svg { width: 26px; height: 26px; }
  .store .soon { font-size: 9px; padding: 2px 8px; }
  .store small { font-size: 10px; }
  .ba__handle img { width: 60px; }
  .ba__label { font-size: 15px; top: 12px; }
  .room-card { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word, .hero__tag, .hero__sub, .hero .stores, .chips, .hero__phone { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
