/* SynapseMed QuizPulse - Live Clinical & Competition Platform Design System
   Source: https://synapsemed.co.tz (Theme: Plus Jakarta Sans, Navy #213874, Blue #1a6ac3, Gold #f3ab1b) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --brand-navy: #213874;
    --brand-blue: #1a6ac3;
    --brand-blue-hover: #1558a3;
    --brand-gold: #f3ab1b;
    --brand-gold-glow: rgba(243, 171, 27, 0.35);
    --brand-canvas: #f4f4f6;
    --brand-card: #ffffff;
    
    /* Arena dark background theme (Default) */
    --bg-dark: #0a1124;
    --bg-surface: #101c38;
    --bg-card: rgba(16, 28, 56, 0.9);
    --bg-card-hover: rgba(22, 38, 74, 0.95);
    --border-card: rgba(255, 255, 255, 0.1);
    
    --primary: #1a6ac3;
    --primary-glow: rgba(26, 106, 195, 0.4);
    --cyan: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.35);
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.35);
    --orange: #f3ab1b;
    --orange-glow: rgba(243, 171, 27, 0.35);
    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.35);
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Light / White (#ffffff) Theme Support */
body.theme-light {
    --bg-dark: #ffffff;
    --bg-surface: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-card: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --cyan: #0284c7;
    --cyan-glow: rgba(2, 132, 199, 0.25);
    background: #ffffff !important;
    color: #0f172a !important;
}

body.theme-light .card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .top-bar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07) !important;
}

body.theme-light .logo-text {
    color: var(--brand-navy) !important;
}

body.theme-light .btn-secondary {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

body.theme-light .btn-secondary:hover {
    background: #e2e8f0 !important;
}

body.theme-light .telemetry-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.theme-light .telemetry-box .telemetry-num {
    color: var(--brand-blue) !important;
}

body.theme-light input[type="text"],
body.theme-light input[type="number"],
body.theme-light input[type="password"],
body.theme-light select,
body.theme-light textarea {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus {
    border-color: var(--brand-blue) !important;
}

body.theme-light .team-chip {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .team-answer-btn {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-light .leaderboard-row {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.theme-light .leaderboard-row:hover {
    background: #f1f5f9 !important;
}

body.theme-light .hero-title {
    background: linear-gradient(135deg, var(--brand-navy) 40%, var(--brand-blue) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.theme-light .feature-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .feature-card h3 {
    color: var(--brand-navy) !important;
}

body.theme-light .question-card-public {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-light .qoption-box {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-light .dist-container {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.theme-light .dist-track {
    background: #f1f5f9 !important;
}

body.theme-light .consensus-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.theme-light .member-vote-pill {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .theme-toggle-btn {
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at 50% 0%, #15254d 0%, var(--bg-dark) 80%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    selection-background-color: rgba(26, 106, 195, 0.25);
}

/* SynapseMed Floating Pill Top Bar */
.top-bar-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 16px;
    width: 100%;
}

.top-bar {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: rgba(16, 28, 56, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(10, 17, 36, 0.4);
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-badge {
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 19px;
    color: var(--brand-gold);
    box-shadow: 0 0 16px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #ffffff;
}

.logo-text span.med {
    color: #38bdf8;
}

.logo-text span.pulse {
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-gold), #fbbf24);
    color: #0a1124;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.brand-dual-header {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-dual-header .logo-img-tamsa {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.brand-dual-header .logo-img-lecturio {
    height: 28px;
    width: auto;
    object-fit: contain;
    transition: filter 0.2s ease;
}

body:not(.theme-light) .brand-dual-header .logo-img-lecturio {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

body.theme-light .brand-dual-header .logo-img-lecturio {
    filter: none;
}

.brand-dual-header .brand-divider-x {
    font-size: 15px;
    font-weight: 900;
    color: var(--text-muted);
    opacity: 0.7;
    margin: 0 2px;
}

.brand-dual-header .event-tag-pill {
    font-size: 11px;
    font-weight: 800;
    background: rgba(30, 181, 58, 0.15);
    border: 1px solid rgba(30, 181, 58, 0.4);
    color: #1eb53a;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}

.university-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 181, 58, 0.15);
    border: 1px solid rgba(30, 181, 58, 0.4);
    color: #1eb53a;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

body.theme-light .university-badge {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

body.theme-light .brand-dual-header .event-tag-pill {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SynapseMed Brand Buttons */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a6ac3, #213874);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(26, 106, 195, 0.3);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(26, 106, 195, 0.45);
    background: linear-gradient(135deg, #1f77d8, #27438c);
}

button:active, .btn:active {
    transform: translateY(0);
}

.btn-gold {
    background: linear-gradient(135deg, var(--brand-gold), #f59e0b) !important;
    color: #0a1124 !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 16px var(--brand-gold-glow) !important;
    border: none !important;
}
.btn-gold:hover {
    box-shadow: 0 6px 24px rgba(243, 171, 27, 0.5) !important;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

button:active, .btn:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border: 1px solid var(--border-card);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 4px 14px var(--red-glow);
}
.btn-danger:hover {
    box-shadow: 0 6px 20px var(--red-glow);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px var(--green-glow);
}
.btn-success:hover {
    box-shadow: 0 6px 20px var(--green-glow);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* Glass Card Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
}

/* Hero Landing */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 77, 255, 0.15);
    border: 1px solid rgba(124, 77, 255, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(17px, 2vw, 22px);
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(22, 30, 50, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 77, 255, 0.4);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-thinking {
    background: rgba(61, 90, 254, 0.15);
    color: #8c9eff;
    border: 1px solid rgba(61, 90, 254, 0.3);
}

.status-discussing {
    background: rgba(255, 145, 0, 0.15);
    color: #ffb74d;
    border: 1px solid rgba(255, 145, 0, 0.3);
    animation: pulseDiscuss 1.5s infinite;
}

.status-ready {
    background: rgba(0, 229, 255, 0.15);
    color: #80deea;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.status-locked {
    background: rgba(255, 23, 68, 0.15);
    color: #ff8a80;
    border: 1px solid rgba(255, 23, 68, 0.3);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.2);
}

@keyframes pulseDiscuss {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Question Types Badges */
.qtype-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.qtype-normal { background: rgba(255, 255, 255, 0.1); color: #e2e8f0; }
.qtype-fast { background: linear-gradient(135deg, #ff9100, #ff3d00); color: #fff; box-shadow: 0 0 12px var(--orange-glow); }
.qtype-risk { background: linear-gradient(135deg, #d500f9, #7c4dff); color: #fff; box-shadow: 0 0 12px rgba(213, 0, 249, 0.4); }
.qtype-double { background: linear-gradient(135deg, #ff1744, #ff5252); color: #fff; box-shadow: 0 0 12px var(--red-glow); }
.qtype-mystery { background: linear-gradient(135deg, #00b0ff, #00e5ff); color: #000; font-weight: 900; box-shadow: 0 0 12px var(--cyan-glow); }
.qtype-final { background: linear-gradient(135deg, #ffd700, #ff9100); color: #000; font-weight: 900; box-shadow: 0 0 16px rgba(255, 215, 0, 0.5); }

/* Public Live Arena Styles */
.arena-header {
    text-align: center;
    margin-bottom: 24px;
}

.arena-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.timer-circle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 16px 0;
}

.timer-display {
    font-size: 64px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
    transition: color 0.3s;
}

.timer-urgent {
    color: var(--red) !important;
    text-shadow: 0 0 25px var(--red-glow) !important;
    animation: urgentPulse 0.6s infinite alternate;
}

@keyframes urgentPulse {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.question-card-public {
    background: rgba(18, 25, 43, 0.95);
    border: 2px solid rgba(124, 77, 255, 0.3);
    border-radius: 24px;
    padding: 36px 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.question-title-public {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 24px;
}

.options-grid-public {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .options-grid-public {
        grid-template-columns: 1fr;
    }
}

.opt-box-public {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.opt-box-public.opt-A { border-color: rgba(255, 51, 102, 0.5); }
.opt-box-public.opt-B { border-color: rgba(41, 121, 255, 0.5); }
.opt-box-public.opt-C { border-color: rgba(255, 179, 0, 0.5); }
.opt-box-public.opt-D { border-color: rgba(0, 230, 118, 0.5); }
.opt-box-public.opt-E { border-color: rgba(139, 92, 246, 0.5); }

.opt-letter {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}

.opt-A .opt-letter { background: #ff3366; }
.opt-B .opt-letter { background: #2979ff; }
.opt-C .opt-letter { background: #ffb300; }
.opt-D .opt-letter { background: #00e676; }
.opt-E .opt-letter { background: #8b5cf6; }

.opt-box-public.correct-highlight {
    background: rgba(0, 230, 118, 0.2) !important;
    border-color: #00e676 !important;
    box-shadow: 0 0 30px var(--green-glow) !important;
    transform: scale(1.02);
}

/* Distribution Bars */
.dist-container {
    background: rgba(18, 25, 43, 0.8);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
}

.dist-bar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.dist-track {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.dist-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-A { background: linear-gradient(90deg, #ff3366, #ff6b8b); }
.fill-B { background: linear-gradient(90deg, #2979ff, #64b5f6); }
.fill-C { background: linear-gradient(90deg, #ffb300, #ffd54f); }
.fill-D { background: linear-gradient(90deg, #00e676, #69f0ae); }

/* Teams Live Status Grid */
.teams-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.team-chip {
    background: rgba(24, 32, 54, 0.7);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
}

.team-chip.is-locked {
    border-color: rgba(255, 23, 68, 0.5);
    background: rgba(255, 23, 68, 0.08);
}

.team-name-clamp {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Leaderboard */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.leaderboard-row {
    background: rgba(22, 30, 52, 0.7);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.leaderboard-row:hover {
    background: rgba(30, 42, 70, 0.9);
    transform: translateX(4px);
}

.leaderboard-row td {
    padding: 16px 20px;
}

.leaderboard-row td:first-child {
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    width: 60px;
    font-weight: 900;
    font-size: 20px;
}

.leaderboard-row td:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
    text-align: right;
    font-weight: 800;
    font-size: 20px;
    color: var(--cyan);
}

.podium-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(22, 30, 52, 0.7)) !important;
    border-left: 4px solid #ffd700;
}
.podium-2 {
    background: linear-gradient(90deg, rgba(200, 200, 200, 0.15), rgba(22, 30, 52, 0.7)) !important;
    border-left: 4px solid #e0e0e0;
}
.podium-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), rgba(22, 30, 52, 0.7)) !important;
    border-left: 4px solid #cd7f32;
}

.streak-flame {
    color: #ff9100;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Team Console Styles */
.team-console-card {
    max-width: 640px;
    margin: 20px auto;
    width: 100%;
}

.team-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-card);
}

.team-answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
}

.team-answer-btn {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.team-answer-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.team-answer-btn.selected {
    border-color: var(--cyan) !important;
    background: rgba(0, 229, 255, 0.15) !important;
    box-shadow: 0 0 15px var(--cyan-glow);
}

/* Consensus Box */
.consensus-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0;
}

.member-vote-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    margin: 4px;
}

/* Forms & Inputs */
input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    background: rgba(13, 19, 33, 0.8);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Audio Mute Switch */
.audio-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: none;
}
.audio-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
}

/* =======================================================
   ANTI-SCREENSHOT & ANTI-CHEAT SHIELD STYLES
   ======================================================= */
/* 1. Prevent print dialog capture on competition screens */
@media print {
    body:not(.printable-report), html:has(body:not(.printable-report)) {
        display: none !important;
        visibility: hidden !important;
    }
}

/* 2. Disallow text selection & mobile long-press callouts (iOS & Android) */
.protected-screen, #cardActive, .question-card-public, .team-answer-btn {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    touch-action: manipulation !important;
}

/* 3. Forensic Watermark Canvas Overlay */
.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
    opacity: 0.8;
}

/* 4. Blurred Content on capture / unfocus trigger */
.blurred-content {
    filter: blur(28px) grayscale(90%) !important;
    pointer-events: none !important;
    transition: filter 0.15s ease-out;
}

/* 5. Privacy Shield Overlay Modal */
.privacy-shield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 22, 0.96);
    backdrop-filter: blur(24px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.shield-badge {
    background: rgba(255, 23, 68, 0.15);
    border: 1px solid var(--red);
    color: #ff8a80;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* =======================================================
   COMPREHENSIVE LIGHT THEME (#ffffff) UI REFINEMENTS
   ======================================================= */
body.theme-light h1, 
body.theme-light h2, 
body.theme-light h3, 
body.theme-light h4,
body.theme-light strong,
body.theme-light .text-contrast {
    color: #0f172a !important;
}

body.theme-light .privacy-shield {
    background: rgba(255, 255, 255, 0.97) !important;
    color: #0f172a !important;
}

body.theme-light .privacy-shield h2 {
    color: #0f172a !important;
}

body.theme-light .privacy-shield p {
    color: #475569 !important;
}

body.theme-light .shield-badge {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
}

body.theme-light .risk-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .risk-card.active {
    background: #eff6ff !important;
    border-color: #1a6ac3 !important;
    box-shadow: 0 0 12px rgba(26, 106, 195, 0.25) !important;
}

body.theme-light .predict-chip {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-light .predict-chip.active {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
}

body.theme-light .predict-btn {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

body.theme-light .predict-btn:hover {
    background: #f8fafc !important;
    border-color: #0284c7 !important;
}

body.theme-light .predict-btn.selected {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
}

body.theme-light .timeline-step {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.theme-light .status-badge {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

body.theme-light .hall-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.theme-light .hall-card strong {
    color: #0f172a !important;
}

body.theme-light .hall-card span.pts {
    color: var(--brand-navy) !important;
}

/* =======================================================
   KAHOOT-STYLE BOLD OPTION BUTTONS FOR MOBILE & DESKTOP
   ======================================================= */
.kahoot-btn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .kahoot-btn-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.option-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    min-height: 64px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.option-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.option-btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.99);
}

.option-btn .letter-tag {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
    color: #fff;
}

/* Specific Option Colorway (Vibrant, high contrast) */
.option-btn-a {
    background: #fff0f3;
    border-color: #fecdd3;
    color: #9f1239;
}
.option-btn-a .letter-tag {
    background: #ef4444;
}
.option-btn-a.selected, .option-btn-a:active {
    background: #ffe4e6 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35) !important;
}

.option-btn-b {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.option-btn-b .letter-tag {
    background: #2563eb;
}
.option-btn-b.selected, .option-btn-b:active {
    background: #dbeafe !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35) !important;
}

.option-btn-c {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.option-btn-c .letter-tag {
    background: #f59e0b;
}
.option-btn-c.selected, .option-btn-c:active {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35) !important;
}

.option-btn-d {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.option-btn-d .letter-tag {
    background: #10b981;
}
.option-btn-d.selected, .option-btn-d:active {
    background: #d1fae5 !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35) !important;
}

/* Dark mode overrides for option buttons */
body:not(.theme-light) .option-btn-a {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fecdd3;
}
body:not(.theme-light) .option-btn-b {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
    color: #bfdbfe;
}
body:not(.theme-light) .option-btn-c {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fde68a;
}
body:not(.theme-light) .option-btn-d {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

/* =======================================================
   RESPONSIVE COMPONENT CLASSES (MOBILE-FIRST)
   ======================================================= */
/* Responsive dual-column wrapper for host monitor & charts */
.host-dual-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* Responsive telemetry grid for host cockpit */
.host-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

/* Responsive cockpit engine controls grid */
.host-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* Responsive question bank creator rows */
.host-qform-row4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.host-qform-row3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.host-qform-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

/* Responsive leaderboard & journey timeline grid in public arena */
.leaderboard-grid-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Responsive quick PIN join form on index page */
.pin-quick-join-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto 28px auto;
    width: 100%;
}

/* Responsive hero action buttons */
.hero-actions-bar {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

/* Responsive risk selector in team console */
.risk-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Base HTML & viewport defense */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

/* =======================================================
   BREAKPOINTS: TABLET & MID-SIZE SCREENS (<= 992px)
   ======================================================= */
@media (max-width: 992px) {
    .host-dual-col-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .leaderboard-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .host-qform-row4 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* =======================================================
   BREAKPOINTS: SMARTPHONES & PORTABLE DEVICES (<= 768px)
   ======================================================= */
@media (max-width: 768px) {
    /* Prevent iOS Safari automatic input zoom */
    input[type="text"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    .top-bar-wrapper {
        padding: 6px 8px;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .top-bar {
        padding: 8px 12px;
        border-radius: 14px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .brand-dual-header {
        gap: 8px;
    }

    .brand-dual-header .logo-img-tamsa {
        height: 30px;
    }

    .brand-dual-header .logo-img-lecturio {
        height: 26px;
    }

    .top-actions {
        gap: 5px;
        flex-wrap: wrap;
    }

    .top-actions .btn-sm {
        padding: 6px 8px;
        font-size: 12px;
        min-height: 36px;
    }

    /* Hide long button labels on mobile headers, retain clean icons */
    .btn-text-hide-mobile {
        display: none !important;
    }

    .container {
        padding: 12px 10px;
        max-width: 100% !important;
    }

    .card {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .hero-wrapper {
        padding: 24px 8px;
    }

    .hero-title {
        font-size: clamp(24px, 6vw, 36px) !important;
        letter-spacing: -0.5px !important;
        line-height: 1.25 !important;
    }

    .hero-sub {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 22px !important;
        padding: 0 4px;
    }

    /* Kahoot Button Grid */
    .kahoot-btn-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .option-btn {
        padding: 14px 16px;
        min-height: 58px;
        font-size: 15px;
        border-radius: 14px;
    }

    .option-btn .letter-tag {
        width: 34px;
        height: 34px;
        font-size: 15px;
        border-radius: 8px;
    }

    /* Arena question and options */
    .options-grid-public {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .opt-box-public {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 14px;
        gap: 12px;
    }

    .opt-letter {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .question-title-public {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    /* Telemetry grid */
    .host-telemetry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .telemetry-box {
        padding: 12px 8px;
        border-radius: 12px;
    }

    .telemetry-num {
        font-size: 22px;
    }

    .host-controls-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cockpit-btn {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 12px;
    }

    .host-qform-row4 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .host-qform-row2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .host-qform-row3 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Tables */
    .table-responsive-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leaderboard-row td {
        padding: 12px 10px;
        font-size: 15px;
    }

    .leaderboard-row td:first-child {
        font-size: 16px;
        width: 44px;
    }

    .leaderboard-row td:last-child {
        font-size: 16px;
    }

    /* Anti-cheat shield */
    .privacy-shield {
        padding: 24px 16px;
    }

    .privacy-shield h2 {
        font-size: 22px;
    }
}

/* =======================================================
   BREAKPOINTS: COMPACT MOBILE SCREENS (<= 480px)
   ======================================================= */
@media (max-width: 480px) {
    .brand-dual-header .event-tag-pill {
        display: none !important;
    }

    .brand-dual-header .logo-img-tamsa {
        height: 26px;
    }

    .brand-dual-header .logo-img-lecturio {
        height: 22px;
    }

    .brand-dual-header .brand-divider-x {
        font-size: 13px;
        margin: 0 1px;
    }

    .top-bar {
        padding: 6px 10px;
    }

    .top-actions {
        gap: 4px;
    }

    .top-actions .btn-sm {
        padding: 5px 7px;
        font-size: 11px;
        min-height: 34px;
    }

    /* 2 columns on compact phone telemetry */
    .host-telemetry-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .telemetry-num {
        font-size: 20px;
    }

    .host-controls-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cockpit-btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .host-qform-row4 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Stack PIN Quick Join form vertically on small screens */
    .pin-quick-join-form {
        flex-direction: column;
        gap: 8px;
    }

    .pin-quick-join-form input {
        width: 100%;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        font-size: 16px !important;
    }

    .pin-quick-join-form button {
        width: 100%;
        border-radius: 12px !important;
        padding: 12px !important;
    }

    /* Hero action buttons stack full width on small screens */
    .hero-actions-bar .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 15px;
    }

    /* Risk Selector */
    .risk-selector-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Option button touch target */
    .option-btn {
        padding: 12px 14px;
        min-height: 54px;
        font-size: 14px;
    }

    .option-btn .letter-tag {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    /* Prediction chips */
    .predict-chip {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1 1 40%;
        text-align: center;
    }

    .hero-pill {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* =======================================================
   REDESIGNED MODERN FOOTER SYSTEM
   ======================================================= */
.main-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border-card);
    background: linear-gradient(180deg, rgba(16, 28, 56, 0.4) 0%, rgba(10, 17, 36, 0.95) 100%);
    padding: 48px 20px 28px;
    color: var(--text-muted);
}

body.theme-light .main-footer {
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logos {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-tamsa {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.footer-logo-lecturio {
    height: 30px;
    width: auto;
    object-fit: contain;
    transition: filter 0.2s ease;
}

body:not(.theme-light) .footer-logo-lecturio {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

body.theme-light .footer-logo-lecturio {
    filter: none;
}

.footer-logo-x {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-muted);
    opacity: 0.6;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.2px;
}

.footer-unis {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cyan);
    max-width: 700px;
}

.footer-unis span {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

body.theme-light .footer-unis span {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0284c7;
}

.footer-nav-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 850px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 16px;
}

body.theme-light .footer-nav-section {
    border-top-color: #e2e8f0;
    border-bottom-color: #e2e8f0;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

body.theme-light .footer-links a {
    color: #64748b;
}

body.theme-light .footer-links a:hover {
    color: #0284c7;
}

/* Host Cockpit Button in Footer */
.footer-host-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.footer-host-btn:hover {
    background: rgba(243, 171, 27, 0.12);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 171, 27, 0.2);
}

body.theme-light .footer-host-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
}

body.theme-light .footer-host-btn:hover {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #b45309;
}

.footer-bottom {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer-nav-section {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .footer-links {
        justify-content: center;
        gap: 14px;
    }
    .footer-host-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* =========================================================
   ZOOM / GOOGLE MEET BREAKOUT ROOMS & CALL CONTROL SYSTEM
   ========================================================= */
.call-hub-card {
    background: linear-gradient(180deg, rgba(26, 38, 74, 0.7) 0%, rgba(13, 20, 42, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    margin-bottom: 24px;
}

body.theme-light .call-hub-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.breakout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.breakout-room-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.breakout-room-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.breakout-room-card.is-active-dropin {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.08) !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.25) !important;
}

body.theme-light .breakout-room-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.theme-light .breakout-room-card:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.breakout-dropin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.breakout-dropin-btn.btn-join {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.breakout-dropin-btn.btn-join:hover {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
    transform: scale(1.02);
}

.breakout-dropin-btn.btn-leave {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    animation: urgentPulse 1.5s infinite;
}

/* Public Arena Modern Design Enhancements */
.arena-hero-container {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.arena-call-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.arena-call-status-pill.mode-breakout {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
}

.arena-call-status-pill.mode-general {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fde68a;
    animation: meetPulse 2s infinite;
}

/* Modern Engine Controls Workflow Bar */
.engine-stepper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.engine-step-btn {
    padding: 14px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.engine-step-btn:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 6px 18px rgba(0, 229, 255, 0.2);
}

.engine-step-btn.active-stage {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(26, 106, 195, 0.35)) !important;
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 2px var(--cyan), 0 8px 24px rgba(56, 189, 248, 0.4) !important;
}

body.theme-light .engine-step-btn {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

body.theme-light .engine-step-btn:hover {
    background: #f1f5f9;
    border-color: #0284c7;
}

/* ==============================================================================
   POWERPOINT / FULLSCREEN PRESENTATION SLIDE MODE
   Guarantees 100% viewport fit with ZERO SCROLLING
   ============================================================================== */

:fullscreen,
:-webkit-full-screen,
body.presentation-slide-mode {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100vw !important;
}

:fullscreen body,
:-webkit-full-screen body,
body.presentation-slide-mode {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

:fullscreen .top-bar-wrapper,
:-webkit-full-screen .top-bar-wrapper,
body.presentation-slide-mode .top-bar-wrapper {
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

:fullscreen .top-bar,
:-webkit-full-screen .top-bar,
body.presentation-slide-mode .top-bar {
    padding: 6px 18px !important;
    border-radius: 0 !important;
    border-top: none;
    border-left: none;
    border-right: none;
}

:fullscreen main.container,
:-webkit-full-screen main.container,
body.presentation-slide-mode main.container {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 56px) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 8px 24px 14px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
}

:fullscreen #viewArena,
:-webkit-full-screen #viewArena,
body.presentation-slide-mode #viewArena {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
}

:fullscreen .arena-header,
:-webkit-full-screen .arena-header,
body.presentation-slide-mode .arena-header {
    flex-shrink: 0 !important;
    margin-bottom: 6px !important;
}

:fullscreen .arena-header h1,
:-webkit-full-screen .arena-header h1,
body.presentation-slide-mode .arena-header h1 {
    font-size: clamp(18px, 2.2vw, 26px) !important;
    margin-bottom: 4px !important;
}

:fullscreen .arena-meta,
:-webkit-full-screen .arena-meta,
body.presentation-slide-mode .arena-meta {
    gap: 6px !important;
}

:fullscreen .arena-meta .status-badge,
:-webkit-full-screen .arena-meta .status-badge,
body.presentation-slide-mode .arena-meta .status-badge {
    padding: 3px 10px !important;
    font-size: 11px !important;
}

:fullscreen #activeQuestionScreen,
:-webkit-full-screen #activeQuestionScreen,
body.presentation-slide-mode #activeQuestionScreen,
:fullscreen #questionCard,
:-webkit-full-screen #questionCard,
body.presentation-slide-mode #questionCard {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
}

:fullscreen .arena-grand-stage,
:-webkit-full-screen .arena-grand-stage,
body.presentation-slide-mode .arena-grand-stage {
    flex: 1 1 auto !important;
    padding: 12px 20px !important;
    margin-bottom: 6px !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

:fullscreen .stage-hud-ribbon,
:-webkit-full-screen .stage-hud-ribbon,
body.presentation-slide-mode .stage-hud-ribbon {
    padding: 6px 14px !important;
    margin: -12px -20px 8px -20px !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

:fullscreen .radial-timer-box,
:-webkit-full-screen .radial-timer-box,
body.presentation-slide-mode .radial-timer-box {
    width: 64px !important;
    height: 64px !important;
}

:fullscreen .radial-timer-svg,
:-webkit-full-screen .radial-timer-svg,
body.presentation-slide-mode .radial-timer-svg {
    width: 64px !important;
    height: 64px !important;
}

:fullscreen .radial-timer-number,
:-webkit-full-screen .radial-timer-number,
body.presentation-slide-mode .radial-timer-number {
    font-size: 22px !important;
}

:fullscreen .radial-timer-label,
:-webkit-full-screen .radial-timer-label,
body.presentation-slide-mode .radial-timer-label {
    font-size: 8px !important;
}

:fullscreen .stage-hud-lockin,
:-webkit-full-screen .stage-hud-lockin,
body.presentation-slide-mode .stage-hud-lockin {
    min-width: 130px !important;
}

:fullscreen .q-stage-main,
:-webkit-full-screen .q-stage-main,
body.presentation-slide-mode .q-stage-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 8px !important;
    overflow: hidden !important;
}

:fullscreen .q-stage-main.has-image,
:-webkit-full-screen .q-stage-main.has-image,
body.presentation-slide-mode .q-stage-main.has-image {
    display: grid !important;
    grid-template-columns: minmax(260px, 340px) 1fr !important;
    gap: 14px !important;
    align-items: stretch !important;
}

:fullscreen .q-media-panel,
:-webkit-full-screen .q-media-panel,
body.presentation-slide-mode .q-media-panel {
    min-height: 0 !important;
    max-height: 38vh !important;
}

:fullscreen .case-img-wrapper img,
:-webkit-full-screen .case-img-wrapper img,
body.presentation-slide-mode .case-img-wrapper img {
    max-height: 36vh !important;
    object-fit: contain !important;
}

:fullscreen .q-content-panel,
:-webkit-full-screen .q-content-panel,
body.presentation-slide-mode .q-content-panel {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

:fullscreen .arena-q-title,
:-webkit-full-screen .arena-q-title,
body.presentation-slide-mode .arena-q-title {
    font-size: clamp(16px, 1.8vw, 24px) !important;
    line-height: 1.25 !important;
    margin: 2px 0 8px 0 !important;
    flex-shrink: 0 !important;
}

/* Zero-scroll Options Grid in presentation mode */
:fullscreen .options-grid-public,
:-webkit-full-screen .options-grid-public,
body.presentation-slide-mode .options-grid-public {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    align-content: stretch !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

:fullscreen .options-grid-public.grid-5choices,
:-webkit-full-screen .options-grid-public.grid-5choices,
body.presentation-slide-mode .options-grid-public.grid-5choices {
    grid-template-columns: repeat(3, 1fr) !important;
}

:fullscreen .arena-opt-card,
:-webkit-full-screen .arena-opt-card,
body.presentation-slide-mode .arena-opt-card {
    display: flex !important;
    align-items: center !important;
    padding: 8px 14px !important;
    border-radius: 12px !important;
    min-height: 0 !important;
    gap: 10px !important;
}

:fullscreen .arena-opt-card .letter-badge,
:-webkit-full-screen .arena-opt-card .letter-badge,
body.presentation-slide-mode .arena-opt-card .letter-badge {
    width: 34px !important;
    height: 34px !important;
    font-size: 17px !important;
    border-radius: 9px !important;
}

:fullscreen .arena-opt-card .opt-content,
:-webkit-full-screen .arena-opt-card .opt-content,
body.presentation-slide-mode .arena-opt-card .opt-content {
    font-size: clamp(13px, 1.4vw, 18px) !important;
    line-height: 1.2 !important;
}

:fullscreen .arena-explanation-card,
:-webkit-full-screen .arena-explanation-card,
body.presentation-slide-mode .arena-explanation-card {
    padding: 8px 14px !important;
    margin-top: 8px !important;
    flex-shrink: 0 !important;
}

:fullscreen .arena-explanation-card .explanation-body,
:-webkit-full-screen .arena-explanation-card .explanation-body,
body.presentation-slide-mode .arena-explanation-card .explanation-body {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
}

/* Zero-scroll Distribution Bars in presentation mode */
:fullscreen .dist-container,
:-webkit-full-screen .dist-container,
body.presentation-slide-mode .dist-container {
    flex: 0 0 auto !important;
    padding: 8px 16px !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    border-radius: 14px !important;
}

:fullscreen .dist-bar-item,
:-webkit-full-screen .dist-bar-item,
body.presentation-slide-mode .dist-bar-item {
    margin-bottom: 3px !important;
}

/* Fullscreen Standings / Podium mode */
:fullscreen #viewLeaderboard,
:-webkit-full-screen #viewLeaderboard,
body.presentation-slide-mode #viewLeaderboard {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

:fullscreen .podium-wrapper,
:-webkit-full-screen .podium-wrapper,
body.presentation-slide-mode .podium-wrapper {
    margin: 8px 0 !important;
    max-height: 44vh !important;
}

:fullscreen .podium-col,
:-webkit-full-screen .podium-col,
body.presentation-slide-mode .podium-col {
    max-height: 38vh !important;
}

:fullscreen .leaderboard-table-scroll,
:-webkit-full-screen .leaderboard-table-scroll,
body.presentation-slide-mode .leaderboard-table-scroll {
    max-height: 30vh !important;
    overflow-y: auto !important;
}

/* ==============================================================================
   BROADCAST-GRADE PUBLIC ARENA REDESIGN STYLES
   ============================================================================== */

/* Glassmorphic Presentation Stage Container */
.public-arena-stage {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 14px;
}

/* Modern Header Status HUD */
.arena-hud-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 20, 36, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 10px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.arena-hud-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.arena-hud-badge.beacon-live {
    background: rgba(0, 230, 118, 0.14);
    border: 1px solid rgba(0, 230, 118, 0.4);
    color: #69f0ae;
}

.arena-hud-badge.beacon-reveal {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.arena-hud-badge.beacon-lobby {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.arena-hud-badge.beacon-standings {
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

/* Radial / Circular SVG Countdown Timer */
.radial-timer-box {
    position: relative;
    width: 88px !important;
    height: 88px !important;
    min-width: 88px !important;
    min-height: 88px !important;
    max-width: 88px !important;
    max-height: 88px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radial-timer-svg {
    transform: rotate(-90deg);
    width: 88px !important;
    height: 88px !important;
    min-width: 88px !important;
    min-height: 88px !important;
    max-width: 88px !important;
    max-height: 88px !important;
    display: block;
}

.radial-timer-bg {
    fill: none !important;
    stroke: rgba(255, 255, 255, 0.1) !important;
    stroke-width: 6;
}

.radial-timer-circle {
    fill: none !important;
    stroke: var(--cyan) !important;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 238; /* 2 * PI * 38 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s linear, stroke 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

.radial-timer-number {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.radial-timer-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.timer-box-urgent .radial-timer-circle {
    stroke: #ff1744 !important;
    filter: drop-shadow(0 0 10px rgba(255, 23, 68, 0.8)) !important;
}

.timer-box-urgent .radial-timer-number {
    color: #ff1744 !important;
    animation: urgentTimerScale 0.6s infinite alternate;
}

@keyframes urgentTimerScale {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

/* ==========================================================================
   GRAND BROADCAST ARENA QUESTION STAGE (Dark Mode Default)
   ========================================================================== */
.arena-grand-stage {
    background: linear-gradient(135deg, rgba(13, 20, 36, 0.95), rgba(8, 14, 28, 0.98));
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 20px;
    padding: 22px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.arena-grand-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a6ac3, #00e5ff, #f3ab1b, #00e676);
}

/* Stage Ribbon: Badges, Timer, and Lock-in Telemetry */
.stage-hud-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 0 0;
    margin: -22px -28px 16px -28px;
    flex-wrap: wrap;
}

.stage-hud-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.q-badge-pill {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(0, 150, 255, 0.12));
    border: 1px solid rgba(0, 229, 255, 0.45);
    color: #00e5ff;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.cat-badge-pill {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(124, 77, 255, 0.4);
    color: #c4b5fd;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 8px;
}

.points-badge-pill {
    background: linear-gradient(135deg, rgba(243, 171, 27, 0.2), rgba(217, 119, 6, 0.1));
    border: 1px solid rgba(243, 171, 27, 0.4);
    color: #ffd700;
    font-weight: 900;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 8px;
}

.mod-badge-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
}

.stage-hud-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.timer-paused-pill {
    color: #ffd700;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    animation: pulseDiscuss 1s infinite;
    background: rgba(243, 171, 27, 0.18);
    border: 1px solid rgba(243, 171, 27, 0.45);
    padding: 4px 12px;
    border-radius: 999px;
}

.stage-hud-lockin {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 170px;
}

.lockin-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 800;
    color: #cbd5e1;
}

.lockin-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    padding: 1px;
}

.lockin-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #00e676);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stage Main: Prompt + Media Split Grid */
.q-stage-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.q-stage-main.has-image {
    display: grid !important;
    grid-template-columns: minmax(320px, 420px) 1fr !important;
    gap: 22px !important;
    align-items: stretch !important;
}

@media (max-width: 900px) {
    .q-stage-main.has-image {
        grid-template-columns: 1fr !important;
    }
}

.q-media-panel {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-height: 200px;
}

.case-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.case-img-wrapper img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.case-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(13, 20, 36, 0.88);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.case-lightbox-btn:hover .case-zoom-hint {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

.arena-q-title {
    font-size: clamp(20px, 2.3vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 14px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Jewel-Toned High-Contrast Answer Option Tiles */
.options-grid-public {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .options-grid-public {
        grid-template-columns: 1fr;
    }
}

.options-grid-public.grid-5choices {
    grid-template-columns: repeat(2, 1fr);
}

.arena-opt-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.09);
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.arena-opt-card .letter-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.arena-opt-card .opt-content {
    flex: 1;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
}

/* Choice Colors (Dark Mode) */
.arena-opt-card.choice-A, .arena-opt-card.opt-A {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(225, 29, 72, 0.04));
    border-color: rgba(244, 63, 94, 0.4);
}
.arena-opt-card.choice-A .letter-badge, .arena-opt-card.opt-A .letter-badge { background: linear-gradient(135deg, #f43f5e, #be123c); }

.arena-opt-card.choice-B, .arena-opt-card.opt-B {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.04));
    border-color: rgba(59, 130, 246, 0.4);
}
.arena-opt-card.choice-B .letter-badge, .arena-opt-card.opt-B .letter-badge { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.arena-opt-card.choice-C, .arena-opt-card.opt-C {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.04));
    border-color: rgba(245, 158, 11, 0.4);
}
.arena-opt-card.choice-C .letter-badge, .arena-opt-card.opt-C .letter-badge { background: linear-gradient(135deg, #f59e0b, #b45309); }

.arena-opt-card.choice-D, .arena-opt-card.opt-D {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.04));
    border-color: rgba(16, 185, 129, 0.4);
}
.arena-opt-card.choice-D .letter-badge, .arena-opt-card.opt-D .letter-badge { background: linear-gradient(135deg, #10b981, #047857); }

.arena-opt-card.choice-E, .arena-opt-card.opt-E {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(109, 40, 217, 0.04));
    border-color: rgba(139, 92, 246, 0.4);
}
.arena-opt-card.choice-E .letter-badge, .arena-opt-card.opt-E .letter-badge { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

/* Winner Badge & Correct Highlight in Reveal Mode */
.opt-winner-check {
    display: none;
    margin-left: auto;
    background: #00e676;
    color: #000;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 999px;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.8);
    flex-shrink: 0;
}

.arena-opt-card.winner-reveal {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.3), rgba(0, 180, 80, 0.16)) !important;
    border-color: #00e676 !important;
    box-shadow: 0 0 35px rgba(0, 230, 118, 0.55), inset 0 0 15px rgba(0, 230, 118, 0.2) !important;
    transform: scale(1.02);
}

.arena-opt-card.winner-reveal .letter-badge {
    background: #00e676 !important;
    color: #000 !important;
    box-shadow: 0 0 16px #00e676 !important;
}

.arena-opt-card.winner-reveal .opt-winner-check {
    display: inline-flex !important;
}

.arena-opt-card.is-dimmed {
    opacity: 0.32 !important;
    filter: grayscale(0.6) !important;
    transform: scale(0.98) !important;
    transition: all 0.4s ease !important;
}

/* Clinical Explanation Card (Dark Mode) */
.arena-explanation-card {
    background: linear-gradient(135deg, rgba(26, 106, 195, 0.18), rgba(13, 20, 36, 0.7));
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.explanation-hdr {
    font-size: 13px;
    font-weight: 900;
    color: var(--brand-gold);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explanation-body {
    font-size: 15px;
    line-height: 1.6;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.explanation-link {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
}

/* ==========================================================================
   LIGHT MODE RULES FOR ARENA STAGE (body.theme-light)
   ========================================================================== */
body.theme-light .arena-grand-stage {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 15px 45px rgba(0, 30, 80, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}

body.theme-light .arena-grand-stage::before {
    background: linear-gradient(90deg, #1a6ac3, #0284c7, #f59e0b, #10b981) !important;
}

body.theme-light .stage-hud-ribbon {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .q-badge-pill {
    background: rgba(2, 132, 199, 0.1) !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
    color: #0284c7 !important;
    box-shadow: none !important;
}

body.theme-light .cat-badge-pill {
    background: rgba(124, 77, 255, 0.1) !important;
    border: 1px solid rgba(124, 77, 255, 0.3) !important;
    color: #7c3aed !important;
}

body.theme-light .points-badge-pill {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #b45309 !important;
}

body.theme-light .mod-badge-pill {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

body.theme-light .radial-timer-bg {
    stroke: #e2e8f0 !important;
}

body.theme-light .radial-timer-circle {
    stroke: #0284c7 !important;
    filter: drop-shadow(0 0 4px rgba(2, 132, 199, 0.4)) !important;
}

body.theme-light .radial-timer-number {
    color: #0f172a !important;
}

body.theme-light .timer-box-urgent .radial-timer-circle {
    stroke: #dc2626 !important;
    filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.5)) !important;
}

body.theme-light .timer-box-urgent .radial-timer-number {
    color: #dc2626 !important;
}

body.theme-light .lockin-label {
    color: #475569 !important;
}

body.theme-light .lockin-track {
    background: #e2e8f0 !important;
}

body.theme-light .lockin-fill {
    background: linear-gradient(90deg, #0284c7, #10b981) !important;
}

body.theme-light .arena-q-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

body.theme-light .q-media-panel {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .case-zoom-hint {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #cbd5e1 !important;
    color: #0284c7 !important;
}

/* Light Mode Option Tiles */
body.theme-light .arena-opt-card {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .arena-opt-card .opt-content {
    color: #0f172a !important;
}

body.theme-light .arena-opt-card.choice-A, body.theme-light .arena-opt-card.opt-A {
    background: #fff1f2 !important;
    border-color: #f43f5e !important;
}
body.theme-light .arena-opt-card.choice-A .letter-badge, body.theme-light .arena-opt-card.opt-A .letter-badge {
    background: #f43f5e !important;
    color: #ffffff !important;
}

body.theme-light .arena-opt-card.choice-B, body.theme-light .arena-opt-card.opt-B {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
}
body.theme-light .arena-opt-card.choice-B .letter-badge, body.theme-light .arena-opt-card.opt-B .letter-badge {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

body.theme-light .arena-opt-card.choice-C, body.theme-light .arena-opt-card.opt-C {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
}
body.theme-light .arena-opt-card.choice-C .letter-badge, body.theme-light .arena-opt-card.opt-C .letter-badge {
    background: #f59e0b !important;
    color: #ffffff !important;
}

body.theme-light .arena-opt-card.choice-D, body.theme-light .arena-opt-card.opt-D {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
}
body.theme-light .arena-opt-card.choice-D .letter-badge, body.theme-light .arena-opt-card.opt-D .letter-badge {
    background: #10b981 !important;
    color: #ffffff !important;
}

body.theme-light .arena-opt-card.choice-E, body.theme-light .arena-opt-card.opt-E {
    background: #f5f3ff !important;
    border-color: #8b5cf6 !important;
}
body.theme-light .arena-opt-card.choice-E .letter-badge, body.theme-light .arena-opt-card.opt-E .letter-badge {
    background: #8b5cf6 !important;
    color: #ffffff !important;
}

/* Light Mode Reveal & Dim */
body.theme-light .arena-opt-card.winner-reveal {
    background: #dcfce7 !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4) !important;
}

body.theme-light .arena-opt-card.winner-reveal .letter-badge {
    background: #10b981 !important;
    color: #ffffff !important;
}

body.theme-light .arena-opt-card.winner-reveal .opt-winner-check {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6) !important;
}

body.theme-light .arena-opt-card.is-dimmed {
    opacity: 0.35 !important;
    filter: grayscale(0.8) !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Light Mode Clinical Explanation Card */
body.theme-light .arena-explanation-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .explanation-hdr {
    color: #b45309 !important;
}

body.theme-light .explanation-body {
    color: #1e293b !important;
}

/* 3D Olympic Podium Showcase */
.olympic-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin: 20px auto 30px;
    max-width: 820px;
    padding: 0 10px;
}

.podium-pedestal {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.podium-pedestal .podium-squad-card {
    background: rgba(18, 25, 43, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 14px;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.podium-block {
    width: 100%;
    border-radius: 14px 14px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.25), 0 12px 30px rgba(0,0,0,0.5);
}

.podium-block.first-place {
    height: 160px;
    background: linear-gradient(180deg, #ffd700, #b8860b);
    color: #000;
    border: 2px solid #fff275;
}

.podium-block.second-place {
    height: 120px;
    background: linear-gradient(180deg, #e0e0e0, #757575);
    color: #000;
    border: 2px solid #f5f5f5;
}

.podium-block.third-place {
    height: 90px;
    background: linear-gradient(180deg, #cd7f32, #8b4513);
    color: #fff;
    border: 2px solid #e69a58;
}

/* Lightbox case image styling */
.case-lightbox-btn {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.case-lightbox-btn:hover {
    transform: scale(1.01);
}

/* Arena Session Headline & Branding HUD */
.arena-session-headline {
    background: rgba(13, 20, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 10px 18px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   MASTER AUDIO CALL COMMAND CENTER (HOST & TEAMS)
   ========================================================================== */
.host-call-master-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.btn-call-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-call-action i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.call-action-title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.call-action-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    line-height: 1.25;
}

/* 1. Start General Call (Emerald / Teal) */
.btn-call-general {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
    border-color: rgba(16, 185, 129, 0.4);
}
.btn-call-general:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(5, 150, 105, 0.25));
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}
.btn-call-general.is-active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #34d399 !important;
    color: #fff !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5) !important;
}
.btn-call-general.is-active .call-action-sub {
    color: #e6fffa !important;
}

/* 2. Start Breakout Rooms (Cyan / Sapphire) */
.btn-call-breakout {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(2, 132, 199, 0.15));
    border-color: rgba(0, 229, 255, 0.35);
}
.btn-call-breakout:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.35), rgba(2, 132, 199, 0.25));
    border-color: #00e5ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
}
.btn-call-breakout.is-active {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border-color: #38bdf8 !important;
    color: #fff !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.45) !important;
}
.btn-call-breakout.is-active .call-action-sub {
    color: #e0f2fe !important;
}

/* 3. End Call for All (Rose / Crimson) */
.btn-call-end {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.12));
    border-color: rgba(239, 68, 68, 0.35);
}
.btn-call-end:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #f87171;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}
.btn-call-end.is-active {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.4), rgba(71, 85, 105, 0.3)) !important;
    border-color: #64748b !important;
    color: #94a3b8 !important;
}

/* Secondary Host Control Toolbar */
.host-call-sub-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    margin-bottom: 16px;
}

/* Incoming Call Alert Prompt Banner (shown on team.php when host starts call) */
.meet-incoming-banner {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: 2px solid #38bdf8;
    color: #fff;
    padding: 12px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 12px 35px rgba(2, 132, 199, 0.5), 0 0 20px rgba(56, 189, 248, 0.4);
    animation: incomingCallPulse 1.5s infinite alternate;
}

@keyframes incomingCallPulse {
    from { transform: scale(1); box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4); }
    to { transform: scale(1.015); box-shadow: 0 14px 40px rgba(56, 189, 248, 0.6); }
}

.call-ring-emoji {
    font-size: 24px;
    animation: phoneRing 0.8s infinite;
    display: inline-block;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
}

.btn-join-call-prompt {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-join-call-prompt:hover {
    background: #059669;
    transform: scale(1.04);
}
