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

#status-board {
    width: 320px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#turn-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #38B48B;
}

.score-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.score-box {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
}

.disc {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.3);
}

.black-disc {
    background-color: #111;
}

.white-disc {
    background-color: #eee;
    border: 1px solid #ccc;
}

.board {
    display: grid;
    grid-template-columns: repeat(8, 40px);
    grid-template-rows: repeat(8, 40px);
    background-color: #2F4F4F;
    /* Dark Slate Gray for board border */
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.cell {
    width: 40px;
    height: 40px;
    background-color: #2e8b57;
    /* Sea Green */
    border: 1px solid #2F4F4F;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
}

.cell-disc {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, background-color 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.cell-disc.black {
    background-color: #111;
}

.cell-disc.white {
    background-color: #eee;
    border: 1px solid #ddd;
}

/* Valid move hint */
.cell-disc.hint {
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    transform: scale(0.5);
}

/* スマホ向け調整 */
@media (max-width: 400px) {
    .board {
        grid-template-columns: repeat(8, 35px);
        grid-template-rows: repeat(8, 35px);
    }

    .cell {
        width: 35px;
        height: 35px;
    }

    .cell-disc {
        width: 30px;
        height: 30px;
    }
}

.controls {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #555;
    user-select: none;
}

.controls input {
    margin-right: 8px;
    transform: scale(1.5);
}

.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;
}