/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    padding-bottom: 80px; /* Account for fixed bottom score display */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 90px; /* Account for fixed navbar */
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    text-decoration: none;
    color: #333;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.domain {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-link.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.nav-link.disabled:hover {
    color: #ccc;
    background: transparent;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo-section h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.logo-section p {
    color: #666;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.match-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.match-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-input label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    text-align: left;
}

.match-input input,
.match-input select {
    padding: 14px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
}

.match-input input:focus,
.match-input select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Alliance Header */
.alliance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.alliance {
    flex: 1;
    text-align: center;
    padding: 25px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alliance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 20px;
}

.red-alliance {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    margin-right: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.blue-alliance {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    margin-left: 20px;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.alliance h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.alliance-teams {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.vs-section {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 30px;
    position: relative;
}

.vs-section h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.vs-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

/* Scoring Container */
.scoring-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

/* Period Sections */
.period-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.period-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.period-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid;
    position: relative;
}

.auto-period h2 {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.teleop-period h2 {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Period Scoring Grid */
.period-scoring-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Scoring Categories */
.scoring-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Improved spacing and reduced clutter */
.scoring-category {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.scoring-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 15px 15px 0 0;
}

.scoring-category:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.scoring-category h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scoring-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.scoring-item:hover {
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.scoring-item:last-child {
    margin-bottom: 0;
}

.scoring-item label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alliance-section {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alliance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.alliance-section.red-alliance {
    border-color: #ff6b6b;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.1);
}

.alliance-section.red-alliance::before {
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
}

.alliance-section.blue-alliance {
    border-color: #4ecdc4;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.1);
}

.alliance-section.blue-alliance::before {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.alliance-section h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid;
    position: relative;
}

.alliance-section.red-alliance h3 {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

.alliance-section.blue-alliance h3 {
    color: #4ecdc4;
    border-bottom-color: #4ecdc4;
}

.alliance-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Scoring Grid - Legacy support */
.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}


/* Counter Styles */
.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.counter-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.counter-btn.plus {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.counter-btn.minus {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.counter-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.counter-btn:active {
    transform: scale(0.95);
}

.count {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    min-width: 40px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Checkbox Styles */
.scoring-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #667eea;
    cursor: pointer;
}

.scoring-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    margin-bottom: 0;
}

/* Score Button Styles */
.score-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.score-btn:active {
    transform: translateY(-1px);
}

/* Score Summary */
.score-summary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Alliance Scores */
.alliance-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.alliance-score-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.alliance-score-section.red-alliance {
    border-color: #ff6b6b;
}

.alliance-score-section.blue-alliance {
    border-color: #4ecdc4;
}

.alliance-score-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid;
}

.alliance-score-section.red-alliance h3 {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

.alliance-score-section.blue-alliance h3 {
    color: #4ecdc4;
    border-bottom-color: #4ecdc4;
}

.alliance-score-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.score-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.score-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.score-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.score-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.score-item.total {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.score-item.total h3 {
    color: white;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.score-item.total .score-value {
    color: white;
}

/* Ranking Points */
.ranking-points h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.rp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.rp-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.rp-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.rp-item label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    font-size: 1rem;
}

.rp-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 5px;
}

.rp-item small {
    color: #666;
    font-size: 0.85rem;
}

/* Match Result */
.match-result {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.match-result h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.result-display {
    margin-bottom: 25px;
}

.winner {
    font-size: 2rem;
    font-weight: 700;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.winner.red-winner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.winner.blue-winner {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.winner.tie {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.rp-thresholds h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.9;
}

.threshold-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.threshold-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.threshold-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.threshold-item span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Match Controls */
.match-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 36px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 3px solid #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* Match History */
.match-history {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.match-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
}

.match-history h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-table {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

th, td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 700;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

tr:hover {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

tr:last-child td {
    border-bottom: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin: 2px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .match-info {
        justify-content: center;
    }
    
    .logo-section h1 {
        font-size: 2rem;
    }
    
    .period-scoring-grid {
        grid-template-columns: 1fr;
    }
    
    .scoring-categories {
        grid-template-columns: 1fr;
    }
    
    .alliance-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .alliance {
        margin: 0;
    }
    
    .vs-section h1 {
        font-size: 2rem;
    }
    
    .scoring-grid {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        grid-template-columns: 1fr;
    }
    
    .alliance-scores {
        grid-template-columns: 1fr;
    }
    
    .rp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .match-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .threshold-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        padding-top: 90px;
    }
    
    .period-section,
    .score-summary,
    .match-history {
        padding: 20px;
    }
    
    .rp-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error States */
.success {
    border-color: #27ae60 !important;
    background-color: #d5f4e6 !important;
}

.error {
    border-color: #e74c3c !important;
    background-color: #fadbd8 !important;
}

/* Real-time Score Display */
.realtime-score-display {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 3px solid #667eea;
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.realtime-scores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.realtime-alliance {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 120px;
    justify-content: center;
}

.realtime-alliance.red {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.realtime-alliance.blue {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.realtime-vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: #667eea;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.realtime-score {
    font-size: 1.8rem;
    font-weight: 800;
    min-width: 40px;
    text-align: center;
}

/* Single Alliance Mode */
.alliance-section.hidden {
    display: none;
}

.alliance-header.hidden {
    display: none;
}

.scoring-container.single-alliance {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive adjustments for real-time display */
@media (max-width: 768px) {
    .realtime-scores {
        gap: 15px;
    }
    
    .realtime-alliance {
        min-width: 100px;
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .realtime-score {
        font-size: 1.5rem;
    }
    
    .realtime-vs {
        font-size: 1.2rem;
    }
}
