:root {
    /* Maroon scale */
    --m: #7c1d2e; /* primary maroon */
    --m2: #a3293f; /* lighter maroon (hover) */
    --m3: #5c1020; /* dark maroon (sidebar bg) */
    --mpale: #f9f0f1; /* maroon tint, field backgrounds */
    --mpale2: #f2e2e4; /* slightly darker tint */

    /* Gold scale */
    --gold: #c9a84c; /* primary gold */
    --gold2: #e8cc82; /* light gold (text on dark bg) */
    --gold3: #a8882c; /* dark gold (borders on gold) */

    /* Neutrals */
    --cream: #faf7f2; /* page background */
    --ink: #1e0f12; /* body text */
    --muted: #9a7279; /* secondary text, icons */
    --white: #ffffff;
    --border: rgba(124, 29, 46, 0.12); /* subtle maroon-tinted border */

    /* Status */
    --live: #e03a52; /* live/error red */
    --green: #2a7a4a; /* success green */
}

body {
    width: 100%;
    height: 100dvh;

    font-family: monospace;

    background:
        /* Soft gold glowing center */
        radial-gradient(
            circle at 50% 50%,
            rgba(201, 168, 76, 0.35) 0%,
            rgba(201, 168, 76, 0.18) 20%,
            rgba(201, 168, 76, 0.08) 35%,
            transparent 60%
        ),
        /* Subtle maroon wave depth */
        radial-gradient(
                circle at 50% 120%,
                rgba(124, 29, 46, 0.12) 0%,
                transparent 20%
            ),
        /* Light futuristic base */
        linear-gradient(135deg, #faf7f2 0%, #f6ecee 50%, #faf7f2 100%);
}

/* Navbar*/
nav {
    width: 100%;
    height: 70px;

    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    padding: 5px 20px;

    user-select: none;
    background-color: var(--mpale2);
}

nav a {
    font-size: 20px;
    color: var(--m);

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 5px;
}

nav a img {
    width: 45px;
}

nav .status {
    background-color: var(--m2);
    padding: 5px 8px;

    border-radius: 5px;
    color: var(--gold2);

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    gap: 5px;
}

nav .status .indicator {
    width: 5px;
    height: 5px;

    border-radius: 50%;
    background-color: var(--live);

    display: none;
    animation: pulse 1.2s infinite ease-in-out;
}

nav .status.live .indicator {
    display: block;
}

main {
    margin-top: 50px;
    padding: 15px;

    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: center;
}

.scoreboard {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 900px;
}

.scoreboard h1.match-name {
    width: 100%;

    text-align: center;
    color: var(--m2);

    background-color: var(--mpale2);
    border-radius: 3px;

    padding: 10px 15px;
}

/* --- Current Score --- */
.current-score {
    margin-top: 10px;

    width: 100%;
    height: auto;

    padding: 20px 10px;

    border: 2px solid var(--muted);
    border-radius: 5px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    background-color: rgba(242, 226, 228, 0.2);
    backdrop-filter: blur(5px);
}

.current-score .title {
    font-size: 18px;
    text-transform: uppercase;

    font-weight: 900;
    color: var(--m);

    transform: translateY(10px);
}

.current-score .score-block {
    font-size: 80px;
    font-weight: bold;

    font-family: monospace;
    color: var(--m);
}

.current-score .overs-balls {
    display: inline-block;
    font-size: 20px;

    font-weight: bold;
    color: var(--gold3);

    transform: translateY(-10px);
}

.card {
    margin-top: 20px;

    width: 100%;
    height: auto;

    padding: 15px;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;
    align-items: flex-start;

    backdrop-filter: blur(10px);

    background-color: rgba(250, 247, 242, 0.5);
    border-radius: 5px;

    border: 1px solid var(--mpale2);
}

.card .desc {
    font-size: 18px;

    color: var(--m2);

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items: center;

    text-transform: uppercase;
    gap: 5px;
}

.card .title {
    font-size: 20px;
    color: var(--m2);

    text-transform: uppercase;
    letter-spacing: 1px;

    font-weight: bold;
    opacity: 0.7;
}

.players {
    margin-top: 20px;

    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 5px;
}

.players .player {
    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    padding: 15px;
    border-radius: 5px;

    width: 100%;
    height: auto;

    background-color: rgba(250, 247, 242, 0.5);
    border-radius: 5px;

    border: 1px solid rgba(154, 114, 121, 0.5);
    gap: 15px;
}

.players .player span.name {
    font-size: 18px;
    font-weight: 400;

    opacity: 0.65;

    text-transform: uppercase;
    color: var(--m3);
}

.players .player span.title {
    text-transform: uppercase;

    padding: 5px 10px;
    background-color: var(--mpale2);

    border-radius: 5px;
    color: var(--gold3);
}

.msg {
    margin-top: 20px;

    width: 100%;
    height: auto;

    padding: 15px;

    background-color: rgba(154, 114, 121, 0.2);
    border-radius: 5px;

    font-weight: 300;
    text-transform: uppercase;

    color: var(--m);
    font-size: 18px;

    text-align: center;
}

/* --- Banner --- */
.banner {
    margin-top: 100px;
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 900px;
}

.banner h2 {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    font-size: 80px;
    color: var(--m2);

    text-transform: capitalize;
    text-align: center;

    background: linear-gradient(
        90deg,
        #7c1d2e 0%,
        #a3293f 30%,
        #a3293f 30%,
        #c9a84c 80%,
        #e8cc82 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner span.vs {
    font-size: 20px;
    transform: translateY(10px);
}

.banner .desc {
    text-transform: uppercase;
    letter-spacing: 1px;

    font-size: 20px;
    color: var(--m2);
}
/* Team names outer glow */
.banner h2 span:not(.vs) {
    display: inline-block;
    position: relative;

    /* Outer glow layers */
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.2);

    /* Optional: slightly stronger glow */
    filter: drop-shadow(0 0 5px var(--m)) drop-shadow(0 0 10px #c9a84c)
        drop-shadow(0 0 20px #a3293f);

    animation: glowPulse 2.5s ease-in-out infinite alternate;
}

/* ---------- Splash Screen ----------*/
.splash {
    padding: 25px;

    position: fixed;
    z-index: 999;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    clip-path: circle(100% at 50% 50%);
    transition: clip-path 0.5s ease-in-out;

    background: var(--m);
    overflow: hidden;
}

.splash.hide {
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.5s ease-in-out;
}

.splash img {
    width: 100%;
    max-width: 300px;

    animation: logo_pulse 1s infinite ease-in;
}

/* ---------- News ---------- */
.news {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999; /* above everything */

    clip-path: circle(0% at -10% -10%);
    transition: clip-path 0.5s ease-in-out;
    background: var(--m);
}

.news.pop {
    clip-path: circle(100% at 50% 50%);
    transition: clip-path 0.5s ease-in-out;
}
