:root {
    --color-background: #181a20;
    --color-on-background: white;
    --color-background-hover: #27262c;
    --color-on-background-hover: white;
    --color-primary: #0000005c;
    --color-primary-disabled: #1f213c;
    --color-on-primary: white;
    --color-error: #de0000;
    --color-on-error: white;
}

/* ===== OCULTAR SCROLLBAR GLOBAL ===== */

html,
body {
    height: 100%;
    -ms-overflow-style: none;  /* IE/Edge antiguos */
    scrollbar-width: none;     /* Firefox */
}

/* Chrome, Safari, Edge (Chromium), Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
}

header,
main {
    background-color: var(--color-background);
    color: var(--color-on-background);
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(16rem, 2fr) minmax(
            16em,
            1fr
        );
    column-gap: 2rem;
}

.search {
    border-radius: 19px;
    border: 3px solid var(--color-background-hover);
    width: 90%;
    max-width: 22em;
    height: 40px;
    padding-left: 10px;
    margin-bottom: 1rem;
    margin-left: 1rem;
    background-color: var(--color-on-background);
    transition: all, border 120ms ease-out;
    position: relative;
}

header {
    display: flex;
    padding-inline: calc(25vw - 10rem);
    height: 4rem;
    background: linear-gradient(to right, #FCD116, #FCD116, #003893, #CE1126);
    color: #000000;
    position: relative;
}

@media screen and (min-width: 1366px) {
    header {
        display: grid;
        padding-inline: 0;
    }
}

header .logo {
    justify-self: end;
    align-self: center;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

header .nav {
    flex: 1;
}

main {
    height: 0;
    flex: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    column-gap: 2rem;
}

/* ===== SECCIONES SCROLLABLES SIN BARRA ===== */

main > div {
    overflow-y: auto;
    scrollbar-width: none;  /* Firefox */
}

main > div::-webkit-scrollbar {
    display: none;          /* WebKit */
}

.spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: span 3;
}

input[type="checkbox"] {
    height: 1.25rem;
    width: 1.25rem;
    cursor: pointer;
    margin: 0;
}

@keyframes global-text-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.level-name,
.card-rank span,
.level-container h1,
.record td a {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.level-name {
    padding-right: 6px !important;
    display: inline-block !important;
}

.level-container h1 {
    display: table-cell !important; 
    padding-left: 8px !important;
    padding-right: 12px !important;
    margin-bottom: 10px;
}

.level-container p, 
.level-container div,
.level-container .creadores, 
.level-container {
    padding-left: 8px !important;
}


.level-pos-top75,
.level.level-pos-top75 h1,
.level-pos-top75 h1,
.record td a.level-pos-top75 {
    background: linear-gradient(90deg, #ffb703, #fb8500, #ffb703) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: global-text-gradient 6s linear infinite !important;
    text-shadow: 0 0 5px rgba(254, 203, 22, 0.22), 0 0 10px rgba(251, 133, 0, 0.12);
}


.level-pos-76-150,
.level.level-pos-76-150 h1,
.record td a.level-pos-76-150 {
    background: linear-gradient(90deg, #ffffff, #a2a5a9, #ffffff) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: global-text-gradient 6s linear infinite !important;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.17) !important;
}


.level-pos-151plus,
.level.level-pos-151plus h1,
.record td a.level-pos-151plus {
    background: none !important;
    animation: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.15) !important;
}


@media (prefers-reduced-motion: reduce) {
    .level-pos-top75, .level-pos-top75 h1,
    .level-pos-76-150, .level-pos-76-150 h1 {
        animation: none !important;
        text-shadow: none !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
    }
}
