*{
    box-sizing:border-box;
}

:root{
    color-scheme:dark;

    --bg:#090d15;
    --panel:#111722;
    --panel2:#0e141e;
    --line:#293248;

    --text:#f4f6fc;
    --muted:#8490a8;

    --purple:#896cf6;
    --green:#5bd58d;
}

body{
    margin:0;
    font-family:Inter,Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
}

.login-page{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:20px;
}

.login-card{
    width:min(460px,100%);
    padding:32px;
    border:1px solid var(--line);
    border-radius:20px;
    background:var(--panel);
}

.brand>span,
.dashboard-head>div>span,
.device-card>div>span{
    color:#9d8cf6;
    font-size:10px;
    font-weight:800;
    letter-spacing:.1em;
}

.brand h1{
    margin:12px 0 0;
    font-size:32px;
}

.brand p{
    color:var(--muted);
    line-height:1.6;
}

.login-actions{
    display:grid;
    gap:10px;
    margin:27px 0 18px;
}

.provider{
    min-height:48px;
    display:grid;
    place-items:center;
    border:1px solid var(--line);
    border-radius:12px;
    color:white;
    text-decoration:none;
    font-weight:700;
}

.discord{
    background:#5865f2;
}

.steam{
    background:#171d25;
}

.login-card>small{
    display:block;
    color:var(--muted);
    text-align:center;
}

.topbar{
    height:70px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 max(24px,calc((100% - 1250px)/2));
    border-bottom:1px solid var(--line);
    background:#0c111a;
}

.topbar>div:first-child{
    display:flex;
    gap:5px;
}

.topbar>div:first-child span{
    font-weight:800;
}

.topbar>div:first-child strong{
    color:#9a87ef;
}

.profile{
    display:flex;
    align-items:center;
    gap:10px;
}

.profile img{
    width:34px;
    height:34px;
    border-radius:10px;
}

.profile div{
    display:grid;
}

.profile span{
    margin-top:3px;
    color:var(--muted);
    font-size:8px;
}

.dashboard{
    width:min(1250px,calc(100% - 40px));
    margin:30px auto 70px;
}

.dashboard-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
    margin-bottom:20px;
}

.dashboard-head h1{
    margin:7px 0;
    font-size:30px;
}

.dashboard-head p{
    margin:0;
    color:var(--muted);
}

.connection-status{
    min-width:180px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:13px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--panel);
}

.connection-status i{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#e05b68;
}

.connection-status.online i{
    background:var(--green);
}

.connection-status div{
    display:grid;
}

.connection-status span{
    color:var(--muted);
    font-size:8px;
}

.connection-status strong{
    margin-top:3px;
    font-size:10px;
}

.telemetry-grid{
    display:grid;
    grid-template-columns:2fr repeat(3,1fr);
    gap:12px;
}

.telemetry-grid article,
.details-grid article,
.route-card,
.device-card{
    border:1px solid var(--line);
    border-radius:15px;
    background:var(--panel);
}

.speed-card{
    padding:22px;
}

.speed-card>span,
.metric>span,
.details-grid span,
.route-place span{
    color:var(--muted);
    font-size:8px;
    letter-spacing:.08em;
}

.speed-card>div{
    display:flex;
    align-items:flex-end;
    gap:8px;
    margin-top:10px;
}

.speed-card>div strong{
    font-size:54px;
    line-height:1;
}

.speed-card small{
    color:var(--muted);
}

.speed-card p{
    margin:14px 0 0;
    color:var(--muted);
    font-size:10px;
}

.metric{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:145px;
    padding:19px;
}

.metric>strong{
    font-size:19px;
}

.route-card{
    display:grid;
    grid-template-columns:1fr 2fr 1fr;
    align-items:center;
    margin-top:12px;
    padding:20px;
}

.route-place{
    display:grid;
    gap:6px;
}

.route-place.right{
    text-align:right;
}

.route-line{
    display:flex;
    align-items:center;
}

.route-line span{
    flex:1;
    height:1px;
    background:#3a435a;
}

.route-line i{
    width:9px;
    height:9px;
    border:2px solid var(--purple);
    border-radius:50%;
}

.details-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:12px;
}

.details-grid article{
    padding:17px;
}

.details-grid strong{
    display:block;
    margin-top:8px;
    font-size:11px;
}

.device-card{
    margin-top:22px;
    padding:22px;
}

.device-card h2{
    margin:7px 0;
}

.device-card p{
    margin:0;
    color:var(--muted);
}

button{
    margin-top:17px;
    padding:11px 16px;
    border:0;
    border-radius:10px;
    background:var(--purple);
    color:white;
    cursor:pointer;
    font-weight:700;
}

.token-box{
    margin-top:17px;
    padding:15px;
    border:1px solid #4d4275;
    border-radius:12px;
    background:#171524;
}

.token-box span,
.token-box small{
    display:block;
}

.token-box code{
    display:block;
    margin:9px 0;
    overflow-wrap:anywhere;
    color:#baaafc;
}

.token-box small{
    color:var(--muted);
}

@media(max-width:800px){
    .telemetry-grid,
    .details-grid{
        grid-template-columns:1fr 1fr;
    }

    .route-card{
        grid-template-columns:1fr;
        gap:20px;
    }

    .route-line{
        display:none;
    }

    .route-place.right{
        text-align:left;
    }
}
