* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*///// FONTS \\\\\ */

@font-face {
    font-family: "Roboto Condensed";
    src: url("../assets/fonts/RobotoCondensed-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "Roboto Condensed";
    src: url("../assets/fonts/RobotoCondensed-Italic-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
}

/*///// VARS \\\\\ */

:root {
    color-scheme: dark;
    --nav-offset: 5rem;
    --text: #cef1ff;
    --text-accent: #ffe990;
    --text-muted: #749daf;
    --text-warning: #ff94a4;
    --text-leader: #27e6c6;
    --text-commander: #ffe168;
    --max-radius: 999px;
    --vw: 6vw;
    --card-surface: #6e92ff0d;
    --card-border: #cdd1ff32;
    --radius: 0.75rem;
}

/*///// UTILS \\\\\ */

.color-accent {
    color: var(--text-accent);
}

.color-muted {
    color: var(--text-muted);
}

.color-warning {
    color: var(--text-warning);
}

.mb-1 {
    margin-bottom: 0rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2.5rem;
}

.mt-3 {
    margin-top: 2.5rem;
}

.mt-4 {
    margin-top: 3.5rem;
}

.fw-black {
    font-weight: 900;
}

/*///// BODY \\\\\ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    color: var(--text);
    font-family: "Roboto Condensed", sans-serif;
    min-height: 100vh;

    margin: 0;
    padding: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background: radial-gradient(circle at center bottom, #014252 0%, #230920 80%);
}

.container {
    width: min(900px, 100%);
    margin-inline: auto;
    padding: 1rem 2rem;
    text-align: center;
}

.info-section {
    margin-top: 4rem;
    padding-block: 2rem;
    background: #00000049;
}

.info-section__inner {
    width: min(100% - 2rem, 60rem);
    margin-inline: auto;
    text-align: center;
    padding: 1.5em;
}

.divider {
    width: 90%;
    height: 4px;
    margin: 1rem auto;

    background: linear-gradient(90deg,
            #87466000 0%,
            #87466080 25%,
            #457eaebf 37.5%,
            #ffd368 50%,
            #457eaebf 62.5%,
            #87466080 75%,
            #87466000 100%);

    filter: drop-shadow(0em 0.2em 0.3em #0c0221a2);
}

.divider-small {
    width: 30%;
}

.divider-teams {
    width: 90%;
    height: 4px;
    margin-block: 0;

    background: linear-gradient(90deg,
            #bbdfff00 0%,
            #bbdfff78 50%,
            #bbdfff00 100%);

    filter: drop-shadow(0em 0.2em 0.3em #0c0221a2);
}

.divider-label {
    display: grid;
    place-items: center;

    width: 90%;
    height: 1.5rem;
    margin: 1rem auto;

    background: linear-gradient(90deg,
            #87466000 0%,
            #87466080 25%,
            #457eaebf 35%,
            #ffd368 50%,
            #457eaebf 65%,
            #87466080 75%,
            #87466000 100%);

    clip-path: polygon(0 40%,
            38% 40%,

            40% 0,
            60% 0,
            62% 40%,

            100% 40%,
            100% 60%,
            62% 60%,

            60% 100%,
            40% 100%,
            38% 60%,
            0 60%);
}

.divider-label span {
    color: #000000cb;
    font-size: 0.82em;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    filter: drop-shadow(0em 1px 0em #fff3df2b);
}

.divider-label__shadow {
    filter: drop-shadow(0em 0.2em 0.3em #0c0221a2);
}

@media (max-width: 700px) {
    .divider-label {
        background: linear-gradient(90deg,
                #87466000 0%,
                #87466080 25%,
                #457eaebf 30%,
                #ffd368 50%,
                #457eaebf 70%,
                #87466080 75%,
                #87466000 100%);

        clip-path: polygon(0 40%,
                30% 40%,

                32% 0,
                68% 0,
                70% 40%,

                100% 40%,
                100% 60%,
                70% 60%,

                68% 100%,
                32% 100%,
                30% 60%,
                0 60%);
    }

    .divider-label span {
        font-size: 0.68em;
    }
}

/*///// NAV \\\\\ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    background: linear-gradient(180deg,
            #200f2f,
            #073145);

    box-shadow:
        inset 0 -2px 0 #000000a5,
        inset 0 -3px 0 #d1e1ff23,
        0em 0.5em 1.2em 0.1em #00000080;
}

.site-nav__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.2rem, 2vw, 0.3rem);

    max-width: 1000px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.site-nav a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9em;
    text-align: center;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text-accent);
    background: #d9f2ff15;
}

/*///// TEXT \\\\\ */

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 900;
    filter: drop-shadow(0em 0.15em 0.15em #0c0221c8);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    max-width: 720px;
    margin: 0 auto 1rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.ip-box {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 1.2rem;
    gap: 0.8em;
    font-size: 1em;
    font-weight: 400;
    border-radius: 8px;
    color: var(--text);
    background: #00000043;
}

/*///// LOGO \\\\\ */

.logo {
    position: relative;
    width: min(260px, 60vw);
    margin: 1rem auto 0.2rem;
}

.logo-bg,
.logo-text {
    display: block;
    width: 100%;
    height: auto;
}

.logo-text {
    position: absolute;
    inset: 0;

    animation: logo-float 5s ease-in-out infinite;
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(-1.2%);
    }

    50% {
        transform: translateY(0.2%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-text {
        animation: none;
    }
}

/*///// TIMER \\\\\ */

.countdown {
    text-align: center;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 26rem;
    margin-inline: auto;
}

.countdown--started #countdown-days {
    display: none;
}

.countdown--started .countdown-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.countdown-unit {
    padding: clamp(0.5rem, 2.5vw, 1rem);
    border: 1.5px solid #94d8ff2c;
    border-radius: 0.75rem;
    background: #00000040;
}

.countdown-number {
    display: block;
    font-size: clamp(1.8rem, 8vw, 2rem);
    font-weight: 900;
    line-height: 1;
}

.countdown--active .countdown-number {
    color: #66ffab;
}

.countdown-label {
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(0.5rem, 2vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.countdown-message {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/*///// BUTTONS \\\\\ */

.btn-discord {
    display: inline-flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem;
    text-decoration: none;
    font-weight: 700;
    color: white;
    background-color: #435bb4;
    border-radius: var(--max-radius);
    padding: 0.9rem 1.8rem;

    box-shadow:
        0 2px 5px #0000008a;

    transition:
        transform .2s,
        box-shadow .2s;
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 15px #0000008a;
}

/*///// CREATOR LIST \\\\\ */

.broadcast {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.creator-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 1200px;
    margin-inline: auto;
}

.creator-card {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.75rem;

    color: var(--text);
    text-align: left;
    text-decoration: none;

    background-color: var(--card-surface);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius);

    box-shadow:
        0 0.4rem 0.6rem #04010f81;

    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.creator-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-accent);
}

.creator-card:focus-visible {
    outline: 2px solid var(--text-accent);
    outline-offset: 3px;
}

.creator-card__image {
    display: block;
    width: 4rem;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #000000;
    border-radius: calc(var(--radius) - 0.2rem);
    background: rgb(0 0 0 / 0.3);

    box-shadow:
        0 0.4rem 0.6rem #04010f81;
}

.creator-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
}

.creator-card__name {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
}

.creator-card__platform {
    display: block;
    height: clamp(0.7rem, 2vw, 0.8rem);
    width: auto;
    object-fit: contain;
}

.creator-list__status {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .creator-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .creator-list {
        grid-template-columns: 1fr;
    }
}

/*///// TEAM LIST \\\\\ */

.team-list {
    display: grid;
    gap: 1.5rem;

    max-width: 1200px;
    margin-inline: auto;
}

.team-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;

    color: var(--text);

    background: radial-gradient(circle at center bottom, #287b9c6b 0%, #11162e7d 80%);
    border: 1.5px solid #87d9ff76;
    border-radius: var(--radius);

    box-shadow:
        0 0.4rem 0.6rem #04010f81;

    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.team-card__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;

    padding: 0.6rem 1.25rem;

    text-align: center;

    background: linear-gradient(180deg,
            #084a5e,
            #362346);

    box-shadow:
        inset 0 -2px 0 #000000a5,
        inset 0 -3px 0 #d1e1ff23,
        0em 0.5em 1.2em 0.1em #00000080;

    border-top: 1px solid #2d416b;
}

.team-card__header:not(:has(.team-card__allies)) {
    padding-block: rem;
}

.team-card__title {
    margin: 0;
    color: var (--text);

    font-size: 1.2rem;
    font-weight: 700;
}

.team-card__allies-title {
    margin: 0 0 0.35rem;

    color: var(--text);

    font-size: 0.95rem;
    font-weight: 700;
}

.team-card__allies-list {
    display: grid;
    gap: 0.2rem;

    margin: 0;
    padding: 0;

    list-style: none;

    color: var(--text-muted);
    font-size: 0.85rem;
}

.team-card__players {
    display: grid;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem 0.5rem;
}

.player-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;

    justify-content: center;
}

.unit-member {
    flex: 0 0 7.8rem;

    min-width: 0;
    text-align: center;
}

.unit-member__link {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0.3rem;

    color: inherit;
    text-decoration: none;

    border: 1.5px solid transparent;
    border-radius: var(--radius);

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.unit-member__link:hover,
.unit-member__link:focus-visible {
    transform: translateY(-2px);

    border-color: var(--text-accent);

    box-shadow:
        0 0.4rem 0.6rem #04010f81;

    outline: none;
}

.unit-member__image {
    display: block;
    width: 5rem;
    aspect-ratio: 1;

    object-fit: cover;

    border-radius: calc(var(--radius) - 0.2rem);
    border: 1px solid #000000;
    background: rgb(0 0 0 / 0.3);

    box-shadow:
        0 0.4rem 0.6rem #04010f81;
}

.unit-member__name {
    margin: 0.35rem 0 0;

    color: var(--text);

    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;

    overflow-wrap: anywhere;
}

.unit-member--leader .unit-member__name {
    color: var(--text-leader);
    font-weight: 700;
}

.unit-member--commander .unit-member__name {
    color: var(--text-commander);
    font-weight: 700;
}

@media (max-width: 600px) {
    .player-group {
        gap: 0.75rem;
    }

    .unit-member {
        flex-basis: 4.5rem;
        flex: 0 0 7rem;
    }

    .unit-member__image {
        width: 100%;
        max-width: 5rem;
    }

    .unit-member__name {
        font-size: 0.8rem;
    }
}