* { box-sizing: border-box; }
:root { color-scheme: light; --orange: #ff8a3d; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #10273b; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif; }
.game { position: relative; isolation: isolate; width: min(100%, 600px); height: 100vh; height: 100dvh; margin: auto; overflow: hidden; background: #83cce6; }
.scenery, #field, .finish { position: absolute; inset: 0; }
.scenery { background: url('images/gen/gptimg_1795620693_look.png') center / cover no-repeat; pointer-events: none; }
#field { display: block; width: 100%; height: 100%; pointer-events: none; }
.score { position: absolute; top: max(14px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); display: grid; place-items: center; min-width: 60px; height: 42px; padding: 0 12px; border: 2px solid #fff4de; border-radius: 12px; color: #452a1e; background: var(--orange); font-weight: 850; font-size: 22px; font-variant-numeric: tabular-nums; box-shadow: 0 3px #60371a; }
.controls { position: absolute; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; pointer-events: none; }
button { cursor: pointer; font: inherit; font-weight: 750; color: #452a1e; border: 2px solid #fff4de; background: var(--orange); border-radius: 12px; box-shadow: 0 4px #60371a; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #143e58; outline-offset: 3px; }
.controls button { pointer-events: auto; touch-action: none; user-select: none; width: 60px; height: 54px; display: grid; place-items: center; font-size: 27px; }
.controls button:active { transform: translateY(3px); box-shadow: 0 1px #60371a; }
.finish { display: grid; place-items: center; padding: 16px; background: rgb(15 39 58 / 42%); }
.finish[hidden] { display: none; }
.result { width: min(100%, 290px); padding: 24px; border-radius: 8px; background: #fff6e3; color: #452a1e; text-align: center; }
.result h1 { margin: 0; font-size: 25px; }
.result p { margin: 10px 0 20px; }
.result button { min-height: 48px; padding: 0 22px; }
