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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 2px solid #333;
}

.title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.game-input {
    padding: 15px 20px;
    font-size: 1.1rem;
    background: #222;
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    width: 300px;
    transition: border-color 0.3s;
}

.games-list {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.game-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.game-card:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.game-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.team-abbrev {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

.vs-symbol {
    font-size: 1.1rem;
    font-weight: bold;
    color: #888;
    align-self: center;
}

.game-score {
    color: #ff6b35;
    font-size: 1.3rem;
    font-weight: bold;
}

.game-status {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.broadcast-info {
    color: #f7931e;
    font-size: 0.8rem;
    font-weight: 500;
}

.game-excitement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.game-excitement .category-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
}

.debug-info {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 10px;
}

.game-badges {
    display: flex;
    gap: 4px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: help;
    line-height: 1;
    font-weight: 600;
    color: #fff;
    white-space: normal;
    text-align: left;
}

.game-badge.highlight {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
}

.game-badge.detractor {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
}

.badge-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.badge-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    letter-spacing: 0.3px;
}

.badge-data {
    font-weight: 500;
    opacity: 0.85;
    margin-left: 2px;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #666;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
    margin-left: 5px;
    user-select: none;
}

.info-icon:hover {
    background: #ff6b35;
}

.live-icon {
    color: #e74c3c;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 20px;
    border: 2px solid #333;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    color: #fff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff6b35;
}

.game-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.analyze-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analyze-btn:hover {
    transform: translateY(-2px);
}

.loading {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.excitement-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.excitement-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-value {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-label {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.category-badge {
    padding: 15px 30px;
    background: #333;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

.game-status .category-badge {
    font-size: 1rem;
    padding: 8px 16px;
}


/* Heating up Lighter Yellow*/

.category-badge.heating-up { 
    background: linear-gradient(135deg, #fffb00, #ffbb00);
    box-shadow: 0 0 12px rgba(127, 191, 127, 0.5);
    color: #fff;
}

/* Sizzling - warming orange (heating up) */
.category-badge.sizzling { 
    background: linear-gradient(135deg, #ba6702, #ffa500);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
    color: #fff;
}

/* Barn Burner - fire effect */
.category-badge.barn-burner { 
    background: linear-gradient(135deg, #ff4500, #ff6347, #ff0000);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.8), inset 0 0 20px rgba(255, 255, 0, 0.2);
    animation: fire-flicker 1.5s infinite alternate;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.8);
    color: #fff;
}

@keyframes electric-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(30, 144, 255, 0.6); }
    50% { box-shadow: 0 0 25px rgba(30, 144, 255, 0.9); }
}

@keyframes fire-flicker {
    0% { 
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.8), inset 0 0 20px rgba(255, 255, 0, 0.2);
        text-shadow: 0 0 5px rgba(255, 255, 0, 0.8);
    }
    100% { 
        box-shadow: 0 0 30px rgba(255, 0, 0, 1), inset 0 0 30px rgba(255, 255, 0, 0.4);
        text-shadow: 0 0 8px rgba(255, 255, 0, 1);
    }
}

/* Unknown category */
.category-badge.unknown { 
    background: #444;
    color: #aaa;
}

/* Meh - bland gray-blue */
.category-badge.meh { 
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: #fff;
    box-shadow: 0 0 8px rgba(134, 142, 150, 0.4);
}

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

.info-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.info-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
}

.preview-section {
    margin-bottom: 40px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.preview-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-card-header h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff6b35;
    margin: 0;
}

.preview-card .category-badge {
    font-size: 0.9rem;
    padding: 6px 12px;
    box-shadow: none;
}

.expected-raw {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.expected-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expected-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
}

.threshold-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.threshold-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.threshold-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.threshold-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ff6b35;
}

.recent-excitement-section {
    margin-top: 32px;
}

.recent-excitement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.recent-team-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-team-card h4 {
    margin: 0;
    font-size: 1rem;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recent-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #aaa;
}


.form-caption {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    color: #888;
}

.form-placeholder {
    font-size: 0.8rem;
    color: #aaa;
}

.expected-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.expected-label {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.75rem;
    color: #9a9a9a;
}

.expected-value {
    font-size: 1.15rem;
    color: #ff8a5c;
}

.expected-context {
    font-size: 0.7rem;
    color: #777;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.expected-summary-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px 12px;
}

.expected-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #ccc;
}

.expected-summary-label {
    color: #9a9a9a;
}

.expected-summary-value {
    color: #ff6b35;
    font-weight: 600;
}

.category-badge.mini {
    font-size: 0.72rem;
    padding: 2px 6px;
    line-height: 1.2;
}

.recent-excitement-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-excitement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.recent-excitement-item .category-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
}

.recent-opponent {
    color: #ccc;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    flex: 1;
}

.recent-raw {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6b35;
}

.recent-excitement-date {
    font-size: 0.75rem;
    color: #888;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-excitement-empty {
    font-size: 0.85rem;
    color: #777;
    text-align: center;
}

.empty-state {
    font-size: 0.85rem;
    color: #888;
}

.team-form-list {
    display: grid;
    gap: 12px;
}

.team-form-item {
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(74, 144, 226, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-form-item.hot {
    border-color: rgba(39, 174, 96, 0.4);
    background: rgba(39, 174, 96, 0.15);
}

.potential-breakdown {
    margin-top: 14px;
}

.potential-breakdown.hidden {
    display: none;
}

.potential-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin-bottom: 8px;
}

.potential-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
    gap: 6px 12px;
    font-size: 0.9rem;
}

.potential-row {
    display: contents;
}

.potential-header .potential-label {
    font-weight: 600;
    color: #aaa;
}

.potential-header .potential-value {
    font-weight: 600;
}

.potential-label {
    color: #888;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.potential-value {
    color: #fff;
    font-weight: 500;
    text-align: right;
}

.team-form-item.cool {
    border-color: rgba(231, 76, 60, 0.4);
    background: rgba(231, 76, 60, 0.15);
}

.team-form-item.steady {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.team-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.team-form-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.team-form-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #ddd;
}

.team-form-metric {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.team-form-metric-label {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.team-form-metric-value {
    font-weight: 600;
    color: #ff6b35;
    margin-left: 4px;
}

.monte-carlo {
    display: grid;
    gap: 12px;
}

.monte-carlo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.monte-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.monte-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6b35;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.toast {
    background: #1a1a1a;
    border: 1px solid #333;
    border-left: 4px solid #ff6b35;
    border-radius: 10px;
    padding: 12px 18px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-10px);
    animation: toast-in 0.25s forwards;
}

.toast-hide {
    animation: toast-out 0.25s forwards;
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.insights-grid {
    margin-top: 20px;
}

@media (max-width: 480px) {
    .expected-raw {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .toast-container {
        left: 20px;
        right: 20px;
    }
}

.chart-section h3,
.events-section h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #ff6b35;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.totals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.total-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.total-header {
    background: #333;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.total-stats {
    padding: 20px;
}

.stat {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.stat:last-child {
    border-bottom: none;
}

.stat-label {
    color: #888;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.stat-value {
    font-weight: bold;
    color: #ff6b35;
}





.hidden {
    display: none;
}

.methodology-link {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #333;
}

.methodology-link a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.methodology-link a:hover {
    color: #f7931e;
    text-decoration: underline;
}

.methodology-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.methodology-content h2 {
    color: #ff6b35;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.method-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.method-section h3 {
    color: #f7931e;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.method-section ul {
    margin-left: 20px;
}

.method-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.method-section strong {
    color: #ff6b35;
}

.calculation-steps {
    background: #0a0a0a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.calc-step {
    margin-bottom: 15px;
    padding: 10px;
    border-left: 3px solid #ff6b35;
    background: #111;
}

.calc-step:last-child {
    margin-bottom: 0;
    border-left-color: #f7931e;
    background: #1a1a0a;
}

.error {
    text-align: center;
    padding: 40px;
    background: #2a1a1a;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    color: #e74c3c;
}

/* NHL-style game header */
.game-header {
    margin-bottom: 30px;
}

.team-matchup {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.away-team, .home-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    order: 1;
}

.away-team {
    order: 0;
}

.home-team {
    order: 2;
}

.team-logo-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    order: 0;
}

.team-info {
    text-align: center;
    order: 1;
}

.team-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
}

.team-record {
    font-size: 0.8rem;
    color: #888;
}

.team-score {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ff6b35;
    text-align: center;
    order: 2;
}

.game-status {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 150px;
}

.period-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.period-status {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f7931e;
}

.time-status {
    font-size: 1rem;
    color: #ccc;
    font-weight: 500;
}

.excitement-summary {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.excitement-summary.preview-centered {
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.excitement-summary.preview-centered .excitement-score {
    width: 100%;
    align-items: center;
}

.excitement-summary .excitement-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.excitement-summary .category-badge {
    margin-top: 15px;
}

.context-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.context-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.context-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
}

/* Stats table */
.stats-section {
    margin-bottom: 40px;
}

#statsTitle[data-mode="projected"]::after {
    content: ' (Projected)';
    font-size: 1rem;
    font-weight: 400;
    color: #8ea2c0;
    margin-left: 0.4rem;
}

#statsTitle[data-mode="projected"][data-source="rates"]::after {
    content: ' (Projected baseline model)';
}

#statsTitle[data-mode="projected"][data-source="recent"]::after {
    content: ' (Projected Based on Last 5 Games)';
}

.stats-table {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.stats-header {
    background: #333;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-category {
    color: #fff;
}

.away-header, .home-header {
    text-align: center;
    color: #ff6b35;
}

.stat-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 15px;
    border-bottom: 1px solid #333;
    align-items: center;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.away-stat, .home-stat {
    text-align: center;
    font-weight: bold;
    color: #ff6b35;
    font-size: 1.1rem;
}

.active-modifiers-section, .game-summary-section {
    margin-bottom: 40px;
}

.active-modifiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modifier-badge {
    background: linear-gradient(135deg, #4a90e2, #6bb6ff);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
}

.modifier-badge.penalty {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
}

.game-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.summary-group {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
}

.summary-group h4 {
    color: #f7931e;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #333;
    color: #fff;
    min-height: 24px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span {
    color: #ff6b35;
    font-weight: bold;
}

.summary-item.factor-active,
.summary-item.factor-penalty {
    justify-content: space-between;
    gap: 12px;
}

.factor-active {
    color: #f7931e !important;
}

.factor-penalty {
    color: #e74c3c !important;
}

.event-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.event-name {
    color: #fff;
}

.event-value {
    color: #ff6b35;
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

.summary-factor {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.summary-detail {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.summary-item.factor-active .summary-detail,
.summary-item.factor-penalty .summary-detail {
    color: rgba(255, 255, 255, 0.85) !important;
}

.summary-item.factor-active .badge-label {
    color: #f7931e;
}

.summary-item.factor-penalty .badge-label {
    color: #e74c3c;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .input-section {
        flex-direction: column;
        align-items: center;
    }
    
    .game-input {
        width: 100%;
        max-width: 300px;
    }
    
    .team-matchup {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .away-team, .home-team {
        flex-direction: column;
        text-align: center;
    }
    
    .home-team {
        flex-direction: column;
    }
    
    .excitement-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stats-header, .stat-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stat-row {
        padding: 10px;
    }
}
