@import url(../css/color.css);
@import url(../css/default.css);
@import url(../css/component.css);
@import url(../css/responsive.css);


/* ADVANCED CINEMATIC DESIGN (not simple) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&family=Oswald:wght@400;700&family=Cinzel:wght@400;700&display=swap');

:root {
    --bg-void: #020408;
    --bg-navy: #050a14;
    --brand-red: #cc0000;
    --brand-blue: #0044aa;
    --platinum-shimmer: linear-gradient(45deg, #ffffff 10%, #e6e6e6 50%, #b3b3b3 90%);
    --ap-gradient: linear-gradient(135deg, #cc0000 0%, #0044aa 100%);
    --blue-glow: rgba(0, 68, 170, 0.6);
    --red-glow: rgba(204, 0, 0, 0.5);
    --glass-panel: rgba(20, 25, 40, 0.85);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-void);
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    perspective: 1200px;
    /* Essential for 3D effects */
}

/* --- ANIMATED BACKGROUND SYSTEM --- */
.bg-universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 50% -20%, rgba(0, 68, 170, 0.4) 0%, transparent 60%),
        /* Top Blue Spotlight */
        radial-gradient(circle at 0% 100%, rgba(204, 0, 0, 0.2) 0%, transparent 40%),
        /* Red Haze Left */
        radial-gradient(circle at 100% 100%, rgba(0, 68, 170, 0.3) 0%, transparent 40%),
        /* Blue Haze Right */
        linear-gradient(to bottom, #020305 0%, #080f20 100%);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--brand-red) 1px, transparent 1px),
        radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.1;
    animation: particleDrift 60s linear infinite;
}

@keyframes particleDrift {
    from {
        background-position: 0 0, 15px 15px;
    }

    to {
        background-position: 1000px 500px, 1015px 515px;
    }
}

/* --- NAVIGATION BAR --- */
.premium-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.web-logo {
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-lux);
    letter-spacing: 2px;
}

.nav-menu a {
    color: #aaa;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-left: 30px;
    transition: 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--gold-lux);
}

/* --- TICKER TYPE MARQUEE --- */
.ticker-wrap {
    position: fixed;
    top: 91px;
    width: 100%;
    overflow: hidden;
    height: 35px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 90;
    display: flex;
    align-items: center;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.8rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* --- HERO STAGE (The 3D Centerpiece) --- */
.main-stage {
    padding-top: 160px;
    /* Nav + Ticker space */
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* 3D context is on body, but we reinforce here */
    transform-style: preserve-3d;
}

/* Chrome/Red Title Effect (High Fidelity Foil) */
.gold-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    /* Complex Silver Foil Gradient - Matches Gold structure exactly */
    background: linear-gradient(to bottom, #e6e6e6 22%, #666666 24%, #e6e6e6 26%, #e6e6e6 27%, #ffffff 40%, #333333 78%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 #000);
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
}

.gold-title::after {
    content: 'OFFICIAL RESULT';
    display: block;
    font-size: 1rem;
    color: var(--brand-red);
    -webkit-text-fill-color: var(--brand-red);
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 12px;
}

/* 3D GLASS PLATE */
.glass-plate-3d {
    background: linear-gradient(135deg, rgba(20, 25, 40, 0.6) 0%, rgba(20, 25, 40, 0.4) 100%);
    /* Double Border Effect: Red & Blue */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 80px;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        /* Inner dark line */
        0 0 0 3px rgba(204, 0, 0, 0.3),
        /* Inner Red Halo */
        0 0 0 6px rgba(0, 68, 170, 0.3),
        /* Outer Blue Halo */
        0 30px 60px rgba(0, 0, 0, 0.8);
    /* Deep Drop Shadow */

    transform: rotateX(10deg);
    /* The 3D Tilt */
    margin-bottom: 80px;
    transition: transform 0.5s ease;
}

.glass-plate-3d:hover {
    transform: rotateX(0deg) scale(1.02);
}

/* PLATE HUD DECORATION */
.plate-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 20px;
    overflow: hidden;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--brand-red);
    border-style: solid;
}

.tl {
    top: 15px;
    left: 15px;
    border-width: 2px 0 0 2px;
}

.tr {
    top: 15px;
    right: 15px;
    border-width: 2px 2px 0 0;
}

.bl {
    bottom: 15px;
    left: 15px;
    border-width: 0 0 2px 2px;
}

.br {
    bottom: 15px;
    right: 15px;
    border-width: 0 2px 2px 0;
}

/* BALLS 2.0 */
.balls-stage-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    padding: 20px 0;
    /* Mirror Reflection */
    -webkit-box-reflect: below 10px linear-gradient(transparent, rgba(0, 0, 0, 0.2));
}

.sphere-ball {
    margin-inline: 15px;
}
.sphere-ball .prize-digit {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;

    /* Premium Red Sphere Gradient (High Gloss) */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(230, 0, 0, 0.8) 10%, rgba(150, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 95%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);

    animation: pulseGlow 4s infinite alternate;
}

.sphere-ball .prize-digit::before {
    /* Specular highlight */
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(2px);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    }

    100% {
        box-shadow: 0 15px 35px rgba(230, 0, 0, 0.5);
    }
}

/* Secondary Prizes Styling */
.sec-prizes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 1000px;
}

.prize-panel {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    text-align: center;
}

.panel-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 20px;
}

.sec-balls-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.small-sphere {
    margin-inline: 10px;
}
.small-sphere .prize-digit {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 1px 2px #000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    /* Blue Metallic */
    background: radial-gradient(circle at 30% 30%, #aaddff 0%, #0066cc 40%, #001133 95%);
}

.small-sphere .prize-digit::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    filter: blur(1px);
}

/* Red for 3rd? No, user wanted matching Blue. */

/* --- HISTORY --- */
.history-flow {
    max-width: 1200px;
    width: 100%;
}

.flow-header {
    border-left: 4px solid var(--brand-red);
    padding-left: 20px;
    margin-bottom: 40px;
}

.flow-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 900;
    /* Silver Foil Effect */
    background: linear-gradient(to bottom, #e6e6e6 22%, #666666 24%, #e6e6e6 26%, #e6e6e6 27%, #ffffff 40%, #333333 78%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 #000);
}

.history-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hist-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.hist-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

.hist-date {
    font-size: 0.75rem;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
    font-weight: 700;
}

.hist-balls {
    display: flex;
    gap: 15px;
}

.micro-sphere .prize-digit {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    /* Red High Gloss */
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(230, 0, 0, 0.8) 10%, rgba(150, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 95%);
}

.micro-sphere .prize-digit::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 25%;
    height: 15%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    filter: blur(0.5px);
}

/* --- FOOTER --- */
.premium-footer {
    margin-top: 100px;
    background: linear-gradient(to bottom, #050a14 0%, #000 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 60px 20px 30px;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* Footer Logo */
footer .web-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.2));
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold-lux);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1000px) {
    .glass-plate-3d {
        transform: none;
        width: 95%;
        margin: 0 auto 50px;
    }

    .sec-prizes-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .history-grid-modern {
        grid-template-columns: 1fr;
    }

    .gold-title {
        font-size: 2.5rem;
    }

    .sphere-ball .prize-digit {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}

/* MOBILE FIXES */
@media (max-width: 600px) {

    /* Stack Nav */
    .premium-nav {
        flex-direction: column;
        padding: 15px;
        height: auto;
        position: relative;
        /* Unfix on mobile to avoid screen crowding */
        background: var(--bg-navy);
    }

    .ticker-wrap {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .main-stage {
        padding-top: 60px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .nav-menu {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 15px;
    }

    .nav-menu a {
        margin-left: 0;
        font-size: 0.9rem;
        letter-spacing: 3px;
        display: block;
        padding: 5px 0;
    }

    /* Shrink Hero */
    .hero-glass-card,
    .glass-plate-3d {
        padding: 30px 20px;
        width: 100%;
        margin-bottom: 40px;
    }

    .gold-title {
        font-size: 2rem;
        letter-spacing: normal;
    }

    /* Fix Ball Overflow */
    .balls-stage-row {
        gap: 15px;
        /* Reduce gap significantly */
    }

    .sphere-ball {
        margin-inline: 5px;
    }
    .sphere-ball .prize-digit {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    /* Center secondary prizes */
    .sec-prizes-grid {
        gap: 30px;
    }

    .prize-panel {
        padding: 20px 10px;
    }

    .premium-footer {
        margin-top: 0;
    }
}
