* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #fff3e5; color: #573622; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.page { max-width: 480px; min-height: 100dvh; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); }
.tea-game { width: 100%; }
.level-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.level-line strong { font-size: 23px; }
.level-line span { font-size: 14px; color: #775640; }
.customer-area { text-align: center; margin-top: 14px; padding: 20px 16px 12px; border: 2px solid #efc99e; background: #fffaf3; border-radius: 22px; }
.order-bubble { min-height: 64px; display: flex; align-items: center; justify-content: center; padding: 14px; background: #fff; border: 2px solid #ff8a3d; border-radius: 16px; font-size: 19px; font-weight: 700; line-height: 1.5; }
.customer-icon { display: block; width: 80px; height: 80px; margin: 12px auto 6px; font-size: 80px; color: #b97547; }
.customer-left .customer-icon { visibility: hidden; }
.patience-track { width: 72%; height: 12px; margin: 8px auto; border-radius: 8px; overflow: hidden; background: #e6dfd4; }
#patience { height: 100%; width: 100%; background: #65b965; }
#customer-status { min-height: 20px; margin: 10px 0 0; color: #80644f; font-size: 13px; }
.game-hint { min-height: 66px; padding: 12px 4px; font-size: 14px; line-height: 1.5; color: #974c20; }
.mix-area { border-radius: 20px; padding: 16px; background: #fffcf7; border: 2px solid #efc99e; }
h2 { margin: 0; font-size: 20px; }
h3 { margin: 16px 0 10px; font-size: 14px; font-weight: 600; }
#cup { min-height: 44px; margin: 10px 0; padding: 12px; background: #fff0df; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
button { min-height: 46px; padding: 10px 7px; border: 1px solid #ddbf9f; border-radius: 12px; background: #fff; color: #573622; font: inherit; font-size: 15px; cursor: pointer; touch-action: manipulation; }
button.selected { background: #ff8a3d; color: #382111; border: 2px solid #b94f0d; font-weight: 700; }
button:focus-visible { outline: 3px solid #974c20; outline-offset: 2px; }
button:disabled { opacity: .5; cursor: default; }
.actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 20px; }
#deliver { background: #ff8a3d; border-color: #ed7629; font-weight: 700; }
