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

#level-title {
    font-size: 2rem;
    color: #38B48B;
    margin-bottom: 2rem;
    font-family: monospace;
    text-align: center;
}

.simon-board {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row {
    display: flex;
    gap: 10px;
}

.btn {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 5px solid black;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active,
.btn.pressed {
    transform: translateY(5px);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}

.red {
    background-color: #ff3333;
}

.red.pressed {
    background-color: #ffcccc;
}

.blue {
    background-color: #3333ff;
}

.blue.pressed {
    background-color: #ccccff;
}

.green {
    background-color: #33ff33;
}

.green.pressed {
    background-color: #ccffcc;
}

.yellow {
    background-color: #ffff33;
}

.yellow.pressed {
    background-color: #ffffcc;
}

.game-over {
    background-color: #ff4757;
    transition: background-color 0.2s;
}

/* スマホ向け調整 */
@media (max-width: 400px) {
    .btn {
        width: 100px;
        height: 100px;
    }
}

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

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

button#startBtn {
    margin-top: 30px;
    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#startBtn:hover {
    background-color: #2a8f6d;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1b664d;
}

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