@font-face {
  font-family: 'Mochiy Pop One';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/mochiy-pop-one-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/mali-thai-600-normal.woff2) format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/mali-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/mali-thai-700-normal.woff2) format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: 'Mali';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/mali-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/nunito-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/nunito-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/nunito-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/nunito-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/nunito-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/nunito-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/nunito-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/anuphan-thai-400-normal.woff2) format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/anuphan-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/anuphan-thai-500-normal.woff2) format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/anuphan-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/anuphan-thai-600-normal.woff2) format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/anuphan-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/anuphan-thai-700-normal.woff2) format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC;
}
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/anuphan-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Layout: the hero splits the welcome copy (left) from a cloud-topped workbench (right) where the
   mochi sits; quieter content bands follow on a 1180px column. Pastel "dessert shop" palette,
   with a "night bakery" dark theme. */
:root {
  --bg: #fff6fa;            /* strawberry milk */
  --bg-deep: #f3eeff;       /* taro milk, lower sky */
  --surface: #ffffff;
  --surface-soft: #fff0f6;
  --item-bg: #fffafc;
  --ink: #3e2542;           /* berry cocoa */
  --ink-soft: #745c76;
  --line: #f1d6e4;
  --berry: #ff76aa;
  --berry-hi: #ffa0c7;
  --berry-rgb: 255 118 170;
  --berry-strong: #b8296a;
  --berry-tint: #ffe1ee;
  --berry-wash: #fff3f8;
  --matcha: #63c9a2;
  --matcha-strong: #1d7553;
  --matcha-tint: #dcf5ea;
  --taro: #a98bff;
  --taro-strong: #5a3dcc;
  --taro-tint: #ede6ff;
  --custard: #ffd765;
  --custard-ink: #7a5300;
  --custard-tint: #fff3c9;
  --soda: #8fd2ff;
  --soda-ink: #1f5f8c;
  --soda-tint: #e1f3ff;
  --danger: #c4314f;
  --danger-ink: #8e1f37;
  --danger-tint: #ffe3e9;
  --cloud: #ffffff;
  --cloud-icon: #ffd1e3;
  --sky-cloud: #ffffff;
  --twinkle: #ffc4dc;
  --drop-bg: #fff8fb;
  --drop-line: #f2bfd6;
  --nav-bg: rgb(255 246 250 / 0.84);
  --shadow-rgb: 190 70 130;
  --focus: #7c5cf2;
  --on-berry: #3a0f27;
  --toast-bg: #3e2542;
  --toast-ink: #fff6fa;
  /* the mochi and the candy stickers keep their colours in both themes */
  --mochi: #ffffff;
  --mochi-mid: #fff6fa;
  --mochi-shade: #ffe1ed;
  --mochi-line: #efc4d7;
  --mochi-ink: #3e2542;
  --cheek: #ffb0c8;
  --berry-red: #ff5c8d;
  --leaf: #5cc893;
  --candy-pink: #ffc3da;
  --candy-cream: #fff1d6;
  --candy-custard: #ffdb75;
  --candy-taro: #cbbaff;
  --candy-mint: #a8e8cf;
  --candy-sky: #c4e8ff;
  --candy-line: #ef8fae;
  --paper: #ffffff;
  --brand-pix: #f24f88;

  --font-display: "Mochiy Pop One", "Mali", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", "Anuphan", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Mali", "Nunito", ui-rounded, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-hero: clamp(2.05rem, 1.3rem + 2.9vw, 3.35rem);
  --fs-h2: clamp(1.55rem, 1.15rem + 1.4vw, 2.2rem);
  --fs-lead: 1.1rem;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1631; --bg-deep: #251c45; --surface: #2a2147; --surface-soft: #352a5a; --item-bg: #2f2550;
    --ink: #fff0f7; --ink-soft: #cdbad9; --line: #463a6e;
    --berry: #ff86b6; --berry-hi: #ffadd0; --berry-rgb: 255 134 182; --berry-strong: #ff9fc8; --berry-tint: #4b2a52; --berry-wash: #3a2754;
    --matcha: #6fd6ae; --matcha-strong: #91e8c6; --matcha-tint: #1f4140;
    --taro: #b9a0ff; --taro-strong: #cfbdff; --taro-tint: #382d68;
    --custard: #ffdc7f; --custard-ink: #ffe39a; --custard-tint: #4a3d26;
    --soda: #93d5ff; --soda-ink: #b8e3ff; --soda-tint: #213b58;
    --danger: #ff8aa0; --danger-ink: #ffc2cd; --danger-tint: #4d2436;
    --cloud: #2d244d; --cloud-icon: #5a4787; --sky-cloud: #3a2f66; --twinkle: #ffe7a3;
    --drop-bg: #2f2552; --drop-line: #5d4a8f; --nav-bg: rgb(28 22 49 / 0.84);
    --shadow-rgb: 6 2 18; --focus: #c9b6ff; --on-berry: #2a0a1d; --toast-bg: #fff0f7; --toast-ink: #2a1d3d;
    --mochi-mid: #fff3f8; --mochi-shade: #f9d6e6; --paper: #fdf8fb; --brand-pix: #ff8fbc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1631; --bg-deep: #251c45; --surface: #2a2147; --surface-soft: #352a5a; --item-bg: #2f2550;
  --ink: #fff0f7; --ink-soft: #cdbad9; --line: #463a6e;
  --berry: #ff86b6; --berry-hi: #ffadd0; --berry-rgb: 255 134 182; --berry-strong: #ff9fc8; --berry-tint: #4b2a52; --berry-wash: #3a2754;
  --matcha: #6fd6ae; --matcha-strong: #91e8c6; --matcha-tint: #1f4140;
  --taro: #b9a0ff; --taro-strong: #cfbdff; --taro-tint: #382d68;
  --custard: #ffdc7f; --custard-ink: #ffe39a; --custard-tint: #4a3d26;
  --soda: #93d5ff; --soda-ink: #b8e3ff; --soda-tint: #213b58;
  --danger: #ff8aa0; --danger-ink: #ffc2cd; --danger-tint: #4d2436;
  --cloud: #2d244d; --cloud-icon: #5a4787; --sky-cloud: #3a2f66; --twinkle: #ffe7a3;
  --drop-bg: #2f2552; --drop-line: #5d4a8f; --nav-bg: rgb(28 22 49 / 0.84);
  --shadow-rgb: 6 2 18; --focus: #c9b6ff; --on-berry: #2a0a1d; --toast-bg: #fff0f7; --toast-ink: #2a1d3d;
  --mochi-mid: #fff3f8; --mochi-shade: #f9d6e6; --paper: #fdf8fb; --brand-pix: #ff8fbc;
  color-scheme: dark;
}
:root[lang="th"] { --font-display: "Mali", "Mochiy Pop One", ui-rounded, system-ui, sans-serif; }

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.62 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:root[lang="th"] body { line-height: 1.75; }
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--nav-bg);
}
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--berry-strong); text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
::selection { background: var(--berry-tint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i18n-wait [data-i18n] { visibility: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: .6em 1em; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }
.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* ───────── sky ───────── */
.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 560px at 8% -6%, var(--berry-tint), transparent 62%),
    radial-gradient(900px 520px at 100% 4%, var(--taro-tint), transparent 58%),
    radial-gradient(800px 500px at 40% 110%, var(--soda-tint), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.cloud { position: absolute; left: 0; color: var(--sky-cloud); height: auto; aspect-ratio: 2 / 1; opacity: .85; animation: drift linear infinite; will-change: transform; }
.c1 { top: 9%; width: 230px; animation-duration: 150s; animation-delay: -40s; }
.c2 { top: 30%; width: 150px; animation-duration: 110s; animation-delay: -85s; opacity: .7; }
.c3 { top: 56%; width: 280px; animation-duration: 190s; animation-delay: -10s; opacity: .55; }
.c4 { top: 74%; width: 170px; animation-duration: 130s; animation-delay: -120s; opacity: .65; }
.c5 { top: 18%; width: 120px; animation-duration: 95s; animation-delay: -60s; opacity: .6; }
@keyframes drift { from { transform: translateX(-35vw); } to { transform: translateX(120vw); } }
.twinkle { position: absolute; width: 12px; height: 12px; background: var(--twinkle); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 4s ease-in-out infinite; }
.t1 { top: 14%; left: 46%; } .t2 { top: 38%; left: 6%; animation-delay: -1.2s; width: 9px; height: 9px; }
.t3 { top: 62%; left: 88%; animation-delay: -2.1s; } .t4 { top: 82%; left: 30%; animation-delay: -3s; width: 8px; height: 8px; }
.t5 { top: 24%; left: 92%; animation-delay: -.6s; width: 9px; height: 9px; } .t6 { top: 48%; left: 58%; animation-delay: -2.6s; width: 7px; height: 7px; }
@keyframes twinkle { 0%, 100% { transform: scale(.5) rotate(0deg); opacity: .35; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6em 1.25em; border: 0; border-radius: 999px;
  font: 800 1rem/1.15 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease-pop), box-shadow .22s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.97); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--berry-hi), var(--berry));
  color: var(--on-berry);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .5), inset 0 -3px 0 rgb(0 0 0 / .08), 0 12px 22px -12px rgb(var(--berry-rgb) / .95);
}
.btn-primary:hover:not([disabled]) { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgb(255 255 255 / .5), inset 0 -3px 0 rgb(0 0 0 / .08), 0 16px 26px -12px rgb(var(--berry-rgb) / 1); }
.btn-soft { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 8px 18px -14px rgb(var(--shadow-rgb) / .6); }
.btn-soft:hover:not([disabled]) { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--berry), 0 12px 22px -14px rgb(var(--shadow-rgb) / .7); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover:not([disabled]) { background: var(--surface-soft); color: var(--ink); }
.btn-sm { min-height: 38px; padding: .45em 1em; font-size: .9rem; }
.btn .i { width: 1.1em; height: 1.1em; }
.btn-soft .i { color: var(--berry-strong); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
  transition: transform .22s var(--ease-pop), background-color .2s;
}
.icon-btn:hover { transform: rotate(-8deg) scale(1.06); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .i { width: 20px; height: 20px; }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 25;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1.5px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgb(var(--shadow-rgb) / .7); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mochi { width: 42px; height: 40px; transition: transform .4s var(--ease-pop); }
.brand:hover .brand-mochi { transform: rotate(-10deg) translateY(-2px); }
.wordmark { font: 400 1.2rem/1 "Mochiy Pop One", var(--font-display); letter-spacing: -.01em; }
.wordmark .wm-pix { color: var(--brand-pix); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: .45em .85em; border-radius: 999px; color: var(--ink-soft); font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s; }
.nav-links a:hover { background: var(--surface-soft); color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex; padding: 3px; border: 0; border-radius: 999px; background: var(--surface-soft); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.lang-opt { min-width: 38px; padding: .35em .5em; border-radius: 999px; font-weight: 800; font-size: .82rem; color: var(--ink-soft); transition: background-color .25s, color .25s; }
.lang-opt.is-on { background: var(--surface); color: var(--berry-strong); box-shadow: 0 4px 10px -6px rgb(var(--shadow-rgb) / .8); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}

/* ───────── hero ───────── */
.hero { padding-block: clamp(20px, 4vw, 52px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.hero-copy { position: relative; padding-top: clamp(12px, 6vw, 96px); }
.hero-title { font: 400 var(--fs-hero)/1.14 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
:root[lang="th"] .hero-title { font-weight: 700; line-height: 1.36; letter-spacing: 0; }
.hero-sub { margin-top: 18px; font-size: var(--fs-lead); color: var(--ink-soft); max-width: 40ch; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.pt-ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; transform: rotate(-4deg); }
.pt-ico .i { width: 21px; height: 21px; }
.pt-berry { background: var(--berry-tint); color: var(--berry-strong); }
.pt-custard { background: var(--custard-tint); color: var(--custard-ink); transform: rotate(3deg); }
.pt-taro { background: var(--taro-tint); color: var(--taro-strong); }
.sticker { position: absolute; z-index: -1; pointer-events: none; animation: floaty 7s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgb(var(--shadow-rgb) / .18)); }
.s-macaron { width: 66px; height: 66px; top: 0; right: 4%; }
.s-star { width: 40px; height: 40px; top: 14px; left: 40%; animation-delay: -2.5s; }
.s-candy { width: 60px; height: 60px; bottom: -58px; left: 38%; animation-delay: -4.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(5deg); } }
.dk-pink { fill: var(--candy-pink); }
.dk-cream { fill: var(--candy-cream); }
.dk-line { fill: none; stroke: var(--candy-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dk-wrap { fill: var(--candy-taro); }
.dk-custard { fill: var(--candy-custard); }
.dk-stripe { fill: none; stroke: #ff8db4; stroke-width: 3.2; stroke-linecap: round; }
.dk-stick { fill: var(--candy-cream); }
.dk-taro { fill: var(--candy-taro); }
.dk-swirl { fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; }
.dk-heart { fill: var(--candy-pink); }

/* ───────── workbench ───────── */
.bench-wrap { position: relative; padding-top: 104px; min-width: 0; }
.mochi-spot { position: absolute; top: -40px; right: clamp(8px, 5%, 40px); z-index: 4; display: flex; align-items: flex-end; gap: 6px; animation: drop-in 1s var(--ease-pop) both .1s; }
@keyframes drop-in { 0% { transform: translateY(-46px) scale(.85); } 60% { transform: translateY(4px) scale(1.04, .95); } 100% { transform: none; } }
.mochi-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 40px; }
.mochi { display: block; width: 150px; height: auto; overflow: visible; }
.bubble {
  position: relative; margin-bottom: 64px; max-width: 236px; text-wrap: balance;
  padding: .55em .95em; border-radius: 18px 18px 6px 18px;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 10px 24px -16px rgb(var(--shadow-rgb) / .8);
  font-weight: 800; font-size: .88rem; line-height: 1.35;
}
.bubble.pop { animation: bubble-pop .5s var(--ease-pop); }
@keyframes bubble-pop { 0% { transform: scale(.7); opacity: .3; } 100% { transform: none; opacity: 1; } }
.bench {
  position: relative; z-index: 1;
  background: var(--cloud); border-radius: var(--radius-xl);
  padding: 16px clamp(12px, 2.6vw, 26px) clamp(16px, 2.6vw, 26px);
  box-shadow: 0 34px 70px -40px rgb(var(--shadow-rgb) / .55), 0 2px 0 rgb(255 255 255 / .55) inset;
}
.puffs { position: absolute; inset: -40px 22px auto; height: 80px; z-index: -1; pointer-events: none; }
.puffs i { position: absolute; bottom: 0; display: block; border-radius: 50%; background: var(--cloud); box-shadow: 0 -12px 26px -18px rgb(var(--shadow-rgb) / .4); }
.puffs i:nth-child(1) { left: 0; width: 96px; height: 96px; bottom: -44px; }
.puffs i:nth-child(2) { left: 12%; width: 130px; height: 130px; bottom: -66px; }
.puffs i:nth-child(3) { left: 33%; width: 104px; height: 104px; bottom: -58px; }
.puffs i:nth-child(4) { left: 50%; width: 140px; height: 140px; bottom: -82px; }
.puffs i:nth-child(5) { left: 70%; width: 124px; height: 124px; bottom: -60px; }
.puffs i:nth-child(6) { right: 0; width: 92px; height: 92px; bottom: -42px; }

.tabs {
  position: relative; display: grid; grid-template-columns: repeat(3, auto); justify-content: stretch; gap: 4px;
  padding: 5px; border-radius: 999px; background: var(--surface-soft);
  box-shadow: inset 0 1px 4px rgb(var(--shadow-rgb) / .14);
}
.tab {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .35em .6em; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-soft); font: 800 .96rem/1.15 var(--font-body); cursor: pointer; transition: color .25s; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab .ti { width: 28px; height: 28px; flex: none; transition: transform .45s var(--ease-pop); }
.tab[aria-selected="true"] .ti { transform: rotate(-8deg) scale(1.08); }
.tab-ink {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: var(--ink-w, 32%);
  transform: translateX(var(--ink-x, 5px)); border-radius: 999px; background: var(--surface);
  box-shadow: 0 8px 16px -8px rgb(var(--shadow-rgb) / .55), inset 0 -2px 0 rgb(var(--berry-rgb) / .3);
  transition: transform .5s var(--ease-pop), width .5s var(--ease-pop);
}
.ts-back { fill: var(--candy-taro); stroke: var(--taro-strong); stroke-width: 1.4; }
.ts-front { fill: #ffffff; stroke: #ff6fa3; stroke-width: 1.7; }
.ts-sun { fill: var(--candy-custard); }
.ts-hill { fill: var(--candy-mint); stroke: #3fb487; stroke-width: 1.1; stroke-linejoin: round; }
.ts-arrow { fill: none; stroke: #e0477f; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ts-pin { fill: var(--candy-pink); stroke: #e0477f; stroke-width: 1.7; }
.ts-pin-hole { fill: #ffffff; stroke: #e0477f; stroke-width: 1.5; }
.ts-slash { stroke: var(--mochi-ink); stroke-width: 2.4; stroke-linecap: round; }
:root[data-theme="dark"] .ts-slash { stroke: #fff0f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ts-slash { stroke: #fff0f7; } }
.ts-spark { fill: var(--candy-custard); stroke: #e7a900; stroke-width: .8; }

.panel { display: grid; gap: 16px; padding-top: 18px; min-width: 0; }
.panel-desc { color: var(--ink-soft); font-size: 1rem; }
.panel-note { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: .88rem; }
.panel-note .i { color: var(--custard-ink); margin-top: .18em; }

.opts { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; }
.opt { display: grid; gap: 6px; min-width: 0; }
.opt-label { display: flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: .84rem; color: var(--ink-soft); }
.opt-out { font-variant-numeric: tabular-nums; color: var(--berry-strong); }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface-soft); box-shadow: inset 0 1px 3px rgb(var(--shadow-rgb) / .12); }
.seg label { position: relative; display: inline-flex; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: var(--ink-soft); transition: background-color .25s, color .25s, box-shadow .25s; pointer-events: none; }
.seg input:checked + span { background: var(--surface); color: var(--berry-strong); box-shadow: 0 6px 12px -7px rgb(var(--shadow-rgb) / .7); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.range { -webkit-appearance: none; appearance: none; width: min(240px, 100%); height: 30px; margin: 0; background: transparent; cursor: pointer; --val: 50%; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--berry) var(--val), var(--surface-soft) var(--val)); box-shadow: inset 0 1px 2px rgb(0 0 0 / .1); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--berry); box-shadow: 0 5px 12px -4px rgb(var(--berry-rgb) / .9); transition: transform .2s var(--ease-pop); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range::-moz-range-track { height: 10px; border-radius: 999px; background: var(--surface-soft); }
.range::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--berry); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--berry); }
.target-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.num-unit { display: inline-flex; align-items: center; border-radius: 14px; background: var(--surface-soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.num { width: 6.2ch; padding: .5em .2em .5em .8em; border: 0; background: transparent; font-weight: 800; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.num:focus-visible, .unit:focus-visible { outline-offset: 0; border-radius: 12px; }
.unit { padding: .5em .6em; border: 0; background: transparent; font-weight: 800; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface-soft); color: var(--ink-soft); font-weight: 800; font-size: .82rem; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease-pop); }
.chip-btn:hover { transform: translateY(-1px); color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--berry-tint); color: var(--berry-strong); }
.select {
  -webkit-appearance: none; appearance: none; min-height: 42px; padding: .45em 2.3em .45em .9em;
  border: 0; border-radius: 14px; font-weight: 800; font-size: .9rem; color: var(--ink); cursor: pointer;
  background: var(--surface-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8849f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8em center / 14px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.drop { position: relative; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-btn {
  width: 100%; display: grid; justify-items: center; gap: 6px;
  padding: 24px 18px 22px; border: 2.5px dashed var(--drop-line); border-radius: 28px;
  background: var(--drop-bg); color: var(--ink); text-align: center; cursor: pointer;
  transition: background-color .25s, border-color .25s, transform .35s var(--ease-pop);
}
.drop-btn:hover { border-color: var(--berry); background: var(--berry-wash); }
.drop-btn:hover .drop-ico { transform: translateY(-4px) scale(1.04); }
.drop-ico { width: 92px; height: 70px; transition: transform .35s var(--ease-pop); }
.sym-cloud { fill: var(--cloud-icon); }
.sym-arrow { fill: none; stroke: var(--berry-strong); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.drop-title { font: 400 1.18rem/1.3 var(--font-display); }
:root[lang="th"] .drop-title { font-weight: 700; font-size: 1.25rem; }
.drop-hint { color: var(--ink-soft); font-size: .9rem; max-width: 42ch; }
.drop-cta { margin-top: 8px; pointer-events: none; }
.is-dragging .bench { box-shadow: 0 0 0 4px var(--berry), 0 34px 70px -40px rgb(var(--shadow-rgb) / .55); }
.drop-veil {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border-radius: var(--radius-xl);
  background: rgb(var(--berry-rgb) / .16); border: 3px dashed var(--berry); color: var(--berry-strong);
  font: 400 1.3rem var(--font-display); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; pointer-events: none;
}
.drop-veil span { padding: .5em 1em; border-radius: 999px; background: var(--surface); box-shadow: 0 12px 30px -16px rgb(var(--shadow-rgb) / .9); }
.is-dragging .drop-veil { opacity: 1; visibility: visible; }

/* queue */
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.queue:empty { display: none; }
.item {
  position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 10px 12px 10px 10px; border-radius: 22px; background: var(--item-bg); box-shadow: inset 0 0 0 1.5px var(--line);
  overflow: hidden; animation: pop-in .5s var(--ease-pop) both;
}
@keyframes pop-in { 0% { transform: scale(.94) translateY(6px); } 100% { transform: none; } }
.item.is-example { opacity: .9; animation: none; }
.thumb { width: 60px; height: 60px; border-radius: 16px; overflow: hidden; background: var(--surface-soft); display: grid; place-items: center; color: var(--ink-soft); }
.thumb img, .thumb > svg:not(.i) { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .i { width: 28px; height: 28px; }
.ex-sky { fill: var(--candy-sky); } .ex-sun { fill: var(--candy-custard); } .ex-hill2 { fill: var(--candy-pink); } .ex-hill1 { fill: var(--candy-mint); }
.item-main { min-width: 0; display: grid; gap: 4px; }
.item-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 800; font-size: .95rem; line-height: 1.35; }
.nm, .nm-out { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nm { flex: 0 1 auto; }
.nm-out { flex: 0 1 auto; color: var(--berry-strong); }
.nm-arrow { width: 15px; height: 15px; color: var(--ink-soft); }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink-soft); font-size: .86rem; font-variant-numeric: tabular-nums; }
.item-status { color: var(--ink-soft); font-weight: 700; }
.item[data-state="error"] .item-status { color: var(--danger); }
.found-label { font-weight: 800; color: var(--ink-soft); }
.chips { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--ink); font-size: .78rem; font-weight: 700; line-height: 1.3; }
.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip .i { width: 14px; height: 14px; }
.chip a { color: inherit; font-weight: 800; white-space: nowrap; }
.chip-more { border: 0; font-family: inherit; color: var(--berry-strong); background: var(--berry-wash); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.chip-more:hover { background: var(--berry-tint); }
.chip-gps { background: var(--berry-tint); color: var(--berry-strong); }
.chip-good { background: var(--matcha-tint); color: var(--matcha-strong); }
.chip-tag { background: var(--custard-tint); color: var(--custard-ink); }
.chip-warn { background: var(--danger-tint); color: var(--danger-ink); }
.chip-taro { background: var(--taro-tint); color: var(--taro-strong); }
.item-actions { display: flex; align-items: center; gap: 6px; }
.item-actions .icon-btn { width: 36px; height: 36px; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; display: none; }
.progress span { display: block; height: 100%; width: var(--p, 10%); border-radius: 0 999px 999px 0; background: repeating-linear-gradient(-45deg, var(--berry) 0 8px, var(--berry-hi) 8px 16px); background-size: 22.6px 22.6px; animation: stripes .6s linear infinite; transition: width .35s var(--ease-soft); }
.item[data-state="working"] .progress { display: block; }
.item[data-state="waiting"] { opacity: .75; }
@keyframes stripes { to { background-position: 22.6px 0; } }
.item[data-state="working"] .thumb { animation: thumb-squish .9s ease-in-out infinite; }
@keyframes thumb-squish { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06, .92); } }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 10px 10px 16px; border-radius: 22px; background: var(--surface-soft); }
.bar-info { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; }
.bar-saved { color: var(--matcha-strong); }
.bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.thanks {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; align-items: center;
  padding: 18px 54px 18px 18px; border-radius: 24px;
  background: linear-gradient(135deg, var(--berry-tint), var(--taro-tint));
  animation: pop-in .6s var(--ease-pop) both;
}
.thanks-mochi { width: 66px; height: 62px; animation: floaty 4s ease-in-out infinite; }
.thanks-title { font: 400 1.08rem/1.35 var(--font-display); }
:root[lang="th"] .thanks-title { font-weight: 700; font-size: 1.15rem; }
.thanks-text { color: var(--ink-soft); font-size: .92rem; margin-top: 2px; }
.thanks-count { color: var(--ink); font-size: .85rem; font-weight: 800; margin-top: 4px; }
.thanks-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.thanks-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; }

/* ───────── mochi character ───────── */
.m-shadow { fill: rgb(var(--shadow-rgb) / .16); }
.stop-mochi-top { stop-color: var(--mochi); }
.stop-mochi-mid { stop-color: var(--mochi-mid); }
.stop-mochi-bottom { stop-color: var(--mochi-shade); }
.m-body { fill: url(#g-mochi); stroke: var(--mochi-line); stroke-width: 2.5; }
.m-arm { fill: var(--mochi); stroke: var(--mochi-line); stroke-width: 2.5; }
.m-shade { fill: var(--mochi-shade); opacity: .7; }
.m-cheek { fill: var(--cheek); opacity: .9; }
.m-eye { fill: var(--mochi-ink); }
.m-glint { fill: #ffffff; }
.m-eyes-happy, .m-brows, .m-mouth-w, .m-mouth-wavy { fill: none; stroke: var(--mochi-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.m-mouth-w, .m-brows { stroke-width: 3.6; }
.m-mouth-fill { fill: var(--mochi-ink); }
.m-tongue { fill: #ff8db0; }
.m-sweat { fill: #a6dbff; }
.m-berry-body { fill: var(--berry-red); }
.m-seed { fill: #ffeaa8; }
.m-leaf { fill: var(--leaf); }
.mm-body { fill: var(--mochi); stroke: var(--mochi-line); stroke-width: 2.2; }
.mm-berry { fill: var(--berry-red); }
.mm-leaf { fill: var(--leaf); }
.mm-cheek { fill: var(--cheek); }
.mm-eye { fill: var(--mochi-ink); }
.mm-mouth { fill: none; stroke: var(--mochi-ink); stroke-width: 1.6; stroke-linecap: round; }

.m-eyes-happy, .m-brows, .m-mouth-o, .m-mouth-smile, .m-mouth-wavy, .m-sweat { display: none; }
.mochi.is-happy .m-eyes-open, .mochi.is-happy .m-mouth-w { display: none; }
.mochi.is-happy .m-eyes-happy, .mochi.is-happy .m-mouth-smile { display: inline; }
.mochi.is-hungry .m-mouth-w { display: none; }
.mochi.is-hungry .m-mouth-o { display: inline; }
.mochi.is-busy .m-mouth-w, .mochi.is-oops .m-mouth-w { display: none; }
.mochi.is-busy .m-mouth-wavy, .mochi.is-busy .m-sweat, .mochi.is-oops .m-mouth-wavy, .mochi.is-oops .m-brows { display: inline; }

.m-squish { transform-box: view-box; transform-origin: 110px 186px; animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .972); } }
.m-eyes-open { transform-box: view-box; transform-origin: 110px 116px; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
.m-look { transition: transform .18s ease-out; }
.m-berry { transform-box: view-box; transform-origin: 128px 62px; animation: berry-bob 3.4s ease-in-out infinite; }
@keyframes berry-bob { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(4deg) translateY(-1px); } }
.mochi.is-busy .m-squish { animation: squish .75s ease-in-out infinite; }
@keyframes squish { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.08, .9); } }
.mochi.is-hungry .m-squish { animation: wiggle .55s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg) scale(1.03, .98); } 50% { transform: rotate(3deg) scale(1.03, .98); } }
.mochi.is-happy .m-squish { animation: hop .95s var(--ease-soft) 2; }
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); } 18% { transform: translateY(0) scale(1.1, .88); }
  45% { transform: translateY(-26px) scale(.95, 1.06); } 72% { transform: translateY(0) scale(1.07, .92); } 100% { transform: translateY(0) scale(1, 1); }
}
.m-arm-l, .m-arm-r { transform-box: view-box; }
.m-arm-l { transform-origin: 40px 146px; }
.m-arm-r { transform-origin: 180px 146px; }
.mochi.is-happy .m-arm-l { animation: wave-l .4s ease-in-out 4; }
.mochi.is-happy .m-arm-r { animation: wave-r .4s ease-in-out 4; }
@keyframes wave-l { 50% { transform: rotate(-24deg) translateY(-6px); } }
@keyframes wave-r { 50% { transform: rotate(24deg) translateY(-6px); } }
.mochi.is-oops .m-squish { animation: shiver .3s ease-in-out 3; }
@keyframes shiver { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.mochi-btn:active .m-squish { transform: scale(1.12, .86); animation: none; }

/* ───────── secrets demo ───────── */
.secrets, .how, .support, .faq { padding-block: clamp(44px, 6.5vw, 84px); }
.secrets-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.section-title { font: 400 var(--fs-h2)/1.2 var(--font-display); letter-spacing: -.01em; }
:root[lang="th"] .section-title { font-weight: 700; line-height: 1.38; letter-spacing: 0; }
.lead { margin-top: 14px; font-size: var(--fs-lead); color: var(--ink-soft); max-width: 46ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.polaroid { position: relative; margin: 0; justify-self: center; width: min(440px, 100%); padding: 44px 34px 56px; }
.pola-frame { position: relative; padding: 14px 14px 50px; border-radius: 10px; background: var(--paper); box-shadow: 0 30px 50px -30px rgb(var(--shadow-rgb) / .7), 0 2px 6px rgb(var(--shadow-rgb) / .12); transform: rotate(-3deg); transition: transform .6s var(--ease-pop); }
.polaroid.is-clean .pola-frame { transform: rotate(0deg) scale(1.02); }
.pola-art { display: block; width: 100%; height: auto; border-radius: 4px; }
.pa-sky { fill: var(--candy-sky); } .pa-sun { fill: var(--candy-custard); } .pa-cloud { fill: #ffffff; }
.pa-hill2 { fill: var(--candy-pink); } .pa-hill1 { fill: var(--candy-mint); } .pa-wall { fill: #fff8ef; }
.pa-roof { fill: #ff8db4; } .pa-door { fill: #b98af5; } .pa-tree { fill: #6fd09f; } .pa-trunk { fill: #b88a6a; }
.pola-caption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 600 1.05rem var(--font-hand); color: #745c76; }
.crumbs { list-style: none; margin: 0; padding: 0; }
.crumb {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-weight: 800; font-size: .82rem; white-space: nowrap;
  box-shadow: inset 0 0 0 1.5px var(--line), 0 12px 24px -14px rgb(var(--shadow-rgb) / .8);
  animation: floaty 5s ease-in-out infinite;
}
.crumb .i { width: 15px; height: 15px; }
.cr-1 { top: 20px; left: 4px; color: var(--berry-strong); background: var(--berry-tint); }
.cr-2 { top: 36%; right: 0; animation-delay: -1.5s; }
.cr-3 { bottom: 26%; left: 0; animation-delay: -3s; }
.cr-4 { bottom: 26px; right: 18px; animation-delay: -2.2s; }
.polaroid.is-clean .crumb { animation: crumb-fall .9s cubic-bezier(.5, 0, .75, 0) both; pointer-events: none; }
.polaroid.is-clean .cr-2 { animation-delay: .08s; } .polaroid.is-clean .cr-3 { animation-delay: .16s; } .polaroid.is-clean .cr-4 { animation-delay: .24s; }
@keyframes crumb-fall { 0% { transform: none; opacity: 1; } 30% { transform: translateY(-14px) rotate(-6deg); opacity: 1; } 100% { transform: translateY(170px) rotate(26deg); opacity: 0; visibility: hidden; } }
.pola-clean {
  position: absolute; left: 50%; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; background: var(--matcha-tint); color: var(--matcha-strong); font-weight: 800; font-size: .86rem;
  transform: translateX(-50%) scale(.6); opacity: 0; transition: transform .5s var(--ease-pop) .4s, opacity .3s .4s;
}
.polaroid.is-clean .pola-clean { transform: translateX(-50%) scale(1); opacity: 1; }

/* ───────── how ───────── */
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; display: grid; justify-items: start; gap: 8px; }
.step-ico { position: relative; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%; margin-bottom: 8px; }
.step-ico .i { width: 30px; height: 30px; }
.step-ico .mini-mochi { width: 46px; height: 44px; }
.st-berry { background: var(--berry-tint); color: var(--berry-strong); }
.st-taro { background: var(--taro-tint); }
.st-matcha { background: var(--matcha-tint); color: var(--matcha-strong); }
.step-num { position: absolute; top: -8px; left: 54px; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; font-size: .88rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 35px; left: 92px; right: -18px; border-top: 3px dotted var(--drop-line); }
.step-title { font: 400 1.18rem/1.3 var(--font-display); }
:root[lang="th"] .step-title { font-weight: 700; font-size: 1.25rem; }
.step-text { color: var(--ink-soft); max-width: 30ch; }

/* ───────── support ticket ───────── */
.ticket {
  position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr);
  border-radius: 34px; background: var(--surface);
  box-shadow: 0 40px 80px -46px rgb(var(--shadow-rgb) / .7);
  -webkit-mask: radial-gradient(circle 16px at 300px 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at 300px 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 16px at 300px 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 16px at 300px 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.ticket-stub {
  display: grid; justify-items: center; align-content: center; gap: 12px; padding: 34px 26px;
  border-radius: 34px 0 0 34px; border-right: 3px dashed var(--line);
  background: repeating-linear-gradient(135deg, var(--berry-tint) 0 16px, var(--surface-soft) 16px 32px);
}
.qr-card { width: 216px; max-width: 100%; padding: 14px; border-radius: 24px; background: #ffffff; box-shadow: 0 16px 30px -18px rgb(var(--shadow-rgb) / .8); transition: transform .4s var(--ease-pop); }
.qr-card:hover { transform: rotate(-2deg) scale(1.03); }
.qr { display: block; width: 100%; height: auto; }
.qr-cap { font-weight: 800; font-size: .86rem; color: var(--ink-soft); text-align: center; }
.ticket-body { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 4vw, 40px); min-width: 0; }
.ticket-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--berry-strong); font-weight: 800; font-size: .92rem; }
.ticket-body .lead { margin-top: 0; }
.any { padding: .2em .75em; border-radius: 999px; background: var(--custard-tint); color: var(--custard-ink); font-size: .8rem; }
.coin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.net-pill, .min-pill { padding: .4em .9em; border-radius: 999px; background: var(--soda-tint); color: var(--soda-ink); font-weight: 800; font-size: .82rem; }
.min-pill { background: var(--matcha-tint); color: var(--matcha-strong); }
.addr { display: grid; gap: 6px; }
.addr-row { display: flex; flex-wrap: wrap; gap: 8px; }
.addr-text {
  flex: 1 1 260px; min-width: 0; margin: 0; padding: .7em .95em; border-radius: 16px;
  background: var(--surface-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  font: 700 .9rem/1.45 var(--font-mono); word-break: break-all; -webkit-user-select: all; user-select: all;
}
.warn { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--danger-tint); color: var(--danger-ink); font-weight: 700; font-size: .9rem; }
.warn .i { margin-top: .1em; }
.fine { color: var(--ink-soft); font-size: .86rem; }
.share { margin-top: 30px; display: grid; gap: 12px; justify-items: start; }
.share-title { font: 400 1.12rem/1.4 var(--font-display); }
:root[lang="th"] .share-title { font-weight: 700; font-size: 1.2rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px;
  font: 800 .92rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .22s var(--ease-pop), box-shadow .2s;
  box-shadow: inset 0 0 0 1.5px rgb(var(--shadow-rgb) / .08);
}
.share-btn:hover { transform: translateY(-2px) rotate(-1.5deg); }
.sb-line, .sb-wa { background: var(--matcha-tint); color: var(--matcha-strong); }
.sb-fb, .sb-tg { background: var(--soda-tint); color: var(--soda-ink); }
.sb-x { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.sb-copy, .sb-native { background: var(--berry-tint); color: var(--berry-strong); }

/* ───────── tool page guide ───────── */
.guide-wrap { max-width: 900px; }
.guide-card {
  display: grid; gap: 14px; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: 0 34px 70px -46px rgb(var(--shadow-rgb) / .6);
}
.guide-card .lead { margin-top: 0; max-width: 68ch; }
.tip { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; padding: 12px 16px; border-radius: 18px; background: var(--custard-tint); color: var(--custard-ink); font-weight: 700; font-size: .95rem; }
.tip .i { margin-top: .2em; }

/* ───────── faq ───────── */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.qa { border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .25s; }
.qa[open] { box-shadow: inset 0 0 0 1.5px var(--berry), 0 16px 30px -24px rgb(var(--shadow-rgb) / .8); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-radius: 22px; font-weight: 800; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa-plus { width: 22px; height: 22px; color: var(--berry-strong); transition: transform .35s var(--ease-pop); }
.qa[open] .qa-plus { transform: rotate(135deg); }
.qa p { padding: 0 20px 18px; color: var(--ink-soft); max-width: 68ch; }

/* ───────── footer ───────── */
.foot { padding-block: 24px calc(48px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-top: 28px; border-top: 2.5px dashed var(--line); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-text { display: grid; gap: 2px; color: var(--ink-soft); font-size: .92rem; }
.foot-text p:first-child { color: var(--ink); font-weight: 800; }
.foot-small { font-size: .82rem; }
.foot-nav { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.foot-nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink-soft); box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 700; font-size: .88rem; text-decoration: none; transition: color .2s, box-shadow .2s, transform .2s var(--ease-pop);
}
.foot-nav a:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--berry); transform: translateY(-1px); }
.foot-nav a[aria-current="page"] { color: var(--berry-strong); background: var(--berry-wash); box-shadow: inset 0 0 0 1.5px var(--berry); }

/* little note at the very bottom (text from /message.txt); tap it for a few sprinkles */
.foot-note-row { display: flex; justify-content: center; margin-top: 26px; }
.foot-note {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: .42em 1.05em;
  border: 1.5px dashed var(--line); border-radius: 999px; background: var(--berry-wash); color: var(--ink-soft);
  font: 600 .95rem/1.4 var(--font-hand); cursor: pointer;
  transition: transform .35s var(--ease-pop), border-color .25s, color .25s;
}
.foot-note:hover { transform: translateY(-2px) rotate(-1deg); border-color: var(--berry); color: var(--berry-strong); }
.foot-note:active { transform: scale(.97); }
.fn-text { white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; }
.fn-cake, .fn-spark { width: 22px; height: 22px; flex: none; overflow: visible; }
.fn-heart { width: 15px; height: 15px; flex: none; fill: var(--berry); animation: fn-beat 2.6s ease-in-out infinite; }
.fn-spark path { fill: var(--candy-custard); stroke: #e7a900; stroke-width: .8; stroke-linejoin: round; }
.ck-flame { fill: #ffb13b; transform-box: fill-box; transform-origin: 50% 100%; animation: fn-flicker 1.3s ease-in-out infinite alternate; }
.ck-candle { fill: #9ed7ff; }
.ck-cake { fill: var(--candy-pink); stroke: var(--candy-line); stroke-width: 1.2; }
.ck-cream { fill: var(--candy-cream); }
.ck-plate { fill: none; stroke: var(--candy-line); stroke-width: 1.6; stroke-linecap: round; }
@keyframes fn-beat { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.22); } 90% { transform: scale(.95); } }
@keyframes fn-flicker { from { transform: scale(1, 1) rotate(-4deg); } to { transform: scale(.86, 1.14) rotate(4deg); } }

/* ───────── toast, compare, confetti ───────── */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  max-width: calc(100% - 32px); padding: .7em 1.25em; border-radius: 999px;
  background: var(--toast-bg); color: var(--toast-ink); font-weight: 800; font-size: .92rem; text-align: center;
  box-shadow: 0 18px 40px -16px rgb(var(--shadow-rgb) / .9); transform: translateX(-50%);
}
.toast.show { animation: toast-in .45s var(--ease-pop) both; }
@keyframes toast-in { 0% { transform: translateX(-50%) translateY(16px) scale(.9); opacity: 0; } 100% { transform: translateX(-50%); opacity: 1; } }
.compare { width: min(880px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 18px; border: 0; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .5); }
.compare::backdrop { background: rgb(36 18 48 / .55); }
.compare[open] { animation: pop-in .4s var(--ease-pop); }
.compare-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.compare-title { font: 400 1.2rem var(--font-display); }
:root[lang="th"] .compare-title { font-weight: 700; }
.compare-stage {
  position: relative; overflow: hidden; border-radius: 18px; touch-action: none; cursor: ew-resize; --pos: 50%;
  background: repeating-conic-gradient(var(--surface-soft) 0 25%, var(--surface) 0 50%) 0 0 / 22px 22px;
}
.cmp-img { display: block; width: 100%; height: auto; max-height: 64vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.cmp-before { position: absolute; inset: 0; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #ffffff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgb(0 0 0 / .15); pointer-events: none; }
.cmp-handle span { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; border-radius: 50%; background: #ffffff; transform: translate(-50%, -50%); box-shadow: 0 6px 16px rgb(0 0 0 / .25); }
.cmp-handle span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: #b8296a; font-weight: 800; font-size: 1rem; letter-spacing: 2px; }
.cmp-label { position: absolute; top: 10px; padding: .25em .7em; border-radius: 999px; background: rgb(255 255 255 / .9); color: #3e2542; font-weight: 800; font-size: .78rem; pointer-events: none; }
.cmp-l { left: 10px; } .cmp-r { right: 10px; }
.cmp-range { width: 100%; margin-top: 12px; }
.compare-meta { margin-top: 6px; color: var(--ink-soft); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* ───────── responsive ───────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 8px; }
  .hero-sub { max-width: 52ch; }
  .s-macaron { right: 0; top: -6px; width: 54px; height: 54px; }
  .s-star { display: none; }
  .s-candy { display: none; }
  .bench-wrap { padding-top: 136px; }
  .mochi-spot { top: -8px; }
  .secrets-grid { grid-template-columns: minmax(0, 1fr); }
  .polaroid { order: 0; }
}
@media (max-width: 760px) {
  .ticket { grid-template-columns: minmax(0, 1fr);
    -webkit-mask: radial-gradient(circle 16px at 0 300px, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 300px, transparent 97%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 16px at 0 300px, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 300px, transparent 97%, #000) right / 51% 100% no-repeat; }
  .ticket-stub { height: 300px; border-right: 0; border-bottom: 3px dashed var(--line); border-radius: 34px 34px 0 0; padding: 24px; }
  .qr-card { width: 196px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .step { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .step-ico { grid-row: span 2; margin-bottom: 0; }
  .step:not(:last-child)::after { top: 78px; left: 34px; right: auto; bottom: -18px; border-top: 0; border-left: 3px dotted var(--drop-line); }
}
@media (max-width: 560px) {
  .nav-in { gap: 10px; min-height: 60px; }
  .brand-mochi { width: 36px; height: 34px; }
  .wordmark { font-size: 1.05rem; }
  .nav-support span { display: none; }
  .nav-support { width: 40px; padding: 0; }
  .bench-wrap { padding-top: 100px; }
  .mochi-spot { top: -14px; }
  .mochi { width: 118px; }
  .bubble { margin-bottom: 50px; max-width: 170px; font-size: .82rem; }
  .bench { border-radius: 28px; }
  .puffs { inset: -32px 10px auto; }
  .puffs i:nth-child(2), .puffs i:nth-child(4) { transform: scale(.8); transform-origin: bottom center; }
  .tabs { border-radius: 24px; }
  .tab { flex-direction: column; gap: 2px; min-height: 62px; padding: .4em .3em; border-radius: 20px; font-size: .78rem; text-align: center; }
  .tab .ti { width: 26px; height: 26px; }
  .tab-ink { border-radius: 20px; }
  .opts { gap: 12px 16px; }
  .drop-btn { padding: 20px 14px 18px; }
  .item { grid-template-columns: 52px minmax(0, 1fr); padding-right: 10px; }
  .thumb { width: 52px; height: 52px; border-radius: 14px; }
  .item-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .item-actions:empty { display: none; }
  .bar { padding: 12px; }
  .bar-actions, .bar-actions .btn { width: 100%; }
  .bar-actions .btn { flex: 1 1 auto; }
  .thanks { grid-template-columns: minmax(0, 1fr); padding-right: 18px; }
  .thanks-mochi { display: none; }
  .polaroid { padding: 40px 6px 54px; }
  .crumb { font-size: .76rem; padding: 6px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .cloud, .twinkle { display: none; }
}
