.room-content:has(.math-checkout){width:min(100%,930px);scrollbar-width:thin}
.math-checkout{padding:18px 20px 12px;border:2px solid #f4ddb4;border-radius:24px;background:#fff8e9;color:#594332;box-shadow:0 18px 50px #38271855;container-type:inline-size}
.checkout-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.checkout-heading p{margin:0 0 3px;color:#947553;font-size:12px;letter-spacing:2px}.checkout-heading h2{font-size:24px;margin:0;color:#704d35}
.checkout-heading ol{display:flex;list-style:none;padding:0;margin:0;gap:7px;font-size:12px}.checkout-heading li{border-radius:20px;padding:7px 10px;color:#9c8d78;background:#eee6d4}.checkout-heading li[aria-current]{background:#dce8cf;color:#466548;font-weight:800}.checkout-heading .finished{color:#557747}
.checkout-desk{display:grid;grid-template-columns:200px 1fr;gap:20px;padding:18px;border:2px solid #c99a69;border-radius:18px;background:repeating-linear-gradient(1deg,#d6b389 0 4px,#d9b88f 5px,#d3ac80 8px);box-shadow:inset 0 2px 6px #9b70413b}
.math-receipt{align-self:start;position:relative;background:#fffdf3;padding:24px 14px 16px;box-shadow:2px 5px 7px #7a543c40;rotate:-2deg;min-height:240px;border-radius:3px 3px 9px 9px}
.receipt-clip{position:absolute;width:42px;height:23px;top:-12px;left:calc(50% - 21px);border:4px solid #b88e55;border-radius:9px;background:#bc9c65;box-shadow:inset 0 2px #e8c78f,0 2px 3px #76583a44}
.math-receipt h3{text-align:center;font-size:18px;margin:0 0 8px}.math-receipt>p{text-align:center;font-size:11px;color:#9a846d;margin:5px 0 12px}.math-receipt ul{padding:9px 0;margin:0;list-style:none;border-top:1px dashed #c9b89b;border-bottom:1px dashed #c9b89b;display:grid;gap:12px}.math-receipt li{display:flex;justify-content:space-between;gap:7px;font-size:12px}.math-receipt li span{max-width:130px}.math-receipt i{font-size:11px;font-style:normal;color:#b18b42}.bill-total{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:13px}.bill-total b{font-size:26px;color:#41664e}.math-receipt .receipt-smile{margin-top:20px}
.checkout-play{min-width:0}.math-counting{padding:8px 10px 14px;min-height:153px;border-radius:15px;background:#fbefd8b3;box-shadow:inset 0 1px 2px #99774d55}.math-counting>p{margin:2px 0 8px;text-align:center;font-size:13px;color:#886947}.counting-groups{display:flex;align-items:center;justify-content:center;gap:10px}.count-group{flex:1;min-height:95px;border:1px solid #d1c3a7;background:#fff7e6;border-radius:14px;padding:8px;display:flex;align-items:center;justify-content:center;gap:8px;color:#476850;cursor:pointer}.count-group strong{font-size:32px}.group-stars{display:flex;justify-content:center;flex-wrap:wrap;gap:4px;max-width:155px}.group-plus{font-size:26px;color:#8c704b}
.math-coin{width:30px;aspect-ratio:1;display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;border:2px solid #cc9c42;border-radius:50%;color:#885b20;background:radial-gradient(circle at 35% 25%,#fff7b0,#f2c85c 65%,#daac49);box-shadow:inset 0 0 0 2px #ffe8a1,0 2px 0 #a57c34}.math-coin b{font-size:19px;line-height:1;text-shadow:0 1px #fff4c9}.math-coin i{position:absolute;right:3px;bottom:1px;font-size:7px;font-style:normal}
.money-play{display:grid;grid-template-columns:1fr 22px 1fr;align-items:center;gap:6px;margin-bottom:10px}.math-wallet,.math-tray{padding:9px 10px;border-radius:16px;min-width:0;position:relative}.math-wallet{background:#a2b29b;border:3px solid #6a8164;box-shadow:inset 0 0 0 2px #ced8bb,0 3px #7c6443}.math-tray{border:3px solid #b8be9a;background:radial-gradient(ellipse,#f4f3dd,#d6d8bb);box-shadow:inset 0 3px 7px #8d90695e,0 3px #7c6443}.money-play header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:4px;color:#314d35;font-size:12px;min-height:35px}.money-number{font-size:32px;line-height:1;font-variant-numeric:tabular-nums}.money-slots{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;min-height:66px;align-items:center}.money-token{display:grid;place-items:center;min-height:44px;padding:0;border:0;background:none;min-width:0;cursor:pointer;touch-action:manipulation}.money-token .math-coin{width:100%;max-width:31px}.empty-money-slot{display:block;width:100%;max-width:31px;aspect-ratio:1;border:1px dashed #77836773;border-radius:50%;background:#81876212}.money-play small{display:block;text-align:center;font-size:10px;color:#42583b;margin-top:6px}.money-arrow{text-align:center;font-size:22px;color:#8b704b}.number-delta{position:absolute;right:-5px;top:-6px;font-size:15px;font-weight:900;font-style:normal;color:#fff;background:#b87040;border-radius:10px;padding:2px 5px;animation:math-delta .8s ease both}.number-delta[data-change="1"]{background:#547b57}
.toy-register{padding:11px 12px 13px;background:linear-gradient(#789688,#607f70);border:2px solid #4a6b59;border-radius:15px 15px 21px 21px;box-shadow:inset 0 2px #a9c0ac,0 5px #4a6555,0 7px 8px #74563847}.register-screen{background:linear-gradient(#eaf2d7,#dce9c2);border:5px solid #496551;border-radius:10px;box-shadow:inset 0 2px 5px #8d9d6a6b;padding:6px 9px 8px;margin-bottom:10px}.register-screen>p{margin:0 0 2px;text-align:center;font-size:12px;color:#577048}.math-equation{display:flex;align-items:center;justify-content:center;gap:12px;line-height:1.25;color:#34583f;font-weight:850;font-size:36px;font-variant-numeric:tabular-nums}.math-equation b{font-weight:500;font-size:28px}.math-answer{display:grid;place-items:center;min-width:48px;border-bottom:2px solid #6b875c;background:#f6f8de9c;border-radius:7px;color:#3d704d;animation:math-digit .2s ease}.math-answer.unanswered{color:#97a57b}
.number-keys{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.number-key{min-height:44px;padding:3px 0;border:1px solid #d2c5a4;border-radius:8px;background:linear-gradient(#fffdf1,#eddfbc);box-shadow:0 3px #bba980;color:#5a5138;cursor:pointer;touch-action:manipulation}.number-key{font-family:inherit;font-size:24px;font-weight:800}.number-key.selected{background:#fae19b;color:#70542d;box-shadow:0 1px #9a855e;translate:0 2px;border-color:#b9914c}.erase-key{background:#d5dfcb;color:#4f725b}.number-key:active,.count-group:active,.money-token:active{scale:.94}.math-checkout button:focus-visible{outline:3px solid #efb658;outline-offset:3px}
.checkout-footer{display:flex;align-items:center;gap:15px;margin-top:12px;min-height:70px}.checkout-notice{flex:1;margin:0;padding:10px 12px;border-radius:12px;background:#f3ead6;font-size:13px;line-height:1.65;color:#6e5b42}.checkout-stamp{position:relative;border:4px solid #bc8460;border-radius:50%;width:69px;height:69px;flex-shrink:0;background:#f4d1aa;color:#a45b3d;box-shadow:inset 0 0 0 2px #fce6c9,0 4px #956244;cursor:pointer;rotate:7deg}.checkout-stamp>span{display:block;font-size:27px;line-height:1}.checkout-stamp small{font-size:11px;font-weight:800}.checkout-stamp:active{translate:0 3px;box-shadow:inset 0 0 0 2px #fce6c9,0 1px #956244}.checkout-flying-coin{position:fixed;left:-15px;top:-15px;z-index:100;pointer-events:none}
@keyframes math-delta{0%{opacity:1;translate:0 7px}65%{opacity:1}100%{opacity:0;translate:0 -14px}}@keyframes math-digit{from{scale:.84}to{scale:1}}
@media(max-width:650px){.math-checkout{padding:12px 10px}.checkout-heading h2{font-size:21px}.checkout-heading ol{gap:4px;font-size:10px}.checkout-heading li{padding:6px}.checkout-desk{grid-template-columns:1fr;padding:12px;gap:13px}.math-receipt{min-height:0;rotate:0;padding:14px 12px 9px}.math-receipt h3{display:inline;font-size:15px}.math-receipt>p:not(.receipt-smile){display:inline;font-size:10px;margin-left:9px}.math-receipt ul{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:7px;padding:6px 0}.math-receipt li{font-size:11px;gap:6px}.math-receipt .receipt-smile{display:none}.bill-total{margin-top:5px}.bill-total b{font-size:23px}.receipt-clip{width:30px;height:17px;left:auto;right:10px;top:-9px}.math-counting{min-height:125px}.count-group{min-height:80px}.math-equation{font-size:32px;gap:10px}.number-keys{gap:7px}.number-key{min-height:43px;font-size:22px}.checkout-footer{gap:10px;margin-top:9px}.checkout-notice{font-size:12px;padding:7px 9px}.checkout-stamp{width:61px;height:61px}.money-play{gap:4px;grid-template-columns:1fr 15px 1fr}.math-wallet,.math-tray{padding:7px}.money-slots{gap:4px;grid-template-columns:repeat(3,1fr)}.money-token{min-height:40px}.math-coin b{font-size:17px}.money-number{font-size:29px}}
@media(max-height:530px) and (orientation:landscape){.math-checkout{padding:9px 13px}.checkout-heading{margin-bottom:8px}.checkout-heading h2{font-size:20px}.checkout-desk{grid-template-columns:165px 1fr;padding:11px;gap:13px}.math-receipt{min-height:190px;padding:15px 9px}.math-counting{min-height:102px;padding:4px 8px}.count-group{min-height:65px}.math-counting>p{font-size:11px;margin-bottom:4px}.group-stars .math-coin{width:24px}.count-group strong{font-size:27px}.register-screen{padding:3px 5px;margin-bottom:6px}.register-screen p{font-size:10px}.math-equation{font-size:29px}.toy-register{padding:7px 8px 9px}.number-key{min-height:35px;font-size:20px}.number-keys{gap:5px}.checkout-footer{margin-top:7px;min-height:50px}.checkout-stamp{width:51px;height:51px}.checkout-stamp>span{font-size:22px}.checkout-stamp small{font-size:9px}.checkout-notice{font-size:11px;padding:6px 9px}.money-play{margin-bottom:6px}.money-slots{min-height:50px}.money-token .math-coin{max-width:24px}.math-wallet,.math-tray{padding:5px 8px}.money-play header{min-height:25px}.money-number{font-size:25px}}
@media(prefers-reduced-motion:reduce){.number-delta,.math-answer{animation:none}}

