/* ChatBase — Party games (partygames.js) */

/* shared banner shell (king, potato) */
.pg-banner {
    position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 99982;
    display: flex; align-items: center; gap: 10px; width: min(420px, calc(100vw - 24px));
    background: linear-gradient(135deg, rgba(40,20,55,.96), rgba(20,20,55,.96));
    border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 9px 13px;
    box-shadow: 0 10px 34px rgba(0,0,0,.45); color: #fff; animation: pgIn .3s ease;
}
@keyframes pgIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.pg-ico { font-size: 28px; }
.pg-bomb { animation: pgShake .4s linear infinite; }
@keyframes pgShake { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.pg-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pg-mid b { font-size: 13px; }
.pg-mid small { font-size: 11px; color: rgba(255,255,255,.65); }
.pg-pass { flex: 0 0 auto; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; color: #2a1026; padding: 7px 10px; border-radius: 9px; border: none; background: linear-gradient(135deg, #ffd166, #ff8c43); margin-left: 4px; }
.pg-pass:active { transform: scale(.93); }

/* 🔴🟢 Red/Green light */
#rlglBanner {
    position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 99988;
    display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px;
    font-weight: 800; font-size: 15px; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: pgIn .3s ease;
}
#rlglBanner.rlgl-red { background: linear-gradient(135deg, #ff2d55, #c9184a); animation: rlglPulse 1s ease-in-out infinite; }
#rlglBanner.rlgl-green { background: linear-gradient(135deg, #34e8b0, #1aa179); }
@keyframes rlglPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,45,85,.5); } 50% { box-shadow: 0 0 0 10px rgba(255,45,85,0); } }
.rlgl-dot { font-size: 18px; }

/* 🎯 Live Trivia */
#triviaBanner {
    position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 99986;
    width: min(440px, calc(100vw - 24px));
    background: linear-gradient(135deg, rgba(25,20,60,.97), rgba(45,15,55,.97));
    border: 1px solid rgba(138,180,255,.5); border-radius: 16px; padding: 14px; color: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: pgIn .3s ease;
}
.tv-q { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.tv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tv-opt { font: inherit; font-size: 13px; text-align: left; cursor: pointer; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
button.tv-opt:hover { background: rgba(255,255,255,.14); }
.tv-opt:disabled { cursor: default; opacity: .8; }
.tv-picked { border-color: #8ab4ff; background: rgba(138,180,255,.2); }
.tv-correct { border-color: #34e8b0; background: rgba(52,232,176,.22); }
.tv-win { margin-top: 10px; text-align: center; font-weight: 800; font-size: 14px; }

@media (max-width: 560px) {
    .pg-banner, #triviaBanner { bottom: 150px; }
    #rlglBanner { top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .pg-bomb, #rlglBanner.rlgl-red { animation: none; } }
