:root {
  color-scheme: light;
  --paper: #fff5df;
  --paper-deep: #f7e8c7;
  --ink: #3a3027;
  --muted: #786b5d;
  --tomato: #e96150;
  --orange: #e99d57;
  --leaf: #668d4d;
  --blue: #7f9db0;
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { min-width: 320px; margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--tomato); outline-offset: 4px; }

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1240px, calc(100% - 64px));
  height: 86px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid rgba(79, 60, 39, 0.13);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; }
.brand-bowl { width: 36px; height: 36px; color: var(--tomato); }
.top-note { display: inline-flex; align-items: center; gap: 8px; color: var(--tomato); font-size: 13px; font-weight: 850; }
.top-note span { font-size: 19px; }

.hero {
  position: relative;
  display: grid;
  width: min(1240px, calc(100% - 64px));
  min-height: min(730px, calc(100svh - 86px));
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  margin: 0 auto;
  padding: 24px 0 38px;
}

.hero-copy { position: relative; z-index: 1; padding: 28px 0 30px 28px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: #867765; font-size: 11px; font-weight: 900; letter-spacing: 0.15em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(102, 141, 77, 0.12); }
h1 { margin: 0; font-size: clamp(58px, 6.1vw, 84px); font-weight: 950; line-height: 1.1; letter-spacing: 0; }
h1 span { color: var(--tomato); }
.intro { margin: 25px 0 0; color: var(--muted); font-size: 17px; font-weight: 550; line-height: 1.9; }
.menu-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding-bottom: 7px; border-bottom: 2px solid var(--orange); font-size: 14px; font-weight: 850; transition: gap 180ms ease; }
.menu-link:hover { gap: 19px; }
.menu-link span { color: var(--tomato); font-size: 20px; }
.hand-note { margin: 40px 0 0 18px; color: #a27b55; font-family: "KaiTi", "STKaiti", serif; font-size: 15px; transform: rotate(-5deg); }

.meal-art { position: relative; width: min(100%, 620px); justify-self: end; isolation: isolate; perspective: 1100px; touch-action: pan-y; transform-style: preserve-3d; }
.meal-art.is-targeted [data-depth] { transition: none; }
.meal-art::before { position: absolute; z-index: -2; top: 9%; left: 7%; width: 86%; aspect-ratio: 1; border-radius: 48% 52% 47% 53%; background: #fbe9c0; content: ""; translate: var(--backdrop-x, 0px) var(--backdrop-y, 0px) -35px; transform: rotate(-10deg); transition: translate 180ms ease-out; }
.meal-art::after { position: absolute; z-index: -1; right: 17%; bottom: 9%; left: 17%; height: 8%; border-radius: 50%; background: rgba(106, 72, 42, 0.2); content: ""; filter: blur(18px); transform: translateX(var(--shadow-shift, 0px)) translateZ(-20px); transition: transform 180ms ease-out; }
.meal-svg { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 20px 18px rgba(106, 72, 42, 0.1)); transform: translateZ(8px); transform-style: preserve-3d; }
[data-depth] { translate: var(--depth-x, 0px) var(--depth-y, 0px) var(--depth-z, 0px); }
.art-sticker { position: absolute; z-index: 1; display: grid; place-items: center; color: #fff8e6; font-size: 13px; font-weight: 950; }
.sticker-one { top: 12%; right: 9%; width: 62px; height: 62px; border-radius: 50%; background: var(--tomato); transform: translateZ(48px) rotate(11deg); }
.sticker-two { top: 35%; left: 2%; width: 62px; height: 48px; border: 2px solid #9e7f50; border-radius: 50%; color: #9e7f50; font: inherit; font-size: 12px; transform: translateZ(54px) rotate(-13deg); }
.poke-button { padding: 0; background: var(--paper); cursor: pointer; transition: color 150ms ease, background 150ms ease, scale 150ms ease; }
.poke-button:hover { color: #fff8e6; background: var(--leaf); scale: 1.08; }
.poke-button:active { scale: 0.94; }
.poke-button:focus-visible { outline: 3px solid var(--tomato); outline-offset: 4px; }
.art-caption { position: absolute; right: 7%; bottom: 3%; color: #9a7651; font-family: "KaiTi", "STKaiti", serif; font-size: 15px; transform: rotate(-4deg); }

.steam { transform-box: fill-box; transform-origin: center bottom; animation: steam-rise 2.6s ease-in-out infinite; }
.steam-b { animation-delay: 0.65s; }
.steam-c { animation-delay: 1.3s; }
.rice-friend { transform-box: fill-box; transform-origin: center bottom; animation: bowl-bob 3.8s ease-in-out infinite; }
.blink-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.egg { transform-box: fill-box; transform-origin: center bottom; animation: egg-wiggle 4.2s ease-in-out infinite; }
.tomato { transform-box: fill-box; transform-origin: center; animation: tomato-wiggle 5.3s ease-in-out infinite; }
.greens { transform-box: fill-box; transform-origin: center bottom; animation: greens-wave 3.7s ease-in-out infinite; }
.sparkle-left { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.sparkle-right { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out 0.8s infinite; }
.crumb-one { animation: crumb-float 3.2s ease-in-out infinite; }
.crumb-two { animation: crumb-float 3.2s ease-in-out 1.2s infinite; }
[data-depth] { transition: translate 140ms ease-out; }
.collectible.is-collecting { animation: ingredient-flight 580ms cubic-bezier(.2, .75, .3, 1) forwards !important; pointer-events: none; }
.collectible.is-collected { visibility: hidden; pointer-events: none; }
.collectible.is-highlighted { filter: drop-shadow(0 5px 8px rgba(67, 54, 35, 0.3)) brightness(1.08); }
.collect-hitarea { position: absolute; z-index: 2; display: grid; width: 68px; height: 68px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transform: translate(-50%, -50%); touch-action: manipulation; }
.collect-hitarea[hidden] { display: none; }
.hit-tomato { top: 51%; left: 80%; }
.hit-greens { top: 55%; left: 23%; width: 72px; height: 76px; }
.hit-egg { top: 65%; left: 74%; width: 64px; height: 60px; }
.collect-hitarea:hover { background: rgba(255, 255, 255, 0.18); outline: 2px solid rgba(255, 255, 255, 0.62); }
.collect-hitarea:focus-visible { background: rgba(255, 255, 255, 0.22); outline: 3px solid var(--tomato); outline-offset: 2px; }
.table-action-hitarea { position: absolute; z-index: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; }
.hit-bowl { top: 78%; left: 50%; width: 22%; height: 10%; transform: translate(-50%, -50%); }
.hit-chopsticks { top: 31%; left: 75%; width: 10%; height: 29%; transform: translate(-50%, -50%) rotate(-13deg); }
.table-action-hitarea:hover { background: rgba(255,255,255,.08); }
.table-action-hitarea:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }
.interaction-bubble { position: absolute; z-index: 4; top: 20%; left: 51%; max-width: 190px; padding: 9px 13px; border: 2px solid #d7bc8c; border-radius: 17px; background: #fff9e9; color: #634c3a; font-size: 13px; font-weight: 800; line-height: 1.35; text-align: center; box-shadow: 0 5px 12px rgba(82,60,39,.12); transform: translate(-50%, -100%) translateZ(54px); pointer-events: none; }
.interaction-bubble::after { position: absolute; bottom: -7px; left: 50%; width: 11px; height: 11px; border-right: 2px solid #d7bc8c; border-bottom: 2px solid #d7bc8c; background: #fff9e9; content: ""; transform: translateX(-50%) rotate(45deg); }
.interaction-bubble[hidden] { display: none; }
.interaction-bubble.is-popping { animation: bubble-pop 230ms cubic-bezier(.2,.8,.25,1.25) both; }
.chopsticks.is-wiggling { transform-box: fill-box; transform-origin: 50% 65%; animation: chopsticks-wiggle 440ms ease-in-out; }
.bowl.is-ringing { transform-box: fill-box; transform-origin: center bottom; animation: bowl-ring 520ms cubic-bezier(.2,.8,.3,1.2); }
.collect-hud { position: relative; z-index: 2; grid-column: 2; width: min(100%, 620px); justify-self: center; margin-top: -24px; padding: 0 20px; text-align: center; }
.collect-heading { display: flex; align-items: center; justify-content: center; gap: 10px; color: #716250; font-size: 13px; font-weight: 750; }
.collect-heading strong { color: var(--tomato); font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ingredient-progress { display: flex; justify-content: center; gap: clamp(14px, 3vw, 28px); margin: 10px 0 0; padding: 0; list-style: none; }
.ingredient-progress li { display: inline-flex; align-items: center; gap: 6px; color: #6f6251; font-size: 12px; transition: color 180ms ease, transform 180ms ease; }
.ingredient-progress li > span { display: grid; width: 24px; height: 24px; place-items: center; filter: grayscale(1); opacity: 0.55; transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease; }
.ingredient-progress li.is-collected { color: var(--leaf); }
.ingredient-progress li.is-collected > span { filter: none; opacity: 1; transform: scale(1.14) rotate(-8deg); }
.collect-message { min-height: 1.4em; margin: 6px 0 0; color: #76644f; font-family: "KaiTi", "STKaiti", serif; font-size: 13px; }
.meal-art.is-complete .reward-crown { opacity: 1; animation: crown-pop 580ms cubic-bezier(.2, .9, .3, 1.25) both; }
.reward-crown { opacity: 0; transform-box: fill-box; transform-origin: center bottom; }
.meal-art.is-complete .sparkle { fill: #e9aa3e; }
.rice-happy-mouth { opacity: 0; }
.meal-art.is-happy .rice-mouth { opacity: 0; }
.meal-art.is-happy .rice-happy-mouth { opacity: 1; }
.meal-art.is-happy .rice-friend { animation: rice-happy 620ms cubic-bezier(.2, .8, .25, 1.3); }
.meal-art.is-happy .sparkle { animation-duration: 550ms; animation-iteration-count: 1; }
.meal-art.is-happy .poke-button { color: #fff8e6; background: var(--leaf); }

.scroll-cue { position: absolute; bottom: 23px; left: 50%; display: flex; align-items: center; gap: 10px; color: #968673; font-size: 12px; font-weight: 750; transform: translateX(-50%); }
.scroll-cue span { display: block; width: 1px; height: 27px; background: var(--orange); transform-origin: top; animation: cue 1.8s ease-in-out infinite; }

.menu-section { padding: 100px max(32px, calc((100vw - 1184px) / 2)) 30px; background: #f4e6c7; }
.section-heading { text-align: center; }
.section-heading .eyebrow { justify-content: center; margin-bottom: 14px; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); font-weight: 900; line-height: 1.2; }
.section-heading > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 16px; }
.menu-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 62px; }
.menu-item { position: relative; display: flex; min-height: 194px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 34px; overflow: hidden; border-right: 1px solid rgba(79, 60, 39, 0.17); }
.menu-item:last-child { border-right: 0; }
.dish-number { color: #887964; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; }
.dish-name { margin-top: 13px; font-size: 27px; font-weight: 900; }
.dish-note { margin-top: 8px; color: #726556; font-size: 14px; }
.dish-doodle { position: absolute; top: 12px; right: 28px; color: var(--tomato); font-size: 64px; font-weight: 900; opacity: 0.17; transform: rotate(-12deg); transition: transform 220ms ease, opacity 220ms ease; }
.menu-item:hover .dish-doodle { opacity: 0.5; transform: rotate(4deg) scale(1.12); }
.side-dish .dish-doodle { color: var(--leaf); }
.dessert .dish-doodle { color: #8172aa; }
.page-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 75px; padding: 24px 0; border-top: 1px solid rgba(79, 60, 39, 0.16); color: #776a59; font-size: 13px; }
.page-footer a { color: var(--tomato); font-weight: 850; }


@keyframes steam-rise {
  0%, 100% { opacity: 0.28; transform: translateY(8px) scaleY(0.88); }
  50% { opacity: 0.86; transform: translateY(-8px) scaleY(1.06); }
}
@keyframes bowl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes rice-happy { 0%, 100% { transform: translateY(0) scale(1); } 38% { transform: translateY(-17px) scale(1.08); } 70% { transform: translateY(3px) scale(.97); } }
@keyframes crown-pop { 0% { transform: translateY(10px) scale(.35) rotate(-12deg); } 72% { transform: translateY(-3px) scale(1.12) rotate(4deg); } 100% { transform: translateY(0) scale(1) rotate(0); } }
@keyframes ingredient-flight {
  0% { translate: var(--depth-x, 0px) var(--depth-y, 0px) var(--depth-z, 0px); scale: 1; opacity: 1; }
  76% { opacity: 1; }
  100% { translate: calc(var(--depth-x, 0px) + var(--collect-x, 0px)) calc(var(--depth-y, 0px) + var(--collect-y, 0px)) 20px; scale: .08; opacity: 0; }
}
@keyframes bubble-pop { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }
@keyframes chopsticks-wiggle { 0%, 100% { rotate: 0deg; } 28% { rotate: -6deg; } 60% { rotate: 5deg; } }
@keyframes bowl-ring { 0%, 100% { rotate: 0deg; } 24% { rotate: -4deg; } 55% { rotate: 4deg; } 78% { rotate: -2deg; } }
@keyframes blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(0.12); } }
@keyframes egg-wiggle { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(0); } 51% { transform: rotate(4deg); } 57% { transform: rotate(-3deg); } 63% { transform: rotate(0); } }
@keyframes tomato-wiggle { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(5deg) translateY(-5px); } }
@keyframes greens-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.45; transform: scale(0.82) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.12) rotate(8deg); } }
@keyframes crumb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes cue { 0%, 100% { opacity: 0.35; transform: scaleY(0.65); } 50% { opacity: 1; transform: scaleY(1); } }

@media (min-width: 1500px) {
  .hero { min-height: min(820px, calc(100svh - 86px)); }
}

@media (max-width: 900px) {
  .topbar, .hero { width: min(100% - 40px, 700px); }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-left: 0; }
  h1 { font-size: clamp(50px, 8vw, 70px); }
  .menu-section { padding-right: 30px; padding-left: 30px; }
  .menu-item { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 640px) {
  .topbar { width: calc(100% - 36px); height: 72px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand-bowl { width: 31px; height: 31px; }
  .top-note { display: none; }
  .hero { width: calc(100% - 36px); min-height: auto; grid-template-columns: 1fr; padding: 56px 0 76px; }
  .hero-copy { padding: 0 7px; }
  .eyebrow { margin-bottom: 17px; font-size: 10px; }
  h1 { font-size: clamp(54px, 14vw, 72px); }
  .intro { margin-top: 18px; font-size: 15px; }
  .menu-link { margin-top: 22px; }
  .hand-note { display: none; }
  .meal-art { width: min(100%, 490px); margin: 22px auto 0; }
  .collect-hud { grid-column: 1; width: 100%; margin: 2px auto 0; padding: 0; }
  .hit-tomato { width: 48px; height: 48px; }
  .hit-greens { width: 56px; height: 60px; }
  .hit-egg { top: 67%; left: 70.5%; width: 48px; height: 48px; }
  .hit-bowl { width: 24%; height: 8%; }
  .hit-chopsticks { width: 11%; height: 30%; }
  .sticker-one { top: 11%; right: 7%; width: 52px; height: 52px; font-size: 11px; }
  .sticker-two { top: 35%; left: 0; width: 42px; height: 42px; }
  .art-caption { right: 5%; bottom: 2%; font-size: 13px; }
  .scroll-cue { bottom: 16px; }
  .menu-section { padding: 72px 22px 16px; }
  .section-heading > p:last-child { font-size: 14px; }
  .menu-list { grid-template-columns: 1fr; margin-top: 33px; }
  .menu-item { min-height: 138px; padding: 22px 17px; border-right: 0; border-bottom: 1px solid rgba(79, 60, 39, 0.17); }
  .menu-item:last-child { border-bottom: 0; }
  .dish-name { margin-top: 8px; font-size: 24px; }
  .dish-note { margin-top: 5px; font-size: 13px; }
  .dish-doodle { top: 24px; right: 22px; }
  .page-footer { margin-top: 35px; padding: 20px 0; font-size: 12px; }
  .ingredient-progress { gap: 15px; }
  .ingredient-progress li { gap: 4px; font-size: 11px; }
  .collect-message { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
