/* Core Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

/* Base Font Fixes & Smoothing */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.font-oswald {
    font-family: 'Oswald', sans-serif;
}

.font-roboto {
    font-family: 'Roboto Condensed', sans-serif;
}

/* Grid Table for Standings */
.custom-grid-table {
    display: grid;
    /* # | Team | MP W D L G GD | PTS */
    grid-template-columns: 80px minmax(0, 1fr) repeat(7, 60px);
    gap: 10px;
    align-items: center;
}

/* Animations Optimized */
.anim-slide,
.anim-slide-left,
.anim-slide-up,
.anim-fadeup,
.anim-zoom,
.anim-flip,
.anim-bounce,
.anim-roll {
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes slideInRight {
    from {
        transform: translate3d(100%, 0, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translate3d(-100%, 0, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 100%, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translate3d(0, 50px, 0);
        opacity: 0;
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale3d(0.5, 0.5, 0.5);
        opacity: 0;
    }

    to {
        transform: scale3d(1, 1, 1);
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.anim-slide {
    animation: slideInRight 0.6s both;
}

.anim-slide-left {
    animation: slideInLeft 0.6s both;
}

.anim-slide-up {
    animation: slideInUp 0.6s both;
}

.anim-fadeup {
    animation: fadeInUp 0.6s both;
}

.anim-zoom {
    animation: zoomIn 0.6s both;
}

.anim-flip {
    animation: flipInX 0.8s both;
}

.anim-bounce {
    animation: bounceIn 0.8s both;
}

.anim-roll {
    animation: rollIn 0.6s both;
}

@keyframes flipInX {
    from {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        opacity: 0;
    }

    to {
        transform: perspective(400px);
        opacity: 1;
    }
}

@keyframes bounceIn {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }

    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        transform: scale3d(.9, .9, .9);
    }

    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        transform: scale3d(.97, .97, .97);
    }

    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes rollIn {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.shiny-text {
    position: relative;
    overflow: hidden;
}

.shiny-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}