:root {
  --ink:#432518; --wood:#95572f; --wood-dark:#4f281a; --paper:#fff7df;
  --coral:#ff5c38; --gold:#ffd45e; --green:#59d761;
  --shadow:0 7px 0 #4f281a55,0 16px 34px #30170c42;
}
*{box-sizing:border-box} html,body{margin:0;min-height:100%;background:#20120d;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink)}
button{font:inherit;color:inherit}.app-shell{width:min(100vw,520px);height:100svh;min-height:680px;margin:auto;position:relative;overflow:hidden;background:#f6ad50;box-shadow:0 0 70px #000}.screen{position:absolute;inset:0}
.primary,.secondary{min-height:52px;border:4px solid var(--ink);border-radius:20px;font-weight:950;font-size:21px;box-shadow:0 6px 0 #44241655;cursor:pointer}.primary{color:#fff;background:linear-gradient(#ff8247,#f2472e);text-shadow:0 2px var(--wood-dark)}.secondary{background:linear-gradient(#f9d38b,#dc934c)}

/* The supplied menu illustration already contains its visible buttons; semantic hit areas add interaction without duplicating its art. */
.home-screen{overflow:hidden;background:#713b21 url("../assets/approved/ui/home/UI-HOME-KEYART-v04.png") center/cover no-repeat}.home-vignette{position:absolute;inset:0;background:linear-gradient(transparent 0 73%,#2e150b0d 82%,#1f0e0940 100%)}.home-hotspot{position:absolute;z-index:3;border:0;background:transparent;cursor:pointer}.home-hotspot::after{content:"";position:absolute;inset:3px;border:3px solid transparent;border-radius:999px;transition:.18s}.home-hotspot:hover::after,.home-hotspot:focus-visible::after{border-color:#ffe89b;box-shadow:0 0 20px 6px #ffcf4b99;outline:0}.home-hotspot:active{transform:translateY(3px) scale(.98)}.home-start-hit{left:25%;right:25%;bottom:12.2%;height:9.2%}.home-start-hit::after{border-radius:48% 44% 46% 45%}.home-nav{position:absolute;z-index:3;left:4%;right:4%;bottom:1.4%;height:10%;display:grid;grid-template-columns:repeat(4,1fr);gap:6%}.home-nav .home-hotspot{position:relative;width:100%;height:100%}.departure-button{position:absolute;z-index:5;right:2.8%;bottom:11.2%;width:72px;aspect-ratio:1;border:4px solid #4d291a;border-radius:50%;background:radial-gradient(circle at 42% 32%,#fff1a6,#f5c44f 62%,#c77b29);box-shadow:inset 0 4px #fff6b9,0 6px 0 #5b2d1c,0 9px 22px #2a100a88;color:#382015;transform:rotate(-4deg);cursor:pointer}.departure-button::before{content:"";position:absolute;inset:5px;border:2px dashed #b46c28;border-radius:50%}.departure-button i{position:relative;display:block;height:29px;font-size:0}.departure-button i::before{content:"●";position:absolute;left:27px;top:0;font-size:25px}.departure-button i::after{content:"●  ●  ●";position:absolute;left:13px;top:-3px;width:48px;font-size:13px;letter-spacing:3px}.departure-button b{position:relative;font-size:18px;font-weight:1000}.departure-button:hover,.departure-button:focus-visible{box-shadow:inset 0 4px #fff6b9,0 6px 0 #5b2d1c,0 0 22px 8px #ffe16f}.departure-button:active{transform:translateY(4px) rotate(-4deg)}
.home-topbar{position:absolute;z-index:8;left:7px;right:7px;top:max(3px,env(safe-area-inset-top));height:41px;display:grid;grid-template-columns:1.45fr .78fr .72fr;gap:5px}.profile-chip,.currency-chip{min-width:0;height:37px;padding:0;border:2px solid #f3ca6b;border-radius:13px;background:linear-gradient(135deg,#261711df,#3d2a20cf);box-shadow:inset 0 1px #fff4bd4d,0 3px 8px #180b0788;color:#fff7dc;cursor:pointer}.profile-chip{display:grid;grid-template-columns:39px 1fr;align-items:center;text-align:left}.player-avatar{width:41px;height:41px;margin:-3px 0 -1px -3px;overflow:hidden;border:3px solid #f1ce6e;border-radius:50%;background:#fff0bf;box-shadow:0 2px 0 #4b2818}.player-avatar img{width:63px;height:63px;margin:-4px 0 0 -11px;object-fit:contain}.player-copy{min-width:0;padding:2px 5px 2px 2px}.player-copy b,.player-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-copy b{font-size:10px}.player-copy small{font-size:7px;color:#ffe087}.player-copy i{display:block;height:5px;margin-top:1px;overflow:hidden;border:1px solid #28150e;border-radius:999px;background:#806f5c}.player-copy u{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffca3f,#fff0a2);text-decoration:none}.currency-chip{display:grid;grid-template-columns:22px 1fr 12px;align-items:center;gap:1px;padding:0 3px}.currency-chip>b{overflow:hidden;font-size:11px;text-overflow:ellipsis}.currency-chip>span{display:grid;width:12px;height:12px;place-items:center;border-radius:50%;background:#f4d56e;color:#4a2819;font-size:11px;font-weight:1000}.coin-token{display:grid;width:22px;height:22px;place-items:center;border:2px solid #5d3315;border-radius:50%;background:radial-gradient(circle at 36% 30%,#fff7ad,#ffd33f 47%,#d98b16);box-shadow:inset 0 0 0 2px #ffed84;color:#6c3d13;font-size:8px;font-style:normal;font-weight:1000}.gem-token{display:block;width:17px;height:20px;margin-left:2px;transform:rotate(45deg);border:2px solid #563a89;border-radius:5px 10px 5px 10px;background:linear-gradient(135deg,#e8ffff 0 18%,#7bdaff 20% 48%,#8b75ff 50% 72%,#e0c9ff 74%);box-shadow:inset 2px 2px #fff9,0 0 7px #8fdfff;font-style:normal}.gem-chip{border-color:#a5d9ff}
.journey-screen{overflow:hidden;background:url("../assets/approved/ui/home/UI-HOME-KEYART-v04.png") center/cover no-repeat}.journey-shade{position:absolute;inset:0;background:linear-gradient(#24100ab8,#32150ae8);backdrop-filter:blur(5px)}.journey-screen>header{position:relative;z-index:2;display:flex;align-items:center;gap:12px;padding:24px 18px 12px;color:#fff5d4;text-shadow:0 3px #33140c}.journey-screen>header button{width:46px;height:46px;border:3px solid #ffe8a0;border-radius:50%;background:#6e3425cc;color:#fff;font-size:35px;line-height:1}.journey-screen>header small{font-size:11px;letter-spacing:.24em}.journey-screen>header h2{margin:2px 0;font-family:"STKaiti","KaiTi",serif;font-size:26px}.chapter-list{position:relative;z-index:2;height:calc(100% - 90px);overflow:auto;padding:4px 14px 28px;display:grid;gap:12px}.chapter-card{padding:12px;border:3px solid #60311e;border-radius:18px;background:linear-gradient(145deg,#fff7d9f2,#eebd70ed);box-shadow:inset 0 3px #fff7d9,0 7px 0 #3e1c125c,0 13px 24px #16090766}.chapter-card.future{filter:saturate(.7)}.chapter-heading{display:flex;justify-content:space-between;align-items:center}.chapter-heading b,.chapter-heading small{display:block}.chapter-heading b{font-size:17px}.chapter-heading small{font-size:10px;margin-top:2px}.chapter-heading>span{padding:4px 7px;border-radius:999px;background:#713a27;color:#fff4d1;font-size:9px;font-weight:900}.level-list{display:grid;gap:7px;margin-top:10px}.level-list button{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:7px;padding:8px;border:2px solid #8d5735;border-radius:12px;background:linear-gradient(145deg,#fffdf2,#ffdfa0);text-align:left;box-shadow:inset 0 2px #fff}.level-list button strong{font-size:15px}.level-list button span{font-size:12px;font-weight:900}.level-list button em{font-size:9px;font-style:normal;color:#bd452e;font-weight:900}.level-list button:disabled{filter:grayscale(.7);opacity:.57}.character-menu,.bag-menu{display:grid;gap:9px}.character-menu article,.bag-menu article{display:flex;align-items:center;gap:9px;padding:8px;border:2px solid #d59d59;border-radius:13px;background:#fff7dd}.character-menu img{width:74px;height:74px;object-fit:contain}.character-menu p,.bag-menu p{margin:3px 0;font-size:11px;line-height:1.45}

/* The speaker is a transparent half-body cut-out emerging from the box, never a framed avatar. */
.dialogue-screen{background:linear-gradient(#21100d10,#21100d77),url("../assets/approved/ui/backgrounds/ENV-XUNYUXIANG-STALL-EMPTY.png") center/cover}.dialogue-shade{position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#35170ebd)}.dialogue-box{position:absolute;z-index:2;left:4%;right:4%;bottom:5%;min-height:170px;padding:45px 22px 20px;border:5px solid var(--wood-dark);border-radius:22px;background:linear-gradient(135deg,#fffaf0,#ffe8b7);box-shadow:inset 0 2px #fff,0 8px 0 #54291955,0 20px 36px #31170d42}.dialogue-portrait{position:absolute;z-index:3;left:-24px;top:-185px;width:230px;height:190px;overflow:hidden;filter:drop-shadow(0 8px 6px #35170e66);pointer-events:none}.dialogue-portrait img{width:230px;height:258px;margin:0;object-fit:contain;object-position:center top}.nameplate{position:absolute;z-index:4;top:-25px;left:126px;min-width:105px;padding:7px 18px;border:4px solid var(--wood-dark);border-radius:14px;color:#fff;background:linear-gradient(#cf8148,#8e492d);font-weight:950;font-size:19px;box-shadow:inset 0 2px #f4b77a}.dialogue-text{font-size:19px;line-height:1.6;font-weight:750;margin:0}.continue-tip{position:absolute;right:18px;bottom:10px;color:#d87b25;font-size:22px;animation:bob .7s infinite alternate}@keyframes bob{to{transform:translateY(4px)}}

.cinematic-screen{overflow:hidden;background:#190c08}.cinematic-pan{position:absolute;inset:-8%;background:url("../assets/approved/ui/home/UI-HOME-KEYART-v03.png") var(--cinematic-focus)/250% auto no-repeat;animation:cinematicPan 7s ease-out both;filter:saturate(.92) brightness(.82)}.cinematic-bars{position:absolute;inset:0;background:linear-gradient(#120806 0 7%,transparent 7% 67%,#120806 67% 100%)}.cinematic-caption{position:absolute;z-index:2;left:7%;right:7%;bottom:6%;padding:17px;border-left:4px solid #f5c45e;color:#fff3d4;background:linear-gradient(90deg,#2b130eed,#2b130eb3);box-shadow:0 12px 30px #0008}.cinematic-caption small{color:#ffc852;font-weight:900;letter-spacing:.18em}.cinematic-caption h2{margin:5px 0;font-family:"STKaiti","KaiTi",serif;font-size:28px}.cinematic-caption p{margin:0 0 13px;font-size:13px;line-height:1.65}.cinematic-caption .primary{width:100%;font-size:16px}@keyframes cinematicPan{from{transform:scale(1.05) translate(-1%,1%)}to{transform:scale(1.13) translate(1%,-1%)}}
.video-slot-marker{position:absolute;z-index:3;left:7%;top:9%;padding:8px 11px;border:1px solid #f1c36a66;border-radius:9px;background:#160b08bb;color:#ffe7ab;box-shadow:0 5px 16px #0008}.video-slot-marker b,.video-slot-marker span{display:block}.video-slot-marker b{font-size:11px;letter-spacing:.12em}.video-slot-marker span{margin-top:3px;color:#d9b986;font-size:8px}
.slot-video{position:absolute;z-index:1;inset:7% 0 33%;width:100%;height:60%;object-fit:cover;opacity:0;transition:opacity .25s;background:#120806}.slot-video.ready{opacity:1}.video-finished{box-shadow:0 0 18px #ffd865}
.dialogue-portrait.actor-zhang{left:-20px;top:-205px;width:245px;height:220px;overflow:visible;background:transparent}.dialogue-portrait.actor-zhang img{width:245px;height:220px;max-width:none;object-fit:contain;object-position:center bottom;transform:none}

/* Full visual-novel story layer. Story copy remains live text while the
   approved illustrations stay reusable as scene backgrounds. */
.story-screen{overflow:hidden;background:#160b08;color:#3f2118;isolation:isolate;cursor:pointer}
.story-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.01);animation:story-breathe 10s ease-out both;z-index:-3}
.story-vignette{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#190c0838 0 56%,#190c08b8 82%,#190c08ef 100%),linear-gradient(90deg,#1608054d,transparent 28% 72%,#1608054d)}
.story-header{position:absolute;z-index:5;left:4%;right:4%;top:2.2%;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;color:#fff8e6;text-shadow:0 2px 5px #190804;font-size:clamp(10px,2.7vw,14px);pointer-events:none}
.story-header span{font-family:"STKaiti","KaiTi",serif;font-weight:900;letter-spacing:.08em}.story-header b{font-size:.86em}.story-header button{pointer-events:auto;border:1px solid #ffe0a777;border-radius:999px;padding:6px 11px;color:#fff5d8;background:#24110bb8;font:inherit;font-weight:800;box-shadow:0 4px 12px #0004}
.story-dialogue{position:absolute;z-index:3;left:4%;right:4%;bottom:3.8%;min-height:19%;display:flex;align-items:center;padding:6.5% 8% 5.2%;border:clamp(3px,.9vw,5px) solid #5c2c1d;border-radius:22px;background:linear-gradient(145deg,#fffaf0f7,#ffe7b9f7);box-shadow:inset 0 2px #fff9,0 7px 0 #472014b8,0 18px 42px #16070599;cursor:pointer}
.story-dialogue::before,.story-dialogue::after{display:none}
.story-dialogue p{width:100%;margin:0;font-size:clamp(16px,4.5vw,23px);line-height:1.55;font-weight:760;text-wrap:pretty}
.story-dialogue.narration{left:7%;right:7%;min-height:16%;padding-top:5.2%;text-align:left;background:linear-gradient(145deg,#fffaf0f2,#f5dfb9f2)}
.story-dialogue.narration p{font-weight:560}
.story-name{position:absolute;left:8%;top:-21px;min-width:92px;padding:6px 17px;border:3px solid #5c2c1d;border-radius:14px;color:#fff7de;background:linear-gradient(#d87942,#8e442a);box-shadow:inset 0 2px #ffc98b;font-size:clamp(14px,3.8vw,19px);font-weight:950;text-align:center}
.story-dialogue.has-portrait .story-name{left:28%}
.story-portrait{position:absolute;z-index:2;left:-1%;bottom:19.4%;width:37%;height:47%;overflow:visible;filter:drop-shadow(0 10px 8px #2b110a77);pointer-events:none}
.story-portrait img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.story-portrait:not(.actor-zhang) img{transform:scale(1.72) translateY(4%);transform-origin:center bottom}
.story-portrait.actor-zhang{left:-5%;bottom:18.8%;width:55%;height:52%;overflow:visible}
.story-portrait.actor-zhang img{width:100%;height:100%;max-width:none;object-fit:contain;object-position:center bottom;transform:scale(1.08);transform-origin:center bottom}
.story-dialogue.has-portrait{padding-left:30%}
#storyNext{position:absolute;right:4%;bottom:7%;border:0;background:transparent;color:#d36d2f;font-size:clamp(18px,5vw,25px);animation:bob .7s infinite alternate}
.story-screen.is-flashback .story-background{filter:sepia(.52) saturate(.68) brightness(.82) contrast(.92)}
.story-screen.is-flashback::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.2;background-image:radial-gradient(#fff7d4 0.7px,transparent .8px);background-size:4px 4px;mix-blend-mode:screen}
.story-screen.has-transition .story-background{animation:story-transition .65s ease both,story-breathe 10s .65s ease-out both}
@keyframes story-transition{0%{opacity:0;filter:brightness(.2)}100%{opacity:1}}
@keyframes story-breathe{from{transform:scale(1.01)}to{transform:scale(1.055)}}
.ending-screen{display:grid;place-items:center;overflow:hidden;padding:9%;background:linear-gradient(#26120b55,#2d140ce6),url("../assets/approved/ui/backgrounds/ENV-BUYEIFENG-SQUARE-EMPTY.png") center/cover}.ending-glow{position:absolute;inset:0;background:radial-gradient(circle at 50% 23%,#ffe6a075,transparent 39%),linear-gradient(transparent,#1d0c08aa)}.ending-screen article{position:relative;z-index:2;width:100%;padding:30px 22px;border:4px solid #5b2d1d;border-radius:26px;background:linear-gradient(145deg,#fff9e9f2,#f3c979ed);box-shadow:inset 0 3px #fff,0 10px 0 #3d1b1255,0 24px 55px #140805aa;text-align:center}.ending-screen small{color:#a04c2b;font-weight:950;letter-spacing:.12em}.ending-screen h1{margin:10px 0;font-family:"STKaiti","KaiTi",serif;font-size:34px;line-height:1.18}.ending-screen p{font-size:14px;line-height:1.7}.ending-record{margin:18px 0;padding:12px;border:2px dashed #c47d3f;border-radius:14px;background:#fff9e4}.ending-record span,.ending-record b{display:block}.ending-record span{font-size:10px;color:#a35d38}.ending-record b{margin-top:3px;font-size:18px}.ending-screen button{width:100%;margin-top:9px}

/* Play layout: background scene, diner, then foreground stall lip. */
.game-screen{display:grid;grid-template-rows:auto minmax(245px,1fr) auto auto;background:#b8753f}.hud{position:relative;z-index:12;padding:max(7px,env(safe-area-inset-top)) 7px 7px;display:grid;grid-template-columns:.83fr 1.55fr .72fr 42px;gap:5px;background:linear-gradient(#573124f7,#4e291fc9);box-shadow:0 6px 18px #2d130b55}.hud-pill,.stage-box,.pause-icon{border:3px solid var(--ink);border-radius:13px;background:linear-gradient(145deg,#fffdf4,#f5d59b);box-shadow:inset 0 2px #fff,0 4px 0 #371c124f;font-weight:900}.hud-pill{padding:4px;text-align:center;font-size:10px}.hud-pill strong{display:block;font-size:18px;line-height:1.05}.hud-pill small{font-size:8px;color:#a4512f}.stage-box{padding:4px 7px;text-align:center}.stage-title{font-size:14px;font-weight:950}.goal-line{display:flex;justify-content:space-between;font-size:9px;margin:2px 1px}.progress-track,.fu-track{height:11px;overflow:hidden;border:2px solid var(--ink);border-radius:999px;background:#414343}.progress-fill,.fu-fill{height:100%;width:0;background:linear-gradient(90deg,#88ea5d,#3bc75b);box-shadow:inset 0 2px #d8ffba;transition:width .35s}.pause-icon{font-size:18px;cursor:pointer}
.scene{position:relative;min-height:0;overflow:hidden;background:url("../assets/approved/ui/backgrounds/ENV-XUNYUXIANG-STALL-EMPTY.png") center top/cover no-repeat}.scene::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 48% 24%,#fff3bd4f,transparent 38%),linear-gradient(118deg,#fff4c43b,transparent 38%);mix-blend-mode:screen;pointer-events:none}.scene::after{content:"";position:absolute;inset:0;background:linear-gradient(#fff0 48%,#6e35175e);pointer-events:none}.location-sign{position:absolute;z-index:6;left:5px;top:8px;padding:8px 5px;writing-mode:vertical-rl;border:3px solid var(--wood-dark);border-radius:8px;background:linear-gradient(#ffe8b8e8,#edbd76e8);box-shadow:inset 2px 0 #fff5d7,0 5px 10px #45201255;font-size:17px;font-weight:950}.diner-info{position:absolute;z-index:7;left:16%;right:23%;top:6px;padding:6px 9px;border:3px solid var(--ink);border-radius:14px;background:linear-gradient(145deg,#fff,#ffe8b8f2);box-shadow:inset 0 2px #fff,0 5px 0 #57312044;text-align:left;cursor:pointer}.diner-line{display:flex;justify-content:space-between;font-size:13px;font-weight:900}.diner-line small{color:#a75531;font-size:8px}.diner-info>small{font-size:9px}.speech{position:absolute;z-index:7;right:22%;top:69px;max-width:56%;padding:6px 9px;border:3px solid var(--ink);border-radius:14px;background:linear-gradient(145deg,#ffe889,#ffc83d);box-shadow:inset 0 2px #fff4bd,0 4px 8px #51250f44;font-size:12px;font-weight:900;transform:rotate(-2deg)}.diner-wrap{position:absolute;z-index:3;left:-4%;right:11%;top:44px;bottom:6px;display:grid;align-items:end;justify-items:center}.diner-sprite{width:min(75vw,365px);aspect-ratio:1;background-repeat:no-repeat;background-size:400% 400%;filter:drop-shadow(0 11px 7px #2d160c55)}.diner-sprite.hit{animation:hit .48s ease}@keyframes hit{25%{transform:translateX(-8px) rotate(-2deg) scale(1.05)}60%{transform:translateX(8px) rotate(2deg) scale(.98)}}
.stall-foreground{position:absolute;z-index:5;left:-3%;right:-3%;bottom:-2px;height:64px;border-top:7px solid #552a1a;border-bottom:5px solid #4d2516;background:linear-gradient(175deg,#e6a15a,#a65f32 18%,#744020 100%);box-shadow:inset 0 4px #f5bd76,0 -7px 18px #2d140d4f}.stall-foreground span{position:absolute;left:8%;right:8%;top:15px;height:3px;background:#ffe0a05c}
.right-rail{position:absolute;z-index:9;right:5px;top:7px;width:62px;display:grid;gap:7px}.queue{padding:4px;display:grid;gap:3px;border:3px solid var(--wood-dark);border-radius:14px;background:linear-gradient(#ffe6adcf,#dca15bcf);box-shadow:inset 0 2px #fff1cf,0 5px 0 #50281742}.queue-face{position:relative;aspect-ratio:1;overflow:hidden;padding:0;border:2px solid #74452e;border-radius:10px;background-repeat:no-repeat;background-size:450% 450%;background-color:transparent;cursor:pointer}.queue-face:hover,.queue-face:focus{outline:3px solid #ffe56d;transform:scale(1.04)}.queue-face span{position:absolute;left:1px;right:1px;bottom:0;padding:1px;background:#4b271bcf;color:#fff;text-align:center;font-size:7px;font-weight:900}.tool-button{width:62px;height:67px;padding:0;border:2px solid #ffed9b;border-radius:19px;background:linear-gradient(#fff6bdc9,#f7a934c9);box-shadow:0 0 13px #ffc83f,0 4px 0 #6a341c;overflow:hidden;cursor:pointer}.tool-button img{display:block;width:58px;height:48px;margin:-2px auto -4px;object-fit:contain}.tool-button span{display:block;font-size:9px;font-weight:950}.preference-popover{position:absolute;z-index:20;right:73px;top:82px;width:205px;display:none;padding:11px;border:3px solid var(--ink);border-radius:16px;background:linear-gradient(145deg,#fffef4,#ffe5ad);box-shadow:0 8px 0 #5229184a,0 16px 30px #2d140d55}.preference-popover.show{display:block;animation:preferenceIn .2s ease-out}.preference-popover small{color:#a4532c;font-weight:900}.preference-popover h3{margin:2px 20px 7px 0;font-size:15px}.preference-close{position:absolute;right:6px;top:5px;width:25px;height:25px;border:0;border-radius:50%;background:#7a4028;color:#fff;font-weight:900}.taste-tags{display:flex;align-items:center;gap:4px;margin:4px 0;font-size:9px}.taste-tags b{min-width:28px}.taste-tags span{padding:2px 5px;border-radius:999px;background:#b8e87c}.taste-tags.dislike span{background:#ffad94}.preference-popover p{margin:7px 0 4px;font-size:10px;font-weight:900}.preference-icons{display:flex;gap:5px}.preference-icons div{width:49px;padding:3px;border:1px solid #e0ae68;border-radius:9px;background:#fff;text-align:center}.preference-icons img{display:block;width:41px;height:35px;object-fit:contain}.preference-icons span{font-size:8px;font-weight:900}@keyframes preferenceIn{from{opacity:0;transform:translateX(7px)}to{opacity:1;transform:none}}.fu-pop{position:absolute;left:50%;top:43%;z-index:10;transform:translate(-50%,-50%) scale(.6);opacity:0;color:#fff;font-size:34px;font-weight:1000;text-align:center;text-shadow:0 4px 0 #7f2919,0 0 16px #ffdd42;pointer-events:none}

.counter{position:relative;z-index:10;margin:-2px 8px 5px;min-height:104px;padding:8px;border:4px solid var(--wood-dark);border-radius:17px;background:radial-gradient(circle at 35% 5%,#f3c27855,transparent 34%),linear-gradient(145deg,#e2a866,#a96134);box-shadow:inset 0 3px #f4c98a,0 7px 0 #54291955,0 16px 32px #31170d42}.counter-title{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px;margin-bottom:5px;color:#fff7d8;font-size:12px;font-weight:900;text-shadow:0 1px #5d2c18}.counter-title small{text-align:right}.redraw-button{padding:3px 6px;border:1px solid #ffe393;border-radius:999px;background:#392014b8;color:#fff1ba;font-size:8px;font-weight:900}.redraw-button b{color:#ffdc63}.prep-list{min-height:64px;display:flex;align-items:center;justify-content:center;gap:5px;padding:3px;border:2px dashed #ffe5af;border-radius:11px;background:linear-gradient(#50231235,#27110920)}.prep-empty{color:#ffe6b6;font-size:11px}.mini-card{width:64px;height:61px;padding:1px;display:grid;overflow:hidden;border:3px solid var(--ink);border-radius:10px;background:#fff8df;box-shadow:inset 0 2px #fff,0 3px #54291955}.mini-card img{width:100%;height:41px;object-fit:cover;object-position:top}.mini-card b{font-size:9px}.hand-area{position:relative;z-index:11;padding:0 6px max(7px,env(safe-area-inset-bottom));background:radial-gradient(circle at 50% 0,#a7653d,#6f3a20 45%,#452519)}.hand{height:154px;display:flex;align-items:end;justify-content:center;gap:2px}.card{width:20%;max-width:104px;min-width:61px;padding:0 0 4px;overflow:hidden;border:3px solid var(--ink);border-radius:12px;background:linear-gradient(145deg,#fffef5,#ffe9b8);box-shadow:inset 0 2px #fff,0 5px 0 #572d20,0 9px 12px #2c130c40;transform-origin:bottom;cursor:grab;transition:transform .18s}.card:nth-child(1),.card:nth-child(5){transform:translateY(8px) rotate(-3deg)}.card:nth-child(2),.card:nth-child(4){transform:translateY(3px) rotate(-1deg)}.card img{display:block;width:100%;height:88px;object-fit:cover;object-position:top}.card-name{display:block;font-size:11px;font-weight:950;white-space:nowrap}.card small,.card em{display:block;font-size:8px;line-height:1.2;font-style:normal}.card em{color:#c54d2d;font-weight:900}.bottom-actions{display:grid;grid-template-columns:.75fr 1.5fr .75fr;gap:5px;align-items:end;margin-top:6px}.small-action{min-height:45px;border:3px solid var(--ink);border-radius:14px;background:linear-gradient(#bc7a52,#8d4e33);box-shadow:inset 0 2px #dda47d,0 4px #492416;color:#fff;font-weight:900}.cook{min-height:60px;font-size:27px}.cook[disabled]{filter:grayscale(.7);opacity:.58}

.tutorial-mask{position:absolute;inset:0;z-index:30;background:#2c160d80;pointer-events:none}.tutorial-focus{position:absolute;z-index:31;border:4px solid #fff6a3;border-radius:16px;box-shadow:0 0 0 5px #ff9d27,0 0 22px 7px #ffd44d;pointer-events:none}.tutorial-card{position:absolute;z-index:32;width:242px;padding:12px 13px;border:4px solid var(--wood-dark);border-radius:17px;background:#fff7d9;box-shadow:var(--shadow)}.tutorial-card b{font-size:17px}.tutorial-card p{margin:4px 0 9px;font-size:12px;line-height:1.4}.tutorial-card button{width:100%;padding:6px;border:2px solid var(--ink);border-radius:10px;background:#ffcf51;font-weight:900}.tutorial-card.pulse{animation:pulse .35s 2}@keyframes pulse{50%{transform:scale(1.05)}}

.modal-backdrop{position:absolute;inset:0;z-index:50;display:grid;place-items:center;padding:18px;background:#23120cbd;backdrop-filter:blur(5px)}.result-modal,.story-modal,.dish-modal{width:100%;max-height:92%;overflow:auto;border:5px solid var(--wood-dark);border-radius:25px;background:linear-gradient(#fffaf0,#f7dda9);box-shadow:var(--shadow)}.story-modal{padding:19px}.story-modal h3{margin:0 0 10px;font-size:25px}.modal-copy{font-size:15px;line-height:1.5}.result-head{padding:20px 14px 15px;text-align:center;color:#fff;background:linear-gradient(135deg,#ff8a43,#e4482d);text-shadow:0 3px var(--wood-dark)}.result-head h2{margin:0;font-size:31px}.result-body{padding:16px;display:grid;gap:8px}.stat-row{display:flex;justify-content:space-between;padding:9px 11px;border:2px solid #d49b60;border-radius:11px;background:#fff8e7;font-weight:900}.stat-row strong{max-width:63%;text-align:right}.result-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin-top:10px}.result-actions:has(> :only-child){grid-template-columns:1fr}

.dish-modal{padding:19px;text-align:center;background:#fffefa}.dish-label{display:inline-block;padding:5px 12px;border-radius:999px;background:#ffb84a;color:#542718;font-size:12px;font-weight:950}.dish-modal h2{margin:9px 0 12px;font-size:29px}.dish-ingredients{display:flex;justify-content:center;gap:7px}.dish-ingredient{width:67px;padding:4px;overflow:hidden;border:2px solid #e4a259;border-radius:11px;background:#fff;box-shadow:0 3px 8px #8f56282b}.dish-ingredient img{display:block;width:100%;height:52px;object-fit:contain}.dish-ingredient span{display:block;font-size:10px;font-weight:900}.dish-tags{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;margin:10px}.dish-tags span{padding:3px 8px;border-radius:999px;background:#ffe3a0;font-size:10px;font-weight:900}.dish-scores{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dish-scores>div{padding:8px;border:2px solid #e3a55d;border-radius:13px;background:#fff4d1}.dish-scores small,.dish-scores strong{display:block}.dish-scores strong{font-size:19px}.dish-reaction{margin:9px 0;font-size:12px}.dish-modal>.primary{width:100%;margin-top:12px;font-size:16px}.clue-card,.result-clue{padding:10px;border:2px solid #b77a34;border-radius:12px;background:#fff1b7;text-align:left}.clue-card small,.clue-card b,.clue-card em{display:block}.clue-card small{color:#c34b29;font-weight:950}.clue-card p,.result-clue p{margin:5px 0}.clue-card em,.result-clue small{font-size:10px;color:#8d5b35}.result-clues h3{margin:4px 0 6px}.result-clue{margin-bottom:6px}.result-clue.empty{filter:grayscale(.5)}

.recipe-summary{display:flex;justify-content:space-between;align-items:end;margin-bottom:9px;padding:8px 10px;border-radius:11px;background:#7d432b;color:#fff}.recipe-summary span{font-size:9px}.recipe-book{display:grid;gap:8px}.recipe-entry{padding:9px;border:2px solid #d59d59;border-radius:13px;background:linear-gradient(145deg,#fffef6,#ffe8b8);box-shadow:inset 0 2px #fff,0 3px 8px #70421d2b}.recipe-entry header{display:flex;justify-content:space-between;gap:8px}.recipe-entry header b{font-size:13px}.recipe-entry header span{font-size:9px;color:#b14b2b;font-weight:900}.recipe-ingredients{display:flex;gap:5px;margin-top:6px}.recipe-ingredients div{width:49px;padding:3px;border:1px solid #e0ac64;border-radius:8px;background:#fff;text-align:center}.recipe-ingredients img{display:block;width:41px;height:34px;object-fit:contain}.recipe-ingredients small{font-size:8px;font-weight:900}.recipe-entry p{margin:5px 0 0;font-size:8px;color:#92542d}.recipe-entry.locked{filter:grayscale(.9);opacity:.64}.recipe-entry.locked .recipe-ingredients img{filter:brightness(0);opacity:.3}.first-dish{margin-top:12px;padding:12px;border:2px solid #d68334;border-radius:12px;background:#fff2b9}.first-dish span{display:block;font-size:12px;margin-top:4px}
.feature-host{height:94px;display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:15px;background:#ffdc7e}.feature-host img{width:94px;height:94px;object-fit:contain}.feature-host p{margin:0;font-size:13px;font-weight:900}.upgrade-grid{display:grid;gap:7px;margin-top:10px}.upgrade-grid article{display:grid;grid-template-columns:33px 1fr auto;align-items:center;gap:6px;padding:7px;border:2px solid #d0995a;border-radius:12px;background:#fff8e5}.upgrade-grid i{font-size:25px;font-style:normal}.upgrade-grid b,.upgrade-grid small{display:block}.upgrade-grid small{font-size:9px}.upgrade-grid button{padding:6px;border:2px solid var(--ink);border-radius:9px;background:#ffd260;font-size:9px;font-weight:900}.map-grid{display:grid;gap:8px;margin-top:10px}.map-grid article{height:92px;position:relative;overflow:hidden;display:flex;align-items:end;justify-content:space-between;padding:10px;border:3px solid var(--ink);border-radius:14px;background-size:cover;background-position:center;color:#fff;text-shadow:0 2px #2c160d}.map-grid article::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#25120ccc)}.map-grid article>*{position:relative}.map-grid article b,.map-grid article small{display:block}.map-grid article.locked{filter:grayscale(.75)}.map-grid article>span{padding:4px 7px;border-radius:9px;background:#e85534;font-size:9px;font-weight:900}.settings-list{display:grid;gap:14px;padding:8px}.settings-list label{display:flex;justify-content:space-between;font-weight:900}.setting-link{width:100%;padding:10px;border:2px solid var(--ink);border-radius:10px;background:#fff0c5;font-weight:900}
.profile-hero{display:grid;grid-template-columns:84px 1fr;align-items:center;gap:10px;padding:9px;border:2px solid #c18447;border-radius:15px;background:linear-gradient(145deg,#fff6d6,#efbd70)}.large-avatar{width:78px;height:78px;overflow:hidden;border:4px solid #693820;border-radius:50%;background:#fff}.large-avatar img{width:112px;height:112px;margin:-8px 0 0 -18px;object-fit:contain}.profile-hero b,.profile-hero small,.profile-hero em{display:block}.profile-hero b{font-size:19px}.profile-hero small,.profile-hero em{font-size:10px;font-style:normal}.profile-xp{height:10px;margin:7px 0 3px;overflow:hidden;border:2px solid #4c2a1b;border-radius:99px;background:#605a4d}.profile-xp i{display:block;height:100%;background:linear-gradient(90deg,#ffd14a,#fff1a7)}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}.profile-stats span{padding:8px 3px;border:2px solid #d39a56;border-radius:11px;background:#fff8e6;text-align:center;font-size:9px}.profile-stats b{display:block;font-size:15px}.economy-intro{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:9px;padding:10px;border-radius:15px;background:linear-gradient(145deg,#fff8dd,#efc57b)}.economy-intro>.coin-token{width:48px;height:48px;font-size:15px}.economy-intro>.gem-token{width:35px;height:44px;margin-left:8px}.economy-intro b{font-size:19px}.economy-intro p{margin:3px 0;font-size:10px;line-height:1.45}.economy-rules{display:grid;gap:7px;margin-top:9px}.economy-rules article,.cosmetic-note{padding:9px;border:2px solid #d6a15e;border-radius:12px;background:#fff8e8}.economy-rules b,.economy-rules span{display:block}.economy-rules span{font-size:11px}.shop-heading{margin:10px 0 5px}.boost-shop{display:grid;gap:6px}.boost-shop article{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:5px;padding:7px;border:2px solid #d29b5e;border-radius:11px;background:#fff9e8}.boost-shop article>i{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#7c4b91;color:#fff;font-style:normal;font-weight:900}.boost-shop b,.boost-shop small{display:block}.boost-shop b{font-size:11px}.boost-shop small{font-size:8px}.boost-shop button{padding:6px;border:2px solid #4c2a1b;border-radius:9px;background:linear-gradient(#c6efff,#8e8cff);font-size:8px;font-weight:900}.recharge-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.recharge-grid button{padding:9px;border:2px solid #55301e;border-radius:12px;background:linear-gradient(145deg,#f6ecff,#b7dfff)}.recharge-grid b,.recharge-grid span{display:block}.recharge-grid span{font-size:8px}.recharge-grid .sdk-waiting{filter:grayscale(.7)}.sdk-note{margin:6px 2px;color:#9c5b39;font-size:8px;line-height:1.45}.cosmetic-note{margin:0;font-size:10px}

.home-topbar{top:14%}
@media(max-height:760px){.app-shell{min-height:620px}.hand{height:132px}.card img{height:69px}.counter{min-height:91px}.prep-list{min-height:52px}.mini-card{width:56px;height:50px}.mini-card img{height:32px}.diner-wrap{top:48px}.stall-foreground{height:48px}.tool-button{height:58px}.tool-button img{height:42px}.dialogue-box{min-height:145px}.dialogue-text{font-size:17px}}

/* Layered home: every visible control owns its own art and hit target inside one 9:16 artboard. */
.home-screen{display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 35%,#75482f,#24120d 76%)}
.home-artboard{position:relative;height:100%;aspect-ratio:941/1672;overflow:hidden;background:url("../assets/approved/ui/home/layers/UI-HOME-BG-CLEAN-v01.png") center/100% 100% no-repeat;box-shadow:0 0 30px #0008}
.home-artboard .home-vignette{background:linear-gradient(transparent 0 72%,#29120912 80%,#170a0752 100%)}
.home-logo-layer{position:absolute;z-index:2;left:5.5%;top:5.8%;width:89%;height:auto;filter:drop-shadow(0 5px 5px #2b110c55);pointer-events:none}
.home-artboard .home-topbar{left:2%;right:2%;top:1%;height:39px;grid-template-columns:1.45fr .78fr .72fr}
.home-layer-button{position:relative;padding:0;border:0;background:transparent;filter:drop-shadow(0 5px 5px #210e0966);cursor:pointer;transition:transform .16s,filter .16s}
.home-layer-button img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.home-layer-button:hover,.home-layer-button:focus-visible{outline:0;filter:drop-shadow(0 0 9px #ffe06f) drop-shadow(0 5px 5px #210e0966);transform:translateY(-2px) scale(1.035)}
.home-layer-button:active{transform:translateY(3px) scale(.98)}
.home-start-button{position:absolute;z-index:5;left:20%;bottom:11.5%;width:60%;height:auto;aspect-ratio:474/166}
.home-layer-nav{position:absolute;z-index:5;left:4%;right:4%;bottom:1.2%;height:8.6%;display:grid;grid-template-columns:repeat(4,1fr);align-items:end;gap:10%}
.home-layer-nav .home-layer-button{width:100%;height:100%}
.home-artboard .departure-button{right:1.7%;bottom:11.7%;width:17%;max-width:72px}
@media(max-aspect-ratio:941/1672){.home-artboard{width:100%;height:auto}}

/* Premium gameplay skin: layout stays live, but every silhouette comes from the approved raster atlas. */
.game-screen{background:#5a2d1c;grid-template-rows:78px minmax(245px,1fr) 120px 222px}
.hud{padding:max(8px,env(safe-area-inset-top)) 7px 4px;grid-template-columns:1fr 1.72fr .82fr 44px;align-items:center;gap:3px;background:transparent;box-shadow:none;filter:drop-shadow(0 5px 5px #2b120a66)}
.hud-pill,.stage-box,.pause-icon{border:0;border-radius:0;background-color:transparent;background-repeat:no-repeat;background-position:center;background-size:100% 100%;box-shadow:none}
.revenue-pill{min-height:55px;padding:9px 8px 4px 33px!important;background-image:url("../assets/approved/ui/components/UI-HUD-REVENUE-BLANK.png")!important;color:#fff8e8;text-shadow:0 2px #3b1c13}
.revenue-pill span{font-size:8px;color:#ffe3a6}.revenue-pill strong{font-size:17px}.revenue-pill small{font-size:7px;color:#ffd36d}
.stage-box{min-height:66px;padding:12px 14px 7px;background-image:url("../assets/approved/ui/components/UI-STAGE-TITLE-BLANK.png")}
.stage-box::after{content:"";position:absolute;z-index:-1;left:24%;right:20%;top:45px;height:34px;background:url("../assets/approved/ui/components/UI-PROGRESS-PANEL-BLANK.png") center/100% 100% no-repeat}
.stage-title{font-family:"STKaiti","KaiTi",serif;font-size:13px}.goal-line{position:relative;z-index:1;margin:5px 12px 0;font-size:8px}.stage-box .progress-track{position:relative;z-index:2;height:8px;margin:0 12px;border:0;background:transparent}.stage-box .progress-fill{box-shadow:inset 0 1px #e4ffc9;border-radius:999px}
.timer-pill{min-height:52px;padding:12px 6px 4px 28px!important;background-image:url("../assets/approved/ui/components/UI-HUD-TIMER-BLANK.png")!important;color:#fff8e8;text-shadow:0 2px #3b1c13}.timer-pill span{font-size:7px}.timer-pill strong{font-size:16px}
.pause-icon{width:44px;height:43px;padding:0;overflow:hidden;cursor:pointer}.pause-icon img{display:block;width:100%;height:100%;object-fit:contain}
.scene{box-shadow:inset 0 12px 18px #33150c42}
.location-sign{left:2px;top:4px;width:54px;height:108px;padding:24px 17px 13px 12px;border:0;border-radius:0;background:url("../assets/approved/ui/components/UI-LOCATION-SIGN-BLANK.png") center/100% 100% no-repeat;box-shadow:none;font-family:"STKaiti","KaiTi",serif;font-size:15px;line-height:1.05;filter:drop-shadow(0 5px 4px #2e120a55)}
.diner-info{left:15%;right:23%;top:6px;min-height:56px;padding:10px 14px 6px;border:0;border-radius:0;background:url("../assets/approved/ui/components/UI-CUSTOMER-FU-PANEL-BLANK.png") center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 4px 4px #2c100947)}
.diner-info .fu-track{height:10px;border:0;background:transparent;padding:2px 8px}.diner-info>small{padding-left:9px}.diner-line{padding:0 9px 2px}
.speech{right:22%;top:68px;min-width:138px;padding:14px 17px 19px;border:0;border-radius:0;background:url("../assets/approved/ui/components/UI-STATUS-BUBBLE-BLANK.png") center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 4px 4px #2b110a44);transform:rotate(-2deg)}
.right-rail{right:3px;top:5px;width:65px;gap:5px}.queue{height:145px;padding:10px 9px 11px;gap:2px;border:0;border-radius:0;background:url("../assets/approved/ui/components/UI-QUEUE-3-SLOTS-BLANK.png") center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 5px 4px #2a100955)}
.queue-face{border:0;border-radius:8px}.queue-face span{display:none}
.tool-button{position:relative;width:65px;height:76px;padding:3px 4px 8px;border:0;border-radius:0;background:url("../assets/approved/ui/components/UI-TOOL-BUTTON-BASE-A.png") center/100% 100% no-repeat;box-shadow:none;overflow:visible;filter:drop-shadow(0 4px 4px #2b110a66)}
.tool-button:nth-of-type(2){background-image:url("../assets/approved/ui/components/UI-TOOL-BUTTON-BASE-B.png")}.tool-button img{width:57px;height:50px;margin:-2px auto -4px}.tool-button span{position:relative;color:#fff3ce;font-size:8px;text-shadow:0 2px #4d2418}
.stall-foreground{height:59px;border:0;background:linear-gradient(180deg,transparent 0 8%,#b97542 9%,#74401f 72%,#4c2817);box-shadow:inset 0 5px #edb66f,0 -9px 17px #29100740}
.counter{margin:-8px 5px -5px;min-height:120px;padding:25px 22px 13px;border:0;border-radius:0;background:url("../assets/approved/ui/components/UI-PREPARATION-COUNTER-BLANK.png") center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 7px 6px #29110977)}
.counter-title{position:absolute;left:23px;right:23px;top:12px;margin:0;color:#fff3d3;font-size:10px}.redraw-button{border:0;background:#4b271bcf;box-shadow:inset 0 1px #ffe3a366}.prep-list{min-height:73px;border:2px dashed #ffe5afcc;border-radius:10px;background:#3e1c1029}.prep-empty{max-width:76%;text-align:center}
.hand-area{padding:5px 6px max(8px,env(safe-area-inset-bottom));background:linear-gradient(180deg,#5b2e1d,#35190f 65%,#211008)}.hand-area::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 5%,#d68a4c38,transparent 56%);pointer-events:none}.hand{position:relative;height:148px}.card{position:relative;width:20%;max-width:98px;min-width:60px;height:139px;padding:11px 8px 13px;border:0;border-radius:0;background:url("../assets/approved/ui/components/UI-CARD-FRAME-BLANK.png") center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 5px 4px #16090588)}
.card img{width:100%;height:79px;border-radius:5px;object-fit:cover}.card-name{margin-top:1px;font-size:9px}.card small,.card em{font-size:7px}.card:hover,.card:focus-visible{outline:0;filter:drop-shadow(0 0 7px #ffe25c) drop-shadow(0 5px 4px #16090588)}
.bottom-actions{position:relative;margin-top:3px;gap:4px}.small-action,.primary.cook{border:0;border-radius:0;background-color:transparent;background-repeat:no-repeat;background-position:center;background-size:100% 100%;box-shadow:none;text-shadow:0 2px #3d1d14;filter:drop-shadow(0 4px 3px #16090588)}
.small-action{min-height:48px;background-image:url("../assets/approved/ui/components/UI-BUTTON-SECONDARY-BLANK.png");color:#fff4df}.primary.cook{min-height:62px;background-image:url("../assets/approved/ui/components/UI-BUTTON-PRIMARY-BLANK.png");font-size:25px}
.bottom-actions .small-action:first-child{font-size:0;background-image:url("../assets/approved/ui/components/UI-BUTTON-RECIPE-ICON.png");background-size:76px 63px}.bottom-actions .small-action:first-child::after{content:"菜谱";font-size:11px;position:absolute;left:0;right:0;bottom:2px}

/* Paused/settings screens are cropped illustrated masters. Text and hit targets are the only live layers. */
.art-panel-backdrop{padding:12px;background:#1d0d08c7;backdrop-filter:blur(7px) saturate(.8)}
.pause-art-panel,.settings-art-panel{position:relative;width:min(96%,420px);filter:drop-shadow(0 18px 22px #170805aa)}
.pause-art-panel{aspect-ratio:795/790}.settings-art-panel{aspect-ratio:885/897}
.art-panel-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.pause-art-panel h2,.settings-art-panel h2{position:absolute;z-index:2;left:22%;right:22%;top:7.5%;margin:0;text-align:center;font-family:"STKaiti","KaiTi",serif;font-size:25px;color:#5a2d1b;text-shadow:0 1px #fff}
.pause-art-panel p{position:absolute;z-index:2;left:18%;right:18%;top:17%;margin:0;text-align:center;color:#9a5b34;font-size:10px;font-weight:800}
.art-close{position:absolute;z-index:4;right:4.5%;top:8%;width:12%;aspect-ratio:1;border:0;border-radius:50%;background:transparent;cursor:pointer}
.pause-art-action{position:absolute;z-index:3;left:24%;width:58%;height:11%;border:0;background:transparent;color:#653219;font-size:19px;font-weight:950;cursor:pointer;text-shadow:0 1px #fff6df}.pause-continue{top:28%}.pause-retry{top:45%}.pause-home{top:62%}.pause-round{position:absolute;z-index:3;bottom:8%;width:15%;aspect-ratio:1;border:0;border-radius:50%;background:transparent;cursor:pointer}.pause-sound{left:38%}.pause-music{right:29%}.pause-round.is-muted{filter:grayscale(1);opacity:.55}
.settings-art-panel h2{top:6%}.art-setting{position:absolute;z-index:3;left:27%;right:13%;height:10%;display:grid;grid-template-columns:38% 1fr;align-items:center;gap:4%;font-size:14px;color:#6a361f}.art-setting-music{top:24%}.art-setting-sound{top:37%}.art-setting input{width:100%;opacity:.03;cursor:pointer}.art-toggle{position:absolute;z-index:3;left:27%;right:13%;height:9%;border:0;background:transparent;color:#6a361f;text-align:left;font-weight:900;cursor:pointer}.art-toggle-vibrate{top:51%}.art-toggle-eye{top:64%}.art-toggle i{position:absolute;right:2%;top:16%;width:22%;height:66%;border-radius:999px;background:#f8cf47aa}.art-toggle:not(.is-on) i{background:#6e675faa}.art-settings-save,.art-settings-reset{position:absolute;z-index:3;bottom:9%;height:11%;display:grid;place-items:center;border:0;background:transparent;font-size:16px;font-weight:950;cursor:pointer;text-shadow:0 1px #fff}.art-settings-save{left:17%;width:35%;color:#fff}.art-settings-reset{right:11%;width:35%;color:#fff1d8}

/* Branded full-page shell for character, bag, shop, map, equipment and recipe pages. */
.inner-page-backdrop{padding:0;background:#24110bd9;backdrop-filter:blur(7px) saturate(.85)}
.inner-page-shell{position:relative;width:min(100%,calc(100svh * 941 / 1672));height:100%;max-height:100svh;overflow:hidden;filter:drop-shadow(0 0 24px #130704aa)}
.inner-page-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.inner-page-shell>h2{position:absolute;z-index:2;left:19%;right:19%;top:8.5%;margin:0;text-align:center;font-family:"STKaiti","KaiTi",serif;font-size:25px;color:#572b19;text-shadow:0 1px #fff8db}
.inner-page-x{position:absolute;z-index:6;right:4.5%;top:9.3%;width:13%;aspect-ratio:1;border:0;border-radius:50%;background:transparent;cursor:pointer}
.inner-page-tabs{position:absolute;z-index:2;left:12%;right:17%;top:15%;height:7%;display:grid;grid-template-columns:repeat(3,1fr);gap:2%}.inner-page-tabs i{display:block}
.inner-page-scroll{position:absolute;z-index:3;left:10.5%;right:10.5%;top:22%;bottom:15%;overflow:auto;padding:7px 9px 22px;font-size:13px;line-height:1.45;scrollbar-width:thin;scrollbar-color:#c17a39 transparent}
.inner-page-actions{position:absolute;z-index:4;left:19%;right:19%;bottom:15.2%;height:6.7%;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px;align-items:center}.inner-page-actions .primary,.inner-page-actions .secondary{min-height:0;height:100%;display:grid;place-items:center;padding-top:3px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:15px;line-height:1;text-shadow:0 1px #fff;filter:none}.inner-page-actions .primary{color:#6b341e}.inner-page-actions .secondary{color:#7a3f27}
.inner-page-scroll .character-menu article,.inner-page-scroll .bag-menu article,.inner-page-scroll .economy-rules article,.inner-page-scroll .cosmetic-note,.inner-page-scroll .boost-shop article,.inner-page-scroll .recipe-entry,.inner-page-scroll .upgrade-grid article{border:1px solid #ddb97d;border-radius:12px;background:#fffaf0cc;box-shadow:0 4px 10px #69371914}
.inner-page-scroll .recipe-summary{background:#8c4b31e6}.inner-page-scroll .feature-host{background:#ffd777cc}.inner-page-scroll .map-grid article{border-color:#704027;box-shadow:0 5px 10px #3a1c1240}
@media(max-height:760px){.game-screen{grid-template-rows:70px minmax(220px,1fr) 105px 195px}.card{height:125px}.hand{height:132px}.counter{min-height:105px}.queue{height:128px}.tool-button{height:63px}.right-rail{width:58px}.tool-button{width:58px}.tool-button img{width:51px;height:43px}}

/* 2026-10-04 authored-page pass. The raster masters own the materials and silhouettes;
   HTML only supplies live values, people, ingredients and hit areas. */
.departure-button,.home-artboard .departure-button{right:1.35%;bottom:10.75%;width:18.5%;max-width:none;aspect-ratio:1;border:0;border-radius:0;background:transparent;box-shadow:none;transform:none;filter:drop-shadow(0 5px 5px #2a110a88);overflow:visible}
.departure-button::before,.departure-button i,.departure-button b{display:none}.departure-button img{display:block;width:100%;height:100%;object-fit:contain}.departure-button:hover,.departure-button:focus-visible{outline:0;box-shadow:none;filter:drop-shadow(0 0 10px #ffe16f) drop-shadow(0 5px 5px #2a110a88);transform:scale(1.05)}.departure-button:active{transform:translateY(3px) scale(.98)}

/* The gameplay page is one authored 9:16 stall illustration, not stacked web panels. */
.game-screen{display:block;overflow:hidden;background:#5b321d url("../assets/approved/ui/UI-GAMEPLAY-PORTRAIT-MASTER-v02.png") center/100% 100% no-repeat}
.game-screen .hud{position:absolute;z-index:20;inset:0;display:block;padding:0;background:transparent;filter:none;pointer-events:none}
.game-screen .hud-pill,.game-screen .stage-box,.game-screen .pause-icon{position:absolute;min-height:0;padding:0!important;border:0;background:none!important;box-shadow:none;filter:none;pointer-events:auto}
.game-screen .revenue-pill{left:2.4%;top:1.35%;width:22.6%;height:5.6%;padding:1.2% 1% 0 8.5%!important;text-align:left;color:#fff7dc;text-shadow:0 2px #32170f}
.game-screen .revenue-pill span{display:block;font-size:clamp(7px,1.9vw,10px);line-height:1}.game-screen .revenue-pill strong{font-size:clamp(14px,4.5vw,23px);line-height:1.05}.game-screen .revenue-pill small{display:none}
.game-screen .stage-box{left:28.5%;right:29.5%;top:1.35%;height:8.2%;padding:1.1% 2.4%!important;text-align:center}.game-screen .stage-box::after{display:none}.game-screen .stage-title{height:48%;font-family:"STKaiti","KaiTi",serif;font-size:clamp(12px,3.2vw,17px);line-height:1.3;overflow:hidden}.game-screen .goal-line{height:22%;margin:0 5%;font-size:clamp(7px,1.8vw,10px);align-items:center}.game-screen .stage-box .progress-track{height:10%;margin:0 4%;border:0;background:#383b39cc}.game-screen .stage-box .progress-fill{border-radius:99px}
.game-screen .timer-pill{right:9.3%;top:1.25%;width:16.8%;height:5.8%;padding:1.8% 1% 0 5.7%!important;text-align:center;color:#fff7dc;text-shadow:0 2px #32170f}.game-screen .timer-pill span{display:none}.game-screen .timer-pill strong{font-size:clamp(13px,4vw,21px)}
.game-screen .pause-icon{right:1.15%;top:1.2%;width:7.3%;height:5.6%;opacity:0;cursor:pointer}
.game-screen .scene{position:absolute;z-index:4;left:0;right:0;top:8.5%;height:37.3%;min-height:0;overflow:hidden;background:none;box-shadow:none}.game-screen .scene::before,.game-screen .scene::after{display:none}
.game-screen .location-sign{left:1.2%;top:1.8%;width:13.5%;height:63%;padding:14% 4% 2%;border:0;background:none;box-shadow:none;filter:none;font-size:clamp(15px,5vw,25px);line-height:1.12;text-align:center}
.game-screen .diner-info{left:30%;right:31%;top:3%;min-height:0;height:15%;padding:2% 4%;border:0;background:#fff9e8e8;border-radius:18px;box-shadow:0 4px 10px #3b1a103d;filter:none}.game-screen .diner-line{padding:0;font-size:clamp(10px,2.8vw,14px)}.game-screen .diner-info>small{padding:0;font-size:clamp(7px,1.8vw,9px)}.game-screen .diner-info .fu-track{height:15%;margin-top:1.5%;padding:0;border:0;background:#343737}.game-screen .speech{right:24%;top:19%;max-width:46%;min-width:0;padding:1.8% 3%;border:2px solid #5a301d;border-radius:18px;background:#ffdc62;box-shadow:0 4px 8px #3b1b1044;filter:none;font-size:clamp(9px,2.4vw,12px)}
.game-screen .diner-wrap{left:10%;right:16%;top:13%;bottom:-8%;align-items:end}.game-screen .diner-sprite{width:min(77vw,380px);max-height:100%;filter:drop-shadow(0 10px 7px #2d160c55)}.game-screen .stall-foreground{display:none}
.game-screen .right-rail{right:1.4%;top:0;width:12.9%;height:98%;display:block}.game-screen .queue{position:absolute;left:0;right:0;top:0;height:61%;padding:1% 8%;display:grid;grid-template-rows:repeat(3,1fr);gap:2%;border:0;background:none;box-shadow:none;filter:none}.game-screen .queue-face{min-height:0;border:0;border-radius:5px;background-color:transparent}.game-screen .tool-button{position:absolute;left:0;width:100%;height:17%;padding:0;border:0;background:none!important;box-shadow:none;filter:none;border-radius:50%;overflow:visible}.game-screen .tool-button:nth-of-type(1){top:64%}.game-screen .tool-button:nth-of-type(2){top:82%}.game-screen .tool-button img{width:100%;height:82%;margin:0;object-fit:contain;filter:drop-shadow(0 2px 2px #48220f88)}.game-screen .tool-button span{position:absolute;left:-6%;right:-6%;bottom:-2%;font-size:clamp(6px,1.8vw,9px);line-height:1;color:#5a2c1a;text-shadow:0 1px #fff5cf}.game-screen .preference-popover{z-index:30}
.game-screen .counter{position:absolute;z-index:7;left:13%;right:13%;top:48.2%;height:16.4%;min-height:0;margin:0;padding:3.2% 3% 2%;border:0;background:none;box-shadow:none;filter:none}.game-screen .counter-title{left:4%;right:4%;top:1%;height:18%;margin:0;font-size:clamp(8px,2.2vw,11px);color:#6a371f;text-shadow:0 1px #fff}.game-screen .redraw-button{padding:1px 5px;border:1px solid #7b442a;background:#fff3d9cc;color:#713d26;font-size:clamp(6px,1.6vw,8px);box-shadow:none}.game-screen .prep-list{height:77%;min-height:0;margin-top:2%;padding:1%;display:flex;align-items:center;justify-content:center;gap:1.5%;overflow:hidden;border:0;background:transparent}.game-screen .prep-empty{font-size:clamp(9px,2.4vw,12px);color:#704329}.game-screen .mini-card{width:18%;height:92%;padding:1%;border:2px solid #b56d36;border-radius:9px;background:#fff8e9;box-shadow:0 3px 5px #4b241a33}.game-screen .mini-card img{height:67%;object-fit:contain}.game-screen .mini-card b{font-size:clamp(6px,1.8vw,9px)}
.game-screen .hand-area{position:absolute;z-index:8;left:0;right:0;top:67.4%;bottom:0;padding:0;background:none}.game-screen .hand-area::before{display:none}.game-screen .hand{position:absolute;left:2.4%;right:2.4%;top:1.8%;height:51%;display:flex;align-items:stretch;gap:.2%;overflow:visible}.game-screen .card{position:relative;flex:1;width:auto;max-width:none;min-width:0;height:100%;margin:0;padding:5.5% 3% 3%;border:0;border-radius:0;background:none;box-shadow:none;filter:none;transform:none!important}.game-screen .card img{width:100%;height:58%;object-fit:contain;border-radius:0}.game-screen .card-name{display:block;margin-top:1%;font-size:clamp(7px,2.25vw,11px);line-height:1.05}.game-screen .card small,.game-screen .card em{display:block;font-size:clamp(6px,1.6vw,8px);line-height:1.1}.game-screen .card em{color:#a94627}.game-screen .card:hover,.game-screen .card:focus-visible{outline:0;filter:drop-shadow(0 0 8px #ffe25c);transform:translateY(-3px)!important}
.game-screen .bottom-actions{position:absolute;left:2.5%;right:2.1%;bottom:2.5%;height:22.5%;margin:0;display:grid;grid-template-columns:16.2% 45.5% 16.2% 16.2%;gap:2%;align-items:stretch}.game-screen .small-action,.game-screen .primary.cook{min-height:0;height:100%;padding:0;border:0;background:none!important;box-shadow:none;filter:none;text-shadow:0 2px #4c2116;font-size:clamp(9px,3vw,15px);color:#fff8e8}.game-screen .primary.cook{font-size:clamp(19px,6vw,30px)}.game-screen .bottom-actions .small-action:first-child{font-size:clamp(9px,3vw,15px);background:none!important}.game-screen .bottom-actions .small-action:first-child::after{display:none}.game-screen .settings-action{font-size:0}.game-screen .settings-action::after{content:"";position:absolute;inset:0}

/* Recipe compendium: six fixed slots and one fixed detail tray; no content scrolls under the return bar. */
.recipe-page-backdrop{padding:0;background:#231008d9;backdrop-filter:blur(7px)}.recipe-page{position:relative;width:min(100%,calc(100svh * 941 / 1672));height:100%;max-height:100svh;overflow:hidden;filter:drop-shadow(0 0 24px #120604aa)}.recipe-page-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.recipe-page-back{position:absolute;z-index:6;left:4%;top:1.1%;width:14%;height:5.8%;border:0;background:transparent;cursor:pointer}.recipe-page>h2{position:absolute;z-index:3;left:29%;right:29%;top:2.1%;margin:0;text-align:center;font-family:"STKaiti","KaiTi",serif;font-size:clamp(18px,5.5vw,28px);color:#63321f;text-shadow:0 1px #fff}.recipe-page-progress{position:absolute;z-index:3;right:5.7%;top:1.7%;width:15%;height:5%;display:flex;align-items:center;justify-content:center;gap:3px;color:#5c321f}.recipe-page-progress b{font-size:clamp(11px,3vw,15px)}.recipe-page-progress small{font-size:clamp(7px,1.8vw,9px)}.recipe-tabs{position:absolute;z-index:4;left:14%;right:12%;top:7.4%;height:6.2%;display:grid;grid-template-columns:repeat(3,1fr);gap:2%;}.recipe-tabs button{border:0;background:transparent;cursor:pointer}.recipe-tabs button.active{filter:drop-shadow(0 0 7px #ffc62f)}
.recipe-tile-grid{position:absolute;z-index:3;left:14.4%;right:12.7%;top:14.5%;height:60.4%;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,1fr);column-gap:5.4%;row-gap:2.3%}.recipe-tile{position:relative;min-width:0;padding:3% 5% 2%;border:0;background:transparent;color:#68351f;cursor:pointer}.recipe-tile img{display:block;width:100%;height:61%;object-fit:contain;filter:drop-shadow(0 5px 4px #6a351d55)}.recipe-tile b,.recipe-tile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipe-tile b{height:17%;font-size:clamp(10px,3vw,15px)}.recipe-tile small{height:13%;font-size:clamp(7px,1.8vw,9px);color:#a44d2a}.recipe-tile.locked{color:#83776b}.recipe-tile.locked i{display:grid;height:62%;place-items:center;font-size:clamp(28px,10vw,48px);font-style:normal;color:#b6aa9a}.recipe-tile:hover,.recipe-tile:focus-visible{outline:0;filter:drop-shadow(0 0 8px #ffd55a)}.recipe-tile.empty{pointer-events:none}
.recipe-detail{position:absolute;z-index:4;left:3.4%;right:3.4%;top:77.8%;height:19.2%;display:grid;grid-template-columns:35% 1fr;gap:3%;padding:2.3% 3% 2%;color:#68351f}.recipe-detail-dish{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 5px #56301d45)}.recipe-detail-copy{min-width:0;padding:1% 0 0}.recipe-detail-copy h3{height:22%;margin:0;font-size:clamp(13px,3.6vw,18px);overflow:hidden}.recipe-detail-ingredients{height:36%;display:flex;gap:2%}.recipe-detail-ingredients span{width:24%;min-width:0;text-align:center}.recipe-detail-ingredients img{display:block;width:100%;height:72%;object-fit:contain}.recipe-detail-ingredients b{display:block;overflow:hidden;font-size:clamp(6px,1.7vw,8px);white-space:nowrap}.recipe-detail-copy p{height:15%;margin:1% 0;font-size:clamp(6px,1.7vw,9px);overflow:hidden}.recipe-detail-copy strong{display:block;font-size:clamp(9px,2.4vw,12px)}.recipe-detail-locked{grid-column:1/-1;display:grid;place-items:center;font-size:clamp(12px,3.5vw,18px);font-weight:900;color:#8d7868}.recipe-page-done{position:absolute;z-index:6;right:4.9%;bottom:2.5%;width:25%;height:6%;border:0;background:transparent;color:#fff7e5;text-shadow:0 2px #6b2418;font-size:clamp(11px,3vw,15px);font-weight:950;cursor:pointer}

/* Serving result: its own celebratory page, not a generic modal card. */
.dish-reveal-backdrop{padding:0;background:#2a120bd9;backdrop-filter:blur(7px)}.dish-reveal-page{position:relative;width:min(100%,calc(100svh * 941 / 1672));height:100%;max-height:100svh;overflow:hidden;filter:drop-shadow(0 0 25px #170805aa)}.dish-reveal-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.dish-reveal-close{position:absolute;z-index:7;right:4%;top:5%;width:12%;aspect-ratio:1;border:0;background:transparent;cursor:pointer}.dish-reveal-art{position:absolute;z-index:3;left:28%;right:25%;top:7.2%;height:14.5%}.dish-reveal-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 7px #71350f55)}.dish-reveal-badge{position:absolute;z-index:4;right:11%;top:14.4%;width:13%;height:7%;display:grid;place-items:center;font-size:clamp(8px,2.1vw,11px);font-weight:950;color:#9e5427;transform:rotate(-8deg)}.dish-reveal-label{position:absolute;z-index:4;left:24%;right:24%;top:22.1%;text-align:center;font-size:clamp(8px,2.2vw,11px);font-weight:900;color:#a64c25}.dish-reveal-page>h2{position:absolute;z-index:4;left:16%;right:16%;top:23.6%;height:4%;margin:0;text-align:center;font-family:"STKaiti","KaiTi",serif;font-size:clamp(19px,5.6vw,28px);color:#67331f;overflow:hidden}.dish-reveal-ingredients{position:absolute;z-index:4;left:11%;right:11%;top:33.8%;height:8.7%;display:grid;grid-template-columns:repeat(5,1fr);gap:2.3%}.dish-reveal-ingredient{min-width:0;text-align:center}.dish-reveal-ingredient img{display:block;width:100%;height:70%;object-fit:contain}.dish-reveal-ingredient b{display:block;overflow:hidden;font-size:clamp(6px,1.8vw,9px);white-space:nowrap}.dish-reveal-score{position:absolute;z-index:4;top:45.3%;width:37%;height:10.5%;padding:3% 3% 1% 14%;color:#71391f}.dish-reveal-fu{left:8%}.dish-reveal-sale{right:8%}.dish-reveal-score small,.dish-reveal-score strong{display:block}.dish-reveal-score small{font-size:clamp(7px,1.9vw,10px)}.dish-reveal-score strong{font-size:clamp(16px,4.8vw,24px)}.dish-reveal-reaction{position:absolute;z-index:4;left:11%;right:11%;top:60.5%;height:8%;margin:0;display:grid;place-items:center;text-align:center;font-size:clamp(10px,2.7vw,14px);line-height:1.4;color:#6a371f}.dish-reveal-clue{position:absolute;z-index:4;left:34%;right:10%;top:74.1%;height:8.5%;display:flex;flex-direction:column;justify-content:center;color:#6a371f}.dish-reveal-clue small,.dish-reveal-clue b,.dish-reveal-clue em{display:block}.dish-reveal-clue small{font-size:clamp(7px,1.8vw,9px);color:#c25329}.dish-reveal-clue b{max-height:45%;overflow:hidden;font-size:clamp(9px,2.3vw,12px)}.dish-reveal-clue em{font-size:clamp(6px,1.6vw,8px);font-style:normal;color:#997157}.dish-reveal-accept{position:absolute;z-index:6;left:18%;right:18%;bottom:5.9%;height:7%;border:0;background:transparent;color:#fff8e7;text-shadow:0 2px #8a241b;font-size:clamp(15px,4.2vw,21px);font-weight:950;cursor:pointer}

/* The pause art already owns its ribbon; live copy only occupies the blank button labels. */
.pause-art-panel p{display:none}.pause-art-action{display:grid;place-items:center;padding:0 0 1.5%;font-size:clamp(13px,3.8vw,17px);line-height:1}.pause-art-panel h2{top:7.2%;font-size:clamp(19px,5.2vw,25px)}

@media(max-height:760px){.game-screen{display:block}.game-screen .card{height:100%}.game-screen .hand{height:51%}.game-screen .counter{min-height:0}.game-screen .queue{height:61%}.game-screen .tool-button{width:100%;height:17%}.game-screen .tool-button img{width:100%;height:82%}}

/* Final alignment corrections after 393×698 device QA. */
.recipe-page-done{bottom:4.9%}
.dish-reveal-label{display:none}

/* Functional settings replace the decorative hit-map so every visible control is real. */
.settings-functional-panel{width:min(92%,390px);padding:18px;border:5px solid #63301d;border-radius:24px;background:linear-gradient(#fff8df,#f4d497);box-shadow:0 14px 0 #34170e80,0 22px 38px #16090488;color:#5f311f}
.settings-functional-panel header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #d79b58;padding:0 0 12px}.settings-functional-panel h2{margin:0;font-family:"STKaiti","KaiTi",serif;font-size:28px}.settings-functional-panel header button{width:38px;height:38px;border:3px solid #63301d;border-radius:50%;background:#9b5636;color:#fff4d8;font-size:25px;font-weight:900}.functional-range{display:grid;gap:8px;margin:18px 0}.functional-range span{display:flex;justify-content:space-between}.functional-range em{font-style:normal;font-weight:900}.functional-range input{width:100%;height:26px;accent-color:#ed6b37;cursor:grab}.functional-range input:active{cursor:grabbing}.functional-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;margin:10px 0;padding:12px;border:2px solid #cf8d4e;border-radius:14px;background:#fff8e8;color:#60331f;text-align:left}.functional-toggle span b,.functional-toggle span small{display:block}.functional-toggle span small{margin-top:3px;color:#9a684a}.functional-toggle i{min-width:50px;padding:6px;border-radius:999px;background:#776f68;color:#fff;text-align:center;font-style:normal;font-weight:900}.functional-toggle.is-on i{background:#ee8a32}.settings-functional-panel footer{display:grid;grid-template-columns:1fr 1.2fr;gap:9px;margin-top:17px}.settings-functional-panel footer button{min-height:46px}.reduce-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* Six dishes per page, with explicit previous/next controls and no bottom detail tray. */
.recipe-pagination{position:absolute;z-index:5;left:15%;right:13%;top:8%;height:5.6%;display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:7px;align-items:center}.recipe-pagination button{height:100%;border:2px solid #8a4a2c;border-radius:12px;background:#fff2c8;color:#66331e;font-weight:900}.recipe-pagination button:disabled{opacity:.4}.recipe-pagination span{text-align:center;font-size:clamp(8px,2.2vw,11px);font-weight:900;color:#6a371f}.recipe-page-progress{width:20%;right:3%;flex-direction:column;gap:0}.recipe-page-progress small{display:block}.recipe-tile-grid{top:15%;height:76%;row-gap:3%}.recipe-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3% 5%}.recipe-tile img{height:54%}.recipe-card-icons{width:100%;height:54%;display:flex;align-items:center;justify-content:center}.recipe-card-icons img{width:33%;height:100%;object-fit:contain}.recipe-tile b{height:auto;margin-top:2%}.recipe-tile small{height:auto}.recipe-page-done{left:34%;right:34%;bottom:2.2%;width:auto}.recipe-detail{display:none}

/* Tutorial can target controls inside a modal, including the actual upgrade button. */
#tutorialLayer{position:absolute;inset:0;z-index:80;pointer-events:none}.tutorial-card{pointer-events:none}.tutorial-card button{pointer-events:auto}

/* The catalog/result illustration owns the whole reveal; gameplay is not visible behind it. */
.dish-reveal-backdrop{background:#24130d;backdrop-filter:none}

.inner-page-scroll .bag-menu article{align-items:flex-start}.inner-page-scroll .bag-menu article>div{flex:1;min-width:0}.bag-clues{align-items:flex-start!important}.bag-clue{padding:0 0 9px;margin-bottom:9px;border-bottom:1px solid #d8aa70}.bag-clue:last-child{border:0;margin:0}.bag-clue b,.bag-clue p,.bag-clue small{display:block}.bag-clue p{margin:3px 0!important}.bag-clue small{color:#9b6544}
.map-review-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}.map-review-tabs button{padding:9px;border:2px solid #b47a45;border-radius:10px;background:#fff4d8;color:#6a371f;font-weight:900}.map-review-tabs button.active{background:#f2a441;color:#fff}.story-review-list>p{margin:0 0 8px;color:#865537}.story-review-card{width:100%;display:grid;grid-template-columns:1fr auto;gap:3px 8px;align-items:center;margin:7px 0;padding:10px;border:2px solid #d3a064;border-radius:12px;background:#fff9e9;color:#63321f;text-align:left}.story-review-card b,.story-review-card small{display:block}.story-review-card small{font-size:10px;color:#956445}.story-review-card span{grid-column:2;grid-row:1/3;font-weight:900}.story-review-card:disabled{filter:grayscale(.8);opacity:.55}

.first-dish-screen{display:grid;place-items:center;padding:18px;background:radial-gradient(circle at 50% 15%,#ffdf6b,#9e3f25 50%,#2d120d)}.first-dish-card{width:100%;max-height:96%;overflow:auto;padding:20px;border:5px solid #73351f;border-radius:27px;background:linear-gradient(#fffaf0,#f8dda5);box-shadow:0 14px 0 #35150d99,0 24px 35px #170805aa;color:#62331f;text-align:center}.first-dish-card>small{color:#c04d2e;font-weight:900}.first-dish-card h1{margin:5px 0;font-family:"STKaiti","KaiTi",serif;font-size:25px}.first-dish-card h2{margin:4px 0 12px;font-size:22px}.first-dish-ingredients{display:flex;justify-content:center;gap:8px;margin:10px 0}.first-dish-ingredients span{width:29%;padding:6px;border:2px solid #d7a163;border-radius:12px;background:#fff9e9}.first-dish-ingredients img{display:block;width:100%;height:64px;object-fit:contain}.first-dish-ingredients b{font-size:11px}.first-dish-card dl{display:grid;gap:6px;margin:12px 0}.first-dish-card dl div{display:flex;justify-content:space-between;gap:10px;padding:8px;border-radius:10px;background:#fff6df}.first-dish-card dt{font-weight:900}.first-dish-card dd{margin:0;text-align:right}.first-dish-card blockquote{margin:12px 0;padding:12px;border-left:5px solid #e77637;background:#fff4d6;text-align:left;font-weight:900}.first-dish-card footer{display:grid;gap:7px}.first-dish-card footer button{min-height:44px}

/* Alignment corrections from the second full visual QA pass. */
.recipe-tile.locked small{display:none}
.art-toggle{display:flex;align-items:center;padding:0 2% 0 0;line-height:1}
.art-toggle b{display:flex;height:100%;align-items:center;transform:translateY(-6px)}
.art-settings-save,.art-settings-reset{bottom:14%;padding:0;line-height:1}
.dish-reveal-score strong{font-size:clamp(14px,4vw,19px);white-space:nowrap;letter-spacing:-.02em}
.dish-reveal-clue em{display:none}
.game-screen .settings-action{position:relative}
.game-screen .settings-action::after{display:none}
.dish-reveal-fu{padding-left:19%}
.dish-reveal-sale{padding-left:16%}

/* 2026-10-06 long-screen alignment pass: lock live copy to the baked UI slots. */
.game-screen .stage-box{padding:0!important}
.game-screen .stage-title{position:absolute;left:5%;right:5%;top:7%;height:38%;display:grid;place-items:center;line-height:1.05}
.game-screen .goal-line{position:absolute;left:8%;right:8%;top:48%;height:21%;margin:0;line-height:1;align-items:center}
.game-screen .stage-box .progress-track{position:absolute;left:9%;right:9%;bottom:8%;height:12%;margin:0}
.game-screen .diner-wrap{top:26%;bottom:-22%}
.game-screen .diner-info{height:22%;padding:1% 4%;display:grid;grid-template-rows:31% 25% 22%;align-content:center}
.game-screen .diner-line{height:auto;align-items:center;line-height:1}
.game-screen .diner-info .fu-track{height:44%;margin:0;align-self:center}
.game-screen .diner-info>small{align-self:center;line-height:1}
.game-screen .speech{top:31%}

.game-screen .card{padding:3.5% 4% 2%}
.game-screen .card img{height:63%;transform:scale(1.08);transform-origin:center}
.game-screen .card-name{margin-top:0;font-size:clamp(8px,2.45vw,12px)}
.game-screen .card-stats{display:flex;align-items:center;justify-content:center;gap:5%;white-space:nowrap}
.game-screen .card small,.game-screen .card em{display:inline;font-size:clamp(6px,1.7vw,9px)}

.game-screen .bottom-actions{top:58.5%;bottom:auto;height:26.5%;align-items:stretch}
.game-screen .small-action,.game-screen .primary.cook{display:grid;place-items:center;padding:0 0 3%!important;line-height:1}
.game-screen .primary.cook{padding-bottom:2%!important}
.inner-page-scroll .bag-menu article{align-items:flex-start}
.inner-page-scroll .bag-menu article>b{flex:0 0 76px;white-space:nowrap}
.inner-page-scroll .bag-menu article>p{flex:1;min-width:0;margin-top:0}

/* Dish reveal grid — reference canvas: 941 × 1672. Each live field stays inside
   the blank region painted for it; no text participates in normal document flow. */
.dish-reveal-score{top:45.1%;height:10.6%;display:flex;flex-direction:column;justify-content:center;padding-top:1%;padding-bottom:1%}
.dish-reveal-score small{line-height:1.1;margin-bottom:2%}
.dish-reveal-score strong{line-height:1}
.dish-reveal-reaction{left:12%;right:12%;top:59.1%;height:9.4%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4%;padding:0 4%;overflow:hidden;line-height:1.15}
.dish-reveal-reaction b,.dish-reveal-reaction span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dish-reveal-reaction b{font-size:clamp(10px,2.7vw,14px)}
.dish-reveal-reaction span{font-size:clamp(9px,2.35vw,12px)}
.dish-reveal-clue{top:73.3%;height:8.8%;justify-content:center;gap:3%;overflow:hidden}
.dish-reveal-clue small,.dish-reveal-clue b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.15}
.dish-reveal-accept{left:19%;right:19%;top:84.2%;bottom:auto;height:8.7%;display:grid;place-items:center;padding:0 0 1%;line-height:1}

/* 2026-10-06 component-layer rebuild.
   The environment is the only full-canvas image. Every HUD/control is an
   independent transparent asset, so changing diners or maps cannot cut a
   rectangular hole through the stall. */
.game-screen{
  background-color:#5b321d;
  background-image:var(--stage-environment)!important;
  background-position:center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
}
.game-screen .revenue-pill{
  left:1.8%;top:.8%;width:25%;height:6.7%;
  padding:1.35% 1% 0 8.8%!important;
  background:url("../assets/approved/ui/components/UI-HUD-REVENUE-BLANK.png") center/100% 100% no-repeat!important;
}
.game-screen .revenue-pill span{font-size:clamp(9px,2.5vw,13px)}
.game-screen .revenue-pill strong{font-size:clamp(19px,5.3vw,28px)}
.game-screen .stage-box{
  left:27.2%;right:27.2%;top:.65%;height:10.1%;
  background:
    url("../assets/approved/ui/components/UI-STAGE-TITLE-BLANK.png") center top/100% 60% no-repeat,
    url("../assets/approved/ui/components/UI-PROGRESS-PANEL-BLANK.png") center bottom/100% 48% no-repeat!important;
}
.game-screen .stage-box::after{display:none!important}
.game-screen .stage-title{z-index:1;left:8%;right:8%;top:7%;height:31%;font-size:clamp(13px,3.7vw,19px);white-space:nowrap}
.game-screen .goal-line{z-index:1;left:12%;right:12%;top:54%;height:17%;font-size:clamp(8px,2.2vw,11px)}
.game-screen .stage-box .progress-track{z-index:1;left:12%;right:12%;bottom:9%;height:10%}
.game-screen .timer-pill{
  right:8.7%;top:.85%;width:18.3%;height:6.4%;padding:1.65% 1% 0 6.5%!important;
  background:url("../assets/approved/ui/components/UI-HUD-TIMER-BLANK.png") center/100% 100% no-repeat!important;
}
.game-screen .timer-pill strong{font-size:clamp(17px,4.8vw,25px)}
.game-screen .pause-icon{right:.8%;top:.8%;width:8%;height:6.5%;opacity:1!important}
.game-screen .pause-icon img{width:100%;height:100%;object-fit:contain}

.game-screen .scene{top:8.4%;height:38%;background:transparent!important;overflow:hidden}
.game-screen .location-sign{left:2.2%;top:17%;width:11.5%;height:55%;padding:4% 2%;display:grid;place-items:center;font-size:clamp(16px,5vw,27px);writing-mode:vertical-rl;letter-spacing:.08em}
.game-screen .diner-info{
  left:29%;right:29%;top:3%;height:18%;padding:2.2% 5% 1.4%;
  border-radius:0;background:url("../assets/approved/ui/components/UI-CUSTOMER-FU-PANEL-BLANK.png") center/100% 100% no-repeat!important;box-shadow:none;
}
.game-screen .diner-line{font-size:clamp(11px,3.1vw,16px)}
.game-screen .diner-line small{font-size:clamp(8px,2.1vw,11px)}
.game-screen .diner-info>small{font-size:clamp(8px,2vw,11px)}
.game-screen .speech{
  right:25%;top:22%;max-width:43%;padding:3.2% 4% 4%;border:0;border-radius:0;
  background:url("../assets/approved/ui/components/UI-STATUS-BUBBLE-BLANK.png") center/100% 100% no-repeat!important;
  box-shadow:none;font-size:clamp(10px,2.7vw,14px);line-height:1.15;text-align:center;
}
.game-screen .diner-wrap{left:11%;right:16%;top:19%;bottom:-18%;transition:transform .26s ease,opacity .26s ease}
.game-screen .diner-wrap.entering{transform:translateX(28%);opacity:0}
.game-screen .diner-wrap.leaving{transform:translateX(-34%);opacity:0}
.game-screen .diner-sprite{width:min(82vw,410px);max-height:100%}

.game-screen .right-rail{right:.5%;top:0;width:14.1%;height:99%}
.game-screen .queue{
  left:0;right:0;top:0;height:62%;padding:5.5% 11% 7%;gap:2%;
  background:url("../assets/approved/ui/components/UI-QUEUE-3-SLOTS-BLANK.png") center/100% 100% no-repeat!important;
  filter:drop-shadow(0 4px 3px #2a100955);
}
.game-screen .queue-face{border-radius:7%;background-size:450% 450%;overflow:hidden}
.game-screen .queue-face span{display:none}
.game-screen .tool-button{height:19.5%;border-radius:0!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important}
.game-screen .tool-button:nth-of-type(1){top:62.8%;background-image:url("../assets/approved/ui/components/UI-TOOL-BUTTON-BASE-A.png")!important}
.game-screen .tool-button:nth-of-type(2){top:80.3%;background-image:url("../assets/approved/ui/components/UI-TOOL-BUTTON-BASE-B.png")!important}
.game-screen .tool-button img{width:86%;height:72%;margin:4% auto 0}
.game-screen .tool-button span{left:5%;right:5%;bottom:7%;font-size:clamp(7px,2vw,10px);color:#fff8df;text-shadow:0 2px #5a2a18}

.game-screen .counter{left:12%;right:12%;top:47.8%;height:17.2%;padding:3.4% 3% 1.5%}
.game-screen .counter-title{top:0;height:18%;font-size:clamp(9px,2.5vw,13px)}
.game-screen .prep-list{height:78%;margin-top:2.5%;gap:5%;overflow:visible}
.game-screen .prep-empty{font-size:clamp(10px,2.7vw,14px);font-weight:800;color:#744329}
.game-screen .prep-ingredient{
  position:relative;width:24%;height:98%;padding:0 0 10%;border:0;background:transparent;
  color:#66351f;filter:drop-shadow(0 6px 4px #51251145);cursor:pointer;
}
.game-screen .prep-ingredient img{display:block;width:100%;height:79%;object-fit:contain;transform:scale(2.35);transform-origin:center 54%}
.game-screen .prep-ingredient b{position:absolute;left:0;right:0;bottom:0;font-size:clamp(9px,2.4vw,12px);line-height:1.05}
.game-screen .prep-ingredient::after{content:"×";position:absolute;right:2%;top:1%;width:20%;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:#6c3829;color:#fff4d7;font-size:clamp(9px,2.4vw,12px);font-weight:900}
.game-screen .card.kept-return{position:relative;box-shadow:inset 0 2px #fff,0 0 0 4px #ffd257,0 5px 0 #572d20,0 9px 16px #ffcb4f88}
.game-screen .card .keep-pin{position:absolute;z-index:4;left:1%;top:1%;display:grid;place-items:center;width:43%;aspect-ratio:1;font-style:normal;font-size:clamp(24px,7vw,39px);line-height:1;transform:rotate(-19deg);filter:drop-shadow(0 3px 1px #5b241dcc) drop-shadow(0 0 5px #fff0a8);pointer-events:none;animation:keep-pin-set .45s cubic-bezier(.18,.9,.2,1.35) both}
@keyframes keep-pin-set{0%{opacity:0;transform:translateY(-45%) scale(1.8) rotate(-8deg)}65%{opacity:1;transform:translateY(5%) scale(.92) rotate(-22deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(-19deg)}}

.game-screen .hand-area{top:66.2%}
.game-screen .hand{left:1.2%;right:1.2%;top:1%;height:54%;gap:.2%}
.game-screen .card{
  padding:3.8% 4.2% 2.4%;
  background:url("../assets/approved/ui/components/UI-CARD-FRAME-BLANK.png") center/100% 100% no-repeat!important;
  filter:drop-shadow(0 4px 3px #32160c66);
}
.game-screen .card img{height:61%;transform:scale(1.08)}
.game-screen .card-name{font-size:clamp(9px,2.7vw,14px);line-height:1.1}
.game-screen .card small,.game-screen .card em{font-size:clamp(7px,1.95vw,10px)}
.game-screen .bottom-actions{left:1.8%;right:1.4%;top:59%;height:27%;grid-template-columns:18% 43% 18% 17%;gap:1.35%}
.game-screen .small-action,.game-screen .primary.cook{padding:0!important;background-position:center!important;background-size:100% 100%!important;background-repeat:no-repeat!important;filter:drop-shadow(0 4px 3px #24100877);font-size:clamp(11px,3.2vw,16px)}
.game-screen .recipe-action{background-image:url("../assets/approved/ui/components/UI-BUTTON-RECIPE-ICON.png")!important;padding-top:47%!important;color:#61301f;text-shadow:0 1px #fff0c8}
.game-screen .primary.cook{background-image:url("../assets/approved/ui/components/UI-BUTTON-PRIMARY-BLANK.png")!important;font-size:clamp(22px,6.5vw,34px)}
.game-screen .cancel-action{background-image:url("../assets/approved/ui/components/UI-BUTTON-SECONDARY-BLANK.png")!important}
.game-screen .settings-action{background-image:url("../assets/approved/ui/components/UI-BUTTON-SETTINGS-ICON.png")!important;font-size:0}

/* Serving result copy is sized for a phone, not for a desktop-width mockup. */
.dish-reveal-page>h2{font-size:clamp(23px,6.4vw,32px)}
.dish-reveal-ingredient b{font-size:clamp(9px,2.4vw,12px)}
.dish-reveal-score small{font-size:clamp(10px,2.6vw,13px)}
.dish-reveal-score strong{font-size:clamp(19px,5.2vw,27px)}
.dish-reveal-reaction b{font-size:clamp(13px,3.4vw,17px)}
.dish-reveal-reaction span{font-size:clamp(11px,3vw,15px)}
.dish-reveal-clue small{font-size:clamp(9px,2.4vw,12px)}
.dish-reveal-clue b{font-size:clamp(11px,2.9vw,15px);white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.dish-reveal-accept{font-size:clamp(18px,4.8vw,25px)}

/* The 696-combination copy is revealed progressively and always remains
   readable: short summary on the serve page, full prose in the catalogue. */
.dish-reveal-reaction{top:58.8%;height:10.1%;gap:2%;padding:0 6%}
.dish-reveal-reaction b{font-size:clamp(12px,3.3vw,17px);white-space:nowrap}
.dish-reveal-reaction span{font-size:clamp(10px,2.8vw,14px);line-height:1.25;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:clip}
.dish-reveal-clue em{display:block;font-size:clamp(8px,2vw,10px)}
.dish-reveal-page>h2{display:flex;align-items:center;justify-content:center;line-height:1.08;padding:0 2%;text-wrap:balance}
.dish-reveal-reaction b,.dish-reveal-reaction span,.dish-reveal-clue small,.dish-reveal-clue b,.dish-reveal-clue em{text-align:center}
.dish-reveal-clue{left:31%;right:8%;align-items:center;padding:0 2%}
.dish-reveal-clue small{font-size:clamp(9px,2.35vw,12px)}
.dish-reveal-clue b{width:100%;font-size:clamp(10px,2.65vw,14px);line-height:1.15}
.dish-reveal-clue em{width:100%;line-height:1.1}
.recipe-page-progress{border:0;background:transparent;cursor:pointer;font-family:inherit}
.recipe-page-progress:hover,.recipe-page-progress:focus-visible{outline:0;filter:drop-shadow(0 0 7px #ffd35b)}
.recipe-detail-copy p{height:23%;margin:1% 0;font-size:clamp(7px,1.9vw,10px);line-height:1.18;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.recipe-detail-copy strong{font-size:clamp(8px,2vw,11px);white-space:nowrap}

/* 2026-10-08 structural layout pass. The viewport is centered at the same
   portrait ratio as the authored art; dynamic copy is no longer positioned
   against a full-screen result bitmap. */
html,body{height:100%;min-height:0;overflow:hidden}
body{display:grid;place-items:center}
.app-shell{width:min(100vw,calc(100svh * 941 / 1672),520px);height:min(100svh,calc(100vw * 1672 / 941));min-height:0;margin:0}

.story-header{gap:8px}
.story-header>span{margin-right:auto}
.story-header #storyReview{border:0;background:transparent;color:#fff6dd;font-weight:900;text-shadow:0 2px #2b140e;cursor:pointer}
.story-backlog{position:absolute;z-index:80;inset:0;padding:8% 6%;display:grid;place-items:center;background:#110b09d9;backdrop-filter:blur(5px)}
.story-backlog>section{width:100%;height:78%;display:grid;grid-template-rows:auto 1fr;overflow:hidden;border:2px solid #e5c78b;border-radius:18px;background:#211813ee;color:#fff4dc;box-shadow:0 18px 50px #000b}
.story-backlog header{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid #fff3;background:#0d0907}
.story-backlog header button{width:36px;height:36px;border:1px solid #e5c78b;border-radius:50%;background:#4d3024;color:#fff;font-size:22px}
.story-backlog-list{overflow-y:auto;padding:8px 16px 24px;overscroll-behavior:contain}
.story-backlog-list article{padding:11px 0;border-bottom:1px solid #fff2}
.story-backlog-list b{display:block;margin-bottom:3px;color:#ffd777;font-size:12px}
.story-backlog-list p{margin:0;font-size:14px;line-height:1.65;white-space:pre-wrap}
.story-portrait.actor-donkey{left:4%;bottom:20%;width:24%;height:29%}
.story-portrait.actor-donkey img{transform:none!important;object-position:left bottom}

/* The two FU tracks encode opposite facts: stage completion grows in green;
   the current diner's remaining hunger shrinks in red. */
.game-screen .stage-box{left:27%;right:27%;top:.7%;height:10%}
.game-screen .stage-title{top:5%;height:31%;font-size:clamp(11px,3.3vw,17px)}
.game-screen .goal-line{top:48%;height:17%}
.game-screen .stage-box .progress-track{bottom:10%;height:12%}
.game-screen .diner-info{left:31%;right:31%;top:4%;height:19%;padding:2.4% 5% 1.2%;z-index:8}
.game-screen .diner-info .fu-track{height:18%;margin-top:2%;background:#f4d8d1;border:1px solid #5b211d}
.game-screen .diner-info .fu-fill{background:linear-gradient(90deg,#ff765f,#d93631);box-shadow:inset 0 2px #ffc0b1}
.game-screen .diner-info>small{color:#8e2f29;font-weight:900}
.game-screen .diner-wrap{top:25%;bottom:-22%}
.game-screen .speech{top:29%;z-index:9}

/* Restore the independent preparation-cart frame over every map background. */
.game-screen .counter{left:12%;right:12%;top:47%;height:18.2%;padding:4.2% 4% 1.8%;background:url("../assets/approved/ui/components/UI-PREPARATION-COUNTER-BLANK.png") center/100% 100% no-repeat!important;overflow:visible}
.game-screen .counter-title{left:7%;right:7%;top:3%;height:16%}
.game-screen .prep-list{height:73%;margin-top:3%}
.boost-dock{position:absolute;z-index:15;left:-14%;top:8%;width:13%;display:grid;gap:5%}
.boost-dock button{position:relative;min-width:0;aspect-ratio:1;border:2px solid #69402a;border-radius:12px;background:linear-gradient(#fff5ce,#d69a52);box-shadow:0 3px 0 #4a2417;color:#5e301e;font-weight:950;cursor:pointer}
.boost-dock button.active{outline:3px solid #fff083;filter:drop-shadow(0 0 7px #ffd94f)}
.boost-dock button b{position:absolute;right:-4px;top:-5px;display:grid;width:18px;height:18px;place-items:center;border-radius:50%;background:#c63e2f;color:white;font-size:9px}
.boost-dock button span{position:absolute;left:50%;top:101%;transform:translateX(-50%);white-space:nowrap;font-size:7px;color:#fff6dd;text-shadow:0 1px #42180e}

/* Serving results are a compact catalogue card over the running scene. */
.dish-reveal-backdrop{z-index:70;padding:5%;background:transparent;backdrop-filter:none}
.dish-reveal-page{position:relative;width:100%;height:auto;max-height:94%;padding:14px 15px 12px;display:flex;flex-direction:column;gap:8px;overflow:hidden;border:4px solid #6d3a21;border-radius:24px;background:linear-gradient(155deg,#fffdf2,#f5d99f);box-shadow:inset 0 2px #fff,0 16px 50px #1a0909aa;color:#66351f;filter:none}
.dish-reveal-scroll{min-height:0;padding:2px 2px 8px;display:grid;grid-template-columns:1fr 1fr;gap:7px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.dish-reveal-bg{display:none}
.dish-reveal-close{position:absolute;z-index:5;right:10px;top:9px;width:38px;height:38px;border:2px solid #6d3a21;border-radius:50%;background:#9a5a34;color:#fff;font-size:24px;font-weight:900;cursor:pointer}
.dish-reveal-art{position:relative;left:auto;right:auto;top:auto;height:96px;grid-column:1/-1;margin-top:2px}
.dish-reveal-badge{position:absolute;right:56px;top:18px;width:auto;height:auto;padding:5px 9px;border-radius:999px;background:#f4bf48;color:#75401f;transform:none;font-size:10px}
.dish-reveal-label{position:relative;left:auto;right:auto;top:auto;display:block!important;grid-column:1/-1;text-align:center;font-size:11px}
.dish-reveal-scroll>h2{position:relative;left:auto;right:auto;top:auto;height:auto;grid-column:1/-1;display:block;margin:-3px 0 1px;padding:0 42px;font-size:clamp(21px,5.7vw,29px);overflow:visible}
.dish-reveal-ingredients{position:relative;left:auto;right:auto;top:auto;height:auto;grid-column:1/-1;display:flex;justify-content:center;gap:10px}
.dish-reveal-ingredient{width:64px;padding:4px;border:1px solid #d59c59;border-radius:12px;background:#fffaf0}
.dish-reveal-ingredient img{height:39px}
.dish-reveal-ingredient b{font-size:10px}
.dish-reveal-score{position:relative;left:auto;right:auto;top:auto;width:auto;height:auto;min-height:58px;padding:7px!important;display:grid;place-items:center;text-align:center;border:2px solid #dfa35f;border-radius:14px;background:#fff5d7}
.dish-reveal-score small{margin:0;font-size:11px}.dish-reveal-score strong{font-size:20px}
.dish-reveal-reaction{position:relative;left:auto;right:auto;top:auto;height:auto;grid-column:1/-1;min-height:52px;padding:7px 10px;display:grid;gap:3px;overflow:visible;border:1px solid #e3b06e;border-radius:14px;background:#fff9ea}
.dish-reveal-reaction b,.dish-reveal-reaction span{white-space:normal;overflow:visible;text-overflow:clip}
.dish-reveal-clue{position:relative;left:auto;right:auto;top:auto;height:auto;grid-column:1/-1;padding:7px 10px;display:grid;gap:2px;overflow:visible;border:1px dashed #c58943;border-radius:14px;background:#fff1bd;text-align:center}
.dish-reveal-clue small,.dish-reveal-clue b,.dish-reveal-clue em{white-space:normal;overflow:visible}
.dish-reveal-accept{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:100%;height:44px;min-height:44px;flex:0 0 44px;border:3px solid #6d321e;border-radius:14px;background:linear-gradient(#ff7350,#e3432d);color:#fff8e7;font-size:16px;font-weight:900;text-shadow:0 2px #8a241b}

.combination-catalog-backdrop{z-index:110;padding:0;background:#241008dc;backdrop-filter:blur(8px)}
.combination-catalog-page{position:relative;width:min(100%,calc(100svh * 941 / 1672));height:100%;max-height:100svh;overflow:hidden;color:#63351f;filter:drop-shadow(0 0 24px #140704b8)}
.combination-catalog-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.combination-catalog-page>h2{position:absolute;z-index:2;left:17%;right:17%;top:4.3%;margin:0;text-align:center;font-family:"STKaiti","KaiTi",serif;font-size:clamp(22px,6.2vw,32px);color:#65341f}
.combination-catalog-close{position:absolute;z-index:5;right:6%;top:3.5%;width:10%;aspect-ratio:1;border:3px solid #5e301e;border-radius:50%;background:linear-gradient(#a9693d,#754027);box-shadow:inset 0 2px #d79b6f,0 4px 0 #37170d;color:#fff8e6;font-size:clamp(19px,5vw,26px);font-weight:950;cursor:pointer}
.combination-catalog-summary{position:absolute;z-index:2;left:12%;right:12%;top:10%;margin:0;text-align:center;font-size:clamp(10px,2.7vw,14px);font-weight:800}
.combination-catalog-summary b{color:#c85129;font-size:1.15em}
.combination-search{position:absolute;z-index:2;left:11%;right:11%;top:13%;height:5.2%;display:flex;align-items:center;gap:3%;padding:0 4%;border:2px solid #a96a3c;border-radius:999px;background:#fff8e9d9;box-shadow:inset 0 2px #fff,0 3px 7px #5a2b1740}
.combination-search span{flex:0 0 auto;font-size:clamp(8px,2.2vw,11px);font-weight:900}
.combination-search input{min-width:0;flex:1;border:0;background:transparent;color:#60321f;font:inherit;font-size:clamp(10px,2.7vw,14px);outline:0}
.combination-filters{position:absolute;z-index:2;left:8%;right:8%;top:19%;height:8.2%;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:5% 1.5%;overflow:visible}
.combination-filters::-webkit-scrollbar{display:none}
.combination-filters button{flex:0 0 22%;height:43%;padding:0 1%;border:2px solid #7b4329;border-radius:999px;background:#f8dfae;color:#6b3822;font-size:clamp(7px,1.95vw,10px);font-weight:900;box-shadow:0 3px 0 #5a2a1940;cursor:pointer;white-space:nowrap}
.combination-filters button.active{background:linear-gradient(#ffb34e,#ef6a36);color:#fff9e6;text-shadow:0 1px #8b351f}
.combination-list{position:absolute;z-index:2;left:9%;right:9%;top:28.5%;height:59%;display:grid;grid-template-rows:repeat(6,1fr);gap:.8%;overflow:hidden}
.combination-entry{min-height:0;display:grid;grid-template-columns:11% 1fr;gap:2.5%;align-items:center;padding:1.2% 3%;border:2px solid #d29b5a;border-radius:12px;background:linear-gradient(100deg,#fffaf0ee,#f7deacee);box-shadow:inset 0 2px #fff,0 3px 6px #5228182b}
.combination-entry>i{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:50%;background:#ffe0a2;font-size:clamp(15px,4.2vw,21px);font-style:normal}
.combination-entry>div{min-width:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto auto;column-gap:3%;align-items:baseline}
.combination-entry small{font-size:clamp(6px,1.65vw,8px);color:#a55732;white-space:nowrap}
.combination-entry b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(10px,2.8vw,14px)}
.combination-entry span{grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(7px,1.9vw,10px);color:#8b5b3c}
.combination-entry p{grid-column:1/-1;min-width:0;margin:0;overflow:hidden;font-size:clamp(7px,1.9vw,10px);line-height:1.15;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.combination-entry.locked{filter:saturate(.5);opacity:.76}
.combination-entry.locked>i{color:#9d8a72;background:#e7ddcc}
.combination-pagination{position:absolute;z-index:3;left:22%;right:22%;bottom:5.2%;height:5%;display:grid;grid-template-columns:1fr auto 1fr;gap:7%;align-items:center;text-align:center;font-weight:900}
.combination-pagination button{height:100%;border:2px solid #6d3722;border-radius:999px;background:linear-gradient(#f2a846,#d86a31);color:#fff8e8;font-size:clamp(9px,2.4vw,12px);font-weight:900;box-shadow:0 3px 0 #4d2114;cursor:pointer}
.combination-pagination button:disabled{filter:grayscale(1);opacity:.45}
.combination-pagination span{font-size:clamp(9px,2.4vw,12px);white-space:nowrap}

/* The old book art baked a lower detail drawer into the PNG. Flatten it so the page reads as one six-slot catalog. */
.recipe-page::before{content:"";position:absolute;z-index:2;left:8%;right:6%;top:13.5%;bottom:2%;border:2px solid #d2a46d;border-radius:18px;background:linear-gradient(90deg,#f6ead0,#fff7e4 48%,#f3e4c7);box-shadow:inset 0 2px #fff8e9;pointer-events:none}
.recipe-tile-grid{height:73%}
.recipe-tile{border:2px solid #d7ae7b;border-radius:13px;background:#fffaf0d9;box-shadow:inset 0 1px #fff,0 2px 5px #6b351729}

/* 2026-10-08 fixed-canvas delivery pass.
   The game always lays itself out on one 520 × 924 portrait artboard. Browser
   resizing scales that artboard as a single object and only changes the neutral
   letterbox around it; child geometry and type never reflow. */
html,body{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:#f3efe7}
body{display:block}
.app-shell{
  position:fixed;left:50%;top:50%;width:520px;height:924px;min-height:0;margin:0;
  transform:translate(-50%,-50%) scale(var(--canvas-scale,1));transform-origin:center;
  overflow:hidden;box-shadow:0 0 48px #3b20184d;background:#f6ad50;
}

/* Story beats are interleaved with playable levels and use a distinct,
   indented route treatment so replay never looks like another business stage. */
.level-list .story-route-node{margin-left:28px;width:calc(100% - 28px);grid-template-columns:70px 1fr auto;padding:7px 10px;border:2px dashed #8c568c;background:linear-gradient(135deg,#fff8e9,#efd8f1);box-shadow:inset 0 1px #fff}
.level-list .story-route-node strong{color:#8b3f78;font-size:12px}
.level-list .story-route-node span{font-size:11px}
.level-list .story-route-node em{color:#8b3f78}

/* Three data-heavy pages no longer sit on the baked inner-page bitmap. Their
   header, scroll viewport and action bar are independent rows. */
.plain-inner-page{display:grid;place-items:center;padding:0;background:#25140fd9;backdrop-filter:blur(7px)}
.plain-inner-page .inner-page-shell{
  position:relative;width:calc(100% - 20px);max-width:500px;height:790px;padding:92px 26px 24px;display:grid;box-sizing:border-box;
  grid-template-rows:minmax(0,1fr) 64px;gap:14px;overflow:hidden;
  border:5px solid #5b2e1d;border-radius:28px;
  background:linear-gradient(165deg,#fff9e8,#f6dca8 72%,#e5b66d);
  box-shadow:inset 0 0 0 3px #d6954e,inset 0 10px #fff6d5,0 20px 55px #16090799;
  filter:none;
}
.plain-inner-page .inner-page-shell::before{content:"";position:absolute;left:28px;right:28px;top:22px;height:55px;border:3px solid #713820;border-radius:18px;background:linear-gradient(#fff5d4,#edc17b);box-shadow:inset 0 2px #fff,0 5px 0 #6a311c4a}
.plain-inner-page .inner-page-shell>h2{left:74px;right:74px;top:31px;height:40px;display:grid;place-items:center;font-size:27px;line-height:1;z-index:3}
.plain-inner-page .inner-page-x{right:15px;top:14px;width:54px;height:54px;display:grid;place-items:center;border:3px solid #4e2517;border-radius:50%;background:linear-gradient(#a7663e,#714029);box-shadow:inset 0 2px #dca477,0 4px 0 #32150e;color:#fff9e8;font-size:31px;font-weight:900}
.plain-inner-page .inner-page-scroll{position:relative;inset:auto;min-height:0;padding:10px 8px 22px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;font-size:14px;line-height:1.5;scrollbar-gutter:stable}
.plain-inner-page .inner-page-actions{position:relative;inset:auto;height:64px;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:10px}
.plain-inner-page .inner-page-actions .primary,.plain-inner-page .inner-page-actions .secondary{height:58px;min-height:58px;border:3px solid #5c2d1c;border-radius:18px;background:linear-gradient(#ff7750,#e64830);box-shadow:inset 0 2px #ffb28d,0 5px 0 #58271a;color:#fff9e9;font-size:18px;text-shadow:0 2px #842919}
.plain-inner-page .profile-panel,.plain-inner-page .economy-intro,.plain-inner-page .economy-rules,.plain-inner-page .boost-shop{max-width:100%}

/* A full foreground stall surrounds every environment. The neighbourhood or
   street remains visible through the centre instead of leaving a floating board. */
.game-screen .stall-window-frame{position:absolute;z-index:6;inset:0;pointer-events:none;filter:drop-shadow(0 4px 5px #2e140c55)}
.stall-window-frame i{position:absolute;display:block}
.stall-window-frame .stall-awning{left:0;right:0;top:76px;height:47px;border-top:6px solid #532719;border-bottom:7px solid #5a2a18;background:repeating-linear-gradient(90deg,#c8723f 0 52px,#f0bd72 52px 104px);box-shadow:inset 0 6px #ffe0a3,0 8px 13px #2e130d66}
.stall-window-frame .stall-awning::after{content:"";position:absolute;left:0;right:0;bottom:-16px;height:17px;background:radial-gradient(circle at 26px -2px,#c8723f 26px,transparent 27px) 0 0/104px 20px repeat-x,radial-gradient(circle at 78px -2px,#f0bd72 26px,transparent 27px) 0 0/104px 20px repeat-x}
.stall-window-frame .stall-post{top:102px;bottom:315px;width:45px;border:5px solid #4f2819;background:linear-gradient(90deg,#6b341f,#b26d3d 40%,#6c361f 78%,#472317);box-shadow:inset 5px 0 #d5985e55}
.stall-window-frame .stall-post.left{left:0;border-radius:0 16px 16px 0}.stall-window-frame .stall-post.right{right:0;border-radius:16px 0 0 16px}
.stall-window-frame .stall-sill{left:30px;right:30px;top:408px;height:57px;border:6px solid #4d2618;border-radius:15px;background:linear-gradient(#df9a59,#a35c31 48%,#6b361f);box-shadow:inset 0 5px #f3bd79,0 9px 0 #3c1c12}

/* Gameplay HUD and controls are code-native fixed rectangles. This removes the
   last text-on-bitmap collisions while preserving the warm painted palette. */
.game-screen .revenue-pill{left:10px;top:9px;width:124px;height:57px;padding:8px 10px 5px 46px!important;border:2px solid #6a3a25!important;border-radius:17px!important;background:linear-gradient(135deg,#3a241ddd,#201713e8)!important;box-shadow:0 4px 10px #1b0b0788!important;color:#fff8db!important}
.game-screen .revenue-pill span{font-size:11px}.game-screen .revenue-pill strong{font-size:24px}.game-screen .revenue-pill small{display:none}
.game-screen .revenue-pill::before{content:"钱";position:absolute;left:8px;top:10px;width:34px;height:34px;display:grid;place-items:center;border:3px solid #a6601f;border-radius:50%;background:#ffd34a;color:#6a3b15;font-size:11px;font-weight:950}
.game-screen .stage-box{left:140px;right:auto;top:7px;width:242px;height:91px;padding:8px 12px!important;border:3px solid #6b3922!important;border-radius:15px!important;background:linear-gradient(#fff6d8f2,#e6b86fe8)!important;box-shadow:inset 0 2px #fff9e4,0 4px 8px #2b120b66!important}
.game-screen .stage-title{position:relative;left:auto;right:auto;top:auto;height:35px;display:grid;place-items:center;font-size:15px;line-height:1.05;white-space:normal;text-align:center}
.game-screen .goal-line{position:relative;left:auto;right:auto;top:auto;height:20px;margin:0 4px;font-size:10px;line-height:1;display:flex;justify-content:space-between}
.game-screen .stage-box .progress-track{position:relative;left:auto;right:auto;bottom:auto;height:12px;margin:3px 4px 0;border:2px solid #4b352a;background:#303735}
.game-screen .timer-pill{right:48px;top:9px;width:82px;height:57px;padding:13px 5px 4px!important;border:2px solid #65331f!important;border-radius:17px!important;background:linear-gradient(#3b2720e8,#211713ed)!important;box-shadow:0 4px 10px #1b0b0788!important;color:#fff8df!important}
.game-screen .timer-pill strong{font-size:22px;white-space:nowrap}.game-screen .pause-icon{right:8px;top:13px;width:38px;height:47px}

.game-screen .scene{top:79px;height:357px}
.game-screen .location-sign{left:8px;top:58px;width:48px;height:222px;padding:18px 8px 7px;font-size:19px;border:2px solid #683823;border-radius:8px;background:linear-gradient(#fff0ceeb,#e6bd7cdd);box-shadow:0 4px 8px #2a110b66}
.game-screen .diner-info{left:161px;right:auto;top:67px;width:198px;height:72px;padding:8px 13px 6px;display:grid;grid-template-rows:22px 12px 15px;align-content:center;border:2px solid #552b21!important;border-radius:17px!important;background:linear-gradient(#fffdf4f5,#f1e8d7f5)!important;box-shadow:0 5px 12px #2b110b66!important}
.game-screen .diner-line{font-size:13px}.game-screen .diner-line small{font-size:9px}.game-screen .diner-info .fu-track{height:10px;margin:1px 0;background:#f3d2cc}.game-screen .diner-info>small{font-size:9px}
.game-screen .speech{right:94px;top:146px;max-width:265px;padding:10px 16px 13px;border:2px solid #512a1c;border-radius:18px;background:linear-gradient(#ffe875,#f4bd3f)!important;box-shadow:0 4px 8px #2b110b55!important;font-size:12px;line-height:1.2}
.game-screen .diner-wrap{left:56px;right:75px;top:140px;bottom:-68px}.game-screen .diner-sprite{width:390px;max-height:100%}
.game-screen .right-rail{right:5px;top:53px;width:70px;height:296px}
.game-screen .queue{height:168px;padding:9px 10px 11px;gap:5px;background:linear-gradient(#6e3c25e8,#3c2118e8)!important;border:3px solid #4c2618;border-radius:14px;filter:none}
.game-screen .queue-face{border:2px solid #f2d08d;border-radius:50%;background-size:800% 800%;background-repeat:no-repeat;background-color:#f8d89d}
.game-screen .tool-button{height:59px}.game-screen .tool-button:nth-of-type(1){top:173px}.game-screen .tool-button:nth-of-type(2){top:235px}.game-screen .tool-button span{font-size:9px}

.game-screen .counter{left:62px;right:auto;top:431px;width:396px;height:171px;padding:40px 20px 15px;background:url("../assets/approved/ui/components/UI-PREPARATION-COUNTER-BLANK.png") center/100% 100% no-repeat!important}
.game-screen .counter-title{left:31px;right:27px;top:25px;height:22px;font-size:12px}.game-screen .prep-list{height:109px;margin:0;gap:18px}.game-screen .prep-empty{font-size:13px}.game-screen .prep-ingredient b{font-size:12px}.boost-dock{left:-54px;top:17px;width:48px;gap:10px}.boost-dock button span{font-size:8px}

.game-screen .hand-area{top:612px;height:312px;bottom:auto;background:linear-gradient(#8a4d2aee,#4c2819)}
.game-screen .hand{left:8px;right:8px;top:9px;height:164px;gap:5px}
.game-screen .card{height:164px;padding:8px 6px 7px;border:3px solid #6a3b25;border-radius:14px;background:linear-gradient(#fffdf4,#f5dfb5)!important;box-shadow:inset 0 2px #fff,0 5px 0 #3d1c12!important;filter:none}
.game-screen .card img{height:92px;transform:none}.game-screen .card-name{margin-top:5px;font-size:13px;line-height:1.1}.game-screen .card-stats{height:26px;margin-top:7px;display:grid;grid-template-columns:1fr 1fr;gap:4px;align-items:center}.game-screen .card small,.game-screen .card em{font-size:9px;line-height:1.05}.game-screen .card small{color:#6f5544}.game-screen .card em{color:#c4462c;font-weight:900}
.game-screen .bottom-actions{left:9px;right:9px;top:187px;height:88px;grid-template-columns:91px 224px 82px 72px;gap:8px}
.game-screen .small-action,.game-screen .primary.cook{height:76px!important;min-height:76px;padding:0!important;border:3px solid #4d2518!important;border-radius:16px!important;background:linear-gradient(#aa6b47,#79432d)!important;box-shadow:inset 0 2px #d9a37c,0 5px 0 #2c130d!important;filter:none!important;color:#fff9e9!important;font-size:17px!important;text-shadow:0 2px #3e1b13!important}
.game-screen .recipe-action{padding:0!important;color:#fff9e9!important}.game-screen .primary.cook{background:linear-gradient(#ff7150,#dc3c29)!important;font-size:29px!important}.game-screen .settings-action{font-size:0!important}.game-screen .settings-action::before{content:"⚙";font-size:31px}.game-screen .settings-action::after{display:none}

/* 2026-10-08 alignment and feedback acceptance pass. */
.game-screen .stall-window-frame{background:url("../assets/approved/ui/components/UI-STALL-FOREGROUND-CUTOUT-v01.png?v=54") center/100% 100% no-repeat;filter:none}
.stall-window-frame .stall-awning,.stall-window-frame .stall-post,.stall-window-frame .stall-sill{display:none!important}

.story-portrait.actor-huoshao img{transform:scale(.95) translateY(2%)!important;transform-origin:left bottom}
.story-portrait.actor-mocha img,.story-portrait.actor-apiao img{transform:scale(1.2) translateY(3%)!important;transform-origin:left bottom}

.dish-reveal-page{gap:9px;padding:15px 16px 14px;max-height:96%}
.dish-reveal-reaction{min-height:66px;padding:10px 14px;gap:5px;line-height:1.35}
.dish-reveal-reaction b{line-height:1.2}
.dish-reveal-reaction span{line-height:1.38}
.dish-reveal-clue{min-height:76px;padding:10px 14px;gap:5px;line-height:1.32}
.dish-reveal-clue small,.dish-reveal-clue b,.dish-reveal-clue em{line-height:1.32}
.dish-reveal-accept{margin-top:1px}

.plain-inner-page .character-menu{gap:13px}
.plain-inner-page .character-menu article{display:grid;grid-template-columns:88px 1fr;min-height:128px;gap:14px;padding:14px 17px;align-items:center;border:2px solid #d19a58;border-radius:18px;background:linear-gradient(145deg,#fffdf4,#f9e8c5);box-shadow:inset 0 2px #fff,0 4px 9px #6937191f}
.plain-inner-page .character-menu img{width:88px;height:96px;object-fit:contain}
.plain-inner-page .character-menu b{font-size:18px}
.plain-inner-page .character-menu p{margin:7px 0 0;font-size:13px;line-height:1.55}
.plain-inner-page .bag-menu{gap:12px}
.plain-inner-page .bag-menu article{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:start;padding:13px 15px;border:2px solid #d19a58;border-radius:16px;background:linear-gradient(145deg,#fffdf4,#f9e8c5);box-shadow:inset 0 2px #fff,0 4px 9px #6937191f}
.plain-inner-page .bag-menu article>b{font-size:15px;white-space:normal}
.plain-inner-page .bag-menu p{margin:0;font-size:13px;line-height:1.55}
.plain-inner-page .bag-menu .primary{display:block;width:100%;min-height:42px;margin-top:9px;border:2px solid #65331f;border-radius:13px;background:linear-gradient(#ff7952,#e44931);box-shadow:0 4px 0 #6a2d1e;color:#fffaf0;font-size:15px;font-weight:950}
.plain-inner-page .bag-clues>div{min-width:0}
.plain-inner-page .bag-clue{padding-bottom:12px;margin-bottom:12px}

.recipe-pagination span{height:100%;display:grid;place-items:center;padding:0 7px;border:2px solid #8a4a2c;border-radius:12px;background:#fff2c8;box-shadow:inset 0 2px #fff,0 3px 0 #6b351f38;white-space:nowrap}
.recipe-page-done{display:grid;place-items:center;border:2px solid #8a4a2c!important;border-radius:13px;background:#fff2c8!important;box-shadow:inset 0 2px #fff,0 3px 0 #6b351f38;color:#66331e!important;text-shadow:none!important;font-weight:950}

.game-screen .fu-fill{transition:width .68s cubic-bezier(.2,.8,.2,1)}
.game-screen .diner-sprite.hit{animation:serveHit .72s cubic-bezier(.2,.8,.2,1);will-change:transform,filter}
@keyframes serveHit{
  0%{transform:translateX(0) scale(1);filter:grayscale(0) brightness(1) drop-shadow(0 11px 7px #2d160c55)}
  20%{transform:translateX(-14px) rotate(-3deg) scale(1.04);filter:grayscale(1) brightness(1.55) drop-shadow(0 0 14px #fff)}
  48%{transform:translateX(10px) rotate(2deg) scale(.97);filter:grayscale(.55) brightness(1.15) drop-shadow(0 11px 7px #2d160c55)}
  100%{transform:translateX(0) scale(1);filter:grayscale(0) brightness(1) drop-shadow(0 11px 7px #2d160c55)}
}
.game-screen .revenue-pill.gain{animation:revenueGain .72s ease}
@keyframes revenueGain{35%{transform:scale(1.13);box-shadow:0 0 24px #ffd861!important;color:#fff37b!important}100%{transform:scale(1)}}
.serve-feedback{position:absolute;z-index:29;inset:0;pointer-events:none;font-weight:950;text-shadow:0 2px 0 #32150d,0 0 8px #fff}
.serve-feedback b,.serve-feedback span{position:absolute;display:block;animation:serveFloat .86s ease-out forwards}
.serve-feedback .serve-fu{left:218px;top:138px;color:#ff5b4e;font-size:25px}
.serve-feedback .serve-money{left:42px;top:74px;color:#ffe05a;font-size:21px;animation-delay:.06s}
.serve-feedback span{left:50%;top:326px;transform:translateX(-50%);padding:7px 14px;border-radius:999px;background:#3b1d14d9;color:#fff6cf;font-size:14px;white-space:nowrap;animation-delay:.1s}
@keyframes serveFloat{0%{opacity:0;translate:0 14px;scale:.8}22%{opacity:1;translate:0 0;scale:1.08}100%{opacity:0;translate:0 -32px;scale:1}}

.game-screen .speech{left:72px;right:auto;top:232px;width:190px;max-width:190px;min-width:0;padding:11px 14px 14px;transform:rotate(-1deg);text-align:left}
.game-screen .speech strong,.game-screen .speech em{display:block}
.game-screen .speech strong{font-size:12px;line-height:1.28}
.game-screen .speech em{margin-top:4px;color:#bc3228;font-size:10px;font-style:normal;font-weight:950;letter-spacing:.05em}

.game-screen .right-rail{right:7px;width:66px}
.game-screen .queue{padding:10px 8px 12px}
.game-screen .queue-face{background-size:cover;background-position:center 12%;background-color:#f8d89d;background-repeat:no-repeat;background-clip:padding-box}
.game-screen>.right-rail{top:132px;z-index:12}
.game-screen .tool-button{left:3px!important;width:58px!important;height:58px!important;border:3px solid #7a421f!important;border-radius:50%!important;background:radial-gradient(circle at 42% 35%,#fff8d6 0 38%,#f1bd58 40% 70%,#a55b29 72% 100%)!important;box-shadow:inset 0 2px #fff,0 0 11px #ffd45c,0 4px 0 #4c2417!important;overflow:visible}
.game-screen .tool-button:nth-of-type(1){top:177px}.game-screen .tool-button:nth-of-type(2){top:244px}
.game-screen .tool-button img{width:48px;height:42px;margin:3px auto 0;object-fit:contain}
.game-screen .tool-button span{left:-7px;right:-7px;bottom:-10px;padding:2px 3px;border-radius:8px;background:#5b2c1ed9;color:#fff8df;font-size:9px;white-space:nowrap}

/* 2026-10-08 final visual alignment pass. */
.recipe-page{width:100%;height:100%;max-height:none;background:repeating-linear-gradient(0deg,#5c2d1c 0 3px,#704025 3px 45px,#63341f 45px 48px);box-shadow:inset 0 0 0 8px #3d1b12,inset 0 0 0 13px #a26739;filter:none}
.recipe-page-bg{display:none}
.recipe-page::before{left:5%;right:5%;top:13.3%;bottom:1.8%;border:4px solid #754026;border-radius:22px;background:linear-gradient(145deg,#fff9e7,#f3dfb7);box-shadow:inset 0 0 0 3px #e1b979,inset 0 2px #fff,0 8px 0 #32150e70}
.recipe-page-back{left:2.5%;top:2%;width:65px;height:54px;border:3px solid #4d2618;border-radius:16px;background:linear-gradient(#a86942,#714027);box-shadow:inset 0 2px #dca476,0 5px 0 #32150e;color:#fff8e8;font-size:0}
.recipe-page-back::before{content:"←";display:grid;place-items:center;width:100%;height:100%;font-size:34px;font-weight:950;line-height:1}
.recipe-page>h2{left:150px;right:150px;top:16px;height:54px;display:grid;place-items:center;margin:0;border:3px solid #704024;border-radius:16px;background:linear-gradient(#fff8dc,#edc47f);box-shadow:inset 0 2px #fff,0 5px 0 #3a190f55;font-size:25px;line-height:1}
.recipe-page-progress{right:14px;top:17px;width:112px;height:52px;box-sizing:border-box;padding:4px 7px;border:3px solid #704024;border-radius:15px;background:linear-gradient(#fffdf2,#f3ddb1);box-shadow:inset 0 2px #fff,0 5px 0 #3a190f55;color:#65351f}
.recipe-page-progress b{font-size:14px;line-height:1}.recipe-page-progress small{font-size:9px;line-height:1.1}
.recipe-pagination{left:7%;right:7%;top:8.2%;height:5.2%}
.recipe-tile-grid{left:8%;right:8%;top:15%;height:76%}

.settings-functional-panel header button{padding:0;font-size:0;line-height:1}
.settings-functional-panel header button::before{content:"×";display:grid;place-items:center;width:100%;height:100%;font-size:31px;line-height:.8;transform:translateY(-2px)}

.level-list .story-route-node{margin-left:0;width:100%}

.game-screen .revenue-pill{left:8px;top:8px;width:132px;height:58px;padding:8px 9px 5px 60px!important;border:0!important;border-radius:0!important;background:url("../assets/approved/ui/components/UI-HUD-REVENUE-BLANK.png") center/100% 100% no-repeat!important;box-shadow:none!important}
.game-screen .revenue-pill::before{display:none}
.game-screen .revenue-pill span{font-size:11px;line-height:1.05}.game-screen .revenue-pill strong{margin-top:2px;font-size:23px;line-height:1}
.game-screen .goal-line{font-size:9px;gap:8px}.game-screen .goal-line>span{white-space:nowrap}

.game-screen .speech strong{font-size:10px;line-height:1.3;font-weight:800;color:#4f2a1c}
.game-screen .speech em{margin-top:5px;font-size:14px;line-height:1.1;color:#c33227}

.story-portrait.actor-huoshao{left:4%}
.story-portrait.actor-huoshao img{transform:scale(1.05) translateY(2%)!important;transform-origin:left bottom}

.game-screen .stall-window-frame{background:url("../assets/approved/ui/components/UI-STALL-FULL-FRAME-v02.png?v=56") center/100% 100% no-repeat;filter:none}
.game-screen .stall-window-frame::after{content:attr(data-location);position:absolute;left:13px;top:111px;width:59px;height:205px;display:grid;place-items:center;padding:12px 18px;box-sizing:border-box;color:#63351f;font-family:"STKaiti","KaiTi",serif;font-size:18px;font-weight:950;line-height:1.05;letter-spacing:.08em;writing-mode:vertical-rl;text-align:center;text-shadow:0 1px #fff8df}
.game-screen .location-sign{display:none}
.game-screen .counter{background:transparent!important;box-shadow:none!important;filter:none!important}

/* 2026-10-08 mobile readability pass: preserve hierarchy by reflowing instead
   of shrinking copy to make it fit. */
.home-artboard .home-topbar{height:50px;grid-template-columns:1.42fr .8fr .76fr;gap:6px}
.home-artboard .profile-chip,.home-artboard .currency-chip{height:47px;border-width:3px;border-radius:16px}
.home-artboard .profile-chip{grid-template-columns:49px 1fr}
.home-artboard .player-avatar{width:50px;height:50px;margin:-3px 0 -1px -3px}
.home-artboard .player-avatar img{width:72px;height:72px;margin:-5px 0 0 -12px}
.home-artboard .player-copy{padding-left:4px}
.home-artboard .player-copy b{font-size:14px;line-height:1.05}
.home-artboard .player-copy small{font-size:10px;line-height:1.1}
.home-artboard .player-copy i{height:7px;margin-top:3px}
.home-artboard .currency-chip{grid-template-columns:28px 1fr 17px;gap:3px;padding:0 5px}
.home-artboard .currency-chip>b{font-size:17px}
.home-artboard .currency-chip>span{width:17px;height:17px;font-size:14px}
.home-artboard .coin-token{width:27px;height:27px;font-size:10px}
.home-artboard .gem-token{width:21px;height:25px}

.chapter-card{padding:14px}.chapter-list{gap:15px}
.chapter-heading b{font-size:21px}.chapter-heading small{font-size:13px;line-height:1.35;margin-top:4px}
.chapter-heading>span{padding:6px 9px;font-size:12px}
.level-list{gap:9px;margin-top:12px}.level-list button{grid-template-columns:54px 1fr auto;gap:9px;padding:11px 10px}
.level-list button strong{font-size:18px}.level-list button span{font-size:15px}.level-list button em{font-size:11px}
.level-list .story-route-node{grid-template-columns:92px 1fr auto;padding:10px 11px}
.level-list .story-route-node strong{font-size:15px}.level-list .story-route-node span{font-size:14px}.level-list .story-route-node em{font-size:11px}

.story-header{left:auto;right:4%;grid-template-columns:auto auto;gap:10px;font-size:17px}
.story-header>span{display:none}
.story-header button{padding:9px 14px;border-width:2px;font-size:17px}
.story-dialogue p{font-size:25px;line-height:1.58}
.dialogue-box{min-height:185px;padding:48px 23px 22px}
.dialogue-text{font-size:23px;line-height:1.58}

.plain-inner-page .inner-page-scroll{font-size:17px;line-height:1.55}
.plain-inner-page .feature-host{height:146px;gap:10px;padding:5px 10px;overflow:visible}
.plain-inner-page .feature-host img{width:154px;height:154px;flex:0 0 154px;transform:scale(1.04)}
.plain-inner-page .feature-host p{font-size:17px;line-height:1.55}
.plain-inner-page .feature-host p,.plain-inner-page .economy-intro>div{min-width:0}
.plain-inner-page .upgrade-grid{gap:10px;margin-top:13px}
.plain-inner-page .upgrade-grid article{grid-template-columns:42px 1fr auto;gap:9px;padding:10px}
.plain-inner-page .upgrade-grid i{font-size:31px}.plain-inner-page .upgrade-grid b{font-size:16px}
.plain-inner-page .upgrade-grid small{font-size:13px;line-height:1.35}.plain-inner-page .upgrade-grid button{padding:8px;font-size:13px}
.plain-inner-page .map-review-tabs button{padding:11px;font-size:16px}
.plain-inner-page .map-grid{gap:11px;margin-top:12px}.plain-inner-page .map-grid article{height:112px;padding:12px}
.plain-inner-page .map-grid article b{font-size:18px}.plain-inner-page .map-grid article small{font-size:14px;line-height:1.35}
.plain-inner-page .map-grid article>span{padding:5px 8px;font-size:12px}
.plain-inner-page .story-review-list>p{font-size:15px}.plain-inner-page .story-review-card{padding:12px;font-size:15px}
.plain-inner-page .story-review-card small{font-size:13px}.plain-inner-page .story-review-card span{font-size:13px}

.plain-inner-page .economy-intro{grid-template-columns:62px 1fr;gap:12px;padding:13px}
.plain-inner-page .economy-intro>.coin-token{width:58px;height:58px;font-size:18px}
.plain-inner-page .economy-intro>.gem-token{width:43px;height:52px;margin-left:9px}
.plain-inner-page .economy-intro b{font-size:22px}.plain-inner-page .economy-intro p{font-size:14px;line-height:1.5}
.plain-inner-page .economy-rules{gap:10px;margin-top:12px}.plain-inner-page .economy-rules article{padding:12px}
.plain-inner-page .economy-rules b{font-size:16px}.plain-inner-page .economy-rules span{font-size:14px;line-height:1.45}
.plain-inner-page .shop-heading{margin:14px 0 8px;font-size:19px}
.plain-inner-page .boost-shop{gap:9px}.plain-inner-page .boost-shop article{grid-template-columns:38px 1fr auto;gap:8px;padding:10px}
.plain-inner-page .boost-shop article>i{width:36px;height:36px;font-size:15px}
.plain-inner-page .boost-shop b{font-size:15px}.plain-inner-page .boost-shop small{font-size:12px;line-height:1.35}
.plain-inner-page .boost-shop button{padding:8px;font-size:12px}
.plain-inner-page .recharge-grid{gap:10px}.plain-inner-page .recharge-grid button{padding:12px}
.plain-inner-page .recharge-grid b{font-size:17px}.plain-inner-page .recharge-grid span{font-size:13px;line-height:1.35}
.plain-inner-page .sdk-note{margin:9px 3px;font-size:13px;line-height:1.5}.plain-inner-page .cosmetic-note{padding:12px;font-size:14px;line-height:1.45}

.recipe-page>h2{font-size:30px}
.recipe-page-progress{padding:5px 7px}.recipe-page-progress b{font-size:18px}.recipe-page-progress small{font-size:13px}
.recipe-pagination button{font-size:18px}.recipe-pagination span{font-size:14px}
.recipe-tile{justify-content:flex-start;padding:5% 5% 2%}.recipe-tile img,.recipe-card-icons{height:51%}
.recipe-tile b{margin-top:4%;font-size:19px;line-height:1.15;white-space:normal;text-align:center}
.recipe-tile small{margin-top:4px;font-size:14px;line-height:1.2;white-space:normal;text-align:center}
.recipe-tile.locked i{height:54%}.recipe-tile.locked b{font-size:17px}

/* Clickable map routes and the shared locked-route notice. */
.map-grid .map-card{width:100%;height:112px;position:relative;overflow:hidden;display:flex;align-items:end;justify-content:space-between;padding:12px;border:3px solid #704027;border-radius:14px;background-size:cover;background-position:center;color:#fff;text-align:left;text-shadow:0 2px #2c160d;box-shadow:0 5px 10px #3a1c1240;cursor:pointer}
.map-grid .map-card::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#25120ccc)}
.map-grid .map-card>*{position:relative}.map-grid .map-card b,.map-grid .map-card small{display:block}.map-grid .map-card b{font-size:18px}.map-grid .map-card small{font-size:14px;line-height:1.35}.map-grid .map-card.locked{filter:grayscale(.75)}.map-grid .map-card>span{padding:5px 8px;border-radius:9px;background:#e85534;font-size:12px;font-weight:900}
.level-list button[aria-disabled="true"],.story-review-card[aria-disabled="true"]{filter:grayscale(.7);opacity:.57;cursor:pointer}
.locked-notice-backdrop{z-index:110;padding:38px;background:#28130cb5;backdrop-filter:blur(6px)}
.locked-notice{position:relative;width:360px;padding:32px 30px 28px;display:grid;justify-items:center;gap:9px;box-sizing:border-box;border:5px solid #5b2d1c;border-radius:25px;background:linear-gradient(155deg,#fffaf0,#f2d69f);box-shadow:inset 0 0 0 3px #e0a65f,0 18px 45px #160907aa;color:#5c2f1d;text-align:center}
.locked-notice>i{width:68px;height:68px;display:grid;place-items:center;border:4px solid #6b3b22;border-radius:20px;background:linear-gradient(#fff1b2,#e6a541);box-shadow:inset 0 3px #fff8d8,0 5px 0 #7a3d22;font-size:31px;font-style:normal}
.locked-notice h2{margin:7px 0 0;font-size:25px}.locked-notice p{margin:0 0 8px;font-size:17px;font-weight:850}
.locked-notice-x{position:absolute;right:11px;top:10px;width:42px;height:42px;padding:0;border:3px solid #4d2518;border-radius:50%;background:#7a432d;color:#fff;font-size:27px;font-weight:950;line-height:1}
.locked-notice-ok{width:100%;min-height:54px;border:3px solid #5b2d1c;border-radius:15px;background:linear-gradient(#ff7853,#e34730);color:#fff9ec;font-size:17px;font-weight:950;text-shadow:0 2px #8f2c20}

/* Character art is a layer behind the live dialogue frame, so the frame masks
   every portrait at the same baseline instead of exposing its lower edge. */
.dialogue-stage{position:absolute;z-index:2;left:4%;right:4%;bottom:5%}
.dialogue-stage>.dialogue-portrait{z-index:1;left:-24px;top:auto;bottom:calc(100% - 12px)}
.dialogue-stage>.dialogue-box{position:relative;z-index:2;left:auto;right:auto;bottom:auto;min-height:185px;box-sizing:border-box}

/* Clues now arrive as a compact progressive popup instead of a full-screen
   illustrated cinematic. */
.clue-notice-backdrop{z-index:105;padding:38px;background:#28130cc7;backdrop-filter:blur(7px);animation:clueBackdropIn .24s ease both}
.clue-notice{position:relative;width:390px;padding:29px 32px 30px;display:grid;justify-items:center;gap:10px;box-sizing:border-box;border:5px solid #5b2d1c;border-radius:26px;background:linear-gradient(155deg,#fffaf0,#f2d69f);box-shadow:inset 0 0 0 3px #e0a65f,0 18px 45px #160907aa;color:#5c2f1d;text-align:center;animation:clueCardIn .34s cubic-bezier(.2,.8,.2,1) both}
.clue-notice>small{color:#bd552f;font-size:13px;font-weight:950;letter-spacing:.15em}.clue-notice>i{width:66px;height:66px;display:grid;place-items:center;border:4px solid #6b3b22;border-radius:20px;background:linear-gradient(#fff1b2,#e6a541);box-shadow:inset 0 3px #fff8d8,0 5px 0 #7a3d22;font-family:"STKaiti","KaiTi",serif;font-size:32px;font-style:normal;font-weight:950}.clue-notice h2{margin:5px 0 0;font-size:27px}.clue-notice p{margin:0 0 9px;font-size:17px;line-height:1.55;font-weight:760}.clue-notice .primary{width:100%;min-height:57px;border:3px solid #5b2d1c;border-radius:16px;background:linear-gradient(#ff7853,#e34730);color:#fff9ec;font-size:18px;font-weight:950;text-shadow:0 2px #8f2c20}
@keyframes clueBackdropIn{from{opacity:0}to{opacity:1}}@keyframes clueCardIn{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
.recipe-page-done{font-size:18px}

.game-screen .revenue-pill span{font-size:14px}.game-screen .revenue-pill strong{font-size:27px}
.game-screen .stage-title{font-size:17px}.game-screen .goal-line{font-size:12px}
.game-screen .diner-info{left:150px;top:25px;width:220px;height:62px;grid-template-rows:22px 11px 15px;padding:6px 14px 4px;border-width:1px!important;background:linear-gradient(#fffdf4dc,#f1e8d7cf)!important;box-shadow:0 3px 8px #2b110b3d!important}
.game-screen .diner-line{font-size:16px}.game-screen .diner-line small{font-size:12px}
.game-screen .diner-info>small{font-size:12px}.game-screen .diner-info .fu-track{height:11px}
.game-screen .diner-wrap{left:56px;right:75px;top:140px;bottom:-68px}
.game-screen .diner-sprite{width:290px;max-height:none;aspect-ratio:1154/1363;background-size:300% 300%}
.game-screen .speech{top:241px;width:220px;max-width:220px;padding:12px 15px 15px}
.game-screen .speech strong{font-size:14px;line-height:1.35}.game-screen .speech em{font-size:16px}
.game-screen .tool-button span{left:-9px;right:-9px;bottom:-12px;padding:3px;font-size:11px}
.game-screen .counter-title{font-size:15px}.game-screen .prep-empty{font-size:15px}.game-screen .prep-ingredient b{font-size:14px}
.boost-dock{top:-5px;gap:22px}.boost-dock button span{top:98%;font-size:10px;line-height:1.1}

.game-screen .card{padding:8px 6px 7px}.game-screen .card img{height:82px;transform:none}
.game-screen .card-name{margin-top:3px;font-size:15px;line-height:1.15}
.game-screen .card-stats{height:auto;margin-top:5px;display:grid;grid-template-columns:1fr;gap:2px;white-space:normal}
.game-screen .card small,.game-screen .card em{display:block;font-size:12px;line-height:1.15}

.dish-reveal-page{gap:8px;padding:17px 17px 15px}
.dish-reveal-scroll{gap:10px}.dish-reveal-label{font-size:14px}.dish-reveal-scroll>h2{font-size:30px}
.dish-reveal-ingredient{width:70px}.dish-reveal-ingredient img{height:43px}.dish-reveal-ingredient b{font-size:13px}
.dish-reveal-score{min-height:66px}.dish-reveal-score small{font-size:14px}.dish-reveal-score strong{font-size:23px}
.dish-reveal-reaction{min-height:82px;padding:12px 14px}.dish-reveal-reaction b{font-size:18px}.dish-reveal-reaction span{font-size:16px}
.dish-reveal-clue{min-height:98px;padding:12px 14px;gap:6px}.dish-reveal-clue small{font-size:16px}.dish-reveal-clue b{font-size:18px}.dish-reveal-clue em{display:block;font-size:15px;font-style:normal}
.dish-reveal-accept{height:44px;min-height:44px;flex-basis:44px;font-size:16px}

/* Numeric goals can be complete while a stage-specific action is still
   missing. Keep the player in the run and name the remaining action. */
.objective-reminder-backdrop{z-index:108;padding:38px;background:#28130cc7;backdrop-filter:blur(7px)}
.objective-reminder{position:relative;width:390px;padding:28px 30px 30px;display:grid;justify-items:center;gap:9px;box-sizing:border-box;border:5px solid #5b2d1c;border-radius:26px;background:linear-gradient(155deg,#fffaf0,#f2d69f);box-shadow:inset 0 0 0 3px #e0a65f,0 18px 45px #160907aa;color:#5c2f1d;text-align:center}
.objective-reminder>i{width:62px;height:62px;display:grid;place-items:center;border:4px solid #6b3b22;border-radius:20px;background:linear-gradient(#fff1b2,#e6a541);box-shadow:inset 0 3px #fff8d8,0 5px 0 #7a3d22;font-size:34px;font-style:normal;font-weight:950}
.objective-reminder>small{color:#bd552f;font-size:13px;font-weight:950;letter-spacing:.12em}.objective-reminder h2{margin:2px 0 0;font-size:25px}.objective-reminder p{margin:0;font-size:16px;font-weight:800}
.objective-reminder ul{width:100%;margin:4px 0 8px;padding:0;display:grid;gap:8px;list-style:none;text-align:left}
.objective-reminder li{padding:10px 12px 10px 37px;border:2px solid #d9a35d;border-radius:13px;background:#fff6d9;font-size:15px;font-weight:900;line-height:1.35}
.objective-reminder li::before{content:"○";margin-left:-24px;margin-right:9px;color:#d65331;font-weight:950}
.objective-reminder .primary{width:100%;min-height:52px;border:3px solid #5b2d1c;border-radius:15px;background:linear-gradient(#ff7853,#e34730);color:#fff9ec;font-size:17px;font-weight:950;text-shadow:0 2px #8f2c20}

.pause-art-action{left:25.5%;width:55%;padding:0;display:grid;place-items:center;font-size:20px;line-height:1;transform:translateY(2px)}
.pause-continue{top:28.5%}.pause-retry{top:45.3%}.pause-home{top:62.1%}

/* 2026-10-08 v63: fixed gameplay-safe composition. Characters are fitted
   inside the visible service window instead of being pushed under the HUD. */
.game-screen .diner-wrap{left:84px;right:98px;top:118px;bottom:-42px}
.game-screen .diner-sprite{position:relative;top:var(--diner-offset-y,0);width:var(--diner-width,245px);height:300px;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center bottom;background:none}
.boost-dock{top:-90px;gap:24px}
.boost-dock button span{top:100%;font-size:10px;line-height:1.08}
.preference-icons{margin-top:9px}
.game-screen .preference-popover{width:248px;padding:14px}
.game-screen .preference-popover h3{margin:3px 24px 9px 0;font-size:18px}
.game-screen .preference-popover small{font-size:12px}.game-screen .taste-tags{gap:6px;font-size:13px}.game-screen .taste-tags b{min-width:36px}.game-screen .taste-tags span{padding:4px 7px}
.game-screen .preference-icons{gap:7px}.game-screen .preference-icons div{width:61px;padding:5px}.game-screen .preference-icons img{width:51px;height:43px}.game-screen .preference-icons span{font-size:11px}

/* Pause is deliberately rebuilt as live UI: no text is baked into or laid
   over a fixed artwork, so alignment remains exact on the phone canvas. */
.pause-functional-backdrop{padding:22px;background:#24110bd1;backdrop-filter:blur(9px)}
.pause-functional-panel{position:relative;width:410px;padding:78px 42px 36px;display:grid;gap:18px;box-sizing:border-box;border:5px solid #57301e;border-radius:28px;background:linear-gradient(165deg,#fff9e7,#f4d9a3 72%,#dca65e);box-shadow:inset 0 0 0 4px #e4ae66,inset 0 8px #fff7d8,0 18px 45px #150704aa}
.pause-functional-panel::before{content:"";position:absolute;left:42px;right:42px;top:19px;height:58px;border:3px solid #6b3923;border-radius:18px;background:linear-gradient(#fff3ce,#e6b66d);box-shadow:inset 0 2px #fff,0 5px 0 #6a311c42}
.pause-functional-panel header h2{position:absolute;left:75px;right:75px;top:31px;z-index:2;margin:0;text-align:center;color:#5c2e1d;font-family:"STKaiti","KaiTi",serif;font-size:28px;line-height:1}
.pause-functional-panel header button,.boost-modal-x{position:absolute;right:15px;top:13px;z-index:3;width:52px;height:52px;padding:0;border:3px solid #4d2518;border-radius:50%;background:linear-gradient(#9c613d,#6f3a25);box-shadow:inset 0 2px #dba27a,0 4px 0 #32150e;color:#fffaf0;font-size:30px;font-weight:950;line-height:1;cursor:pointer}
.pause-functional-action{height:78px;padding:7px 24px;display:grid;grid-template-columns:62px 1fr;align-items:center;border:4px solid #5a2b1b;border-radius:22px;background:linear-gradient(#efb24e,#d77b27);box-shadow:inset 0 3px #ffe3a0,0 6px 0 #6a311d;color:#5b2a18;font-size:23px;font-weight:950;cursor:pointer}
.pause-functional-action.is-primary{background:linear-gradient(#ff7655,#e7432f);color:#fff8ec;text-shadow:0 2px #8e2c1d}
.pause-functional-action i{font-size:38px;font-style:normal}.pause-functional-action span{text-align:center}
.pause-functional-panel footer{display:flex;justify-content:center;gap:24px;padding-top:4px;border-top:2px solid #d5a765}
.pause-functional-round{width:68px;height:68px;border:4px solid #5a2b1b;border-radius:50%;background:linear-gradient(#ffd365,#efa534);box-shadow:inset 0 3px #fff2b9,0 5px 0 #6a311d;font-size:30px;cursor:pointer}.pause-functional-round.is-muted{filter:grayscale(1);opacity:.55}

/* Two-step convenience-item flow. */
.boost-modal-backdrop{z-index:85;padding:22px;background:#25130dc9;backdrop-filter:blur(7px)}
.boost-modal{position:relative;width:410px;padding:38px 36px 32px;display:grid;justify-items:center;gap:12px;box-sizing:border-box;border:5px solid #5b2d1c;border-radius:26px;background:linear-gradient(155deg,#fffaf0,#f2d69f);box-shadow:inset 0 0 0 3px #e0a65f,0 18px 45px #160907aa;color:#5c2f1d;text-align:center}
.boost-modal>i{width:76px;height:76px;display:grid;place-items:center;border:4px solid #6b3b22;border-radius:22px;background:linear-gradient(#fff1b2,#e6a541);box-shadow:inset 0 3px #fff8d8,0 5px 0 #7a3d22;font-size:34px;font-style:normal;font-weight:950}
.boost-modal h2{margin:3px 50px 0;font-size:28px}.boost-modal p{margin:0;font-size:17px;line-height:1.55}.boost-modal>b{font-size:18px}.boost-modal>small{min-height:22px;color:#a64a31;font-size:14px;font-weight:900}
.boost-modal>div{width:100%;display:grid;grid-template-columns:1fr 1.35fr;gap:12px;margin-top:6px}.boost-modal>div button{min-height:58px;border:3px solid #5b2d1c;border-radius:16px;font-size:17px;font-weight:950;cursor:pointer}.boost-modal .secondary{background:#fff3d5;color:#623421}.boost-modal .primary{background:linear-gradient(#ff7853,#e34730);color:#fff9ec;text-shadow:0 2px #8f2c20}

/* v81: one canonical 520 × 924 stage for phones and desktop previews. The
   browser only scales this stage; it never reflows individual game pieces. */
html,body{width:100%;height:100%;min-height:0;overflow:hidden;overscroll-behavior:none;background:radial-gradient(circle at 50% 35%,#68412c,#1c0e0a 72%)}
body{position:fixed;inset:0;display:grid;place-items:center;padding:0;touch-action:manipulation}
.app-shell{position:absolute;left:50%;top:50%;width:520px!important;height:924px!important;min-width:520px;min-height:924px!important;margin:0!important;transform:translate(-50%,-50%) scale(var(--canvas-scale,1))!important;transform-origin:center!important;overflow:hidden;contain:layout paint size;isolation:isolate}
.home-artboard{width:520px!important;height:924px!important;aspect-ratio:auto!important}
@media (orientation:landscape) and (max-height:600px){body::after{content:"建议竖屏体验";position:fixed;z-index:999;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));padding:8px 12px;border:1px solid #ffe19a66;border-radius:999px;background:#2b160fdd;color:#fff0c5;font-size:12px;font-weight:850;pointer-events:none}}

/* Immediate, sparse feedback: only purchases, successful boost use and major
   outcomes reach this layer. Routine taps keep the small optional haptic. */
.game-toast{position:absolute;z-index:130;left:50%;top:106px;width:310px;padding:12px 16px;display:grid;gap:2px;transform:translate(-50%,-18px) scale(.96);opacity:0;border:3px solid #56301e;border-radius:17px;background:linear-gradient(145deg,#fff9df,#f3bf63);box-shadow:inset 0 2px #fff8d7,0 9px 24px #1d0b0788;color:#5a2d1c;text-align:center;pointer-events:none;transition:.25s ease}
.game-toast.show{transform:translate(-50%,0) scale(1);opacity:1}.game-toast.warning{background:linear-gradient(145deg,#fff0d6,#ef8d59)}.game-toast b{font-size:18px}.game-toast span{font-size:13px;font-weight:800}
.boost-impact{--impact:#68d8ff;position:absolute;z-index:129;inset:0;display:grid;place-items:center;overflow:hidden;opacity:0;pointer-events:none;transition:opacity .14s ease}.boost-impact.show{opacity:1}.boost-impact.leaving{opacity:0;transition-duration:.24s}.boost-impact-wash{position:absolute;inset:0;background:radial-gradient(circle at 50% 49%,color-mix(in srgb,var(--impact) 64%,transparent),#1a0b08d9 48%,#090303f0 78%);animation:boostWash .8s ease-out both}.boost-impact-rays{position:absolute;left:50%;top:49%;width:1px;height:1px}.boost-impact-rays i{position:absolute;left:-260px;top:-3px;width:520px;height:6px;border-radius:99px;background:linear-gradient(90deg,transparent,var(--impact),transparent);transform:rotate(calc(var(--ray) * 18deg)) scaleX(.12);filter:drop-shadow(0 0 8px var(--impact));animation:boostRay .85s calc(var(--ray) * 18ms) cubic-bezier(.12,.72,.18,1) both}.boost-impact section{position:relative;z-index:3;width:410px;display:grid;justify-items:center;text-align:center;color:#fff9de;text-shadow:0 3px 0 #542115,0 0 18px #1d0908}.boost-impact section small{padding:5px 14px;border:2px solid #fff4bf;border-radius:999px;background:#3a1a16cc;font-size:14px;font-weight:950;letter-spacing:.16em;transform:translateY(18px);opacity:0;animation:boostCopy .4s .16s ease-out forwards}.boost-impact section strong{width:132px;height:132px;margin:14px 0 4px;display:grid;place-items:center;border:7px solid #fff7c9;border-radius:36px;background:radial-gradient(circle at 36% 30%,#fff6c8,var(--impact) 48%,#56311f 112%);box-shadow:inset 0 5px #fff9,0 0 0 10px #fff2a52e,0 0 55px var(--impact);font-size:62px;line-height:1;transform:scale(.15) rotate(-22deg);animation:boostStamp .52s .06s cubic-bezier(.2,1.5,.25,1) forwards}.boost-impact h2{margin:2px 0 0;font-size:38px;line-height:1;letter-spacing:.06em;transform:scale(1.7);opacity:0;animation:boostTitle .38s .31s ease-out forwards}.boost-impact p{margin:10px 0 0;padding:7px 18px;border-radius:999px;background:#2a100dcc;font-size:17px;font-weight:950;opacity:0;transform:translateY(16px);animation:boostCopy .38s .48s ease-out forwards}.boost-impact-echoes{position:absolute;z-index:2;inset:0}.boost-impact-echoes i{position:absolute;left:50%;top:50%;display:block}.boost-impact.redraw{--impact:#69d8ff}.boost-impact.redraw .boost-impact-echoes i{width:62px;height:84px;margin:-42px 0 0 -31px;border:5px solid #fff5c4;border-radius:12px;background:linear-gradient(145deg,#fffdf2,#8dd9ff);box-shadow:0 7px 0 #3d2548;animation:redrawCard .82s calc(var(--echo) * 45ms) cubic-bezier(.12,.8,.22,1) both}.boost-impact.keep{--impact:#ffd146}.boost-impact.keep .boost-impact-echoes i{width:94px;height:94px;margin:-47px;border:7px solid #fff0a2;border-radius:22px;box-shadow:0 0 26px #ffd146;animation:keepLock .72s calc(var(--echo) * 38ms) ease-out both}.boost-impact.incense{--impact:#f264b7}.boost-impact.incense .boost-impact-echoes i{width:38px;height:130px;margin:-20px;border:9px solid #ffd5ee;border-color:#ffd5ee transparent transparent;border-radius:50%;filter:drop-shadow(0 0 12px #ff5eb8);animation:incenseSmoke 1.05s calc(var(--echo) * 70ms) ease-out both}.boost-impacting{animation:boostScreenKick .46s ease-out}.boost-impact.redraw section strong{animation-name:boostStamp,redrawSpin;animation-duration:.52s,.8s;animation-delay:.06s,.12s}.boost-impact.keep section strong{border-radius:50%}.boost-impact.incense section strong{border-radius:50%}@keyframes boostWash{0%{transform:scale(.45);opacity:0}35%{opacity:1}100%{transform:scale(1.2);opacity:.86}}@keyframes boostRay{0%{transform:rotate(calc(var(--ray) * 18deg)) scaleX(.08);opacity:0}35%{opacity:1}100%{transform:rotate(calc(var(--ray) * 18deg)) scaleX(1.15);opacity:0}}@keyframes boostStamp{to{transform:scale(1) rotate(0)}}@keyframes redrawSpin{to{rotate:360deg}}@keyframes boostTitle{to{transform:scale(1);opacity:1}}@keyframes boostCopy{to{transform:none;opacity:1}}@keyframes redrawCard{0%{transform:translate(0,0) rotateY(90deg);opacity:0}35%{opacity:1}100%{transform:translate(calc((var(--echo) - 2) * 86px),calc(abs(var(--echo) - 2) * 32px + 182px)) rotate(calc((var(--echo) - 2) * 7deg));opacity:.88}}@keyframes keepLock{0%{transform:scale(2.6) rotate(calc(var(--echo) * 34deg));opacity:0}55%{opacity:.9}100%{transform:scale(.38) rotate(calc(var(--echo) * 34deg));opacity:0}}@keyframes incenseSmoke{0%{transform:translate(calc((var(--echo) - 2) * 42px),250px) rotate(calc(var(--echo) * 14deg));opacity:0}30%{opacity:.9}100%{transform:translate(calc((var(--echo) - 2) * 64px),-260px) rotate(calc(var(--echo) * 48deg));opacity:0}}@keyframes boostScreenKick{0%,100%{transform:none}18%{transform:translateX(-6px)}36%{transform:translateX(7px)}54%{transform:translateX(-4px)}72%{transform:translateX(3px)}}
.keep-choice{width:100%;display:flex!important;grid-template-columns:none!important;justify-content:center;gap:9px!important;margin:0!important;padding:9px;border:2px solid #d7a15d;border-radius:15px;background:#fff5d4}
.keep-choice>small{align-self:center;font-size:12px;font-weight:900}.keep-choice button{width:72px;min-height:72px!important;padding:5px!important;display:grid;place-items:center;border:2px solid #a16a3b!important;border-radius:12px!important;background:#fff!important;font-size:12px!important}.keep-choice button.selected{outline:4px solid #ffbd3c;background:#fff0aa!important}.keep-choice img{width:42px;height:38px;object-fit:contain}.keep-choice b{display:block}
.boost-modal>.boost-actions{width:100%;display:grid;grid-template-columns:1fr 1.35fr;gap:12px;margin-top:6px}
.dish-bonus-strip{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.dish-bonus-strip span{padding:5px 8px;border:2px solid #d39b4d;border-radius:999px;background:#fff2b4;color:#8a431f;font-size:12px;font-weight:900}
.upgrade-grid article em{display:block;margin-top:3px;color:#a84e30;font-size:11px;font-style:normal;font-weight:850}.upgrade-grid article.just-upgraded{animation:upgradeFlash .9s ease both}.upgrade-grid article.just-upgraded::after{content:"升级成功！";position:absolute;right:14px;top:4px;padding:4px 8px;border-radius:999px;background:#e95031;color:#fff;font-size:12px;font-weight:950}@keyframes upgradeFlash{35%{transform:scale(1.025);box-shadow:0 0 0 5px #ffd858aa}100%{transform:none}}
.upgrade-grid article{position:relative}
.upgrade-grid button[aria-disabled="true"],.wardrobe-unlock[aria-disabled="true"],.wardrobe-item[aria-disabled="true"]{filter:grayscale(.65);opacity:.68;cursor:pointer}
.taste-tags.dislikes span{background:#f5c6b7!important;color:#8d2e25!important}
.result-contribution{padding:10px 11px;border:2px solid #d49b60;border-radius:13px;background:#fff4cf}.result-contribution.boost{background:#f1e4ff;border-color:#ae7cb5}.result-contribution h3{margin:0 0 7px;font-size:15px}.result-contribution span{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-top:1px dashed #bd8756;font-size:13px;font-weight:800}.result-contribution span:first-of-type{border-top:0}.result-contribution b{text-align:right;color:#c34a2c}
.reduce-motion .game-toast,.reduce-motion .upgrade-grid article.just-upgraded{transition:none!important;animation:none!important}.reduce-motion .objective-celebration,.reduce-motion .stage-secret-button.objective-hit,.reduce-motion .boost-impact *,.reduce-motion .boost-impacting{animation-duration:.01ms!important}

/* v83 correction pass: the live dish title owns the full result width, and
   recipes without approved exact art use a reaction mark instead of a wrong
   food photograph. */
.dish-reveal-scroll>h2{grid-column:1 / -1!important;width:100%!important;justify-self:stretch!important;padding:0 18px!important;text-align:center!important;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif!important;line-height:1.18!important;text-wrap:balance}
.dish-reaction-visual{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:2px;filter:drop-shadow(0 6px 5px #71350f38)}
.dish-reaction-visual strong{display:flex;align-items:center;justify-content:center;gap:20px;font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:55px;line-height:1;letter-spacing:normal}
.dish-reaction-visual strong span{display:block;filter:drop-shadow(0 2px 1px #fff8)}
.dish-reaction-visual small{padding:3px 9px;border:2px solid #d79a43;border-radius:999px;background:#fff2bd;color:#9a4e25;font-size:12px;font-weight:950;letter-spacing:.08em}
#tutorialLayer .tutorial-focus{transition:top .18s ease,left .18s ease,width .18s ease,height .18s ease}

/* v84: put the dish identity beside its name, then show ingredients and
   business results. Optional lower copy exists only for concrete feedback. */
.dish-reveal-scroll>h2{margin-bottom:0!important}
.dish-reveal-reaction{order:4;margin-top:-2px!important}
.dish-reveal-ingredients{order:5}
.dish-reveal-score{order:6}
.dish-bonus-strip{order:7}
.dish-reveal-clue{order:8}
.result-body .stat-row.cost strong{color:#9b5132}
.result-body .stat-row.profit{background:#fff0b6;border-color:#d58d3d}
.result-body .stat-row.profit strong{color:#b33d24;font-size:1.08em}

.stage-brief-backdrop{padding:20px;background:#1d0b07bb;backdrop-filter:blur(5px)}
.stage-brief{position:relative;width:min(430px,92%);max-height:86%;overflow:auto;padding:24px 22px 20px;border:4px solid #6f3b25;border-radius:24px;background:linear-gradient(#fff8db,#f2c974);box-shadow:inset 0 3px #fff9e9,0 18px 40px #1b080777;color:#582d1e;text-align:center}
.stage-brief-x{position:absolute;right:12px;top:10px;width:38px;height:38px;border:0;border-radius:50%;background:#8d4d2d;color:#fff;font-size:26px;font-weight:900}
.stage-brief>small{display:block;padding-right:35px;color:#9d5732;font-size:13px;font-weight:850}.stage-brief h2{margin:5px 28px 14px;font-size:24px;line-height:1.2}
.stage-brief-time{display:flex;align-items:baseline;justify-content:center;gap:7px;margin:auto;width:145px;padding:7px 12px;border:2px solid #d5984f;border-radius:999px;background:#fff5d3}.stage-brief-time b{font-size:25px}.stage-brief-time span{font-size:12px;font-weight:850}
.stage-brief ul{margin:14px 0 10px;padding:0;display:grid;grid-template-columns:1fr;gap:7px;list-style:none;text-align:left}.stage-brief li{min-height:42px;padding:7px 10px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:7px;border:2px solid #dea45e;border-radius:12px;background:#fff8e4;font-size:13px;font-weight:900}.stage-brief li i{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#f2ce8b;color:#914625;font-style:normal}.stage-brief li b{color:#a65a35;font-size:11px}.stage-brief li.done{border-color:#67aa53;background:#eff8d7}.stage-brief li.done i{background:#65b94d;color:#fff}.stage-brief li.done span{text-decoration:line-through;text-decoration-thickness:2px;color:#60804e}
.stage-brief p{margin:10px 0;padding:9px 12px;border-radius:12px;background:#ebaf5b55;font-size:12px;font-weight:750}.stage-brief-start{width:100%;min-height:52px;margin-top:8px}
.stage-secret-button{position:absolute;z-index:18;left:10px;top:72px;width:112px;height:50px;padding:5px 8px;display:grid;grid-template-rows:auto auto;place-items:center;gap:1px;border:2px solid #60341f;border-radius:11px;background:linear-gradient(#ffe6a4,#eeb154);box-shadow:0 3px 0 #3b1d13;color:#5b2e1d;font-size:11px;font-weight:950;line-height:1.05;pointer-events:auto;cursor:pointer}.stage-secret-button span{display:block}.stage-secret-button b{display:block;min-width:72px;padding:3px 7px;border-radius:999px;background:#8d4b2d;color:#fff;font-size:11px;line-height:1;text-align:center}.stage-secret h2{margin-bottom:8px}.stage-secret ul{margin-top:8px}
.stage-secret-button.objective-hit{animation:secretObjectiveHit 1.15s ease both}.stage-secret-button.objective-hit b{background:#3d9f43}@keyframes secretObjectiveHit{0%,100%{transform:none}18%{transform:scale(1.14) rotate(-2deg);background:#fff18e;box-shadow:0 0 0 7px #ffe95a88,0 4px 0 #3b1d13}42%{transform:scale(1.04) rotate(1deg)}}
.objective-celebration{position:absolute;z-index:145;left:50%;top:116px;width:330px;min-height:70px;padding:10px 18px 10px 68px;display:grid;align-content:center;border:4px solid #37672d;border-radius:20px;background:linear-gradient(135deg,#f6ffcf,#9ee06f);box-shadow:inset 0 2px #fff,0 10px 28px #1c0d0788;color:#31512a;transform:translate(-50%,-22px) scale(.86);opacity:0;animation:objectiveCelebrate 1.9s ease both;pointer-events:none}.objective-celebration>i{position:absolute;left:14px;top:10px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#45a64c;color:#fff;font-size:30px;font-style:normal;font-weight:950;box-shadow:0 4px 0 #276d31}.objective-celebration div{display:grid;gap:1px}.objective-celebration small{font-size:11px;font-weight:900;letter-spacing:.12em}.objective-celebration b{font-size:16px;line-height:1.25}.objective-celebration>span{position:absolute;color:#fff7a2;font-size:21px;text-shadow:0 2px #5f8d36}.objective-celebration>span:nth-of-type(1){left:12px;top:-13px}.objective-celebration>span:nth-of-type(2){right:22px;top:-18px}.objective-celebration>span:nth-of-type(3){right:-8px;bottom:2px}@keyframes objectiveCelebrate{0%{opacity:0;transform:translate(-50%,-24px) scale(.82)}16%,76%{opacity:1;transform:translate(-50%,0) scale(1)}88%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-10px) scale(.96)}}
.game-screen .taste-tags.hard span{background:#ffb181;color:#762418;font-weight:950}.game-screen .preference-rule-note{padding:5px 7px;border-radius:8px;background:#fff0cf;color:#83422c;font-size:9px;line-height:1.3}
.game-screen>.preference-popover{position:absolute;z-index:35;right:73px;top:161px}
.game-screen .counter.requirement-pending{filter:drop-shadow(0 0 7px #ff8a3f)!important}.game-screen .counter.requirement-ready{filter:drop-shadow(0 0 9px #75e36b)!important}.game-screen .counter.requirement-pending .counter-title small{color:#ffe071}.game-screen .counter.requirement-ready .counter-title small{color:#bfff96}.game-screen .counter.requirement-ready .prep-list{box-shadow:inset 0 0 0 3px #73cc66aa;border-radius:15px}.game-screen .counter.requirement-pending .prep-list{box-shadow:inset 0 0 0 3px #ee884faa;border-radius:15px}.game-screen .counter-title small{max-width:245px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-rejected-backdrop{z-index:115;background:#28130cd1;backdrop-filter:blur(7px)}.order-rejected{width:min(390px,92%);padding:25px 26px;display:grid;justify-items:center;gap:8px;border:5px solid #5b2d1c;border-radius:26px;background:linear-gradient(#fff8e7,#f2d39a);box-shadow:inset 0 0 0 3px #df9c55,0 18px 45px #160907aa;color:#5b2d1d;text-align:center}.order-rejected>i{font-size:45px;font-style:normal}.order-rejected>small{color:#b54d2d;font-weight:950}.order-rejected h2{margin:0;font-size:27px}.order-rejected ul{width:100%;margin:5px 0;padding:0;display:grid;gap:7px;list-style:none}.order-rejected li{padding:9px;border:2px solid #dc9352;border-radius:11px;background:#fff3ce;font-weight:950}.order-rejected p{margin:2px 0 8px;font-size:12px;font-weight:800}.order-rejected .primary{width:100%;min-height:52px}

/* v90 wardrobe product candidate: purchase/equip logic is final; visible
   cosmetic layers stay code-native until the master art direction is approved. */
.plain-inner-page:has(.wardrobe-page) .inner-page-scroll{position:relative;inset:auto;width:auto;min-height:0;padding:4px 7px 24px;overflow-x:hidden;overflow-y:auto}.plain-inner-page:has(.wardrobe-page) .inner-page-shell>h2{top:31px}.plain-inner-page:has(.wardrobe-page) .inner-page-x{top:14px}.plain-inner-page:has(.wardrobe-page) .inner-page-actions{position:relative;inset:auto;height:64px}
.wardrobe-page{position:relative;display:grid;gap:10px;color:#5d301f}.wardrobe-wallet{position:absolute;right:3px;top:-45px;display:flex;align-items:center;gap:7px;padding:6px 10px;border:2px solid #8b562f;border-radius:999px;background:#fff0b8;font-size:11px;font-weight:900}.wardrobe-wallet b{font-size:16px;color:#bf532e}
.wardrobe-characters{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.wardrobe-characters button{height:75px;padding:4px;display:grid;grid-template-columns:48px 1fr;grid-template-rows:1fr 20px;align-items:center;border:2px solid #bd844e;border-radius:13px;background:#fff7dc;color:#63331f;text-align:left}.wardrobe-characters button.active{border-color:#e14f31;background:#ffe39b;box-shadow:0 0 0 3px #ffbd45aa}.wardrobe-characters button.locked{filter:saturate(.6)}.wardrobe-characters img{grid-row:1/3;width:48px;height:65px;object-fit:contain}.wardrobe-characters span{font-weight:950}.wardrobe-characters em{font-size:9px;font-style:normal;color:#b54f2e;font-weight:900}
.wardrobe-preview{min-height:220px;padding:9px 12px;display:grid;grid-template-columns:56% 1fr;align-items:center;border:3px solid #9b623a;border-radius:20px;background:radial-gradient(circle at 33% 36%,#fff6b9,#edbd72 62%,#c37c42);box-shadow:inset 0 3px #fff4d2,0 6px 12px #45201233}.wardrobe-character{position:relative;width:min(205px,100%);height:auto;aspect-ratio:1;justify-self:center;display:grid;place-items:center;overflow:hidden}.wardrobe-character::after{content:"";position:absolute;left:16%;right:16%;bottom:7px;height:17px;border-radius:50%;background:#7041263d;filter:blur(4px)}.wardrobe-character>img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 5px #57301f55)}.wardrobe-layers{position:absolute;z-index:3;inset:0;pointer-events:none}.wardrobe-layer{position:absolute;display:grid;place-items:center;filter:drop-shadow(0 3px 2px #3e1c1366)}.wardrobe-preview h3{margin:0;font-size:25px}.wardrobe-preview p{margin:5px 0 12px;font-size:12px;line-height:1.4}.wardrobe-active,.wardrobe-unlock{width:100%;min-height:40px;border:2px solid #673822;border-radius:12px;background:linear-gradient(#ffdf6f,#ef9e3d);color:#5d2f1d;font-weight:950}.wardrobe-active.selected{background:#bde687;color:#38612f}.wardrobe-unlock:disabled{filter:grayscale(.7);opacity:.65}
.wardrobe-categories{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.wardrobe-categories button{min-height:42px;border:2px solid #9b633d;border-radius:12px;background:#fff5d5;color:#6b3722;font-weight:950}.wardrobe-categories button.active{background:#8d4b31;color:#fff3d3;box-shadow:inset 0 2px #c77c50}
.wardrobe-items{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.wardrobe-item{min-height:88px;padding:7px;display:grid;grid-template-columns:54px 1fr;grid-template-rows:1fr 22px;align-items:center;border:2px solid #c18a52;border-radius:14px;background:#fffaf0;color:#60301f;text-align:left}.wardrobe-item>i{grid-row:1/3;width:48px;height:58px;display:grid;place-items:center;border:2px solid #b77743;border-radius:13px;background:color-mix(in srgb,var(--item-color,#eed39c) 58%,#fff);font-size:31px;font-style:normal;font-weight:950}.wardrobe-item>b{font-size:13px}.wardrobe-item>small{font-size:9px;color:#aa512f;font-weight:900}.wardrobe-item.equipped{border-color:#4f9b49;background:#eef8d5;box-shadow:0 0 0 3px #81c95b77}.wardrobe-item:disabled{filter:grayscale(.8);opacity:.58}.wardrobe-candidate-note{margin:0;padding:8px 10px;border-radius:11px;background:#6a3a2ce8;color:#fff2d5;font-size:10px;line-height:1.4}

/* v93: wardrobe discovery path lives under the stall-owner profile and coin wallet. */
.profile-wardrobe-entry{width:100%;min-height:104px;margin-top:14px;padding:10px 12px;display:grid;grid-template-columns:106px 1fr 22px;align-items:center;gap:9px;border:3px solid #8c4d2f;border-radius:18px;background:linear-gradient(135deg,#fff1b7,#efb35f);box-shadow:inset 0 2px #fff7db,0 6px 0 #5c2c20;color:#60301f;text-align:left}.profile-wardrobe-entry.tutorial{animation:wardrobeEntryPulse 1.25s ease-in-out infinite}.profile-wardrobe-entry>span:nth-child(2){display:grid;gap:2px}.profile-wardrobe-entry small{color:#b64b2d;font-size:11px;font-weight:950}.profile-wardrobe-entry b{font-size:19px}.profile-wardrobe-entry em{font-size:10px;font-style:normal;font-weight:800}.profile-wardrobe-entry>i{font-size:30px;font-style:normal}.profile-wardrobe-faces{display:flex;align-items:end}.profile-wardrobe-faces img{width:50px;height:70px;margin-right:-18px;object-fit:contain;filter:drop-shadow(0 3px 2px #6b301f55)}
.profile-wardrobe-entry.locked{filter:grayscale(.65);background:linear-gradient(135deg,#eee4cc,#bea986)}
.wardrobe-unlock-notice>small{font-weight:950;color:#b5492e}.wardrobe-unlock-notice>div{width:100%;display:grid;grid-template-columns:1fr 1.2fr;gap:8px}.wardrobe-unlock-notice>div button{min-height:48px}
.coin-use-grid{display:grid;gap:10px;margin:12px 0}.coin-use-grid article,.coin-use-grid button{min-height:82px;padding:11px 12px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;border:2px solid #b87943;border-radius:15px;background:#fff6d9;color:#60311f;text-align:left}.coin-use-grid>*>i{font-size:29px;font-style:normal}.coin-use-grid>*>div{display:grid;gap:4px}.coin-use-grid b{font-size:16px}.coin-use-grid span{font-size:11px;font-weight:750;line-height:1.45}.coin-use-grid button{background:linear-gradient(135deg,#fff0b6,#f3bc6c);box-shadow:0 4px 0 #743a27}.coin-use-grid button em{color:#bc4e2d;font-size:11px;font-style:normal;font-weight:950;white-space:nowrap}
.wardrobe-home-guide{position:absolute;z-index:80;left:5%;right:5%;top:15%;padding:18px 18px 15px;border:4px solid #713a25;border-radius:21px;background:linear-gradient(#fff8da,#f4c970);box-shadow:0 14px 35px #1c0b0799;color:#5d2e1d;text-align:left}.wardrobe-home-guide>i{display:inline-block;padding:3px 8px;border-radius:999px;background:#cf4b31;color:#fff;font-size:10px;font-style:normal;font-weight:950}.wardrobe-home-guide>b{display:block;margin-top:7px;font-size:21px}.wardrobe-home-guide>p{margin:7px 0 12px;font-size:12px;font-weight:800;line-height:1.55}.wardrobe-home-guide>div{display:grid;grid-template-columns:.72fr 1.4fr;gap:8px}.wardrobe-home-guide button{min-height:43px}.wardrobe-guide-target{z-index:82!important;animation:wardrobeEntryPulse 1.25s ease-in-out infinite!important;box-shadow:0 0 0 7px #ffe458aa,0 0 24px #fff37b!important}.wardrobe-tutorial{display:grid;grid-template-columns:34px 1fr;gap:9px;padding:10px 11px;border:2px solid #df8d35;border-radius:13px;background:#fff2b7;color:#69321f}.wardrobe-tutorial>i{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#dc5535;color:#fff;font-style:normal;font-weight:950}.wardrobe-tutorial b{font-size:14px}.wardrobe-tutorial p{margin:3px 0 0;font-size:10px;font-weight:800;line-height:1.45}@keyframes wardrobeEntryPulse{50%{transform:translateY(-2px) scale(1.018);filter:brightness(1.08)}}
.reduce-motion .profile-wardrobe-entry.tutorial,.reduce-motion .wardrobe-guide-target{animation:none!important}

/* v94: generated transparent wardrobe parts replace emoji/code placeholders. */
.wardrobe-layer{background:none!important;border:0!important;color:inherit!important;font-size:0!important}
.wardrobe-layer img{width:100%;height:100%;object-fit:contain}
.wardrobe-item>i.wardrobe-item-art{background:#fff1cc;overflow:hidden}
.wardrobe-item>i.wardrobe-item-art img{width:100%;height:100%;object-fit:contain;padding:2px}

.wardrobe-paused-note{background:#754238!important;color:#fff4dc!important;border:2px solid #4c281f}.wardrobe-items .wardrobe-item:disabled{opacity:.72;filter:saturate(.45)}
.free-unlock-screen{display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 50% 28%,#ffd96b55,transparent 36%),linear-gradient(155deg,#38170f,#120807);color:#fff4d2}.free-unlock-card{width:100%;padding:27px 24px;display:grid;gap:12px;border:4px solid #f4bd57;border-radius:27px;background:linear-gradient(150deg,#71351fee,#35150eee);box-shadow:inset 0 0 0 3px #fff0ad33,0 22px 55px #0009;text-align:center}.free-unlock-card>small{font-size:12px;font-weight:950;letter-spacing:.16em;color:#ffd66d}.free-unlock-card h1{margin:3px 0 0;font-family:"STKaiti","KaiTi",serif;font-size:30px;line-height:1.2}.free-unlock-card h2{margin:0;color:#ffd45f;font-size:22px}.free-unlock-progress{margin:5px auto;padding:12px 28px;border:3px solid #ffd45f;border-radius:18px;background:#18090799}.free-unlock-progress b,.free-unlock-progress span{display:block}.free-unlock-progress b{font-size:34px;color:#fff0a1}.free-unlock-progress span{font-size:11px;font-weight:900}.free-unlock-card p{margin:0;font-size:14px;font-weight:800;line-height:1.7}.free-unlock-card blockquote{margin:0;padding:13px;border-left:4px solid #ffd45f;background:#1d0b0877;font-size:15px;font-weight:900;line-height:1.65;text-align:left}.free-unlock-card>div:last-child{display:grid;grid-template-columns:1.25fr 1fr;gap:10px}.free-unlock-card button{min-height:52px}
.main-epilogue-screen{display:grid;place-items:center;padding:34px;background:radial-gradient(circle at 50% 42%,#fffef2,#ead7aa 74%,#b58a54);color:#17120d}.main-epilogue-screen::before{content:"";position:absolute;inset:20px;border:2px solid #3d2b1b55;box-shadow:inset 0 0 45px #7c552733;pointer-events:none}.main-epilogue-screen article{position:relative;width:100%;display:grid;gap:22px;text-align:center;font-family:"STKaiti","KaiTi","Songti SC",serif}.main-epilogue-screen article>*{opacity:0;transform:translateY(12px);animation:epilogueLine .85s var(--line-delay) ease forwards}.main-epilogue-screen p{margin:0;font-size:17px;line-height:1.9}.main-epilogue-screen h1{margin:12px 0 0;font-size:34px;line-height:1.35;font-weight:900}.main-epilogue-screen h2{margin:0;font-size:27px;line-height:1.4;font-weight:800}.main-epilogue-screen button{justify-self:center;min-width:230px;min-height:54px;margin-top:18px;border:2px solid #261a10;border-radius:7px;background:#20160f;color:#fff9e9;font-family:inherit;font-size:18px;font-weight:900}@keyframes epilogueLine{to{opacity:1;transform:none}}
.main-epilogue-page{position:relative;z-index:2;width:100%;height:100%;margin:0!important;padding:54px 34px!important;display:grid;grid-template-rows:auto 1fr auto;place-items:center;border:0!important;border-radius:0!important;background:transparent!important;color:#17120d!important;box-shadow:none!important;font-family:"STKaiti","KaiTi","Songti SC",serif!important}.main-epilogue-page strong{align-self:center;display:grid;gap:20px;font-size:clamp(31px,8.7vw,46px);line-height:1.3;font-weight:900}.main-epilogue-page strong i{display:block;opacity:0;transform:translateY(16px);font-style:normal;animation:epilogueLine .72s var(--line-delay) ease forwards}.epilogue-page-count{align-self:start;font-family:system-ui,sans-serif;font-size:11px;font-weight:850;letter-spacing:.18em;color:#6c5840}.main-epilogue-page>small{align-self:end;opacity:0;transform:translateY(8px);font-size:15px;font-weight:850;letter-spacing:.12em;animation:epilogueLine .55s var(--line-delay) ease forwards}.free-unlock-card{gap:15px}.free-unlock-card h1{margin:5px 0 0;font-size:28px;line-height:1.38}.free-unlock-card h2{font-size:20px}.free-unlock-progress{order:4;margin:2px auto}.free-unlock-card>p{order:3}.free-unlock-card>blockquote{order:5}.free-unlock-card>div:last-child{order:6;margin-top:2px}.main-epilogue-page.page-3 strong{font-size:32px;gap:18px}
