.game-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 200px;
}

.score-board {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.score-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.score-item:last-child {
    margin-bottom: 0;
}

.score-item .label {
    font-weight: 600;
}

.score-item .value {
    font-weight: 700;
    color: #2563eb;
}

.controls-info {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.controls-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.controls-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.controls-info li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.game-board-wrapper {
    position: relative;
    display: inline-block;
}

#tetrisCanvas {
    border: 3px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: block;
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 4px;
}

.game-over h2 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
}

.game-over p {
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
}

.next-piece {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
}

.next-piece h3 {
    margin: 0;
}

#nextPieceCanvas {
    border: 2px solid #333;
    border-radius: 4px;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legal-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.legal-section a {
    color: #2563eb;
    text-decoration: none;
    margin: 0 0.5rem;
}

.legal-section a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
        align-items: center;
    }

    .game-info {
        width: 100%;
        max-width: 300px;
    }

    .next-piece {
        width: 100%;
        max-width: 300px;
    }
}
