:root {
    --bg: #08121a;
    --bg-soft: #101d29;
    --card: #ffffff;
    --text: #ffffff;
    --text-dark: #07111a;
    --muted: #b8c7d4;
    --muted-dark: #52616d;
    --blue: #b91c1c;
    --blue-light: #ef4444;
    --blue-soft: #fff1f1;
    --green-soft: #d9f7e6;
    --green: #0f6b35;
    --red-soft: #ffe0e0;
    --red: #8a0000;
    --border: rgba(255, 255, 255, 0.14);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), transparent 34%),
        linear-gradient(180deg, #08121a 0%, #0d1822 100%);
    color: var(--text);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 18px 48px;
}

.site-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.32));
}

.header h1 {
    margin: 0 0 8px;
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.header p {
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
    font-size: 16px;
}

.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.links a,
.button-link {
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border);
    padding: 11px 16px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.15s ease, background 0.15s ease;
}

.links a:hover,
.button-link:hover {
    transform: translateY(-1px);
    background: rgba(56, 189, 248, 0.18);
}

.game-card,
.result-card,
.sponsor-card,
.pin-card,
.scorekeeper-panel {
    background: var(--card);
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.game-meta,
.game-top,
.meta {
    color: var(--muted-dark);
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.team-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    font-size: clamp(21px, 4vw, 28px);
    font-weight: 900;
    border-bottom: 1px solid #e8eef2;
    padding: 12px 0;
}

.team-row:last-of-type {
    border-bottom: none;
}

.score {
    font-size: clamp(30px, 7vw, 46px);
    color: var(--blue);
    font-weight: 900;
    line-height: 1;
}

.status,
.sponsor-level {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    background: var(--blue);
    color: white;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.date-heading {
    margin: 30px 0 14px;
    font-size: 26px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.22);
    padding-bottom: 10px;
}

.summary {
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: #f2f6f8;
    line-height: 1.5;
}

.submitted,
.not-submitted {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    font-weight: 900;
    white-space: nowrap;
}

.submitted {
    background: var(--green-soft);
    color: var(--green);
}

.not-submitted {
    background: var(--red-soft);
    color: var(--red);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 18px;
}

.sponsor-card {
    text-align: center;
}

.sponsor-logo-wrap {
    background: #f2f6f8;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 105px;
    object-fit: contain;
}

.sponsor-placeholder {
    font-size: 46px;
    font-weight: 900;
    color: var(--blue);
}

.sponsor-name {
    font-size: 23px;
    font-weight: 900;
    margin-bottom: 8px;
}

.visit-link {
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 34px;
}

@media (max-width: 620px) {
    .site-logo {
        width: 120px;
        height: 120px;
    }

    .container {
        padding: 18px 14px 36px;
    }

    .game-card,
    .result-card,
    .sponsor-card,
    .pin-card,
    .scorekeeper-panel {
        border-radius: 18px;
        padding: 17px;
    }

    .team-row {
        grid-template-columns: 1fr auto;
    }

    .links a {
        width: 100%;
        max-width: 280px;
    }
}
.filter-form {
    margin: 0 auto 24px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid rgba(185, 28, 28, 0.16);
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    max-width: 420px;
}

.filter-form label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
}

.filter-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(185, 28, 28, 0.28);
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}
/* Final public header polish */
.header {
    text-align: center;
}

.header h1,
.header p {
    text-align: center;
}

.site-logo {
    width: 210px;
    height: 210px;
    max-width: 70vw;
}

@media (max-width: 620px) {
    .site-logo {
        width: 160px;
        height: 160px;
    }
}
/* Bigger sponsor logos */
.sponsor-logo {
    max-width: 100%;
    width: 320px;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
}

.sponsor-card img {
    max-width: 100%;
    width: 320px;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
}

@media (max-width: 620px) {
    .sponsor-logo,
    .sponsor-card img {
        width: 260px;
        max-height: 150px;
    }
}
/* Extra-large sponsor logos */
.sponsor-logo,
.sponsor-card img {
    width: 520px;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto 22px;
}

@media (max-width: 620px) {
    .sponsor-logo,
    .sponsor-card img {
        width: 340px;
        max-width: 100%;
        max-height: 220px;
    }
}
/* Tighten sponsor logo spacing */
.sponsor-card {
    padding: 20px;
}

.sponsor-card img,
.sponsor-logo {
    width: 560px;
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.sponsor-card .sponsor-image,
.sponsor-logo-wrap,
.logo-wrap {
    padding: 12px;
    margin-bottom: 14px;
}

@media (max-width: 620px) {
    .sponsor-card {
        padding: 16px;
    }

    .sponsor-card img,
    .sponsor-logo {
        width: 360px;
        max-height: 180px;
        margin-bottom: 10px;
    }
}
/* Top sponsor logo under main Sizzler logo */
.top-sponsor {
    text-align: center;
    margin: -8px auto 22px;
}

.top-sponsor-label {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 8px;
}

.top-sponsor-logo {
    width: 190px;
    max-width: 56vw;
    max-height: 82px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.top-sponsor-link {
    display: block;
    width: fit-content;
    margin: 0 auto 12px;
}

.top-sponsor-name {
    margin: 0 auto 12px;
    font-weight: 800;
}

@media (max-width: 620px) {
    .top-sponsor {
        margin: -4px auto 18px;
    }

    .top-sponsor-logo {
        width: 165px;
        max-height: 74px;
        padding: 7px 10px;
    }
}
/* Final logo/header tightening */
.header {
    padding-top: 10px;
    margin-bottom: 18px;
}

.site-logo {
    width: 260px;
    height: 260px;
    max-width: 78vw;
    margin: 0 auto 8px;
}

.top-sponsor {
    margin: -18px auto 20px;
}

@media (max-width: 620px) {
    .header {
        padding-top: 6px;
        margin-bottom: 16px;
    }

    .site-logo {
        width: 210px;
        height: 210px;
        margin-bottom: 6px;
    }

    .top-sponsor {
        margin: -12px auto 18px;
    }
}
/* Huge centered Sizzler logo + tighter sponsor header */
.header {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.site-logo {
    width: 360px;
    height: 360px;
    max-width: 88vw;
    object-fit: contain;
    display: block;
    margin: -42px auto -42px;
    transform: translateX(4px);
}

.top-sponsor {
    text-align: center;
    margin: 0 auto 18px;
}

.top-sponsor-label {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 8px;
}

.top-sponsor-logo {
    width: 220px;
    max-width: 62vw;
    max-height: 90px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

@media (max-width: 620px) {
    .header {
        padding-top: 0;
        margin-bottom: 10px;
    }

    .site-logo {
        width: 300px;
        height: 300px;
        max-width: 92vw;
        margin: -34px auto -36px;
        transform: translateX(3px);
    }

    .top-sponsor {
        margin: 0 auto 16px;
    }

    .top-sponsor-logo {
        width: 200px;
        max-height: 82px;
        padding: 7px 10px;
    }
}
/* Scorekeeper saving lock */
.saving-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.saving-overlay.show {
    display: flex;
}

.saving-box {
    background: #ffffff;
    color: #111827;
    border-radius: 18px;
    padding: 24px 28px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.saving-subtext {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
}