body {
    margin:0;
    background-color: #080808;
    font-family: 'Inter',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
    overflow-x: hidden;
}

html {
    scrollbar-width: thin;
}

:root {
    --header-height: 64px;
    --pink: rgb(212, 0, 212);
    --purp: rgb(122, 0, 122);
}

* {
    box-sizing: border-box;
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
}

button {
    background-color: #0b0b0b;
    color: #ccc;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: ease-in-out 0.1s;
    font-weight: 600;
    font-family: 'Inter',ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";
}   
    button:hover {
        background-color: #111;
    }
    button:active {
        background-color: #222;
    }

#codearea {
    background-color: #121212;
    border-radius: 4px;
    color: #ccc;
    border-color: #363636;
    scrollbar-width: none;

    height: 100%;
    width: 100%;

    white-space: pre;
    overflow-wrap: normal;
    overflow-x: scroll;
}

#lb-filter {
    width: 100%;
    background-color: #080808;
    color: #ccc;
    border: 1px solid #222;
}

.carbox {
    height: 15%; width: 95%; border: 2px solid #363636; border-radius: 4px; background-color: #121212;
    padding: 12px;
    margin: 12px
}

.carbox-name {
    display: flex;
    flex-direction: row;
    align-items: center;
    vertical-align: middle
} .carbox-name button {
    height: min-content;
    margin-left: 6px;
}

.carbox input[type=text] {
    width: 90%;
}

.splines-box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 95vw;
}

.spline-container {
    min-height: 25vh;
    
    min-width: 20vw;
    width: 20vw;
    max-width: max-content;
    
    margin: 8px;

    border-radius: 4px;
    background-color: #121212;
    padding: 0;
    overflow: hidden;

} .spline-container img {
    object-fit: cover;
    width: 20vw;
    height: 20vh;
    cursor: pointer;
}

.spline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    background-color: transparent;
    backdrop-filter: blur(4px) brightness(0.8);
    width: 100vw;
    height: 100vh;

    opacity: 0;
    display: flex;
    pointer-events: none;

    align-items: center;
    justify-content: center;
    z-index: 100;

    cursor: pointer;

    transition: 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);
} .spline-overlay[visible] {
    opacity: 1;
    pointer-events: auto;
}

.spline-overlay-center {
    width: 90vw;
    height: 80vh;
    background-color: #121212;
    box-shadow: 0px 0px 50px 15px #0b0b0b;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    z-index: 999;
    cursor: default;

} .spline-overlay-center img {
    object-fit: cover;
    width: 65vw;
    height: 100%;
} .spline-overlay-center[visible] {
    pointer-events: auto;
}

.spline-overlay-text {
    padding: 24px;
    width: 90%;
    height: 100%;
} .spline-overlay-text p {
    height: 82.5%;
}

.spline-overlay-buttons {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.spline-container-work {
    padding: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;

} .spline-container-work button {
    width: min-content;
} .spline-container-work h3 {
    max-width: max-content;
    word-wrap: break-word;
    width: 30vw;
}

.t {}

.thumbbox-container {
    display: flex;
    flex-direction: column;
}

.data-container {
    display: flex;
    flex-wrap: wrap;
}

.disabled-button {
    opacity: 0.5;
    cursor: not-allowed;
}

.thumbbox {
    display: flex; align-items: flex-start; flex-direction: column; width: 50%;
}

input[type='range'] {
    width: 90%;
    background-color: black;
}

input[type='checkbox'] {
    color: #ccc;
}

.page {
    width: 99.5vw;
}

.page-ext {
    padding: 2%
}

.yap-span {
    display: inline-block;
}

.bigbox {
    display: flex;
    flex-direction: row;
    flex-basis: 0;
    min-width: 0;
    max-width: 96.5vw;
}

.minibox {
    border: 1px solid #111;
    border-radius: 16px;
    margin: 12px;
    padding: 12px;
    width: 0;
    flex: 1;
}

.download-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background-color: #0d0d0d;
    border: 1px solid #1c1c1c;
    transition: border-color 120ms ease, transform 120ms ease, background-color 120ms ease;
}
.download-card:hover {
    border-color: rgb(212, 0, 212);
    background-color: #131313;
    transform: translateY(-2px);
}

/* === Leaderboard pagination === */
.lb-pager {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    margin: 24px 0;
}
.lb-pager button {
    background-color: #0d0d0d; border: 1px solid #1c1c1c; border-radius: 6px;
    color: #ccc; padding: 6px 12px; cursor: pointer; font-size: 11pt;
    transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}
.lb-pager button:hover:not(:disabled) { border-color: rgb(212,0,212); color: #fff; }
.lb-pager button.current { background-color: rgb(212,0,212); border-color: rgb(212,0,212); color: #fff; font-weight: bold; }
.lb-pager button:disabled { opacity: 0.4; cursor: default; }

/* === Top-3 enlarged ===
   Video thumb height stays ≤ avatar height so the row height is determined
   by text/avatar, not the (optional) video — that keeps #1 visually larger
   than #2 even when #2 has a video and #1 doesn't. */
.lb-video-thumb { width: 80px; height: 45px; }

.lb-top1 td { font-size: 200%; padding: 12px 8px; }
.lb-top1 .lb-avatar { width: 64px; height: 64px; }
.lb-top1 .lb-video-thumb { height: 56px; width: auto; aspect-ratio: 16/9; }

.lb-top2 td { font-size: 175%; padding: 10px 8px; }
.lb-top2 .lb-avatar { width: 56px; height: 56px; }
.lb-top2 .lb-video-thumb { height: 48px; width: auto; aspect-ratio: 16/9; }

.lb-top3 td { font-size: 150%; padding: 8px 8px; }
.lb-top3 .lb-avatar { width: 48px; height: 48px; }
.lb-top3 .lb-video-thumb { height: 40px; width: auto; aspect-ratio: 16/9; }

/* Tier and LV badges scale together */
.lb-top1 .lb-tier, .lb-top1 .lb-lvl { font-size: 60%; }
.lb-top2 .lb-tier, .lb-top2 .lb-lvl { font-size: 60%; }
.lb-top3 .lb-tier, .lb-top3 .lb-lvl { font-size: 65%; }

/* === Leaderboard avatar === */
.td-player { display: flex !important; align-items: center; gap: 10px; }
.lb-avatar {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
    background-color: #2a2a2a; flex: 0 0 auto;
}
.lb-avatar-empty { background: linear-gradient(135deg, rgb(212, 0, 212), #4a004a); display: inline-block; }
.lb-name { color: #fff; text-decoration: none; font-weight: bold; }
.lb-name:hover { color: rgb(212, 0, 212); }
.lb-tier {
    display: inline-block; margin-left: 10px;
    color: rgb(212, 0, 212); font-weight: bold; font-size: 9.5pt;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.lb-lvl {
    display: inline-block; margin-left: 8px;
    color: #aaa; font-size: 9.5pt;
    background-color: #161616; border: 1px solid #262626;
    padding: 1px 6px; border-radius: 4px;
    font-variant-numeric: tabular-nums;
}
.lb-video-thumb {
    position: relative; display: inline-block; width: 100px; height: 56px;
    border-radius: 4px; overflow: hidden;
}
.lb-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-video-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14pt; text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    background-color: rgba(0,0,0,0.25);
}
.lb-video-thumb:hover .lb-video-play { background-color: rgba(212,0,212,0.4); }

/* YouTube popup modal */
.yt-modal {
    position: fixed; inset: 0; background-color: rgba(0,0,0,0.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; padding: 24px;
}
.yt-modal-inner {
    width: 100%; max-width: 960px; aspect-ratio: 16/9;
    background-color: #000; border-radius: 8px; overflow: hidden;
    box-shadow: 0 12px 60px rgba(0,0,0,0.8);
}
.yt-modal-inner iframe { width: 100%; height: 100%; border: 0; }

/* Dashboard video upload button */
.dash-video-btn {
    background-color: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px;
    color: #ccc; padding: 4px 10px; cursor: pointer; font-size: 9.5pt;
    margin-left: 4px; transition: border-color 120ms ease, color 120ms ease;
}
.dash-video-btn:hover { border-color: rgb(212, 0, 212); color: #fff; }

/* === Dashboard === */
.dash-page { max-width: 1000px; margin: 0 auto; padding: 40px 24px 56px; color: #ddd; }
.dash-loading { text-align: center; color: #888; padding: 48px 0; }
.dash-header {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 32px; padding-bottom: 22px; border-bottom: 1px solid #1c1c1c;
}
.dash-avatar {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    background-color: #2a2a2a;
}
.dash-avatar-empty { background: linear-gradient(135deg, rgb(212, 0, 212), #4a004a); }
.dash-header h1 { margin: 0 0 4px; font-size: 26pt; color: #fff; }
.dash-tier { margin: 0; color: rgb(212, 0, 212); font-weight: 600; font-size: 12pt; }
.dash-rank { margin: 4px 0 0; color: #888; font-size: 11pt; }

.dash-grid { display: grid; gap: 18px; }
.dash-card {
    background-color: #0d0d0d; border: 1px solid #1c1c1c; border-radius: 12px;
    padding: 22px 26px;
}
.dash-card h1 { margin: 0 0 8px; color: #fff; }
.dash-card h2 { margin: 0 0 12px; color: #fff; font-size: 14pt; }
.dash-card p { color: #bbb; margin: 0 0 14px; }

.dash-apikey { display: flex; gap: 8px; }
.dash-apikey input {
    flex: 1; background-color: #161616; border: 1px solid #262626;
    border-radius: 6px; padding: 9px 12px; color: rgb(212, 0, 212);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11pt;
    /* Visually mask the value (like a password input) but keep copy/paste working. */
    -webkit-text-security: disc;
    text-security: disc;
    letter-spacing: 2px;
}
.dash-apikey button {
    background-color: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 6px;
    color: #ddd; padding: 9px 18px; cursor: pointer; font-size: 11pt;
    transition: border-color 120ms ease, color 120ms ease;
}
.dash-apikey button:hover { border-color: rgb(212, 0, 212); color: #fff; }

.dash-runs { width: 100%; border-collapse: collapse; }
.dash-runs th, .dash-runs td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #1c1c1c; font-size: 10.5pt; }
.dash-runs th { color: #888; font-weight: normal; text-transform: uppercase; letter-spacing: 0.5px; font-size: 9pt; }
.dash-sort { cursor: pointer; user-select: none; transition: color 120ms ease; }
.dash-sort:hover { color: #ddd; }
.dash-sort::after { content: " ⇅"; opacity: 0.4; font-size: 8pt; }
.dash-sort.dash-sort-active { color: rgb(212, 0, 212); }
.dash-sort.dash-sort-active.dash-sort-asc::after { content: " ↑"; opacity: 1; }
.dash-sort.dash-sort-active.dash-sort-desc::after { content: " ↓"; opacity: 1; }
.dash-runs td.dash-num { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.dash-badge {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    background-color: #161616; border: 1px solid #262626; color: #888; font-size: 9pt;
}
.dash-badge-ok {
    color: #4ade80; background-color: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
}

/* Career card */
.career-card { padding: 24px 28px; }
.career-head { display: flex; align-items: center; gap: 22px; }
.career-badge-wrap {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.career-rank-badge {
    width: 88px; height: 88px; border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, var(--lvl, #888), rgba(0,0,0,0.6) 70%),
        linear-gradient(135deg, #1c1c1c, #0a0a0a);
    border: 3px solid var(--lvl, #888);
    box-shadow: 0 0 24px var(--lvl, transparent), inset 0 0 18px rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
}
.career-level-num {
    color: #fff; font-weight: 900;
    font-size: 28pt; line-height: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.85);
    font-variant-numeric: tabular-nums;
}
.career-level-name {
    color: var(--lvl, #888); font-weight: bold; font-size: 10pt;
    text-transform: uppercase; letter-spacing: 1.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.career-info { flex: 1; min-width: 0; }
.career-rank-name { color: #fff; font-size: 18pt; font-weight: bold; margin-bottom: 4px; }
.career-progress-meta {
    display: flex; justify-content: space-between; gap: 12px;
    color: #aaa; font-size: 10.5pt; margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.career-progress-meta .career-next { color: #777; }
.career-bar {
    height: 8px; background-color: #161616; border: 1px solid #1c1c1c;
    border-radius: 999px; overflow: hidden;
}
.career-bar-fill {
    height: 100%; background: linear-gradient(90deg, rgb(212,0,212), #ff6bf0);
    border-radius: 999px; transition: width 400ms ease;
}

/* Stats grid */
.dash-stats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; margin: 18px 0;
}
.dash-stat {
    background-color: #0d0d0d; border: 1px solid #1c1c1c; border-radius: 10px;
    padding: 14px 16px;
}
.dash-stat-val {
    color: #fff; font-size: 16pt; font-weight: bold;
    font-variant-numeric: tabular-nums; line-height: 1;
}
.dash-stat-label {
    color: #888; font-size: 9.5pt; text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: 6px;
}

/* Avatar editing */
.dash-avatar-wrap {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 120ms ease;
}
.dash-avatar-wrap:hover { transform: scale(1.03); }
.dash-avatar-wrap .dash-avatar { display: block; }
.dash-avatar-edit-hint {
    position: absolute; inset: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background-color: rgba(0,0,0,0.5);
    color: #fff; font-size: 10pt; font-weight: bold; text-transform: uppercase;
    opacity: 0; transition: opacity 120ms ease;
}
.dash-avatar-wrap:hover .dash-avatar-edit-hint { opacity: 1; }

/* Name editing */
.dash-name-row { display: flex; align-items: center; gap: 12px; }
.dash-name-rank {
    color: #888;
    font-size: 18pt;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}
.dash-name-row h1 { cursor: pointer; }
.dash-name-edit {
    background: none; border: 1px solid #2a2a2a; border-radius: 6px;
    color: #888; padding: 4px 9px; cursor: pointer; font-size: 11pt;
    transition: border-color 120ms ease, color 120ms ease;
}
.dash-name-edit:hover { border-color: rgb(212,0,212); color: #fff; }
#dash-name-input {
    background: #161616; border: 1px solid rgb(212,0,212); border-radius: 6px;
    padding: 4px 10px; color: #fff; font-size: 26pt; font-weight: bold;
    width: 100%; max-width: 400px; outline: none; font-family: inherit;
}
.dash-name-error {
    color: #f87171; font-size: 10pt; margin: -16px 0 16px; padding: 8px 12px;
    background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 6px;
}

/* Avatar picker modal */
.avatar-picker {
    position: fixed; inset: 0; background-color: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; padding: 20px;
}
.avatar-picker[hidden] { display: none; }
.avatar-picker-card {
    background-color: #0d0d0d; border: 1px solid #1c1c1c; border-radius: 14px;
    padding: 22px 26px; max-width: 540px; width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.avatar-picker-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.avatar-picker-head h3 { margin: 0; color: #fff; }
.avatar-picker-close {
    background: none; border: none; color: #888; font-size: 24pt; line-height: 1;
    cursor: pointer; padding: 0 6px;
}
.avatar-picker-close:hover { color: #fff; }
.avatar-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px;
}
.avatar-pick {
    background: none; border: 2px solid transparent; border-radius: 50%;
    padding: 0; cursor: pointer; aspect-ratio: 1/1; overflow: hidden;
    transition: border-color 120ms ease, transform 120ms ease;
    position: relative;
}
.avatar-pick:hover { transform: scale(1.05); border-color: rgba(212,0,212,0.5); }
.avatar-pick.is-current { border-color: rgb(212,0,212); box-shadow: 0 0 12px rgba(212,0,212,0.5); }
.avatar-pick img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar-pick-empty {
    width: 100%; height: 100%; border-radius: 50%;
    background: linear-gradient(135deg, rgb(212, 0, 212), #4a004a);
}
.avatar-pick.is-locked {
    cursor: not-allowed;
    opacity: 0.45;
    filter: grayscale(0.5);
}
.avatar-pick.is-locked:hover { transform: none; border-color: transparent; }
.avatar-lock {
    position: absolute; right: 4px; bottom: 4px;
    background-color: rgba(0,0,0,0.7); color: #fff;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11pt;
}

/* === Servers === */
.servers-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}
.servers-header {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid #1c1c1c;
}
.servers-header h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 38px);
    color: #fff;
}
.servers-header p {
    color: #bbb;
    line-height: 1.55;
    margin: 0 0 10px;
    max-width: 850px;
}
.server-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.server-card {
    background-color: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: border-color 140ms ease, transform 140ms ease;
}
.server-card:hover {
    border-color: rgba(212, 0, 212, 0.5);
}
.server-card-body {
    flex: 1;
    min-width: 0;
}
.server-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.server-card h2 {
    margin: 0;
    color: #fff;
    font-size: 16pt;
}
.server-status {
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 999px;
}
.server-status-pending {
    color: #888;
    background-color: #161616;
    border: 1px solid #262626;
}
.server-status-online {
    color: #4ade80;
    background-color: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.server-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}
.server-meta {
    color: #888;
    font-size: 10pt;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.server-players { color: #fff; font-weight: bold; }
.server-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.server-link-pill {
    display: inline-block;
    padding: 5px 11px;
    background-color: #161616;
    border: 1px solid #262626;
    border-radius: 999px;
    color: #ccc;
    font-size: 10pt;
    text-decoration: none;
    transition: border-color 120ms ease, color 120ms ease;
}
.server-link-pill:hover {
    border-color: rgb(212, 0, 212);
    color: #fff;
}
.server-join {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
}
@media (max-width: 700px) {
    .server-card { flex-direction: column; align-items: stretch; }
    .server-join { width: 100%; }
}

/* === Download rate-limit banner === */
#dl-limit-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 80px);
    background-color: #b91c1c;
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 11pt;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    opacity: 0;
    transition: transform 200ms ease, opacity 200ms ease;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}
#dl-limit-banner.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* === Auth widget (bottom right) === */
.auth-widget {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    color: #ddd;
    font-size: 11pt;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    user-select: none;
    max-width: 320px;
}
.auth-widget.logged-in { border-color: rgb(212, 0, 212); }
.auth-widget.logged-out {
    padding: 0;
}
.auth-widget .auth-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: #fff;
    background-color: rgb(212, 0, 212);
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 120ms ease;
}
.auth-widget .auth-login:hover { background-color: rgb(170, 0, 170); }
.auth-widget .auth-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #2a2a2a;
    display: inline-block;
}
.auth-widget .auth-avatar-empty {
    background: linear-gradient(135deg, rgb(212, 0, 212), #4a004a);
}
.auth-widget .auth-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.auth-widget .auth-name {
    color: #fff;
    font-weight: bold;
    font-size: 10.5pt;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}
.auth-widget .auth-tier {
    color: #888;
    font-size: 9pt;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}
.auth-widget .auth-logout {
    color: #888;
    text-decoration: none;
    padding: 0 8px;
    font-size: 18pt;
    line-height: 1;
    transition: color 120ms ease;
}
.auth-widget .auth-logout:hover { color: #fff; }

@media (max-width: 520px) {
    .auth-widget .auth-info { display: none; }
}

/* === Guide === */
.guide-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}
.guide-header {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid #1c1c1c;
}
.guide-header h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    color: #fff;
}
.guide-header p {
    margin: 0;
    color: #aaa;
    line-height: 1.55;
    max-width: 720px;
}
.guide-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.guide-card {
    display: block;
    background-color: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 20px 22px 18px;
    color: inherit;
    text-decoration: none;
    transition: border-color 140ms ease, transform 140ms ease, background-color 140ms ease;
}
.guide-card:hover {
    border-color: rgba(212, 0, 212, 0.7);
    background-color: #131013;
    transform: translateY(-2px);
}
.guide-card h3 {
    margin: 0 0 8px;
    font-size: 14pt;
    color: #f0f0f0;
}
.guide-card p {
    margin: 0;
    color: #aaa;
    font-size: 11pt;
    line-height: 1.5;
}
.guide-tips {
    margin-top: 40px;
    background-color: #0a0a0a;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 20px 24px;
    color: #cfcfcf;
}
.guide-tips h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14pt;
}
.guide-tips ul {
    margin: 0;
    padding-left: 22px;
    line-height: 1.6;
}

.guide-detail {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 24px 56px;
    color: #ddd;
    line-height: 1.65;
}
.back-button {
    display: inline-block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 18px;
    font-size: 11pt;
    transition: color 120ms ease;
}
.back-button:hover { color: rgb(212, 0, 212); }
.guide-article h1 {
    margin: 8px 0 18px;
    color: #fff;
    font-size: clamp(26px, 3.5vw, 34px);
}
.guide-article h2 {
    margin: 28px 0 12px;
    color: #fff;
    font-size: 18pt;
    padding-bottom: 6px;
    border-bottom: 1px solid #1c1c1c;
}
.guide-article h3 {
    margin: 20px 0 8px;
    color: #f0f0f0;
    font-size: 13pt;
}
.guide-article .lead {
    color: #ddd;
    font-size: 12pt;
}
.guide-article .breadcrumb {
    color: #777;
    font-size: 10pt;
    margin: 0 0 8px;
}
.guide-article .breadcrumb a { color: rgb(212, 0, 212); text-decoration: none; }
.guide-article p { margin: 0 0 12px; color: #cfcfcf; font-size: 11pt; }
.guide-article ul, .guide-article ol { padding-left: 22px; color: #cfcfcf; }
.guide-article li { margin: 4px 0; font-size: 11pt; }
.guide-article strong { color: #fff; }
.guide-article em { color: #ddd; }
.guide-article code {
    background-color: #161616;
    border: 1px solid #262626;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10.5pt;
    color: rgb(212, 0, 212);
}
.guide-article .option {
    background-color: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 14px 0;
}

/* === Subscriptions === */
.subs-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    text-align: center;
}
.subs-counter-row {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    background-color: rgba(15,15,15,0.7);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 28px;
    color: #ddd;
    font-size: 11pt;
    flex-wrap: wrap;
    justify-content: center;
}
.subs-counter {
    color: rgb(212, 0, 212);
    font-weight: bold;
    font-size: 14pt;
    font-variant-numeric: tabular-nums;
}
.subs-counter-label { color: #aaa; }
.subs-title {
    margin: 0 auto 14px;
    font-size: clamp(28px, 4vw, 42px);
    color: #fff;
    line-height: 1.15;
    max-width: 800px;
}
.subs-sub {
    margin: 0 auto 48px;
    color: #aaa;
    font-size: 13pt;
    max-width: 720px;
    line-height: 1.5;
}

.subs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: left;
    margin-bottom: 32px;
}
.subs-tier {
    position: relative;
    background-color: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: 14px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.subs-tier:hover {
    border-color: rgba(212, 0, 212, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.subs-tier-popular {
    border-color: rgb(212, 0, 212);
    background:
        radial-gradient(circle at top right, rgba(212, 0, 212, 0.08), transparent 60%),
        linear-gradient(180deg, #110a11 0%, #0a0a0a 100%);
    box-shadow: 0 8px 32px rgba(212, 0, 212, 0.18);
}
.subs-current-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2a2a2a;
    color: #bbb;
    font-size: 9pt;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid #3a3a3a;
}
.subs-tier-current {
    border-color: #3a3a3a;
}
body.is-logged-in .subs-current-badge { display: none; }

.subs-popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(212, 0, 212);
    color: #fff;
    font-size: 9pt;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.subs-tier-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 9pt;
    color: #888;
    margin-bottom: 4px;
}
.subs-tier-name {
    font-size: 16pt;
    font-weight: bold;
    color: #f0f0f0;
    line-height: 1.2;
    min-height: 52px;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-end;
}
.subs-tier-desc {
    color: #888;
    font-size: 10.5pt;
    line-height: 1.4;
    min-height: 32px;
    margin-bottom: 14px;
}
.subs-tier-price {
    margin-bottom: 18px;
    color: #fff;
}
.subs-price {
    font-size: 28pt;
    font-weight: bold;
}
.subs-period {
    color: #888;
    font-size: 11pt;
    margin-left: 4px;
}
.subs-cta {
    display: block;
    background-color: rgb(212, 0, 212);
    color: #fff;
    text-align: center;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 22px;
    transition: background-color 120ms ease;
}
.subs-cta:hover { background-color: rgb(170, 0, 170); }
.subs-cta-secondary {
    background-color: transparent;
    border: 1px solid #2a2a2a;
    color: #ddd;
}
.subs-cta-secondary:hover {
    background-color: #131013;
    border-color: rgb(212, 0, 212);
    color: #fff;
}
.subs-features {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #cfcfcf;
    font-size: 11pt;
    line-height: 1.6;
}
.subs-features li {
    padding: 4px 0 4px 22px;
    position: relative;
}
.subs-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(212, 0, 212);
    font-weight: bold;
}
.subs-foot {
    color: #777;
    font-size: 10pt;
    margin: 32px auto 0;
    max-width: 600px;
}

@media (max-width: 1000px) {
    .subs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .subs-grid { grid-template-columns: 1fr; }
}

/* === News === */
.news-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}
.news-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #1c1c1c;
}
.news-header h1 {
    margin: 0 0 6px;
    font-size: 32pt;
    color: #fff;
}
.news-header p {
    margin: 0;
    color: #888;
}
.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.news-card {
    display: flex;
    gap: 18px;
    background-color: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
    transition: border-color 140ms ease, transform 140ms ease, background-color 140ms ease;
}
.news-card:hover {
    border-color: rgba(212, 0, 212, 0.7);
    background-color: #131013;
    transform: translateY(-2px);
}
.news-card-img {
    flex: 0 0 220px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.news-card-meta {
    color: #777;
    font-size: 10pt;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-card-title {
    margin: 0 0 8px;
    font-size: 14pt;
    color: #f0f0f0;
    line-height: 1.3;
}
.news-card-preview {
    margin: 0;
    color: #aaa;
    font-size: 11pt;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    overflow: hidden;
}
.news-lock {
    color: #888;
    font-size: 11pt;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 28px 0;
    flex-wrap: wrap;
}
.news-pagination .page-num,
.news-pagination .page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    background-color: #0d0d0d;
    color: #ccc;
    text-decoration: none;
    font-size: 11pt;
    transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}
.news-pagination .page-num:hover,
.news-pagination .page-btn:hover {
    border-color: rgb(212, 0, 212);
    color: #fff;
}
.news-pagination .page-num.current {
    background-color: rgb(212, 0, 212);
    border-color: rgb(212, 0, 212);
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.news-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    color: #ddd;
    line-height: 1.6;
}
.news-detail h1 {
    margin: 8px 0 24px;
    font-size: clamp(28px, 4vw, 38px);
    color: #fff;
}
.news-detail-meta {
    color: #777;
    font-size: 11pt;
    margin-top: 16px;
}
.news-detail-img {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    margin: 1em 0 1.5em;
    display: block;
}
.news-content {
    color: #cfcfcf;
    font-size: 12pt;
}
.news-content p {
    margin: 0 0 14px;
}
.news-content a {
    color: rgb(212, 0, 212);
}
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}
.news-content ul, .news-content ol {
    padding-left: 22px;
}

@media (max-width: 600px) {
    .news-card { flex-direction: column; }
    .news-card-img { flex: none; width: 100%; }
}

/* === 2REAL App page === */
.app-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    color: #ddd;
    line-height: 1.55;
}
.app-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin: 16px 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #1c1c1c;
    flex-wrap: wrap;
}
.app-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    color: #fff;
}
.app-sub {
    margin: 4px 0 0;
    color: rgb(212, 0, 212);
    font-size: 14pt;
    font-weight: 600;
}
.app-meta {
    margin: 8px 0 0;
    color: #777;
    font-size: 11pt;
}
.app-intro {
    color: #bbb;
    font-size: 12pt;
    margin: 0 0 36px;
}
.changelog {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.changelog-entry {
    background-color: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 22px 26px 18px;
}
.changelog-entry h2 {
    margin: 0 0 12px;
    font-size: 16pt;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.changelog-tag {
    display: inline-block;
    background-color: rgba(212, 0, 212, 0.15);
    color: rgb(212, 0, 212);
    border: 1px solid rgba(212, 0, 212, 0.4);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 10pt;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.changelog-entry ul {
    margin: 0;
    padding-left: 22px;
    color: #cfcfcf;
}
.changelog-entry li {
    margin: 4px 0;
    font-size: 11pt;
}
.app-outro {
    margin-top: 36px;
    color: #aaa;
    font-style: italic;
}

.app-bigtitle {
    margin: 16px 0 4px;
    font-size: clamp(56px, 8vw, 84px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    color: #fff;
}
.app-welcome-title {
    margin: 24px 0 16px;
    font-size: clamp(28px, 4vw, 42px);
    color: #fff;
    line-height: 1.15;
}
.app-lead {
    color: #ddd;
    font-size: 14pt;
    margin: 0 0 28px;
    line-height: 1.5;
}
.app-page p {
    color: #cfcfcf;
    font-size: 12pt;
    margin: 0 0 18px;
}
.app-cta-block {
    margin: 36px 0 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}
.app-cta-secondary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: #ddd;
    border: 1px solid #2a2a2a;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 11pt;
    text-decoration: none;
    transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}
.secondary-button:hover {
    border-color: rgb(212, 0, 212);
    color: #fff;
    background-color: #131013;
}

/* === Install page bottom downloads === */
.install-divider {
    border: 0;
    border-top: 1px solid #1c1c1c;
    margin: 48px 2.5% 32px;
}
.install-downloads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 2.5% 48px;
    margin-left: 2vw;
    max-width: 95vw;
}
@media (max-width: 720px) {
    .install-downloads { grid-template-columns: 1fr; }
}

/* === Downloads page === */
.downloads-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 64px;
}
.downloads-header {
    text-align: center;
    margin-bottom: 48px;
}
.downloads-header h1 {
    margin: 0 0 8px;
    font-size: 36pt;
    letter-spacing: 0.5px;
}
.downloads-header p {
    margin: 0;
    color: #888;
    font-size: 13pt;
}

.dl-section {
    margin-bottom: 36px;
}
.dl-section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10pt;
    color: #666;
    margin: 0 0 14px 4px;
    border-left: 2px solid rgb(212, 0, 212);
    padding-left: 10px;
}

.dl-row {
    display: grid;
    gap: 20px;
}
.dl-row-hero {
    grid-template-columns: repeat(2, 1fr);
}
.dl-row-mods {
    grid-template-columns: repeat(3, 1fr);
}

.dl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 28px 24px;
    border-radius: 14px;
    background-color: #0d0d0d;
    border: 1px solid #1c1c1c;
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
    min-height: 140px;
    overflow: hidden;
}
.dl-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 0, 212, 0.05), transparent 55%);
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}
.dl-card:hover {
    border-color: rgba(212, 0, 212, 0.7);
    background-color: #131013;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.dl-card:hover::before { opacity: 1; }

.dl-card h2,
.dl-card h3 {
    margin: 0 0 8px;
    color: #f0f0f0;
}
.dl-card p {
    margin: 0;
    color: #aaa;
    font-size: 11pt;
    line-height: 1.45;
}
.dl-cta {
    display: inline-block;
    margin-top: 18px;
    color: rgb(212, 0, 212);
    font-weight: bold;
    font-size: 11pt;
    letter-spacing: 0.3px;
}
.dl-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    background-color: #161616;
    border: 1px solid #262626;
    padding: 3px 8px;
    border-radius: 999px;
}

/* Hero variant: bigger, accented */
.dl-card-hero {
    min-height: 200px;
    padding: 36px 32px 28px;
    background:
        radial-gradient(circle at top right, rgba(212, 0, 212, 0.08), transparent 60%),
        linear-gradient(180deg, #110a11 0%, #0a0a0a 100%);
    border-color: #2a1a2a;
}
.dl-card-hero h2 {
    font-size: 26pt;
    letter-spacing: 0.5px;
}
.dl-card-hero p {
    font-size: 12pt;
    max-width: 90%;
}
.dl-card-hero:hover {
    border-color: rgb(212, 0, 212);
    box-shadow: 0 10px 32px rgba(212, 0, 212, 0.15);
}

@media (max-width: 720px) {
    .dl-row-hero,
    .dl-row-mods {
        grid-template-columns: 1fr;
    }
    .downloads-page {
        padding: 32px 16px 48px;
    }
}

.mods-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    max-width: 95vw;
    flex-wrap: wrap;
}
.mod-search-wrap {
    position: relative;
    flex: 0 0 auto;
}
.mod-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
#mod-search {
    background-color: #0d0d0d;
    color: #ddd;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    padding: 8px 12px 8px 34px;
    font-size: 12pt;
    width: 240px;
    outline: none;
    transition: border-color 120ms ease;
    font-family: inherit;
}
#mod-search:focus {
    border-color: rgb(212, 0, 212);
}
#mod-search::placeholder {
    color: #666;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
    max-width: 95vw;
}
.mod-card {
    display: block;
    color: inherit;
    text-decoration: none;
    background-color: #0d0d0d;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 120ms ease, transform 120ms ease;
}
.mod-card:hover {
    border-color: rgb(212, 0, 212);
    transform: translateY(-2px);
}
.mod-card-locked {
    position: relative;
    opacity: 0.45;
    filter: grayscale(0.4);
    transition: opacity 140ms ease, filter 140ms ease;
}
.mod-card-locked:hover {
    opacity: 0.95;
    filter: none;
}
.mod-card-locked[data-tier-tooltip]::after {
    content: attr(data-tier-tooltip);
    position: absolute;
    left: 12px; right: 12px; top: 8px;
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid rgb(212, 0, 212);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10pt;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
    z-index: 2;
}
.mod-card-locked:hover[data-tier-tooltip]::after {
    opacity: 1;
}
.mod-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #000;
}
.mod-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mod-card-title {
    padding: 12px 14px;
    font-weight: bold;
    font-size: 14pt;
    color: #ddd;
}

.mod-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 1.5em 0;
    max-width: 1100px;
}
.mod-gallery img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #1c1c1c;
    display: block;
}

.download-button {
    display: inline-block;
    background-color: rgb(212, 0, 212);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14pt;
    text-decoration: none;
    transition: background-color 120ms ease, transform 120ms ease;
}
.download-button:hover {
    background-color: rgb(170, 0, 170);
    transform: translateY(-1px);
}

.mainvideo {
    width: 100%; padding: 0;
    min-height: 90vh;
    object-fit: cover;
    filter: brightness(50%) blur(6px);
}

/* === Hero (homepage) === */
.hero {
    position: relative;
    overflow: hidden;
}
.hero .mainvideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,8,0.2) 0%, rgba(8,8,8,0.85) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12vw 32px 8vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ddd;
    font-size: 11pt;
    padding: 7px 14px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}
.hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgb(212, 0, 212);
    box-shadow: 0 0 8px rgba(212, 0, 212, 0.7);
}

.hero-title {
    margin: 0 0 20px;
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: #fff;
}
.hero-title-accent {
    color: rgb(212, 0, 212);
}

.hero-sub {
    margin: 0 0 32px;
    font-size: clamp(13pt, 1.4vw, 16pt);
    line-height: 1.55;
    color: #cfcfcf;
    max-width: 760px;
}

.hero-cta {
    display: inline-block;
    background-color: rgb(212, 0, 212);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 13pt;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
    box-shadow: 0 6px 20px rgba(212, 0, 212, 0.25);
}
.hero-cta:hover {
    background-color: rgb(170, 0, 170);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 0, 212, 0.35);
}

@media (max-width: 720px) {
    .hero-content { padding: 18vw 20px 10vw; }
    .hero-pill { font-size: 10pt; padding: 6px 11px; }
}

.mainvideo-text {
    font-size: 36pt;
}

.header {
    background-color: #080808;
    padding: 1vh 1vw 1vh 1vw;

    align-items: center;
    z-index: 250;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);

    border-bottom: 1px solid #111;
}
    .header h2 {
        padding-bottom: 4px;
        padding-left: 14px;
    }

.logo-container {
    align-content: center;
}

.logo {
    color:rgb(212, 0, 212);
    font-size: x-large;
    text-decoration: none;
    font-weight: 600;
}

.footer {
    margin-top: 12px;
    padding: 24px 64px;
    display: flex;
    border-top: 1px solid #111;
    justify-content: left;
    flex-direction: column;
}

.footer-item {
    font-size: 12pt;
    text-decoration: none;
} .footer-item:hover {
    color: #aaa
}

.header-links {
    align-items: center;
    margin-left: auto;
    display: flex;
    gap: 16px;
    margin-bottom: -4px;
    align-content: center;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 16px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
@media (max-width: 1200px) {
    .header-left, .header-right { gap: 12px; }
}

.svg-ico {
    margin-bottom: -6px;
    fill: #ccc;
    color: #ccc;
}

.header-link {
    align-items: center;
    
    font-size: large;
    font-weight: bold;
    text-decoration: none;
    color: #999
}

.td-w {
    width: 10px;
    white-space: nowrap;
}

.td-m {
    width: 5px;
    white-space: nowrap;
}

.td-s {
    width: 1px;
    white-space: nowrap;
}

.td-right {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-right: 1px solid #222;
}

.td-left {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-left: 1px solid #222;
}

.td-left-s {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-left: 1px solid #222;
}

.td-legend-left {
    width: 1px
}

.servers-name-td {
    width: 50px
}

.td-lboard {
    padding: 8px;

    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    width: 10%;
    font-size: 13pt;
    font-weight: 600;
    
    align-content: center;
    align-items: center;
}

.lboard-legend-td {
    padding-bottom: 0.25rem;
    padding-left: 4px;
}

.lboard-legend {}

#lboard {
    border-collapse: separate;
    display:table;
    table-layout: fixed;
    width: 95vw;
    border-spacing: 0 0.6rem;
    min-width: fit-content;
}

#homeboard {
    border-collapse: separate;
    display:table;
    table-layout: fixed;
    width: 100%;
    border-spacing: 0 0.6rem;
    min-width: fit-content;
}

#server-table {
    border-collapse: separate;
    display: table;
    table-layout: fixed;
    width: 95vw;
    border-spacing: 0 0.6rem;
    table-layout:fixed;
}

.server-row {
    border-radius: 24px;
    background-color: #0b0b0b;
    width: 100%;
    box-sizing: border-box;
    transition: ease-in-out 0.5s;
}
    .server-row:hover {
        transform: translateX(-2.5%);
        background-color: #111;
    }

.leaderboard-row {
    border-radius: 24px;
    background-color: #0b0b0b;
    box-sizing: border-box;
}

h1,h2,h3,h4,h5,h6,p,span,a,tr,td,button,ul,li {
    color: #ccc;
    margin: 2px
}

#blurryface {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    z-index: 200;
    background-color: #000;
    filter: opacity(0%);
    pointer-events: none;
    transition: ease-in-out 0.5s;
}

#hamburger {
    background-color: transparent;
    border: none;
    cursor: pointer;
    align-content: center;
    height: 39px;

    margin: 2px;
    padding-bottom: 2px;
    margin-right: 8px
}

.hamburger-shown {
    transform: translateX(0);
}

.hamburger-hidden {
    transform: translateX(-100%);
}

#hamburger-page {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 225;
    background-color: #080808;

    width: 15vw;
    height: 100vh;

    padding: 64px 0 14px 0;
    border-right: 1px solid #111;

    transition: ease-in-out 0.3s;
} #hamburger-page a {
    font-size: larger;
    font-weight: bold;
    text-decoration: none;
}

.hamburger-item {
    background-color: #080808;
    height: 4%;

    display: flex;
    align-items: center;
    padding: 20px 12px;
    transition: ease-in-out 0.2s;

} .hamburger-item:hover {
    background-color: #111;
} .hamburger-item a {
    font-size: larger;
    font-weight: bold;
}

code {
    word-wrap: break-word;
}

input[type=text],input[type=password] {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px;
    transition: ease-in-out 0.1s;
    color: #ccc

} input[type=text]:focus, input[type=password]:focus {
    outline: 1px solid #777;
} input[type=text]:disabled {
    cursor: not-allowed;
    color: #888;
    background-color: #333;
}

input[type=checkbox] {
    accent-color: #444;
}

.miata-on-text {
    color: #ddd
}

.miata-off-text {
    color: #777
}

#error {
    color: #ddd;
    background-color: rgb(193, 0, 0);
    border: 1px solid rgb(119, 0, 0);
    width: 100%;

    border-radius: 4px;
    padding: 4px;

    margin: 12px 0;

    display: flex;
    flex-direction: column;
} #error span {
    text-align: center;
    width: 100%;
    color: #ccc;
}

.hidden {
    display: none;
    filter: opacity(0%);
    margin: 0 !important;
}

hr {
    display: block;
    height: 1px;
    border: 0;  
    border-top: 1px solid #111;
    margin: 1em 0;
    padding: 0;
  }

#mydiscord {
    width: 50%
}

.login-island {
    display: flex;
    flex-direction: column;

    position: absolute;
    left: 0;
    padding: 24px;
    z-index: 10;
    width: 20vw;
    height: 100vh;
    background-color: #0b0b0be1;
    backdrop-filter: blur(6px);
} .login-island-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#login-background-img {
    position: absolute;
    left: 0;
    z-index: 5;
    height: 100vh;
    width: 100vw;
    object-fit: cover;
    filter: brightness(0.6);
}

#login-island-switch {
    cursor: pointer;
    opacity: 0.7;
    font-size: 10pt;
    text-decoration: underline;
}

#submit {
    margin-top: 12px;
    background-color: var(--pink);
    filter: brightness(0.9);
    color: #fff;
} #submit:hover {
    filter: brightness(1);
    background-color: var(--purp);
}

.login-island-textrow {
    display: flex;
    flex-direction: column;
    margin: 6px 0;
}

.notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #080808;
    transition: 0.4s;
    z-index: 999;
} .notice[hide='true'] {
    background-color: transparent;
    opacity: 0;
    pointer-events: none;
} .notice * {
    text-align: center;
}

@font-face {
    font-family: 'Inter';
    src: url("./font/Inter-VariableFont_opsz\,wght.ttf");
}
/* Legal pages (Impressum / Privacy) */
.legal-page {
    max-width: 820px;
    margin: 60px auto 80px;
    padding: 0 24px;
    color: #ddd;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}
.legal-page h1 {
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 8px;
}
.legal-page h2 {
    color: #fff;
    font-size: 1.15em;
    margin-top: 36px;
    margin-bottom: 10px;
    border-bottom: 1px solid #222;
    padding-bottom: 6px;
}
.legal-page p, .legal-page ul {
    margin: 10px 0;
    font-size: 0.95em;
}
.legal-page ul {
    padding-left: 22px;
}
.legal-page li {
    margin: 4px 0;
}
.legal-page a {
    color: rgb(212, 0, 212);
    text-decoration: none;
}
.legal-page a:hover {
    text-decoration: underline;
}
.legal-foot {
    margin-top: 48px;
    color: #777;
    font-size: 0.85em;
    font-style: italic;
}

/* Hamburger mini-dashboard panel */
.ham-dash {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 20px;
    color: #ddd;
    font-family: 'Inter', system-ui, sans-serif;
}
.ham-dash-header {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 8px 4px;
    border-radius: 6px;
    transition: background 0.15s;
}
.ham-dash-header:hover {
    background: #141414;
}
.ham-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #181818;
    flex-shrink: 0;
}
.ham-avatar-empty {
    background: #181818;
    border: 1px solid #222;
}
.ham-dash-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ham-dash-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ham-dash-tier {
    font-size: 0.82em;
    color: rgb(212, 0, 212);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.ham-dash-rank {
    border: 1px solid #222;
    border-radius: 8px;
    padding: 14px 14px;
    background: #0c0c0c;
}
.ham-dash-rank-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.ham-dash-rank-name {
    font-size: 0.95em;
    font-weight: 600;
    color: #fff;
}
.ham-dash-rank-lvl {
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.ham-dash-levelnum {
    font-size: 0.75em;
    color: #888;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.ham-dash-bar {
    height: 6px;
    background: #1a1a1a;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
.ham-dash-bar-fill {
    height: 100%;
    transition: width 0.4s ease-out;
}
.ham-dash-xp {
    font-size: 0.72em;
    color: #888;
    text-align: right;
}
.ham-dash-lb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #222;
    border-radius: 8px;
    background: #0c0c0c;
}
.ham-dash-lb-label {
    font-size: 0.85em;
    color: #aaa;
}
.ham-dash-lb-pos {
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.ham-dash-cta {
    display: block;
    text-align: center;
    padding: 10px 14px;
    background: rgb(212, 0, 212);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background 0.15s;
}
.ham-dash-cta:hover {
    background: rgb(175, 0, 175);
}
.ham-dash-out {
    text-align: center;
}
.ham-dash-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.ham-dash-sub {
    color: #aaa;
    font-size: 0.9em;
    margin: 0 0 18px;
    line-height: 1.5;
}
.ham-dash-login {
    display: block;
    padding: 10px 14px;
    background: rgb(212, 0, 212);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 18px;
}
.ham-dash-login:hover { background: rgb(175, 0, 175); }
.ham-dash-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid #222;
}
.ham-dash-links a {
    color: #bbb;
    text-decoration: none;
    padding: 6px 4px;
    font-size: 0.92em;
}
.ham-dash-links a:hover { color: #fff; }

/* 404 page */
.notfound-page {
    max-width: 680px;
    margin: 120px auto 100px;
    padding: 0 24px;
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
}
.notfound-code {
    font-size: 7em;
    font-weight: 900;
    color: rgb(212, 0, 212);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}
.notfound-title {
    font-size: 1.8em;
    color: #fff;
    margin: 12px 0;
}
.notfound-sub {
    color: #aaa;
    font-size: 1.05em;
    margin-bottom: 32px;
}
.notfound-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.notfound-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    color: #ddd;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}
.notfound-btn:hover {
    background: #181818;
    border-color: #333;
}
.notfound-btn-primary {
    background: rgb(212, 0, 212);
    border-color: rgb(212, 0, 212);
    color: #fff;
}
.notfound-btn-primary:hover {
    background: rgb(175, 0, 175);
    border-color: rgb(175, 0, 175);
}
