.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    touch-action: manipulation;
    /* スマホでのズーム等を防止 */
}

#status {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #38B48B;
    height: 30px;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    background-color: #38B48B;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cell {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.cell:hover {
    background-color: #f0f8f5;
}

.cell.x {
    color: #ff4757;
}

.cell.o {
    color: #1e90ff;
}

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

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

    .cell {
        font-size: 3rem;
    }
}