﻿*{box-sizing:border-box}body:not(.ice-cream-page){margin:0;background:#f7efdf;font-family:Arial,sans-serif;color:#604a37}body:not(.ice-cream-page) main{max-width:1024px;margin:0 auto}#layout{position:relative;width:100%;aspect-ratio:1024/715;overflow:hidden;direction:ltr;isolation:isolate}.layout-element{position:absolute;display:block;margin:0;padding:0;border:0;object-fit:fill}.layout-element img{display:block;width:100%;height:100%}#layout-status{font-size:13px;text-align:center;padding:8px;margin:0}#layout-status:empty{display:none}
#layout{container-type:inline-size}
.shop-sign{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;color:#fff0c9;font:bold 3.2cqw Georgia,serif;text-shadow:0 2px 2px #512919;white-space:nowrap;pointer-events:none}
.frame-group{position:absolute;inset:0;z-index:4;pointer-events:none}.preview-controls{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;padding:12px}.preview-controls button{border:1px solid #9bb49a;border-radius:8px;padding:9px 13px;background:#fff9ed;color:#504535;font:inherit;cursor:pointer}.preview-controls button:disabled{opacity:.4}.preview-controls output{min-width:45px;direction:ltr}
.frame-group{z-index:auto}
.products-board,.order-board{position:absolute;z-index:8;background:#fff8e9f5;border:2px solid #dbc29a;border-radius:14px;padding:10px;color:#60432e}.products-board{left:23%;top:66%;width:75%;font-size:1.2cqw}.products-board h2,.order-board h2{font-size:1.6cqw;margin:0 0 6px}.product-list{display:flex;gap:5px}.product-list button{flex:1;min-width:0;border:1px solid #d5bb90;border-radius:9px;background:#fffaf0;color:inherit;padding:4px;display:flex;flex-direction:column;align-items:center;gap:3px;font:inherit;cursor:pointer}.product-list svg{height:5cqw;width:100%;overflow:hidden}.product-list span{min-height:2.3em}.product-list b{font-size:1.6cqw}.product-list button[aria-pressed=true]{background:#dceee2;border-color:#448c76}.product-list button:disabled{opacity:.5;cursor:default}.products-board small{display:inline-block;margin:7px}.order-board{left:2%;top:12%;width:24%;font-size:1.3cqw}.order-board ul{padding:0;margin:0;list-style:none}.order-board li{display:flex;align-items:center;gap:7px;margin:4px 0}.order-board svg{width:3.5cqw;height:3.5cqw;overflow:hidden}.order-board li b{margin-inline-start:auto;white-space:nowrap}.order-board button,[data-clear]{background:#327c69;color:white;border:0;border-radius:8px;padding:8px;font:inherit;cursor:pointer}.order-board button{width:100%}.order-board p{margin:6px 0 0}.order-board p:empty{display:none}@media(max-width:700px){.products-board,.order-board{position:relative;inset:auto;width:auto;margin:8px;font-size:13px}.products-board h2,.order-board h2{font-size:16px}.product-list{display:grid;grid-template-columns:repeat(4,1fr)}.product-list svg{height:42px}.product-list b{font-size:16px}.order-board ul{display:flex;justify-content:space-between;gap:6px}.order-board li{flex-wrap:wrap;gap:3px;font-size:11px}.order-board svg{width:26px;height:26px}.order-board li span{display:none}.order-board button{margin-top:5px}.product-list button{min-height:100px}}
/* Illustrated counter and cream order ticket. */
.order-board{left:2.5%;top:12%;width:18.5%;padding:12px 11px 9px;border:3px solid #d2a672;border-radius:44% 44% 18px 18px / 13% 13% 18px 18px;background:linear-gradient(100deg,#fff1d3,#fff9e7 50%,#ffedcc);box-shadow:0 3px 0 #9d744744,inset 0 0 0 4px #fff6df;color:#683d26}
.order-board h2{display:flex;align-items:center;justify-content:center;gap:8px;font:bold 1.8cqw Arial,sans-serif;margin:2px 0 7px}
.bear-mark{position:relative;display:inline-block;width:23px;height:20px;border-radius:45%;background:#6e452e;flex-shrink:0}.bear-mark:before,.bear-mark:after{content:"";position:absolute;top:-5px;width:10px;height:10px;border-radius:50%;background:inherit}.bear-mark:before{left:-2px}.bear-mark:after{right:-2px}
.order-board ul{border:1px solid #e8c89c;border-radius:12px;overflow:hidden;padding:0 8px}
.order-board li{justify-content:center;gap:13px;margin:0;padding:2px 0;border-bottom:1px solid #ecd8b6}.order-board li:last-child{border:0}.order-board li span{display:none}.order-board li b{margin:0;font:bold 1.9cqw Arial,sans-serif;direction:ltr}.order-board svg{width:4.2cqw;height:3.6cqw}.order-board button{margin-top:7px;background:#a57849;font-size:1.15cqw;padding:6px}
.products-board{left:23%;top:68%;width:75%;border:0;border-radius:0;padding:0 6px 9px;background:linear-gradient(to bottom,transparent 0 67%,#dba564 67%,#bd8246 73%,#8a552e 75%,transparent 77%);box-shadow:none}
.products-board h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.product-list{gap:3px;align-items:end;direction:ltr}
.product-list button{border:0;border-radius:8px;background:transparent;padding:0 2px;gap:0;justify-content:flex-end;box-shadow:none}
.product-list .stock-art{height:10.2cqw;width:100%;filter:drop-shadow(1px 3px 2px #583d2940)}
.product-list [data-product=vanilla],.product-list [data-product=chocolate],.product-list [data-product=strawberry]{flex:1.3}
.product-list .price-tag{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:3px;min-height:0;width:95%;padding:2px 3px;border:2px solid #c99e66;border-radius:5px;background:linear-gradient(#fff9df,#f3dfb8);box-shadow:0 2px 2px #5e3a3044}
.product-list .price-tag svg{width:2.2cqw;height:2.5cqw;flex:none}.product-list .price-tag b{font:bold 2.1cqw Arial,sans-serif;color:#6b4028}
.product-list button[aria-pressed=true]{background:transparent}.product-list button[aria-pressed=true] .price-tag{border-color:#35826b;box-shadow:0 0 0 2px #bce2ce}
.product-list button:disabled{opacity:1}.product-list button:not(:disabled):hover .stock-art{filter:drop-shadow(0 0 4px #fff3bb)}
.products-board small{font-size:1.05cqw;color:#755638;margin:9px 5px 0}.products-board [data-clear]{float:right;font-size:1.1cqw;margin-top:6px;background:#f8e8c9;color:#755638;border:1px solid #bb925f;padding:5px 9px}
@media(max-width:700px){
.order-board{position:relative;inset:auto;width:auto;margin:8px 18px;border-radius:35px 35px 15px 15px;padding:10px}.order-board h2{font-size:19px}.order-board li b{font-size:18px}.order-board svg{width:34px;height:34px}.order-board ul{display:flex}.order-board li{flex:1;border:0;padding:4px;gap:4px}.order-board button{font-size:13px;padding:8px}
.products-board{position:relative;inset:auto;width:auto;margin:10px 8px;padding:8px;background:#e5c798;border-radius:12px}.product-list{grid-template-columns:repeat(4,1fr);gap:12px 4px}.product-list button{min-height:100px}.product-list .stock-art{height:80px}.product-list .price-tag svg{width:22px;height:25px}.product-list .price-tag b{font-size:22px}.products-board small{font-size:11px}.products-board [data-clear]{font-size:12px}
}

/* Light framed product board, preserving the illustrated product layout. */
.products-board{background:linear-gradient(110deg,#fff8e9,#fff0d6);border:2px solid #d2a672;border-radius:16px;padding:8px 6px 9px;box-shadow:inset 0 0 0 3px #fffaf0,0 3px 5px #70472120}
@media(max-width:700px){.products-board{padding:10px 8px}}

html:not([data-animation-debug="true"]) [data-debug-only],html:not([data-animation-debug="true"]) [data-cycle]{display:none!important}

.layout-element[hidden]{display:none!important}
/* Hide unused sample coins; animated payment assets remain available. */
[data-element^="coin_"]{display:none!important}
@media(min-width:701px){.order-board{top:calc(12% - 10px)}}
.recipe-edits{display:flex;gap:4px;flex-wrap:wrap}.recipe-edits button{font:inherit;font-size:12px;padding:4px 7px;border:1px solid #d2a672;border-radius:8px;background:#fff8e9;color:#683d26}.order-board [role=status]{font-size:12px}
/* Three fixed-height order rows; repeated items have individual progress marks. */
.order-rows{border:1px solid #e8c89c;border-radius:12px;background:#fff9e9;overflow:hidden}
.order-row{position:relative;padding:5px 13px 5px 4px;border-bottom:1px solid #ecd8b6;height:49px}
.order-row:last-child{border-bottom:0}
.order-symbols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;height:100%;align-items:center}
.order-symbol{position:relative;min-width:0;height:37px}
.order-board .order-symbol svg{width:100%;height:32px;display:block}
.order-mark{position:absolute;bottom:-1px;inset-inline-end:0;display:flex;align-items:center;justify-content:center;width:16px;height:16px;border:2px solid #cbb791;border-radius:50%;background:#fff9ed;color:#fff;font:bold 12px Arial}
.order-symbol[data-state=correct] .order-mark{background:#33845d;border-color:#33845d}
.order-symbol[data-state=wrong] .order-mark{background:#c2473d;border-color:#c2473d}
.order-extra{position:absolute;right:1px;top:17px;width:13px;height:16px;line-height:16px;text-align:center;border-radius:8px;background:#c2473d;color:white;font:bold 12px Arial}
.order-extra[hidden]{display:none}
.order-none{grid-column:1/-1;text-align:center;font-size:12px;color:#755638}
.order-board [role=status]{height:16px;line-height:16px;margin:4px 0 0;font-size:12px;white-space:nowrap}
.order-board [role=status]:empty{display:block}
@media(max-width:700px){.order-row{height:49px}.order-symbols{max-width:210px;margin:auto}.order-board [role=status]{text-align:center}}
[data-part$="_Scoop"],[data-topping-part^="Scoop"],[data-placed-topping]{pointer-events:auto;cursor:pointer}
.icecream-editor{width:min(340px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:3px solid #d2a672;border-radius:24px;background:#fff8e9;color:#683d26;padding:18px;text-align:center}
.icecream-editor::backdrop{background:#34261980}
.icecream-editor h2{margin:0 0 8px;font-size:24px}
.icecream-editor p{font-size:16px;margin:0 0 12px}
.editor-dessert{padding:8px}
.editor-toppings{display:flex;justify-content:center;gap:8px;min-height:12px;margin-bottom:8px}
.editor-toppings button{width:66px;height:62px;border:1px solid #e2c695;border-radius:14px;background:#fff0d5;padding:5px}
.editor-stack{display:flex;flex-direction:column;align-items:center}
.editor-stack button{width:115px;height:62px;border:0;background:transparent;padding:0;position:relative}
.editor-vessel{width:100px;height:100px;margin-top:-4px}
.icecream-editor svg{width:100%;height:100%;display:block}
.icecream-editor button{cursor:pointer;touch-action:manipulation}
.icecream-editor button:focus-visible{outline:3px solid #33845d;outline-offset:3px}
.icecream-editor .editor-done{width:100%;min-height:46px;border:0;border-radius:12px;background:#33845d;color:white;font:bold 18px Arial;margin-top:12px}
.recipe-edits [data-edit-icecream]{font-size:14px;min-height:36px}
.order-excess{display:flex;align-items:center;justify-content:center}.order-excess .order-mark{position:static;width:22px;height:22px;font-size:18px}
/* Permanent actions occupy the lower-right space within the scene. */
.products-board small,.products-board [data-clear],.recipe-edits{display:none}
html:not([data-animation-debug="true"]) .topping-controls{display:none}
.game-actions{position:absolute;left:23%;right:2%;top:89%;bottom:1%;z-index:10;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#633d25}
.game-actions p{margin:0;text-align:center;font:bold clamp(14px,1.75vw,19px) Arial;line-height:1.15}
.game-feedback:empty,.game-hint[hidden]{display:none}
.game-action-buttons{display:flex;justify-content:center;gap:10px;width:100%}
.game-actions button{border:2px solid #b0834e;border-radius:12px;padding:8px 15px;min-height:40px;font:bold 16px Arial;cursor:pointer}
.game-primary{background:#33845d!important;color:white;border-color:#286e4b!important;min-width:180px}
.game-edit{background:#fff5de;color:#633d25}
.game-actions button:disabled{opacity:.5;cursor:default}
.game-actions button:focus-visible{outline:3px solid #254f80;outline-offset:2px}
@media(max-width:700px){
.game-actions{top:auto;bottom:2%;left:23%;right:2%;gap:4px;background:#fff8e9eb;border-radius:10px;padding:5px}
.game-actions p{font-size:12px}
.game-action-buttons{gap:4px}
.game-actions button{font-size:12px;min-height:36px;padding:5px 7px;border-radius:8px}
.game-primary{min-width:0}
}
.game-actions{background:#fff8e9ed;border-radius:12px;padding:4px 8px}.game-actions button:disabled{opacity:.65}
.checkout-panel{position:absolute;z-index:15;left:29%;top:18%;width:47%;padding:16px;border:3px solid #d2a672;border-radius:22px;background:#fff8e9;box-shadow:0 6px 24px #543c3540;color:#683d26}
.checkout-panel h2{font-size:22px;margin:0 0 10px;text-align:center}
.checkout-prices{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:10px}
.checkout-prices span{background:#f6e7c9;border-radius:8px;padding:5px 8px;font-size:15px}
.checkout-price-name,.checkout-price-value{font:inherit}
/* The mobile setup has its own cards; do not download the hidden desktop skin. */
body.mobile-welcome-v2 #layout[data-interface-skin] .csv-choice-button,
html[data-screen="welcome"] body.mobile-welcome-v2 .welcome-panel.csv-welcome-panel{background-image:none}
.checkout-fields{display:grid;grid-template-columns:3fr 1fr;gap:10px}
.checkout-fields label{font-size:16px}
.checkout-fields input{display:block;width:100%;min-width:0;height:44px;border:2px solid #bc9869;border-radius:8px;background:white;font-size:21px;padding:5px}
.checkout-fields input[aria-invalid=true]{border-color:#b64038}
.checkout-keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px;direction:ltr}
.checkout-keypad[hidden]{display:none}
.checkout-panel button{min-height:40px;border:1px solid #bc9869;border-radius:9px;background:#fff1d6;color:#633d25;font:bold 19px Arial;cursor:pointer}
.checkout-message{min-height:36px;font-size:16px;margin:10px 0}
.checkout-buttons{display:flex;gap:10px}
.checkout-buttons button{flex:1;font-size:16px}
.checkout-buttons [data-check]{background:#33845d;color:white}
.checkout-panel button:focus-visible{outline:3px solid #254f80;outline-offset:2px}
@media(max-width:700px){.checkout-panel{left:2%;top:2%;width:96%;max-height:96%;overflow:auto;padding:10px}.checkout-panel h2{font-size:18px}.checkout-fields input{font-size:18px}.checkout-prices span{font-size:13px}.checkout-message{font-size:14px}}
.game-modes{position:absolute;top:1.5%;left:1.5%;z-index:12;display:flex;gap:4px;padding:3px;border-radius:12px;background:#fff8e9}
.game-modes button{min-height:38px;padding:5px 12px;border:1px solid #b58b58;border-radius:9px;background:#fff4d9;color:#633d25;font:bold 15px Arial;cursor:pointer}
.game-modes button[aria-pressed=true]{background:#33845d;color:#fff;border-color:#286e4b}
.game-modes button:disabled{opacity:1;cursor:default}
.free-order .order-mark{display:none}
.order-board.free-order h2{font-size:clamp(12px,1.7vw,18px)}
.order-board.free-order>button[hidden]{display:none}
.mode-confirm{max-width:340px;width:calc(100vw - 30px);border:3px solid #d2a672;border-radius:20px;padding:20px;background:#fff8e9;color:#633d25;text-align:center;font-size:19px}
.mode-confirm::backdrop{background:#34261980}
.mode-confirm button{min-height:44px;padding:8px 14px;margin:4px;border:1px solid #b58b58;border-radius:10px;background:#fff4d9;font-size:16px}
.mode-confirm [data-switch]{background:#33845d;color:white}
@media(max-width:700px){.game-modes{top:1%;padding:1px;gap:2px}.game-modes button{min-height:25px;font-size:11px;padding:3px 6px}.order-board.free-order h2{font-size:19px}}
.game-modes{left:.5%;top:1%;width:14.5%;padding:2px;gap:3px}
.game-modes button{flex:1;min-width:0;min-height:44px;padding:3px 1px;font-size:13px;line-height:1.15}
@media(max-width:700px){.game-modes{gap:1px;padding:0}.game-modes button{font-size:clamp(6px,1.4vw,10px);min-height:0;height:5.6vw;padding:1px 0;border-radius:4px}}

.game-skip-toppings{background:#fff5de;color:#633d25}
.game-skip-toppings[hidden]{display:none}
@media(max-width:700px){.game-action-buttons{flex-wrap:wrap}.game-actions:has(.game-skip-toppings:not([hidden])) button{font-size:11px;padding:4px 5px}}
#layout[data-customer=cat] [data-element=panda_v1]{visibility:hidden!important}.preview-controls [data-customer-preview]{padding:7px;font-size:16px}
/* Level selection and the first, non-interactive payment layout preview. */
.game-levels{left:15.3%;width:10.8%}
.coin-display-preview{position:absolute;left:23%;top:67%;width:75%;height:22%;z-index:9;background:linear-gradient(110deg,#fff8e9,#fff0d6);border:2px solid #d2a672;border-radius:16px;box-sizing:border-box}
.coin-display-preview img{position:absolute;object-fit:fill}
.coin-display-preview p{position:absolute;bottom:4%;left:2%;width:96%;margin:0;text-align:center;font:bold 1.45cqw Arial;color:#60432e}
.coin-display-preview[hidden],.products-board[hidden]{display:none!important}
#layout[data-payment-check] .game-actions{visibility:hidden}
html[data-payment-check] .order-board button{visibility:hidden}
@media(max-width:700px){.coin-display-preview{position:relative;left:auto;top:auto;width:calc(100% - 16px);height:auto;aspect-ratio:768/157.3;margin:10px 8px}.coin-display-preview p{font-size:clamp(10px,2.2vw,14px)}}
.payment-price-reference{position:absolute;left:2%;top:60%;width:96%;height:22%;display:flex;gap:4px}
.payment-price-item{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #d5bb90;border-radius:6px;background:#fffaf0;color:#60432e;font:bold 1.65cqw Arial}
.payment-price-item svg{height:85%;width:45%;overflow:hidden}
@media(max-width:700px){.payment-price-reference{gap:2px}.payment-price-item{gap:2px;font-size:clamp(10px,2.5vw,16px);border-radius:4px}}

.register-price{position:absolute;z-index:10;display:flex;align-items:center;justify-content:center;color:#c8ffb6;background:#28332c;border-radius:3px;font:bold 2cqw monospace}
.register-price[hidden],.payment-check-actions[hidden],.payment-check-answers[hidden],.payment-check-continue[hidden],.coin-display-preview img[hidden]{display:none!important}
.payment-check-coins{position:absolute;inset:0;pointer-events:none;z-index:10}
.payment-check-coins img{position:absolute}
#layout[data-payment-check] [data-payment-part^="coins_"]{visibility:hidden}
.payment-check-price{position:absolute;right:3%;top:18%;font:bold 2.2cqw Arial;color:#60432e}
.payment-check-actions{position:absolute;z-index:15;left:23%;top:89.5%;width:75%;height:10%;text-align:center;color:#60432e;background:#fff8e9ed;border-radius:10px}
.payment-check-actions p{margin:2px 4px 4px;font:bold 1.45cqw Arial}
.payment-check-answers{display:flex;justify-content:center;gap:8px}
.payment-check-actions button{background:#fff4d9;color:#633d25;border:1px solid #b58b58;border-radius:8px;padding:6px 14px;font:bold 1.5cqw Arial;cursor:pointer}
.payment-check-actions .payment-check-continue{background:#33845d;color:white}
@media(max-width:700px){.payment-check-actions{position:relative;left:auto;top:auto;width:calc(100% - 16px);height:auto;margin:6px 8px;padding:8px 0}.payment-check-actions p{font-size:14px}.payment-check-actions button{font-size:13px;padding:8px}.payment-check-price{font-size:14px}}

.payment-practice{display:block;text-align:center;margin:8px;color:#60432e}.payment-practice[hidden]{display:none}.payment-practice select{padding:6px}
.payment-check-coins button{pointer-events:auto;padding:0;border:0;background:transparent;cursor:pointer}
.payment-check-coins button img{position:static;width:100%;height:100%}
.dragged-payment-coin{position:fixed;width:44px;height:44px;object-fit:contain;transform:translate(-50%,-50%);z-index:1000;pointer-events:none}
.payment-check-actions button[hidden]{display:none!important}
.framework-guidance{position:absolute;z-index:11;box-sizing:border-box;padding:0 1.2%;display:flex;align-items:center;justify-content:center;text-align:center;pointer-events:none;color:#633d25}
.framework-guidance p{margin:0;font:bold 2.05cqw/1.18 Arial;overflow-wrap:anywhere}
.framework-guidance .payment-guidance{display:none}
#layout[data-payment-check] .framework-guidance .payment-guidance{display:block}
#layout[data-payment-check] .framework-guidance .game-hint,#layout[data-payment-check] .framework-guidance .game-feedback{display:none}
.payment-check-actions{display:flex;align-items:center;justify-content:center}

.framework-guidance{flex-direction:column;gap:2px}
.payment-task-heading{font:bold 2cqw/1.1 Arial;color:#315f4e}
.payment-task-heading[hidden]{display:none}
.framework-guidance:has(.payment-task-heading:not([hidden])) .payment-guidance{font-size:1.65cqw;line-height:1.15}

.payment-check-price{max-width:39%;text-align:center;line-height:1.2}
.editor-stack .editor-vessel{width:100px;height:100px;border:1px dashed #b58b58;border-radius:10px;padding:3px;background:#fff4d9}
.day-progress{position:absolute;left:24%;bottom:3.2%;width:16%;box-sizing:border-box;z-index:16;text-align:center;background:#fff8e9;color:#60432e;border:1px solid #d2a672;border-radius:10px;padding:6px 2px;font:bold 1.3cqw Arial;white-space:nowrap}
.day-summary{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:90dvh;overflow:auto;text-align:center;border:3px solid #d2a672;border-radius:24px;background:#fff8e9;color:#60432e;padding:24px;font:18px/1.5 Arial}
.day-summary::backdrop{background:#34261999}.day-summary h2{font-size:25px;margin:0 0 16px}.day-summary .day-sales{font-weight:bold;font-size:24px}
.day-summary button{background:#33845d;color:#fff;border:0;border-radius:12px;padding:12px 30px;font:bold 18px Arial;cursor:pointer}
.welcome-panel,.welcome-start{display:none}
html[data-screen="welcome"] .order-board,html[data-screen="welcome"] .products-board,html[data-screen="welcome"] .game-actions,html[data-screen="welcome"] .coin-display-preview{display:none!important}
html[data-screen="welcome"] .welcome-panel{display:block;position:absolute;left:23%;top:68%;width:75%;height:17%;box-sizing:border-box;border:2px solid #d2a672;border-radius:16px;background:linear-gradient(110deg,#fff8e9,#fff0d6);box-shadow:inset 0 0 0 3px #fffaf0,0 3px 5px #70472120;z-index:8;color:#60432e}
.welcome-description{margin:0;padding:1.5% 3%;white-space:pre-line;text-align:center;font:bold 2cqw/1.5 Arial}
html[data-screen="welcome"] .welcome-start{display:flex;position:absolute;align-items:center;justify-content:center;z-index:9;border:1px solid #39704d;background:#4f805f;color:#fff;font:bold 3.3cqw Arial;cursor:pointer;padding:0 1%}
.welcome-start:focus-visible{outline:3px solid #254f80;outline-offset:3px}

.welcome-start img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.welcome-start span{position:relative;z-index:1;text-shadow:0 1px 2px #24442e;pointer-events:none}

.game-help{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:90dvh;border:3px solid #d2a672;border-radius:22px;background:#fff8e9;color:#60432e;padding:20px;font:17px/1.5 Arial}
.game-help[open]{display:flex;flex-direction:column;gap:10px}.game-help::backdrop{background:#34261999}.game-help h2{margin:0;text-align:center;font-size:26px}.game-help .help-pause-note{margin:0;text-align:center;color:#315f4e;font-size:14px}.help-content{overflow:auto;min-height:0;overscroll-behavior:contain;padding:0 8px}.help-content h3{font-size:19px;margin:12px 0 4px}.help-content p{margin:0 0 12px}.game-help button{align-self:center;flex-shrink:0;background:#33845d;color:#fff;border:0;border-radius:10px;padding:10px 30px;font:bold 18px Arial;cursor:pointer}

html[data-screen="welcome"] .day-progress{display:none}
#layout:has(.day-progress) .game-action-buttons{box-sizing:border-box;padding-left:23%}
#layout:has(.day-progress) .payment-check-actions{box-sizing:border-box;padding-left:18%}

#layout[data-interface-skin] .game-modes{inset:0;width:100%;height:100%;padding:0;margin:0;background:none;border-radius:0;pointer-events:none;display:block}
#layout[data-interface-skin] .csv-choice-button{position:absolute;box-sizing:border-box;pointer-events:auto;min-height:0;min-width:0;padding:2px;border:0;border-radius:0;background:transparent url('assets/unpressed_button%20.png?v=skin1') center/100% 100% no-repeat;color:#fff;font:bold 1.25cqw/1.15 Arial;text-shadow:0 1px 1px #294e3a;cursor:pointer}
#layout[data-interface-skin] .csv-choice-button[aria-pressed=true]{background-image:url('assets/pressed_button.png?v=skin1');color:#fff}
#layout[data-interface-skin] .csv-choice-button:active:not(:disabled){filter:brightness(.9)}
#layout[data-interface-skin] .csv-choice-button:disabled{cursor:default;opacity:1;filter:saturate(.65)}
#layout[data-interface-skin] .csv-choice-button:focus-visible{outline:2px solid #fff4a0;outline-offset:1px}
html[data-screen="welcome"] .welcome-panel.csv-welcome-panel{background:transparent url('assets/bottom_Panel.png?v=skin1') center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none;display:flex;align-items:center;justify-content:center}
.csv-welcome-panel .welcome-description{padding:10px 16px}
#layout[data-interface-skin] .csv-choice-button[aria-pressed=false]{color:#cfdbd2;text-shadow:none}
/* Locale-aware text flow without mirroring the illustrated scene. */
#layout{direction:ltr}
.order-board,.products-board,.checkout-panel,.framework-guidance,.welcome-panel,.day-progress{unicode-bidi:isolate}
.checkout-fields input,.checkout-keypad,.register-price{direction:ltr;unicode-bidi:isolate}
.game-help,.icecream-editor,.day-summary,.mode-confirm{overflow-wrap:anywhere}
.game-help[dir="rtl"] .help-content{text-align:right}

/* Inline SVG follows the inherited text baseline and drifts below small scoops. */
[data-placed-topping="sauce"] > svg,
[data-placed-topping="sprinkles"] > svg,
[data-payment-topping="sauce"] > svg,
[data-payment-topping="sprinkles"] > svg { display: block; }
#layout[data-interface-skin] .csv-choice-button{overflow-wrap:normal;word-break:normal}
.order-board h2{min-width:0}
:lang(si) .welcome-description,:lang(si) .framework-guidance p{line-height:1.35}
