:root {
    /* Abyss Night: Deep, Professional, Cinematic */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #f43f5e; /* Rose for dynamic alerts */
    --gold: #fbbf24;
    --bg: #030712; /* Deeper black */
    --card-bg: rgba(17, 24, 39, 0.75);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Masterpiece Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
    
    --glass-blur: blur(12px);
    --glass-border: rgba(255, 255, 255, 0.12);
}

/* Increased Root Font Size for Readability */
html { font-size: 17px; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
body { 
    background: radial-gradient(circle at 0% 0%, #1e1b4b 0%, #030712 50%, #0f172a 100%);
    color: var(--text); 
    line-height: 1.5; 
    overflow-x: hidden; 
    min-height: 100vh;
}

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

/* --- Global Modal System --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; }
.modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 1), rgba(15, 23, 42, 1));
    border: 1px solid var(--primary);
    border-radius: 24px; padding: 2.5rem; max-width: 450px; width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 40px rgba(99, 102, 241, 0.3);
    transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 1.2rem; color: white; display: flex; align-items: center; gap: 12px; }
.modal-text { font-size: 1.05rem; color: #cbd5e1; margin-bottom: 2rem; line-height: 1.6; font-weight: 500; }
.modal-input {
    width: 100%; padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.4); color: white; font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 800;
}
.modal-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; }
.modal-btn {
    padding: 12px 24px; border-radius: 12px; font-weight: 800; cursor: pointer; border: none; transition: all 0.2s; font-size: 1rem;
}
.modal-btn-cancel { background: rgba(255,255,255,0.08); color: #94a3b8; }
.modal-btn-cancel:hover { background: rgba(255,255,255,0.15); color: white; }
.modal-btn-confirm { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
.modal-btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6); }

/* Navigation - Premium Glow */
.top-bar {
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    padding: 0 1.5rem;
    height: 50px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.brand { font-family: 'Outfit'; font-size: 1.2rem; font-weight: 900; letter-spacing: -0.03em; }
.brand span { color: var(--primary); text-shadow: 0 0 15px rgba(99, 102, 241, 0.5); }

.nav-tabs { display: flex; gap: 4px; margin-left: 2rem; flex: 1; height: 100%; min-width: 0; }
.nav-tab {
    padding: 0 0.7rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    white-space: nowrap;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-tab.active { 
    color: white; 
    border-bottom-color: var(--primary); 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 15px rgba(99, 102, 241, 0.3);
}

/* Main Container */
.main-container { max-width: 1600px; margin: 0 auto; padding: 2rem; }

/* Cards & Sections - Masterpiece Glassmorphism */
.card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: 0.5s;
    pointer-events: none;
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}
.card:hover::after {
    left: 100%;
}

.card-title {
    font-family: 'Outfit';
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* --- Landing Page: Cinematic Masterpiece Styles --- */
.landing-container {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #030712 70%);
    color: var(--text);
    overflow-x: hidden;
}

.landing-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section {
    max-width: 1400px;
    margin: 4vh auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0 2rem;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); filter: blur(10px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.badge-premium {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.hero-title {
    font-family: 'Outfit';
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-visual {
    position: relative;
    animation: fadeInRight 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px) scale(0.95); filter: blur(10px); }
    to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

.visual-frame {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7), 0 0 60px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
}

.visual-frame:hover .hero-img {
    transform: scale(1.05);
}

.visual-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(3, 7, 18, 0.8));
    pointer-events: none;
}

/* Bento Grid Features */
.features-grid {
    max-width: 1400px;
    margin: 8rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-areas: 
        "dashboard dashboard broadcast"
        "scoring secure broadcast";
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.bento-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
}

.bento-card h3 {
    font-family: 'Outfit';
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-icon-wrap {
    width: 140px;
    height: 140px;
    margin-bottom: 2rem;
    border-radius: 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-icon-wrap.trophy {
    background-image: url('../images/icon_dashboard.png');
}

.feature-icon-wrap.scoreboard {
    background-image: url('../images/icon_broadcast.png');
}

.feature-icon-wrap.gavel {
    background-image: url('../images/icon_scoring.png');
}

.feature-icon-wrap.security {
    background-image: url('../images/feature_security.png');
}


.bento-card:hover .feature-icon-wrap {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.8));
}

@media (max-width: 1024px) {
    .hero-section { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-title { font-size: 3.5rem; }
    .features-grid { 
        grid-template-areas: 
            "dashboard"
            "broadcast"
            "scoring"
            "secure";
        grid-template-columns: 1fr;
    }
}

/* Authentication Views - Focus & Reveal Animation */
.auth-container {
    max-width: 450px;
    margin: 10vh auto;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    animation: reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(20px);
}

@keyframes reveal {
    0% { 
        opacity: 0; 
        transform: translateY(20px) scale(0.98); 
        filter: blur(10px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0); 
    }
}
.label { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 800; 
    color: var(--text-muted); 
    margin-bottom: 0.5rem; 
    text-transform: uppercase; 
    letter-spacing: 0.06em; 
    opacity: 0.8;
}
.input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s ease;
}
.input:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2); 
    background: rgba(15, 23, 42, 0.8);
}

/* Select Option Visibility Fix for Dark Mode */
select.input option {
    background-color: #1e1b4b; /* Deep Indigo matching the theme */
    color: #f1f5f9; /* Near white text */
    padding: 10px;
}

#team-field-container {
    animation: slideDownIn 0.3s ease forwards;
    margin-bottom: 1.5rem;
}
@keyframes slideDownIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Custom Team Dropdown Styles */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1e1b4b; /* Deep Indigo */
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: slideDownIn 0.2s ease forwards;
}
.dropdown-item {
    padding: 12px 16px;
    color: #f1f5f9;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding-left: 20px;
}
.hidden { display: none !important; }

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    color: white; 
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5); 
    filter: brightness(1.1);
}
.btn-primary:active { transform: translateY(0); }

/* Tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { 
    padding: 1.25rem 1rem; 
    text-align: left; 
    font-size: 0.7rem; 
    font-weight: 800; 
    color: var(--text-muted); 
    border-bottom: 1px solid var(--border); 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
}
td { 
    padding: 1.25rem 1rem; 
    border-bottom: 1px solid var(--border); 
    font-size: 1rem; 
    color: #f1f5f9; 
    transition: background 0.2s ease;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.03); }

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* Event Selection Buttons */
.event-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border-radius: 15px;
    color: var(--text-muted);
}
.event-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
    transform: translateY(-2px);
}

/* Optimized Selected Premium - Royal Indigo Glow */
.event-btn.selected-red {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: #a5b4fc !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(139, 92, 246, 0.2);
    transform: translateY(-3px) scale(1.03);
    font-weight: 950;
}

/* --- Masterpiece Cinematic Animations --- */
@keyframes slideUp { 
    from { opacity: 0; transform: translateY(30px); filter: blur(10px); } 
    to { opacity: 1; transform: translateY(0); filter: blur(0); } 
}
@keyframes glowPulse {
    0% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
    100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.2); }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-glow { animation: glowPulse 3s infinite; }
.animate-shimmer { position: relative; overflow: hidden; }
.animate-shimmer::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 2s infinite;
}

.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.progress-container {
    width: 100%; height: 12px; background: rgba(255, 255, 255, 0.05);
    border-radius: 50px; overflow: hidden; margin-top: 10px; border: 1px solid var(--border);
}
.progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 15px var(--primary); transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline/Flow Styles */
.timeline { position: relative; padding-left: 20px; border-left: 2px dashed var(--border); margin-left: 10px; }
.timeline-item { position: relative; margin-bottom: 20px; animation: slideInLeft 0.5s ease forwards; }
.timeline-item::before {
    content: ''; position: absolute; left: -27px; top: 5px;
    width: 12px; height: 12px; background: var(--primary);
    border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 10px var(--primary);
}
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* Team Filter Buttons */
.team-filter-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.filter-btn {
    padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 800;
    color: var(--text-muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
    cursor: pointer; transition: all 0.3s ease;
}
.filter-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    color: white; border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Restored Essential Animations */
@keyframes slideUp { 
    from { opacity: 0; transform: translateY(30px); filter: blur(10px); } 
    to { opacity: 1; transform: translateY(0); filter: blur(0); } 
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(6, 182, 212, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* Restored Judge View */
.award-glow {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px;
    border-radius: 50px; font-weight: 900; font-size: 1.2rem;
    transition: all 0.3s ease; animation: innerPulse 2s infinite;
}
@keyframes innerPulse { 0% { opacity: 0.8; } 50% { opacity: 1; transform: scale(1.02); } 100% { opacity: 0.8; } }
.award-gold { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); }
.award-silver { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
.award-bronze { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.4); }

.judge-card {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 1));
    border: 3px solid rgba(99, 102, 241, 0.7);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 60px rgba(99, 102, 241, 0.2);
}

/* Restored Toggle Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.08); transition: .4s; border-radius: 34px; border: 1px solid var(--border);
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
    background-color: #94a3b8; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); border-color: var(--primary-light); }
input:checked + .slider:before { transform: translateX(22px); background-color: white; }

/* Restored Matrix Mode Styles */
.matrix-input {
    border: 1px solid transparent !important; border-radius: 4px !important;
    font-size: 0.9rem !important; padding: 6px 10px !important; height: 38px !important;
    transition: all 0.2s ease !important;
}
.matrix-input:hover { background: rgba(255, 255, 255, 0.05) !important; border-color: rgba(255, 255, 255, 0.1) !important; }
.matrix-input:focus { background: rgba(15, 23, 42, 0.98) !important; border-color: var(--primary) !important; box-shadow: 0 0 10px rgba(99, 102, 241, 0.4) !important; }
.matrix-row { transition: background 0.2s ease; }
.matrix-row:hover { background: rgba(255, 255, 255, 0.02) !important; }
.fill-down { opacity: 0.3; transition: all 0.2s ease; filter: grayscale(1); }
.matrix-row:hover .fill-down { opacity: 1; filter: grayscale(0); transform: scale(1.2); }
.fill-down:hover { transform: scale(1.4) !important; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .top-bar { height: auto; padding: 0.75rem 1rem; flex-direction: column; gap: 0.75rem; }
    .nav-tabs { margin-left: 0; width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .card { padding: 1.25rem; border-radius: 16px; }
    .main-container { padding: 1rem; }
}
/* --- Live Broadcast Monitor (전광판) specialized styles --- */
.broadcast-view {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: radial-gradient(circle at center, #111827, #020617);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.broadcast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(234, 179, 8, 0.2);
    padding-bottom: 1.5rem;
}

.broadcast-brand {
    font-family: 'Outfit';
    font-size: 3.5rem;
    font-weight: 950;
    color: white;
    letter-spacing: -0.04em;
}
.broadcast-brand span { color: var(--primary); text-shadow: 0 0 30px rgba(99, 102, 241, 0.7); }

.broadcast-status {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.broadcast-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    flex: 1;
    min-height: 0;
}

.broadcast-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.broadcast-panel-title {
    font-family: 'Outfit';
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 15px;
}

.broadcast-rank-item {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    margin-bottom: 15px;
    padding: 20px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.broadcast-rank-item.top-3 {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.15), rgba(255,255,255,0.03));
    border-color: rgba(234, 179, 8, 0.3);
    transform: scale(1.02);
}

.broadcast-num {
    font-family: 'Outfit';
    font-size: 2.5rem;
    font-weight: 950;
    width: 80px;
    color: var(--primary-light);
}

.broadcast-player {
    flex: 1;
}

.broadcast-player .name { font-size: 2rem; font-weight: 900; margin-bottom: 4px; }
.broadcast-player .team { font-size: 1rem; color: var(--text-muted); font-weight: 700; }

.broadcast-score {
    font-family: 'Outfit';
    font-size: 3rem;
    font-weight: 950;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.broadcast-feed-item {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 15px;
    margin-bottom: 12px;
    border-left: 4px solid var(--accent);
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    z-index: 2001;
}

/* Custom Centered Modal System */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 3000; opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: linear-gradient(165deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px; padding: 2.5rem; width: 450px; max-width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

.modal-title { font-family: 'Outfit'; font-size: 1.5rem; font-weight: 900; margin-bottom: 1rem; color: var(--primary-light); }
.modal-text { color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; font-weight: 500; font-size: 1.05rem; }
.modal-input { 
    width: 100%; padding: 14px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); 
    border-radius: 12px; color: white; text-align: center; font-size: 1.2rem; font-weight: 800;
    margin-bottom: 2rem; outline: none; transition: border-color 0.3s;
}
.modal-input:focus { border-color: var(--primary); }

.modal-actions { display: flex; gap: 12px; }
.modal-btn { 
    flex: 1; padding: 14px; border-radius: 12px; font-weight: 900; cursor: pointer; border: none; 
    transition: all 0.2s; font-size: 1rem;
}
.modal-btn-confirm { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.modal-btn-cancel { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }
.modal-btn:hover { filter: brightness(1.2); transform: translateY(-2px); }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Scores UX Hardening (Cockpit UI) --- */
.adjust-btn {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.adjust-btn:active {
    transform: scale(0.85);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}
.adjust-btn.plus { color: var(--primary-light); background: rgba(99, 102, 241, 0.1); }
.adjust-btn.minus { color: #f87171; background: rgba(248, 113, 113, 0.1); }

.score-summary-area {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px dashed rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.5s ease;
}
.summary-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.04);
}
.summary-chip.done {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.cockpit-input-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 1.25rem 0;
}

@media (max-width: 480px) {
    .judge-card { padding: 0.75rem !important; border-radius: 16px !important; }
    .adjust-btn { width: 48px; height: 48px; border-radius: 12px; font-size: 1rem; }
    .cockpit-input-wrap { gap: 8px; margin: 0.75rem 0; }
    #s-score { font-size: 3.5rem !important; height: 110px !important; width: 130px !important; border-radius: 18px !important; }
    .btn-primary { padding: 15px !important; font-size: 1.1rem !important; }
}

/* --- Professional Athlete Bib Printing (Image 9 Style) --- */
@media print {
    body { background: white !important; color: black !important; }
    .top-bar, .nav-tabs, .btn, .hidden, #main-view > *:not(#print-area) { display: none !important; }
    #print-area { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
    
    .bib-page {
        page-break-after: always;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .bib-card {
        width: 100%;
        height: 50vh; /* Two cards per A4 page */
        border: 1px dashed #ddd; /* Cutting guide */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 40px;
        box-sizing: border-box;
        text-align: center;
        background: white;
    }
    
    .bib-header {
        font-family: 'Pretendard', sans-serif;
        font-size: 2.8rem;
        font-weight: 900;
        color: #000;
        margin-bottom: 5px;
        letter-spacing: -0.02em;
    }
    
    .bib-line {
        height: 8px;
        background: #e11d48; /* Strong Red Line (Image 9) */
        width: 100%;
    }
    
    .bib-id {
        font-family: 'Outfit', sans-serif;
        font-size: 11rem;
        font-weight: 900;
        color: #000;
        line-height: 1;
        margin: 20px 0;
    }
    
    .bib-footer-team {
        font-family: 'Pretendard', sans-serif;
        font-size: 2.2rem;
        font-weight: 800;
        color: #000;
        margin-bottom: 25px;
    }
    
    .bib-footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding: 0 10px;
    }
    
    .bib-footer-name {
        font-size: 3.5rem;
        font-weight: 950;
    }
    
    .bib-footer-grade {
        font-size: 2rem;
        font-weight: 800;
    }
}

/* --- Feature Expansion: Community Board --- */
.board-container { display: flex; flex-direction: column; gap: 1.5rem; }
.board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.board-tabs { display: flex; gap: 10px; }
.board-tab {
    padding: 8px 16px; border-radius: 12px; background: rgba(255,255,255,0.05);
    color: var(--text-muted); cursor: pointer; font-weight: 700; transition: all 0.3s;
}
.board-tab.active { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(99,102,241,0.3); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.post-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 20px;
    padding: 1.5rem; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--primary-light); background: rgba(255,255,255,0.05); }
.post-tag {
    position: absolute; top: 1rem; right: 1rem; padding: 4px 10px; border-radius: 8px;
    font-size: 0.65rem; font-weight: 900; text-transform: uppercase;
}
.tag-announcement { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.tag-gallery { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tag-free { background: rgba(99, 102, 241, 0.2); color: #818cf8; }

.post-img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin: 1rem 0; background: #0f172a; }
.post-title { font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.post-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }

/* --- Feature Expansion: Analytics Dashboard --- */
.chart-container { 
    background: rgba(0,0,0,0.2); border-radius: 20px; padding: 1.5rem; 
    border: 1px solid var(--border); min-height: 250px;
}
.analytics-stats { display: flex; flex-direction: column; gap: 1rem; }

/* --- Enhanced Broadcast Animations --- */
.broadcast-ticker {
    height: 100%; overflow: hidden; position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}
.ticker-content { animation: tickerScroll 20s linear infinite; }
@keyframes tickerScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.podium-container {
    display: flex; align-items: flex-end; justify-content: center; gap: 20px;
    height: 200px; margin-bottom: 2rem; padding: 0 20px;
}
.podium-step {
    flex: 1; border-radius: 16px 16px 0 0; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding-bottom: 1rem; text-align: center;
}
.step-1 { height: 100%; background: linear-gradient(to top, rgba(234, 179, 8, 0.3), rgba(234, 179, 8, 0.1)); border: 2px solid #eab308; box-shadow: 0 0 30px rgba(234, 179, 8, 0.2); }
.step-2 { height: 75%; background: linear-gradient(to top, rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0.1)); border: 2px solid #94a3b8; }
.step-3 { height: 60%; background: linear-gradient(to top, rgba(180, 83, 9, 0.3), rgba(180, 83, 9, 0.1)); border: 2px solid #b45309; }

.podium-crown { font-size: 2rem; position: absolute; top: -35px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.5)); }

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}
.animate-heartbeat { animation: heartBeat 2s infinite; }

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-slide-up { animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Event Management - Premium Badge System */
.ev-chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 1.25rem;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.ev-chip {
    position: relative;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.05);
    user-select: none;
    background: rgba(255,255,255,0.03);
}

.ev-chip:active { cursor: grabbing; }

.ev-chip.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    background: var(--primary);
    border: 2px dashed rgba(255,255,255,0.5);
}

.landing-nav {
    display: flex;
    gap: 2rem;
}

.landing-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.landing-nav a:hover, .landing-nav a.active {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.nav-back-to-home {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Community Hub Specifics --- */
.community-hero {
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.community-feed-container {
    max-width: 1400px;
    margin: 0 auto 10rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 0 2rem;
}

.community-sidebar {
    position: sticky;
    top: 2rem;
}

.filter-card h4 {
    margin-bottom: 1.5rem;
    font-family: 'Outfit';
    letter-spacing: 0.1em;
    color: var(--primary-light);
}

.filter-item {
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.filter-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-left: 3px solid var(--primary-light);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.social-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: cardReveal 0.6s ease backwards;
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.social-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.social-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    background: #111;
    overflow: hidden;
}

.social-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.social-card:hover .social-img {
    transform: scale(1.1);
}

.social-content {
    padding: 2rem;
}

.social-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.social-title {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Outfit';
    margin-bottom: 1rem;
    line-height: 1.3;
}

.social-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.author-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

@media (max-width: 1024px) {
    .community-feed-container { grid-template-columns: 1fr; }
    .community-sidebar { position: relative; top: 0; }
}


.ev-chip.drag-over {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.ev-chip.selected {
    background: var(--primary);
    border-color: rgba(255,255,255,0.3) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(99,102,241,0.5);
    transform: translateY(-2px);
    z-index: 2;
}

.ev-chip.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    color: white;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.ev-chip.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.ev-chip.inactive {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    filter: grayscale(0.6);
    opacity: 0.7;
    border-color: rgba(255, 255, 255, 0.1);
}

.ev-chip.inactive:hover {
    filter: grayscale(0);
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.ev-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ev-chip.active .ev-status-indicator {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-green 2s infinite;
}

.ev-chip.inactive .ev-status-indicator {
    background: #64748b;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Removed ev-chip-actions related hover styles as they are now centralized in the workspace header */

.ev-action-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.ev-action-btn.del:hover {
    background: var(--secondary);
}

.m-badge-active { color: #10b981; font-weight: 800; font-size: 0.7rem; margin-right: 5px; }
.m-badge-inactive { color: #64748b; font-weight: 800; font-size: 0.7rem; margin-right: 5px; }

/* Horizontal Scrollbar for Event Menu */
#s-events-list::-webkit-scrollbar {
    height: 5px;
}
#s-events-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.01);
    border-radius: 10px;
}
#s-events-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 10px;
}
#s-events-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Ultra-Flat Zero-Scroll Dashboard Architecture */
.dashboard-fixed-viewport {
    height: calc(100vh - 100px); /* Strict Lock */
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
    padding-bottom: 10px;
}

.metric-chip-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    flex-shrink: 0;
}

.metric-chip {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s;
}
.metric-chip:hover { border-color: var(--primary); transform: translateY(-2px); }

.flat-body-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 15px;
    flex: 1;
    overflow: hidden;
}

.flat-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flat-card-title {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compact-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}
.compact-scroll::-webkit-scrollbar { width: 3px; }
.compact-scroll::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 10px; }

.mini-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    transition: 0.2s;
}
.mini-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.05); }

@media (max-height: 800px) {
    .flat-card { padding: 0.75rem; }
    .flat-card-title { margin-bottom: 0.5rem; }
}
/* --- Ultra Broadcast Scoreboard 2.0 (전광판) --- */
.broadcast-header-ultra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255,255,255,0.05);
}

.b-live-widgets { display: flex; gap: 10px; }
.b-widget {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 5px 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}
.b-widget-label { font-size: 0.5rem; font-weight: 950; color: var(--primary-light); letter-spacing: 2px; }
.b-widget-val { font-family: 'Outfit'; font-size: 1.2rem; font-weight: 950; color: white; line-height: 1; margin-top: 2px; }

.b-section-tag {
    font-size: 0.6rem;
    font-weight: 950;
    color: rgba(255,255,255,0.3);
    letter-spacing: 3px;
    margin: 5px 0;
    text-transform: uppercase;
}

.b-podium-section {
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.b-champions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.champion-podium-card {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.podium-glow {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    filter: blur(40px);
    opacity: 0.2;
}

.animate-highlight {
    animation: champion-flash 1s alternate;
    border-color: var(--accent) !important;
    background: linear-gradient(165deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0.9)) !important;
}

@keyframes champion-flash {
    from { transform: scale(1.05); box-shadow: 0 0 40px rgba(245, 158, 11, 0.4); }
    to { transform: scale(1); box-shadow: 0 0 0px transparent; }
}

.pulse-icon {
    display: inline-block;
    color: #22c55e;
    font-size: 0.6rem;
    margin-right: 5px;
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 1400px) {
    .b-champions-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
    .b-champions-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- High-Density Score Matrix (Live Feed) --- */
.score-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    align-content: start;
    padding-top: 5px;
}

.neon-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.neon-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary);
}

.neon-card.active-pulse {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.neon-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.neon-card-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.01em;
}

.neon-card-team {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
}

.neon-card-score {
    font-family: 'Outfit';
    font-size: 2.2rem;
    font-weight: 950;
    color: #fbbf24;
    line-height: 1;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

/* --- Premium 3D & Particle Effects --- */
.float-3d {
    animation: float3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float3d {
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
    33% { transform: translateY(-5px) rotateX(2deg) rotateY(-2deg); box-shadow: 0 15px 25px rgba(0,0,0,0.5); }
    66% { transform: translateY(-2px) rotateX(-2deg) rotateY(2deg); }
    100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
}

.particle-burst {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(236,72,153,0.8) 0%, rgba(0,0,0,0) 60%);
    animation: burstPop 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    z-index: 10;
}

@keyframes burstPop {
    0% { transform: scale(0.1); opacity: 1; }
    50% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.particle-burst.hidden { display: none; }
.particle-burst.active { display: block; }

.award-feed-scroll {
    overflow-y: hidden;
}

@keyframes fade-in-up {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
