* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #352416; color: #44230f; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.page { width: 100%; max-width: 520px; margin: 0 auto; }
.game { position: relative; min-height: 760px; height: 100svh; overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.game-ui { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 760px; padding: max(10px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom)); }
.stats { display: flex; gap: 5px; align-items: center; justify-content: space-between; padding: 8px; border: 2px solid #865126; border-radius: 14px; background: #fff0d9ed; font-size: 12px; }
.stats b { font-size: 19px; color: #ad4217; }
.stats button { min-height: 40px; padding: 0 11px; border: 1px solid #9b5c2b; border-radius: 10px; background: #ff8a3d; font-weight: 700; }
.order { display: block; width: 100%; min-height: 64px; margin-top: 12px; padding: 12px; background: #fff8e9f2; border: 2px solid #9d6232; border-radius: 18px; font-size: 17px; font-weight: 700; }
.queue { align-self: flex-start; margin-top: 6px; background: #fff1dce8; border-radius: 8px; padding: 6px 9px; font-size: 12px; }
.play-area { display: flex; gap: 7px; align-items: stretch; margin-top: auto; padding-top: 120px; }
.grill { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; flex: 1; min-width: 0; align-items: stretch; padding: 7px 3px; border-radius: 13px; background: #5b301c33; }
.skewer { min-width: 0; min-height: 240px; padding: 6px 1px; border: 2px solid #fff0d070; border-radius: 12px; background: #fff4dc26; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.skewer.selected { border-color: #ff8a3d; outline: 2px solid #fff1b0; background: #ffb83f40; }
.food-name { font-size: 13px; font-weight: 800; writing-mode: vertical-rl; letter-spacing: 3px; padding: 7px 4px; border-radius: 9px; background: #fff2daf0; }
.heat-label { font-size: 11px; padding: 3px 1px; border-radius: 5px; background: #f7d5ceee; white-space: nowrap; }
.cooked .heat-label { background: #ffc967; }
.burnt { background: #1b100bb0; }
.burnt .heat-label { color: white; background: #342723; }
meter { display: block; width: 100%; height: 9px; accent-color: #ff8a3d; }
.faces { font-size: 10px; line-height: 1.5; padding: 2px 3px; border-radius: 5px; background: #fff4e2e8; }
.seasoned { font-size: 10px; min-height: 31px; padding: 3px 1px; border-radius: 5px; background: #fff4e2ee; }
.tools { display: flex; flex-direction: column; gap: 7px; width: 59px; flex-shrink: 0; }
.tools button { min-height: 46px; border: 2px solid #8b532a; border-radius: 13px; background: #ffe5bceF; font-size: 12px; font-weight: 700; padding: 5px 2px; }
.tools button[data-spice="辣椒粉"] { background: #ffd4beef; }
.tools button[data-spice="五香粉"] { background: #e6ddb7ef; }
.tools button:active, .serve:active { filter: brightness(.9); }
.bottom { margin-top: 10px; padding: 9px 10px; background: #fff1dcf2; border: 2px solid #9b5c2b; border-radius: 16px; text-align: center; }
.bottom p { margin: 2px 0 8px; font-size: 12px; line-height: 1.5; }
.serve { width: 100%; min-height: 48px; border: 2px solid #a44b20; border-radius: 12px; background: #ff8a3d; font-size: 17px; font-weight: 800; }
#message { margin: 8px 0 0; min-height: 34px; color: #75432b; }
.overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 24px; background: #2d170dbb; }
[hidden] { display: none !important; }
.result { width: 100%; padding: 26px 20px; text-align: center; border: 3px solid #98582d; border-radius: 22px; background: #fff0d9; }
.result h2 { margin: 0 0 20px; }
.result strong { font-size: 32px; color: #c65a20; }
.result button { min-height: 48px; width: 100%; margin-top: 12px; border: 2px solid #a44b20; border-radius: 12px; background: #ff8a3d; font-weight: 700; }
@media (min-height: 850px) { .play-area { padding-top: 190px; } .skewer { min-height: 280px; } }
@media (max-width: 360px) { .game-ui { padding-left: 5px; padding-right: 5px; } .stats { gap: 3px; padding: 5px; } .stats b { font-size: 16px; } .tools { width: 52px; } .food-name { font-size: 12px; } }
