/* Moles: circular Manual board, square Auto picks and per-round result trail. */
.moles-body.originals-body .mole-panel { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; min-height:630px; padding:96px 24px 24px; gap:30px; border:0; border-radius:0 8px 0 0; background:#0f212e; box-shadow:none; }
.moles-playfield { position:relative; width:min(622px, 100%); aspect-ratio:622 / 380; flex:none; }
.mole-board { position:relative; width:100%; height:100%; margin:0; }
.mole-hole { position:absolute; width:21.22%; height:36.85%; padding:0; border:0; background:transparent; border-radius:50%; color:#fff; cursor:pointer; isolation:isolate; transform:translate(-50%,-50%); -webkit-tap-highlight-color:transparent; }
.mole-hole:nth-child(1) { left:30.55%; top:17%; }
.mole-hole:nth-child(2) { left:69.45%; top:17%; }
.mole-hole:nth-child(3) { left:11.1%; top:48.7%; }
.mole-hole:nth-child(4) { left:50%; top:48.7%; }
.mole-hole:nth-child(5) { left:88.9%; top:48.7%; }
.mole-hole:nth-child(6) { left:30.55%; top:80.3%; }
.mole-hole:nth-child(7) { left:69.45%; top:80.3%; }
.hole-ring { position:absolute; inset:0 0 3%; border-radius:50%; background:#405866; box-shadow:0 13px 0 #233d49; }
.hole-ring::after { content:""; position:absolute; inset:12%; border-radius:50%; background:#203843; }
.mole-hole:disabled { cursor:default; opacity:1; }
.mole-hole:focus-visible { outline:3px solid #86c6ff; outline-offset:6px; }
.mole-board[data-phase="active"] .mole-hole:not(:disabled):hover { cursor:url('../assets/moles/hammer.svg') 26 74, pointer; }
.mole-board[data-phase="active"] .mole-hole:not(:disabled):hover .hole-ring { background:#587381; }
.mole-token { position:absolute; left:18%; bottom:13%; width:64%; height:92%; transform:translateY(30%) scaleY(.5); transform-origin:bottom center; opacity:0; z-index:1; pointer-events:none; }
.mole-token img { width:100%; height:100%; display:block; }
.mole-hole.revealed .mole-token { transform:translateY(0) scaleY(1); opacity:1; }
.mole-board[data-motion="on"][data-phase="revealing"] .mole-hole.revealed .mole-token { animation:moles-pop 170ms ease-out both; }
.mole-board[data-motion="on"][data-phase="revealing"][data-outcome="hit"] .mole-hole.revealed .mole-token { animation:moles-pop 170ms ease-out both,moles-hide 200ms 850ms ease-in forwards; }
.mole-board[data-motion="on"][data-phase="revealing"] .mole-hole.hit .mole-token img { animation:moles-flatten 500ms 100ms ease-out both; transform-origin:bottom center; }
.mole-hole.hit .mole-token { filter:brightness(1.03); }
.mole-hammer { position:absolute; width:105%; height:105%; left:20%; top:-40%; z-index:5; pointer-events:none; transform:rotate(-20deg); transform-origin:85% 90%; }
.mole-hammer img { width:100%; height:100%; }
.mole-board[data-motion="on"][data-phase="revealing"] .mole-hammer { animation:moles-strike 500ms ease-out both; }
.mole-hole.miss .mole-hammer { filter:drop-shadow(0 1px 0 #fb2c63); }
.mole-hole.miss .mole-hammer img { filter:hue-rotate(285deg); }
.mole-sparks { position:absolute; inset:-8%; z-index:4; background:url('../assets/moles/sparks.svg') center/contain no-repeat; pointer-events:none; }
.mole-board[data-motion="on"][data-phase="revealing"] .mole-sparks { animation:moles-spark 500ms ease-out both; }
.mole-board[data-phase="selection"] .mole-hole { width:19.3%; height:31.6%; border-radius:7px; background:#405966; box-shadow:0 12px 0 #233d49; }
.mole-board[data-phase="selection"] .hole-ring { display:none; }
.mole-board[data-phase="selection"] .mole-hole.auto-selected { background:#ffd000; box-shadow:0 12px 0 #ef8700; }
.mole-board[data-phase="selection"] .mole-hole:not(:disabled):hover { background:#87a8bc; }
.auto-sequence-label { position:absolute; display:flex; flex-wrap:wrap; align-content:start; gap:4px; inset:8px; text-align:left; pointer-events:none; }
.auto-sequence-label span { display:grid; place-items:center; background:#45606c; color:#fff; border-radius:3px; min-width:24px; height:26px; font-size:20px; line-height:1; font-weight:800; padding:2px; }
.moles-body .multiplier-rail { position:static; inset:auto; pointer-events:auto; display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:40px; margin:0; padding:0 0 5px; overflow-x:auto; flex:none; }
.moles-result-chip { display:block; flex:0 0 56px; height:40px; border:2px solid transparent; border-radius:999px; background:#1f3643; padding:2px; opacity:.55; }
.moles-result-chip:last-of-type { opacity:1; }
.moles-result-chip.cashed { border-color:#00e701; opacity:1; }
.moles-result-chip svg { display:block; width:100%; height:100%; }
.moles-next { flex:none; display:inline-flex; gap:10px; align-items:center; justify-content:center; min-height:40px; min-width:108px; padding:8px 17px; background:#213743; border-radius:999px; color:#fff; font-size:16px; font-weight:750; font-variant-numeric:tabular-nums; white-space:nowrap; }
.moles-next.auto-target { min-width:178px; font-size:13px; }
.moles-pending { width:30px; height:22px; border-radius:50%; background:#1d3441; flex:none; }
.moles-cashout-popup { position:absolute; z-index:7; top:40%; left:50%; width:150px; min-height:134px; transform:translate(-50%,0); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:18px 12px; border:5px solid #00e701; border-radius:18px; background:#1a303c; color:#00e701; box-shadow:0 3px 12px #07172066; }
.moles-cashout-popup strong { font-size:24px; }
.popup-divider { width:60px; height:3px; background:#45606c; }
.moles-cashout-popup b { font-size:18px; }
.moles-cashout-popup small { font-size:10px; }
.auto-selection-controls { width:100%; display:flex; align-items:center; justify-content:space-between; min-height:30px; margin-top:auto; gap:10px; }
.auto-selection-controls > div { display:flex; width:100%; justify-content:space-between; }
#autoSelectionHint { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.moles-body .auto-selection-controls .text-button { background:transparent; border:0; color:#e2eff8; padding:6px; font-size:14px; }
.moles-body .profit-card { display:flex; flex-direction:column; align-items:stretch; gap:6px; margin-top:4px; padding:0; border:0; background:transparent; }
.moles-body .profit-card > span { font-size:13px; color:#b1c3d1; }
.moles-body .profit-card > strong { min-height:42px; border:1px solid #405a69; border-radius:5px; padding:10px; background:#1d3340; color:#fff; font-size:14px; font-variant-numeric:tabular-nums; }
.moles-body .manual-panel { gap:12px; }
.moles-body #randomPickBtn { background:#2f4553; border:0; min-height:42px; }
.moles-body .tool-row .text-button { background:#2f4553; border:0; color:#b1c3d1; border-radius:4px; padding:8px; }
@keyframes moles-pop { from { opacity:.4; transform:translateY(60%) scaleY(.2); } to { opacity:1; transform:translateY(0) scaleY(1); } }
@keyframes moles-hide { to { opacity:0; transform:translateY(65%) scaleY(.2); } }
@keyframes moles-flatten { 0%,25% { transform:scaleY(1); } 45%,65% { transform:scaleY(.55); } 100% { transform:scaleY(1); } }
@keyframes moles-strike { 0% { opacity:0; transform:translate(20%,-40%) rotate(-50deg); } 20% { opacity:1; transform:translate(0,-20%) rotate(-40deg); } 45% { transform:translate(0,15%) rotate(5deg); } 64% { transform:translate(0,-5%) rotate(-25deg); } 100% { opacity:1; transform:rotate(-20deg); } }
@keyframes moles-spark { 0%,35% { opacity:0; transform:scale(.5); } 55% { opacity:1; transform:scale(1); } 100% { opacity:0; transform:scale(1.25); } }
@media(max-width:1000px) and (min-width:761px) { .moles-body.originals-body .mole-panel { min-height:550px; padding:90px 20px 24px; gap:28px; } .auto-sequence-label span { font-size:15px; min-width:18px; height:21px; } }
@media(max-width:760px) {
 .moles-body.originals-body .mole-panel { min-height:360px; padding:42px 18px 18px; gap:24px; border-radius:8px; }
 .moles-playfield { width:min(500px,100%); }
 .hole-ring { box-shadow:0 7px 0 #233d49; }
 .mole-board[data-phase="selection"] .mole-hole { box-shadow:0 7px 0 #233d49; border-radius:4px; }
 .mole-board[data-phase="selection"] .mole-hole.auto-selected { box-shadow:0 7px 0 #ef8700; }
 .auto-sequence-label { inset:4px; gap:2px; }
 .auto-sequence-label span { min-width:13px; height:16px; font-size:12px; padding:1px; }
 .moles-body .multiplier-rail { gap:5px; min-height:32px; justify-content:safe center; }
 .moles-result-chip { flex-basis:34px; height:26px; padding:1px; }
 .moles-next { min-width:90px; min-height:32px; font-size:13px; padding:6px 12px; gap:5px; }
 .moles-next.auto-target { min-width:140px; }
 .moles-pending { width:18px; height:15px; }
 .moles-cashout-popup { width:112px; min-height:102px; border-width:4px; border-radius:13px; padding:10px; gap:8px; }
 .moles-cashout-popup strong { font-size:20px; }
 .moles-cashout-popup b { font-size:15px; }
}
@media(max-width:360px) {
 .auto-sequence-label { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:13px; inset:3px; gap:1px; }
 .auto-sequence-label span { min-width:0; height:13px; padding:0; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .moles-body .mole-token,.moles-body .mole-hammer,.moles-body .mole-sparks { animation:none!important; } }
