:root{--tea:#7b4b37;--cream:#f6d9b6;--coral:#e86f61;--green:#5e9c76;--paper:#fff7e9;--ink:#402b22;--shadow:0 14px 35px rgba(91,55,39,.16);--fast:160ms;--normal:420ms;font-family:system-ui,"Microsoft YaHei",sans-serif;color:var(--ink)}
*{box-sizing:border-box}html,body,#game{margin:0;width:100%;height:100%;overflow:hidden}body{background:#ead2ad}button{font:inherit;color:inherit}button:focus-visible{outline:4px solid #fff;outline-offset:2px}img{display:block;max-width:100%}.screen{width:100%;height:100%;position:relative;overflow:hidden}.title-screen{display:grid;grid-template-columns:42% 58%;padding:clamp(20px,5vw,70px);background:radial-gradient(circle at 20% 20%,#fffdf5,#f6d9b6 70%)}
.title-copy{align-self:center;z-index:2;min-width:0}.eyebrow{color:var(--coral);font-weight:900;letter-spacing:.12em;font-size:clamp(12px,1.2vw,16px)}h1{font-size:clamp(42px,6.5vw,92px);line-height:.98;margin:.15em 0;color:var(--tea);text-shadow:0 4px #fff}p{line-height:1.6}.title-copy>p{font-size:clamp(15px,1.5vw,21px);max-width:31em}.title-actions,.result-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.game-btn{border:0;min-width:128px;min-height:48px;padding:12px 24px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;background-color:transparent;transition:transform var(--fast);position:relative}.game-btn span{position:relative;z-index:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:900}.game-btn.small{min-width:76px;min-height:40px;padding:8px 13px;font-size:13px}.game-btn.pressed{transform:scale(.92)}.meta-chip{margin-top:20px;display:inline-flex;padding:10px 16px;border-radius:999px;background:#fff8;border:1px solid #7b4b3733}.key-art{position:relative;align-self:center;min-width:0}.key-art img{width:100%;height:min(72vh,680px);object-fit:contain;filter:drop-shadow(0 24px 30px #6f422b44)}.art-sticker{position:absolute;right:5%;bottom:10%;background:var(--coral);color:#fff;padding:14px;border-radius:50%;text-align:center;transform:rotate(7deg);box-shadow:var(--shadow)}
.game-screen{background:#ead2ad}.game-screen:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#fff7,#fff7),var(--scene);background-size:cover;background-position:center;filter:saturate(.82);z-index:0}.hud{position:relative;z-index:3;margin:8px 12px;min-height:62px;padding:7px 18px;display:flex;align-items:center;gap:clamp(12px,3vw,42px);background-color:transparent}.hud>div{min-width:0}.hud small,.hud b{display:block}.hud small{font-size:11px;color:#785d4e}.hud b{font-size:clamp(16px,2vw,25px);white-space:nowrap}.hud-tools{margin-left:auto;display:flex;gap:6px}.counter-layout{position:relative;z-index:2;height:calc(100% - 78px);padding:0 12px 12px;display:grid;grid-template-rows:minmax(210px,44%) minmax(300px,56%);gap:9px}.office-lane{position:relative;overflow:hidden;border-radius:26px;background:linear-gradient(180deg,#fff9,#f6e3c1dd);border:2px solid #fff;box-shadow:var(--shadow)}.office-lane:after{content:"";position:absolute;left:0;right:0;bottom:0;height:22%;background:repeating-linear-gradient(90deg,#b9856822 0 70px,#fff4 70px 74px);border-top:3px solid #b9856855}.lane-sign{position:absolute;top:12px;left:16px;z-index:4;padding:7px 12px;border-radius:999px;background:#7b4b37;color:#fff;font-size:12px;font-weight:900}.lane-line{position:absolute;left:4%;right:4%;bottom:20%;height:4px;border-radius:99px;background:#7b4b3733}.passing-coworker{position:absolute;inset:8px 20% 8px 5%;display:grid;grid-template-columns:minmax(150px,34%) minmax(230px,66%);align-items:center;gap:14px;animation:walkIn .7s cubic-bezier(.2,.8,.2,1)}.passing-coworker>img{width:100%;height:100%;max-height:230px;object-fit:contain;filter:drop-shadow(0 9px 8px #4a281d33);animation:walkBob 1s ease-in-out infinite}.passing-coworker h2{margin:0;font-size:clamp(22px,2.5vw,36px)}.coworker-copy{min-width:0}.round-tag{display:inline-flex;background:var(--coral);color:#fff;border-radius:999px;padding:6px 12px;font-weight:900}.role{margin:0;color:#79594b}.speech{width:100%;margin-top:7px;padding:10px 13px;background:#fff9;border:2px dashed #b98568;border-radius:18px;text-align:left;min-width:0}.speech>*{display:block;overflow-wrap:anywhere}.speech span{font-weight:800;margin:3px 0}.speech em{font-size:12px;color:#80685d}.waiting-line{position:absolute;right:12px;top:12px;bottom:12px;width:18%;display:flex;align-items:flex-end;justify-content:center;gap:5px;z-index:3}.waiter{min-width:0;text-align:center;opacity:.45;filter:grayscale(.5)}.waiter.active{opacity:1;filter:none}.waiter.done{opacity:.3}.waiter img{width:54px;height:72px;object-fit:contain}.waiter b{display:block;font-size:9px;white-space:nowrap}.milk-counter{position:relative;display:grid;grid-template-columns:minmax(250px,34%) minmax(430px,66%);gap:9px;padding:14px 18px 12px;background:linear-gradient(180deg,#a66c45 0 12px,#75462f 12px 22px,#dfb77f 22px);border-radius:25px 25px 12px 12px;box-shadow:0 -8px 0 #fff7,0 14px 28px #47251955}.milk-counter:before{content:"";position:absolute;left:2%;right:2%;top:10px;height:8px;border-radius:99px;background:#fff8}.milk-counter>article{background-color:transparent;padding:12px;min-width:0;min-height:0}.counter-label{position:absolute;left:14px;top:9px;z-index:5;background:#5c3828;color:#fff;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:900}.mix-zone{display:flex;flex-direction:column;align-items:center;justify-content:center}.cup-wrap{height:min(31vh,255px);width:min(80%,260px);position:relative;display:flex;align-items:center;justify-content:center}.cup{position:relative;width:58%;height:74%;border:7px solid #ffffffcc;border-top-width:4px;border-radius:16px 16px 43px 43px;overflow:hidden;box-shadow:inset 0 0 20px #fff,0 13px 20px #5b372744;z-index:2}.liquid,.milk-layer{position:absolute;left:0;right:0;bottom:0;height:74%;transition:background var(--normal),opacity var(--normal)}.milk-layer{background:#fff3da;mix-blend-mode:screen}.cup-shine{position:absolute;left:15%;top:15%;width:12%;height:55%;background:#fff7;border-radius:999px}.straw{position:absolute;width:15px;height:70%;background:#e86f61;left:65%;top:0;transform:rotate(8deg);border:3px solid #fff8;border-radius:10px}.toppings{position:absolute;z-index:2;left:0;right:0;bottom:5%;height:27%}.toppings.pearl{background:radial-gradient(circle at 20% 80%,#2e1b16 0 7px,transparent 8px),radial-gradient(circle at 50% 60%,#2e1b16 0 8px,transparent 9px),radial-gradient(circle at 78% 78%,#2e1b16 0 7px,transparent 8px)}.toppings.grass,.toppings.osmanthus{background:repeating-linear-gradient(45deg,#443b2c 0 10px,transparent 10px 24px)}.toppings.osmanthus{background:repeating-linear-gradient(45deg,#e4a13e 0 9px,transparent 9px 22px)}.toppings.chili{background:radial-gradient(ellipse at 20% 70%,#d62d28 0 8px,transparent 9px),radial-gradient(ellipse at 52% 45%,#e64a31 0 10px,transparent 11px),radial-gradient(ellipse at 80% 75%,#b91f20 0 8px,transparent 9px)}.toppings.cilantro{background:radial-gradient(ellipse at 22% 72%,#4e9c52 0 10px,transparent 11px),radial-gradient(ellipse at 54% 48%,#66ad5e 0 12px,transparent 13px),radial-gradient(ellipse at 82% 75%,#397d43 0 9px,transparent 10px)}.toppings.soy{height:13%;background:linear-gradient(#3b211d,#24130f);opacity:.88}.recipe-summary{background:#fff9;border-radius:999px;padding:7px 14px;font-weight:800;text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.float-score{position:absolute;z-index:8;font-size:32px;font-weight:1000;color:var(--coral);opacity:0}.float-score.show{animation:floatScore 1.2s ease-out}.order-zone{overflow:auto}.order-head{display:flex;align-items:center;justify-content:space-between}.order-head h2{margin:0;font-size:24px}.order-head p{margin:0;font-size:12px}.order-head img{width:46px;height:46px;object-fit:contain}.choices{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.choices fieldset{border:0;margin:3px 0;padding:0;min-width:0}.choices legend{font-size:11px;font-weight:900;margin-bottom:3px}.choice-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.choice{border:0;min-height:42px;padding:5px 10px;background-color:transparent;display:flex;align-items:center;justify-content:space-between;min-width:0;cursor:pointer}.choice span{font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.choice small{flex:0 0 auto}.choice:disabled{filter:grayscale(1);opacity:.55}.cost-line{display:flex;justify-content:space-between;border-top:1px dashed #9b7058;padding:7px 4px}.serve-btn{width:100%}
.toast{position:fixed;z-index:40;left:50%;top:13%;transform:translate(-50%,-20px);opacity:0;pointer-events:none;background:#4b352c;color:#fff;padding:12px 18px;border-radius:999px;max-width:min(90vw,540px);overflow-wrap:anywhere;text-align:center;transition:.3s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.good{background:var(--green)}.toast.bad{background:var(--coral)}
.modal-layer{position:fixed;inset:0;z-index:80;background:#3c271dcc;display:flex;align-items:center;justify-content:center;padding:18px;opacity:0;transition:.22s}.modal-layer.open{opacity:1}.modal-card{width:min(620px,94vw);max-height:86vh;overflow:auto;padding:32px;background-color:transparent;position:relative;transform:translateY(25px);transition:.3s}.open .modal-card{transform:none}.modal-close{position:absolute;right:12px;top:12px;width:46px;height:46px;border:0;background-color:transparent;cursor:pointer}.modal-card h2{font-size:32px;margin:0}.modal-card li{margin:8px 0}.shop-list{display:grid;gap:9px}.shop-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff7;padding:12px;border-radius:15px}.shop-list span,.shop-list small{display:block;min-width:0}.shop-list em{color:var(--green);font-weight:900}.unlock-glow{animation:glow .45s}
.result-screen{display:grid;grid-template-columns:42% 58%;align-items:center;padding:clamp(20px,5vw,70px);background:radial-gradient(circle at 20% 25%,#fff5d9,#f2cda2)}.result-art{height:75vh;position:relative}.result-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 22px #5b372744)}.result-badge{position:absolute;left:10%;top:6%;background:var(--coral);color:#fff;border-radius:999px;padding:10px 18px;font-weight:1000;transform:rotate(-7deg)}.receipt{background-color:transparent;padding:clamp(24px,4vw,52px);max-width:720px}.receipt h1{font-size:clamp(38px,5vw,68px);margin:.2em 0}.receipt>p{font-size:18px}.result-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.result-numbers>div{text-align:center;background:#fff9;border-radius:16px;padding:14px 6px}.result-numbers b{font-size:clamp(24px,3vw,42px);display:block}.result-numbers small{font-size:12px}.cup-list{display:flex;gap:8px;margin-top:13px}.cup-list span{flex:1;display:flex;justify-content:space-between;background:#7b4b3711;border-radius:10px;padding:8px;min-width:0}.result-shake{animation:resultShake .55s}.confetti{position:fixed;inset:0;pointer-events:none;z-index:60;overflow:hidden}.confetti i{position:absolute;left:var(--x);top:-30px;width:10px;height:18px;background:hsl(calc(var(--c)*75),70%,60%);animation:fall 1.8s calc(var(--d)*.05s) ease-in forwards}
@keyframes idle{50%{transform:translateY(-8px) rotate(1deg)}}@keyframes walkIn{from{transform:translateX(-35%);opacity:0}to{transform:none;opacity:1}}@keyframes walkBob{50%{transform:translateY(-6px) rotate(1deg)}}@keyframes ingredientPop{50%{transform:scale(1.08)}}@keyframes shakeCup{20%,60%{transform:rotate(-9deg)}40%,80%{transform:rotate(9deg)}}@keyframes floatScore{0%{opacity:0;transform:translateY(10px) scale(.6)}30%{opacity:1;transform:translateY(-20px) scale(1.1)}100%{opacity:0;transform:translateY(-80px)}}@keyframes love{30%{transform:scale(1.16) rotate(-3deg)}60%{transform:scale(1.08) rotate(3deg)}}@keyframes dislike{20%,60%{transform:translateX(-9px)}40%,80%{transform:translateX(9px)}}@keyframes fall{to{transform:translateY(110vh) rotate(700deg)}}@keyframes glow{50%{filter:brightness(1.3) drop-shadow(0 0 25px #ffd85b)}}@keyframes resultShake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
.ingredient-pop{animation:ingredientPop .34s}.shake-cup{animation:shakeCup .65s}.passing-coworker img.love,.passing-coworker img.happy{animation:love .7s}.passing-coworker img.dislike{animation:dislike .55s}.toppings.drop{animation:ingredientPop .4s}
@media(max-width:850px){html,body,#game{overflow:auto}.screen{min-height:100%;height:auto}.title-screen,.result-screen{grid-template-columns:1fr;padding:20px;min-height:100vh}.title-copy{text-align:center}.title-actions,.result-actions{justify-content:center}.key-art img{height:44vh}.game-screen{min-height:100vh}.hud{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.hud-tools{grid-column:1/-1;margin:0;justify-content:center}.counter-layout{height:auto;grid-template-rows:330px auto;padding-bottom:20px}.passing-coworker{inset:12px 24% 12px 3%;grid-template-columns:38% 62%}.waiting-line{width:22%}.milk-counter{grid-template-columns:34% 66%;min-height:520px}.cup-wrap{height:300px}.choices{grid-template-columns:1fr}.order-zone{overflow:visible}.result-art{height:35vh;order:0}.receipt{order:1}.result-numbers{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.counter-layout{grid-template-rows:390px auto;padding:0 6px 12px}.passing-coworker{inset:42px 8px 80px;grid-template-columns:38% 62%;gap:7px}.passing-coworker>img{max-height:190px}.waiting-line{left:8px;right:8px;bottom:6px;top:auto;width:auto;height:70px;justify-content:flex-end}.waiter img{height:50px;width:42px}.milk-counter{grid-template-columns:1fr;padding:16px 7px 10px}.mix-zone{min-height:300px}.choices{grid-template-columns:1fr}.order-head h2{font-size:21px}}
@media(max-width:430px){.title-actions .game-btn{width:100%}.hud{margin:6px;padding:8px}.hud b{font-size:15px}.choice-row{grid-template-columns:1fr 1fr}.cup-wrap{height:255px}.result-actions .game-btn{width:100%}.cup-list{flex-direction:column}.modal-card{padding:26px 18px}.shop-list>div{align-items:flex-start}.shop-list .game-btn{min-width:92px}}

/* 9:16 竖屏固定单屏：主玩法不依赖页面滚动。 */
@media (orientation:portrait) and (max-width:600px){
  html,body,#game{height:100%;height:100dvh;overflow:hidden}
  .screen{height:100%;height:100dvh;min-height:0;overflow:hidden}
  .game-screen{height:100%;height:100dvh;min-height:0}
  .hud{height:104px;margin:4px;padding:5px 7px;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px 4px}
  .hud small{font-size:9px}.hud b{font-size:13px;overflow:hidden;text-overflow:ellipsis}
  .hud-tools{height:48px;gap:2px;overflow:hidden}
  .hud-tools .game-btn[data-ui-component="button.secondary"]{min-width:0;min-height:48px;width:33.333%;border-width:21px;padding:0 3px;font-size:11px}
  .counter-layout{height:calc(100dvh - 112px);grid-template-rows:minmax(190px,34%) minmax(0,66%);gap:5px;padding:0 4px 4px}
  .office-lane{border-radius:18px}.lane-sign{top:6px;left:8px;padding:4px 8px;font-size:10px}
  .passing-coworker{inset:30px 5px 54px;grid-template-columns:36% 64%;gap:5px}
  .passing-coworker>img{max-height:145px}.passing-coworker h2{font-size:19px}.role{font-size:10px}
  .speech{margin-top:3px;padding:5px 7px;border-radius:11px;font-size:10px;line-height:1.25}.speech em{font-size:9px}
  .waiting-line{height:48px;left:5px;right:5px;bottom:3px}.waiter img{height:34px;width:30px}.waiter b{font-size:8px}
  .milk-counter{min-height:0;height:100%;grid-template-columns:34% 66%;gap:3px;padding:13px 4px 4px;border-radius:17px 17px 8px 8px}
  .milk-counter>article{padding:5px}.counter-label{left:8px;top:5px;padding:3px 7px;font-size:9px}
  .mix-zone{min-height:0}.cup-wrap{height:min(26vh,210px);width:100%}.cup{width:70%;height:72%;border-width:5px}.straw{width:11px}
  .recipe-summary{padding:4px 6px;font-size:9px;width:100%}
  .order-zone{height:100%;overflow:hidden;display:flex;flex-direction:column}
  .order-head{height:34px;flex:0 0 34px}.order-head h2{font-size:16px}.order-head p{font-size:9px;line-height:1.2}.order-head img{width:32px;height:32px}
  .choices{flex:1;min-height:0;grid-template-columns:1fr 1fr;gap:1px 3px;align-content:space-between}
  .choices fieldset{margin:0}.choices legend{font-size:9px;margin:0 0 1px}
  .choice-row{gap:1px}.choice[data-ui-component="tab.normal"],.choice[data-ui-component="tab.selected"]{min-height:34px;border-width:17px 19px;padding:0 2px;font-size:9px}
  .cost-line{padding:2px 3px;font-size:10px;flex:0 0 20px}
  .serve-btn[data-ui-component="button.primary"]{min-height:46px;border-width:21px;padding:0 3px;font-size:11px;flex:0 0 46px}
  .toast{top:10%;font-size:11px;padding:8px 12px}
}

/* 置于主题布局之后，确保唯一 UI Kit 的九宫格外观不被通用按钮重置。 */
.game-btn[data-ui-component="button.primary"]{min-height:64px;border-style:solid;border-width:28px;border-image-source:url("assets/ui/stone-cartoon/button-primary.png");border-image-slice:32 36 32 36 fill;border-image-repeat:stretch;padding:0 14px}
.game-btn[data-ui-component="button.secondary"]{min-height:64px;border-style:solid;border-width:28px;border-image-source:url("assets/ui/stone-cartoon/button-secondary.png");border-image-slice:32 36 32 36 fill;border-image-repeat:stretch;padding:0 14px}
.choice[data-ui-component="tab.normal"]{min-height:52px;border-style:solid;border-width:26px 28px;border-image-source:url("assets/ui/stone-cartoon/tab-normal.png");border-image-slice:26 38 26 38 fill;border-image-repeat:stretch;padding:0 16px}
.choice[data-ui-component="tab.selected"]{min-height:52px;border-style:solid;border-width:26px 28px;border-image-source:url("assets/ui/stone-cartoon/tab-selected.png");border-image-slice:26 38 26 38 fill;border-image-repeat:stretch;padding:0 16px}
.choice{justify-content:center;text-align:center}.choice span{width:100%;text-align:center}

/* 必须位于 UI Kit 基础规则之后，确保竖屏尺寸不会被九宫格默认最小值覆盖。 */
@media (orientation:portrait) and (max-width:600px){
  .hud-tools .game-btn[data-ui-component="button.secondary"]{min-width:0;min-height:48px;width:33.333%;border-width:21px;padding:0 3px;font-size:11px}
  .choice[data-ui-component="tab.normal"],.choice[data-ui-component="tab.selected"]{min-height:34px;border-width:17px 19px;padding:0 2px;font-size:9px}
  .serve-btn[data-ui-component="button.primary"]{min-height:46px;border-width:21px;padding:0 3px;font-size:11px;flex:0 0 46px}
}

/* 真正的 9:16 舞台：任何视口中都等比居中，额外空间只作为留边。 */
html,body{width:100%;height:100%;height:100dvh;overflow:hidden}
body{display:flex;align-items:center;justify-content:center;background:#2f211b}
#game{
  flex:none;
  width:min(100vw,calc(100dvh * 9 / 16));
  height:min(100dvh,calc(100vw * 16 / 9));
  overflow:hidden;
  box-shadow:0 0 42px rgba(0,0,0,.34);
}

/* 舞台永远是竖屏比例，因此布局也始终采用竖屏版本，不依赖外层视口方向。 */
#game .screen{height:100%;min-height:0;overflow:hidden}
#game .title-screen,#game .result-screen{grid-template-columns:1fr;padding:20px}
#game .title-copy{text-align:center}
#game .title-actions,#game .result-actions{justify-content:center}
#game .key-art img{height:44vh}
#game .game-screen{height:100%;min-height:0}
#game .hud{height:104px;margin:4px;padding:5px 7px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px 4px}
#game .hud small{font-size:9px}#game .hud b{font-size:13px;overflow:hidden;text-overflow:ellipsis}
#game .hud-tools{grid-column:1/-1;margin:0;height:48px;gap:2px;overflow:hidden;justify-content:center}
#game .hud-tools .game-btn[data-ui-component="button.secondary"]{min-width:0;min-height:48px;width:33.333%;border-width:21px;padding:0 3px;font-size:11px}
#game .counter-layout{height:calc(100% - 112px);grid-template-rows:minmax(190px,34%) minmax(0,66%);gap:5px;padding:0 4px 4px}
#game .office-lane{border-radius:18px}#game .lane-sign{top:6px;left:8px;padding:4px 8px;font-size:10px}
#game .passing-coworker{inset:30px 5px 54px;grid-template-columns:36% 64%;gap:5px}
#game .passing-coworker>img{max-height:145px}#game .passing-coworker h2{font-size:19px}#game .role{font-size:10px}
#game .speech{margin-top:3px;padding:5px 7px;border-radius:11px;font-size:10px;line-height:1.25}#game .speech em{font-size:9px}
#game .waiting-line{height:48px;left:5px;right:5px;bottom:3px;top:auto;width:auto;justify-content:flex-end}
#game .waiter img{height:34px;width:30px}#game .waiter b{font-size:8px}
#game .milk-counter{min-height:0;height:100%;grid-template-columns:28% 72%;gap:3px;padding:13px 4px 4px;border-radius:17px 17px 8px 8px}
#game .milk-counter>article{padding:5px}#game .counter-label{left:8px;top:5px;padding:3px 7px;font-size:9px}
#game .mix-zone{min-height:0}#game .cup-wrap{height:min(26vh,210px);width:100%}#game .cup{width:70%;height:72%;border-width:5px}#game .straw{width:11px}
#game .recipe-summary{padding:4px 6px;font-size:9px;width:100%}
#game .order-zone{height:100%;overflow:hidden;display:flex;flex-direction:column}
#game .order-head{height:34px;flex:0 0 34px}#game .order-head h2{font-size:16px}#game .order-head p{font-size:9px;line-height:1.2}#game .order-head img{width:32px;height:32px}
#game .choices{flex:1;min-height:0;grid-template-columns:1fr;gap:1px;align-content:space-between}
#game .choices fieldset{margin:0}#game .choices legend{font-size:8px;line-height:9px;margin:0}
#game .choice-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}#game .choice[data-ui-component="tab.normal"],#game .choice[data-ui-component="tab.selected"]{min-height:24px;border-width:4px 5px;padding:0 2px;font-size:8.5px}
#game .cost-line{padding:2px 3px;font-size:10px;flex:0 0 20px}
#game .serve-btn[data-ui-component="button.primary"]{min-height:46px;border-width:21px;padding:0 3px;font-size:11px;flex:0 0 46px}
#game .result-art{height:35vh;order:0}#game .receipt{order:1}#game .result-numbers{grid-template-columns:repeat(2,1fr)}
#game .title-actions .game-btn,#game .result-actions .game-btn{width:100%}
#game .cup-list{flex-direction:column}#game .modal-card{padding:26px 18px}

/* 9:16 可读性修复：浅色主页使用深色正文，柜台控件保留真实文字区域。 */
#game .title-screen{color:#3f291f}
#game .title-copy .eyebrow{color:#a9362f;text-shadow:0 1px 0 #fff}
#game .title-copy h1{color:#603724;text-shadow:0 3px 0 #fff,0 5px 12px rgba(64,43,34,.18)}
#game .title-copy>p{color:#402b22;font-weight:700;background:rgba(255,247,233,.82);border-radius:14px;padding:8px 10px}
#game .meta-chip{color:#402b22;background:rgba(255,255,255,.9);border-color:#7b4b3766;font-weight:700}
#game .title-actions .game-btn span{color:#fff;overflow:visible;text-overflow:clip}

#game .hud,#game .mix-zone,#game .order-zone{color:#402b22}
#game .order-head h2,#game .choices legend,#game .cost-line,#game .recipe-summary{color:#402b22}
#game .choice[data-ui-component="tab.normal"],#game .choice[data-ui-component="tab.selected"]{
  min-height:24px;
  border-width:4px 5px;
  padding:1px 2px;
  color:#2f211b;
  font-size:8.5px;
  line-height:1.15;
}
#game .choice span{overflow:visible;text-overflow:clip;white-space:normal;line-height:1.05}
#game .serve-btn[data-ui-component="button.primary"]{min-height:48px;border-width:10px 12px;padding:2px 6px;font-size:12px}
#game .hud-tools .game-btn[data-ui-component="button.secondary"]{border-width:10px 12px;padding:2px 4px}

/* 竖屏视觉整合：图片进入纸张卡片与场景层，不再像裸图贴在页面上。 */
#game .title-screen{grid-template-rows:auto minmax(0,1fr);gap:10px;padding:16px;background:radial-gradient(circle at 50% 18%,#fffdf6 0,#f9e4c8 46%,#e9bd88 100%)}
#game .title-copy{padding:10px 12px 0}
#game .title-copy h1{font-size:clamp(38px,11vw,54px)}
#game .title-copy>p{margin:8px 0;font-size:13px;line-height:1.45}
#game .title-actions{margin-top:12px;gap:7px}
#game .title-actions .game-btn{min-height:52px;border-width:12px 14px;padding:2px 8px}
#game .meta-chip{margin-top:10px;padding:7px 12px;font-size:12px}
#game .key-art{min-height:0;align-self:stretch;border:2px solid rgba(123,75,55,.28);border-radius:28px 28px 12px 12px;padding:7px;background:linear-gradient(145deg,#fff9,#f3cf9dcc);box-shadow:inset 0 0 0 4px #fff7,0 14px 28px #5b372733;overflow:hidden}
#game .key-art:after{content:"";position:absolute;inset:auto 7px 7px;height:22%;border-radius:0 0 10px 10px;background:linear-gradient(transparent,#74483188);pointer-events:none}
#game .key-art img{height:100%;border-radius:21px 21px 8px 8px;object-fit:cover;object-position:center 40%;filter:saturate(.92) contrast(.96)}
#game .art-sticker{right:10px;bottom:12px;z-index:2;padding:10px;font-size:11px;border:3px solid #fff9}

#game .passing-coworker{grid-template-areas:"portrait copy";position:absolute}
#game .passing-coworker .round-tag{position:absolute;z-index:2;left:0;top:0;transform:translateY(-20px);font-size:10px;padding:4px 9px}
#game .passing-coworker>img{grid-area:portrait;align-self:stretch;box-sizing:border-box;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center bottom;border:2px solid #fff9;border-radius:22px 22px 12px 12px;padding:3px;background:#f5d39a;box-shadow:0 7px 14px #4a281d33;filter:saturate(.88) contrast(.94)}
#game .passing-coworker .coworker-copy{grid-area:copy;align-self:center}
#game .waiter img{border-radius:50%;object-fit:cover;object-position:center 22%;background:#f4d4a6;border:2px solid #fff;box-shadow:0 3px 7px #4a281d33}
#game .order-head img{border-radius:50%;padding:4px;background:#fff8;border:1px solid #7b4b3733}

/* 弹窗严格限制在 9:16 游戏舞台内。 */
#game{position:relative}
#game .modal-layer{position:absolute;inset:0;padding:12px;background:rgba(47,33,27,.72);backdrop-filter:blur(3px)}
#game .modal-card[data-ui-component="panel.main"]{width:100%;max-width:420px;max-height:calc(100% - 24px);padding:18px 14px;color:#402b22;border-width:14px 16px;overflow:auto;overscroll-behavior:contain;border-radius:22px;box-shadow:0 18px 38px #28181188}
#game .modal-card h2{font-size:24px;padding-right:38px;margin:0 0 8px;color:#603724}
#game .modal-card p,#game .modal-card li{font-size:13px;line-height:1.45}
#game .modal-card ul{padding-left:20px;margin:8px 0}
#game .modal-close{width:38px;height:38px;right:8px;top:8px}
#game .shop-list{gap:6px}
#game .shop-list>div{padding:8px;border:1px solid #7b4b3722}
#game .shop-list .game-btn{min-height:42px;min-width:84px;border-width:10px 12px;padding:1px 5px;font-size:11px}
#game .roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
#game .roster>span{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:6px;padding:6px;border-radius:12px;background:#fff9;border:1px solid #7b4b3722;font-size:11px;min-width:0}
#game .roster img{width:30px;height:30px;border-radius:50%;object-fit:cover;object-position:center 20%;background:#f4d4a6}
#game .roster-copy{display:block;min-width:0}
#game .roster-copy b,#game .roster-copy small{display:block;overflow-wrap:anywhere}
#game .roster-copy small{margin-top:2px;color:#6b4939;font-size:8.5px;line-height:1.25}
#game .modal-card>.toast{position:sticky;left:auto;top:auto;transform:none;margin:8px auto 0;font-size:11px}

/* 小铺升级：暖色账本、明确层级与可读的成长进度。 */
#game .shop-modal{padding:9px;background:rgba(45,29,21,.78)}
#game .shop-modal .modal-card[data-ui-component="panel.main"]{max-width:430px;max-height:calc(100% - 18px);padding:18px 13px 13px;border-width:12px 14px;color:#4b3024;background:linear-gradient(180deg,#fff7e8 0%,#f3d9b5 100%);box-shadow:0 22px 48px #1d100b99,inset 0 0 0 2px #fff9}
#game .shop-modal .modal-close{right:7px;top:7px;filter:drop-shadow(0 2px 2px #4b2c2044)}
#game .shop-header{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:9px;align-items:center;padding:1px 40px 9px 4px;border-bottom:1px dashed #b9875e}
#game .shop-header h2{padding:0;margin:1px 0 2px;color:#663822;font-size:25px;line-height:1;text-shadow:none}
#game .shop-header p{margin:0;color:#765343;font-size:10px;line-height:1.3}
#game .shop-kicker{display:block;color:#b45742;font-size:8px;font-weight:900;letter-spacing:1px}
#game .coin-wallet{display:grid;place-items:center;align-content:center;min-height:48px;padding:5px;border:1px solid #d39b50;border-radius:14px;background:linear-gradient(#fff6c7,#f5c760);box-shadow:inset 0 1px #fff,0 4px 0 #bf813b;color:#633a20}
#game .coin-wallet small{font-size:8px;font-weight:800}
#game .coin-wallet b{font-size:20px;line-height:1.05}
#game .shop-level-track{display:grid;grid-template-columns:auto minmax(90px,1fr) auto;gap:8px;align-items:center;margin:10px 1px 8px;padding:8px 10px;border-radius:14px;background:#744632;color:#fff3dc;box-shadow:inset 0 0 0 1px #fff2,0 4px 9px #5e38252b}
#game .shop-level-track>b{font-size:11px;white-space:nowrap}
#game .shop-level-track>em{font-size:9px;color:#ffd77e;white-space:nowrap}
#game .shop-level-track>span{display:flex;align-items:center}
#game .shop-level-track>span:before{content:"";position:absolute;height:3px;background:#b58b72;left:5px;right:5px}
#game .shop-level-track>span{position:relative;justify-content:space-between}
#game .shop-level-track i{position:relative;z-index:1;display:grid;place-items:center;width:19px;height:19px;border:2px solid #c6a48d;border-radius:50%;background:#513225;color:#d5b9a6;font-style:normal}
#game .shop-level-track i.on{border-color:#ffe59b;background:#d88b3d;color:#fff;box-shadow:0 0 0 2px #fff2}
#game .shop-level-track i small{font-size:8px;font-weight:900}
#game .shop-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#game .shop-list>.shop-item{position:relative;display:grid;grid-template-columns:31px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 6px;align-items:center;min-height:91px;padding:8px 7px 7px;border:1px solid #d6ac7d;border-radius:14px;background:linear-gradient(150deg,#fffdfa,#f9e8cd);box-shadow:0 3px 0 #c99b6c55;color:#4b3024}
#game .shop-list>.shop-item.featured{border-color:#cf7f55;background:linear-gradient(150deg,#fff8e8,#f6d4a2)}
#game .shop-icon{grid-row:1;width:31px;height:31px;display:grid!important;place-items:center;border-radius:10px;background:#82513a;color:#ffe9b6;font-size:14px;font-weight:900;box-shadow:inset 0 1px #fff3,0 2px 4px #5a342933}
#game .shop-item.featured .shop-icon{background:#b95743;color:#fff3cf}
#game .shop-copy{align-self:center}
#game .shop-copy>b{display:flex;justify-content:space-between;gap:4px;color:#573326;font-size:11px;line-height:1.1}
#game .shop-copy>b small{color:#a65a3f;font-size:8px}
#game .shop-copy>small{margin-top:3px;color:#765343;font-size:8px;line-height:1.2}
#game .shop-progress{display:flex!important;gap:3px;margin-top:5px}
#game .shop-progress i{width:15px;height:4px;border-radius:99px;background:#d8c1a8}
#game .shop-progress i.on{background:#d6784f;box-shadow:0 0 0 1px #c55d3a22}
#game .shop-buy{grid-column:1/-1;display:flex!important;justify-content:flex-end;align-items:center;min-height:31px}
#game .shop-buy em{padding:6px 9px;border-radius:999px;background:#dff0d8;color:#4d8859;font-size:9px;font-style:normal}
#game .shop-list .shop-buy .game-btn{min-width:78px;min-height:31px;border-width:7px 9px;padding:0 5px;font-size:9px}

/* 配方手册位于深色石纹面板上，使用明亮暖色文字。 */
#game .guide-modal .modal-card{color:#fff1d2}
#game .guide-modal .modal-card h2{color:#ffd06e;text-shadow:0 2px 3px #24130d}
#game .guide-modal .modal-card p,#game .guide-modal .modal-card li{color:#fff1d2;text-shadow:0 1px 2px #24130d}
#game .guide-modal .modal-card li::marker{color:#f3b85f}
#game .guide-modal .roster>span{color:#4b3024;background:#fff0d2;border-color:#d9a86f}
#game .guide-modal .roster-copy b{color:#6a3d29}
#game .guide-modal .roster-copy small{color:#6b4939;text-shadow:none}

/* 满框营业报告：结算页以一张完整票据占满 9:16 舞台。 */
#game .result-screen{display:block;padding:9px;background:radial-gradient(circle at 50% 12%,#ffe6b9,#d89862 72%,#8b573e)}
#game .result-report{width:100%;height:100%;min-height:0;max-width:none;padding:18px 16px 12px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:8px;overflow:hidden;color:#fff1d2}
#game .result-hero{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:8px;align-items:center;min-height:112px}
#game .result-hero .eyebrow{font-size:10px;color:#ffc86a;text-shadow:0 1px 2px #24130d}
#game .result-hero h1{font-size:29px;line-height:1.03;margin:4px 0;color:#fff4dc;text-shadow:0 2px 3px #24130d}
#game .result-hero p{font-size:11px;line-height:1.35;margin:0;color:#f8dfbd}
#game .result-portrait{height:106px;position:relative;border-radius:18px;background:linear-gradient(#fff2d8,#e7ba7e);overflow:hidden;border:2px solid #fff7}
#game .result-portrait img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
#game .result-portrait span{position:absolute;left:4px;right:4px;bottom:4px;padding:3px;border-radius:999px;background:#b54e43;color:#fff;text-align:center;font-size:9px;font-weight:900}
#game .result-numbers{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#game .result-numbers>div{padding:7px 2px;border-radius:11px;background:#fff0d9;color:#5c392a;border:1px solid #e3b77c}
#game .result-numbers b{font-size:19px;line-height:1}
#game .result-numbers small{font-size:8px}
#game .feedback-panel{min-height:0;display:flex;flex-direction:column;padding:8px;border-radius:16px;background:#2f231de8;border:1px solid #fff2;box-shadow:inset 0 1px #fff2}
#game .feedback-panel h2{display:flex;justify-content:space-between;margin:0 2px 6px;font-size:14px;color:#ffd27d}
#game .feedback-panel h2 small{font-size:9px;color:#e6c9a8}
#game .feedback-list{flex:1;min-height:0;display:grid;grid-auto-rows:minmax(62px,1fr);gap:5px;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
#game .feedback-item{display:grid;grid-template-columns:42px minmax(0,1fr) 43px;gap:7px;align-items:center;min-height:0;padding:5px 7px;border-radius:12px;background:#fff0db;color:#4b3024;border-left:4px solid #d15b53}
#game .feedback-item.liked{border-left-color:#62a47a}
#game .feedback-item img{width:42px;height:42px;border-radius:11px;object-fit:cover;object-position:center 20%;background:#efc786}
#game .feedback-item>div{min-width:0}
#game .feedback-item b{display:flex;align-items:baseline;gap:5px;font-size:11px}
#game .feedback-item b small{font-size:8px;color:#8c6755}
#game .feedback-item p{margin:2px 0 0;font-size:8.5px;line-height:1.25;color:#634638;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#game .feedback-item strong{min-width:43px;font-size:20px;line-height:1;text-align:right;color:#b54e43;white-space:nowrap;word-break:keep-all}
#game .feedback-item.liked strong{color:#4e9068}
#game .result-empty{display:grid;place-items:center;height:100%;padding:18px;text-align:center;color:#e9cfaf;font-size:11px}
#game .result-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0}
#game .result-actions .game-btn[data-ui-component]{width:auto;min-width:0;min-height:48px;border-width:10px 11px;padding:1px 3px;font-size:10px}

/* 深色营业面板使用高对比文字，避免状态与配方名称融进背景。 */
#game .hud small{color:#ffe8c2;text-shadow:0 1px 2px #1f120d}
#game .hud b{color:#ffd070;text-shadow:0 1px 2px #1f120d}
#game .hud-tools .game-btn span{color:#fff8e8;text-shadow:0 1px 2px #1f120d}
#game .order-zone{color:#fff2d0}
#game .order-head h2,#game .order-head p,#game .choices legend,#game .cost-line{color:#fff2d0;text-shadow:0 1px 2px #1f120d}
#game .choice[data-ui-component="tab.normal"]{color:#fff5df;text-shadow:0 1px 2px #1f120d}
#game .choice[data-ui-component="tab.selected"]{color:#ffd873;text-shadow:0 1px 2px #1f120d}
#game .choice:disabled{color:#e5d7c2}

/* 营业同事信息：姓名强调色与现场喜好标签。 */
#game .passing-coworker h2{color:#b34f3d;text-shadow:0 2px 0 #fff8,0 3px 8px #6a352533}
#game .speech .current-preference{display:block;margin:2px 0;padding:2px 5px;border-radius:7px;background:#f3d18e;color:#603b28;font-size:8px;font-weight:900;line-height:1.15}

/* 多小料杯内分区表现：每种已选小料占据杯底一段。 */
#game .toppings{background:none;opacity:1;height:30%}
#game .topping-piece{position:absolute;left:calc(100% / var(--count) * var(--slot));bottom:0;width:calc(100% / var(--count));height:100%;border-radius:5px 5px 12px 12px;overflow:hidden}
#game .topping-piece.pearl{background:radial-gradient(circle at 25% 75%,#2e1b16 0 5px,transparent 6px),radial-gradient(circle at 65% 48%,#2e1b16 0 6px,transparent 7px),radial-gradient(circle at 78% 88%,#2e1b16 0 5px,transparent 6px)}
#game .topping-piece.grass{background:repeating-linear-gradient(45deg,#443b2c 0 8px,transparent 8px 17px)}
#game .topping-piece.fruit{background:radial-gradient(circle at 25% 72%,#f06b55 0 6px,transparent 7px),radial-gradient(circle at 68% 43%,#f2bd43 0 7px,transparent 8px),radial-gradient(circle at 76% 88%,#8acb65 0 5px,transparent 6px)}
#game .topping-piece.mochi{background:radial-gradient(ellipse at 25% 72%,#fff0d7 0 7px,transparent 8px),radial-gradient(ellipse at 68% 45%,#f6d7c7 0 8px,transparent 9px),radial-gradient(ellipse at 78% 88%,#e9f0cf 0 6px,transparent 7px)}
#game .topping-piece.osmanthus{background:repeating-linear-gradient(45deg,#e4a13e 0 7px,transparent 7px 16px)}
#game .topping-piece.chili{background:radial-gradient(ellipse at 28% 70%,#d62d28 0 6px,transparent 7px),radial-gradient(ellipse at 68% 42%,#e64a31 0 7px,transparent 8px)}
#game .topping-piece.cilantro{background:radial-gradient(ellipse at 25% 72%,#4e9c52 0 7px,transparent 8px),radial-gradient(ellipse at 70% 42%,#66ad5e 0 8px,transparent 9px)}
#game .topping-piece.soy{height:45%;background:linear-gradient(#3b211d,#24130f);opacity:.88}
#game .recipe-summary{white-space:pre-line;overflow:visible;text-overflow:clip;line-height:1.25;border-radius:10px}

/* 扩充饮品后的分类调配：保留可读按钮，不再把23项压成微型字。 */
#game .choices{display:flex;flex-direction:column;justify-content:flex-start;gap:4px}
#game .choice-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;flex:0 0 27px}
#game .choice-tab{min-width:0;border:1px solid #9d725b;border-radius:8px;padding:2px;background:#4f3329;color:#f6e8cf;font-size:8.5px;font-weight:900;cursor:pointer}
#game .choice-tab.active{background:#d68450;color:#2f211b;border-color:#ffd28b;box-shadow:inset 0 0 0 1px #fff5}
#game .active-choice-group{flex:1;min-height:0;margin:0}
#game .choice-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
#game .choice[data-ui-component="tab.normal"],#game .choice[data-ui-component="tab.selected"]{min-height:30px;border-width:5px 6px;padding:1px 2px;font-size:9px}
#game .choices legend{font-size:8.5px;line-height:10px;margin-bottom:3px}

/* 全局文字与承托底色审计：修复浅底浅字和小字号临界对比度。 */
#game .speech b{color:#5b3828;text-shadow:none}
#game .speech>span:not(.current-preference){color:#402b22;text-shadow:none}
#game .speech em{color:#65483b;text-shadow:none}
#game .art-sticker,#game .round-tag{background:#9e3f37;color:#fffaf0;font-weight:900}
#game .toast{background:#3f2c25;color:#fffaf0}
#game .toast.good{background:#356b4a;color:#fff}
#game .toast.bad{background:#9f3932;color:#fff}
#game .choice:disabled{color:#f2e5d2;opacity:.78}
#game .shop-kicker{color:#873a2d}
#game .shop-copy>b small{color:#7e3c2a}
#game .shop-copy>small{color:#684536}
#game .shop-buy em{background:#d9efd5;color:#2f673d}
#game .feedback-item b small{color:#765343}
#game .feedback-item.liked strong{color:#356f4b}
#game .pause-modal .modal-card{color:#fff1d2}
#game .pause-modal .modal-card h2{color:#ffd06e;text-shadow:0 2px 3px #24130d}
#game .pause-modal .modal-card p{color:#fff1d2;text-shadow:0 1px 2px #24130d}
