:root{
    --ix-orange:#ff6a00;
    --ix-orange-3:#e85d00;
    --ix-line:rgba(255,255,255,.06);
    --ix-line-2:rgba(255,255,255,.10);
    --ix-muted:#a8acb6;
    --ix-green:#26e21f;
    --ix-display:'Chakra Petch','Inter',sans-serif;
}

/* HEADER */

.ix-header{
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(13,13,18,.9);
    backdrop-filter:blur(18px);
    border-bottom:1px solid var(--ix-line);
}

.ix-header-inner{
    display:flex;
    align-items:center;
    gap:20px;
    min-height:72px;
}

/* LOGO */

.ix-logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    white-space:nowrap;
    flex-shrink:0;
}

.ix-logo-icon{
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:radial-gradient(circle at 30% 30%, #ff933f, #ff6a00 60%, #9c3900);
    box-shadow:0 0 20px rgba(255,106,0,.5), inset 0 -3px 8px rgba(0,0,0,.35);
}

.ix-logo-icon svg{
    width:18px;
    height:18px;
}

.ix-logo-text{
    display:flex;
    gap:4px;
    overflow:hidden;
    max-width:0;
    opacity:0;
    transition:.35s ease;
    font-family:var(--ix-display);
}

.ix-logo:hover .ix-logo-text{
    max-width:220px;
    opacity:1;
}

.ix-logo-text b{
    color:#fff;
    font-weight:500;
}

.ix-logo-text span{
    color:var(--ix-orange);
}

/* NAV */

.ix-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    flex:1;
    min-width:0;
}

.ix-nav a{
    position:relative;
    text-decoration:none;
    color:var(--ix-muted);
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
}

.ix-nav a:hover,
.ix-nav a.active{
    color:#fff;
}

.ix-nav a::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-8px;
    height:2px;
    background:var(--ix-orange);
    transform:scaleX(0);
    transition:.25s;
}

.ix-nav a:hover::after,
.ix-nav a.active::after{
    transform:scaleX(1);
}

/* RIGHT SECTION */

.ix-header-right{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:auto;
    flex-shrink:0;
}

/* PLAYERS */

.ix-players-pill{
    display:flex;
    align-items:center;
    gap:8px;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--ix-line);
    color:#fff;
    font-size:12px;
}

.ix-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--ix-green);
    box-shadow:0 0 10px var(--ix-green);
    animation:pulse 2s infinite;
}

@keyframes pulse{
    50%{
        transform:scale(1.15);
    }
}

/* PERFORMANCE TOGGLE */

.ix-perf-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:999px;
    border:1px solid var(--ix-line);
    background:rgba(255,255,255,.04);
    color:#fff;
    cursor:pointer;
    transition:.2s ease;
}

.ix-perf-toggle svg{
    width:16px;
    height:16px;
}

.ix-perf-toggle:hover{
    border-color:rgba(255,106,0,.4);
    background:rgba(255,106,0,.08);
    box-shadow:0 0 20px rgba(255,106,0,.15);
}

/* STEAM CONNECT BUTTON */

.ix-connect-btn{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border-radius:8px;
    text-decoration:none;
    color:#fff;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    background:linear-gradient(135deg, var(--ix-orange), var(--ix-orange-3));
}

.ix-connect-btn svg{
    width:14px;
    height:14px;
}

/* USER CHIP */

.ix-user-chip{
    display:flex;
    align-items:center;
    gap:10px;
}

.ix-user-chip img{
    width:32px;
    height:32px;
    border-radius:50%;
}

/* MENU BUTTON */

.ix-menu-toggle{
    display:none;
    flex-direction:column;
    gap:5px;
    border:none;
    background:none;
    cursor:pointer;
}

.ix-menu-toggle span{
    width:22px;
    height:2px;
    background:#fff;
    transition:.25s;
}

.ix-menu-toggle.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
}

.ix-menu-toggle.active span:nth-child(2){
    opacity:0;
}

.ix-menu-toggle.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
}

/* MOBILE */

@media (max-width:1100px){

    .ix-header-inner{
        position:relative;
    }

    .ix-nav{
        position:absolute;
        top:100%;
        left:0;
        right:0;
        flex-direction:column;
        align-items:flex-start;
        padding:20px;
        background:#111118;
        opacity:0;
        visibility:hidden;
        transform:translateY(-10px);
        transition:.25s;
        z-index:50;
    }

    .ix-nav.open{
        opacity:1;
        visibility:visible;
        transform:none;
    }

    .ix-nav a{
        width:100%;
        padding:12px 0;
    }

    .ix-players-pill{
        display:none;
    }

    /* Keep performance toggle visible on mobile */
    .ix-perf-toggle{
        display:flex;
    }

    .ix-connect-btn{
        padding:8px 12px;
        font-size:11px;
    }

    .ix-menu-toggle{
        display:flex;
    }

    .ix-header-right{
        margin-left:auto;
        gap:8px;
    }
}

/* VERY SMALL MOBILE */

@media (max-width:500px){

    .ix-connect-btn{
        padding:8px 10px;
        font-size:10px;
        gap:6px;
    }

    .ix-connect-btn svg{
        width:12px;
        height:12px;
    }
}