/* Word Bloom landing — shares the game's teal / cream / gold palette. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --night: #0c2329;
  --deep: #10353b;
  --teal: #17594d;
  --jade: #1f8a6e;
  --cream: #fff8ea;
  --paper: #fdf3df;
  --gold: #e9bf6e;
  --gold-hi: #ffe2a2;
  --gold-lo: #a8742f;
  --rose: #d9547a;
  --rose-hi: #f08aa7;
  --ink: #2b2320;
  --muted: #7d6a5d;
  --display: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --ui: "Nunito", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 28px;
  --shadow: 0 24px 60px -24px rgba(5, 20, 24, .55);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}
:lang(zh) { --display: "PingFang SC", "Noto Serif SC", "Songti SC", serif; --ui: "PingFang SC", "Noto Sans SC", system-ui, sans-serif; }
:lang(ja) { --display: "Hiragino Mincho ProN", "Noto Serif JP", serif; --ui: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
:lang(ar) { --display: "Geeza Pro", "Noto Naskh Arabic", "Amiri", serif; --ui: "Geeza Pro", "Noto Sans Arabic", Tahoma, system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 10px; }

/* ---------- Petal canvas & progress ---------- */
#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold), var(--rose-hi)); }
[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(12, 35, 41, .72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(233, 191, 110, .25);
}
.nav { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav-links { display: none; gap: 26px; margin-inline-start: auto; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: 15px; opacity: .88; position: relative; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-select { position: relative; }
.lang-select select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255, 248, 234, .1); color: var(--cream);
  border: 1px solid rgba(233, 191, 110, .45); border-radius: 999px;
  padding: 8px 34px 8px 14px; font: 800 14px var(--ui); cursor: pointer;
}
[dir="rtl"] .lang-select select { padding: 8px 14px 8px 34px; }
.lang-select::after { content: "▾"; position: absolute; inset-inline-end: 13px; top: 50%; transform: translateY(-52%); pointer-events: none; color: var(--gold); font-size: 12px; }
.lang-select option { color: var(--ink); }
.nav .nav-cta { display: none; }
@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-tools { margin-inline-start: 18px; }
  .nav .nav-cta { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 900 16px var(--ui); letter-spacing: .4px; text-decoration: none; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, #2fa07f, #12604d);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25), 0 0 0 2px var(--gold), 0 12px 24px -10px rgba(0,0,0,.6);
  position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s;
}
:lang(ar) .btn, :lang(zh) .btn, :lang(ja) .btn { text-transform: none; letter-spacing: 0; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--small { --h: 42px; padding: 0 18px; font-size: 13px; }
.btn--gold { color: var(--ink); background: linear-gradient(180deg, var(--gold-hi), #d9a24c); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(120,70,10,.3), 0 0 0 2px #fff3cf, 0 12px 24px -10px rgba(0,0,0,.6); }
.btn--ghost { background: rgba(255,248,234,.1); box-shadow: inset 0 0 0 1.5px rgba(233,191,110,.7); }
@keyframes shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 196px; height: 60px; padding: 0 20px;
  border-radius: 16px; text-decoration: none; color: var(--cream);
  background: rgba(10, 30, 35, .78); border: 1.5px solid rgba(233, 191, 110, .7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .2s, border-color .2s, background .2s;
}
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .6px; opacity: .8; text-transform: uppercase; line-height: 1.2; }
.store strong { display: block; font-family: var(--display); font-size: 20px; line-height: 1.15; }
a.store:hover { transform: translateY(-3px); border-color: var(--gold-hi); background: rgba(16, 53, 59, .9); }
.store.is-soon { opacity: .9; cursor: default; }
.store.is-soon small { color: var(--gold-hi); opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px 0 70px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4%; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 32s ease-in-out infinite alternate; }
.hero-bg .wide { display: none; }
@media (min-width: 900px) { .hero-bg .wide { display: block; } .hero-bg .tall { display: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 70% at 20% 40%, rgba(12,35,41,.25), transparent 60%),
    linear-gradient(180deg, rgba(12,35,41,.55) 0%, rgba(12,35,41,.15) 38%, rgba(12,35,41,.55) 72%, var(--night) 100%);
}
@keyframes kenburns { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-1.5%, -2%, 0); } }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(12,35,41,.6); border: 1px solid rgba(233,191,110,.6);
  color: var(--gold-hi); font-size: 13px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
:lang(ar) .eyebrow, :lang(zh) .eyebrow, :lang(ja) .eyebrow { letter-spacing: 0; text-transform: none; }
.hero-logo { position: relative; width: min(460px, 92%); margin: 22px 0 10px; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,.45)); animation: floaty 6s ease-in-out infinite; }
.hero-logo .gleam {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("/assets/img/logo.png") center / contain no-repeat; mask: url("/assets/img/logo.png") center / contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%) -200% 0 / 220% 100% no-repeat;
  animation: gleam 5s ease-in-out infinite, floaty 6s ease-in-out infinite;
}
@keyframes gleam { 0%, 55% { background-position: 200% 0; } 85%, 100% { background-position: -100% 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.08; margin: 0; letter-spacing: -.3px; }
.hero h1 { font-size: clamp(36px, 6vw, 66px); text-shadow: 0 4px 24px rgba(0,0,0,.45); }
.hero h1 em { font-style: normal; text-shadow: none; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); background: linear-gradient(100deg, var(--gold-hi), var(--gold) 45%, #fff3d0 60%, var(--gold)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: textshine 6s linear infinite; }
@keyframes textshine { to { background-position: -220% 0; } }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); max-width: 560px; margin: 18px 0 28px; color: #fff3df; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; list-style: none; padding: 0; font-weight: 800; font-size: 15px; }
.hero-notes li { display: flex; align-items: center; gap: 8px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hero-notes li::before { content: ""; width: 18px; height: 18px; background: url("/assets/img/sprites/petal-1.png") center / contain no-repeat; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.sunburst {
  position: absolute; width: min(620px, 120vw); aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 162, .32) 0 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: spin 60s linear infinite;
}
.glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 150, .55), transparent 65%); filter: blur(10px); }
@keyframes spin { to { transform: rotate(1turn); } }
.phone {
  position: relative; width: min(300px, 70vw); aspect-ratio: 1206 / 2622;
  border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #3b4a4e, #121a1c 55%, #2b3639);
  box-shadow: 0 0 0 2px rgba(233,191,110,.55), 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.hero .phone { transform: rotate(-4deg); animation: phoneFloat 7s ease-in-out infinite; }
@keyframes phoneFloat { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2.5deg) translateY(-14px); } }
.pippin { position: absolute; width: clamp(130px, 18vw, 190px); inset-inline-start: -2%; bottom: 4%; filter: drop-shadow(0 18px 20px rgba(0,0,0,.4)); animation: bob 3.2s ease-in-out infinite; z-index: 2; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
.float-flower { position: absolute; width: 74px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); animation: drift 9s ease-in-out infinite; z-index: 2; }
.float-flower.f1 { top: 6%; inset-inline-end: 4%; }
.float-flower.f2 { top: 38%; inset-inline-end: -2%; width: 58px; animation-delay: -3s; }
.float-flower.f3 { top: 14%; inset-inline-start: 6%; width: 52px; animation-delay: -5s; }
@keyframes drift { 0%, 100% { transform: translate(0,0) rotate(0); } 33% { transform: translate(8px,-14px) rotate(10deg); } 66% { transform: translate(-6px,8px) rotate(-8deg); } }
.scroll-cue { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; opacity: .85; text-decoration: none; }
.scroll-cue span { width: 26px; height: 42px; border: 2px solid var(--gold); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-hi); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin: 16px 0 14px; }
.section-head p { margin: 0; color: #ead9bd; font-size: 18px; }

.paper { background: radial-gradient(120% 80% at 50% 0%, #fff9ec, var(--paper) 60%, #f3e2c2); color: var(--ink); }
.paper .eyebrow { background: rgba(23, 89, 77, .08); color: var(--teal); border-color: rgba(23, 89, 77, .35); backdrop-filter: none; }
.paper .section-head p { color: var(--muted); }
.wave { position: absolute; inset-inline: 0; height: 70px; pointer-events: none; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave--top { top: -69px; }
.wave--bottom { bottom: -69px; transform: scaleY(-1); }

/* Story */
.story-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .story-grid { grid-template-columns: .9fr 1.1fr; gap: 70px; } }
.story-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
@media (min-width: 900px) { .story-stage { position: sticky; top: 110px; } }
.story-stage .ring { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fde9c3 55%, rgba(253, 233, 195, 0) 72%); }
.story-stage .orbit { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.story-stage .orbit img { position: absolute; width: 64px; filter: drop-shadow(0 8px 10px rgba(80,50,20,.25)); }
.story-stage .orbit img:nth-child(1) { top: 2%; left: 44%; }
.story-stage .orbit img:nth-child(2) { top: 44%; right: 0; }
.story-stage .orbit img:nth-child(3) { bottom: 2%; left: 44%; }
.story-stage .orbit img:nth-child(4) { top: 44%; left: 0; }
.story-stage .mascot { position: relative; width: 62%; display: grid; }
.story-stage .mascot img { grid-area: 1 / 1; width: 100%; opacity: 0; transform: scale(.85) translateY(14px); transition: opacity .6s, transform .7s cubic-bezier(.34, 1.56, .64, 1); filter: drop-shadow(0 24px 22px rgba(80,50,20,.3)); }
.story-stage .mascot img.is-on { opacity: 1; transform: none; }
.chapters { display: grid; gap: 22px; }
.chapter {
  position: relative; padding: 30px 30px 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(168, 116, 47, .25);
  box-shadow: 0 20px 40px -28px rgba(80, 50, 20, .55);
  transition: transform .5s, box-shadow .5s, background .5s;
}
.chapter.is-active { background: #fff; transform: translateX(8px); box-shadow: 0 30px 50px -28px rgba(80, 50, 20, .6); }
[dir="rtl"] .chapter.is-active { transform: translateX(-8px); }
.chapter .num { font-family: var(--display); font-size: 15px; font-weight: 900; color: var(--rose); letter-spacing: 1px; }
.chapter h3 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 10px; color: var(--teal); }
.chapter p { margin: 0; color: #4a3d35; font-size: 17px; }

/* Play demo */
.play { background: radial-gradient(90% 70% at 50% 0%, #17473f, var(--deep) 55%, var(--night)); overflow: hidden; }
.play-grid { display: grid; gap: 50px; align-items: center; }
@media (min-width: 900px) { .play-grid { grid-template-columns: 1fr 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 20px; border-radius: 22px; background: rgba(255,248,234,.06); border: 1px solid rgba(233,191,110,.22); }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font: 900 26px var(--display); color: var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), #d9a24c); box-shadow: inset 0 -3px 0 rgba(120,70,10,.3);
}
.steps h3 { font-size: 22px; margin: 2px 0 4px; }
.steps p { margin: 0; color: #e7d8bf; font-size: 16px; }

.demo { position: relative; padding: 26px; border-radius: 34px; background: linear-gradient(180deg, rgba(23, 69, 72, .92), rgba(10, 34, 40, .96)); border: 1.5px solid rgba(233,191,110,.5); box-shadow: var(--shadow); max-width: 460px; margin-inline: auto; width: 100%; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.demo-top p { margin: 0; font-weight: 900; font-size: 15px; color: var(--gold-hi); }
.slots { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; min-height: 52px; }
.slot { width: 46px; height: 52px; border-radius: 12px; background: #fff8ea; color: transparent; display: grid; place-items: center; font: 900 24px var(--ui); box-shadow: inset 0 -3px 0 rgba(120,90,60,.18); transition: background .3s, color .3s, transform .4s; }
.slot.is-filled { background: linear-gradient(180deg, var(--rose-hi), var(--rose)); color: #fff; animation: pop .45s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes pop { from { transform: scale(.4); } to { transform: none; } }
.board { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; border-radius: 24px; background: #0b252b; touch-action: none; user-select: none; -webkit-user-select: none; }
.tile {
  aspect-ratio: 1; border-radius: 18px; border: 0; cursor: pointer;
  font: 900 clamp(28px, 7vw, 40px) var(--ui); color: var(--ink);
  background: linear-gradient(180deg, #fffdf8, #f3e6cf);
  box-shadow: inset 0 -5px 0 rgba(150,110,70,.22), 0 6px 12px -6px rgba(0,0,0,.6);
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.tile.is-on { background: linear-gradient(180deg, #ffe7a6, var(--gold)); transform: scale(.94); box-shadow: inset 0 -4px 0 rgba(150,90,20,.35), 0 0 0 3px var(--gold-hi), 0 0 22px rgba(255, 220, 140, .7); }
.tile.is-done { background: linear-gradient(180deg, var(--rose-hi), var(--rose)); color: #fff; }
.tile.is-hint { animation: hint 1.4s ease-in-out infinite; }
@keyframes hint { 0%, 100% { box-shadow: inset 0 -5px 0 rgba(150,110,70,.22), 0 0 0 0 rgba(255,226,162,0); } 50% { box-shadow: inset 0 -5px 0 rgba(150,110,70,.22), 0 0 0 4px rgba(255,226,162,.9); } }
.board.is-wrong { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.board svg polyline { fill: none; stroke: rgba(255, 226, 162, .9); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255,210,120,.9)); }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.demo-pippin { width: 74px; transition: transform .4s; }
.demo-pippin.is-happy { animation: hop .7s cubic-bezier(.34,1.56,.64,1); }
@keyframes hop { 40% { transform: translateY(-26px) scale(1.06); } }
.demo-msg { flex: 1; margin: 0; padding: 12px 16px; border-radius: 18px; background: var(--cream); color: var(--ink); font-weight: 800; font-size: 15px; min-height: 48px; display: flex; align-items: center; }

/* Gardens */
.gardens { overflow: hidden; }
.garden-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px var(--gutter) 40px;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
@media (min-width: 1200px) { .garden-rail { padding-inline: calc((100vw - var(--max)) / 2); } }
.garden { scroll-snap-align: center; text-decoration: none; display: grid; gap: 16px; perspective: 900px; }
.garden .phone { width: 100%; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s; transform-style: preserve-3d; }
.garden .phone img + img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; transition: opacity .6s; }
.garden:hover .phone img + img, .garden:focus-visible .phone img + img, .garden.is-peek .phone img + img { opacity: 1; }
.garden:hover .phone { box-shadow: 0 0 0 2px var(--gold-hi), 0 50px 80px -30px rgba(0,0,0,.85), 0 0 50px rgba(255, 210, 120, .25); }
.garden.is-current .phone { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 0 9px rgba(233,191,110,.25), 0 40px 80px -30px rgba(0,0,0,.8); }
.garden figcaption { text-align: center; }
.garden figcaption strong { display: block; font-family: var(--display); font-size: 20px; line-height: 1.2; }
.garden figcaption span { font-size: 14px; color: var(--gold-hi); font-weight: 800; }
.rail-hint { text-align: center; color: #d9c7a8; font-size: 14px; margin-top: -10px; }

/* Features */
.feature-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid rgba(168, 116, 47, .22); box-shadow: 0 24px 44px -32px rgba(80, 50, 20, .6);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.feature:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(80, 50, 20, .6); }
.feature::after { content: ""; position: absolute; width: 180px; height: 180px; inset-inline-end: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(233,191,110,.35), transparent 70%); }
.feature img { width: 78px; height: 78px; object-fit: contain; margin-bottom: 14px; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.feature:hover img { transform: rotate(-8deg) scale(1.12); }
.feature h3 { font-size: 24px; color: var(--teal); margin-bottom: 8px; }
.feature p { margin: 0; color: #5b4c42; font-size: 16px; }

/* Numbers */
.numbers { background: linear-gradient(90deg, #12403a, #1b5a4c 50%, #12403a); border-block: 1px solid rgba(233,191,110,.4); }
.numbers ul { list-style: none; margin: 0; padding: 46px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; text-align: center; }
@media (min-width: 900px) { .numbers ul { grid-template-columns: repeat(4, 1fr); } }
.numbers strong { display: block; font-family: var(--display); font-size: clamp(40px, 4.6vw, 60px); line-height: 1; color: var(--gold-hi); text-shadow: 0 4px 18px rgba(0,0,0,.35); }
.numbers span { font-weight: 800; color: #e8dcc5; }

/* Flower marquee */
.marquee { overflow: hidden; padding: 28px 0; background: var(--night); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 38s linear infinite; }
.marquee img { width: 72px; height: 72px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(90px, 12vw, 150px) 0; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 45%, rgba(12,35,41,.25), rgba(12,35,41,.82)); }
.cta-stage { position: relative; display: grid; place-items: center; height: 280px; margin-bottom: 10px; }
.cta-stage .sunburst { width: 520px; }
.cta-stage img { position: relative; width: 230px; filter: drop-shadow(0 22px 24px rgba(0,0,0,.45)); animation: bob 3.4s ease-in-out infinite; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.cta p { max-width: 620px; margin: 16px auto 30px; font-size: 19px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cta .stores { justify-content: center; }

/* Footer */
.site-footer { background: #081a1f; padding: 60px 0 40px; font-size: 15px; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.site-footer .brand img { height: 46px; }
.publisher { margin: 14px 0 0; color: #c9b99c; }
.publisher a { color: var(--gold-hi); font-weight: 900; text-decoration: none; }
.publisher a:hover { text-decoration: underline; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.foot-langs a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(233,191,110,.35); text-decoration: none; font-weight: 800; font-size: 14px; }
.foot-langs a[aria-current="page"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.foot-langs a:hover { border-color: var(--gold-hi); }
.copy { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: #8f8574; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Language suggestion */
.lang-hint {
  position: fixed; z-index: 70; inset-inline: 16px; bottom: 16px; max-width: 420px; margin-inline-start: auto;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px;
  background: rgba(255, 248, 234, .96); color: var(--ink); box-shadow: var(--shadow);
  transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.lang-hint.is-open { transform: none; }
.lang-hint p { margin: 0; flex: 1; font-size: 14px; font-weight: 800; }
.lang-hint .x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.from-side { transform: translateX(-46px); }
[dir="rtl"] .reveal.from-side { transform: translateX(46px); }
.reveal.zoom { transform: scale(.88); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  #petals { display: none; }
}

/* Above-the-fold entrance runs on load, independent of scroll observers. */
.rise { animation: rise 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
.rise.zoom { animation-name: riseZoom; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes riseZoom { from { opacity: 0; transform: scale(.9); } }
@media (max-width: 899px) { .scroll-cue { display: none; } }
@media (max-width: 560px) { .stores .store { flex: 1 1 150px; min-width: 0; padding: 0 14px; } .store strong { font-size: 17px; } }
main { overflow-x: clip; }
.btn { white-space: nowrap; }
