body:has(.market-game){margin:0;background:#faf5e9}
.market-game{--ink:#30483d;--muted:#596759;--paper:#fffdf6;--green:#315b45;--coral:#be573f;--line:#d7d7bd;max-width:940px;margin:auto;padding:20px 20px 36px;color:var(--ink);font-family:system-ui,'Segoe UI','Microsoft JhengHei',sans-serif}.market-game *{box-sizing:border-box}.market-game [hidden]{display:none!important}.market-game button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.market-game button:disabled{opacity:.5;cursor:default}.market-game button:focus-visible,.market-game a:focus-visible,.market-game summary:focus-visible{outline:3px solid #267395;outline-offset:3px}.market-skip{position:fixed;top:-100px;z-index:1000;padding:14px;background:white}.market-skip:focus{top:6px}.mb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.mb-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;margin-bottom:20px}.mb-top a{color:var(--ink);text-underline-offset:4px}.mb-top b{font-size:17px}.mb-eyebrow{margin:0;font-size:11px;letter-spacing:.11em;color:var(--muted)}.mb-heading h1{font-size:clamp(27px,5vw,40px);letter-spacing:-.04em;line-height:1.18;margin:8px 0 16px}.mb-ready{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:20px;margin:10px 0 20px}.mb-ready img{display:block;width:100%;height:auto}.mb-opening{font-size:15px;line-height:1.9;margin:0 0 22px}.mb-primary{display:flex;justify-content:center;align-items:center;gap:20px;min-height:50px;width:100%;border:1px solid #294c3a;border-bottom:4px solid #243e30;border-radius:13px;background:var(--green);color:#fffdf5!important;font-size:17px!important;font-weight:700!important;padding:10px 16px}.mb-primary:hover:not(:disabled){background:#426c53}.mb-secondary{min-height:48px;min-width:74px;border:1px solid #b6b99d;border-bottom:3px solid #b6b99d;border-radius:12px;background:#f6f3e5;padding:8px 14px}.mb-note{font-size:12px;line-height:1.6;color:var(--muted);text-align:center;margin:14px 0}.mb-level{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-bottom:14px}.mb-level ol{display:flex;gap:7px;list-style:none;margin:0;padding:0}.mb-level li{display:grid;place-items:center;width:27px;height:27px;border:1px solid #b4bca5;border-radius:50%;background:#fffdf6;font-size:12px}.mb-level li[aria-current]{background:var(--green);color:white;box-shadow:0 0 0 3px #e0e8d5}.mb-level li.is-done{background:#dfe8cf}.mb-level h2{font-size:16px;margin:0;font-weight:650;line-height:1.4}.mb-ledger{position:sticky;top:calc(var(--mb-header,88px) + 6px);z-index:4;background:var(--paper);border:1px solid #c5cbb2;border-radius:17px;box-shadow:0 4px 0 #dce0ca,0 7px 12px #403d2610;padding:12px 18px}.mb-money{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:9px;border-bottom:1px dashed #c5cbb2;font-size:14px}.mb-money b{font-size:20px;margin-left:5px;font-variant-numeric:tabular-nums}.mb-money>strong{font-size:21px;font-variant-numeric:tabular-nums;color:var(--green)}.mb-money>strong.is-over{color:#a33d2f}.mb-list-heading{display:flex;justify-content:space-between;gap:10px;margin:8px 0 3px;font-size:10px;letter-spacing:.08em;color:var(--muted)}.mb-list-heading small{font-size:11px;letter-spacing:0}#mb-list{display:flex;gap:12px;padding:0;margin:0;list-style:none;justify-content:space-between}#mb-list li{display:flex;align-items:center;gap:4px;min-width:0;flex:1}#mb-list svg{width:42px;height:42px;flex-shrink:0}#mb-list li>span{min-width:0}.mb-food-name{display:block;font-size:11px;line-height:1.2;margin-bottom:3px;white-space:nowrap}#mb-list strong{font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums}#mb-list b{font:inherit}#mb-list i{font-style:normal;font-size:12px}#mb-list li[data-status=done] strong{color:#32673f}#mb-list li[data-status=over] strong{color:#a33d2f}.mb-tip{font-size:13px;line-height:1.6;margin:18px 0 12px;color:var(--muted)}.mb-stall{background:#f0ead8;border:1px solid #d2c8ac;border-radius:18px 18px 10px 10px;overflow:hidden;padding-bottom:14px}.mb-awning{height:23px;background:repeating-linear-gradient(90deg,#c3684f 0 35px,#f7e6c6 35px 70px);border-bottom:4px solid #a78d6950;box-shadow:0 3px 6px #8b6f3918}.mb-stall-label{display:flex;justify-content:space-between;gap:12px;padding:12px 14px 10px;font-size:10px;letter-spacing:.08em;color:#695c43}.mb-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 14px}.mb-offer{display:flex;flex-direction:column;position:relative;min-width:0;text-align:left;background:var(--paper);border:1px solid #c8c8ad;border-bottom:3px solid #c8c8ad;border-radius:13px;padding:10px 10px 0;user-select:none;-webkit-user-select:none;scroll-margin-top:calc(var(--mb-header,88px) + 162px);scroll-margin-bottom:140px}.mb-offer-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:var(--muted);letter-spacing:.07em}.mb-price{font-size:24px;font-weight:750;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.04em}.mb-produce{display:flex;justify-content:center;align-items:center;height:78px;margin:0 -2px}.mb-produce svg{height:100%;max-width:80px;min-width:0;flex:1}.mb-contents{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:0 8px;min-height:40px;font-size:13px;font-weight:600;line-height:1.45;margin-bottom:8px}.mb-contents>span{white-space:nowrap}.mb-offer-action{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;border-top:1px solid #e1e2d1;min-height:32px;padding:5px 0;white-space:nowrap;color:#4c644f;margin-top:auto}.mb-offer[aria-pressed=true]{border-color:var(--green);background:#e9efdc;box-shadow:inset 0 0 0 1px var(--green)}.mb-offer[aria-pressed=true] .mb-offer-action{border-color:#b7c6a1;color:#254b35;font-weight:650}.mb-offer:hover{border-color:#6e8766}.mb-offer.is-held{transform:scale(.985)}.mb-checkout{position:sticky;bottom:10px;z-index:5;background:#fffdf6f7;border:1px solid #c6cbb5;border-radius:16px;padding:10px 14px 8px;box-shadow:0 -5px 20px #373e2214,0 4px 0 #dce0ca;margin-top:16px}.mb-bill{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px;align-items:center}.mb-bill>span:last-child b{font-size:23px;margin-left:8px;color:var(--ink);font-variant-numeric:tabular-nums}.mb-actions{display:grid;grid-template-columns:90px 1fr;gap:10px}.mb-actions .mb-primary{min-height:46px;font-size:16px!important;padding:8px 12px}.mb-feedback{margin:7px 0 0;min-height:18px;font-size:12px;line-height:1.45;color:var(--muted)}.mb-receipt{max-width:430px;margin:24px auto;background:var(--paper);padding:28px 24px 20px;border:1px solid #d3d1b9;border-top:5px solid #c56b51;border-radius:4px;box-shadow:0 8px 0 #e6e2cc;text-align:center}.mb-receipt h2{font-size:26px;margin:8px 0}.mb-stars{font-size:32px;color:#946622;letter-spacing:5px;margin:8px 0 20px}#mb-receipt-lines{border-top:1px dashed #bec2a8;border-bottom:1px dashed #bec2a8;padding:8px 0}#mb-receipt-lines p{display:flex;justify-content:space-between;gap:16px;text-align:left;font-size:13px;line-height:1.5;margin:8px 0}#mb-receipt-lines b{white-space:nowrap}.mb-receipt-total{display:flex;align-items:center;justify-content:space-between;margin:14px 0;font-size:14px}.mb-receipt-total b{font-size:30px}#mb-rating{font-size:13px;line-height:1.6;margin-bottom:20px}.mb-text-button{background:none;border:0;min-height:44px;margin-top:6px;text-decoration:underline;text-underline-offset:4px;font-size:13px!important}.mb-results{max-width:430px;margin:24px auto;text-align:center}.mb-results h2{font-size:30px;margin:8px 0}.mb-total{display:flex;justify-content:center;align-items:baseline;gap:12px;margin:12px 0;color:var(--green)}.mb-total b{font-size:70px;line-height:1.2}.mb-total span{font-size:22px}.mb-results ol{list-style:none;padding:0;margin:20px 0;border-top:1px solid var(--line)}.mb-results li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0;font-size:14px}.mb-results li b{color:#946622;letter-spacing:3px}#mb-record{font-size:14px}.mb-rules{border-top:1px solid var(--line);margin-top:24px;padding-top:12px;font-size:13px;line-height:1.7;color:var(--muted)}.mb-rules summary{min-height:44px;cursor:pointer;color:var(--ink);padding:8px 0}#market-app[data-phase=playing] .mb-heading{display:none}
@media(max-width:650px){.market-game{padding:14px 12px 28px;max-width:470px}.mb-top{font-size:12px;margin-bottom:14px}.mb-ready{display:block;margin-top:0}.mb-ready img{max-height:230px;object-fit:contain}.mb-opening{text-align:center;font-size:13px;margin:10px 0 16px;line-height:1.8}.mb-ready .mb-note{font-size:11px}.mb-heading h1{margin-bottom:8px}.mb-level{display:block;margin-bottom:12px}.mb-level ol{margin-bottom:10px}.mb-level h2{font-size:15px}.mb-ledger{padding:10px 10px 8px;border-radius:13px}.mb-money{padding-bottom:7px;font-size:12px}.mb-money b{font-size:18px}.mb-money>strong{font-size:20px}.mb-list-heading{margin:7px 0 4px;font-size:9px;letter-spacing:.04em}.mb-list-heading small{font-size:10px}#mb-list{gap:6px}#mb-list li{gap:2px}#mb-list svg{width:30px;height:35px}.mb-food-name{font-size:10px;white-space:normal}#mb-list strong{font-size:14px}#mb-list i{font-size:10px}.mb-tip{font-size:12px;margin:15px 0 10px}.mb-stall{padding-bottom:10px;border-radius:13px 13px 8px 8px}.mb-awning{height:18px}.mb-stall-label{font-size:9px;padding:10px 10px 8px;letter-spacing:.03em}.mb-offers{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 8px}.mb-offer{padding:7px 7px 0;border-radius:10px;scroll-margin-top:calc(var(--mb-header,88px) + 150px)}.mb-offer-top{font-size:9px}.mb-price{font-size:22px}.mb-produce{height:62px}.mb-contents{font-size:11px;min-height:34px;margin-bottom:6px;gap:0 4px}.mb-offer-action{font-size:10px;min-height:30px;gap:3px}.mb-checkout{padding:8px 10px 7px;margin-top:12px;bottom:calc(7px + env(safe-area-inset-bottom,0px));border-radius:13px}.mb-bill{margin-bottom:6px;font-size:11px}.mb-bill>span:last-child b{font-size:21px}.mb-actions{grid-template-columns:70px 1fr;gap:8px}.mb-secondary{min-width:0;padding:7px;min-height:46px;font-size:14px!important}.mb-feedback{font-size:11px;min-height:17px;margin-top:6px}.mb-receipt{padding:22px 18px 16px;margin:18px auto}.mb-receipt h2{font-size:24px}.mb-receipt .mb-eyebrow{font-size:10px}.mb-rules{margin-top:20px}}
@media(max-width:360px){.mb-heading h1{font-size:26px}.mb-ready img{max-height:190px}#mb-list svg{width:23px;height:30px}#mb-list{gap:3px}.mb-food-name{font-size:9px}#mb-list strong{font-size:13px}.mb-produce{height:54px}.mb-offer-action{font-size:9px}.mb-contents{font-size:10px}.mb-feedback{font-size:10px}.mb-opening{font-size:12px}.mb-stall-label{font-size:8px}}
@media(max-height:500px) and (min-width:651px){.mb-ledger{position:static}.mb-checkout{position:static}}
@media(prefers-reduced-motion:no-preference){.mb-offer,.mb-primary{transition:background-color .12s,border-color .12s,transform .08s}.mb-receipt{animation:mb-arrive .18s ease-out}@keyframes mb-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
