/* JV Live Events - Jitsi + Three.js Trivia */
* { margin: 0; padding: 0; box-sizing: border-box; }

#bw-live-container {
    width: 100%;
    max-width: 430px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#bw-jitsi-panel {
    width: 100%;
    height: 50%;
    position: relative;
    background: #111;
}
#bw-jitsi-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}
#bw-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53e3e;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 1px;
}
#bw-viewer-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
}

#bw-game-panel {
    width: 100%;
    height: 50%;
    position: relative;
    background: #0d1117;
}
#bw-game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#bw-game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    display: flex;
    flex-direction: column;
    padding: 12px;
    color: white;
}
#bw-game-ui > * {
    pointer-events: auto;
}

.bw-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.bw-game-title {
    font-size: 14px;
    font-weight: 700;
    color: #58a6ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bw-game-round {
    font-size: 12px;
    color: #8b949e;
}
.bw-timer {
    font-size: 24px;
    font-weight: 700;
    color: #f0883e;
    text-align: center;
}

.bw-question-box {
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    text-align: center;
}
.bw-question-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.bw-answers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.bw-answer-btn {
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.bw-answer-btn:hover {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}
.bw-answer-btn.selected {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.2);
}
.bw-answer-btn.correct {
    border-color: #3fb950;
    background: rgba(63, 185, 80, 0.2);
}
.bw-answer-btn.wrong {
    border-color: #f85149;
    background: rgba(248, 81, 73, 0.2);
}

.bw-scoreboard {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px;
    background: rgba(13, 17, 23, 0.9);
    border-radius: 8px;
    margin-top: auto;
}
.bw-player-score {
    text-align: center;
    font-size: 12px;
}
.bw-player-score .name {
    color: #8b949e;
    margin-bottom: 2px;
}
.bw-player-score .score {
    color: #f0883e;
    font-weight: 700;
    font-size: 16px;
}

.bw-waiting {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.bw-waiting h2 {
    font-size: 18px;
    margin-bottom: 8px;
}
.bw-waiting p {
    color: #8b949e;
    font-size: 14px;
}
.bw-start-btn {
    margin-top: 16px;
    background: #238636;
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.bw-start-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
