:root {
    --storm-purple: #8101ff;
    --deep-blue: #000428;
    --neon-cyan: #00f2fe;
    --victory-gold: #fbe300;

}


*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: hidden; /* keep horizontal clean */
    overflow-y: auto; /* allow vertical scroll */

    font-family: 'Arial Black', sans-serif;

    -ms-overflow-style: none;  /* IE and Edge */
    /*scrollbar-width: none;  !* Firefox *!*/
}
body::-webkit-scrollbar {
  display: none;
}


.fortnite-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at center, var(--storm-purple) 0%, var(--deep-blue) 100%);
    animation: colorShift 14s ease-in-out infinite;
    will-change: filter;
}

@keyframes colorShift {
    0% {
        filter: hue-rotate(0deg) saturate(1);
    }
    40% {
        filter: hue-rotate(18deg) saturate(1.05);
    }
    80% {
        filter: hue-rotate(-8deg) saturate(0.98);
    }
    100% {
        filter: hue-rotate(0deg) saturate(1);
    }
}

.energy-pulse {
    position: fixed;
    inset: 0;
    pointer-events: none;
    filter: blur(28px) contrast(1.05);
}

.energy-pulse.fast {
    filter: blur(36px);
}

.energy-pulse.surge {
    filter: blur(60px) contrast(1.1);
}

/* Matchmaking Knap - Fortnite Style */
.match-btn {
    background: var(--victory-gold);
    color: #000;
    border: none;
    padding: 20px 50px;
    font-size: 1.5rem;
    font-weight: 900;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%); /* Skrå kanter */
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.3s;
    box-shadow: 0 0 15px rgba(251, 227, 0, 0.4);
}

.match-btn:hover {
    transform: scale(1.05) skew(-2deg);
    box-shadow: 0 0 30px rgba(251, 227, 0, 0.7);
}

.ui-container {
    margin-top: 83px;

    min-height: 100vh;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ui-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== Top Navigation ===== */
.top-nav {
    position: fixed;
    top: 0;
    height: 72px;
    width: 100%;
    padding: 0 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 5, 15, 0.75);
    backdrop-filter: blur(10px);
    z-index: 10;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
}

.nav-logo {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 6px; /* space between logo and text */
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00f2fe;
    text-shadow: 0 0 6px #00f2fe;
    letter-spacing: 1px;
    white-space: nowrap; /* keeps text on one line */
    margin: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    height:100%;
    /*gap: 28px;*/
    align-items: stretch;
}
.nav-link {
    display: flex;
    height: 100%;
    align-items: center;
    margin-right: 28px;
}
.nav-link a {
    text-decoration: none;
    color: #ffffffcc;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
    color: #ff0187;
    text-shadow: 0 0 8px #ff0187;
}

.nav-user {
    margin-right: 0;

}
.nav-user a {
    display: flex;
    text-decoration: none;
    align-items: center;
    height: 100%;
    padding: 0 40px;
    background-color: #ffff00;
    color: #000000;
    margin-right: 0;

}

.nav-user a:hover {
    color: #000;
    text-shadow: 0 0 1px #000;
}

/* Burger button */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 22px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: #e5e7eb;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 78%;
        right: 0;
        width: 100%;
        height: auto;
        background: #020617;
        flex-direction: column;
        gap: 0;
        display: none;
    }

    .nav-links li {
        border-top: 1px solid #1e293b;
    }

    .nav-links a {
        display: block;
        padding: 16px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }
}


.site-footer {
    position: relative;
    width: 100%;
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #ffffff88;
    background: rgba(5, 5, 15, 0.65);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 1, 135, 0.2);
}


.about-box {
    max-width: 720px;
    padding: 32px 36px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.6);
}

/* About text spacing */
.about-box h1 {
    margin-bottom: 20px;
}

.about-box p {
    margin-bottom: 16px;
    color: #d1d5db;
}

/* Operator text */
.about-box .operator {
    margin-top: 24px;
    font-size: 0.95rem;
    opacity: 0.8;
}

#top-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(-90deg, #ffffff, #0ea5e9);
    z-index: 9999;
    transition: width 0.25s ease-out, opacity 0.2s;
    opacity: 0;
    box-shadow: 0 0  15px rgba(14, 165, 233, 1);
    border-top: solid 1px black;
}