/* v6 — Western casual cooking-game materials.
   Changes paint and depth only; accessibility.css owns safe areas and hit geometry.
   Bright action labels use a dark 2px outline, not white-on-lime contrast alone. */
:root{
 --candy-orange:linear-gradient(#ffb856 0%,#ff9d37 34%,#f58728 62%,#dc6923);
 --candy-lime:linear-gradient(#caff35 0%,#a6f016 14%,#79dc08 55%,#55be06);
 --candy-blue:linear-gradient(#7be9ff 0%,#32c9f3 18%,#119ee0 60%,#0879bf);
 --candy-gold:linear-gradient(#fff27c 0%,#ffdc33 22%,#ffbc0c 70%,#f39b08);
 --candy-red:linear-gradient(#ff9691 0%,#f75e60 28%,#dc3946 68%,#b92538);
 --candy-cream:linear-gradient(110deg,#fffdf0,#fff5e2 65%,#fae9ca);
 --candy-outline:#37321f;
}
body{background:radial-gradient(ellipse at 50% 20%,#5250a0,#282b58 82%);}
.stage,.stage.portrait-layout{background:#e9b874;box-shadow:0 16px 70px #14142b80;}
.stage button{font-weight:800;}
.stage :is(.primary,.secondary,.icon-button,.journal-claim.ready){
 border:2px solid #fff4bb;border-radius:17px;color:#fffdf0;
 background:var(--candy-lime);
 box-shadow:inset 0 2px 1px #efff9c,inset 0 -4px 0 #3a9908,0 4px 0 #37761e,0 6px 7px #60361545;
 text-shadow:0 2px 0 var(--candy-outline),1px 0 var(--candy-outline),-1px 0 var(--candy-outline);
 -webkit-text-stroke:2px var(--candy-outline);paint-order:stroke fill;
}
.stage .secondary{
 background:var(--candy-blue);border-color:#d2f4ff;
 box-shadow:inset 0 2px 1px #c2f7ff,inset 0 -4px 0 #0965ab,0 4px 0 #1d4d82,0 6px 7px #60361540;
}
.stage .icon-button{
 border-radius:50%;background:var(--candy-orange);
 box-shadow:inset 0 2px 0 #ffdf91,inset 0 -3px 0 #cb5d1c,0 3px 0 #874123,0 5px 7px #47231850;
}
.stage .modal-close{
 background:var(--candy-red);border-color:#fff4d8;
 box-shadow:inset 0 2px 0 #ffd0ae,inset 0 -3px 0 #a72a37,0 3px 0 #792b2e;
}
.stage :is(.primary,.secondary,.icon-button):active:not(:disabled){
 transform:translateY(2px);box-shadow:inset 0 2px 3px #3d281c44,0 1px 0 #694529;
}
.stage :is(.primary,.secondary,.journal-claim):disabled{
 background:linear-gradient(#e7e2d8,#c6beb1);color:var(--a11y-disabledInk);
 border-color:#fff9e7;text-shadow:none;-webkit-text-stroke:0;
 box-shadow:inset 0 2px 0 #fff7e5,0 3px 0 #90877b;opacity:1;
}
.stage button:focus-visible{outline:3px solid #fffdf0;outline-offset:2px;box-shadow:0 0 0 6px #164e87;}
.stage :is(.topbar,.game-header){
 background:var(--candy-orange);border-color:#ffd87a;
 box-shadow:inset 0 2px 0 #ffe6a0,inset 0 -3px 0 #ce6620,0 4px 0 #9d4a27aa;
}
.stage.portrait-layout .topbar,.stage.portrait-layout .game-header{border-radius:0 0 20px 20px;}
.stage :is(.brand,.level-tag b){color:#fffdf0;text-shadow:0 2px 0 #663e24;-webkit-text-stroke:1.5px #663e24;paint-order:stroke fill;}
.stage .brand-seal{border-radius:12px;background:var(--candy-red);border:2px solid #ffe7a6;box-shadow:inset 0 2px 0 #ffc399,0 3px 0 #9d3928;}
.stage :is(.currency,.customer-count){background:var(--candy-cream);color:var(--a11y-ink);border:2px solid #d79550;box-shadow:inset 0 2px 0 #fff,0 2px 2px #8c451840;}
.stage .goal-hud{border-radius:18px;background:linear-gradient(#8e441f,#b46130);box-shadow:inset 0 2px 4px #5427168c;border-color:#ffbf72;}
.stage .goal-track{background:#7e351f;border:1px solid #f3be75;box-shadow:inset 0 2px 2px #572a1b88;}
.stage .goal-track>i,.stage .achieved .goal-track>i,.stage .journey-progress i{background:var(--candy-lime);box-shadow:inset 0 1px 0 #e7ff9a;}
.stage .awning{background:repeating-linear-gradient(90deg,#fff8de 0 42px,#ee5352 42px 84px);box-shadow:inset 0 -3px 4px #9a39222c;}
.stage .game-shade{background:linear-gradient(#29257114,transparent 60%);}
.stage .map-vignette{background:linear-gradient(#22204608,transparent 65%,#34212644);}
.stage .map-intro{background:var(--candy-cream);border:3px solid #f4a137;border-radius:24px;box-shadow:inset 0 0 0 2px #fffce5,0 5px 0 #a95c2c66;}
.stage h1,.stage h1>span{color:#854321;text-shadow:0 2px 0 #fff4c0;}
.stage .chapter-switch button,.stage .journal-tabs button{border-radius:14px;border-color:#ce8c44;box-shadow:inset 0 2px 0 #fff,0 3px 0 #ac7135;}
.stage .chapter-switch button.selected,.stage .journal-tabs button.selected{background:var(--candy-gold);color:#542f18;border-color:#fff3b6;box-shadow:inset 0 2px 0 #ffffb1,0 3px 0 #b97820;}
.stage .node-circle{background:linear-gradient(#e6e2db,#b6b0a8);color:#5c5145;border-color:#fff8e6;box-shadow:inset 0 3px 0 #fff,0 5px 0 #81766b,0 0 0 3px #ffffff40;}
.stage .unlocked .node-circle{background:var(--candy-gold);color:#703d1b;border-color:#fff6b3;box-shadow:inset 0 3px 0 #fff9bb,0 5px 0 #b47325,0 0 0 3px #fff1b87a;}
.stage .next-node .node-circle{background:var(--candy-lime);color:#25420c;border-color:#fff8c4;text-shadow:0 1px 0 #e5ffaf;box-shadow:inset 0 3px 0 #edffab,0 5px 0 #518725,0 0 0 5px #fff0b277;}
.stage .node-caption{border:1px solid #e1ad68;box-shadow:0 2px 3px #82431833;}
.stage .route-heading{color:#542f18;background:#fff5e2e8;border-radius:10px;}
.stage .route-heading b{color:#542f18;text-shadow:none;}
.stage .portrait-route path{stroke:#fff4d5;stroke-width:7;filter:drop-shadow(0 2px 0 #b27943aa);}
.stage.portrait-layout :is(.mobile-shop-nav,.map-footer .journal-entry){
 background:var(--candy-gold);color:#542f18;border:2px solid #fff3be;border-radius:18px;
 text-shadow:none;-webkit-text-stroke:0;box-shadow:inset 0 2px 0 #fffec5,inset 0 -3px 0 #eba010,0 4px 0 #9d6025;
}
.stage .order-bubble,.stage.portrait-layout .order-bubble{
 background:linear-gradient(105deg,#fffef4,#fff8e9 70%,#f7e8cb);
 border-color:#d6ad74;border-radius:22px;
 box-shadow:inset 0 0 0 2px #fffdf4,0 4px 0 #80503270,0 6px 8px #39283230;
}
.stage .order-bubble:after,.stage.portrait-layout .order-bubble:after{background:#fff9e9;border-color:#d6ad74;}
.stage .impatient .order-bubble{border-color:#d03a37;}
.stage .vip-customer .order-bubble{border-color:#f6b31b;box-shadow:inset 0 0 0 2px #fff4b3,0 4px 0 #ad752d88;}
.stage .patience-meter{border:1px solid #c9ba85;background:#e7dabe;box-shadow:inset 0 1px 2px #8b773f66;border-radius:9px;}
.stage .counter-rail,.stage.portrait-layout .counter-rail{background:linear-gradient(#65616a,#303543);border-top-color:#c3b7a1;box-shadow:inset 0 1px 0 #e5d6b4,0 3px 0 #9a754b;}
.stage .kitchen,.stage.portrait-layout .kitchen{
 background:linear-gradient(90deg,#b09a7933,transparent 20%,#fff7d733 70%,#82613822),linear-gradient(#dfcda5 0%,#e8d9b7 67%,#cda875 68%,#e3bf8b 96%,#b38048);
 border-top-color:#f8e2b8;box-shadow:inset 0 4px 6px #805e3644;
}
.stage .griddle,.stage.portrait-layout .griddle{
 background:linear-gradient(135deg,#ec5760,#a51834);border-color:#a81c32;border-top-color:#ff9b8c;border-left-color:#f97979;
 border-radius:12px;box-shadow:inset 0 1px 1px #ffb4a2,0 4px 0 #681c2b;
}
.stage .griddle-slot,.stage.portrait-layout .griddle-slot{
 background:repeating-linear-gradient(115deg,#333b43 0 8px,#202831 9px 13px,#59616b 14px 16px);
 border:2px solid #6d7379;border-radius:9px;box-shadow:inset 0 2px 4px #0c1528,0 1px 0 #ffb09b77;
}
.stage .griddle-cross{color:#bfc7ce;text-shadow:0 2px 0 #141b26;}
.stage .plates,.stage.portrait-layout .plates{
 background:linear-gradient(125deg,#e4edf4,#aebfce 48%,#d3e1e9);border-color:#889dad;border-top-color:#f1f7fb;border-left-color:#e1eaf2;border-radius:12px;
 box-shadow:inset 0 2px 2px #ffffff80,0 4px 0 #6a7c8d;
}
.stage .plate-slot,.stage.portrait-layout .plate-slot{border:1px solid #90a8b8;border-radius:8px;background:linear-gradient(135deg,#d7e6ef,#bdcfda);box-shadow:inset 0 2px 2px #8196a433;}
.stage .plate-dish,.stage.portrait-layout .plate-dish{background:none;border:0;box-shadow:none;}
.stage .ingredient,.stage.portrait-layout .ingredient{
 background:linear-gradient(#f8e5b8,#eacb8c);border-color:#be9251;border-top-color:#fff6d7;border-left-color:#fff0c9;border-radius:12px;
 box-shadow:inset 0 2px 0 #fff8dd,0 3px 0 #997037;
}
.stage .ingredient:disabled{opacity:1;filter:saturate(.4);}
.stage .tea-tray,.stage.portrait-layout .tea-tray{background:linear-gradient(#c78a4f,#a76636);border-color:#e8bd7c;border-radius:20px;box-shadow:inset 0 2px 0 #e8ad69,0 3px 0 #784523;}
.stage .cup-outline{border-color:#f4d9ad;background:#dbab6a55;}
.stage .tea-refill>div{background:#8a5630;border-color:#fce1b0;}
.stage .tea-refill i{background:var(--candy-lime);}
.stage .game-footer,.stage.portrait-layout .game-footer{background:linear-gradient(#90562e,#713e24);border-color:#e6b773;}
.stage .game-footer :is(span,b,button){color:#fff7dc;text-shadow:none;}
.stage .overlay{background:#17172bb3;backdrop-filter:blur(2px);}
.stage .modal,.stage.portrait-layout .modal{
 background:var(--candy-cream);border-color:#f4a43d;border-radius:25px;
 box-shadow:inset 0 0 0 2px #fff7cb,inset 0 -4px 0 #eed8ad,0 5px 0 #ad5c26,0 8px 0 #69331e70,0 20px 45px #17152d66;
}
.stage .dialog-title,.stage :is(.level-modal,.shop-modal,.upgrade-modal,.chest-modal)>.dialog-title{
 background:var(--candy-orange);color:#fffdf0;border-bottom:3px solid #bb622b;border-radius:19px 19px 17px 17px;
 box-shadow:inset 0 2px 1px #ffdd98,0 3px 3px #984c2633;
 text-shadow:0 2px 0 #57331f,1px 0 #57331f,-1px 0 #57331f;
 -webkit-text-stroke:2px #57331f;paint-order:stroke fill;font-weight:900;
}
.stage .dialog-title:before{display:none;}
.stage .result-modal>.dialog-title{
 background:linear-gradient(#ff734c,#ec452e 48%,#cc2d27);border-color:#ffcb4a;
 box-shadow:inset 0 2px 1px #ffb170,0 4px 0 #9c3224;
}
.stage .result-stars .star.earned{filter:drop-shadow(0 3px 1px #bd7c2d80);}
.stage .result-stats{background:#f1dfbf;border-color:#dfc8a6;box-shadow:inset 0 2px 2px #c4a77b44;}
.stage .result-cat{filter:drop-shadow(0 0 20px #ffd35588);}
.stage .stage-picker button{background:linear-gradient(#fffdf0,#efddbc);border-color:#d9bc8c;border-radius:18px;box-shadow:inset 0 2px 0 #fff,0 3px 0 #b7986a;}
.stage .stage-picker button.selected{background:var(--candy-gold);border-color:#ffefb4;box-shadow:inset 0 2px 0 #fffda7,0 4px 0 #bf812b;}
.stage .level-facts{background:#ead8bc;border-color:#dcc4a2;border-radius:20px;box-shadow:inset 0 2px 3px #b29a7840;}
.stage .booster{background:linear-gradient(#fffbed,#ead7b4);border-color:#cdb58c;border-radius:22px;box-shadow:inset 0 2px 0 #fff,0 3px 0 #af9168;}
.stage .booster.chosen{background:linear-gradient(#f1ffce,#d3ef94);border-color:#76a12c;}
.stage .booster:disabled{opacity:1;filter:saturate(.15);}
.stage .shop-grid,.stage.portrait-layout .shop-grid{
 background:repeating-linear-gradient(0deg,#a84c4b 0 54px,#b85a56 56px 58px,#a84c4b 60px 112px);
 border-color:#a45c2c;border-radius:18px;box-shadow:inset 0 3px 8px #71313266;
}
.stage .upgrade-card{
 background:linear-gradient(#fff6e8 0%,#f8e9cb 78%,#edc37f 79%,#fff0bb 84%,#cf9555 86%,#b4773e);
 border:2px solid #f4c17c;border-radius:17px;box-shadow:inset 0 2px 0 #fff8d9,0 5px 0 #733c2880;
}
.stage .upgrade-price{background:var(--candy-gold);border-color:#fff0a2;border-radius:13px;color:#4a2d1c;box-shadow:inset 0 2px 0 #fff6af,0 3px 0 #b5721d;}
.stage .upgrade-art>span{background:#fff3d6;border:1px solid #bc894a;color:#4a2d1c;}
.stage.portrait-layout .upgrade-art{width:88px;height:88px;}
.stage.portrait-layout .upgrade-art>svg{width:88px;height:88px;}
.stage .upgrade-card:disabled{opacity:1;}
.stage .upgrade-card:disabled .upgrade-art>svg{filter:saturate(.3);}
.stage .journal-card,.stage .recipe-card,.stage .chapter-record{background:var(--candy-cream);border-color:#dfb77a;box-shadow:inset 0 2px 0 #fff,0 3px 0 #c3955b55;}
.stage .journal-card.claimable{background:linear-gradient(#f4ffd8,#e8f4c8);border-color:#a8c967;}
.stage .toggle.on,.stage .journal-progress>i,.stage .boot-track>i{background:var(--candy-lime);}
.stage .plate-action{background:var(--candy-cream);border-color:#dbb57c;box-shadow:inset 0 2px 0 #fff,0 3px 0 #bb945f;}
.stage .plate-action:disabled{background:#e7e0d3;color:#5a5145;}
.stage .tutorial-card{border-color:#efab4c;border-radius:18px;box-shadow:inset 0 2px 0 #fff,0 4px 0 #98632c66;}
#toast{background:#fff6e4;border-color:#e5a044;color:#4a2d1c;box-shadow:inset 0 2px 0 #fff,0 4px 0 #98542c55;}
.boot-screen{background:radial-gradient(ellipse at 50% 40%,#ffe83e,#ffba16 45%,#f17a15);}
.boot-screen h1{color:#fff9d2;text-shadow:0 3px 0 #a2501c;}
.boot-screen p{color:#542f18;}
/* Motion remains subordinate to the user's reduced-motion setting. */
@media(prefers-reduced-motion:reduce){.stage button{transition:none;}}


.stage.portrait-layout .primary,.stage.portrait-layout .secondary{border-radius:17px;}
.stage :is(.primary,.secondary,.icon-button)>.utility-icon{filter:drop-shadow(1px 0 0 #37321f) drop-shadow(-1px 0 0 #37321f) drop-shadow(0 1px 0 #37321f);}

.stage .result-rewards{display:flex;justify-content:center;gap:24px;margin:20px 0;}
.stage .result-rewards>div{display:grid;justify-items:center;gap:8px;min-width:64px;color:var(--a11y-ink);}
.stage .result-rewards svg{filter:drop-shadow(0 0 14px #ffcf3c77);}
.stage .result-rewards b{font-size:26px;line-height:1.3;}
.stage .result-details{margin:12px 0;border:1px solid #d9b779;border-radius:14px;background:#fff8e8;}
.stage .result-details>summary{min-height:48px;padding:12px;font-size:16px;font-weight:700;cursor:pointer;}
.stage .result-details>summary:focus-visible{outline:3px solid #164e87;outline-offset:2px;border-radius:12px;}
.stage .result-details .result-stats{margin:0;border:0;}
.stage .result-modal .first-reward{display:none;}
