/* VIP mini-games are isolated here so the main stylesheet stays focused on shared UI. */
.minigame-toolbar-wrapper {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.minigame-toolbar-wrapper.collapsed {
    transform: translate(calc(-100% + 10px), -50%);
}

.minigame-toolbar-toggle {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 38px;
    padding: 0;
    background: rgba(18, 18, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.minigame-toolbar-toggle:hover {
    color: #ffffff;
    background: rgba(30, 30, 38, 0.95);
}

#minigameToolbarToggleIcon {
    transition: transform 0.3s ease;
}

.minigame-toolbar-wrapper .stream-quick-toolbar {
    padding: 8px 6px;
    border-color: rgba(168, 85, 247, 0.35);
}

.minigame-toolbar-label {
    color: #c084fc;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    line-height: 0.95;
    text-align: center;
}

.minigame-toolbar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.minigame-toolbar-actions {
    display: grid;
    grid-template-columns: 36px;
    gap: 5px;
}

.minigame-panel .pns-card {
    border-color: rgba(168, 85, 247, 0.35);
}

.minigame-access-banner {
    padding: 10px 12px;
    border-radius: 10px;
    color: #d8b4fe;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.22);
    font-size: 12px;
}

.minigame-select-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.minigame-field-caption {
    color: var(--muted, #a1a1aa);
    font-size: 11px;
}

.minigame-scenario-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.minigame-settings-btn {
    min-height: 32px;
    padding: 6px 10px;
    white-space: nowrap;
}

.minigame-settings-btn:not(:disabled) {
    border-color: rgba(192, 132, 252, 0.55);
    color: #d8b4fe;
}

.minigame-note {
    margin: 8px 0 0;
    color: var(--muted, #a1a1aa);
    font-size: 12px;
    line-height: 1.45;
}

.minigame-toolbar-wrapper .toolbar-btn.is-active-running,
.minigame-panel .pns-btn.is-active-running {
    background: rgba(168, 85, 247, 0.24) !important;
    border-color: #c084fc !important;
    color: #d8b4fe !important;
}
