/* Kumocha — one shape (the cloud), one ground, one ink, one accent. */
:root {
  --ground: #F4F0E4;
  --ground-2: #E9E3D1;
  --ground-3: #DFE6CC;
  --ink: #2C3520;
  --ink-soft: #4F5A40;
  --matcha: #8FAE5A;
  --matcha-pale: #C9D9A6;
  --matcha-deep: #4A6331;
  --olive: #3E4A2C;
  --orange: #E2862C;
  --photo: #D7D6D1;

  --display: "Prompt", system-ui, sans-serif;
  --text: "Anuphan", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --step-hero: clamp(3.1rem, 1.2rem + 5.6vw, 6.4rem);

  --margin: clamp(20px, 4.4vw, 64px);
  --gap: clamp(96px, 12vw, 180px);
  --radius: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--matcha-pale); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.display, .h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
:lang(th) .display, :lang(th) .h2 { line-height: 1.18; letter-spacing: -0.01em; }
.h2 { font-size: var(--step-head); }

/* ---------- Buttons: fully round, flat, one fill ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius);
  font: 600 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--spring), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--olive); color: var(--ground); }
.btn-ink:hover { background: var(--ink); }
.btn-soft { background: var(--ground-2); color: var(--ink); }
.btn-soft:hover { background: var(--ground-3); }
.btn-cream { background: var(--ground); color: var(--ink); min-height: 44px; }
.btn[aria-disabled="true"] { background: var(--ground-2); color: var(--ink-soft); pointer-events: none; }
.textlink { background: none; border: 0; padding: 6px 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--matcha); transition: text-decoration-color .2s; }
.textlink:hover { text-decoration-color: var(--orange); }

/* ---------- Announcement ---------- */
.announce { background: var(--olive); color: var(--ground); text-align: center; padding: 10px var(--margin); font-weight: 600; font-size: var(--step-small); }

/* ---------- Bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--margin); background: var(--ground);
  transition: background-color .3s;
}
.bar.scrolled { background: var(--ground-2); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark-mascot { width: 46px; height: auto; transition: transform .5s var(--spring); }
.mark:hover .mark-mascot, .mark-mascot.happy { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
.mark-word { font: 700 1.5rem/1 var(--display); letter-spacing: -0.03em; }
.bar-links { display: flex; gap: 28px; }
.bar-links a { text-decoration: none; font-weight: 600; padding: 8px 0; position: relative; }
.bar-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px; background: var(--matcha); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.bar-links a:hover::after { transform: scaleX(1); }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: var(--ground-2); border: 0; border-radius: var(--radius); padding: 4px; cursor: pointer; }
.lang span { padding: 8px 12px; border-radius: var(--radius); font-weight: 600; font-size: .9375rem; line-height: 1; transition: background-color .25s, color .25s; }
html[lang="th"] .lang [data-l="th"], html[lang="en"] .lang [data-l="en"] { background: var(--ground); }
.bar-cart { min-height: 44px; padding: 0 8px 0 18px; }
.count { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--radius); background: var(--matcha); color: var(--ink); font-weight: 700; }
.count.pop { animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Hero: the cloud at enormous scale ---------- */
.hero {
  position: relative; min-height: calc(100svh - 70px); display: grid; align-items: center;
  padding: 24px var(--margin) 64px; overflow: clip;
}
.hero-copy { position: relative; z-index: 2; max-width: min(620px, 48vw); }
.hero h1 { font-size: var(--step-hero); }
.lead { font-size: var(--step-lead); line-height: 1.45; margin: 32px 0 0; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 40px 0 0; }
.facts li { background: var(--ground-2); border-radius: var(--radius); padding: 8px 16px; font-weight: 600; font-size: var(--step-small); }

.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-cloud {
  position: absolute; width: min(64vw, 118vh); height: auto;
  left: 50%; top: 54%; transform: translate(0, -50%);
  animation: breathe 7s ease-in-out infinite;
}
.hero-cloud .eye { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
.hero-cloud .leaf-l, .hero-cloud .leaf-r { transform-box: fill-box; transform-origin: bottom center; animation: sway 4s ease-in-out infinite; }
.hero-cloud .leaf-r { animation-delay: -2s; }
@keyframes breathe { 50% { transform: translate(0, -51.2%) scale(1.012); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes sway { 50% { transform: rotate(6deg); } }

.cloudframe { clip-path: url(#cloud-tall); background: var(--photo); margin: 0; }
.cloudframe img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; aspect-ratio: 4 / 5; }
.float-a { width: clamp(220px, 21vw, 320px); left: 46.5%; top: 30%; animation: bob 6s ease-in-out infinite; }
.float-b { width: clamp(120px, 10vw, 170px); left: 85%; top: 8%; animation: bob 7s ease-in-out -3s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-18px) rotate(2deg); } }

/* ---------- Intro statement ---------- */
.intro { padding: var(--gap) var(--margin); display: grid; justify-items: center; }
.statement { margin: 0; max-width: 24em; text-align: center; font: 600 clamp(1.5rem, 1rem + 1.6vw, 2.25rem)/1.4 var(--display); letter-spacing: -0.01em; }
.thumb { display: inline-block; width: 1.05em; height: 1.3em; vertical-align: -0.3em; margin: 0 .12em; }

/* ---------- Menu ---------- */
.menu { padding: clamp(64px, 8vw, 120px) var(--margin) var(--gap); }
.menu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.menu-count { margin: 0; font-weight: 600; }
.menu-hint { margin: 16px 0 48px; color: var(--ink-soft); max-width: 46ch; }
.menu-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row {
  width: 100%; display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center;
  text-align: left; background: transparent; border: 0; border-radius: 28px; padding: 12px 16px 12px 12px; cursor: pointer;
  transition: background-color .24s, opacity .24s, transform .3s var(--ease);
}
.row .thumb-lg { width: 72px; aspect-ratio: 4/5; }
.row-name { display: block; font: 700 1.25rem/1.25 var(--display); letter-spacing: -0.01em; }
.row-alt { display: block; font-size: var(--step-small); color: var(--ink-soft); margin-top: 2px; }
.row-desc { display: block; margin-top: 6px; font-size: 1rem; max-width: 40ch; }
.row-tags { display: block; margin-top: 4px; font-size: var(--step-small); color: var(--matcha-deep); font-weight: 600; }
.row-end { display: grid; justify-items: end; gap: 10px; }
.price { font: 700 1.25rem/1 var(--display); }
.add { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--ground); transition: transform .3s var(--spring), background-color .2s; }
.add svg { width: 20px; }
.row:hover, .row:focus-visible, .row.active { background: var(--ground-2); }
.row:hover .add { transform: rotate(90deg); background: var(--ink); }
.menu-list:hover .row:not(:hover) { opacity: .55; }
.row.sold { cursor: not-allowed; opacity: .5; }
.row.sold .add { background: var(--ground-2); color: var(--ink-soft); }

.preview { position: sticky; top: 96px; }
.preview-frame { aspect-ratio: 4/5; width: 100%; position: relative; }
.preview-frame > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .24s ease; }
.preview-frame .out { opacity: 0; }
.preview-name { margin: 20px 0 0; font: 700 var(--step-lead)/1.25 var(--display); }
.preview-desc { margin: 6px 0 0; max-width: 38ch; }

/* ---------- Order ---------- */
.order { background: var(--ground-3); padding: clamp(72px, 9vw, 140px) var(--margin); }
.order-head { max-width: 760px; }
.order-sub { margin: 20px 0 0; max-width: 52ch; }
.order-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); margin-top: 56px; align-items: start; }
.order-form { display: grid; gap: 40px; }

.cart { display: grid; gap: 8px; }
.cart-empty { background: var(--ground); border-radius: 32px; padding: 32px; display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; }
.cart-empty svg { width: 96px; }
.cart-empty p { margin: 0 0 14px; font: 600 var(--step-lead)/1.3 var(--display); }
.line { background: var(--ground); border-radius: 28px; padding: 12px 16px 12px 12px; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; animation: lineIn .45s var(--ease); }
@keyframes lineIn { from { opacity: 0; transform: translateY(12px); } }
.line .cloudframe { width: 56px; aspect-ratio: 4/5; }
.line-name { font: 700 1.0625rem/1.25 var(--display); margin: 0; }
.line-meta { margin: 2px 0 0; font-size: var(--step-small); color: var(--ink-soft); }
.line-end { display: grid; justify-items: end; gap: 8px; }
.line-price { font-weight: 700; }
.mini-stepper { display: flex; align-items: center; background: var(--ground-2); border-radius: var(--radius); }
.mini-stepper button { width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; cursor: pointer; font-size: 1.125rem; font-weight: 700; transition: background-color .2s; }
.mini-stepper button:hover { background: var(--ground-3); }
.mini-stepper span { min-width: 22px; text-align: center; font-weight: 700; }

.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .legend { display: block; padding: 0; margin: 0 0 14px; font: 700 1.125rem/1.3 var(--display); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 12px 18px; border-radius: var(--radius); background: var(--ground); font-weight: 600; line-height: 1.2; transition: background-color .2s, color .2s, transform .25s var(--spring); }
.chip small { display: block; font-weight: 400; font-size: .8125rem; opacity: .8; }
.chip input:checked + span { background: var(--olive); color: var(--ground); }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.chip:hover span { transform: translateY(-2px); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt > span { display: block; height: 100%; padding: 18px 20px; border-radius: 28px; background: var(--ground); transition: background-color .2s, color .2s; }
.opt b { display: block; font: 700 1.0625rem/1.3 var(--display); }
.opt small { display: block; margin-top: 4px; font-size: .9375rem; opacity: .85; }
.opt input:checked + span { background: var(--olive); color: var(--ground); }
.opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.spot { margin-top: 20px; display: grid; gap: 10px; }
.spot label { font-weight: 600; }
input[type="text"], textarea {
  width: 100%; min-height: 52px; padding: 14px 20px; border: 2px solid transparent; border-radius: 26px;
  background: var(--ground); font-size: 1rem; transition: border-color .2s;
}
textarea { border-radius: 20px; resize: none; line-height: 1.5; }
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--matcha-deep); }
input.invalid { border-color: var(--orange); }
.err { margin: 0; color: #9A4B0C; font-weight: 600; font-size: .9375rem; }
.hint { margin: 0; font-size: .9375rem; color: var(--ink-soft); }

.ticket-wrap { position: sticky; top: 96px; }
.ticket { position: relative; background: var(--ground); border-radius: 0 0 32px 32px; padding: 28px 28px 24px; margin-top: 22px; }
.ticket-edge { position: absolute; left: 0; right: 0; top: -22px; width: 100%; height: 24px; fill: var(--ground); }
.ticket-title { margin: 0 0 14px; font: 700 1.125rem/1.3 var(--display); }
.ticket-text { white-space: pre-wrap; font-size: .9375rem; line-height: 1.6; background: var(--ground-2); border-radius: 20px; padding: 16px 18px; max-height: 280px; overflow: auto; }
.ticket-text.flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { background: var(--matcha-pale); } 100% { background: var(--ground-2); } }
.totals { margin: 18px 0 0; display: grid; gap: 4px; }
.totals .tr { display: flex; justify-content: space-between; gap: 12px; }
.totals .save { color: var(--matcha-deep); font-weight: 600; }
.totals .grand { margin-top: 6px; font: 700 1.75rem/1.1 var(--display); }
.nudge { margin: 14px 0 0; background: #F6DDBF; color: #6B3A0C; border-radius: 20px; padding: 12px 16px; font-weight: 600; font-size: .9375rem; }
.ticket .btn-block { margin-top: 20px; }
.copy-only { display: block; margin: 12px auto 0; }
.fine { margin: 12px 0 0; font-size: .875rem; color: var(--ink-soft); text-align: center; }

/* ---------- How it works ---------- */
.how { padding: var(--gap) var(--margin) 0; }
.how-head { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; }
.how-head p { margin: 24px 0 0; max-width: 34ch; font-size: var(--step-lead); line-height: 1.45; }
.how-photo { margin: 0; justify-self: end; width: min(100%, 460px); }
.how-photo .cloudframe { aspect-ratio: 4/5; }
.how-photo img { object-position: 30% 50%; }
.how-photo figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); }
.how-art { width: 100%; height: auto; margin: 56px 0 0; }
.how-art use { transition: transform 1.1s var(--ease), opacity .6s; }
.how-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-steps b { display: block; font: 700 1.5rem/1.2 var(--display); }
.how-steps p { margin: 8px 0 0; max-width: 32ch; }

/* ---------- FAQ: cards filed in a drawer ---------- */
.faq { padding: var(--gap) var(--margin); }
.faq .h2 { margin-left: 16.66%; }
.cards { margin: 88px 16.66% 0; display: grid; }
.card { position: relative; margin-top: -30px; padding-bottom: 50px; border-radius: 0 32px 32px 32px; background: var(--c); z-index: var(--z); }
.card:first-child { margin-top: 0; }
.card:last-child { padding-bottom: 0; }
.card .tab {
  position: absolute; top: -38px; left: calc(var(--i) * min(150px, 14%)); height: 40px; width: 200px;
  background: var(--c); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem;
}
.card:first-child .tab { left: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%); }
.card h3 { margin: 0; }
.card-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; background: none; border: 0; padding: 22px 28px; cursor: pointer; font: 600 1.25rem/1.35 var(--display); }
.card-q::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease); }
.card-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.card-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.card-a > div { overflow: hidden; min-height: 0; }
.card-a p { margin: 0 28px 24px; max-width: 54ch; font-size: 1.0625rem; }
.card.open .card-a { grid-template-rows: 1fr; }

/* ---------- Footer: the cloud, built large ---------- */
.foot { background: var(--olive); color: var(--ground); padding: 120px var(--margin) 32px; margin-top: 40px; }
.foot-mark { display: grid; justify-items: center; text-align: center; }
.foot-mascot { width: min(520px, 70vw); height: auto; }
.foot-mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
.foot-word { margin: 8px 0 0; font: 700 clamp(4rem, 1rem + 12vw, 12rem)/.9 var(--display); letter-spacing: -0.05em; }
.foot-tag { margin: 16px 0 0; font-size: var(--step-lead); }
.foot a:not(.btn) { color: var(--ground); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { text-decoration: none; font-weight: 600; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-last { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .9375rem; }
.foot-last p { margin: 0; }

/* ---------- Dock (phone cart bar) ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  display: none; align-items: center; gap: 12px; padding: 8px 20px 8px 10px; min-height: 60px;
  background: var(--olive); color: var(--ground); border-radius: var(--radius); text-decoration: none; font-weight: 600;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.dock svg { width: 52px; }
.dock span { flex: 1; }
.dock b { font: 700 1.125rem/1 var(--display); }
.dock.show { transform: translateY(0); }

/* ---------- Sheets ---------- */
.sheet {
  border: 0; padding: 0; background: var(--ground); color: var(--ink); border-radius: 36px;
  width: min(880px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  box-shadow: 0 30px 80px rgba(44, 53, 32, .35); /* taste-skill-ignore: dialog */
}
.sheet::backdrop { background: rgba(44, 53, 32, .45); }
.sheet[open] { animation: sheetIn .45s var(--ease); }
.sheet[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(32px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.sheet-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 0; position: relative; }
.sheet-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ground-2); cursor: pointer; display: grid; place-items: center; }
.sheet-x svg { width: 20px; }
.sheet-art { aspect-ratio: 4/5; align-self: start; margin: 24px 0 24px 24px; }
.sheet-art > * { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: 32px; display: grid; gap: 20px; align-content: start; }
.sheet-name { margin: 0; padding-right: 48px; font: 700 var(--step-lead)/1.2 var(--display); font-size: 1.75rem; }
.sheet-desc { margin: -8px 0 0; }
.grades { display: grid; gap: 8px; }
.grade { position: relative; cursor: pointer; }
.grade input { position: absolute; opacity: 0; }
.grade > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 18px; border-radius: 22px; background: var(--ground-2); transition: background-color .2s, color .2s; }
.grade b { font-weight: 600; }
.grade small { grid-column: 1; font-size: .875rem; opacity: .85; }
.grade em { grid-row: 1; grid-column: 2; font-style: normal; font-weight: 700; }
.grade input:checked + span { background: var(--olive); color: var(--ground); }
.grade input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.sheet-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.stepper { display: flex; align-items: center; background: var(--ground-2); border-radius: var(--radius); padding: 4px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ground); font-size: 1.25rem; font-weight: 700; cursor: pointer; transition: transform .2s var(--spring); }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 36px; text-align: center; font: 700 1.25rem/1 var(--display); }
.note { min-height: 52px; }

.done { width: min(560px, calc(100vw - 32px)); }
.done .sheet-inner { grid-template-columns: 1fr; }
.done-mascot { width: 110px; margin: 0 auto -4px; animation: hop 1s var(--spring) .2s both; }
@keyframes hop { 0% { transform: translateY(20px) scale(.8); opacity: 0; } 60% { transform: translateY(-10px) scale(1.05); opacity: 1; } 100% { transform: none; } }
.done .sheet-name { padding: 0; text-align: center; }
.done-steps { margin: 0; text-align: center; }
.done-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.done .textlink { display: block; margin: 0 auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 84px; z-index: 40; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--ground); border-radius: var(--radius); padding: 12px 22px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(44, 53, 32, .3); transition: opacity .3s, transform .4s var(--spring); /* taste-skill-ignore: toast overlay */
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal (content stays visible without script) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .row[data-reveal] { transition: opacity .7s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms), background-color .24s; }
.js .menu-list:hover .row.in:not(:hover) { opacity: .55; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-art { animation: drift-in 1.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes drift-in { from { opacity: 0; transform: translateX(60px); } }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .bar-links { display: none; }
  .menu-grid { grid-template-columns: 1fr; }
  .preview { display: none; }
  .order-grid { grid-template-columns: 1fr; }
  .ticket-wrap { position: static; }
  .cards { margin-left: 0; margin-right: 0; }
  .faq .h2 { margin-left: 0; }
}

/* ---------- Phone: its own composition ---------- */
@media (max-width: 720px) {
  :root { --margin: 20px; }
  .mark-word { font-size: 1.25rem; }
  .mark-mascot { width: 40px; }
  .bar-cart { display: none; }
  .hero { min-height: auto; align-items: start; padding-top: 32px; padding-bottom: calc(96vw + 24px); }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
  .lead { margin-top: 24px; font-size: 1.125rem; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .facts { margin-top: 28px; }
  .hero-cloud { width: 118vw; left: 50%; top: auto; bottom: -2vw; transform: translateX(-42%); animation: none; }
  .float-a { width: 40vw; left: 4vw; top: auto; bottom: 26vw; }
  .float-b { width: 26vw; left: 70vw; top: auto; bottom: 74vw; }
  .statement { text-align: left; font-size: 1.5rem; }
  .row { grid-template-columns: 56px 1fr auto; gap: 14px; padding: 10px 8px; }
  .row .thumb-lg { width: 56px; }
  .row-name { font-size: 1.125rem; }
  .row-desc { font-size: .9375rem; }
  .price { font-size: 1.0625rem; }
  .menu-list:hover .row:not(:hover) { opacity: 1; }
  .choice { grid-template-columns: 1fr; }
  .ticket { padding: 24px 20px 20px; }
  .how-head { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
  .card .tab { width: 124px; left: calc(var(--i) * 40px); font-size: .9375rem; height: 36px; top: -34px; }
  .card-q { padding: 20px; font-size: 1.0625rem; }
  .card-a p { margin: 0 20px 20px; font-size: 1rem; }
  .how-photo { justify-self: stretch; width: 100%; }
  .how-photo .cloudframe { aspect-ratio: 5/4; }
  .foot { padding-top: 80px; padding-bottom: 110px; }
  .foot-cols { grid-template-columns: 1fr; }
  .dock { display: flex; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 92svh; margin: auto 0 0; border-radius: 32px 32px 0 0; }
  .sheet[open] { animation: sheetUp .45s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .sheet-inner { grid-template-columns: 1fr; }
  .sheet-art { width: 44vw; margin: 20px auto 0; }
  .sheet-body { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
  .sheet-name { text-align: center; padding: 0 40px; font-size: 1.5rem; }
  .sheet-desc { text-align: center; }
  .done-actions { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion: keep everything, drop the travel ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Title is painted on the first frame; it only travels in */
.hero h1 { animation: rise-title .8s var(--ease) both; }
@keyframes rise-title { from { transform: translateY(18px); } }
