.wm-time { height: 10px; background: var(--c-grid); border-radius: 99px; overflow: hidden; margin: 0 auto 16px; max-width: 520px; }
[data-theme="retro"] .wm-time { border-radius: 0; border: 2px solid #000; height: 14px; }
#wm-bar { height: 100%; background: var(--a4); transform-origin: left; }
#wm-bar.low { background: var(--bad); }
.wm-field {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--a4) 22%, var(--panel));
  touch-action: manipulation;
  cursor: crosshair;
}
[data-theme="retro"] .wm-field { background: #0f2a12; border: 3px solid #000; box-shadow: inset 0 0 0 3px #1f5a24; }
.wm-hole {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: none;
  overflow: hidden;
  cursor: inherit;
  -webkit-tap-highlight-color: transparent;
}
.wm-dirt {
  position: absolute;
  left: 8%; right: 8%; bottom: 6%;
  height: 34%;
  border-radius: 50%;
  background: #2a1a0e;
  box-shadow: inset 0 6px 0 rgba(0,0,0,.4);
}
[data-theme="retro"] .wm-dirt { border-radius: 0; background: #000; box-shadow: inset 0 0 0 3px #3a2410; }
.wm-mole {
  position: absolute;
  left: 18%; right: 18%;
  bottom: 12%;
  transform: translateY(110%);
  transition: transform .12s ease-out;
  z-index: 1;
}
.wm-hole.up .wm-mole { transform: translateY(0); }
.wm-mole svg { width: 100%; height: auto; shape-rendering: crispEdges; }
.wm-mole .b { fill: #9a6a3d; }
.wm-mole .f { fill: #f2c9a0; }
[data-theme="retro"] .wm-mole .b { fill: var(--a5); }
[data-theme="retro"] .wm-mole .f { fill: var(--a1); }
.wm-hole[data-kind="gold"] .wm-mole .b { fill: var(--a3); }
.wm-hole[data-kind="gold"] .wm-mole { filter: drop-shadow(0 0 8px var(--a3)); }
.wm-hole[data-kind="bomb"] .wm-mole .b { fill: #222; }
.wm-hole[data-kind="bomb"] .wm-mole .f { fill: var(--bad); }
[data-theme="retro"] .wm-hole[data-kind="bomb"] .wm-mole .b { fill: #444; }
.wm-hole.hit .wm-dirt { background: var(--a3); }
.wm-hole.boom { animation: wm-shake .3s; }
@keyframes wm-shake { 25%, 75% { transform: translate(-4px, 2px); } 50% { transform: translate(4px, -2px); } }
.wm-pop { position: absolute; left: 0; right: 0; top: 10%; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--fg); opacity: 0; z-index: 2; font-size: 18px; pointer-events: none; }
[data-theme="retro"] .wm-pop { font-size: 11px; color: var(--a3); text-shadow: 2px 2px 0 #000; }
.wm-pop.show { animation: wm-pop .6s ease-out; }
@keyframes wm-pop { 0% { opacity: 1; transform: translateY(10px); } 100% { opacity: 0; transform: translateY(-20px); } }
