:root {
  color-scheme: light;
  /* Warm Sunlit Xiguan Teak & Porcelain Palette */
  --teak-deep: #2c1b12;
  --teak-dark: #3e271a;
  --teak-mid: #5a3a26;
  --teak-warm: #7a4e32;
  --brass: #e6b34d;
  --brass-bright: #f7d57e;
  --brass-dark: #9c6e21;
  --celadon: #4f8f7b;
  --celadon-dark: #346858;
  --celadon-soft: #e3f0ea;
  --vermilion: #d94e34;
  --vermilion-dark: #a63420;
  --vermilion-soft: #fbe6df;
  --cream: #fff9ee;
  --paper: #fffdf7;
  --ticket-paper: #fffaf0;
  --ink: #322016;
  --muted: #6f5746;
  --line: #e2d3ba;
  --wood-light: #e2b478;
  --wood-mid: #c68d4f;
  --wood-dark: #8c572b;
  --porcelain: #fffdf7;
  --chef-art: url("naiwa-chef.png");
  --bg-order-art: url("bg-gz-river.webp");
  --bg-prep-art: url("bg-prep.webp");
  --bg-heat-art: url("bg-heat.webp");
  --bg-serve-art: url("bg-serve.webp");
  --dish-shrimp-art: url("dish-shrimp.webp");
  --dish-ribs-art: url("dish-ribs.webp");
  --dish-milkcurd-art: url("dish-milkcurd.webp");
  --dish-chicken-art: url("dish-chicken.webp");
  --shadow: 0 10px 28px rgba(42, 22, 10, 0.22);
  --font-display: "Songti SC", "STSong", "Noto Serif SC", Georgia, SimSun, serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* Appetizing Vector Food Assets (100% offline data URIs, cel-shaded with gloss) */
  --svg-shrimp-raw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M52 20C32 14 16 26 18 44C20 58 34 64 48 58C54 55 56 49 52 46C46 42 40 46 37 42C34 37 40 31 50 32C57 32 62 24 52 20Z' fill='%23cad6d2' stroke='%2343524d' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M28 24C36 19 45 19 52 22' stroke='%23f6faf9' stroke-width='3.2' stroke-linecap='round' opacity='0.88'/%3E%3Cpath d='M25 32L35 37M21 43L33 44M27 54L38 50' stroke='%2381928c' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M53 56L68 60L62 49Z' fill='%23b1c0ba' stroke='%2343524d' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='53' cy='25' r='2.8' fill='%231d2421'/%3E%3Ccircle cx='54' cy='24' r='1' fill='%23ffffff'/%3E%3Cpath d='M58 21C66 15 72 15 76 18M57 25C65 23 71 25 75 29' stroke='%236c7a74' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --svg-shrimp-cooked: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M52 18C30 12 14 26 17 45C19 60 35 66 50 58C56 54 57 47 52 44C46 40 39 45 36 40C33 35 40 29 50 30C58 30 63 22 52 18Z' fill='%23f77643' stroke='%23782912' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M24 31L34 36M20 43L33 44M27 55L39 50' stroke='%23fff1e0' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M26 23C34 17 45 17 52 21' stroke='%23fff7ed' stroke-width='3.2' stroke-linecap='round' opacity='0.92'/%3E%3Cpath d='M52 56L69 60L62 48Z' fill='%23e34d24' stroke='%23782912' stroke-width='2.5' stroke-linejoin='round'/%3E%3Ccircle cx='53' cy='24' r='2.6' fill='%23291108'/%3E%3Ccircle cx='54' cy='23' r='1' fill='%23ffffff'/%3E%3C/svg%3E");
  --svg-shrimp-over: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M48 22C30 18 18 30 22 46C25 58 40 62 50 54C55 50 54 44 49 42C44 40 40 44 38 40C36 36 41 31 48 31C54 31 57 24 48 22Z' fill='%23a64228' stroke='%234d1a0d' stroke-width='3' stroke-linejoin='round'/%3E%3Cpath d='M27 35L35 39M26 46L36 46' stroke='%23d17a5e' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M50 53L63 56L58 47Z' fill='%237d2b16' stroke='%234d1a0d' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --svg-dip-saucer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='34' fill='%23fffdf7' stroke='%233a2518' stroke-width='3.5'/%3E%3Ccircle cx='40' cy='40' r='26' fill='%23f2e7d0' stroke='%234d8c78' stroke-width='2.2'/%3E%3Ccircle cx='40' cy='40' r='20' fill='%23d89328'/%3E%3Ccircle cx='40' cy='40' r='15' fill='%23eab944' opacity='0.85'/%3E%3Ccircle cx='34' cy='36' r='4.8' fill='%23499646'/%3E%3Ccircle cx='46' cy='35' r='4.5' fill='%2364b55c'/%3E%3Ccircle cx='43' cy='46' r='4.8' fill='%233e823d'/%3E%3Cpath d='M33 44L47 41M36 39L44 45' stroke='%23fae48e' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M29 31Q40 24 51 31' stroke='%23fff9db' stroke-width='2.8' fill='none' stroke-linecap='round' opacity='0.88'/%3E%3C/svg%3E");
  --svg-dip-mix: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E%3Cellipse cx='40' cy='32' rx='30' ry='20' fill='%23ebc24d'/%3E%3Ccircle cx='28' cy='28' r='6' fill='%234a9948'/%3E%3Ccircle cx='44' cy='24' r='5.5' fill='%2363b85a'/%3E%3Ccircle cx='54' cy='34' r='6' fill='%233e853d'/%3E%3Ccircle cx='38' cy='39' r='5.5' fill='%2354a84e'/%3E%3Ccircle cx='25' cy='38' r='4' fill='%23fae596'/%3E%3Ccircle cx='50' cy='24' r='3.5' fill='%23fae596'/%3E%3C/svg%3E");
  --svg-pot-aromatics: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cellipse cx='34' cy='36' rx='12' ry='7' transform='rotate(-18 34 36)' fill='%23f7dc88' stroke='%23b5882a' stroke-width='2'/%3E%3Cellipse cx='82' cy='46' rx='11' ry='6.5' transform='rotate(24 82 46)' fill='%23f7dc88' stroke='%23b5882a' stroke-width='2'/%3E%3Cpath d='M52 24Q66 18 76 26Q64 34 52 24Z' fill='%23489c46' stroke='%23275e25' stroke-width='2'/%3E%3Cpath d='M38 56Q52 50 64 58Q50 64 38 56Z' fill='%235cb356' stroke='%23275e25' stroke-width='2'/%3E%3C/svg%3E");
  --svg-rib-raw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 90'%3E%3Crect x='10' y='10' width='50' height='70' rx='18' fill='%23e89486' stroke='%2378362d' stroke-width='3.5'/%3E%3Cpath d='M16 26Q35 18 54 28M16 58Q35 50 54 60' stroke='%23fde4de' stroke-width='4.2' fill='none' stroke-linecap='round' opacity='0.88'/%3E%3Cellipse cx='35' cy='45' rx='11' ry='8.5' fill='%23fff7ee' stroke='%23b57265' stroke-width='2.5'/%3E%3Cellipse cx='35' cy='45' rx='4.5' ry='3' fill='%23e3b4a8'/%3E%3C/svg%3E");
  --svg-rib-marinated: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 90'%3E%3Crect x='10' y='10' width='50' height='70' rx='18' fill='%23d68965' stroke='%2363301c' stroke-width='3.5'/%3E%3Cpath d='M17 24Q35 16 53 26' stroke='%23f9d5b4' stroke-width='3.6' fill='none' stroke-linecap='round' opacity='0.8'/%3E%3Cellipse cx='35' cy='45' rx='10' ry='8' fill='%23faebd7' stroke='%23995f44' stroke-width='2.5'/%3E%3Cellipse cx='24' cy='31' rx='4.2' ry='2.8' fill='%232b1710'/%3E%3Cellipse cx='46' cy='58' rx='4' ry='2.6' fill='%232b1710'/%3E%3Cpath d='M22 60Q32 54 40 62' stroke='%23e3842d' stroke-width='3.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --svg-rib-cooked: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 90'%3E%3Crect x='10' y='10' width='50' height='70' rx='18' fill='%23c46c32' stroke='%234f230c' stroke-width='3.5'/%3E%3Cpath d='M18 22Q35 15 52 24' stroke='%23ffe3ba' stroke-width='4.2' fill='none' stroke-linecap='round' opacity='0.9'/%3E%3Cellipse cx='35' cy='45' rx='9.5' ry='7.5' fill='%23f7e3c8' stroke='%238c522c' stroke-width='2.5'/%3E%3Cellipse cx='24' cy='32' rx='4.8' ry='3.2' fill='%232b1710'/%3E%3Cellipse cx='46' cy='58' rx='4.8' ry='3.2' fill='%232b1710'/%3E%3Cellipse cx='46' cy='34' rx='3.8' ry='2.6' fill='%232b1710'/%3E%3Cpath d='M22 60Q32 54 40 62' stroke='%23f09335' stroke-width='3.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --svg-rib-over: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 90'%3E%3Crect x='13' y='13' width='44' height='64' rx='15' fill='%237d4123' stroke='%23331508' stroke-width='3.5'/%3E%3Cellipse cx='35' cy='45' rx='8' ry='6' fill='%23d4b898' stroke='%2359331c' stroke-width='2'/%3E%3Cellipse cx='25' cy='31' rx='4' ry='2.8' fill='%231c0d07'/%3E%3Cellipse cx='45' cy='58' rx='4' ry='2.8' fill='%231c0d07'/%3E%3C/svg%3E");
  --svg-bean-paste: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E%3Cellipse cx='40' cy='32' rx='26' ry='17' fill='%236b3b22'/%3E%3Ccircle cx='30' cy='28' r='4.2' fill='%2324120a'/%3E%3Ccircle cx='46' cy='26' r='3.8' fill='%2324120a'/%3E%3Ccircle cx='39' cy='38' r='4.2' fill='%2324120a'/%3E%3Cpath d='M28 36Q38 32 48 37M44 29Q52 25 58 30' stroke='%23ed9134' stroke-width='3.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --svg-starch-thin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E%3Cellipse cx='40' cy='32' rx='28' ry='18' fill='rgba(255,253,248,0.68)' stroke='%23e8dec9' stroke-width='2'/%3E%3C/svg%3E");
  --svg-starch-thick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E%3Cpath d='M14 36C20 14 34 10 40 12C48 10 62 16 66 36C58 48 22 48 14 36Z' fill='%23ffffff' stroke='%23d9ceba' stroke-width='2.5'/%3E%3Cpath d='M28 24Q40 18 52 24' stroke='%23e9e2d2' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --svg-scallion-scatter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90'%3E%3Ccircle cx='28' cy='30' r='7' fill='%23469c44' stroke='%23265c25' stroke-width='2'/%3E%3Ccircle cx='28' cy='30' r='2.5' fill='%23e8f7d7'/%3E%3Ccircle cx='54' cy='24' r='6' fill='%2363ba5b' stroke='%23265c25' stroke-width='2'/%3E%3Ccircle cx='54' cy='24' r='2' fill='%23e8f7d7'/%3E%3Ccircle cx='62' cy='52' r='7.5' fill='%23469c44' stroke='%23265c25' stroke-width='2'/%3E%3Ccircle cx='62' cy='52' r='2.5' fill='%23e8f7d7'/%3E%3Ccircle cx='36' cy='60' r='6.5' fill='%2373c967' stroke='%23265c25' stroke-width='2'/%3E%3Ccircle cx='36' cy='60' r='2' fill='%23e8f7d7'/%3E%3Ccircle cx='46' cy='42' r='5.5' fill='%23469c44' stroke='%23265c25' stroke-width='2'/%3E%3C/svg%3E");

  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--teak-deep);
  font-size: 16px;
  line-height: 1.45;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  min-width: 240px;
  background: var(--teak-deep);
}

html:has(body.is-paw-demo-theater),
body.is-paw-demo-theater {
  min-width: 0 !important;
}

main,
#app {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  overflow-x: clip;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--vermilion);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.22;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.loading,
.noscript {
  padding: 32px;
  color: var(--cream);
  text-align: center;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--vermilion);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   Buttons & Tactile Controls
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 2px solid var(--teak-mid);
  border-radius: 11px;
  background: linear-gradient(180deg, #fffdf8 0%, #f5ead5 100%);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 3px 0 rgba(58, 37, 24, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.12s ease;
}

.btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #faefd9 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(58, 37, 24, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(58, 37, 24, 0.3);
}

.btn-primary {
  border-color: var(--vermilion-dark);
  background: linear-gradient(180deg, #e76145 0%, #cc432a 100%);
  color: #fffdf7;
  box-shadow: 0 3px 0 #7f2515, inset 0 1px 0 rgba(255, 224, 200, 0.5);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #f06d51 0%, #d84b31 100%);
  box-shadow: 0 4px 0 #7f2515, inset 0 1px 0 rgba(255, 224, 200, 0.6);
}

.btn-quiet {
  border-color: #c8b497;
  background: linear-gradient(180deg, #fbf5e8 0%, #efe3cc 100%);
  color: var(--ink);
  font-weight: 650;
}

.btn-compact {
  min-height: 36px;
  padding: 5px 12px;
  font-size: 0.84rem;
  border-radius: 9px;
}

.btn[aria-pressed="true"]:not(.btn-primary) {
  background: linear-gradient(180deg, #fae094 0%, #e8b54c 100%);
  border-color: var(--teak-dark);
  color: var(--teak-deep);
}

.btn:disabled {
  border-color: #cfc4b2;
  background: #eae2d4;
  color: #8c7c6d;
  box-shadow: none;
  opacity: 1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   Full-Viewport Game Shell (Warm Lacquered Teak Frame)
   ========================================================= */
.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--teak-deep);
  overflow: hidden;
}

/* Slim Top HUD Bar */
.hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px max(12px, env(safe-area-inset-right)) 5px max(12px, env(safe-area-inset-left));
  min-height: 46px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 226, 175, 0.03) 0 40px, transparent 40px 80px),
    linear-gradient(180deg, #4b3020 0%, #362115 100%);
  border-bottom: 2px solid #22130b;
  box-shadow: inset 0 -1px 0 rgba(230, 179, 77, 0.25), 0 3px 10px rgba(0, 0, 0, 0.28);
  color: var(--cream);
  z-index: 15;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.hud-brand-btn {
  appearance: none;
  margin: 0;
  padding: 2px 7px 2px 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.hud-brand-btn:hover {
  background: rgba(255, 224, 152, 0.12);
  border-color: rgba(230, 179, 77, 0.45);
}

.hud-emblem {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.hud-brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.hud-brand strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  color: var(--brass-bright);
  text-shadow: 0 1px 2px rgba(24, 12, 5, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-brand span {
  font-size: 0.78rem;
  color: #e6d1b3;
  font-weight: 700;
  white-space: nowrap;
}

.dish-photo-shrimp {
  background-image: var(--dish-shrimp-art);
  background-size: cover;
  background-position: center;
}

.dish-photo-ribs {
  background-image: var(--dish-ribs-art);
  background-size: cover;
  background-position: center;
}

.dish-photo-milkcurd {
  background-image: var(--dish-milkcurd-art);
  background-size: cover;
  background-position: center;
}

.dish-photo-chicken {
  background-image: var(--dish-chicken-art);
  background-size: cover;
  background-position: center;
}

/* Paw native WebViewActivity top-right capsule clearance */
body.has-paw-capsule .hud-bar {
  padding-right: 112px;
}

body.has-paw-capsule-rotated .hud-bar {
  padding-left: 72px;
  padding-right: 10px;
}

@media (max-width: 640px) {
  body.has-paw-capsule .hud-bar {
    padding-right: 92px;
  }
}

.hud-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.hud-wallet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #25150c, #311d11);
  border: 1.5px solid rgba(230, 179, 77, 0.55);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
  font-variant-numeric: tabular-nums;
}

.hud-wallet i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff0b3 0%, #f0bd4f 55%, #b87f1e 100%);
  color: #4a2d08;
  border: 1px solid #ffe7a3;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hud-wallet strong {
  font-size: 0.96rem;
  color: #fff6e0;
}

.hud-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #569984, #3d7866);
  border: 1px solid rgba(255, 250, 235, 0.3);
  color: #fffdf6;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 10px;
  border: 1.5px solid #8a6242;
  background: linear-gradient(180deg, #5e3d28 0%, #462c1c 100%);
  color: var(--cream);
  font-size: 0.82rem;
  box-shadow: 0 2px 0 #21120a, inset 0 1px 0 rgba(255, 224, 178, 0.2);
}

.hud-audio-svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.btn-audio-toggle.is-muted {
  opacity: 0.78;
  border-color: #6b4e38;
}

.kbd-cap {
  display: none;
  padding: 0 3.5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 240, 204, 0.42);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0.72;
}

@media (hover: hover) and (pointer: fine) {
  .kbd-cap {
    display: inline-block;
  }

  .zone-tab[aria-pressed="true"] .kbd-cap,
  .hud-actions .btn[aria-pressed="true"]:not(.btn-primary) .kbd-cap {
    border-color: rgba(50, 32, 22, 0.35);
    opacity: 0.78;
  }
}

.hud-actions .btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #704930 0%, #563723 100%);
  border-color: var(--brass);
}

.hud-actions .btn[aria-pressed="true"]:not(.btn-primary) {
  background: linear-gradient(180deg, #f8d77f 0%, #dfaa3e 100%);
  border-color: #fff1c2;
  color: var(--teak-deep);
}

.hud-actions .btn-primary {
  background: linear-gradient(180deg, #e76145 0%, #c74128 100%);
  border-color: #f9c8a8;
  color: #fff;
}

.hud-actions .btn:focus-visible {
  outline-color: var(--brass-bright);
}

.recovery-banner {
  padding: 5px 12px;
  background: #fce7ad;
  color: var(--ink);
  font-size: 0.8rem;
  border-bottom: 1px solid #d4b263;
}

/* =========================================================
   Play Stage (Workbench + Persistent Paper Ticket Rail)
   ========================================================= */
.play-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 192px;
  min-height: 0;
  overflow: hidden;
  background: #281810;
}

.stage-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bench-guide-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 10px;
  border: 1.5px solid rgba(230, 179, 77, 0.56);
  background: linear-gradient(180deg, #4b3120 0%, #331f14 100%);
  color: #fff5df;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 3px 8px rgba(18, 8, 2, 0.34), inset 0 1px 0 rgba(255, 240, 206, 0.16);
}

.bench-guide-bar[hidden] {
  display: none;
}

.bench-guide-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe788 0%, #eab33d 100%);
  color: #361d09;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.bench-guide-bar[data-kind="snip"] .bench-guide-badge {
  background: linear-gradient(180deg, #ffba78 0%, #e67628 100%);
  color: #fffdf6;
}

.bench-guide-bar[data-kind="hold"] .bench-guide-badge {
  background: linear-gradient(180deg, #8be8f0 0%, #3293a6 100%);
  color: #092a32;
}

.bench-guide-bar[data-kind="tap"] .bench-guide-badge {
  background: linear-gradient(180deg, #ff997d 0%, #d44d31 100%);
  color: #fffdf6;
}

.bench-guide-bar[data-kind="wait"] .bench-guide-badge {
  background: linear-gradient(180deg, #98e0c2 0%, #438f73 100%);
  color: #0b2d22;
}

.bench-guide-bar[data-kind="switch"] .bench-guide-badge {
  background: linear-gradient(180deg, #ffe788 0%, #4d9e82 100%);
  color: #162e23;
}

.bench-guide-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bench-guide-jump {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid #ffd875;
  background: linear-gradient(180deg, #fae296 0%, #e5ae3e 100%);
  color: #2f1907;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(15, 7, 2, 0.35);
}

.bench-guide-jump:hover {
  background: linear-gradient(180deg, #ffeca8 0%, #efbd52 100%);
}

.bench-guide-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
  overflow: visible;
}

body.is-dragging-prop .bench-guide-arc {
  opacity: 0.3;
}

.bench-guide-arc-bg {
  stroke: rgba(58, 37, 24, 0.65);
  stroke-width: 6.5px;
  stroke-linecap: round;
  stroke-dasharray: 9 7;
}

.bench-guide-arc-fg {
  stroke: #ffe56e;
  stroke-width: 3.4px;
  stroke-linecap: round;
  stroke-dasharray: 9 7;
  animation: guide-arc-dash 0.9s linear infinite;
}

@keyframes guide-arc-dash {
  to { stroke-dashoffset: -32; }
}

.truck-workbench {
  position: relative;
  isolation: isolate;
  flex: 1;
  width: 100%;
  height: 100%;
  container-type: size;
  overflow: hidden;
  border: 3px solid #6b472d;
  border-radius: 14px;
  background: #b8824b;
  box-shadow:
    inset 0 0 0 2px rgba(255, 240, 206, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Persistent Right Paper Ticket Rail (Dim-Sum Order Slip)
   ========================================================= */
.ticket-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 9px 9px 5px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 224, 175, 0.025) 0 18px, transparent 18px 36px),
    linear-gradient(180deg, #3c2619 0%, #2b1a10 100%);
  border-left: 2px solid #593a26;
  min-height: 0;
  overflow-y: auto;
}

.paper-ticket {
  position: relative;
  padding: 15px 10px 14px;
  border-radius: 5px 5px 3px 3px;
  background:
    repeating-linear-gradient(180deg, transparent 0 23px, rgba(191, 166, 126, 0.2) 23px 24px),
    linear-gradient(180deg, #fffdf7 0%, #fbf2de 100%);
  color: var(--ink);
  border: 1.5px solid #d9c59e;
  border-top: 3px solid var(--vermilion);
  border-bottom: 0;
  box-shadow: 0 6px 14px rgba(18, 9, 4, 0.42);
}

.paper-ticket::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -6px;
  height: 7px;
  background: radial-gradient(circle at 6px 7px, transparent 5px, #fbf2de 5.5px) 0 0 / 12px 7px repeat-x;
  pointer-events: none;
}

.paper-ticket.is-late {
  border-color: var(--vermilion);
  box-shadow: 0 0 0 2px rgba(217, 78, 52, 0.48), 0 6px 14px rgba(18, 9, 4, 0.42);
}

.ticket-clip {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 44px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: linear-gradient(180deg, #f5d380 0%, #c48c2d 65%, #8a5e19 100%);
  border: 1.5px solid #4a2f0e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.paper-ticket-empty {
  text-align: center;
  padding: 16px 8px 12px;
}

.paper-ticket-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.ticket-kicker {
  margin-bottom: 4px;
  color: var(--vermilion);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ticket-sub {
  margin-bottom: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 5px;
  font-size: 0.7rem;
}

.ticket-mode {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--vermilion);
  color: #fffdf7;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ticket-id {
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ticket-dish {
  margin: 0 0 7px;
  padding-bottom: 5px;
  border-bottom: 1.5px dashed #cbb793;
  font-size: 1.04rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ticket-dish small {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--vermilion);
  font-weight: 900;
}

.ticket-reqs {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 5px;
}

.ticket-reqs li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.ticket-reqs li.is-done {
  color: var(--celadon-dark);
}

.ticket-reqs li b {
  margin-left: auto;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

/* Graphic icons on the paper ticket */
.req-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  gap: 1px;
}

.req-shrimp i {
  display: block;
  width: 7px;
  height: 10px;
  border: 2.2px solid #eb6b3f;
  border-left-color: transparent;
  border-radius: 50%;
}

.req-ribs i {
  display: block;
  width: 5px;
  height: 10px;
  border-radius: 2px;
  background: #b86c3b;
  border: 1px solid #633318;
}

.req-dip {
  width: 15px;
  height: 15px;
  margin-inline: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #539e4b 0 36%, #e8b848 38% 72%, #806845 78%);
  border: 1px solid #593f22;
}

.req-scallion {
  width: 15px;
  height: 15px;
  margin-inline: 3px;
  border-radius: 50%;
  background: repeating-linear-gradient(45deg, #3e8f42 0 3px, #85cc62 3px 6px);
  border: 1px solid #2b5e2d;
}

.req-box {
  width: 17px;
  height: 13px;
  margin-inline: 2px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f4dbb2 0 42%, #cf9d63 42% 100%);
  border: 1px solid #754e27;
}

.order-clock {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  padding-top: 6px;
  border-top: 1.5px dashed #cbb793;
  font-variant-numeric: tabular-nums;
}

.order-clock span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}

.order-clock strong {
  font-size: 1.06rem;
  color: var(--ink);
}

.order-clock small {
  font-size: 0.68rem;
  color: var(--muted);
}

.order-clock.is-late strong,
.order-clock.is-late small {
  color: var(--vermilion);
  font-weight: 800;
}

.rail-cue {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255, 245, 224, 0.1);
  border: 1px solid rgba(230, 179, 77, 0.28);
  color: var(--cream);
  font-size: 0.77rem;
  line-height: 1.4;
}

.rail-frog-actor {
  flex: 0 0 38px;
  width: 38px;
  height: 40px;
  padding: 0;
  border: 1.5px solid rgba(230, 179, 77, 0.36);
  border-radius: 10px;
  background: radial-gradient(circle, rgba(255, 244, 206, 0.22), rgba(52, 30, 18, 0.45));
  cursor: pointer;
  transition: transform 0.14s ease;
}

.rail-frog-actor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rail-cue-text {
  min-width: 0;
  flex: 1;
}

.rail-cue strong {
  display: block;
  color: var(--brass-bright);
  font-size: 0.8rem;
  margin-bottom: 3px;
}

.rail-cue p {
  margin: 0;
  color: #f3e4cc;
}

.rail-cue .inspection-text:not([hidden]) {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #fff6dc;
  border: 1px solid var(--brass);
  color: var(--ink);
  font-weight: 700;
  white-space: pre-line;
}

.rail-foot {
  margin-top: auto;
}

.rail-foot.is-confirming {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cancel-confirm-note {
  flex: 1 1 100%;
  font-size: 0.74rem;
  color: #f3dcc0;
  line-height: 1.3;
}

.rail-foot-stack {
  display: grid;
  gap: 6px;
}

.rail-foot .btn {
  width: 100%;
  background: rgba(255, 246, 228, 0.12);
  border-color: rgba(230, 179, 77, 0.36);
  color: #f7ead4;
  box-shadow: none;
}

.rail-foot .btn-primary {
  background: linear-gradient(180deg, #fae094 0%, #e5b044 100%);
  border-color: #7a5214;
  color: var(--teak-deep);
  box-shadow: 0 2px 0 #1f1108;
}

.rail-foot .btn:hover:not(:disabled) {
  background: rgba(255, 246, 228, 0.22);
}

.rail-foot .btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe8a8 0%, #f0be52 100%);
}

/* =========================================================
   Bottom Edge-Pinned 4-Station Dock (Illustrated Tabs)
   ========================================================= */
.kitchen-zones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 5px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: linear-gradient(180deg, #2b1a10 0%, #20130b 100%);
  border-top: 2px solid #593a26;
  z-index: 15;
}

.zone-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 6px 10px;
  border: 1.5px solid #573824;
  border-top: 4px solid transparent;
  border-radius: 10px;
  background: linear-gradient(180deg, #4b3120 0%, #382216 100%);
  color: #eddcc4;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: inset 0 1px 0 rgba(255, 228, 184, 0.14);
  transition: background 0.14s ease, transform 0.12s ease, color 0.12s ease;
}

.zone-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.9;
}

.zone-tab-order { border-top-color: #62b8a0; }
.zone-tab-prep { border-top-color: #e6b05c; }
.zone-tab-heat { border-top-color: #eb6644; }
.zone-tab-serve { border-top-color: #f6cf63; }

.zone-tab:hover {
  background: linear-gradient(180deg, #5c3d28 0%, #452b1c 100%);
  color: #fff8eb;
}

.zone-tab[aria-pressed="true"] {
  background: linear-gradient(180deg, #fffdf6 0%, #f6e7c9 100%);
  border-color: var(--brass);
  color: var(--teak-deep);
  box-shadow: 0 -2px 10px rgba(247, 213, 126, 0.25), inset 0 1px 0 #ffffff;
}

.zone-tab:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: -2px;
}

.zone-dot {
  display: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass-bright);
  box-shadow: 0 0 0 3px rgba(247, 213, 126, 0.38);
}

.zone-tab.has-cue {
  border-color: rgba(247, 213, 126, 0.72);
  box-shadow: 0 0 10px rgba(247, 213, 126, 0.28), inset 0 1px 0 rgba(255, 228, 184, 0.22);
}

.zone-tab.has-cue .zone-dot {
  display: inline-block;
  animation: cue-pulse 1.3s ease-in-out infinite;
}

.active-jump-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.active-jump-row .kitchen-ticket-help {
  margin: 0;
  flex: 1 1 180px;
}

.active-jump-btn {
  flex: 0 0 auto;
  min-height: 30px;
  font-size: 0.76rem;
}

@keyframes cue-pulse {
  0%, 100% { transform: scale(0.88); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* =========================================================
   Station 1: Order Window (Lingnan Pearl River + Milk-Frog Chef)
   ========================================================= */
.window-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: #f0dfbe;
}

.gz-backdrop-art {
  position: absolute;
  inset: 0;
  background: var(--bg-order-art) 28% 58% / cover no-repeat;
  transform: scale(1.015);
}

.gz-morning-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 240, 184, 0.42), transparent 52%),
    linear-gradient(90deg, rgba(255, 247, 224, 0.04) 0 42%, rgba(44, 24, 10, 0.14) 100%),
    linear-gradient(180deg, rgba(56, 30, 14, 0.2) 0, transparent 22%);
}

.gz-water-glint {
  position: absolute;
  left: 2%;
  bottom: 24%;
  width: 44%;
  height: 22%;
  opacity: 0.72;
}

.gz-water-glint i {
  display: block;
  width: 46%;
  height: 2px;
  margin: 12px 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 222, 0.85), transparent);
  animation: river-shimmer 4.2s ease-in-out infinite alternate;
}

.gz-water-glint i:nth-child(2) {
  width: 34%;
  margin-left: 34%;
  animation-delay: -1.4s;
}

.gz-water-glint i:nth-child(3) {
  width: 28%;
  margin-left: 18%;
  animation-delay: -2.6s;
}

@keyframes river-shimmer {
  from { transform: translateX(-6px); opacity: 0.45; }
  to { transform: translateX(8px); opacity: 0.92; }
}

.stall-awning {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(24px, 7.6cqh, 42px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0 18%, transparent 18% 72%, rgba(56, 20, 10, 0.28) 100%),
    repeating-linear-gradient(90deg, #d84b32 0 36px, #fff8eb 36px 72px);
  border-bottom: 3px solid var(--teak-dark);
  box-shadow: 0 7px 18px rgba(42, 22, 10, 0.34);
  z-index: 2;
}

.stall-awning::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  background:
    radial-gradient(circle at 18px 0, #d84b32 14.5px, transparent 15.5px) 0 0 / 72px 10px repeat-x,
    radial-gradient(circle at 54px 0, #fff8eb 14.5px, transparent 15.5px) 0 0 / 72px 10px repeat-x;
  filter: drop-shadow(0 3px 2px rgba(42, 22, 10, 0.25));
}

.stall-lantern {
  position: absolute;
  top: clamp(28px, 8.8cqh, 46px);
  width: clamp(22px, 3cqw, 30px);
  height: clamp(28px, 4.8cqh, 40px);
  border-radius: 48% 48% 46% 46%;
  background:
    radial-gradient(circle at 42% 38%, #ffe594 0%, #ea5d3c 55%, #a12916 100%);
  border: 2px solid var(--teak-dark);
  box-shadow:
    inset 0 3px 0 #f4ca64,
    inset 0 -3px 0 #f4ca64,
    0 4px 16px rgba(242, 124, 48, 0.56);
  transform-origin: 50% 0;
  animation: lantern-sway 4.8s ease-in-out infinite alternate;
  z-index: 2;
}

.stall-lantern::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 3px;
  height: 11px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f2c45e, #d94e34);
  border-radius: 0 0 2px 2px;
}

@keyframes lantern-sway {
  from { transform: rotate(-2.2deg); }
  to { transform: rotate(2.2deg); }
}

.stall-lantern-l { left: 27%; }
.stall-lantern-r { right: 3.5%; animation-delay: -2.1s; }

.stall-sign {
  position: absolute;
  top: clamp(32px, 9.8cqh, 52px);
  left: 3.5%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 2.5px solid var(--brass);
  border-radius: 9px;
  background: linear-gradient(180deg, #4b3020 0%, #311c10 100%);
  color: var(--brass-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.78rem, 2.05cqw, 1.02rem);
  letter-spacing: 0.08em;
  box-shadow: 0 5px 10px rgba(26, 13, 5, 0.45), inset 0 1px 0 rgba(255, 232, 178, 0.35);
  z-index: 2;
}

.stall-sign i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass-bright);
  box-shadow: 0 0 0 1px #6b4614;
}

.stall-frog {
  position: absolute;
  left: 2.5%;
  bottom: 13%;
  width: clamp(128px, 28cqw, 266px);
  height: clamp(154px, 68cqh, 344px);
  background: var(--chef-art) 50% 100% / contain no-repeat;
  filter: drop-shadow(0 0 20px rgba(255, 240, 196, 0.42)) drop-shadow(0 12px 16px rgba(42, 22, 8, 0.38));
  transform-origin: 50% 100%;
  animation: chef-breathe 4.4s ease-in-out infinite;
  z-index: 2;
}

.stall-frog-poke {
  position: absolute;
  left: 2.5%;
  bottom: 13%;
  width: clamp(128px, 28cqw, 266px);
  height: clamp(154px, 68cqh, 344px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 4;
}

.stall-frog-bubble {
  position: absolute;
  left: clamp(22px, 6cqw, 52px);
  bottom: clamp(174px, 76cqh, 392px);
  max-width: 210px;
  padding: 5px 10px;
  border: 2px solid var(--teak-dark);
  border-radius: 12px;
  background: rgba(255, 253, 244, 0.96);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 5px 12px rgba(26, 13, 5, 0.25);
  z-index: 3;
}

.stall-frog-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: var(--teak-dark);
}

@keyframes chef-breathe {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50% { transform: scaleY(1.014) translateY(-1.5px); }
}

.stall-counter {
  position: absolute;
  inset: auto 0 0;
  height: 21%;
  background:
    linear-gradient(180deg, #ebb875 0 16%, #be7f42 16% 26%, #4b2d1c 26% 32%, transparent 32%),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(255, 248, 224, 0.16) 24px 26px),
    repeating-linear-gradient(90deg, #56927f 0 40px, #497f6e 40px 42px);
  border-top: 4px solid var(--teak-dark);
  box-shadow: inset 0 2px 0 rgba(255, 242, 208, 0.55), 0 -6px 14px rgba(32, 18, 8, 0.22);
  z-index: 3;
}

.counter-steamer,
.counter-teapot {
  position: absolute;
  bottom: 72%;
  pointer-events: none;
}

.counter-steamer {
  left: 2.2%;
  width: clamp(46px, 6cqw, 66px);
  height: clamp(24px, 5cqh, 34px);
  border-radius: 7px 7px 5px 5px;
  background:
    linear-gradient(180deg, #e5bf82 0 42%, #b58344 42% 52%, #dfb472 52% 92%, #8e5f29 92% 100%);
  border: 2px solid #4d2e14;
  box-shadow: 0 3px 6px rgba(32, 16, 6, 0.28);
}

.counter-teapot {
  left: clamp(60px, 9cqw, 92px);
  width: clamp(28px, 3.6cqw, 38px);
  height: clamp(24px, 4.4cqh, 32px);
  border-radius: 44% 44% 40% 40%;
  background: radial-gradient(circle at 35% 32%, #fffdf8 0%, #e4ece7 65%, #a7bcb3 100%);
  border: 2px solid #3a5248;
  box-shadow: 0 3px 5px rgba(32, 16, 6, 0.25);
}

.order-window-layer {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(28px, 8.2cqh, 52px) clamp(12px, 3.5cqw, 34px) clamp(10px, 3cqh, 24px) clamp(120px, 29cqw, 268px);
  pointer-events: none;
}

.order-window-layer > * {
  pointer-events: auto;
}

.window-card {
  width: min(100%, 560px);
  max-height: 100%;
  overflow-y: auto;
  padding: clamp(12px, 2.4cqh, 20px) clamp(14px, 2.5cqw, 24px);
  border: 2.5px solid var(--teak-dark);
  border-top: 6px solid var(--vermilion);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 6%, rgba(246, 207, 99, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.97) 0%, rgba(252, 243, 224, 0.96) 100%);
  box-shadow:
    0 16px 36px rgba(32, 16, 6, 0.34),
    inset 0 0 0 1px rgba(212, 175, 108, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.window-card h2 {
  margin-bottom: 6px;
  font-size: clamp(1.06rem, 2.45cqw, 1.46rem);
  color: var(--ink);
}

.window-card p {
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.welcome-head {
  margin-bottom: 8px;
}

.welcome-head h2 {
  margin: 4px 0 0;
}

.seal-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 5px;
  background: linear-gradient(180deg, #df563c, #bf3a22);
  color: #fffaf0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 0 rgba(92, 26, 14, 0.35);
}

.welcome-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.welcome-steps li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(230, 179, 77, 0.15);
  border: 1px solid rgba(196, 152, 86, 0.35);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.welcome-steps li i {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--celadon);
  color: #fffdf7;
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 900;
  flex: 0 0 17px;
}

.dish-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dish-showcase-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid #d5c19c;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 4px 12px rgba(58, 37, 24, 0.1);
}

.dish-showcase-card.is-done {
  border-color: var(--celadon);
}

.dish-card-photo {
  position: relative;
  height: clamp(78px, 16.5cqh, 118px);
  border-bottom: 1.5px solid #e0cfaf;
}

.dish-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 16, 8, 0.18) 0, transparent 42%, rgba(28, 16, 8, 0.24) 100%);
  pointer-events: none;
}

.dish-price-pill,
.dish-status-pill {
  position: absolute;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 2px 5px rgba(22, 10, 4, 0.28);
}

.dish-price-pill {
  left: 7px;
  bottom: 6px;
  background: rgba(44, 27, 18, 0.9);
  border: 1px solid rgba(230, 179, 77, 0.65);
  color: var(--brass-bright);
}

.dish-price-pill.is-empty {
  border-color: #f49b82;
  color: #ffd8ce;
}

.dish-status-pill {
  right: 7px;
  top: 6px;
  background: rgba(255, 250, 238, 0.94);
  color: var(--ink);
  border: 1px solid #d6c39c;
}

.dish-status-pill.is-done {
  background: var(--celadon);
  border-color: #2f5e4f;
  color: #fffdf7;
}

.dish-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px 9px;
  flex: 1;
}

.dish-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.dish-card-title strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink);
}

.dish-card-title span {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--celadon-dark);
  background: var(--celadon-soft);
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.dish-card-desc {
  margin: 0 0 2px !important;
  font-size: 0.72rem !important;
  line-height: 1.35;
  color: var(--muted) !important;
}

.dish-card-body .btn {
  width: 100%;
  margin-top: auto;
  min-height: 40px;
}

.welcome-ready-actions {
  margin-top: 10px;
}

.active-order-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.active-dish-thumb {
  width: 82px;
  height: 62px;
  flex: 0 0 82px;
  border-radius: 10px;
  border: 2px solid var(--teak-mid);
  box-shadow: 0 4px 10px rgba(42, 22, 10, 0.16);
}

.active-order-meta h2 {
  margin-bottom: 2px;
}

.active-guest-line {
  margin: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  color: var(--celadon-dark) !important;
}

.active-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.active-flow-strip li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink);
}

.active-flow-strip li span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--vermilion);
  color: #fff;
  font-size: 0.68rem;
  flex: 0 0 18px;
}

.closed-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.closed-kpis div {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  text-align: center;
}

.closed-kpis dt {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}

.closed-kpis dd {
  margin: 2px 0 0;
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.window-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.window-card-head h2 {
  margin: 0;
}

.window-card-head span {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--celadon-dark);
  background: var(--celadon-soft);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(79, 143, 123, 0.3);
}

.ticket-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket {
  padding: 10px;
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--brass);
  border-radius: 11px;
  background: var(--ticket-paper);
  box-shadow: 0 4px 10px rgba(58, 37, 24, 0.1);
}

.ticket-active { border-left-color: var(--vermilion); }
.ticket-served { border-left-color: var(--celadon); background: var(--celadon-soft); }

.ticket-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 5px;
}

.ticket-dish-thumb {
  width: 44px;
  height: 34px;
  margin-left: auto;
  flex: 0 0 44px;
  border-radius: 7px;
  border: 1.5px solid #cbb793;
  box-shadow: 0 2px 4px rgba(42, 22, 10, 0.14);
}

.ticket h3 {
  margin: 0 0 3px;
  font-size: 0.98rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}

.ticket h3 small {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--vermilion-dark);
}

.ticket-spec {
  margin: 0 0 6px !important;
  font-size: 0.74rem !important;
  color: var(--muted) !important;
}

.ticket-wait-track {
  height: 5px;
  margin: 0 0 4px;
  border-radius: 999px;
  background: #eadcc3;
  overflow: hidden;
}

.ticket-wait-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--celadon) 0%, #e5a93c 65%, var(--vermilion) 100%);
  transition: width 0.2s linear;
}

.ticket-wait-track.is-late i {
  width: 100% !important;
  background: var(--vermilion);
}

.ticket-warn {
  margin: 0 0 6px !important;
  font-size: 0.74rem !important;
  color: var(--vermilion) !important;
  font-weight: 700;
}

.ticket-done {
  margin: 6px 0 0 !important;
  font-size: 0.78rem !important;
  color: var(--celadon-dark) !important;
  font-weight: 800;
}

.ticket .btn {
  width: 100%;
}

/* =========================================================
   Three Distinct Close-Up Station Backdrops
   ========================================================= */
.station-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Station 2: Prep — Hand-Painted Xiguan Tiles & Acacia Butcher Block */
.backdrop-prep {
  background: var(--bg-prep-art) 0 0 / 100% 100% no-repeat;
}

.backdrop-prep .prep-wall {
  position: absolute;
  inset: 0 0 72%;
  background: linear-gradient(180deg, rgba(255, 250, 236, 0.14), transparent);
}

.backdrop-prep .prep-table {
  position: absolute;
  inset: 28% 0 0;
  background: radial-gradient(ellipse at 48% 35%, rgba(255, 244, 214, 0.16), rgba(42, 22, 10, 0.12) 85%);
}

/* Station 3: Heat — Hand-Painted Dual-Burner Steel Deck + Gas & Induction Glow */
.backdrop-heat {
  background: #9f9e96;
}

.backdrop-heat .heat-deck-art {
  position: absolute;
  inset: 0;
  background: var(--bg-heat-art) 0 0 / 100% 100% no-repeat;
}

.backdrop-heat .heat-burner {
  position: absolute;
  left: 46%;
  top: 51%;
  width: 34%;
  height: 44%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.backdrop-heat .heat-burner i {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
}

.truck-workbench[data-dish="ribs"] .backdrop-heat .heat-burner {
  left: 47.5%;
}

.truck-workbench[data-hot="true"] .backdrop-heat .heat-burner {
  opacity: 0.92;
  background:
    radial-gradient(circle, rgba(232, 252, 255, 0.72) 0 26%, rgba(71, 191, 255, 0.82) 32% 46%, rgba(255, 148, 56, 0.78) 50% 58%, transparent 66%);
  box-shadow:
    inset 0 0 22px rgba(72, 196, 255, 0.72),
    0 0 24px rgba(72, 185, 240, 0.56),
    0 0 14px rgba(245, 146, 62, 0.42);
  animation: flame-pulse 0.9s ease-in-out infinite alternate;
}

.truck-workbench[data-heat="2"] .backdrop-heat .heat-burner {
  background:
    radial-gradient(circle, rgba(240, 253, 255, 0.82) 0 28%, rgba(78, 198, 255, 0.9) 33% 50%, rgba(255, 152, 56, 0.88) 54% 62%, transparent 72%);
  box-shadow:
    inset 0 0 26px rgba(78, 206, 255, 0.82),
    0 0 30px rgba(78, 198, 255, 0.68),
    0 0 18px rgba(255, 154, 62, 0.54);
}

.truck-workbench[data-heat="3"] .backdrop-heat .heat-burner {
  opacity: 1;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 30%, rgba(84, 206, 255, 0.95) 35% 54%, rgba(255, 142, 48, 0.92) 58% 66%, transparent 76%);
  box-shadow:
    inset 0 0 32px rgba(90, 216, 255, 0.92),
    0 0 38px rgba(90, 212, 255, 0.82),
    0 0 24px rgba(255, 142, 54, 0.72);
}

.backdrop-heat .skillet-burner {
  position: absolute;
  left: 74%;
  top: 38%;
  width: 17%;
  height: 22%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.truck-workbench[data-dip-heating="true"] .backdrop-heat .skillet-burner {
  opacity: 1;
  background: radial-gradient(circle, rgba(255, 214, 118, 0.55) 0 36%, rgba(242, 108, 42, 0.82) 48% 62%, transparent 74%);
  box-shadow: 0 0 20px rgba(242, 118, 46, 0.65);
  animation: flame-pulse 0.75s ease-in-out infinite alternate;
}

@keyframes flame-pulse {
  from { filter: brightness(0.95); }
  to { filter: brightness(1.12); }
}

/* Station 4: Serve — Hand-Painted Teak Pass & Woven Bamboo Mat */
.backdrop-serve {
  background: var(--bg-serve-art) 0 0 / 100% 100% no-repeat;
}

.backdrop-serve .serve-pass-art {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 246, 214, 0.14), rgba(38, 20, 8, 0.18) 84%);
}

.backdrop-serve .serve-spotlight {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 68%;
  transform: translate(-50%, -50%);
  border-radius: 26px;
  box-shadow: inset 0 0 24px rgba(255, 244, 204, 0.25);
}

/* =========================================================
   Interactive Cookware Props (Illustrated SVG + Tactile Labels)
   ========================================================= */
.kprop,
.stove-knobs {
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: var(--pw);
  height: var(--ph, 20%);
  z-index: 3;
  transform: translate(-50%, -50%);
}

.kprop {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
}

div.kprop {
  pointer-events: none;
}

button.kprop {
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.kprop.is-source {
  z-index: 6;
  cursor: grab;
  transition: filter 0.14s ease;
}

.kprop.is-source:hover .prop-art {
  transform: translateY(-2px) scale(1.03);
}

.kprop.is-source.is-lifted {
  opacity: 0.42;
  cursor: grabbing;
}

.kprop.receives .prop-art,
.kprop.at-drop .prop-art {
  filter: drop-shadow(0 0 8px #ffe473) drop-shadow(0 0 4px #fff7c7);
}

.kprop[aria-pressed="true"] .prop-art,
.kprop.is-hint .prop-art {
  filter: drop-shadow(0 0 7px #ffe473) drop-shadow(0 0 3px #fff7c7);
  animation: hint-glow 1.4s ease-in-out infinite alternate;
}

.kprop.is-hint-target .prop-art {
  filter: drop-shadow(0 0 7px #86f2c7) drop-shadow(0 0 3px #e8fff6);
  animation: hint-target-glow 1.2s ease-in-out infinite alternate;
}

.kprop.is-hint-target .prop-art::before {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 16px;
  border: 2.5px dashed rgba(154, 248, 209, 0.92);
  box-shadow: 0 0 12px rgba(105, 224, 179, 0.45);
  pointer-events: none;
}

@keyframes hint-glow {
  from { filter: drop-shadow(0 0 5px #ffd85c) drop-shadow(0 0 2px #fff5b8); }
  to { filter: drop-shadow(0 0 11px #ffe878) drop-shadow(0 0 5px #ffffff); }
}

@keyframes hint-target-glow {
  from { filter: drop-shadow(0 0 5px #76e3b8) drop-shadow(0 0 2px #dffff3); }
  to { filter: drop-shadow(0 0 11px #9ff8d4) drop-shadow(0 0 5px #ffffff); }
}

.kprop:focus-visible {
  outline: 3px dashed #fff0a0;
  outline-offset: 2px;
  border-radius: 12px;
}

.prop-art {
  position: absolute;
  top: 0;
  left: 2%;
  width: 96%;
  height: 85%;
  pointer-events: none;
  transition: transform 0.14s ease;
}

.prop-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 5px 6px rgba(42, 22, 10, 0.26));
}

.prop-art i {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.prop-label {
  position: absolute;
  z-index: 2;
  bottom: -2px;
  max-width: 124%;
  border-radius: 6px;
  padding: 2px 7px;
  color: #fff8e8;
  font-size: clamp(10px, 1.75cqw, 12.5px);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  background: rgba(46, 28, 17, 0.92);
  border: 1px solid rgba(230, 179, 77, 0.45);
  box-shadow: 0 2px 4px rgba(20, 10, 4, 0.35);
  pointer-events: none;
}

.prop-gauge {
  position: absolute;
  z-index: 4;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(44, 27, 18, 0.92);
  border: 1px solid rgba(230, 179, 77, 0.55);
  color: #fff6dc;
  font-size: clamp(9.5px, 1.45cqw, 11px);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(18, 8, 2, 0.36);
  pointer-events: none;
}

.prop-gauge[hidden] {
  display: none;
}

.prop-gauge[data-tone="good"] {
  background: rgba(41, 104, 83, 0.95);
  border-color: #a9e6cf;
  color: #ffffff;
}

.prop-gauge[data-tone="warn"] {
  background: rgba(154, 82, 18, 0.95);
  border-color: #ffd98a;
  color: #fff8e6;
}

.prop-gauge[data-tone="danger"] {
  background: rgba(168, 40, 24, 0.96);
  border-color: #ffbfb3;
  color: #ffffff;
}

.carried-prop {
  position: fixed;
  z-index: 44;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--drag-tilt, 0deg)) scale(1.06);
  filter: drop-shadow(3px 14px 14px rgba(32, 16, 6, 0.42));
  opacity: 0.98;
}

/* Align scissors blade cutting mouth directly onto the pointer / cut-line hotspot */
.carried-prop.prop-scissors {
  transform: translate(-72%, -42%) rotate(var(--drag-tilt, 0deg)) scale(1.06);
}

body.is-dragging-prop {
  cursor: grabbing;
}

.kprop.is-pressing .prop-art {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 0 8px #ffe473) drop-shadow(0 6px 8px rgba(42, 22, 10, 0.32));
}

.kprop.is-acted .prop-art {
  animation: prop-act-pop 0.2s cubic-bezier(0.22, 1.35, 0.45, 1);
}

.kprop.is-settled .prop-art {
  animation: prop-settle 0.2s ease-out;
}

@keyframes prop-act-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.07, 0.94); }
  100% { transform: scale(1); }
}

@keyframes prop-settle {
  0% { transform: translateY(-5px) scale(1.04); }
  60% { transform: translateY(2px) scale(0.97); }
  100% { transform: none; }
}

/* =========================================================
   Direct-Manipulation Tactile Contact VFX (Clipped to Bench)
   ========================================================= */
.kitchen-fx {
  position: absolute;
  z-index: 25;
  width: 68px;
  height: 68px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: kitchen-fx-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kitchen-fx svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes kitchen-fx-pop {
  0% { transform: translate(-50%, -50%) scale(0.55); opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.28); opacity: 0; }
}

/* Chopping Board & Cut Guides */
.cut-guides {
  pointer-events: none;
  position: absolute;
  z-index: 8;
  left: 31%;
  top: 40%;
  width: 20%;
  height: 16%;
  display: flex;
  justify-content: space-between;
}

.truck-workbench[data-dish="ribs"] .cut-guides {
  left: 31%;
  top: 39%;
  width: 20%;
  height: 17%;
  transform: skewX(-10deg);
}

.cut-guides i {
  border-left: 3.5px dashed #fff3a8;
  filter: drop-shadow(0 1px 3px rgba(42, 22, 10, 0.65));
}

.cut-guides i.is-done,
.cut-guides i.is-preview-cut {
  border-color: #d94e34;
  border-style: solid;
}

/* Faucet Lever Press & Curved Sink Spout Water Stream */
.prop-faucet.is-source {
  cursor: pointer;
}

.prop-faucet .faucet-lever {
  transform-origin: 38px 38px;
  transition: transform 0.1s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.prop-faucet.is-rinsing .faucet-lever {
  transform: rotate(22deg);
}

.prop-faucet.is-rinsing .prop-art {
  transform: translateY(1.5px) scale(0.98);
}

.prop-faucet::before {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 22px;
  width: calc(var(--rinse-pct, 0%) * 0.76);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5ac2d6, #3fa382);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

.prop-faucet.is-rinsing::before,
.prop-faucet.is-rinse-ready::before {
  opacity: 1;
}

.prop-faucet.is-rinse-ready .prop-svg {
  filter: drop-shadow(0 0 8px #5ce0a8) drop-shadow(0 0 14px rgba(92, 224, 168, 0.75));
}

.truck-workbench.is-rinse-ready .prop-sink .prop-svg {
  filter: drop-shadow(0 0 8px #5ce0a8);
}

.prop-sink .sink-rinse-fx {
  opacity: 0;
  transition: opacity 0.08s ease;
}

.truck-workbench.is-rinsing-sink .prop-sink .sink-rinse-fx {
  opacity: 1;
}

.prop-sink .sink-stream-body,
.prop-sink .sink-stream-glint {
  transform-origin: 82px 29px;
  transform: scaleY(0.15);
}

.truck-workbench.is-rinsing-sink .prop-sink .sink-stream-body,
.truck-workbench.is-rinsing-sink .prop-sink .sink-stream-glint {
  transform: scaleY(1);
  animation: sink-spout-flow 0.18s ease-out both;
}

.prop-sink .sink-splash-ring {
  transform-origin: 82px 70px;
}

.truck-workbench.is-rinsing-sink .prop-sink .sink-splash-ring {
  animation: sink-ripple 0.62s ease-out infinite;
}

@keyframes sink-spout-flow {
  from { transform: scaleY(0.2); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes sink-ripple {
  0% { transform: scale(0.45); opacity: 0.95; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* Overhead Cantonese Porcelain Serving Platter (Hero of Serve Station) */
.prop-plate .prop-art {
  top: 0;
  left: 0;
  width: 100%;
  height: 85%;
}

.truck-workbench[data-boxed="true"] .prop-plate .prop-svg,
.carried-prop[data-boxed="true"].prop-plate .prop-svg {
  filter: drop-shadow(0 0 0 4px #e6b34d) drop-shadow(0 0 12px rgba(230, 179, 77, 0.75));
}

/* =========================================================
   Appetizing Dynamic Food Items Inside Cookware
   ========================================================= */

/* Raw Dish (Shrimp or Ribs) */
.prop-raw .prop-art i {
  top: 25%;
  left: 16%;
  width: 30%;
  height: 46%;
  background-image: var(--svg-rib-raw);
}

.prop-raw .prop-art i:nth-of-type(2) { left: 37%; top: 31%; transform: rotate(22deg); }
.prop-raw .prop-art i:nth-of-type(3) { left: 54%; top: 20%; transform: rotate(-18deg); }
.prop-raw .prop-art i:nth-of-type(4) { display: none; }

.truck-workbench[data-dish="shrimp"] .prop-raw .prop-art i,
.carried-prop[data-dish="shrimp"].prop-raw .prop-art i {
  background-image: var(--svg-shrimp-raw);
}

.truck-workbench[data-dish="shrimp"][data-has-raw="false"] .prop-raw .prop-art i,
.truck-workbench[data-dish="shrimp"][data-dip-ready="false"] .prop-dip .prop-art i {
  display: none;
}

/* Dip Saucer Content (Shown when dip is ready) */
.prop-dip .prop-art i:first-of-type {
  inset: 22% 20%;
  border-radius: 50%;
  background-image: var(--svg-dip-mix);
  background-size: cover;
}

/* Plated Shrimp (Normalized Coordinates Match recipes.js platePosition) */
.truck-workbench[data-dish="shrimp"] .prop-plate .prop-art i:not([hidden]),
.carried-prop[data-dish="shrimp"].prop-plate .prop-art i:not([hidden]) {
  display: block;
  width: 24%;
  height: 30%;
  transform: translate(-50%, -50%);
  background-image: var(--svg-shrimp-raw);
  filter: drop-shadow(0 2px 3px rgba(58, 30, 14, 0.25));
}

.truck-workbench[data-dish="shrimp"] .prop-plate .prop-art i[hidden],
.carried-prop[data-dish="shrimp"].prop-plate .prop-art i[hidden] {
  display: none;
}

.truck-workbench[data-dish="shrimp"][data-food="cooked"] .prop-plate .prop-art i:not([hidden]),
.carried-prop[data-dish="shrimp"][data-food="cooked"].prop-plate .prop-art i:not([hidden]) {
  background-image: var(--svg-shrimp-cooked);
}

.truck-workbench[data-dish="shrimp"][data-food="over"] .prop-plate .prop-art i:not([hidden]),
.carried-prop[data-dish="shrimp"][data-food="over"].prop-plate .prop-art i:not([hidden]) {
  background-image: var(--svg-shrimp-over);
}

.truck-workbench[data-dish="shrimp"] .prop-plate .prop-art i:nth-of-type(4):not([hidden]),
.carried-prop[data-dish="shrimp"].prop-plate .prop-art i:nth-of-type(4):not([hidden]) {
  width: 23%;
  height: 28%;
  background-image: var(--svg-dip-saucer);
  filter: drop-shadow(0 3px 4px rgba(58, 30, 14, 0.28));
}

/* Plated Ribs + Scattered Scallions */
.truck-workbench[data-dish="ribs"] .prop-plate .prop-art i,
.carried-prop[data-dish="ribs"].prop-plate .prop-art i {
  top: 26%;
  left: 16%;
  width: 30%;
  height: 46%;
  background-image: var(--svg-rib-marinated);
  filter: drop-shadow(0 2px 3px rgba(58, 30, 14, 0.25));
}

.truck-workbench[data-dish="ribs"] .prop-plate .prop-art i:nth-of-type(2),
.carried-prop[data-dish="ribs"].prop-plate .prop-art i:nth-of-type(2) { left: 40%; top: 34%; transform: rotate(18deg); }
.truck-workbench[data-dish="ribs"] .prop-plate .prop-art i:nth-of-type(3),
.carried-prop[data-dish="ribs"].prop-plate .prop-art i:nth-of-type(3) { left: 58%; top: 20%; transform: rotate(-16deg); }
.truck-workbench[data-dish="ribs"] .prop-plate .prop-art i:nth-of-type(4),
.carried-prop[data-dish="ribs"].prop-plate .prop-art i:nth-of-type(4) { display: none; }

.truck-workbench[data-dish="ribs"][data-food="cooked"] .prop-plate .prop-art i,
.carried-prop[data-dish="ribs"][data-food="cooked"].prop-plate .prop-art i {
  background-image: var(--svg-rib-cooked);
}

.truck-workbench[data-dish="ribs"][data-food="over"] .prop-plate .prop-art i,
.carried-prop[data-dish="ribs"][data-food="over"].prop-plate .prop-art i {
  background-image: var(--svg-rib-over);
}

.truck-workbench[data-dish="ribs"][data-plated="false"] .prop-plate .prop-art i,
.carried-prop[data-dish="ribs"][data-plated="false"].prop-plate .prop-art i {
  display: none;
}

.truck-workbench[data-dish="ribs"][data-garnished="true"] .prop-plate .prop-art i:nth-of-type(4),
.carried-prop[data-dish="ribs"][data-garnished="true"].prop-plate .prop-art i:nth-of-type(4) {
  display: block;
  left: 26%;
  top: 24%;
  width: 48%;
  height: 48%;
  background-image: var(--svg-scallion-scatter);
}

/* Ribs on Chopping Board during Prep & Black-Bean Chop State */
.truck-workbench[data-dish="ribs"][data-stage="prep"] .prop-board .prop-art i {
  top: 18%;
  left: 16%;
  width: 24%;
  height: 58%;
  background-image: var(--svg-rib-raw);
}

.truck-workbench[data-dish="ribs"][data-stage="prep"] .prop-board .prop-art i:nth-of-type(2) { left: 39%; top: 20%; }
.truck-workbench[data-dish="ribs"][data-stage="prep"] .prop-board .prop-art i:nth-of-type(3) { left: 61%; top: 18%; }
.truck-workbench[data-dish="ribs"][data-stage="prep"] .prop-board .prop-art i:nth-of-type(4) { display: none; }

.prop-beans .beans-minced { display: none; }
.truck-workbench[data-chopped="true"] .prop-beans .beans-whole { display: none; }
.truck-workbench[data-chopped="true"] .prop-beans .beans-minced { display: block; }

/* Pot Interior Water & Cooking Food */
.prop-pot .prop-art {
  height: 92%;
}

.truck-workbench[data-has-water="true"] .prop-pot .pot-interior {
  fill: #6dbbc0;
}

.truck-workbench[data-water="warming"] .prop-pot .pot-interior {
  fill: #7fcad0;
}

.truck-workbench[data-water="rolling"] .prop-pot .pot-interior {
  fill: #9be0e3;
}

.truck-workbench[data-stage="boil"] .prop-pot .prop-art i,
.truck-workbench[data-stage="steam"] .prop-pot .prop-art i {
  left: 19%;
  top: 22%;
  width: 28%;
  height: 44%;
  background-image: var(--svg-shrimp-raw);
}

.truck-workbench[data-stage="steam"] .prop-pot .prop-art i {
  background-image: var(--svg-rib-marinated);
}

.truck-workbench[data-stage="steam"][data-food="cooked"] .prop-pot .prop-art i {
  background-image: var(--svg-rib-cooked);
}

.truck-workbench[data-stage="steam"][data-food="over"] .prop-pot .prop-art i {
  background-image: var(--svg-rib-over);
}

.truck-workbench[data-stage="boil"] .prop-pot .prop-art i:nth-of-type(2),
.truck-workbench[data-stage="steam"] .prop-pot .prop-art i:nth-of-type(2) { left: 37%; top: 34%; transform: rotate(22deg); }

.truck-workbench[data-stage="boil"] .prop-pot .prop-art i:nth-of-type(3),
.truck-workbench[data-stage="steam"] .prop-pot .prop-art i:nth-of-type(3) { left: 55%; top: 22%; transform: rotate(-16deg); }

.truck-workbench[data-dish="ribs"] .prop-pot .prop-art i:nth-of-type(4),
.truck-workbench[data-dish="shrimp"] .prop-pot .prop-art i:nth-of-type(4) { display: none; }

.truck-workbench[data-dish="shrimp"][data-aromatics="true"][data-has-water="true"] .prop-pot .prop-art i:nth-of-type(4) {
  display: block;
  left: 26%;
  top: 20%;
  width: 48%;
  height: 44%;
  background-image: var(--svg-pot-aromatics);
  opacity: 0.94;
}

.truck-workbench[data-stage="boil"][data-food="cooked"] .prop-pot .prop-art i:nth-of-type(-n+3) {
  background-image: var(--svg-shrimp-cooked);
}

.truck-workbench[data-stage="boil"][data-food="over"] .prop-pot .prop-art i:nth-of-type(-n+3) {
  background-image: var(--svg-shrimp-over);
  transform: scale(0.88);
}

/* Covered Pot Bamboo-Rimmed Steamer Lid Overlay */
.truck-workbench[data-covered="true"]:not(.is-lifting-lid) .prop-pot .prop-art::after {
  content: "";
  position: absolute;
  left: 7%;
  top: 2%;
  width: 86%;
  height: 80%;
  border-radius: 50%;
  border: 4px solid #3a2518;
  background:
    radial-gradient(ellipse at 50% 44%, #9c5c32 0 10.5%, #3a2518 11% 13%, #eff5f3 13.5% 42%, #c7d6d3 45% 58%, #d2a25f 59.5% 70%, #8f5c28 71% 100%);
  box-shadow: 0 9px 18px rgba(24, 14, 8, 0.45), inset 0 2px 5px rgba(255, 255, 255, 0.72);
}

.truck-workbench[data-covered="true"]:not(.is-lifting-lid) .prop-lid .prop-art {
  opacity: 0.22;
  filter: grayscale(0.6);
}

.truck-workbench[data-stage="steam"] div.prop-tray {
  opacity: 0.25;
}

/* Tray & Steaming Slots */
.prop-tray { z-index: 2; }
.prop-tray.is-source { z-index: 4; }
.prop-slot { z-index: 6; }
.truck-workbench:has(.prop-tray.is-lifted) .prop-slot { opacity: 0.32; }
.prop-slot .prop-label { display: none; }

.prop-slot.has-food .prop-art i:first-of-type {
  inset: 14% 18%;
  background-image: var(--svg-rib-marinated);
}

.prop-slot.has-thick::after {
  content: "厚";
  position: absolute;
  left: 6%;
  top: 4%;
  padding: 1px 5px;
  border-radius: 999px;
  background: #9c341e;
  border: 1.5px solid #fff3d6;
  color: #fff8e6;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}

.truck-workbench[data-dish="ribs"][data-stage="steam-setup"] .prop-tray .prop-art i:nth-of-type(-n+3),
.carried-prop[data-dish="ribs"].prop-tray .prop-art i:nth-of-type(-n+3) {
  top: 26%;
  left: 14%;
  width: 28%;
  height: 46%;
  background-image: var(--svg-rib-marinated);
}

.truck-workbench[data-dish="ribs"][data-stage="steam-setup"] .prop-tray .prop-art i:nth-of-type(2),
.carried-prop[data-dish="ribs"].prop-tray .prop-art i:nth-of-type(2) { left: 37%; top: 30%; transform: rotate(15deg); }
.truck-workbench[data-dish="ribs"][data-stage="steam-setup"] .prop-tray .prop-art i:nth-of-type(3),
.carried-prop[data-dish="ribs"].prop-tray .prop-art i:nth-of-type(3) { left: 58%; top: 22%; transform: rotate(-14deg); }

.prop-count {
  position: absolute;
  right: 4%;
  top: 3%;
  border-radius: 999px;
  background: var(--vermilion);
  border: 1.5px solid #fff6e5;
  padding: 1px 6px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Ready-to-Serve Window Glow */
.truck-workbench[data-ready-serve="true"] .prop-window .prop-svg {
  filter: drop-shadow(0 0 8px #f7d57e) drop-shadow(0 0 16px rgba(247, 213, 126, 0.85));
}

/* Stove Burner Knobs (Tactile Metallic Dials) */
.stove-knobs {
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-width: 152px;
  min-height: 44px;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  background: linear-gradient(180deg, #3c3430 0%, #26201d 100%);
  border: 2px solid #1b1512;
  box-shadow: 0 4px 0 #15100e, inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.stove-knobs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 36px;
  color: #f5ebd8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 800;
}

.stove-knobs button i {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid #1f1916;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eceae4, #8a847c);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.stove-knobs button i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 2px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: #2b211c;
}

.stove-knobs button[data-burner="1"] i::after { transform: translateX(-50%) rotate(40deg); transform-origin: 50% 5px; }
.stove-knobs button[data-burner="2"] i::after { transform: translateX(-50%) rotate(90deg); transform-origin: 50% 5px; }
.stove-knobs button[data-burner="3"] i::after { transform: translateX(-50%) rotate(135deg); transform-origin: 50% 5px; }

.stove-knobs button[aria-pressed="true"] {
  background: rgba(235, 102, 68, 0.24);
  border-color: rgba(247, 213, 126, 0.6);
}

.stove-knobs button[aria-pressed="true"] i {
  background: radial-gradient(circle at 35% 30%, #fff1b8, #f29438);
  box-shadow: 0 0 8px #ffb959;
}

.stove-knobs button:disabled {
  opacity: 0.48;
}

.stove-knobs.is-hint {
  box-shadow: 0 0 0 2.5px #ffe775, 0 0 14px #ffe775;
}

/* Boiling Bubbles, Steam, Basket Shrimp, Dip Oil */
.water-bubbles {
  position: absolute;
  z-index: 7;
  left: 33%;
  top: 34%;
  width: 24%;
  height: 20%;
  visibility: hidden;
  pointer-events: none;
}

.truck-workbench[data-dish="ribs"] .water-bubbles { left: 36%; }

[data-water="warming"] .water-bubbles,
[data-water="rolling"] .water-bubbles { visibility: visible; }

[data-covered="true"] .water-bubbles { visibility: hidden; }

.water-bubbles i {
  position: absolute;
  left: 18%;
  top: 28%;
  width: 8px;
  height: 8px;
  border: 2px solid #f2ffff;
  border-radius: 50%;
  opacity: 0.8;
}

.water-bubbles i:nth-child(2) { left: 66%; top: 44%; }
.water-bubbles i:nth-child(3),
.water-bubbles i:nth-child(4),
.water-bubbles i:nth-child(5) { display: none; }

[data-water="rolling"] .water-bubbles i {
  display: block;
  width: 14px;
  height: 14px;
  animation: kitchen-bubble 0.85s ease-out infinite alternate;
}

[data-water="rolling"] .water-bubbles i:nth-child(2) { animation-delay: -0.35s; }
[data-water="rolling"] .water-bubbles i:nth-child(3) { left: 44%; top: 56%; animation-delay: -0.18s; }
[data-water="rolling"] .water-bubbles i:nth-child(4) { left: 74%; top: 14%; animation-delay: -0.58s; }
[data-water="rolling"] .water-bubbles i:nth-child(5) { left: 30%; top: 16%; animation-delay: -0.72s; }

@keyframes kitchen-bubble {
  from { transform: scale(0.55); opacity: 0.45; }
  to { transform: scale(1.22) translateY(-5px); opacity: 0.95; }
}

.kitchen-vapor {
  visibility: hidden;
  position: absolute;
  z-index: 8;
  top: 14%;
  left: 37%;
  width: 18%;
  height: 28%;
  pointer-events: none;
}

.truck-workbench[data-dish="ribs"] .kitchen-vapor { left: 40%; }
.truck-workbench[data-steam="true"] .kitchen-vapor { visibility: visible; }

.kitchen-vapor i {
  position: absolute;
  inset: 16% auto 0 10%;
  width: 24%;
  background: rgba(255, 253, 246, 0.78);
  border-radius: 55%;
  animation: kitchen-puff 2.2s infinite;
  filter: blur(3.5px);
}

.kitchen-vapor i:nth-child(2) { left: 44%; animation-delay: -0.8s; }
.kitchen-vapor i:nth-child(3) { left: 76%; animation-delay: -1.5s; }

@keyframes kitchen-puff {
  from { opacity: 0.85; transform: translateY(22%) scale(0.55); }
  to { opacity: 0; transform: translateY(-38%) scale(1.25); }
}

/* Shrimp inside Sink or Draining Basket */
[data-basket-food="true"] .prop-basket .prop-art i:nth-of-type(-n+3),
[data-in-sink="true"] .prop-sink .prop-art i:nth-of-type(-n+3) {
  inset: 26% auto auto 14%;
  width: 30%;
  height: 46%;
  background-image: var(--svg-shrimp-cooked);
}

[data-in-sink="true"] .prop-sink .prop-art i:nth-of-type(-n+3),
[data-basket-food="true"][data-food="raw"] .prop-basket .prop-art i:nth-of-type(-n+3) {
  background-image: var(--svg-shrimp-raw);
}

[data-basket-food="true"][data-food="over"] .prop-basket .prop-art i:nth-of-type(-n+3) {
  background-image: var(--svg-shrimp-over);
}

[data-basket-food="true"] .prop-basket .prop-art i:nth-of-type(2),
[data-in-sink="true"] .prop-sink .prop-art i:nth-of-type(2) { left: 37%; top: 20%; transform: rotate(18deg); }

[data-basket-food="true"] .prop-basket .prop-art i:nth-of-type(3),
[data-in-sink="true"] .prop-sink .prop-art i:nth-of-type(3) { left: 56%; top: 32%; transform: rotate(-16deg); }

[data-basket-count="2"] .prop-basket i:nth-of-type(3),
[data-basket-count="1"] .prop-basket i:nth-of-type(n+2) { display: none; }

[data-dripping="true"] .prop-basket::after {
  content: "";
  position: absolute;
  top: 86%;
  left: 50%;
  width: 6px;
  height: 13px;
  border-radius: 50%;
  background: #8ee5f0;
  box-shadow: 0 0 4px rgba(142, 229, 240, 0.7);
  animation: kitchen-drip 0.45s linear infinite;
  pointer-events: none;
}

@keyframes kitchen-drip {
  to { transform: translateY(14px); opacity: 0.1; }
}

/* Ginger-Scallion Mix inside Bowl & Skillet + Ribs Marinade Bowl Stages */
[data-dip-loaded="true"] .prop-bowl .prop-art i:first-of-type,
.carried-prop[data-dip-loaded="true"].prop-bowl .prop-art i:first-of-type,
[data-dip-heating="true"] .prop-skillet .prop-art i:first-of-type,
.carried-prop[data-dip-heating="true"].prop-skillet .prop-art i:first-of-type {
  inset: 22% 18% 28% 18%;
  background-image: var(--svg-dip-mix);
}

[data-dip-heating="true"] .prop-skillet .prop-art i:first-of-type,
.carried-prop[data-dip-heating="true"].prop-skillet .prop-art i:first-of-type {
  inset: 22% 28% 26% 12%;
}

[data-dip-scent="ready"] .prop-skillet .prop-art i:first-of-type,
.carried-prop[data-dip-scent="ready"].prop-skillet .prop-art i:first-of-type { filter: saturate(1.45) brightness(1.18); }
[data-dip-scent="ready"] .prop-skillet .skillet-oil,
.carried-prop[data-dip-scent="ready"].prop-skillet .skillet-oil { filter: brightness(1.16) saturate(1.25); }
[data-dip-scent="dark"] .prop-skillet .prop-art i:first-of-type,
.carried-prop[data-dip-scent="dark"].prop-skillet .prop-art i:first-of-type { filter: brightness(0.32) contrast(1.25); }
[data-dip-scent="dark"] .prop-skillet .skillet-oil,
.carried-prop[data-dip-scent="dark"].prop-skillet .skillet-oil { fill: #4a3118; }

[data-dish="ribs"][data-bean-dose="1"] .prop-bowl .prop-art i:first-of-type,
.carried-prop[data-dish="ribs"][data-bean-dose="1"].prop-bowl .prop-art i:first-of-type {
  inset: 24% 22% 28% 22%;
  background-image: var(--svg-bean-paste);
}

[data-dish="ribs"][data-powder="1"] .prop-bowl .prop-art i:nth-of-type(2),
.carried-prop[data-dish="ribs"][data-powder="1"].prop-bowl .prop-art i:nth-of-type(2) {
  inset: 22% 20% 26% 20%;
  background-image: var(--svg-starch-thin);
}

[data-dish="ribs"][data-powder="3"] .prop-bowl .prop-art i:nth-of-type(2),
.carried-prop[data-dish="ribs"][data-powder="3"].prop-bowl .prop-art i:nth-of-type(2) {
  inset: 16% 18% 22% 18%;
  background-image: var(--svg-starch-thick);
}

[data-dish="ribs"][data-toss="1"] .prop-bowl .prop-art i:nth-of-type(3),
.carried-prop[data-dish="ribs"][data-toss="1"].prop-bowl .prop-art i:nth-of-type(3) {
  left: 34%;
  top: 18%;
  width: 30%;
  height: 48%;
  transform: rotate(-14deg);
  background-image: var(--svg-rib-marinated);
}

[data-dish="ribs"][data-toss="2"] .prop-bowl .prop-art i:nth-of-type(3),
.carried-prop[data-dish="ribs"][data-toss="2"].prop-bowl .prop-art i:nth-of-type(3) {
  left: 25%;
  top: 20%;
  width: 28%;
  height: 46%;
  transform: rotate(-16deg);
  background-image: var(--svg-rib-marinated);
}

[data-dish="ribs"][data-toss="2"] .prop-bowl .prop-art i:nth-of-type(4),
.carried-prop[data-dish="ribs"][data-toss="2"].prop-bowl .prop-art i:nth-of-type(4) {
  left: 46%;
  top: 22%;
  width: 28%;
  height: 46%;
  transform: rotate(18deg);
  background-image: var(--svg-rib-marinated);
}

/* =========================================================
   Drawers, Modals, Recovery & Toast
   ========================================================= */
.panel {
  padding: 20px;
  border: 2px solid var(--teak-dark);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #faf2e2 100%);
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(30, 17, 9, 0.72);
  backdrop-filter: blur(2px);
  overflow-y: auto;
}

.pause-backdrop {
  z-index: 70;
}

.ad-lock-backdrop {
  z-index: 65;
}

.ad-lock-panel {
  width: min(100%, 400px);
  text-align: center;
  border-top: 6px solid var(--brass);
}

.ad-lock-panel p:last-child {
  margin-bottom: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.ad-break-backdrop {
  z-index: 64;
}

.ad-break-panel {
  width: min(100%, 440px);
  text-align: center;
  border-top: 6px solid #e08d1f;
  background: linear-gradient(180deg, #fffdf5 0%, #fff4da 100%);
}

.ad-break-panel h2 {
  margin: 4px 0 8px;
}

.ad-break-panel p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #4f3520;
}

.ad-break-note {
  margin: 8px 0;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid #d97724;
  background: #fff2d6;
  color: #8f3d0c !important;
  font-weight: 700;
}

.ad-break-actions {
  justify-content: center;
  margin-top: 12px;
}

.ad-reward-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 13px;
  border: 2px solid #d68522;
  background: linear-gradient(135deg, #fff9e5 0%, #fde6a2 58%, #fbd076 100%);
  box-shadow: 0 4px 12px rgba(107, 52, 9, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.ad-reward-banner.is-compact {
  padding: 8px 10px;
  margin: 6px 0;
}

.ad-reward-banner.is-claimed {
  border-style: dashed;
  border-color: rgba(79, 143, 123, 0.55);
  background: linear-gradient(135deg, #f5fbf7 0%, #e7f3ec 100%);
  box-shadow: none;
  color: #2f5e4e;
}

.ad-reward-copy {
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ad-reward-copy strong {
  font-size: 0.9rem;
  color: #3a1f0a;
}

.ad-reward-copy small {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #6b431c;
}

.ad-reward-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 999px;
  background: #3a2518;
  color: #ffe39a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.ad-reward-banner.is-claimed .ad-reward-badge {
  background: #447c69;
  color: #ffffff;
  margin-right: 6px;
}

.btn-ad-gold {
  border-color: #7d3c0b !important;
  background: linear-gradient(180deg, #ffba3d 0%, #e07b16 100%) !important;
  color: #2b1303 !important;
  font-weight: 900 !important;
  box-shadow: 0 3px 0 #7d3c0b, inset 0 1px 0 rgba(255, 250, 224, 0.7) !important;
}

.btn-ad-gold:hover:not(:disabled) {
  filter: brightness(1.05);
}

@media (max-height: 460px) and (orientation: landscape) {
  .ad-reward-banner {
    padding: 7px 9px;
    gap: 6px 8px;
  }

  .ad-reward-copy strong {
    font-size: 0.82rem;
  }

  .ad-reward-copy small {
    font-size: 0.7rem;
  }

  .ad-break-panel {
    width: min(94vw, 410px);
    padding: 12px 14px;
  }
}

.support-ad-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 2px solid #cf8228;
  background: linear-gradient(135deg, #fff8e3 0%, #fde6a9 58%, #fbd58e 100%);
  box-shadow: 0 4px 12px rgba(92, 46, 8, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.sponsor-card-main {
  flex: 1 1 220px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.sponsor-card-main:hover .sponsor-card-more {
  transform: translateX(2px);
}

.sponsor-card-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 252, 240, 0.8);
  border: 1.5px solid rgba(196, 128, 36, 0.45);
}

.sponsor-card-frog,
.naiwa-svg.sponsor-card-frog {
  width: 38px;
  height: 40px;
}

.sponsor-card-body {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  overflow: hidden;
}

.sponsor-card-title-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.sponsor-card-title-row strong {
  font-size: 0.84rem;
  color: #42220d;
}

.sponsor-seal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e04f35 0%, #b9351e 100%);
  color: #fffdf7;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 2px rgba(72, 18, 8, 0.35);
  white-space: nowrap;
}

.sponsor-cheer-pill {
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff8de;
  border: 1px solid #c98628;
  color: #8f470c;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.sponsor-card-sub {
  font-size: 0.74rem;
  line-height: 1.32;
  color: #6b4322;
}

.sponsor-card-more {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 250, 232, 0.82);
  border: 1px solid rgba(186, 108, 32, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  color: #9c341c;
  white-space: nowrap;
  transition: transform 0.14s ease;
}

.btn-support-ad {
  flex: 0 0 auto;
  min-height: 32px;
  font-size: 0.76rem;
}

.btn-hud-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid #ffd578;
  background: linear-gradient(180deg, #f3be49 0%, #cf871d 100%);
  color: #2f1909;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: 0 2px 0 #1f1108;
  white-space: nowrap;
}

.btn-hud-sponsor:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe08a 0%, #e59b2c 100%);
  border-color: #fff2be;
}

@media (max-width: 959px), (max-height: 539px) {
  .btn-hud-sponsor {
    display: none !important;
  }
}

.btn-rail-sponsor {
  border-color: rgba(246, 198, 96, 0.62) !important;
  background: linear-gradient(180deg, rgba(240, 186, 72, 0.28) 0%, rgba(182, 114, 34, 0.24) 100%) !important;
  color: #ffebba !important;
  font-weight: 800;
}

.window-head-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.sponsor-inline-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid #cf8228;
  background: linear-gradient(180deg, #fff6db 0%, #fbe2a2 100%);
  color: #6b2b10;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.window-head-side .sponsor-inline-pill {
  margin-top: 0;
}

.sponsor-inline-pill:hover {
  background: linear-gradient(180deg, #fffaf0 0%, #ffe8b0 100%);
}

.sponsor-mini-banner {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #cf8228;
  background: linear-gradient(135deg, #fff9e6 0%, #fde8b2 100%);
}

.sponsor-mini-banner > div {
  flex: 1 1 210px;
}

.sponsor-mini-banner strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.86rem;
  color: #5c2710;
}

.sponsor-mini-banner p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.38;
  color: #6d4726;
}

.reaction-sponsor-note {
  margin: 0 0 8px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #fff6dc;
  border: 1px dashed #cfa15a;
  font-size: 0.76rem;
  font-weight: 700;
  color: #6b3b18;
}

.drawer-panel.sponsor-panel,
.sponsor-panel {
  width: min(100%, 740px);
  border-top: 6px solid #e08b26;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 620px) {
  .sponsor-grid {
    grid-template-columns: 1.04fr 1fr;
  }
}

.sponsor-ad-box,
.sponsor-comment-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 13px;
  border-radius: 13px;
}

.sponsor-ad-box {
  border: 1.5px solid #d6943c;
  background: linear-gradient(160deg, #fffaf0 0%, #fceac0 100%);
}

.sponsor-comment-box {
  border: 1.5px solid rgba(79, 143, 123, 0.42);
  background: linear-gradient(160deg, #f8fcf9 0%, #e7f2ec 100%);
}

.sponsor-ad-box h3,
.sponsor-comment-box h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.sponsor-ad-box p,
.sponsor-comment-box p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.48;
  color: #4f3520;
}

.sponsor-roadmap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsor-roadmap li {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid #ddb36b;
  font-size: 0.74rem;
  font-weight: 800;
  color: #6b3812;
}

.sponsor-ad-actions {
  margin-top: 2px;
}

.btn-sponsor-watch {
  width: 100%;
  min-height: 40px;
}

.sponsor-ad-status {
  font-size: 0.75rem !important;
  color: #7b4e27 !important;
}

.sponsor-ask-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  line-height: 1.42;
  color: #2c433a;
}

.sponsor-ask-list li {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(79, 143, 123, 0.24);
}

.sponsor-wish-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sponsor-wish-btn {
  min-height: 32px;
  font-size: 0.75rem;
}

.sponsor-wish-reply {
  padding: 8px 10px;
  border-radius: 9px;
  border-left: 3.5px solid var(--celadon);
  background: #fffdf7;
  font-size: 0.78rem !important;
  font-weight: 700;
  color: #2f5448 !important;
}

.drawer-panel,
.recipe-card,
.pause-panel {
  width: min(100%, 580px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-top: 6px solid var(--vermilion);
  box-shadow: 0 22px 64px rgba(18, 8, 2, 0.45);
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.dialog-top h2,
.dialog-top p {
  margin: 0;
}

.recipe-tabs {
  display: flex;
  gap: 6px;
}

.stock-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.stock-dish {
  padding: 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1.5px solid var(--line);
}

.stock-dish-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.stock-dish-banner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stock-dish-thumb {
  width: 56px;
  height: 42px;
  flex: 0 0 56px;
  border-radius: 9px;
  border: 1.5px solid #c9b492;
  box-shadow: 0 2px 6px rgba(42, 22, 10, 0.14);
}

.stock-dish-head h3 {
  margin: 0 0 2px;
  font-size: 1.04rem;
}

.stock-set-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--celadon-soft);
  border: 1px solid rgba(79, 143, 123, 0.35);
  color: var(--celadon-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.stock-set-pill.is-empty {
  background: #fdece6;
  border-color: rgba(217, 78, 52, 0.4);
  color: var(--vermilion-dark);
}

.stock-dish ul,
.ingredient-list,
.feedback-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stock-dish li,
.ingredient-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.84rem;
}

.stock-dish li.is-out strong {
  color: var(--vermilion-dark);
}

.ingredient-list li small {
  color: var(--muted);
  font-size: 0.76rem;
}

.recipe-hero {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1.5px solid var(--line);
}

.recipe-hero-art {
  width: 176px;
  min-height: 128px;
  flex: 0 0 176px;
  border-radius: 10px;
  border: 2px solid var(--teak-mid);
  box-shadow: 0 4px 12px rgba(42, 22, 10, 0.18);
}

.recipe-hero-info {
  min-width: 0;
  flex: 1;
}

.recipe-hero-info h2 {
  margin: 2px 0 6px;
}

.recipe-hero-info p {
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.recipe-step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-step-pills li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  background: #fffdf7;
  border: 1px solid #d5c19c;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
}

.recipe-step-pills li span {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--celadon);
  color: #fff;
  font-size: 0.65rem;
}

.drawer-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.upgrade-box,
.rescue-box,
.ad-supply-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(79, 143, 123, 0.3);
  background: var(--celadon-soft);
}

.ad-supply-box {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  border-color: rgba(230, 179, 77, 0.55);
  background: linear-gradient(180deg, #fffaf0 0%, #f8ebd0 100%);
}

.ad-supply-box > div {
  flex: 1 1 220px;
}

.rescue-box {
  border-color: rgba(217, 78, 52, 0.3);
  background: var(--vermilion-soft);
}

.upgrade-box h3,
.rescue-box h3,
.ad-supply-box h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.upgrade-box p,
.rescue-box p,
.ad-supply-box p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 10px;
}

.ledger-grid div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.ledger-grid dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.ledger-grid dd {
  margin: 2px 0 0;
  font-size: 1.14rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cash-change {
  padding: 8px 0;
  margin-bottom: 10px;
  border-top: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
}

.feedback-list li {
  margin-bottom: 6px;
  padding: 8px 11px;
  border-left: 3.5px solid var(--celadon);
  border-radius: 6px;
  background: var(--cream);
  font-size: 0.82rem;
}

.empty-copy {
  color: var(--muted);
  font-size: 0.86rem;
}

.price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.price-row span {
  padding: 9px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
}

.price-row strong {
  display: block;
  font-size: 1.1rem;
  color: var(--vermilion-dark);
}

.notice {
  padding: 9px 12px;
  margin-bottom: 12px;
  border-left: 4px solid var(--celadon);
  border-radius: 6px;
  background: var(--celadon-soft);
  font-size: 0.84rem;
}

.pause-panel {
  max-width: 440px;
  text-align: center;
}

.pause-panel .eyebrow {
  color: var(--vermilion);
}

.pause-panel .button-row {
  justify-content: center;
  margin-top: 16px;
}

.recovery-shell {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 16px;
  background: var(--teak-deep);
  overflow-y: auto;
}

.recovery-panel {
  width: min(100%, 560px);
  border-top: 6px solid var(--vermilion);
}

.error-copy {
  padding: 12px;
  border-radius: 8px;
  background: var(--vermilion-soft);
  color: var(--vermilion-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.confirm-reset {
  margin-top: 16px;
  padding: 14px;
  border: 2px solid var(--vermilion);
  border-radius: 10px;
}

.toast {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  bottom: 60px;
  left: 50%;
  width: max-content;
  max-width: min(88vw, 480px);
  padding: 8px 16px;
  border: 2px solid var(--brass);
  border-radius: 10px;
  background: rgba(44, 27, 18, 0.95);
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.toast:empty {
  display: none;
}

/* =========================================================
   Milk-Frog Customers & Reaction Expressions
   ========================================================= */
.customer-frog-svg {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  filter: drop-shadow(0 3px 5px rgba(42, 22, 10, 0.22));
}

.cf-mini { width: 34px; height: 36px; }
.cf-card { width: 46px; height: 48px; }
.cf-ledger { width: 32px; height: 34px; }
.cf-hero { width: clamp(92px, 16vw, 134px); height: auto; }

.ticket-customer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(230, 179, 77, 0.14);
  border: 1px solid rgba(196, 152, 86, 0.35);
}

.ticket-customer strong {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
  line-height: 1.15;
}

.ticket-customer span {
  display: block;
  font-size: 0.66rem;
  color: var(--muted);
}

.ticket-guest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.ticket-guest-meta strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.15;
}

.ticket-guest-meta span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

.ticket-wait {
  margin: 0 0 6px !important;
  font-size: 0.74rem !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--celadon-dark) !important;
}

.ticket-wait.is-late {
  color: var(--vermilion) !important;
}

.ticket.is-late {
  border-color: var(--vermilion);
  border-left-color: var(--vermilion);
}

/* Reaction Pills & Ledger Guest Row */
.reaction-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.reaction-pill-laugh { background: #ffe49c; color: #7a4208; border: 1px solid #e6a932; }
.reaction-pill-neutral { background: #ebe4d5; color: #5c4c3c; border: 1px solid #c9bba2; }
.reaction-pill-disappointed { background: #ddebf2; color: #2f5b73; border: 1px solid #9cc2d6; }
.reaction-pill-angry { background: #fcd8d0; color: #9c2416; border: 1px solid #e06d5a; }

.feedback-guest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  vertical-align: middle;
}

.feedback-copy {
  vertical-align: middle;
}

/* Non-Blocking Post-Serve Customer Reaction Stage Overlay */
.reaction-stage-overlay {
  position: absolute;
  inset: 7px;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(34, 20, 11, 0.56);
  backdrop-filter: blur(2px);
  animation: reaction-fade-in 0.22s ease-out;
}

.reaction-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 540px);
  max-height: 100%;
  overflow-y: auto;
  padding: 16px 20px;
  border: 2.5px solid var(--teak-dark);
  border-top: 6px solid var(--brass);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8 0%, #faf0db 100%);
  box-shadow: 0 18px 42px rgba(20, 10, 4, 0.42);
}

.reaction-tone-laugh { border-top-color: #f0b232; }
.reaction-tone-neutral { border-top-color: #8f9e95; }
.reaction-tone-disappointed { border-top-color: #5c9ec0; }
.reaction-tone-angry { border-top-color: var(--vermilion); }

.reaction-portrait {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(255, 245, 214, 0.9), rgba(236, 217, 178, 0.45));
  border: 1.5px solid rgba(196, 152, 86, 0.35);
}

.reaction-body {
  min-width: 0;
  flex: 1;
}

.reaction-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.reaction-grade {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--vermilion-dark);
  font-variant-numeric: tabular-nums;
}

.reaction-body h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  color: var(--ink);
}

.reaction-body h3 small {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.reaction-quote {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.reaction-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.reaction-details span {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
}

.reaction-details b {
  color: var(--ink);
}

/* Expressive Customer Reaction Keyframes */
.customer-frog-svg.mood-laugh {
  animation: cf-laugh-hop 0.62s cubic-bezier(0.3, 0, 0.2, 1) infinite;
}

.customer-frog-svg.mood-laugh .cf-fx-laugh {
  transform-origin: center;
  animation: cf-fx-pop 0.9s ease-in-out infinite alternate;
}

.customer-frog-svg.mood-neutral {
  animation: cf-neutral-sway 2.6s ease-in-out infinite;
}

.customer-frog-svg.mood-disappointed {
  animation: cf-sad-slump 2s ease-in-out infinite;
}

.customer-frog-svg.mood-disappointed .cf-fx-sad {
  animation: cf-drop-fall 1.6s ease-in infinite;
}

.customer-frog-svg.mood-angry {
  animation: cf-angry-shake 0.34s ease-in-out infinite;
}

.customer-frog-svg.mood-angry .cf-fx-angry {
  transform-origin: 99px 27px;
  animation: cf-anger-pulse 0.55s ease-in-out infinite alternate;
}

@keyframes reaction-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes cf-laugh-hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  35% { transform: translateY(-9px) scale(0.97, 1.04) rotate(-3deg); }
  70% { transform: translateY(-5px) scale(1.03, 0.97) rotate(3deg); }
}

@keyframes cf-fx-pop {
  from { transform: scale(0.86); opacity: 0.75; }
  to { transform: scale(1.12); opacity: 1; }
}

@keyframes cf-neutral-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2deg) translateY(1px); }
}

@keyframes cf-sad-slump {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(4px) scaleY(0.96); }
}

@keyframes cf-drop-fall {
  0% { transform: translateY(-3px); opacity: 0.9; }
  100% { transform: translateY(9px); opacity: 0.15; }
}

@keyframes cf-angry-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-3px) rotate(-2.5deg); }
  75% { transform: translateX(3px) rotate(2.5deg); }
}

@keyframes cf-anger-pulse {
  from { transform: scale(0.88); }
  to { transform: scale(1.18); }
}

.dialog-title-with-frog {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialog-sticker-svg,
.naiwa-svg.dialog-sticker-svg {
  width: 44px;
  height: 46px;
  flex: 0 0 44px;
  filter: drop-shadow(0 2px 4px rgba(42, 22, 10, 0.2));
}

.pause-sticker-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.pause-sticker-svg,
.naiwa-svg.pause-sticker-svg {
  width: 66px;
  height: 68px;
  filter: drop-shadow(0 4px 8px rgba(42, 22, 10, 0.22));
}

.pause-audio-row {
  margin-top: 10px !important;
}

/* =========================================================
   Goofy Milk-Frog Bench Actors, Stamps, Party & Tactile Juice
   ========================================================= */
.naiwa-buddy {
  position: absolute;
  left: var(--nx);
  top: var(--ny);
  width: 58px;
  height: 60px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  z-index: 5;
  cursor: pointer;
}

body.is-dragging-prop .naiwa-buddy {
  pointer-events: none;
  opacity: 0.72;
}

.naiwa-buddy-art {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 5px rgba(34, 18, 6, 0.28));
  transition: transform 0.14s ease;
}

.naiwa-buddy-bubble {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  max-width: 162px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1.5px solid #3a2518;
  background: rgba(255, 252, 240, 0.94);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(28, 14, 4, 0.24);
  pointer-events: none;
}

.naiwa-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.naiwa-pose-frenzy-dance {
  transform-origin: 50% 90%;
  animation: nw-frenzy 0.56s ease-in-out infinite;
}

.naiwa-pose-belly-laugh {
  transform-origin: 50% 85%;
  animation: nw-laugh 0.46s ease-in-out infinite;
}

.naiwa-pose-red-panic {
  transform-origin: 50% 80%;
  animation: nw-panic 0.24s ease-in-out infinite;
}

.naiwa-pose-question {
  transform-origin: 50% 80%;
  animation: nw-question 1.2s ease-in-out infinite alternate;
}

.naiwa-pose-side-eye {
  animation: nw-idle 2.4s ease-in-out infinite;
}

.naiwa-pose-chef-hype {
  animation: nw-hype 1.1s ease-in-out infinite;
}

@keyframes nw-frenzy {
  0%, 100% { transform: translateY(0) rotate(-4deg) scale(1, 1); }
  50% { transform: translateY(-6px) rotate(4deg) scale(0.95, 1.07); }
}

@keyframes nw-laugh {
  0%, 100% { transform: translateY(0) scale(1.03, 0.96); }
  50% { transform: translateY(-4px) scale(0.97, 1.04); }
}

@keyframes nw-panic {
  0%, 100% { transform: translateX(-2.5px) rotate(-2deg); }
  50% { transform: translateX(2.5px) rotate(2deg); }
}

@keyframes nw-question {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}

@keyframes nw-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes nw-hype {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

.is-boing {
  animation: juice-boing 0.34s cubic-bezier(0.28, 1.55, 0.5, 1);
}

.kprop.is-boing .prop-art {
  animation: juice-boing 0.34s cubic-bezier(0.28, 1.55, 0.5, 1);
}

@keyframes juice-boing {
  0% { transform: scale(1); }
  25% { transform: translateX(-6px) scale(0.92, 1.08); }
  55% { transform: translateX(6px) scale(1.07, 0.93); }
  80% { transform: translateX(-3px) scale(0.98, 1.02); }
  100% { transform: none; }
}

.truck-workbench.is-thud {
  animation: bench-thud 0.17s ease-out;
}

@keyframes bench-thud {
  0% { transform: translateY(0); }
  35% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

.naiwa-stamp {
  position: absolute;
  z-index: 30;
  padding: 2px 8px;
  border-radius: 999px;
  border: 2px solid #3a2518;
  background: #fff9e2;
  color: #3a2518;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(24, 12, 4, 0.28);
  transform: translate(-50%, -50%);
  animation: nw-stamp-pop 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.naiwa-stamp-gold {
  background: #ffe072;
  color: #52290a;
}

.naiwa-stamp-good {
  background: #d8f6e8;
  border-color: #2c6e56;
  color: #1c4d3b;
}

.naiwa-stamp-warn {
  background: #ffd9be;
  border-color: #9e3d18;
  color: #7d2508;
}

.naiwa-stamp-oops {
  background: #ffd3cc;
  border-color: #9e2418;
  color: #78170d;
}

@keyframes nw-stamp-pop {
  0% { opacity: 0; transform: translate(-50%, -25%) scale(0.6) rotate(-6deg); }
  25% { opacity: 1; transform: translate(-50%, -65%) scale(1.1) rotate(3deg); }
  100% { opacity: 0; transform: translate(-50%, -135%) scale(0.92) rotate(-2deg); }
}

.naiwa-party-frog {
  position: absolute;
  bottom: 4%;
  width: 34px;
  height: 36px;
  z-index: 28;
  pointer-events: none;
  animation: nw-party-hop 1.4s cubic-bezier(0.22, 0.9, 0.3, 1) var(--delay, 0ms) forwards;
}

@keyframes nw-party-hop {
  0% { opacity: 0; transform: translate(0, 12px) scale(0.4); }
  22% { opacity: 1; transform: translate(calc(var(--drift, 12px) * 0.4), -130px) scale(1.08) rotate(-8deg); }
  55% { opacity: 1; transform: translate(calc(var(--drift, 12px) * 0.8), -88px) scale(0.95) rotate(10deg); }
  100% { opacity: 0; transform: translate(var(--drift, 12px), -190px) scale(0.75) rotate(-6deg); }
}

@media (pointer: coarse) {
  .btn:hover:not(:disabled),
  .zone-tab:hover,
  .kprop.is-source:hover .prop-art {
    transform: none;
  }

  .btn:active:not(:disabled),
  .zone-tab:active {
    transform: scale(0.96);
  }

  .kprop.receives .prop-art,
  .kprop.at-drop .prop-art {
    filter: drop-shadow(0 0 11px #ffe778) drop-shadow(0 0 6px #ffffff);
  }
}

/* =========================================================
   Responsive: Mobile Landscape (844x390 and short screens)
   ========================================================= */
@media (orientation: landscape) and (max-height: 500px) {
  .hud-bar {
    min-height: 36px;
    padding-block: 2px;
  }

  .hud-emblem {
    display: none;
  }

  .hud-brand strong {
    font-size: 0.92rem;
  }

  .hud-brand-text span {
    font-size: 0.7rem;
  }

  .hud-audio-label,
  .kbd-cap,
  .naiwa-buddy,
  .stall-frog-bubble {
    display: none;
  }

  .btn-audio-toggle {
    gap: 0;
    min-width: 30px;
    padding-inline: 7px !important;
  }

  .hud-actions .btn {
    min-height: 30px;
    padding: 2px 7px;
    font-size: 0.74rem;
  }

  .play-stage {
    grid-template-columns: minmax(0, 1fr) clamp(144px, 19.5vw, 162px);
  }

  .stage-viewport {
    padding: 4px;
    gap: 3px;
  }

  .bench-guide-bar {
    min-height: 25px;
    padding: 2px 7px;
    gap: 5px;
    font-size: 0.7rem;
  }

  .bench-guide-badge {
    font-size: 0.62rem;
    padding: 1.5px 6px;
  }

  .bench-guide-jump {
    min-height: 21px;
    padding: 1px 8px;
    font-size: 0.66rem;
  }

  .ticket-rail {
    gap: 4px;
    padding: 4px 5px 4px 3px;
  }

  .paper-ticket {
    padding: 7px 6px 5px;
  }

  .paper-ticket::after {
    bottom: -4px;
    height: 4px;
  }

  .ticket-clip {
    top: -5px;
    width: 34px;
    height: 9px;
  }

  .ticket-head {
    margin-bottom: 2px;
    font-size: 0.64rem;
  }

  .ticket-customer {
    gap: 5px;
    margin: 0 0 3px;
    padding: 2px 5px;
  }

  .ticket-customer strong {
    font-size: 0.72rem;
  }

  .ticket-customer span {
    font-size: 0.6rem;
  }

  .ticket-dish {
    font-size: 0.84rem;
    margin-bottom: 3px;
    padding-bottom: 2px;
  }

  .ticket-dish small {
    font-size: 0.7rem;
  }

  .ticket-reqs {
    gap: 1px;
    margin-bottom: 3px;
  }

  .ticket-reqs li {
    gap: 4px;
    font-size: 0.65rem;
    line-height: 1.18;
  }

  .ticket-reqs li b {
    white-space: nowrap;
  }

  .order-clock {
    padding-top: 3px;
  }

  .order-clock strong {
    font-size: 0.84rem;
  }

  .rail-cue {
    gap: 5px;
    padding: 4px 6px;
    font-size: 0.65rem;
    line-height: 1.22;
  }

  .rail-frog-actor {
    flex: 0 0 24px;
    width: 24px;
    height: 26px;
    border-radius: 6px;
  }

  .rail-cue strong {
    font-size: 0.68rem;
    margin-bottom: 1px;
  }

  .rail-foot-stack {
    gap: 4px;
  }

  .rail-foot .btn {
    min-height: 28px;
    padding: 2px 6px;
    font-size: 0.7rem;
  }

  .kitchen-zones {
    padding-block: 3px;
  }

  .zone-tab {
    min-height: 36px;
    padding: 4px 6px;
    font-size: 0.82rem;
  }

  .zone-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .prop-label {
    font-size: 10px;
    padding: 1px 4px;
  }

  .prop-gauge {
    top: -5px;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1.5px 5px;
  }

  .stove-knobs {
    min-width: clamp(156px, 29vw, 198px);
    min-height: 38px;
    padding: 3px;
    gap: 3px;
  }

  .stove-knobs button {
    min-height: 32px;
    padding: 2px 6px;
    font-size: 0.72rem;
  }

  .stove-knobs button i {
    width: 12px;
    height: 12px;
  }

  .stall-lantern-l {
    display: none;
  }

  .stall-sign {
    top: 24px;
    left: 1.8%;
    padding: 3px 8px;
    font-size: 0.68rem;
    gap: 5px;
    letter-spacing: 0.04em;
  }

  .stall-frog,
  .stall-frog-poke {
    left: 1%;
    bottom: 10%;
    width: clamp(92px, 15vw, 132px);
    height: clamp(120px, 20.5vw, 174px);
  }

  .order-window-layer {
    padding: 22px 8px 4px clamp(100px, 16.8vw, 142px);
  }

  .window-card {
    padding: 6px 10px;
  }

  .welcome-head {
    margin-bottom: 4px;
  }

  .welcome-head h2 {
    margin-top: 2px;
    font-size: 0.96rem;
  }

  .welcome-steps,
  .dish-card-desc {
    display: none;
  }

  .dish-showcase-grid {
    gap: 7px;
  }

  .dish-card-photo {
    height: clamp(32px, 9.5vh, 44px);
    height: clamp(32px, 9.5dvh, 44px);
  }

  .dish-card-body {
    padding: 4px 8px 5px;
    gap: 4px;
  }

  .dish-card-title strong {
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .dish-card-title span {
    font-size: 0.64rem;
  }

  .dish-card-body .btn {
    min-height: 34px;
    padding: 4px 8px;
    font-size: 0.76rem;
  }

  .welcome-ready-actions {
    margin-top: 5px;
    gap: 6px;
  }

  .welcome-ready-actions .btn {
    min-height: 32px;
  }

  .support-ad-strip {
    flex-wrap: nowrap;
    margin-top: 5px;
    padding: 4px 8px;
    gap: 6px;
  }

  .sponsor-card-main {
    flex: 1 1 0;
  }

  .sponsor-card-avatar,
  .sponsor-card-sub {
    display: none;
  }

  .sponsor-card-title-row {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .sponsor-card-title-row strong {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sponsor-seal {
    font-size: 0.64rem;
    padding: 1px 6px;
  }

  .sponsor-card-more {
    font-size: 0.66rem;
    padding: 2px 6px;
  }

  .btn-support-ad {
    min-height: 28px;
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  .sponsor-inline-pill {
    margin-top: 4px;
    padding: 2px 7px;
    font-size: 0.68rem;
  }

  .reaction-sponsor-note {
    display: none;
  }

  .drawer-panel.sponsor-panel,
  .sponsor-panel {
    width: min(100%, 680px);
  }

  .sponsor-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .sponsor-ad-box,
  .sponsor-comment-box {
    padding: 8px 10px;
    gap: 5px;
  }

  .sponsor-ad-box h3,
  .sponsor-comment-box h3 {
    font-size: 0.88rem;
  }

  .sponsor-ad-box p,
  .sponsor-comment-box p,
  .sponsor-ask-list {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .sponsor-ask-list {
    gap: 4px;
  }

  .sponsor-ask-list li {
    padding: 4px 6px;
  }

  .btn-sponsor-watch {
    min-height: 32px;
    font-size: 0.76rem;
  }

  .sponsor-wish-btn {
    min-height: 28px;
    padding: 2px 7px;
    font-size: 0.68rem;
  }

  .sponsor-wish-reply {
    padding: 5px 8px;
    font-size: 0.7rem !important;
  }

  .active-dish-thumb {
    width: 58px;
    height: 44px;
    flex-basis: 58px;
  }

  .active-flow-strip li {
    padding: 3px 5px;
    font-size: 0.66rem;
  }

  .closed-kpis {
    gap: 5px;
    margin: 5px 0 7px;
  }

  .closed-kpis div {
    padding: 5px 6px;
  }

  .closed-kpis dd {
    font-size: 0.86rem;
  }

  .modal-backdrop {
    padding: 6px 12px;
  }

  .drawer-panel,
  .recipe-card,
  .pause-panel {
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    padding: 10px 14px;
  }

  .pause-panel {
    max-width: 460px;
  }

  .pause-sticker-wrap {
    margin-bottom: 2px;
  }

  .pause-sticker-svg,
  .naiwa-svg.pause-sticker-svg {
    width: 38px;
    height: 40px;
  }

  .pause-panel p {
    margin: 0 0 6px;
    font-size: 0.74rem;
    line-height: 1.28;
  }

  .pause-panel .eyebrow {
    margin-bottom: 2px;
    font-size: 0.66rem;
  }

  .pause-panel h2 {
    margin: 0 0 2px;
    font-size: 1.02rem;
  }

  .pause-panel .button-row {
    margin-top: 6px;
    gap: 6px;
  }

  .pause-audio-row {
    margin-top: 6px !important;
  }

  .pause-panel .btn {
    min-height: 34px;
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .dialog-top {
    margin-bottom: 6px;
  }

  .dialog-sticker-svg,
  .naiwa-svg.dialog-sticker-svg {
    width: 32px;
    height: 34px;
    flex: 0 0 32px;
  }

  .recipe-hero {
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
  }

  .recipe-hero-art {
    width: 112px;
    min-height: 78px;
    flex: 0 0 112px;
  }

  .recipe-hero-info h2 {
    margin: 0 0 3px;
    font-size: 0.98rem;
  }

  .recipe-hero-info p {
    margin-bottom: 4px;
    font-size: 0.75rem;
  }

  .ingredient-list li,
  .stock-dish li {
    padding: 4px 0;
    font-size: 0.76rem;
  }

  .cf-mini { width: 22px; height: 24px; }
  .cf-card { width: 34px; height: 36px; }
  .cf-hero { width: 78px; }
  .reaction-card { gap: 10px; padding: 10px 12px; }
  .reaction-body h3 { font-size: 0.96rem; margin-bottom: 3px; }
  .reaction-quote { font-size: 0.78rem; margin-bottom: 6px; }
  .reaction-details { margin-bottom: 6px; }

  .toast {
    /* 订单进行中：占用 HUD 钱包与 5 按钮操作栏之间的空档，
       不碰钱包、操作按钮、工作台和纸客票。 */
    inset: 3px 236px auto 232px;
    width: auto;
    max-width: none;
    padding: 3px 8px;
    border-width: 1.5px;
    border-radius: 7px;
    font-size: 0.66rem;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    transform: none;
    text-align: left;
  }

  /* 无订单时不会出现工作台厨具或计时；长反馈放进右侧票据栏正文，
     避开钱包、顶部按钮、底部工位栏和撤单按钮。 */
  body:has(.game-shell:not(.has-order)) .toast {
    inset: 100px 5px auto auto;
    width: 134px;
    max-width: 134px;
  }
}

/* =========================================================
   Responsive: Mobile Portrait (390x844)
   ========================================================= */
@media (max-width: 640px) and (orientation: portrait) {
  .hud-bar {
    gap: 5px;
    padding: 4px 7px;
  }

  .hud-emblem {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .hud-brand-btn {
    gap: 5px;
    padding: 2px 4px 2px 2px;
  }

  .hud-brand strong {
    font-size: 0.92rem;
    letter-spacing: 0.02em;
  }

  .hud-audio-label,
  .hud-brand span,
  .hud-badge,
  .kbd-cap,
  .naiwa-buddy,
  .stall-frog-bubble {
    display: none;
  }

  .hud-actions {
    gap: 4px;
  }

  .hud-actions .btn {
    min-height: 36px;
    padding: 4px 6px;
    font-size: 0.76rem;
  }

  .btn-audio-toggle {
    gap: 0;
    min-width: 30px;
    padding-inline: 6px !important;
  }

  .play-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .ticket-rail {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-left: 0;
    border-bottom: 2px solid #593a26;
    overflow: visible;
  }

  .paper-ticket {
    flex: 1 1 210px;
    padding: 8px 10px 7px;
  }

  .ticket-clip {
    display: none;
  }

  .ticket-reqs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 4px;
  }

  .ticket-reqs li b {
    margin-left: 2px;
  }

  .rail-cue {
    flex: 1 1 100%;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .rail-frog-actor {
    flex: 0 0 32px;
    width: 32px;
    height: 34px;
  }

  .rail-cue-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
  }

  .rail-cue strong {
    margin-bottom: 0;
  }

  .rail-cue .inspection-text:not([hidden]) {
    flex: 1 1 100%;
    margin-top: 4px;
  }

  .rail-foot {
    margin-top: 0;
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
  }

  .rail-foot.is-confirming {
    flex: 1 1 100%;
  }

  .cancel-confirm-note {
    font-size: 0.72rem;
    color: #f3dcc0;
    margin-right: 4px;
  }

  .rail-foot .btn {
    width: auto;
    min-height: 34px;
    padding: 4px 8px;
    font-size: 0.74rem;
  }

  .toast {
    top: 172px;
    bottom: auto;
    max-width: min(92vw, 370px);
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  /* 有订单时贴到 rail-cue 状态区：教学票从 202px 起排（计时到 196），
     服务票因多一行顾客卡整体下移，从 254px 起排（计时到 248）。 */
  body:has(.game-shell.has-order) .toast {
    top: 202px;
    padding: 4px 10px;
    font-size: 0.7rem;
    line-height: 1.18;
  }

  body:has(.game-shell.has-order .ticket-customer) .toast {
    top: 254px;
  }

  .order-window-layer {
    align-items: flex-end;
    justify-content: center;
    padding: 156px 10px 8px;
  }

  .stall-lantern {
    display: none;
  }

  .stall-sign {
    top: 22px;
    left: 50%;
    padding: 3px 11px;
    font-size: 0.74rem;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .stall-frog,
  .stall-frog-poke {
    left: 50%;
    top: 50px;
    bottom: auto;
    width: 112px;
    height: 126px;
    transform: translateX(-50%);
    animation: none;
  }

  .welcome-steps li {
    padding: 3px 5px;
    font-size: 0.66rem;
  }

  .dish-card-photo {
    height: 46px;
  }

  .dish-card-desc {
    display: none;
  }

  .dish-card-title {
    flex-wrap: wrap;
  }

  .support-ad-strip {
    flex-wrap: nowrap;
    margin-top: 6px;
    padding: 5px 8px;
    gap: 5px;
  }

  .sponsor-card-main {
    flex: 1 1 0;
  }

  .sponsor-card-avatar,
  .sponsor-card-sub,
  .sponsor-card-more {
    display: none;
  }

  .sponsor-card-title-row {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .sponsor-card-title-row strong {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-support-ad {
    min-height: 28px;
    padding: 2px 8px;
    font-size: 0.68rem;
  }

  .recipe-hero {
    flex-direction: column;
    gap: 10px;
  }

  .recipe-hero-art {
    width: 100%;
    min-height: 120px;
    flex-basis: auto;
  }

  .ticket-list,
  .stock-list,
  .drawer-extras {
    grid-template-columns: 1fr;
  }

  .reaction-card {
    flex-direction: column;
    text-align: center;
    padding: 14px;
    gap: 10px;
  }

  .reaction-head,
  .reaction-details,
  .reaction-actions {
    justify-content: center;
  }

  .zone-tab {
    min-height: 48px;
    font-size: 0.82rem;
    padding: 6px 4px;
    gap: 4px;
  }

  .zone-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .prop-label {
    font-size: 10px;
    padding: 1px 4px;
  }

  .prop-gauge {
    top: -4px;
    font-size: 9px;
    padding: 1px 5px;
  }

  .stove-knobs {
    left: calc(var(--px) + 5px);
    min-width: 164px;
  }
}

/* 短竖屏（320x480 / 320x568）：收掉欢迎卡上方的大段留白与配图，
   保证两枚教学按钮都留在工作区内，且不被底部工位栏压住。 */
@media (max-width: 640px) and (orientation: portrait) and (max-height: 620px) {
  .hud-emblem,
  .stall-sign,
  .stall-frog,
  .stall-frog-poke,
  .stall-frog-bubble,
  .welcome-steps,
  .dish-card-photo,
  .dish-card-desc,
  .dish-card-title span {
    display: none;
  }

  .order-window-layer {
    align-items: center;
    padding: 6px 8px 4px;
  }

  .window-card {
    padding: 6px 9px;
  }

  .welcome-head {
    margin-bottom: 3px;
  }

  .welcome-head .seal-tag {
    padding: 1px 7px;
    font-size: 0.62rem;
  }

  .welcome-head h2 {
    margin: 1px 0 0;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .dish-showcase-grid {
    gap: 5px;
  }

  .dish-card-body {
    padding: 4px 6px;
    gap: 3px;
  }

  .dish-card-title strong {
    font-size: 0.8rem;
  }

  .dish-card-body .btn {
    min-height: 30px;
    padding: 3px 5px;
    font-size: 0.72rem;
  }

  .support-ad-strip {
    flex-wrap: nowrap;
    margin-top: 4px;
    padding: 3px 6px;
    gap: 4px;
  }

  .sponsor-card-avatar,
  .sponsor-card-sub,
  .sponsor-card-more {
    display: none;
  }

  .sponsor-seal {
    padding: 1px 5px;
    font-size: 0.62rem;
  }

  .sponsor-card-title-row strong {
    font-size: 0.68rem;
  }

  .btn-support-ad {
    min-height: 24px !important;
    padding: 2px 7px !important;
    font-size: 0.64rem !important;
  }
}

@media (max-width: 360px) and (orientation: portrait) {
  .hud-bar {
    flex-wrap: nowrap;
    gap: 4px;
    padding: 4px 6px;
  }

  .hud-emblem {
    display: none;
  }

  .hud-brand strong {
    font-size: 0.86rem;
  }

  .hud-wallet {
    gap: 3px;
    padding: 2px 7px 2px 3px;
  }

  .hud-wallet i {
    width: 18px;
    height: 18px;
    font-size: 0.66rem;
  }

  .hud-wallet strong {
    font-size: 0.84rem;
  }

  .hud-actions {
    gap: 3px;
  }

  .hud-actions .btn {
    min-height: 32px;
    padding: 3px 5px;
    font-size: 0.7rem;
  }

  .btn-audio-toggle {
    min-width: 26px;
    padding-inline: 4px !important;
  }

  .zone-tab {
    flex-direction: column;
    gap: 1px;
    padding: 3px 1px;
  }

  .zone-dot {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 5px;
    height: 5px;
  }
}

/* =========================================================
   Desktop Physical Phone-Scale Preview Simulator & Thumb Ring
   ========================================================= */
.btn-phone-sim {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(230, 179, 77, 0.55);
  background: linear-gradient(180deg, #533624 0%, #3d2517 100%);
  color: #fce7b6;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 0 2px 0 #1f1108;
  white-space: nowrap;
}

.btn-phone-sim:hover:not(:disabled) {
  background: linear-gradient(180deg, #68442e 0%, #4d2f1e 100%);
  border-color: var(--brass-bright);
  color: #fffdf6;
}

@media (max-width: 959px), (max-height: 539px), (pointer: coarse) {
  .btn-phone-sim {
    display: none !important;
  }
}

.thumb-pad-ring {
  position: fixed;
  left: -100px;
  top: -100px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 224, 130, 0.88);
  background: radial-gradient(circle, rgba(255, 224, 130, 0.24) 0 58%, rgba(217, 78, 52, 0.16) 100%);
  box-shadow: 0 0 0 1.5px rgba(42, 22, 10, 0.55);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.08s ease;
}

.thumb-pad-ring.is-visible {
  opacity: 1;
}

.thumb-pad-ring.is-pressed {
  transform: translate(-50%, -50%) scale(0.92);
  border-color: #fff7d6;
  background: radial-gradient(circle, rgba(255, 200, 92, 0.36) 0 60%, rgba(217, 78, 52, 0.25) 100%);
}

body.is-phone-sim-host {
  background: radial-gradient(circle at 50% 25%, #2b211a 0%, #16110e 70%, #0e0b09 100%);
  color: #f6ead7;
  overflow: auto;
}

.phone-sim-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px 24px;
}

.phone-sim-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  max-width: min(100%, 1040px);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(44, 28, 19, 0.92);
  border: 1.5px solid rgba(230, 179, 77, 0.38);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.phone-sim-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brass-bright);
  white-space: nowrap;
}

.phone-sim-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.phone-sim-btn {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 9px;
  border: 1.5px solid #6e4e35;
  background: #3d2619;
  color: #f3e4cc;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.phone-sim-btn:hover {
  border-color: var(--brass);
  background: #4e3222;
}

.phone-sim-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #fae094 0%, #e5b044 100%);
  border-color: #ffe8a8;
  color: #2c180b;
}

.phone-sim-scale-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(20, 12, 7, 0.55);
  border: 1px solid rgba(230, 179, 77, 0.25);
  font-size: 0.74rem;
  color: #eddcc4;
}

.phone-sim-scale-ctrl input[type="range"] {
  width: 96px;
  accent-color: #f0be52;
  cursor: pointer;
}

.phone-sim-readout {
  font-variant-numeric: tabular-nums;
  color: #ffe5a3;
  font-weight: 700;
  white-space: nowrap;
}

.phone-sim-exit {
  border-color: #e68a6f;
  background: linear-gradient(180deg, #d95138 0%, #b33822 100%);
  color: #fff;
}

.phone-sim-exit:hover {
  background: linear-gradient(180deg, #e76145 0%, #c74128 100%);
  border-color: #ffcbb8;
}

.phone-sim-stage {
  display: grid;
  place-items: center;
  padding: 8px;
}

.phone-sim-bezel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px 28px;
  border-radius: 34px;
  background: linear-gradient(145deg, #27272b 0%, #141417 55%, #09090b 100%);
  border: 2px solid #3f3f46;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.65);
}

.phone-sim-island {
  position: absolute;
  left: 9px;
  top: 50%;
  width: 7px;
  height: 52px;
  border-radius: 999px;
  background: #070709;
  border: 1px solid #27272c;
  transform: translateY(-50%);
  pointer-events: none;
}

.phone-sim-speaker {
  position: absolute;
  right: 11px;
  top: 50%;
  width: 4px;
  height: 34px;
  border-radius: 999px;
  background: #2c2c32;
  transform: translateY(-50%);
  pointer-events: none;
}

.phone-sim-screen {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #1f120b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-sim-iframe {
  display: block;
  border: 0;
  transform-origin: 0 0;
  background: #2b1a10;
}

.phone-sim-tip {
  margin: 0;
  font-size: 0.78rem;
  color: #cbb89d;
  text-align: center;
  max-width: 720px;
}

html:has(body.is-rotated-landscape-host),
body.is-rotated-landscape-host {
  overflow: hidden;
  background: #22140c;
  width: 100%;
  height: 100%;
}

.rotated-landscape-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #22140c;
}

.rotated-landscape-iframe {
  position: fixed;
  top: 0;
  border: 0;
  display: block;
  transform-origin: 0 0;
  background: #2b1a10;
}

/* =========================================================
   Four-Dish Showcase, Naiwa Center Hub & Paw 16:9 Theater
   ========================================================= */
.btn-naiwa-hub {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 2px 10px 2px 6px;
  border-radius: 11px;
  border: 1.5px solid #e6b34d;
  background: linear-gradient(180deg, #643d25 0%, #412516 55%, #2f1a0f 100%);
  color: #fff4d8;
  font-size: 0.76rem;
  font-weight: 850;
  box-shadow: 0 2px 0 #1b0e06, inset 0 1px 0 rgba(255, 229, 168, 0.28);
  white-space: nowrap;
}

.btn-naiwa-hub:hover:not(:disabled) {
  background: linear-gradient(180deg, #794a2d 0%, #4d2c1b 100%);
  border-color: var(--brass-bright);
  color: #fffdf6;
}

.btn-naiwa-hub[aria-pressed="true"] {
  background: linear-gradient(180deg, #fbe090 0%, #e1a83c 100%);
  color: #2c180b;
  border-color: #fff5d6;
}

.hub-svg-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
}

.hub-svg-star {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  display: block;
}

.hub-btn-title {
  letter-spacing: 0.03em;
}

.hub-btn-meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(24, 12, 5, 0.42);
  border: 1px solid rgba(255, 222, 148, 0.28);
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffe399;
}

.btn-naiwa-hub[aria-pressed="true"] .hub-btn-meta {
  background: rgba(58, 33, 16, 0.16);
  color: #321b0c;
  border-color: rgba(58, 33, 16, 0.25);
}

.prog-fame-label {
  font-style: normal;
  font-weight: 700;
  opacity: 0.92;
}

.hub-cue-badge {
  font-style: normal;
  padding: 1px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6c49 0%, #c93b1f 100%);
  border: 1px solid #ffd8b0;
  color: #fffdf7;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  animation: hub-cue-pulse 2.2s ease-in-out infinite;
}

.hub-cue-badge.is-quest,
.hub-nav-badge.is-quest {
  background: linear-gradient(180deg, #f7a62d 0%, #c95816 100%);
  border-color: #fff1b8;
}

@keyframes hub-cue-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.btn-rail-hub {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-color: #c9923b !important;
  background: linear-gradient(180deg, #fff5dc 0%, #f2ddb0 100%) !important;
  color: #3d210f !important;
  font-weight: 850 !important;
}

.welcome-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.welcome-hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  border: 1.5px solid #cb8a2e;
  background: linear-gradient(180deg, #fff8e6 0%, #f7e1ae 100%);
  color: #4a2810;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(74, 40, 16, 0.16);
}

.welcome-hub-chip:hover {
  background: linear-gradient(180deg, #fffdf7 0%, #fbe9bc 100%);
  border-color: #9e6215;
}

.welcome-hub-chip .hub-svg-icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

.dish-showcase-grid.is-four-dishes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dish-showcase-grid.is-three-dishes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dish-showcase-grid.is-many-dishes .dish-card-photo {
  height: clamp(64px, 13.5cqh, 96px);
}

.dish-showcase-grid.is-many-dishes .dish-card-body {
  padding: 6px 8px 7px;
  gap: 4px;
}

.dish-showcase-grid.is-many-dishes .dish-card-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.dish-showcase-grid.is-many-dishes .dish-card-title strong {
  font-size: 0.88rem;
}

.dish-showcase-grid.is-many-dishes .dish-card-desc {
  display: none;
}

@media (max-height: 460px) and (orientation: landscape) {
  .dish-showcase-grid.is-many-dishes {
    gap: 6px;
  }

  .dish-showcase-grid.is-many-dishes .dish-card-photo {
    height: clamp(26px, 8vh, 38px);
    height: clamp(26px, 8dvh, 38px);
  }

  .dish-showcase-grid.is-many-dishes .dish-card-body {
    padding: 3px 6px 4px;
    gap: 3px;
  }

  .dish-showcase-grid.is-many-dishes .dish-card-title strong {
    font-size: 0.78rem;
  }

  .dish-showcase-grid.is-many-dishes .dish-card-title span {
    display: none;
  }

  .dish-showcase-grid.is-many-dishes .dish-price-pill,
  .dish-showcase-grid.is-many-dishes .dish-status-pill {
    font-size: 0.6rem;
    padding: 1px 5px;
  }

  .dish-showcase-grid.is-many-dishes .btn {
    min-height: 28px;
    padding: 2px 6px;
    font-size: 0.7rem;
  }
}

@media (max-width: 680px) and (orientation: portrait) {
  .dish-showcase-grid.is-four-dishes,
  .dish-showcase-grid.is-three-dishes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .btn-naiwa-hub .hub-btn-meta {
    display: none;
  }
}

@media (max-width: 860px) {
  .btn-naiwa-hub .prog-fame-label {
    display: none;
  }
}

@media (max-width: 500px) and (orientation: portrait) {
  .btn-naiwa-hub {
    display: none;
  }
}

@media (max-width: 640px) and (orientation: portrait) and (max-height: 620px) {
  .welcome-hub-chip {
    display: none;
  }
}

/* =========================================================
   Naiwa Center (奶蛙中心) Illustrated Chef Tablet
   ========================================================= */
.drawer-panel.naiwa-hub-panel {
  width: min(100%, 880px);
  height: min(620px, calc(100vh - 20px));
  height: min(620px, calc(100dvh - 20px));
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2.5px solid #4e2f1b;
  border-top: 4px solid #e6b34d;
  border-radius: 18px;
  background: #fcf4e3;
}

.hub-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 226, 175, 0.03) 0 36px, transparent 36px 72px),
    linear-gradient(180deg, #543522 0%, #372013 100%);
  border-bottom: 2px solid #24130a;
  color: #fff6e0;
}

.hub-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.hub-header-left .dialog-sticker-svg {
  width: 38px;
  height: 40px;
  flex: 0 0 38px;
}

.hub-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hub-header-title .eyebrow {
  color: #f6ce74;
  margin: 0;
  font-size: 0.65rem;
}

.hub-tier-pill {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 240, 200, 0.14);
  border: 1px solid rgba(246, 206, 116, 0.42);
  color: #ffe8ad;
  font-size: 0.66rem;
  font-weight: 800;
}

.hub-header-title h2 {
  margin: 1px 0 0;
  font-size: 1.16rem;
  color: #fff8e6;
}

.hub-header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.prog-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.94);
  border: 1px solid #d5c19c;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.prog-pill b {
  font-weight: 900;
}

.prog-pill.is-gold {
  background: linear-gradient(180deg, #fff5d4 0%, #fae09a 100%);
  border-color: #d69c32;
  color: #6b3c07;
}

.prog-pill.is-celadon {
  background: #e6f4ed;
  border-color: #69a38e;
  color: #215744;
}

.hub-header-right [data-focus="drawer-close"] {
  min-height: 32px;
  padding: 3px 10px;
}

.hub-body {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  overflow: hidden;
}

.hub-nav {
  background: linear-gradient(180deg, #f3e4c6 0%, #ead6b0 100%);
  border-right: 1.5px solid #d6bc91;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.hub-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 8px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: rgba(255, 252, 244, 0.45);
  color: #543723;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.hub-nav-btn span {
  white-space: nowrap;
}

.hub-nav-btn:hover {
  background: rgba(255, 253, 247, 0.85);
  border-color: rgba(208, 140, 43, 0.45);
}

.hub-nav-btn.is-active {
  background: linear-gradient(135deg, #fffdf8 0%, #fff0c7 100%);
  border-color: #ce8928;
  color: #361d0d;
  box-shadow: 0 3px 8px rgba(74, 40, 12, 0.14);
}

.hub-nav-badge {
  margin-left: auto;
  flex: 0 0 auto;
  font-style: normal;
  padding: 1px 6px;
  border-radius: 999px;
  background: #d94e34;
  color: #fffdf7;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.hub-stage {
  padding: 12px 14px;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: radial-gradient(circle at 80% 0%, #fffdf6 0%, #faf0db 100%);
}

/* Tab 1: Overview 3x2 App Grid */
.hub-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hub-app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 13px;
  border: 1.5px solid #dec9a3;
  background: linear-gradient(180deg, #fffdf8 0%, #f7ebd2 100%);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(88, 52, 24, 0.1);
  transition: transform 0.1s ease, border-color 0.12s ease;
}

.hub-app-card:hover {
  transform: translateY(-1px);
  border-color: #c98627;
  background: linear-gradient(180deg, #ffffff 0%, #fbf1da 100%);
}

.hub-app-card.has-cue {
  border-color: #d6852a;
  background: linear-gradient(180deg, #fffef8 0%, #fdebc0 100%);
}

.hub-app-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hub-app-head .hub-svg-icon,
.hub-app-head .hub-svg-star {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.hub-app-cue {
  padding: 1px 6px;
  border-radius: 999px;
  background: #d94e34;
  color: #fffdf7;
  font-size: 0.64rem;
  font-weight: 900;
}

.hub-app-card strong {
  font-size: 0.9rem;
  color: #361e0e;
}

.hub-app-metric {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 800;
  color: #326a58;
}

.hub-app-card p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.32;
  color: var(--muted);
}

.hub-quick-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #f3e5c9;
  border: 1px dashed #c9ad7f;
}

.hub-quick-strip span {
  font-size: 0.74rem;
  font-weight: 800;
  color: #6b4726;
}

/* Tab 2: Shop & Fame */
.hub-fame-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff9ea 0%, #f5e5c2 100%);
  border: 1.5px solid #d3a054;
}

.hub-fame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hub-fame-head h3 {
  margin: 0;
  font-size: 0.94rem;
  color: #3d210e;
}

.hub-fame-head p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.hub-done-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e1f2ea;
  border: 1px solid var(--celadon);
  color: #215744;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.hub-fame-nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.hub-fame-nodes.is-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.hub-fame-node {
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid #d9c39b;
}

.hub-fame-node.is-done {
  background: #e9f5ef;
  border-color: var(--celadon);
}

.hub-fame-node.is-next {
  background: #fff4d6;
  border-color: #d68e28;
}

.hub-fame-node strong {
  display: block;
  font-size: 0.74rem;
  color: var(--ink);
}

.hub-fame-node span {
  display: block;
  font-size: 0.67rem;
  color: var(--muted);
}

.hub-fame-node small {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #8c5a2b;
}

.hub-fame-node.is-done small {
  color: var(--celadon-dark);
}

.hub-progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e6d5b7;
  overflow: hidden;
}

.hub-progress-bar.is-thin {
  height: 5px;
}

.hub-progress-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #569984 0%, #3d7866 100%);
}

/* Tab: Quests & Bounties */
.hub-quest-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf0 0%, #f6e7c6 100%);
  border: 1.5px solid #d7b881;
}

.hub-quest-summary h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.hub-quest-summary p {
  margin: 2px 0 0;
  font-size: 0.7rem;
  color: var(--muted);
}

.hub-quest-counts {
  display: flex;
  gap: 7px;
}

.hub-quest-counts span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #fffdf7;
  border: 1px solid #d7b881;
  font-size: 0.72rem;
  color: var(--muted);
}

.hub-quest-counts b {
  color: #b4461d;
}

.hub-section-label {
  margin: 2px 0 -3px;
  font-size: 0.76rem;
  font-weight: 850;
  color: #6b4321;
}

.hub-quest-bounties {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hub-quest-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1.5px solid #dcc79e;
}

.hub-quest-card.is-claimable {
  background: linear-gradient(135deg, #fffaf0 0%, #ffe8c2 100%);
  border-color: #d97c26;
  box-shadow: 0 3px 10px rgba(201, 88, 22, 0.14);
}

.hub-quest-top,
.hub-quest-foot,
.hub-quest-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.hub-quest-top strong {
  font-size: 0.78rem;
  color: var(--ink);
}

.hub-reward-pill {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff0c4;
  border: 1px solid #d4982c;
  color: #824b08;
  font-size: 0.65rem;
  font-weight: 850;
  white-space: nowrap;
}

.hub-quest-card p,
.hub-quest-row p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.32;
  color: var(--muted);
}

.hub-quest-foot {
  margin-top: auto;
  padding-top: 2px;
}

.hub-quest-foot span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #70502f;
}

.hub-quest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-quest-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 11px;
  background: #fffdf8;
  border: 1.5px solid #dfd0b4;
}

.hub-quest-row.is-claimable {
  background: #fff7e2;
  border-color: #d98229;
}

.hub-quest-row.is-claimed {
  background: #eef6f1;
  border-color: rgba(79, 143, 123, 0.45);
  opacity: 0.88;
}

.hub-quest-idx {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #efe2c6;
  color: #6a4420;
  font-size: 0.72rem;
  font-weight: 850;
}

.hub-quest-row.is-claimable .hub-quest-idx {
  background: #d96426;
  color: #fffdf7;
}

.hub-quest-row.is-claimed .hub-quest-idx {
  background: #4f8f7b;
  color: #fffdf7;
}

.hub-quest-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hub-quest-row-top strong {
  font-size: 0.78rem;
  color: var(--ink);
}

.hub-quest-row-top small {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

.hub-reward-inline {
  font-style: normal;
  font-weight: 850;
  color: #a65214;
}

.hub-appliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.hub-appliance-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  background: #fffdf8;
  border: 1.5px solid #decba6;
}

.hub-appliance-card.is-owned {
  background: #eef7f2;
  border-color: rgba(79, 143, 123, 0.58);
}

.hub-appliance-art {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
}

.fac-art-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hub-appliance-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-appliance-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.hub-appliance-top strong {
  font-size: 0.82rem;
  color: var(--ink);
}

.hub-lv-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hub-buff-tag {
  font-style: normal;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fff0c8;
  border: 1px solid #d69c32;
  color: #7c4608;
  font-size: 0.62rem;
  font-weight: 850;
}

.hub-lv-pill {
  padding: 1px 6px;
  border-radius: 999px;
  background: #f0e3c7;
  border: 1px solid #cbb182;
  color: #4f2f12;
  font-size: 0.64rem;
  font-weight: 900;
}

.hub-appliance-card.is-owned .hub-lv-pill {
  background: #d9eee4;
  border-color: #5b9c86;
  color: #1f5442;
}

.hub-lv-pips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hub-lv-pip {
  width: 16px;
  height: 5px;
  border-radius: 999px;
  background: #e3d3b4;
}

.hub-lv-pip.is-on {
  background: linear-gradient(90deg, #569984 0%, #397563 100%);
}

.hub-fac-desc {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.32;
  color: var(--muted);
}

.hub-fac-desc strong {
  font-weight: 800;
  color: #824912;
}

.hub-mastery-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 7px;
  border-radius: 8px;
  background: #f9f2e2;
  border: 1px solid #e3d2b0;
}

.hub-mastery-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 0.66rem;
  color: var(--muted);
}

.hub-mastery-row b {
  color: var(--ink);
}

.hub-mastery-tier {
  font-style: normal;
  font-weight: 800;
  color: #8c5c28;
}

.hub-mastery-tier.is-mid {
  color: #2f6c58;
}

.hub-mastery-tier.is-max {
  color: #b44b19;
}

/* Tab 3: Recipes & Masters */
.hub-recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hub-recipe-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 13px;
  border: 1.5px solid #dcc8a2;
  background: #fffdf8;
}

.hub-recipe-card.is-trained {
  border-color: rgba(79, 143, 123, 0.65);
}

.hub-recipe-photo {
  position: relative;
  height: 76px;
}

.hub-recipe-body {
  padding: 8px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.hub-recipe-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.hub-recipe-head strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.hub-recipe-head span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #7c4b23;
}

.hub-recipe-desc {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.hub-req-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hub-req-chip {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  border: 1px solid #d5c19c;
  background: #f5ebd4;
  color: #6b4726;
}

.hub-req-chip.is-met {
  background: #e6f4ed;
  border-color: var(--celadon);
  color: #215744;
}

.hub-req-chip.is-missing {
  background: #fbeae4;
  border-color: #d97a63;
  color: #8f301b;
}

.hub-req-chip.is-missing-btn {
  cursor: pointer;
  background: #fff2d6;
  border-color: #d6852a;
  color: #7d4008;
}

.hub-req-chip.is-missing-btn:hover {
  background: #ffe3ab;
}

.hub-recipe-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tab 4: Tour Map */
.hub-route-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 13px;
  background: #fffdf6;
  border: 1.5px solid #d6bc8e;
}

.hub-tour-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.prog-teaser {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--muted);
}

.hub-milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hub-milestone-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #fffdf8;
  border: 1px solid #dfd0b4;
}

.hub-milestone-card.is-done {
  background: #eaf5ef;
  border-color: var(--celadon);
}

.hub-milestone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
}

.hub-milestone-head span {
  font-weight: 800;
  color: #9e4522;
}

.hub-milestone-card.is-done .hub-milestone-head span {
  color: var(--celadon-dark);
}

.hub-milestone-card small {
  font-size: 0.67rem;
  color: var(--muted);
}

.hub-milestone-cta {
  margin-top: 2px;
}

.prog-dish-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.prog-dish-chips span {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  background: #f0e6d2;
  color: var(--muted);
  border: 1px solid #d5c2a0;
}

.prog-dish-chips span.is-done {
  background: var(--celadon);
  color: #fff;
  border-color: var(--celadon-dark);
}

.hub-tour-action {
  display: flex;
  justify-content: center;
}

.prog-cert-box {
  padding: 10px 11px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e5f5ec 0%, #fff6d9 100%);
  border: 2px solid var(--celadon);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prog-cert-box strong {
  font-size: 0.88rem;
  color: #215744;
}

.prog-cert-box p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink);
}

/* Tab 5 & 6: Ops & About */
.hub-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hub-ops-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 13px;
  background: #fffdf8;
  border: 1.5px solid #decba6;
}

.hub-ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hub-ops-head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.hub-ops-stock,
.hub-ops-fb {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-ops-stock li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 9px;
  background: #faf3e4;
  border: 1px solid #e3d2b3;
}

.hub-ops-thumb {
  width: 40px;
  height: 28px;
  border-radius: 6px;
  flex: 0 0 40px;
}

.hub-ops-meta {
  min-width: 0;
  flex: 1;
}

.hub-ops-meta strong {
  display: block;
  font-size: 0.78rem;
}

.hub-ops-meta small {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--celadon-dark);
}

.hub-ops-meta small.is-out {
  color: var(--vermilion);
}

.hub-ops-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #fff5dd;
  border: 1px dashed #cf9334;
  font-size: 0.72rem;
  font-weight: 700;
}

.hub-kpi-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.hub-kpi-grid div {
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8f0df;
  border: 1px solid #e2d2b4;
}

.hub-kpi-grid dt {
  font-size: 0.66rem;
  color: var(--muted);
}

.hub-kpi-grid dd {
  margin: 1px 0 0;
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--ink);
}

.hub-ops-fb li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.71rem;
  color: var(--ink);
}

.hub-about-copy {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.48;
  color: var(--ink);
}

.hub-settings-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hub-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #faf3e4;
  border: 1px solid #e3d2b3;
}

.hub-setting-row strong {
  display: block;
  font-size: 0.8rem;
}

.hub-setting-row small {
  font-size: 0.68rem;
  color: var(--muted);
}

.market-prog-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #c98932;
  background: linear-gradient(135deg, #fff9e6 0%, #f7e4b2 100%);
}

.market-prog-banner strong {
  font-size: 0.86rem;
  color: #4f2c11;
}

.market-prog-banner p {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: #6b4624;
}

.recipe-tabs .btn.is-locked-tab {
  opacity: 0.86;
}

@media (max-width: 720px) and (orientation: portrait) {
  .drawer-panel.naiwa-hub-panel {
    height: min(86vh, 720px);
    height: min(86dvh, 720px);
  }

  .hub-header {
    padding: 8px 10px;
    flex-wrap: wrap;
  }

  .hub-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .hub-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 7px 8px;
    border-right: 0;
    border-bottom: 1.5px solid #d6bc91;
    overflow: visible;
  }

  .hub-nav-btn {
    justify-content: center;
    padding: 6px 5px;
    font-size: 0.72rem;
    gap: 4px;
  }

  .hub-nav-btn .hub-svg-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .hub-nav-badge {
    display: none;
  }

  .hub-stage {
    padding: 9px 10px;
  }

  .hub-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .hub-fame-nodes,
  .hub-fame-nodes.is-five,
  .hub-quest-bounties,
  .hub-appliance-grid,
  .hub-recipe-grid,
  .hub-milestone-grid,
  .hub-ops-grid {
    grid-template-columns: 1fr;
  }

  .hub-quest-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .hub-quest-act {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-height: 460px) and (orientation: landscape) {
  .drawer-panel.naiwa-hub-panel {
    height: calc(100vh - 10px);
    height: calc(100dvh - 10px);
    max-height: calc(100vh - 10px);
    max-height: calc(100dvh - 10px);
    border-radius: 14px;
  }

  .hub-header {
    padding: 6px 12px;
  }

  .hub-header-left .dialog-sticker-svg {
    width: 30px;
    height: 32px;
    flex-basis: 30px;
  }

  .hub-body {
    grid-template-columns: 162px minmax(0, 1fr);
  }

  .hub-nav {
    padding: 6px 6px;
    gap: 4px;
  }

  .hub-nav-btn {
    padding: 5px 7px;
    font-size: 0.72rem;
    gap: 5px;
  }

  .hub-stage {
    padding: 8px 10px;
    gap: 8px;
  }

  .hub-fame-nodes.is-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hub-app-card {
    padding: 7px 9px;
    gap: 2px;
  }

  .hub-app-card p {
    font-size: 0.65rem;
  }

  .hub-appliance-card {
    padding: 6px 8px;
  }

  .hub-appliance-art {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .hub-recipe-photo {
    height: 54px;
  }
}

/* =========================================================
   Paw Intro-Page 16:9 Landscape Mini-Theater (?demo=1 / /h5/ portrait)
   ========================================================= */
body.is-paw-demo-theater {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 22%, #4c2d1b 0%, #2b180e 58%, #180d07 100%);
  color: #fff6e3;
}

.paw-demo-theater {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px 10px;
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  cursor: pointer;
}

.paw-demo-head {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.paw-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e05338 0%, #b3341d 100%);
  border: 1px solid #ffd588;
  color: #fffdf7;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.paw-demo-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1.25;
  color: #ffe39e;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.paw-demo-dots {
  display: inline-flex;
  gap: 5px;
}

.paw-demo-dots button {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 224, 148, 0.4);
  background: rgba(255, 245, 220, 0.1);
  color: #f3dfc0;
  font-size: 0.6rem;
  font-weight: 800;
}

.paw-demo-dots button.is-active {
  background: linear-gradient(180deg, #fae094 0%, #dfa63b 100%);
  color: #2c180b;
  border-color: #fff4d2;
}

.paw-demo-frame-wrap {
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 14px;
  background: linear-gradient(145deg, #694127 0%, #3b2213 100%);
  border: 2px solid rgba(230, 179, 77, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.paw-demo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #2c1b12;
  box-shadow: inset 0 0 0 1px rgba(255, 245, 214, 0.16);
}

.paw-demo-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 844px;
  height: 475px;
  transform-origin: 0 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--teak-deep);
}

.paw-demo-stage .game-shell {
  width: 844px !important;
  max-width: none !important;
  height: 475px !important;
  min-height: 475px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}

.paw-demo-stage .hud-bar {
  flex-wrap: nowrap !important;
  gap: 6px !important;
  padding: 5px 10px !important;
}

.paw-demo-stage .hud-emblem {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  flex-basis: 24px !important;
}

.paw-demo-stage .hud-brand-text {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
}

.paw-demo-stage .hud-brand strong {
  font-size: 0.96rem !important;
}

.paw-demo-stage .hud-brand span {
  display: inline !important;
  font-size: 0.72rem !important;
}

.paw-demo-stage .btn-naiwa-hub {
  display: inline-flex !important;
  min-height: 28px !important;
  padding: 2px 8px 2px 5px !important;
  font-size: 0.7rem !important;
}

.paw-demo-stage .btn-naiwa-hub .prog-fame-label {
  display: inline !important;
}

.paw-demo-stage .btn-naiwa-hub .hub-btn-meta {
  display: inline-flex !important;
}

.paw-demo-stage .welcome-hub-chip {
  display: inline-flex !important;
  font-size: 0.66rem !important;
  padding: 1px 8px 1px 5px !important;
}

.paw-demo-stage .hud-badge {
  display: inline-flex !important;
}

.paw-demo-stage .hud-actions .btn {
  min-height: 30px !important;
  padding: 2px 8px !important;
  font-size: 0.72rem !important;
}

.paw-demo-stage .hud-audio-label,
.paw-demo-stage .kbd-cap {
  display: none !important;
}

.paw-demo-stage .play-stage {
  grid-template-columns: minmax(0, 1fr) 210px !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 6px !important;
  padding: 5px 8px !important;
}

.paw-demo-stage .ticket-rail {
  order: 0 !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  padding: 7px 8px !important;
  border-left: 2px solid #593a26 !important;
  border-bottom: 0 !important;
  overflow: hidden !important;
}

.paw-demo-stage .paper-ticket {
  flex: 0 0 auto !important;
  display: block !important;
  padding: 7px 9px !important;
}

.paw-demo-stage .rail-cue {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 6px !important;
  gap: 3px !important;
}

.paw-demo-stage .rail-frog-actor {
  width: 54px !important;
  height: 58px !important;
  margin-top: -10px !important;
}

.paw-demo-stage .rail-foot,
.paw-demo-stage .btn-rail-sponsor,
.paw-demo-stage .bench-guide-bar,
.paw-demo-stage .bench-guide-arc {
  display: none !important;
}

.paw-demo-stage .stall-lantern {
  display: block !important;
}

.paw-demo-stage .stall-frog {
  display: block !important;
  left: 2% !important;
  top: auto !important;
  bottom: 12% !important;
  width: 112px !important;
  height: 148px !important;
  transform: none !important;
}

.paw-demo-stage .stall-frog-bubble {
  display: block !important;
  left: 16% !important;
  top: 8% !important;
  bottom: auto !important;
  max-width: 150px !important;
  font-size: 0.66rem !important;
}

.paw-demo-stage .stall-sign {
  display: inline-flex !important;
  top: 10px !important;
  left: 3.5% !important;
  transform: none !important;
  font-size: 0.8rem !important;
  padding: 3px 11px !important;
}

.paw-demo-stage .order-window-layer {
  padding: 22px 10px 6px 132px !important;
  align-items: center !important;
  justify-content: center !important;
}

.paw-demo-stage .window-card {
  padding: 7px 10px !important;
}

.paw-demo-stage .welcome-head h2 {
  font-size: 0.96rem !important;
}

.paw-demo-stage .welcome-steps,
.paw-demo-stage .dish-card-desc,
.paw-demo-stage .sponsor-card-avatar,
.paw-demo-stage .sponsor-card-sub {
  display: none !important;
}

.paw-demo-stage .dish-showcase-grid.is-four-dishes {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.paw-demo-stage .dish-card-photo {
  display: block !important;
  height: 48px !important;
}

.paw-demo-stage .dish-showcase-grid.is-many-dishes .dish-card-photo {
  display: block !important;
  height: 44px !important;
}

.paw-demo-stage .dish-card-title span {
  display: inline !important;
  font-size: 0.64rem !important;
}

.paw-demo-stage .kitchen-zones {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  padding: 4px 10px 6px !important;
}

.paw-demo-stage .zone-tab {
  min-height: 36px !important;
  flex-direction: row !important;
  gap: 6px !important;
  font-size: 0.78rem !important;
}

.paw-demo-stage .zone-tab .zone-dot {
  position: static !important;
}

.paw-demo-stage .naiwa-buddy {
  display: block !important;
}

.paw-demo-stage .naiwa-buddy-bubble {
  display: block !important;
  font-size: 0.64rem !important;
  max-width: 140px !important;
}

.paw-demo-stage .reaction-card {
  flex-direction: row !important;
  text-align: left !important;
  max-width: 490px !important;
  padding: 10px 14px !important;
}

.paw-demo-stage .reaction-head,
.paw-demo-stage .reaction-details,
.paw-demo-stage .reaction-actions {
  justify-content: flex-start !important;
}

.paw-demo-stage .reaction-portrait {
  width: 78px !important;
  display: block !important;
}

.paw-demo-caption {
  padding: 4px 8px 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ffe29e;
}

.paw-demo-foot {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.paw-demo-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.paw-demo-dish-chip {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(230, 179, 77, 0.5);
  background: rgba(34, 20, 12, 0.85);
}

.paw-demo-dish-chip i {
  display: block;
  height: 36px;
  background-size: cover;
  background-position: center;
}

.paw-demo-dish-chip span {
  padding: 2px 3px;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #ffefc8;
  white-space: nowrap;
}

.paw-demo-features {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.4;
  text-align: center;
  color: #e6cfb0;
  padding: 0 6px;
}

.paw-demo-cta {
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(79, 143, 123, 0.34), rgba(45, 92, 77, 0.52));
  border: 1px solid rgba(130, 212, 185, 0.52);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #e6fff5;
}

/* =========================================================
   Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .kitchen-vapor i {
    opacity: 0.48;
  }

  .prop-faucet.is-rinsing::after {
    transform: scaleY(1);
    opacity: 0.9;
  }

  .bench-guide-arc-fg {
    stroke-dashoffset: 0;
  }
}
