.dog-mole-stage {
    background: #0b3b66;
    cursor: pointer;
}

.dog-mole-page .btn-start-game {
    background: var(--game-accent);
    box-shadow: 0 10px 24px var(--game-accent-soft);
}

#dogMoleCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.color-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.color-mode-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 11px;
    border: 2px solid rgba(139, 117, 104, 0.16);
    border-radius: 14px;
    background: #fff;
    color: var(--game-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.color-mode-btn:hover {
    transform: translateY(-1px);
}

.color-mode-btn.is-active {
    border-color: var(--game-accent);
    background: var(--game-accent-soft);
}

.mode-swatches {
    display: flex;
    gap: 3px;
    flex: 0 0 auto;
}

.mode-swatch {
    display: block;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 50%;
}

.mode-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.mode-label small {
    color: var(--game-muted);
    font-size: 0.62rem;
    font-weight: 600;
}

.custom-colors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px dashed rgba(139, 117, 104, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
}

.custom-color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    color: var(--game-ink);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.custom-color-row input[type="color"] {
    width: 42px;
    height: 30px;
    padding: 2px;
    border: 1px solid rgba(139, 117, 104, 0.26);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .color-mode-btn {
        gap: 7px;
        padding: 7px 8px;
    }

    .mode-swatch {
        width: 12px;
        height: 12px;
    }

    .mode-label {
        font-size: 0.72rem;
    }

    .mode-label small {
        font-size: 0.58rem;
    }
}

@media (max-width: 420px) {
    .custom-colors {
        grid-template-columns: 1fr;
    }
}
