body {
    font-family: 'Quicksand', sans-serif;
}

.mm-stats-bar {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 5vw, 48px);
    margin: 16px auto 8px;
    padding: 10px 16px;
    max-width: 600px;
}

.mm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mm-stat-label {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(0.65rem, 2vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
}

.mm-stat-value {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    font-weight: 700;
    color: #1e293b;
}

.mm-board-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 8px 12px 32px;
}

/* Sized off the smaller of width/height so landscape (height-constrained)
   and portrait (width-constrained) both work without separate media queries */
.mm-board {
    width: min(92vw, 70vh, 520px);
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: clamp(8px, 2vw, 16px);
    background: #a3714f;
    border-radius: 18px;
    padding: clamp(8px, 2vw, 16px);
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.25);
}

.mm-hole {
    position: relative;
    background: radial-gradient(ellipse at center, #4a2f1f 0%, #6b4530 60%, #7d5238 100%);
    border-radius: 50%;
    overflow: hidden; /* clip the mole sprite as it rises, contained to just this element */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mm-mole {
    position: absolute;
    left: 50%;
    bottom: -100%;
    transform: translateX(-50%);
    width: 72%;
    height: 72%;
    font-size: clamp(1.8rem, 8vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: bottom 0.15s ease-out;
    user-select: none;
}

.mm-hole.up .mm-mole {
    bottom: 10%;
}

.mm-hole.whacked .mm-mole {
    bottom: -100%;
    transition: bottom 0.08s ease-in;
}

.mm-start-btn {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 4vw, 1.2rem);
    padding: 12px 40px;
    border: none;
    border-radius: 999px;
    background: #38bdf8;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.mm-start-btn:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: default;
}

@media (max-width: 380px) {
    .mm-stat-value { font-size: 1.15rem; }
    .mm-stat-label { font-size: 0.6rem; }
}