/* Base Design System - buzz.pinkmilk.eu (TeamX Theme) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600;700;800;900&display=swap');

:root {
    /* TeamX Gradient & Signature Colors */
    --teamx-purple-1: #667eea;
    --teamx-purple-2: #764ba2;
    --teamx-bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Winner Electric Blue */
    --teamx-blue-win: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
    
    /* Tactile Colors */
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.45);
    --accent-red: #d90024;
    --accent-red-glow: rgba(217, 0, 36, 0.45);
    --accent-blue: #0066ff;

    --font-teamx: 'Barlow Semi Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-pill: 50px;
    --radius-card: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-teamx);
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: var(--teamx-bg-gradient);
    color: #ffffff;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top, 16px) env(safe-area-inset-right, 16px) env(safe-area-inset-bottom, 16px) env(safe-area-inset-left, 16px);
    transition: background 0.4s ease;
}

/* Glass Container matching TeamX */
.teamx-container {
    width: 100%;
    max-width: 480px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Header & Title Hierarchy matching TeamX */
.header-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.8rem;
}

.top-bar-meta {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green-glow);
    animation: pulseDot 2s infinite ease-in-out;
}

.brand-dot.disconnected {
    background: #ff4757;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    animation: none;
}

.presenter-name {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.show-name {
    font-size: 2.1rem;
    line-height: 1.15;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    word-break: break-word;
}

/* Utilities */
.hidden {
    display: none !important;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.25); opacity: 1; }
}
