:root {
  --pink: #fbe4e9; --pink-2: #f6d6de; --ink: #6b3f45; --cream: #fff7ef;
  --wood: #d9a273; --wood-2: #c98f63; --wood-line: #b97a52; --wood-hi: #e8b98c; --wood-d: #8f5d43;
  --heart: #d9536f;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pink); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.7;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
h1, h2, figcaption, .tagline, .brand span { font-family: var(--display); font-weight: var(--dw); }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }

html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ja"] body, html[lang^="zh"] body { line-break: strict; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] .kicker, html[lang="ja"] .tagline, html[lang="ja"] .lead, html[lang="ja"] figcaption { word-break: auto-phrase; }
body { overflow-wrap: break-word; }

.hero, .gallery, .close { background: repeating-linear-gradient(90deg, var(--pink) 0 24px, var(--pink-2) 24px 32px); }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 18px; background: var(--cream); border-bottom: 4px solid var(--wood-2);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 2px var(--wood-d); flex: none; }
.brand span { font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.langpick { position: relative; font-size: .85rem; flex: none; }
.langpick summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; line-height: 1.3;
  border: 2px solid var(--wood-2); color: var(--ink); background: var(--cream);
}
.langpick summary span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick[open] summary { background: var(--pink-2); }
.langpick ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  min-width: 13em; max-height: 70vh; overflow: auto; border-radius: 16px;
  background: var(--cream); color: var(--ink); box-shadow: 0 0 0 3px var(--wood-d), 0 16px 30px rgba(107, 63, 69, .3);
}
.langpick li a, .langpick li span { display: block; padding: 6px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.langpick li a:hover { background: var(--pink); }
.langpick li [aria-current] { background: var(--pink-2); font-weight: 700; }

.hero { position: relative; overflow: hidden; padding: 44px 0 0; }
.hero .wrap { position: relative; display: grid; gap: 30px; align-items: center; padding-bottom: 8px; }
.copy { position: relative; z-index: 2; }
.kicker {
  display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px; font-size: .92rem; font-weight: 700; line-height: 1.45;
  background: var(--cream); border: 2px solid var(--wood-2); color: var(--ink);
}
.hero h1, .close h2, figcaption {
  color: var(--ink); -webkit-text-stroke: .13em var(--cream); paint-order: stroke fill;
}
.hero h1 { margin: 0 0 4px; font-size: clamp(2.6rem, 6.6vw, 4.8rem); line-height: 1.12; letter-spacing: -.005em; }
.tagline { margin: 10px 0 12px; font-size: clamp(1.3rem, 2.7vw, 1.75rem); line-height: 1.3; }
.lead { margin: 0 0 24px; max-width: 32em; font-size: 1.06rem; }
html[lang="th"] .hero h1, html[lang="th"] .tagline, html[lang="th"] figcaption { line-height: 1.45; }
html[lang="vi"] .hero h1, html[lang="vi"] .tagline, html[lang="vi"] figcaption { line-height: 1.32; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stores a { display: inline-block; border-radius: 10px; transition: transform .2s; }
.stores a:hover { transform: translateY(-3px); }
.stores img { display: block; height: 52px; width: auto; }
.stores > img { box-sizing: content-box; }

.frame {
  position: relative; border: 10px solid var(--wood-2); border-radius: 28px; background: var(--wood-2);
  box-shadow: 0 0 0 3px var(--wood-d), 0 10px 0 3px rgba(107, 63, 69, .22);
}
.frame video, .frame img { display: block; width: 100%; height: auto; border-radius: 18px; }
.stage { position: relative; width: min(290px, 66vw); margin: 0 auto 12px; }
.stage .sit { position: absolute; left: -64px; bottom: -10px; width: 96px; height: 96px; z-index: 3; }

.floor {
  position: relative; height: 54px; margin-top: 58px;
  background: repeating-linear-gradient(90deg, var(--wood) 0 112px, var(--wood-2) 112px 116px), var(--wood);
  border-top: 8px solid var(--wood-line); box-shadow: inset 0 8px 0 var(--wood-hi);
}
.cats { position: absolute; left: 0; right: 0; bottom: calc(100% - 4px); display: flex; justify-content: center; gap: 22px; }
.cats img { width: 64px; height: 64px; animation: bob 2.6s steps(2, jump-none) infinite; animation-delay: calc(var(--i) * -.35s); }
.cats img:nth-child(even) { transform: scaleX(-1); animation-name: bob-flip; }

.intro { background: var(--cream); padding: 40px 0 46px; text-align: center; border-bottom: 4px solid var(--wood-2); }
.intro .wrap { max-width: 46em; font-size: 1.1rem; }
.intro p { margin: .5em 0; }

.gallery { padding: 56px 0 64px; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(66vw, 250px); gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 26px 26px; scrollbar-width: thin;
}
.rail figure { position: relative; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; }
.rail figcaption {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  min-height: 2.7em; margin-bottom: 14px; text-align: center; font-size: 1.22rem; line-height: 1.25;
}
.rail .frame { border-width: 8px; border-radius: 24px; }
.rail .frame img { border-radius: 16px; }
.rail .sit { position: absolute; left: -10px; bottom: -12px; width: 64px; height: 64px; }

.features {
  padding: 64px 0 72px; border-top: 8px solid var(--wood-line);
  background: repeating-linear-gradient(90deg, var(--wood) 0 112px, var(--wood-2) 112px 116px), var(--wood);
}
.grid { display: grid; gap: 22px; }
.card {
  background: var(--cream); color: var(--ink); border-radius: 22px; padding: 22px 24px 16px;
  box-shadow: 0 0 0 3px var(--wood-d), 0 8px 0 3px rgba(107, 63, 69, .22);
}
.card h2 { margin: 0 0 10px; font-size: clamp(1.25rem, 2.4vw, 1.5rem); line-height: 1.3; color: var(--ink); }
.card p { margin: .45em 0; }
.card ul { margin: .5em 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 24px; margin: .35em 0; }
.card li::before, .outro li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 12px; background: var(--heart);
  clip-path: polygon(14.29% 0, 42.86% 0, 42.86% 16.67%, 57.14% 16.67%, 57.14% 0, 85.71% 0, 85.71% 16.67%, 100% 16.67%,
    100% 50%, 85.71% 50%, 85.71% 66.67%, 71.43% 66.67%, 71.43% 83.33%, 57.14% 83.33%, 57.14% 100%, 42.86% 100%,
    42.86% 83.33%, 28.57% 83.33%, 28.57% 66.67%, 14.29% 66.67%, 14.29% 50%, 0 50%, 0 16.67%, 14.29% 16.67%);
}

.close { position: relative; overflow: hidden; text-align: center; padding: 64px 0 0; }
.close .wrap { max-width: 44em; }
.app-icon {
  width: 112px; height: 112px; border-radius: 26px;
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 8px var(--wood-d), 0 9px 0 6px rgba(107, 63, 69, .22);
}
.close h2 { margin: 22px 0 10px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
html[lang="th"] .close h2 { line-height: 1.45; }
.outro p { font-size: 1.08rem; margin: .5em 0; }
.outro ul { display: inline-block; margin: .4em auto; padding: 0; list-style: none; text-align: left; }
.outro li { position: relative; padding-left: 24px; margin: .3em 0; }
.close .stores { justify-content: center; margin: 26px 0 0; }
.floor.end { margin-top: 92px; }

footer { padding: 26px 22px 40px; text-align: center; font-size: .9rem; color: var(--cream); background: var(--wood-d); }
footer a { color: var(--cream); }
.foot-langs { margin-top: 12px; line-height: 2; }
.foot-langs [aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 760px) {
  .grid { display: block; columns: 2; column-gap: 22px; }
  .card { break-inside: avoid; margin-bottom: 22px; }
}
@media (min-width: 920px) {
  .hero { padding-top: 64px; }
  .hero .wrap { grid-template-columns: 1.2fr .8fr; }
  .stage { width: 300px; }
}
@media (min-width: 1100px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible;
          max-width: 1000px; margin: 0 auto; column-gap: 64px; row-gap: 56px; }
  .rail .frame { width: 80%; margin: 0 auto; }
  .rail .sit { left: calc(10% - 40px); width: 96px; height: 96px; }
}
@media (max-width: 919px) {
  .hero .copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
}
@media (max-width: 600px) {
  .cats { gap: 14px; }
  .cats img:nth-child(n+6) { display: none; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .stores img { height: 44px; }
  .stores { gap: 12px; }
  .brand span { max-width: 46vw; }
}

@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes bob-flip { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
