:root{--app-height: 100vh}@supports (height: 100dvh){:root{--app-height: 100dvh}}:root{font-family:Inter,Microsoft YaHei,system-ui,sans-serif;color:#253d35;background:#f0eee5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;border-radius:12px;background:#e8eee4;color:#254637;min-height:44px;padding:8px 14px;font-weight:700;touch-action:manipulation;transition:background .12s,transform .12s}button:active{transform:scale(.97)}button:disabled{cursor:default;opacity:.4}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b16e24;outline-offset:2px}main{max-width:540px;margin:24px auto;background:#faf8ef;min-height:calc(var(--app-height) - 48px);border:1px solid #dddccf;border-radius:24px;box-shadow:0 16px 65px #263b3610;overflow:hidden}main.is-playing{height:calc(var(--app-height) - 48px);display:flex;flex-direction:column}.is-playing header{flex-shrink:0}.is-playing .game{flex:1;min-height:0}header{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;border-bottom:1px solid #e4e4d6;font-size:12px;font-weight:700}header small{font-size:10px;letter-spacing:1px;color:#63745f}.header-debug{min-height:24px;padding:2px 6px;background:transparent;font-size:11px}section{padding:24px}h1{font-size:38px;line-height:1.28;letter-spacing:-1.5px;margin:16px 0 24px}h1 em{font-style:normal;color:#bc5e2d}h2{font-size:24px;margin:12px 0}p{line-height:1.7;font-size:14px}.eyebrow{font-size:12px;color:#526b51;letter-spacing:1px;font-weight:800}.stall{height:180px;border-radius:18px;background:#ecedda;text-align:center;padding-top:8px;font-size:52px}.stall div{font-size:36px;background:#e6b36c;border-top:12px solid #d3744e;margin:0 32px;line-height:1.6;border-radius:8px}.stall span{font-size:11px;letter-spacing:2px;display:block;margin:8px}.tags{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0;font-size:12px}.tags span{background:#efeee2;padding:7px;border-radius:8px}.quick-start{display:flex;padding:0;gap:8px;list-style:none;counter-reset:steps;font-size:12px}.quick-start li{counter-increment:steps;flex:1}.quick-start li:before{content:counter(steps);display:inline-grid;place-items:center;width:20px;height:20px;margin-right:4px;border-radius:50%;background:#315947;color:#fff}.primary{background:#315947;color:#fff;width:100%;min-height:48px;font-size:16px}.secondary{width:100%;margin-top:10px;background:#efeee4}.muted{color:#57664f;font-size:12px}.home .muted{text-align:center}.stats{display:flex;justify-content:space-between;background:#eeefdf;padding:12px 14px;border-radius:14px;gap:8px}.stats div{font-size:11px;color:#55634e}.stats b{display:block;color:#293f34;font-size:24px;margin-top:3px;font-variant-numeric:tabular-nums}.positive{color:#2c6a44!important}.negative{color:#9f4128!important}.purchase h1{font-size:30px;margin:12px 0 18px}.purchase-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e7e6db}.purchase-row>div:nth-child(2){flex:1}.purchase-row small{display:block;font-size:11px;color:#5e6857;margin-top:5px}.icon{font-size:28px}.counter{display:flex;align-items:center;gap:9px;flex-shrink:0}.counter button{font-size:22px;padding:0;width:40px}.counter b{min-width:20px;text-align:center}.rules{margin:12px 0;border:1px solid #dbdecd;border-radius:10px;padding:0 12px}.rules summary{cursor:pointer;padding:12px 0;font-size:13px;font-weight:700}.rules p{font-size:12px;margin:0 0 12px}.hint{font-size:13px;line-height:1.7;padding:14px;background:#f1ecd8;border-radius:12px;margin:16px 0}.game{padding:12px 16px;display:flex;flex-direction:column;gap:8px;transition:background-color .4s}.timeline{height:4px;border-radius:3px;background:#e4e4d5;overflow:hidden}.timeline>div{height:100%;background:#c78638}.notice{font-size:12px;line-height:1.5;background:#f2e7ca;border-radius:8px;padding:7px 9px;min-height:32px}.notice.arrival{background:#d9ead0;box-shadow:inset 3px 0 #3d7744}.game:has(.notice.arrival) .business-controls{border-radius:10px;animation:delivery-arrived .6s ease-out}.queue-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px;font-size:12px;min-height:38px}.queue-head>span{font-size:11px;color:#52624c;white-space:nowrap;padding-top:4px}.environment{display:flex;align-items:center;gap:5px;min-width:0;border-radius:8px;line-height:1.45;padding:3px 5px;background:#eceddf}.environment b{overflow-wrap:anywhere}.weather-icon{flex-shrink:0;font-size:22px}.weather-hot .game{background:#fff5df}.weather-hot .environment{background:#f6dda5}.weather-rain .game{background:#eaf0f1}.weather-rain .environment{background:#d6e5ed;border-bottom:2px solid #7196ae}.weather-cloudy .game{background:#edf0eb}.is-peak .environment{box-shadow:inset 3px 0 #bc7934}.weather-rain .weather-icon{animation:weather-sway 2s ease-in-out infinite alternate}.weather-hot .weather-icon{animation:weather-sway 3s ease-in-out infinite alternate}.customers{display:grid;grid-template-rows:repeat(3,minmax(84px,1fr));gap:6px;flex:1;min-height:264px;max-height:330px}.customer{display:flex;align-items:center;gap:9px;min-width:0;width:100%;height:100%;border:1px solid #dbdfd0;background:#fffdf5;border-radius:12px;padding:9px;position:relative;text-align:left;font-weight:400;color:#253d35;animation:appear .2s}button.customer:disabled{opacity:1;cursor:default}button.customer:not(:disabled):hover{border-color:#557956;background:#f0f6e9}.avatar{font-size:30px;flex-shrink:0}.compact-avatar{display:none}.order{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.order b{font-size:13px;line-height:1.25}.order .order-items{display:flex;flex-wrap:wrap;gap:2px 7px}.order-item{white-space:nowrap;font-size:12px;line-height:1.35}.order small{font-size:12px;color:#4e6348;line-height:1.35;overflow-wrap:anywhere}.order .item-issues{font-size:11px;color:#9f4128}.sale{flex-shrink:0;width:76px;background:#e2eddd;padding:6px 4px;border-radius:9px;text-align:center;color:#315947}.sale b{display:block;font-size:17px;line-height:1.2}.sale small{display:block;font-size:11px;margin-top:3px}.patience-time{display:block;font-size:11px;white-space:nowrap;margin-top:4px;color:#40543d}.patience-track{position:absolute;left:8px;right:8px;bottom:3px;height:3px;border-radius:3px;overflow:hidden;background:#e6e8dc}.patience-track>span{display:block;height:100%;background:#5b8951;transition:width .1s linear}.customer.urgent{border-color:#a54b2f}.urgent .patience-track>span{background:#a54b2f}.urgent .patience-time{color:#9f4128;font-weight:700}.customer.blocked{background:#fbf6ed}.sale.unavailable{background:#f5e6db;color:#824021}.customer.completed{background:#e6f2df;border-color:#7aa173;animation:none}.completed .avatar{color:#397853}.sale.received{background:#cfe6c5}.customer.accepted-discount{border:2px solid #719e5c;background:#eff7e7}.customer.empty{justify-content:center;border-style:dashed;color:#697760;font-size:12px;background:#faf8ef70}.business-controls{min-width:0}.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}.product-heading{display:flex;align-items:center;justify-content:space-between;min-height:22px;gap:3px}.product-heading small{font-size:12px;color:#40543a}.product-heading b{font-size:13px;white-space:nowrap}.price-risk{display:block;color:#9f4128;font-size:11px;font-weight:700;line-height:1.2}.price-stepper{display:flex;align-items:center;justify-content:space-between;gap:3px}.price-stepper button{width:44px;min-width:44px;height:44px;padding:0;font-size:22px}.price-stepper output{flex:1;text-align:center;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}.delivery{font-size:12px;line-height:1.4;color:#4f6248;min-height:26px;padding:5px 0;max-height:54px;overflow:auto}.delivery span{display:block}.restock-heading{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:12px;padding:0 0 6px}.restock-heading span{font-size:11px;color:#52674b}.restock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.restock-item{background:#eef0e2;border-radius:10px;padding:6px;display:flex;justify-content:space-between;align-items:center;gap:4px}.restock-info{min-width:0}.restock-info b{display:block;font-size:12px;white-space:nowrap}.restock-info small{display:block;font-size:11px;line-height:1.35;color:#455d3e}.restock-info small>span{display:inline-block;white-space:nowrap;margin-right:3px}.unit-price{font-size:10px;font-weight:400;margin-left:3px}.restock-item .counter{gap:3px}.restock-item .counter button{width:34px;min-height:44px;font-size:20px}.restock-item .counter b{font-size:13px;min-width:17px}.restock-actions{display:flex;gap:7px;margin-top:6px}.restock-actions .secondary{width:86px;margin:0;font-size:12px;padding:6px}.restock-actions .primary{flex:1;font-size:13px;min-height:44px}.result{text-align:center;animation:appear .3s}.profit{font-size:58px;font-weight:800;letter-spacing:-3px;color:#bc5e2d}.result p{font-size:13px}.result p small{display:block;color:#5e6b54}.receipt{border-top:1px dashed #b9c2ab;border-bottom:1px dashed #b9c2ab;padding:10px 0}.receipt>div,.history>div{display:flex;justify-content:space-between;gap:10px;font-size:13px;margin:12px 0}.result .hint{text-align:left}.history{padding:0 8px;margin-bottom:20px}footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:10px;font-size:11px;color:#58694f}footer button{background:transparent;font-size:11px;padding:5px}.is-playing>footer{display:none}.storage-note{margin:12px;padding:12px;border-radius:10px;background:#f4e5c7;font-size:13px;color:#614622}.storage-note p{margin-top:0;font-size:13px}.storage-note button{margin:2px;font-size:12px}.modal{background:#faf8ef;color:#253d35;border:1px solid #d4dac8;border-radius:20px;padding:22px;width:calc(100% - 24px);max-width:430px;max-height:calc(var(--app-height) - 24px);overflow:auto;box-shadow:0 20px 70px #0003}.modal::backdrop{background:#1e302780;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.modal p{color:#4e6047}.modal .decision-cost{padding:10px;background:#f5e6db;color:#824021;border-radius:8px;font-size:13px}.debug h2{display:flex;justify-content:space-between;align-items:center}.debug label{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin:9px 0;gap:8px}.debug input,.debug select{width:140px;max-width:55%;padding:8px;border:1px solid #adb8a3;border-radius:6px}.debug fieldset{border:1px solid #ced5c4;margin:10px 0;border-radius:8px}.debug>button{margin:4px}@keyframes appear{0%{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:none}}@keyframes weather-sway{0%{transform:translateY(-1px) rotate(-4deg)}to{transform:translateY(2px) rotate(4deg)}}@keyframes delivery-arrived{0%{box-shadow:0 0 0 3px #74a56a;background:#d9ead0}to{box-shadow:0 0 0 0 transparent}}@media(max-width:560px){main{margin:0;min-height:var(--app-height);border:0;border-radius:0}main.is-playing{height:var(--app-height)}header{padding:10px 16px}section{padding:20px}.game{padding:8px 12px;gap:6px}.customers{max-height:312px}.customer{padding:7px;gap:6px}.sale{width:68px}.avatar{font-size:26px}.stats b{font-size:22px}}@media(max-width:360px){.customer>.avatar{display:none}.compact-avatar{display:inline}.order b{font-size:12px}.sale{width:64px}.purchase-row{gap:7px}.purchase-row .icon{display:none}.counter{gap:6px}.quick-start{font-size:11px;gap:3px}}@media(max-height:840px){main.is-playing{margin:0 auto;min-height:var(--app-height);height:var(--app-height);border:0;border-radius:0}.is-playing header{padding:2px 10px}.is-playing .header-debug{min-height:20px;font-size:10px}.game{padding:4px 8px;gap:4px}.game .stats{padding:5px 10px}.game .stats b{font-size:21px;margin-top:1px}.game .customers{grid-template-rows:repeat(3,minmax(76px,1fr));min-height:236px;gap:4px}.game .customer{padding:5px 6px}.game .order{gap:2px}.game .notice{padding:4px 7px;min-height:26px}.game .queue-head{min-height:32px}.game .environment{padding:2px 3px}.game .weather-icon{font-size:18px}.game .products{gap:4px 6px}.game .products>div{display:flex;gap:3px;align-items:center}.game .product-heading{display:block;flex:0 0 48px}.game .product-heading small{display:block;font-size:11px;white-space:nowrap}.game .product-heading b{display:block;font-size:12px}.game .price-stepper{flex:1;gap:0;min-width:0}.game .price-stepper button{min-width:36px;width:36px}.game .price-stepper output{font-size:14px;min-width:22px}.game .delivery{font-size:11px;min-height:19px;padding:2px 0;max-height:34px}.game .primary{min-height:44px}.game .restock-heading{padding-bottom:1px}.game .restock-item{padding:3px;gap:2px}.game .restock-grid{gap:4px}.game .restock-info b,.game .restock-info small{font-size:11px}.game .restock-item .counter{gap:2px}.game .restock-item .counter button{width:28px}.game .restock-actions{margin-top:2px}}@media(max-height:620px){.game .notice,.game .timeline{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%)}}@media(orientation:landscape)and (max-height:540px){main.is-playing{max-width:1040px;margin:0 auto;min-height:var(--app-height);border:0;border-radius:0}.is-playing header{padding:2px 12px}.game{display:grid;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-areas:"environment stats" "customers controls";gap:5px 10px;padding:4px 8px}.game .stats{grid-area:stats;padding:5px 10px}.game .stats b{font-size:21px;margin-top:1px}.game .queue-head{grid-area:environment;min-height:30px;display:flex;flex-direction:column;gap:0}.game .queue-head>span{padding:0;align-self:flex-end;font-size:10px;line-height:12px}.game .customers{grid-area:customers;min-height:206px;max-height:none;grid-template-rows:repeat(3,minmax(66px,1fr));gap:4px}.game .customer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 4px;padding:4px 5px 7px}.game .customer.empty{display:flex}.game .customer>.avatar{display:none}.game .compact-avatar{display:inline}.game .order{display:contents}.game .order b{grid-column:1;grid-row:1;font-size:12px;white-space:nowrap}.game .order-items{grid-column:1 / -1;grid-row:2;gap:1px 6px}.game .order>small{display:none}.game .products>div{display:block}.game .product-heading{display:flex}.game .price-stepper button{min-width:32px;width:32px}.game .business-controls{grid-area:controls;align-self:center}.game .notice,.game .timeline{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip-path:inset(50%)}.game .sale{grid-column:2;grid-row:1;width:auto;padding:2px 4px;display:flex;gap:4px;align-items:center}.game .sale b{font-size:14px}.game .sale small,.game .patience-time{font-size:10px;margin:0}.game .patience-prefix{display:none}}@media(orientation:landscape)and (max-height:540px)and (max-width:700px){.game .restock-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}.game .restock-heading{flex-wrap:wrap}.game .restock-item{flex-direction:column;align-items:stretch;padding:0 3px;gap:0}.game .restock-info b{line-height:13px}.game .restock-info small{line-height:12px}.game .restock-item .counter{justify-content:space-between}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}main{padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
