* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #392718; color: #51301d; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
button { font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.page { position: relative; max-width: 480px; height: 100svh; min-height: 560px; margin: 0 auto; overflow: hidden; background: #f9d28c; }
.game-art { position: absolute; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.game { position: absolute; inset: 0; }
.status { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 4%; right: 4%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-radius: 18px; background: #fff5dfed; box-shadow: 0 3px 0 #a86a3460; }
.status small { display: block; font-size: 12px; font-weight: 700; }
.status strong { display: block; margin-top: 3px; font-size: 25px; color: #bc511b; font-variant-numeric: tabular-nums; }
.status .combo strong { font-size: 17px; }
.combo { text-align: center; }
.lives { display: flex; gap: 3px; margin-top: 7px; color: #ed6943; font-size: 20px; }
.lives .lost { color: #c6b6a4; }
.board { position: absolute; left: 5%; right: 5%; top: 35%; bottom: 16%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px 8px; touch-action: none; }
.hole { position: relative; padding: 0; border: 0; border-radius: 45%; overflow: hidden; background: transparent; touch-action: none; }
.mole { position: absolute; inset: 0; display: block; border-radius: 45%; background-image: url('images/gen/gptimg_1795597251_look.png'); background-size: 300% 300%; background-position: 50% 50%; transform: translateY(110%); transition: transform 130ms ease-out; pointer-events: none; filter: drop-shadow(0 4px 2px #54331d80); }
.hole.up .mole { transform: translateY(0); }
.hole:focus-visible { outline: 3px solid #ff8a3d; }
.hole.hit { filter: brightness(1.3); }
.tip { position: absolute; bottom: max(25px, env(safe-area-inset-bottom)); left: 5%; right: 5%; margin: 0; padding: 10px 6px; border-radius: 12px; background: #fff5dfed; text-align: center; font-size: 12px; font-weight: 600; }
.effects { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.points { position: absolute; color: #ffed79; font-size: 30px; font-weight: 900; text-shadow: 0 2px 2px #7b3011, 1px 0 #7b3011; animation: float-score 750ms ease-out forwards; }
@keyframes float-score { from { opacity: 1; transform: translate(-50%, 0) scale(.85); } 25% { transform: translate(-50%, -20px) scale(1.15); } to { opacity: 0; transform: translate(-50%, -85px) scale(1); } }
.overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px; background: #27170db3; }
[hidden] { display: none !important; }
.result-card { width: 100%; padding: 28px 18px 20px; border-radius: 24px; background: #fff4db; text-align: center; box-shadow: 0 8px 30px #30180755; }
h2 { margin: 0 0 22px; font-size: 26px; }
.result-card p { margin: 12px 0; }
.final-score { font-size: 48px; color: #d65f20; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions button { flex: 1; min-height: 50px; border: none; border-radius: 14px; padding: 10px; background: #ff8a3d; color: #48210c; font-weight: 800; }
.actions button:last-child { background: #f2d6a9; }
.actions button:disabled { opacity: .5; cursor: default; }
.ad-status { min-height: 20px; font-size: 13px; color: #84664c; }
@media (prefers-reduced-motion: reduce) { .mole { transition: none; } .points { animation-duration: 200ms; } }
