/* ================== dashboard / PUB MODE HUD ================== */
.dashboard-hud-full { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; padding: 20vh 40px 20px 40px; box-sizing: border-box; background: transparent; pointer-events: none; z-index: 10; }
.dashboard-join-panel { flex: 0 0 300px; max-width: 22%; height: fit-content; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.03); backdrop-filter: blur(10px); border-radius: 24px; padding: 20px 15px; text-align: center; pointer-events: auto; border: 1px solid var(--border-color); animation: scale-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.dark-mode .dashboard-join-panel, .vibrant .dashboard-join-panel { background: rgba(255,255,255,0.03); }
.dashboard-logo { width: 80px; margin-bottom: 15px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.dashboard-title { font-size: 2rem; letter-spacing: 2px; color: var(--primary); margin-bottom: 4px; font-weight: 600; }
.dashboard-subtitle { font-size: 1rem; opacity: 0.6; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
#qr-code-container { background: white; padding: 10px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: inline-flex; justify-content: center; align-items: center; }
.dashboard-code-label { font-size: 0.9rem; opacity: 0.5; margin-bottom: 10px; font-weight: 400; }
.dashboard-code-badge { background: var(--primary); color: white; padding: 10px 30px; border-radius: 100px; font-size: 2rem; font-weight: 700; letter-spacing: 4px; box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.dashboard-scoreboard-panel { flex: 0 0 320px; max-width: 25%; height: 70vh; display: flex; flex-direction: column; padding: 25px 20px; background: var(--card-bg); backdrop-filter: blur(10px); border-radius: 24px; pointer-events: auto; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0,0,0,0.1); animation: scale-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.dashboard-scoreboard-title { font-size: 1.4rem; font-weight: 300; margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
#dashboard-scoreboard-tracks { display: flex; flex-direction: column; gap: 15px; overflow-y: auto; }
.dashboard-score-row { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.dashboard-team-name { width: 100px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.95rem; }
.dashboard-progress-wrap { flex: 1; height: 18px; background: rgba(128,128,128,0.1); border-radius: 10px; position: relative; overflow: hidden; }
.dashboard-progress-bar { height: 100%; background: var(--primary); transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.dashboard-pct-label { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; font-weight: 700; mix-blend-mode: difference; color: white; }
.dashboard-meta { width: 70px; text-align: right; font-family: 'Outfit', sans-serif; font-weight: 600; opacity: 0.8; font-size: 0.9rem; }
.dashboard-finished { color: var(--primary); font-weight: 700; }
.dashboard-status-tag { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; }
.dashboard-status-waiting { background: rgba(128,128,128,0.1); color: var(--text-color); border: 1px solid var(--border-color); opacity: 0.7; }
.dashboard-status-ready { background: #27ae60; color: white; border: 1px solid #2ecc71; box-shadow: 0 0 10px rgba(39, 174, 96, 0.3); }

.dashboard-countdown {
    background: var(--primary);
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    animation: pulse-btn 2s infinite;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: none;
}


@media (max-width: 1024px) {
    .dashboard-hud-full { flex-direction: column; overflow-y: auto; padding: 20px; gap: 20px; }
    .dashboard-logo { width: 90px; }
    .dashboard-title { font-size: 2.2rem; }
    .dashboard-code-badge { font-size: 2.5rem; padding: 15px 40px; }
    .dashboard-team-name { width: 120px; font-size: 1.2rem; }
}