/* More cards fit into the existing counter; the tray keeps the same height. */
.orders[data-mode="queue"] .order-queue{scrollbar-width:none;padding-bottom:0;scroll-padding:2px;user-select:none}
.order-queue::-webkit-scrollbar{display:none}.order-queue::-webkit-scrollbar-thumb{background:#9eac78;border-radius:9px}
.orders[data-mode="queue"] .order-queue .order{min-width:112px;flex-basis:calc((100% - var(--counter-gap))/2.35)}
.orders[data-mode="queue"] .order-queue .paired-order{min-width:140px;flex-basis:calc((100% - var(--counter-gap))/2)}
.orders .order-queue .serve{width:100%;max-width:none}
.orders .order-queue .multiple-foods .counter-food{min-width:44px;min-height:44px}
.counter-scroll-cue{position:absolute;bottom:-9px;left:3px;font-size:10px;line-height:12px;color:#fff8e9;text-shadow:0 1px 2px #695033;pointer-events:none}
.orders .counter-reward{position:absolute;z-index:4;bottom:calc(var(--order-card-h) + 1px);right:1px;max-width:100%;min-height:29px;display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid #b69b66;border-radius:10px;padding:2px 4px;background:#fff7e6f2;color:#634c2b;font:700 10px/16px 'Segoe UI',sans-serif;box-shadow:0 2px 2px #70533626;cursor:pointer;touch-action:pan-x}
.counter-reward>span{display:inline-flex;align-items:center;gap:2px;white-space:nowrap}.counter-reward i{font-style:normal;color:#c49530}
.counter-reward .prize-item{position:relative;width:24px;height:24px;flex-shrink:0}.prize-item>svg,.prize-item>.machine-art{display:block;width:100%;height:100%}
.prize-item>b{position:absolute;right:-2px;bottom:-2px;background:#fff7df;color:#554a32;border-radius:4px;border:1px solid #cbbb90;font-size:8px;line-height:10px;min-width:10px;text-align:center}
.counter-reward .prize-xp{font-size:9px;color:#556c40}.prize-special{color:#826743}
.orders .patron-order .guest-delivery-pending{bottom:28px;left:50%;white-space:nowrap}
.orders .festival-queue-deliver{padding-bottom:30px;display:flex;flex-direction:column;justify-content:center;gap:3px;color:#58703f}
.orders .festival-queue-deliver>span{white-space:normal;font-size:11px;line-height:15px}.orders .festival-queue-deliver small{font-size:10px}
.orders .extra-food-card.multiple-foods.ready{border:2px solid #759a53;background:linear-gradient(#fffced,#e4efd1);box-shadow:0 3px 0 #69894e44}
.orders .counter-food-ready{background:radial-gradient(ellipse,#deedc6bd,transparent 76%)}
.orders .order-queue .activity-order{padding:0;align-self:stretch}
.counter-activity{display:flex;width:100%;height:100%;min-height:100px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px;border:2px solid #b79a64;border-radius:15px 15px 25px 25px;background:linear-gradient(135deg,#fff5d8,#e9d6a6);color:#635133;box-shadow:inset 0 0 0 2px #fff9e36b;cursor:pointer;font:inherit;touch-action:pan-x;text-align:center}
.activity-order:nth-last-child(2) .counter-activity{background:linear-gradient(#edf2d8,#cddbb3);border-color:#9aaa77}
.counter-activity>small{font-size:10px;line-height:13px;color:#6b5636}.counter-activity>b{font-size:11px;line-height:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.activity-art{display:block;width:43px;height:43px}.activity-art>svg,.activity-art>.machine-art{width:100%;height:100%}
.activity-badge{font:700 10px/16px 'Segoe UI','Malgun Gothic',sans-serif;padding:1px 6px;border-radius:6px;background:#fff7dfbd;color:#617441}.activity-badge i{font-style:normal;margin-left:3px}
.counter-prize-detail{display:flex;align-items:center;gap:15px;padding:12px;border:1px solid #cfba8f;border-radius:16px;background:#f7edd8}.counter-prize-detail>span{display:block;width:74px;height:74px;flex-shrink:0}.counter-prize-detail>span>svg,.counter-prize-detail .machine-art{width:100%;height:100%}.counter-prize-detail strong{font-size:17px;color:#513f2b}.counter-prize-detail p{font-size:13px;color:#695238;margin:6px 0}
[data-board-layout="tight"] .orders .order-guest{left:3px;transform:none}
[data-board-layout="tight"] .orders .queue-kind{display:none}
[data-board-layout="tight"] .orders .patron-order .guest-delivery-pending{bottom:0;left:20px;font-size:7px;line-height:9px;padding:0 2px}
[data-board-layout="tight"] .orders .counter-reward{gap:2px;padding:2px;min-height:25px;font-size:9px}
[data-board-layout="tight"] .counter-reward .prize-item{width:21px;height:21px}
[data-board-layout="tight"] .counter-reward .prize-xp{font-size:8px}
[data-board-layout="tight"] .counter-activity{min-height:0;padding:3px;gap:1px}
[data-board-layout="tight"] .activity-art{width:32px;height:30px}
[data-board-layout="tight"] .orders .festival-queue-deliver{padding:2px;justify-content:flex-start;align-items:flex-start;text-align:left}
[data-board-layout="tight"] .orders .festival-queue-deliver>span{max-width:65px;font-size:10px;line-height:12px}
[data-board-layout="tight"] .orders .festival-queue-deliver small{font-size:9px}
[data-board-layout="tight"] .counter-scroll-cue{left:auto;right:56px;font-size:9px;line-height:10px}
@media(hover:hover) and (pointer:fine){.order-queue{cursor:grab}.order-queue.dragging{cursor:grabbing!important;scroll-snap-type:none!important}.order-queue.dragging *{cursor:grabbing!important;pointer-events:none}.counter-reward:hover{background:#fffce9;border-color:#6c8e50}}
@media(min-width:900px){
 .game-shell[data-screen="merge"] .orders[data-mode="queue"] .order-queue .order{min-width:0;flex-basis:148px}
 .game-shell[data-screen="merge"] .orders .counter-reward{top:12px;bottom:auto;right:9px;max-width:calc(100% - 118px);min-height:36px;padding:4px 6px;font-size:12px;touch-action:pan-y}
 .game-shell[data-screen="merge"] .counter-reward .prize-xp{font-size:10px}
 .game-shell[data-screen="merge"] .counter-scroll-cue{display:none}
 .game-shell[data-screen="merge"] .orders .patron-order .guest-delivery-pending{bottom:-5px}
 .game-shell[data-screen="merge"] .orders .festival-queue-deliver{padding:7px;bottom:10px}
 .game-shell[data-screen="merge"] .orders .order-queue .activity-order{padding:8px}
 .game-shell[data-screen="merge"] .counter-activity{min-height:0;display:grid;grid-template-columns:64px 1fr;grid-template-rows:22px 1fr 24px;gap:4px 8px;text-align:left;padding:12px;border-radius:13px;touch-action:pan-y}
 .game-shell[data-screen="merge"] .counter-activity>small{grid-column:2;font-size:12px}.game-shell[data-screen="merge"] .counter-activity>b{grid-column:2;font-size:14px;line-height:19px;white-space:normal}.game-shell[data-screen="merge"] .activity-art{grid-row:1/4;grid-column:1;width:60px;height:65px}.game-shell[data-screen="merge"] .activity-badge{grid-column:2;justify-self:start}
}
@media(orientation:landscape) and (max-height:600px) and (max-width:899px){
 .orders[data-mode="queue"] .order-queue .order{min-width:0;flex-basis:94px;min-height:94px}.orders[data-mode="queue"] .order-queue .paired-order{flex-basis:136px;min-height:136px}
 .orders .counter-reward{top:1px;bottom:auto;min-height:24px;touch-action:pan-y}.orders .counter-reward .prize-item{width:20px;height:20px}.counter-scroll-cue{display:none}.counter-activity{min-height:90px;touch-action:pan-y}.activity-art{height:27px;width:30px}
}

/* Shallow wooden serving trays, with a linen inset and a little porcelain plate.
   Decoration stays behind the food and never changes a button's hit area. */
.game-shell .orders .order-queue .serve{
 --tray-rim:#ba9567;--tray-edge:#916a43;--tray-wash:#fff8e6;
 isolation:isolate;border:2px solid var(--tray-rim);border-bottom-width:4px;
 border-radius:16px 16px 18px 18px;
 background:linear-gradient(125deg,#fffcf28c,transparent 62%),repeating-linear-gradient(0deg,#ba976109 0 1px,transparent 1px 4px),linear-gradient(var(--tray-wash),#edddbd);
 box-shadow:0 2px 0 var(--tray-edge),0 4px 5px #63472626,inset 0 0 0 2px #fceac8,inset 0 -3px 5px #bc905030;
 transition:border-color .15s,box-shadow .15s,background-color .15s;
}
.game-shell .orders .order-queue .serve::before{
 content:'';position:absolute;inset:5px;border:1px solid #c8ad7d7a;border-radius:10px 10px 12px 12px;
 box-shadow:0 1px 0 #fffdf5,inset 0 1px 2px #a9854620;pointer-events:none;z-index:-1;
}
.game-shell .orders .order-queue .serve .order-food-art{position:relative;isolation:isolate;overflow:visible}
.game-shell .orders .order-queue .order-food-art::before{
 content:'';position:absolute;left:50%;top:64%;width:116%;height:34%;transform:translateX(-50%);
 border:1px solid #c8c2a7;border-radius:50%;background:radial-gradient(ellipse,#eee7d4 0 52%,#fffef4 56% 75%,#e3dcc4 100%);
 box-shadow:0 2px 0 #b5aa8980,0 3px 3px #664b3b24;pointer-events:none;z-index:-1;
}
.game-shell .orders .order-queue .order-food-art>svg{position:relative;z-index:1;filter:drop-shadow(0 2px 1px #71553538)}
.game-shell .orders .order-queue .serve.ready{
 --tray-rim:#7d985a;--tray-edge:#586f3d;--tray-wash:#f5f8e2;
 background:linear-gradient(125deg,#ffffff91,transparent 62%),repeating-linear-gradient(0deg,#70914609 0 1px,transparent 1px 4px),linear-gradient(var(--tray-wash),#dce7bd);
 box-shadow:0 2px 0 var(--tray-edge),0 4px 6px #36512129,inset 0 0 0 2px #f3f7db,inset 0 -3px 5px #8ca45f30;
}
.game-shell .orders .order-queue .serve.ready::before{border-color:#9fb77999}
.game-shell .orders .order-queue .counter-food{z-index:1}
.game-shell .orders .order-queue .multiple-foods .counter-food+.counter-food{border-left:1px dashed #bba47870;border-radius:0 9px 9px 0}
.game-shell .orders .order-queue .counter-food-check,.game-shell .orders .order-queue .serve[data-order].ready::after{
 z-index:3;border:2px solid #fff9e7;background:linear-gradient(#86ad60,#60863f);box-shadow:0 1px 3px #45602d55;
}
.game-shell .orders .order-queue .counter-food-count{z-index:3}
.game-shell .orders .order-queue .focused-order .serve{outline:2px solid #e5b760;outline-offset:1px}
@media(hover:hover) and (pointer:fine){
 .game-shell .orders .order-queue button.serve:hover,.game-shell .orders .order-queue .serve:has(.counter-food:hover){border-color:#ae8242;box-shadow:0 2px 0 var(--tray-edge),0 4px 7px #63472635,inset 0 0 0 2px #fff3cc}
 .game-shell .orders .order-queue button.serve.ready:hover,.game-shell .orders .order-queue .serve.ready:has(.counter-food:hover){border-color:#5f843a}
}
/* Compact navigation and legible labels without backing pills. */
.game-shell .hud .resource{flex:0 1 auto;width:auto;min-width:66px;max-width:138px;padding-right:11px}
.game-shell .hud #settings{margin-left:auto}
.hud-tools{display:flex;align-items:center;gap:5px;margin-left:auto}
.hud-tools button{display:grid;place-items:center;width:40px;height:42px;padding:2px;border:1px solid #e4d6a6;border-radius:12px;background:linear-gradient(#fcf3d8,#dfd4b0);box-shadow:0 2px 0 #4b653e}
.hud-tools button svg{width:32px;height:32px}
.game-shell[data-screen="home"] .hud-tools{display:none}
.game-shell .orders .counter-reward,.game-shell .orders .counter-reward:hover,.game-shell .orders .queue-kind,.game-shell .orders .guest-delivery-pending{background:none;border:0;box-shadow:none;color:white;text-shadow:-1px -1px 0 #24201e,1px -1px 0 #24201e,-1px 1px 0 #24201e,1px 1px 0 #24201e,0 2px 2px #000b;font-weight:750}
.game-shell .orders .counter-reward .prize-xp,.game-shell .orders .counter-reward .prize-special{color:white}
.counter-reward .prize-coin-art{display:block;width:18px;height:23px}.prize-coin-art svg{width:100%;height:100%;filter:drop-shadow(0 1px 1px #0006)}
.game-shell .orders .prize-item>b{background:none;border:0;color:white;text-shadow:-1px -1px #29221b,1px -1px #29221b,-1px 1px #29221b,1px 1px #29221b}
.game-shell .orders .counter-reward:focus-visible{outline:2px solid #fff;outline-offset:1px;border-radius:8px}
@media(max-width:899px){
 .game-shell .orders .order-shop{display:none}
 .game-shell .orders[data-mode="queue"] .order-queue{width:100%}
 .game-shell .hud{gap:6px}
 .game-shell .hud #settings{margin-left:0}
 .game-shell[data-screen="home"] .hud #settings{margin-left:auto}
 .game-shell .hud .resource strong{font-size:16px}
}
@media(max-width:359px){.hud-tools{gap:3px}.hud-tools button{width:34px;height:40px}.hud-tools button svg{width:28px;height:28px}.game-shell .hud{gap:4px}.game-shell .hud .resource{min-width:53px;padding-right:6px}.game-shell .hud .resource strong{font-size:13px}}
@media(min-width:900px){.hud-tools{display:none}}

/* Level-driven growth and an independent, touch-friendly warehouse. */
.home-shortcuts{grid-template-columns:repeat(6,minmax(0,1fr))}
.home-goal-icon>svg{width:36px;height:36px}
.cafe-management .manage-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
.manage-coin-art{display:inline-flex;width:23px;height:26px;vertical-align:middle;flex-shrink:0}.manage-coin-art>svg{width:100%;height:100%}
.part-box-shop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.part-box-shop .part-box-card{margin:0;padding:14px;min-width:0}.part-box-heading{display:flex;align-items:center;gap:10px}.part-box-heading>span{width:104px;height:104px;flex-shrink:0}.part-box-heading svg{width:100%;height:100%}.part-box-heading h3{font-size:16px;margin:0 0 5px}.part-box-families{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:12px 0}.part-box-families>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}.part-box-families span{width:56px;height:56px}.part-box-families svg{width:100%;height:100%}.part-box-families strong{font-size:11px}.part-box-families small{font-size:10px}.part-box-card .manage-action{width:100%;display:flex;justify-content:center;align-items:center;gap:7px;margin:8px 0 0}.part-box-card .manage-coin-art{width:22px;height:22px}.part-box-card.highlighted-box{border-color:#869b68}@media(max-width:600px){.part-box-shop{grid-template-columns:1fr}}
.part-family-scroll{display:flex;gap:8px;overflow-x:auto;padding:5px 2px 12px;margin-bottom:8px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#96a873 #efe1c5;overscroll-behavior-x:contain}
.part-family-scroll button{flex:0 0 85px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px;border:2px solid #ceb58b;border-radius:14px;background:linear-gradient(#fff9e9,#eddfc1);color:#5b492f;box-shadow:0 2px 0 #c0a174}
.part-family-scroll button[aria-pressed="true"]{border-color:#64804d;background:linear-gradient(#eff3dc,#cfdfb1);box-shadow:0 2px 0 #607b44}
.part-family-scroll button>span{width:48px;height:48px}.part-family-scroll button>span>svg,.part-family-scroll .machine-art{width:100%;height:100%}
.part-family-scroll strong{font-size:12px}.part-family-scroll small{font-size:10px}.part-family-scroll .locked>span{opacity:.65}
.growth-roadmap{display:grid;gap:8px}.growth-step{display:flex;align-items:center;text-align:left;gap:10px;border:1px solid #d5be91;border-radius:15px;padding:10px;background:#f3e8cd;color:#58452d}.growth-step.unlocked{background:#ecf0d9;border-color:#a7b586}.growth-step>span{width:56px;height:56px;flex-shrink:0}.growth-step>span>svg{width:100%;height:100%}.growth-step>div{flex:1}.growth-step strong,.growth-step small{display:block}.growth-step strong{font-size:14px}.growth-step small{font-size:11px;color:#657a49}.growth-step>i{font-style:normal;font-size:24px}
.bottom-dock #warehouse{width:48px;height:64px;min-height:64px;justify-content:center;gap:3px;border-radius:13px}
.warehouse-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 0 10px}.warehouse-summary>div{display:flex;flex-direction:column;gap:3px}.warehouse-summary strong{font:700 25px/1.2 'Segoe UI',sans-serif;color:#506638}.warehouse-summary strong span{font-size:14px;font-weight:400}.warehouse-summary small{font-size:12px;color:#655338}
.warehouse-summary .manage-action{margin:0;min-height:44px;display:flex;align-items:center;gap:8px;font-size:13px}
.warehouse-hint{font-size:12px;color:#6b5941;line-height:1.5;margin:8px 0}
.warehouse-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0 20px}
.warehouse-grid .inventory-slot{aspect-ratio:1;min-height:0;padding:7px;justify-content:center;border-radius:15px;box-shadow:inset 0 1px 3px #96733e35,0 2px 0 #c5a573}
.warehouse-grid .inventory-slot>svg,.warehouse-grid .inventory-slot>.machine-art{width:92%;height:92%;filter:drop-shadow(0 3px 2px #664a3530)}
.warehouse-grid .inventory-slot:hover{border-color:#7c9560}.warehouse-grid .inventory-slot:active{transform:translateY(1px)}
.warehouse-grid .empty-slot{background:#e5d5b9;border:1px solid #c9b18e;box-shadow:inset 0 2px 5px #876a3520}.warehouse-grid .empty-slot>span{font-size:24px;color:#b49b77}
.warehouse-equipment{border-top:1px solid #d3bc94;padding-top:8px}.warehouse-equipment h3{display:flex;justify-content:space-between;font-size:16px}.warehouse-equipment h3 span{font-size:13px;color:#6c8153}.warehouse-empty{padding:22px 10px;text-align:center;border:1px dashed #c8b894;border-radius:14px;color:#887459;font-size:12px}
@media(min-width:900px){.game-shell[data-screen="merge"] .bottom-dock #warehouse{width:46px;min-width:46px;height:70px;min-height:70px}}
/* Keep the same seven columns while using desktop height for larger square cells. */
.game-shell .board-heading{display:none!important}
@media(min-width:900px){
 .game-shell[data-screen="merge"],.display-app .game-shell[data-screen="merge"]{--order-rail-width:clamp(300px,26vw,380px);width:min(calc(100% - 32px),calc((var(--app-height) - 72px)*7/9 + var(--order-rail-width) + 60px));max-width:none;height:calc(var(--app-height) - 32px);grid-template-columns:var(--order-rail-width) minmax(0,1fr);gap:12px 20px}
 .game-shell[data-screen="merge"] .play-area{padding:0}
}
.home-preview-tag{top:5px;bottom:auto}
.home-memory{top:24%;right:29%}
.cafe-management .producer-shop .manage-action>span,.cafe-management .producer-shop .manage-action>small{display:block;font-size:11px;line-height:17px;white-space:nowrap}
.game-shell[data-screen="merge"] .board-frame{padding:4px;border-width:2px}



/* Keep event decisions visual and concise. */
.cafe-management .manage-festivals{grid-template-columns:1fr;align-items:start}
.cafe-management .festival-card{text-align:left;padding:12px}
.festival-card-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
#modal.cafe-management .festival-card-title h3{margin:0;font-size:17px}
.festival-card-title small{white-space:nowrap}
.festival-families{display:flex;align-items:center;gap:10px;margin:8px 0}
.festival-families>span{position:relative;display:flex;align-items:center;gap:4px;flex:0 0 auto}
.festival-families .machine-art{width:36px;height:36px;flex:0 0 36px}
.festival-families small{white-space:nowrap}
.festival-families svg{width:36px;height:36px}
.festival-families i{color:#5b793e;font-style:normal;font-size:12px}
.festival-prize-heading{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#635038}
.festival-prize-heading>span{font:700 12px Arial,sans-serif;color:#657744}
.festival-prize-track{gap:6px;margin:6px 0 9px}
.festival-prize-track>div{position:relative;padding:4px 2px;background:#f8efd9}
#modal.cafe-management .festival-prize-track small{font:700 10px Arial,sans-serif;line-height:12px}
.festival-prize-track .festival-prize-art{width:min(100%,44px);height:44px;margin:2px auto}
.festival-prize-track .current-prize{outline:2px solid #749554;outline-offset:1px}
.festival-prize-track .claimed-prize{opacity:.55}
.festival-current-reward{display:flex;align-items:center;gap:8px;margin-top:5px}
.festival-current-reward .festival-prize-art{width:42px;height:42px;flex:0 0 42px}
.festival-current-reward strong{font-size:13px}.festival-current-reward>b{margin-left:auto;font-size:11px;white-space:nowrap}
#modal.cafe-management .festival-lock{font-size:12px;line-height:1.4;margin:4px 0}
.cafe-management .festival-card .manage-action{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;font-size:14px}
.festival-card .manage-action>span:last-child{margin-left:5px}
.festival-card .manage-coin-art{width:22px;height:22px}
@media(min-width:760px){.cafe-management .manage-festivals{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* A little more room for money without enlarging the numeral or surrounding icons. */
.game-shell .hud .resource{width:var(--coin-box-width,99px);flex:0 1 var(--coin-box-width,99px);min-width:99px;max-width:207px}
.game-shell .hud .resource{padding-left:36px} /* 8px after the 36px coin at left:-8px. */
.cafe-management .manage-tabs{--manage-tabs-gap:8px;gap:var(--manage-tabs-gap);grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,calc((100% - 4 * var(--manage-tabs-gap)) * .3))}
@media(max-width:359px){.game-shell .hud .resource{min-width:79.5px}}
@media(max-width:350px){.cafe-management .manage-tabs{--manage-tabs-gap:7px}}
/* Events flow in two columns across level boundaries. */
.cafe-management .manage-festivals{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:759px){
 .cafe-management .festival-card{padding:9px 6px}
 #modal.cafe-management .festival-card-title h3{font-size:13px;min-width:0;overflow-wrap:anywhere}
 .festival-card-title{gap:3px}.festival-card-title small{font-size:9px}
 .festival-families{flex-wrap:wrap;gap:3px;margin:6px 0}
 .festival-families>span{gap:2px}.festival-families small{font-size:9px}
 .festival-families .machine-art,.festival-families svg{width:24px;height:24px;flex-basis:24px}
 .festival-prize-heading{font-size:10px;gap:3px}.festival-prize-heading>span{font-size:9px}
 .festival-prize-track{gap:2px}.festival-prize-track .festival-prize-art{height:28px}
 #modal.cafe-management .festival-prize-track>div b{font-size:8px;white-space:nowrap}
 .cafe-management .festival-card .manage-action{font-size:12px;gap:2px}
 #modal.cafe-management .festival-lock{font-size:10px}
}
@media(max-width:350px){
 .festival-prize-track>div{padding-left:0;padding-right:0}
 #modal.cafe-management .festival-prize-track>div b{font-size:7px}
}
.next-level-reward{display:flex;align-items:center;gap:12px;border:1px solid #b9c496;border-radius:14px;padding:12px;background:#eff2df;margin:12px 0 8px}
.level-prize-art{width:58px;height:58px;flex:0 0 58px}.level-prize-art>svg{width:100%;height:100%}
.next-level-reward>div{display:flex;flex-direction:column;gap:3px;min-width:0}.next-level-reward strong{font-size:14px;color:#51412c}.next-level-reward small{font-size:12px;color:#4d6639}.next-level-reward>div>span{display:flex;align-items:center;gap:3px;font-size:13px;font-weight:700}.next-level-reward .manage-coin-art{width:19px;height:21px}
.level-reward-guide{margin:0 0 16px}.level-reward-guide summary{font-size:12px;color:#6c603f}.level-reward-guide p{font-size:12px;line-height:1.6}

/* Earned gifts stay beside the customers, leaving the item details unobstructed. */
.reward-stack{position:absolute;z-index:6;left:2px;bottom:8px;width:72px;height:90px;isolation:isolate}
.reward-stack-claim{position:relative;display:block;width:100%;height:100%;border:0;padding:0;background:none;box-shadow:none;cursor:pointer;touch-action:manipulation;isolation:isolate}
.reward-playing-card{position:absolute;left:6px;bottom:4px;width:58px;height:76px;display:grid;place-items:center;border:2px solid #bd9c65;border-radius:10px;background:linear-gradient(145deg,#fffdf3,#efdfbc);box-shadow:0 3px 3px #513b3340,inset 0 0 0 2px #fff5d8;transform:translate(calc(var(--depth)*-3px),calc(var(--depth)*-4px)) rotate(calc(var(--depth)*-7deg));transform-origin:50% 95%;z-index:calc(4 - var(--depth));pointer-events:none}
.reward-playing-card::after{content:'';position:absolute;inset:5px;border:1px solid #d1b889;border-radius:5px;pointer-events:none}
.reward-playing-card.back-card{background:linear-gradient(135deg,#e4ebce,#b8c99b)}
.reward-playing-card.back-card .reward-card-art{opacity:.65}
.reward-card-art{display:block;width:49px;height:57px;filter:drop-shadow(0 2px 1px #63432138)}
.reward-card-art>svg,.reward-card-art>.machine-art{display:block;width:100%;height:100%}
.reward-stack-count{position:absolute;right:0;bottom:0;z-index:6;min-width:23px;padding:3px 6px;border:2px solid #fff2d1;border-radius:12px;background:#6e8952;color:#fff;font:700 12px/15px CafeText,sans-serif;box-shadow:0 2px 3px #30402640;pointer-events:none}
.reward-stack-claim:focus-visible{outline:3px solid #fff7c9;outline-offset:3px;border-radius:10px}
.reward-stack-claim:active .front-card{transform:translateY(2px)}
.reward-arrived .front-card{animation:reward-card-arrive .42s ease-out both}
@keyframes reward-card-arrive{from{opacity:.3;transform:translateY(-12px) rotate(8deg) scale(.9)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.reward-arrived .front-card{animation:none}}
@media(max-width:899px){
 .game-shell .orders[data-mode="queue"].has-rewards{padding-left:82px}
 .game-shell .orders[data-mode="queue"].has-rewards .order-queue{min-width:0;flex:1;width:calc(100% - 82px)}
}
@media(min-width:900px){
 .game-shell[data-screen="merge"] .reward-stack{left:10px;top:5px;bottom:auto;height:78px}
 .game-shell[data-screen="merge"] .reward-playing-card{height:66px}
 .game-shell[data-screen="merge"] .reward-card-art{width:46px;height:50px}
 .game-shell[data-screen="merge"] .orders[data-mode="queue"].has-rewards .order-shop{height:92px;min-height:92px;flex-basis:92px;padding-left:92px}
 .game-shell[data-screen="merge"] .orders.has-rewards .order-shop::before{font-size:16px}
}
.game-shell[data-screen="merge"] #selection-label{white-space:normal;overflow:visible;text-overflow:clip;line-height:15px;overflow-wrap:anywhere;font-size:12px}
.game-shell[data-screen="merge"] #selection-hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:359px){
 .game-shell[data-screen="merge"] .bottom-dock{gap:4px}
 .game-shell[data-screen="merge"] .bottom-dock #management{width:48px;min-width:48px}
 .game-shell[data-screen="merge"] .bottom-dock #management .dock-icon{width:44px;height:44px}
 .game-shell[data-screen="merge"] .bottom-dock #management .dock-icon>svg{width:40px;height:40px}
 .game-shell[data-screen="merge"] .bottom-dock #warehouse,.game-shell[data-screen="merge"] .bottom-dock #collection{width:40px;min-width:40px}
 .game-shell[data-screen="merge"] #selection-hint{display:none}
}
@media(max-width:899px){
 [data-board-layout="tight"] .reward-stack{height:72px;bottom:4px}
 [data-board-layout="tight"] .reward-playing-card{height:60px}
 [data-board-layout="tight"] .reward-card-art{width:45px;height:46px}
}

/* A producer keeps its compact x2 control beside the selected-item name. */
.production-boost{flex:0 0 44px;width:44px;min-height:46px;padding:3px 1px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid #c7b88b;border-radius:10px;background:#f4ebd2;color:#62593e;box-shadow:0 2px 0 #a7966955;line-height:1.1}
.production-boost b{font-size:18px;font-weight:800}.production-boost small{font-size:9px;font-variant-numeric:tabular-nums;white-space:nowrap}
.production-boost[data-mode="active"]{background:#718851;border-color:#596e3b;color:#fffdf1;box-shadow:inset 0 0 0 1px #e9efbf66,0 2px 0 #485d32}
.production-boost[data-mode="cooldown"]{opacity:1;background:#e5dec8;color:#756e5a;box-shadow:none}
.game-shell[data-screen="merge"] .item-panel.has-boost #selection-art{display:none}

.game-shell[data-screen="merge"] .item-panel.has-boost #selection-hint{display:none}
.boost-marker{position:absolute;top:3px;right:3px;z-index:3;padding:1px 4px;border-radius:8px;background:#637d48;color:white;font-size:11px;font-weight:800;line-height:15px;box-shadow:0 1px 3px #38442555;pointer-events:none}
.boost-marker[hidden]{display:none}.cell[data-boost="active"]{box-shadow:inset 0 0 0 2px #8aa564}
.boost-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;margin:12px 0;border:1px solid #d8c89d;border-radius:13px;background:#f7efd9}
.boost-detail strong{font-size:14px}.boost-detail p{margin:5px 0;font-size:12px}.boost-detail small{font-size:10px;color:#817354}.boost-detail .production-boost{width:58px;flex-basis:58px;min-height:54px}.boost-detail .production-boost small{color:inherit}

/* Ready research sits among the order cards; every food is the same submission. */
.menu-queue-title{position:absolute;inset:2px 7px 70px;display:flex;flex-direction:column;justify-content:center;gap:2px;border:1px solid #c0cba2;border-radius:12px;background:#f6f1dc;color:#61533d;padding:3px}
.menu-queue-title strong{font-size:12px;line-height:1.3;word-break:keep-all;overflow-wrap:anywhere}.menu-queue-title small,.menu-queue-title span{font-size:10px}.menu-queue-title small{color:#637b43}
.menu-queue-bonus{position:absolute;bottom:50px;left:0;right:0;text-align:center;font-size:10px;color:#fff;text-shadow:-1px 0 #514632,1px 0 #514632,0 -1px #514632,0 1px #514632;pointer-events:none}
@media(min-width:900px){.menu-queue-title{inset:8px auto 8px 7px;width:98px}.menu-queue-bonus{left:113px;right:5px;bottom:92px}}
/* Trash contents occupy space only in the explicitly opened sheet. */

/* The delivery action shares the existing two-line title area. */
.cafe-management .known-menu{position:relative;--menu-action-width:142px}
.cafe-management .known-menu>small,.cafe-management .known-menu>h3{max-width:calc(100% - var(--menu-action-width) - 8px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cafe-management .known-menu>[data-action="signature-serve"]{position:absolute;top:14px;right:14px;width:var(--menu-action-width);min-height:42px;margin:0;padding:8px 5px;font-size:11px;white-space:nowrap}
@media(max-width:350px){
 .cafe-management .known-menu{--menu-action-width:124px}
 #modal.cafe-management .known-menu>[data-action="signature-serve"]{top:11px;right:11px;font-size:10px}
 #modal.cafe-management .known-menu>h3{font-size:14px}
}

.bottom-dock #sell{width:40px;min-width:40px;height:64px;min-height:64px;justify-content:center;flex-shrink:0}
.bottom-dock #sell .dock-icon{width:38px;height:40px;border-radius:12px}
.bottom-dock #sell .dock-icon>svg{width:32px;height:34px}
.sale-button:disabled{opacity:.5}.sale-button.sale-undo .dock-icon{background:#e1ecd0;box-shadow:0 0 0 2px #c5d5ab}
#warehouse.warehouse-drop .dock-icon{background:#dce8c4;box-shadow:0 0 0 3px #8fa86b;scale:1.08}
/* Up to three pinned menus lead the counter. */
.cafe-management .menu-card .menu-pin{display:grid;place-items:center;width:44px;height:44px;min-height:44px;flex:0 0 44px;margin:0;padding:0;border:1px solid #d6c19a;border-radius:12px;background:linear-gradient(#fff8e7,#eddbb8);color:#9da982;box-shadow:inset 0 1px 0 #fff,0 2px 0 #c8ae8150}
.cafe-management .menu-card .menu-pin .pin-icon{width:34px;height:34px;display:block;filter:grayscale(1);opacity:.65}
.cafe-management .menu-card .menu-pin[aria-pressed="true"]{color:#d97e6e;background:linear-gradient(#fff0d8,#f1d9b4);border-color:#b98b59;box-shadow:inset 0 1px 0 #fff,0 2px 0 #b4874e50}
.cafe-management .menu-card:not(.known-menu)>.menu-pin{position:absolute;top:14px;right:14px}
.cafe-management .menu-card:not(.known-menu):not(.locked-card)>small,.cafe-management .menu-card:not(.known-menu):not(.locked-card)>h3{padding-right:52px}
.cafe-management .menu-card-foot{display:flex;align-items:center;gap:8px}
.cafe-management .menu-card-foot>p{flex:1;min-width:0;margin:0}
.cafe-management .pinned-menu{border-color:#c79a5d}
.menu-pinned-order .menu-queue-title{border-color:#c79a5d;background:#fbeed6}
.menu-queue-title small .pin-icon{width:11px;height:11px;display:inline-block;vertical-align:-1px;margin-right:2px;color:#c0563f}

/* Compact, separate research, reward and pin indicators. */
.part-box-heading{flex-direction:column;gap:2px;text-align:center}
.part-box-heading h3{margin:0;word-break:keep-all}
.menu-summary{grid-column:1/-1;display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:8px;margin:0 0 6px}
.menu-summary>div{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:110px;padding:10px 6px;border:1px solid #dbc69e;border-radius:17px;background:linear-gradient(#fffaf0,#f3e6ca);box-shadow:0 3px 0 #ceb58b30}
.menu-summary small{font-size:11px;color:#8a7354;font-weight:700}
.menu-summary strong{font-size:22px;line-height:1.2;color:#5b6546;white-space:nowrap}
.menu-summary strong span{font-size:12px;color:#947f60}
.menu-summary .menu-summary-art,.menu-summary .manage-coin-art{display:block;width:28px;height:28px}
.menu-summary-art svg{width:100%;height:100%}
.menu-summary progress{width:85%;height:5px;appearance:none;border:0;border-radius:9px;overflow:hidden;background:#e3d7be}
.menu-summary progress::-webkit-progress-bar{background:#e3d7be}
.menu-summary progress::-webkit-progress-value{background:#94a875;border-radius:9px}
.menu-summary progress::-moz-progress-bar{background:#94a875}
.menu-summary-pins>div{display:flex;gap:2px;margin:3px 0}
.menu-summary-pins .pin-icon{display:block;width:24px;height:29px;color:#c6c4b3;opacity:.4;filter:grayscale(1)}
.menu-summary-pins .filled .pin-icon{color:#d97e6e;opacity:1;filter:none}
.menu-pin-count{font-size:12px;color:#877154;font-weight:700}
.cafe-management .menu-card .menu-pin:disabled{opacity:.45}
@media(max-width:350px){.menu-summary{gap:5px}.menu-summary strong{font-size:20px}.menu-summary-pins .pin-icon{width:21px}}

.settings-save-actions{margin-top:16px}

.cafe-management .menu-card .menu-pin[aria-pressed="true"] .pin-icon{filter:none;opacity:1}
/* Equal mobile dock frames and artwork sizes for home, warehouse and sale. */
@media(max-width:899px){
 .game-shell[data-screen="merge"] .bottom-dock{--dock-button-size:48px;--dock-icon-size:44px;--dock-art-size:38px}
 .game-shell[data-screen="merge"] .bottom-dock :is(#management,#warehouse,#sell){width:var(--dock-button-size);min-width:var(--dock-button-size);height:64px;min-height:64px}
 .game-shell[data-screen="merge"] .bottom-dock :is(#management,#warehouse,#sell) .dock-icon{width:var(--dock-icon-size);height:var(--dock-icon-size);border-radius:13px}
 .game-shell[data-screen="merge"] .bottom-dock :is(#management,#warehouse,#sell) .dock-icon>svg{width:var(--dock-art-size);height:var(--dock-art-size)}
}
@media(max-width:359px){
 .game-shell[data-screen="merge"] .bottom-dock{--dock-button-size:40px;--dock-icon-size:38px;--dock-art-size:32px}
}

/* A guest opens a paid order change without taking room from the merge board. */
.orders .customer-order button.customer-order-details{border:0;padding:0;background:none;cursor:pointer;min-width:44px;min-height:44px;touch-action:pan-x}
.customer-order-details>span{display:block;width:100%;height:100%}.customer-order-details>span>svg{display:block;width:100%;height:100%}
.order-change-label{position:absolute;bottom:auto;top:15%;left:85%;transform:none;padding:2px 6px;border:1px solid #a4b587;border-radius:8px;background:#edf2dcf5;color:#5d7447;white-space:nowrap;font-size:9px;line-height:13px;box-shadow:0 1px 2px #554b3022}
.customer-order-details:focus-visible{outline:3px solid #829d5d;outline-offset:2px;border-radius:12px}
.order-change-needs{display:flex;gap:10px;justify-content:center;margin:12px 0}.order-change-needs>div{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;flex:1;padding:10px;border:1px solid #d6c29d;border-radius:13px;background:#f3ead5}
.order-change-needs span{display:block;width:58px;height:58px}.order-change-needs svg{display:block;width:100%;height:100%}.order-change-needs small{font-size:11px;color:#7e6846;text-align:center;line-height:1.5;word-break:keep-all}
.order-change-cost{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0;color:#93713f;font-size:17px}.order-change-cost small{font-size:11px;color:#907e60}.order-change-shortage{font-size:12px;color:#a2644c}
@media(min-width:900px){.game-shell[data-screen="merge"] .orders button.customer-order-details{touch-action:pan-y}.order-change-label{top:auto;bottom:0;left:50%;transform:translateX(-50%);font-size:10px;line-height:14px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:899px){.orders button.customer-order-details{touch-action:pan-y}.order-change-label{top:auto;bottom:-2px;left:50%;transform:translateX(-50%);font-size:8px;padding:1px 3px}}

[data-board-layout="tight"] .order-change-label{top:0;font-size:8px;line-height:10px;padding:1px 3px}

/* Keep late warehouse expansion labels together on narrow phones. */
@media(max-width:359px){.warehouse-summary .manage-action{font-size:12px;gap:4px;padding:8px 6px;white-space:nowrap}.warehouse-summary small{word-break:keep-all}}

/* v1.105: management entry and pinned menu shortcuts. */
.hud-tools button{width:44px;height:44px;min-width:44px;min-height:44px}
.cafe-management .pinned-menu-summary{grid-column:1/-1;padding:12px;border:1px solid #d0b17d;border-radius:16px;background:#fff7e6}
.pinned-menu-summary h3{margin:0 0 8px;font-size:15px}
.pinned-menu-summary .pinned-menu-list{display:grid;gap:8px}
.pinned-menu-summary .pinned-menu-row{display:flex;align-items:center;gap:8px;min-width:0}
.pinned-menu-row .pinned-menu-art{width:44px;height:44px;flex:0 0 44px}
.pinned-menu-art svg{width:100%;height:100%}
.pinned-menu-row .pinned-menu-copy{flex:1;min-width:0}
.pinned-menu-copy strong,.pinned-menu-copy small{display:block;overflow-wrap:anywhere}
.pinned-menu-copy strong{font-size:13px;line-height:1.4}.pinned-menu-copy small{font-size:11px;color:#77734e}
.pinned-menu-row .manage-action{width:auto;min-width:78px;min-height:44px;flex:0 0 auto;margin:0;padding:8px;font-size:12px}
.pinned-menu-summary .pinned-menu-empty{margin:0;font-size:12px;color:#77734e}

/* Always reachable, outside the order rail and its clipping/scroll position. */
.ready-order-bar{position:absolute;left:0;right:0;top:-48px;height:44px;z-index:8;flex-shrink:0}
.ready-order-submit{width:100%;height:44px;min-height:44px;display:flex;align-items:center;gap:8px;padding:5px 12px;border:1px solid #4e713e;border-radius:12px;background:linear-gradient(#87a961,#628544);color:#fffce9;box-shadow:0 2px 0 #405e32;font:inherit;cursor:pointer;touch-action:manipulation}
.ready-order-submit strong{font-size:13px;white-space:nowrap}.ready-order-submit>span{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.ready-order-submit small{font-size:11px;white-space:nowrap}
.ready-order-submit:disabled{visibility:hidden;pointer-events:none}
.ready-order-submit:focus-visible{outline:3px solid #fff4bc;outline-offset:1px}
/* Phone portrait: ready cards come first and submit themselves, so no reserved bar above the cafe. */
@media(max-width:899px) and (orientation:portrait){.game-shell[data-screen="merge"] .ready-order-bar{display:none}}
@media(min-width:900px){.game-shell[data-screen="merge"] .orders .ready-order-bar{position:static;order:-2;height:52px;padding:4px 8px;flex:0 0 52px}.ready-order-submit strong{font-size:12px}.ready-order-submit>span{font-size:11px}}
@media(max-width:899px) and (orientation:landscape){.ready-order-submit{gap:4px;padding:4px 6px;flex-wrap:wrap;justify-content:center}.ready-order-submit strong{font-size:11px}.ready-order-submit>span{flex-basis:100%;text-align:center;font-size:10px;line-height:12px}.ready-order-submit small{position:absolute;right:5px;top:3px;font-size:9px}}
@media(min-width:900px){.game-shell[data-screen="merge"] .orders .reward-stack{top:57px}}
@media(max-width:899px) and (orientation:landscape){
 .game-shell .orders[data-mode="queue"].has-rewards{padding-left:0;padding-bottom:88px}
 .game-shell .orders[data-mode="queue"].has-rewards .order-queue{width:100%;min-height:0;flex:1}
}
