:root { --bg1: #74c0fc; --bg2: #8ce99a; --accent: #0B4DA2; --accent-ink: #fff; --panel-ink: #062A5F; --muted: #3D5B8C; --hole: 120px; }
body { background: linear-gradient(180deg, #74c0fc 0%, #a5d8ff 35%, #8ce99a 36%, #51cf66 100%); }
.timebar { height: 12px; border-radius: 999px; background: rgba(0,0,0,.15); overflow: hidden; flex: 0 0 auto; }
.timebar-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #ffd43b, #ff922b); border-radius: 999px; transform-origin: left; transition: background .3s; }
.timebar-fill.low { background: linear-gradient(90deg, #ff6b6b, #fa5252); }
.field {
  display: grid; grid-template-columns: repeat(3, var(--hole)); gap: calc(var(--hole) * .02) calc(var(--hole) * .18);
  padding: calc(var(--hole) * .02) calc(var(--hole) * .2) calc(var(--hole) * .14); border-radius: 32px; background: rgba(43, 138, 62, .45);
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.12);
}
.hole {
  position: relative; width: var(--hole); height: var(--hole); border: 0; padding: 0; background: none; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.hole:focus-visible { outline: 4px solid var(--accent); outline-offset: 4px; border-radius: 50%; }
.hole .pit {
  position: absolute; left: 4%; right: 4%; bottom: 4%; height: 36%; border-radius: 50%;
  background: radial-gradient(closest-side at 50% 42%, #2b1606 0 68%, #5c3310 70% 86%, #8a5a2b 88%);
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
}
.hole .clip { position: absolute; left: 0; right: 0; top: -20%; bottom: 22%; overflow: hidden; border-radius: 0 0 46% 46%; }
.critter {
  position: absolute; left: 12%; width: 76%; bottom: 0; height: 100%;
  transform: translateY(105%); transition: transform .14s cubic-bezier(.3,1.4,.5,1);
  pointer-events: none;
}
.critter svg { width: 100%; height: 100%; display: block; }
.hole.up .critter { transform: translateY(8%); }
.hole.whacked .critter { transform: translateY(30%) scaleY(.85); transition-duration: .08s; }
.hole .front-lip {
  position: absolute; left: 4%; right: 4%; bottom: 4%; height: 18%; border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: #8a5a2b; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}
.hole .bonk { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.hole.whacked .bonk { animation: bonk .3s ease-out; }
.hole.missed { animation: shake .25s ease; }
.field.hurt { animation: shake .35s ease; }
body.hammer, body.hammer .hole { cursor: pointer; }
@keyframes bonk { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.3); } }
@media (max-width: 560px) { .stat { min-width: 0; padding: 4px 6px; } }
