.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    touch-action: manipulation;
}

#score-board {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #38B48B;
}

.hole-grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 15px;
    background-color: #8B4513;
    /* 土の色 */
    padding: 15px;
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.hole {
    background-color: #3e1f08;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.8);
}

.hole::after {
    /* 穴の手前のフチ（土） */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #8B4513;
    border-top-left-radius: 50% 10px;
    border-top-right-radius: 50% 10px;
    z-index: 2;
}

.mole {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%23a0522d"/><circle cx="35" cy="40" r="5" fill="black"/><circle cx="65" cy="40" r="5" fill="black"/><ellipse cx="50" cy="55" rx="15" ry="10" fill="%23ffebcd"/><circle cx="50" cy="50" r="4" fill="black"/></svg>');
    background-size: cover;
    position: absolute;
    top: 100%;
    /* 初期位置は穴の中（隠れている） */
    width: 100%;
    height: 100%;
    transition: top 0.2s;
    cursor: pointer;
    z-index: 1;
}

.hole.up .mole {
    top: 10px;
    /* ひょっこり出る */
}

/* スマホ向け調整 */
@media (max-width: 400px) {
    .hole-grid {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
        gap: 10px;
    }
}

.controls-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: #666;
    margin-top: 20px;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    background-color: #38B48B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 4px 0 #2a8f6d;
}

button:hover {
    background-color: #2a8f6d;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1b664d;
}

button:active {
    transform: translateY(4px);
    box-shadow: none;
}