.bg-game-trigger {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bg-game-trigger:hover {
    background-color: #005177;
}

.bg-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.bg-modal-content {
    background-color: #333;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 350px;
    border-radius: 10px;
    position: relative;
    color: white;
}

.bg-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.bg-modal-close:hover,
.bg-modal-close:focus {
    color: white;
    text-decoration: none;
}

.bg-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#tetris-canvas {
    border: 2px solid #555;
    background-color: #000;
}

.bg-game-info {
    text-align: center;
}

#bg-score {
    font-size: 24px;
    margin-bottom: 10px;
}

#bg-start-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

#bg-start-btn:hover {
    background-color: #45a049;
}