* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #ffe5d5; color: #70442e; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.page { position: relative; width: 100%; height: 100%; height: 100dvh; overflow: hidden; }
#game { display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.game-score { position: absolute; top: max(28px, env(safe-area-inset-top)); left: 24px; display: flex; flex-direction: column; pointer-events: none; }
.game-score small { font-size: 13px; color: #966c55; }
.game-score strong { font-size: 56px; line-height: 1.15; font-weight: 800; }
.game-score span { margin-top: 7px; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.combo { position: absolute; top: max(62px, calc(env(safe-area-inset-top) + 36px)); right: 24px; color: #bd5920; font-size: 19px; font-weight: 800; pointer-events: none; }
.game-tip { position: absolute; bottom: max(34px, calc(env(safe-area-inset-bottom) + 20px)); left: 0; width: 100%; text-align: center; font-size: 15px; color: #795b65; pointer-events: none; }
.game-over { position: absolute; inset: 0; display: grid; place-items: center; background: #62455640; padding: 24px; }
.game-over[hidden] { display: none; }
.game-over > div { width: min(100%, 310px); border-radius: 22px; padding: 28px 22px; text-align: center; background: #fff8f0; box-shadow: 0 12px 40px #70442e20; }
.game-over h2 { margin: 0 0 12px; font-size: 25px; }
.game-over p { color: #96715d; font-size: 15px; line-height: 1.6; }
.game-over button { width: 100%; min-height: 50px; margin-top: 12px; border: 0; border-radius: 14px; background: #ff8a3d; color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.game-over button:active { background: #eb7630; }
