#tetris-top-right-trigger.tetris-top-right-trigger {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99998;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    background: #ef4444;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.22);
}

#tetris-top-right-trigger.tetris-top-right-trigger:hover {
    background: #dc2626;
}

.tetris-top-right-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.tetris-top-right-modal.is-open {
    display: flex;
}

.tetris-top-right-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.tetris-top-right-dialog {
    position: relative;
    z-index: 2;
    width: min(92vw, 760px);
    max-height: 90vh;
    overflow: auto;
    background: #111827;
    color: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.tetris-top-right-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.tetris-top-right-game-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

#tetris-top-right-canvas {
    background: #000000;
    border: 2px solid #374151;
    max-width: 100%;
    height: auto;
}

.tetris-top-right-sidepanel {
    min-width: 180px;
}

.tetris-top-right-score {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tetris-top-right-help {
    margin: 0;
    color: #d1d5db;
}

body.tetris-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    #tetris-top-right-trigger.tetris-top-right-trigger {
        top: 12px;
        right: 12px;
        padding: 12px 16px;
    }

    .tetris-top-right-dialog {
        padding: 18px;
    }
}