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

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

.canvas-wrapper {
    position: relative;
    border: 4px solid #38B48B;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #111;
    width: 240px;
    height: 480px;
}

canvas {
    display: block;
    background-color: transparent;
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
}

#game-over.hidden {
    display: none;
}

#game-over p {
    margin-bottom: 15px;
    color: #ff4757;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.mobile-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    user-select: none;
}

.control-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.mobile-controls button {
    margin: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    color: #333;
    border: 2px solid #ccc;
    box-shadow: 0 4px #aaa;
    padding: 0;
}

.mobile-controls button:active {
    box-shadow: 0 0 #aaa;
    transform: translateY(4px);
    background-color: #ccc;
}

#btn-drop {
    width: 120px;
    border-radius: 25px;
    font-size: 1.2rem;
}

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

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

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

button:hover {
    background-color: #2a8f6d;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#restartBtn {
    font-size: 1rem;
    margin-top: 0;
}