/* ==========================================================================
   Global Retake — Steam-inspired community theme (modernized)
   ========================================================================== */

:root {
    /* Steam palette */
    --steam-bg-deepest: #171a21;
    --steam-bg-main: #1b2838;
    --steam-bg-medium: #2a475e;
    --steam-bg-panel: #16202d;
    --steam-bg-inset: #101822;
    --steam-text: #c7d5e0;
    --steam-text-bright: #ffffff;
    --steam-text-dim: #8f98a0;
    --steam-link: #66c0f4;
    --steam-link-hover: #ffffff;
    --steam-green-top: #799905;
    --steam-green-bottom: #536904;
    --steam-green-border: #3d5200;
    --steam-nav-top: #3d4450;
    --steam-nav-bottom: #2a2f36;
    --steam-nav-active-top: #417a9b;
    --steam-nav-active-bottom: #2f5f7f;

    /* Mapped tokens (used across the site) */
    --bg-deep: var(--steam-bg-main);
    --bg-dark: var(--steam-bg-deepest);
    --bg-card: var(--steam-bg-panel);
    --bg-elevated: #1e2630;
    --bg-input: var(--steam-bg-inset);
    --border: #000000;
    --border-color: rgba(0, 0, 0, 0.65);
    --border-light: rgba(255, 255, 255, 0.06);
    --text: var(--steam-text);
    --text-light: var(--steam-text-bright);
    --text-muted: var(--steam-text-dim);
    --accent: var(--steam-link);
    --accent-blue: var(--steam-link);
    --accent-blue-border: rgba(102, 192, 244, 0.35);
    --accent-hover: var(--steam-link-hover);
    --accent-border: #2f89bc;
    --accent-glow: rgba(102, 192, 244, 0.22);
    --success: #a4d007;
    --danger: #ff4d4d;
    --vip: #dbc06a;
    --radius: 2px;
    --shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.5);
    --panel-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 12%), linear-gradient(180deg, #2a3441 0%, #1b2838 3%, #16202d 100%);
    --header-gradient: linear-gradient(90deg, #171a21 0%, #1b2838 55%, #1f3044 100%);
    --font: "Segoe UI", "Motiva Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
    --max-width: 1520px;
    --sidebar-width: 300px;
    --page-pad-x: 28px;
    --page-pad-y: 24px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    height: 100%;
    background: #05070c;
    color-scheme: dark;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(1400px 700px at 8% -12%, rgba(102, 192, 244, 0.08), transparent 55%),
        radial-gradient(1100px 580px at 100% 0%, rgba(65, 122, 155, 0.12), transparent 50%),
        var(--steam-bg-main);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    min-height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; }
img.lr-rank,
img.lr-rank-lg,
img.lr-avatar,
img.lr-avatar-lg,
img.lr-hit-back,
img.lr-hit-sprite,
img.site-logo,
img.profile-avatar,
img.discord-avatar,
img.social-avatar {
    max-width: none;
    height: auto;
}

img.lr-weapon {
    max-width: none;
}

code {
    font-family: Consolas, "Courier New", monospace;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border: 1px solid var(--border-light);
    color: var(--accent);
    border-radius: var(--radius);
    font-size: 11px;
}

/* ---- Layout Shell ---- */

#wrapper,
.site-shell {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 20px auto 36px;
    background: var(--steam-bg-deepest);
    border: 1px solid rgba(0, 0, 0, 0.85);
    box-shadow: var(--shadow);
    border-radius: 3px;
    overflow-x: visible;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.site-shell > * {
    min-width: 0;
    max-width: 100%;
}

.site-panorama {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #05070c;
}

.site-panorama-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #05070c;
}

.site-panorama-veil {
    position: absolute;
    inset: 0;
    background: #05070c;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.site-panorama-veil.is-on {
    opacity: 1;
}

.site-panorama-veil.is-snap {
    transition: none;
}

html.is-soft-nav,
html.is-soft-nav body {
    cursor: progress;
}

body.has-panorama {
    background: #05070c;
}

body.has-panorama #wrapper,
body.has-panorama .site-shell {
    position: relative;
    z-index: 1;
}

body.has-panorama.maintenance-body .maintenance-page {
    background: transparent;
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .site-panorama-veil {
        transition: opacity 0.6s ease;
    }
}

.site-header {
    position: relative;
    z-index: 40;
    overflow: visible;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    min-height: 76px;
    padding: 12px var(--page-pad-x);
    background: var(--header-gradient);
    border-bottom: 1px solid #000;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-search {
    position: relative;
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-search input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 8px 36px 8px 10px;
    border-radius: 3px;
}

.site-search button {
    position: absolute;
    right: 4px;
    background: none;
    border: 0;
    color: var(--accent);
    cursor: pointer;
    padding: 6px 8px;
}

.site-search-drop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px;
    max-height: 360px;
    overflow: auto;
}

.site-search-group {
    margin-bottom: 10px;
}

.site-search-group ul,
.search-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-search-group li,
.search-result-list li {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.search-result-list {
    padding: 10px 14px;
}

.note-wrap { position: relative; z-index: 50; }
.note-toggle {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 6px 10px;
    cursor: pointer;
    position: relative;
}
.note-toggle .nav-auth-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    margin: 0;
}
.note-drop-list {
    max-height: 320px;
    overflow: auto;
}
.note-drop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    z-index: 80;
    box-shadow: var(--shadow);
}
.note-drop-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}
.note-read-all {
    background: none;
    border: 0;
    color: var(--accent);
    cursor: pointer;
    font-size: 11px;
}
.note-item {
    display: block;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-light);
    color: inherit;
    text-decoration: none;
}
.note-item strong { display: block; color: var(--text-light); }
.note-item span { color: var(--text-muted); font-size: 12px; }
.note-item.is-unread { background: rgba(102, 192, 244, 0.08); }
.note-item-type {
    display: inline-block;
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.lr-place { font-weight: 700; color: #f1c40f; }
.lr-rank { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }

.logo {
    min-width: 0;
    flex: 0 1 auto;
    justify-self: start;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.logo-brand:hover {
    text-decoration: none;
}

.site-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.65);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.logo-copy {
    min-width: 0;
}

.logo h1,
.logo .logo-title {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.02em;
    text-transform: none;
    text-shadow: none;
    line-height: 1.15;
}

.logo h1 span,
.logo .logo-title span {
    color: var(--accent);
    font-weight: 400;
}

.logo p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-top: 6px;
    text-transform: none;
}

.user-panel {
    flex: 0 0 270px;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}

.user-panel input[type="text"],
.user-panel input[type="password"],
.user-panel input[type="email"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.65);
    color: var(--text-light);
    padding: 7px 9px;
    font-size: 12px;
    margin-bottom: 6px;
    border-radius: var(--radius);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.user-panel input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.user-panel button,
.btn-primary,
.hlstats-toolbar button,
.shoutbox-input button {
    background: linear-gradient(180deg, var(--steam-nav-active-top) 0%, var(--steam-nav-active-bottom) 100%);
    border: 1px solid #2f5f7f;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    padding: 7px 12px;
    cursor: pointer;
    border-radius: var(--radius);
    text-transform: none;
    letter-spacing: 0;
    transition: filter 0.15s, box-shadow 0.15s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.user-panel button,
.login-form .btn-primary {
    width: 100%;
}

.btn-primary {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.user-panel button:hover,
.btn-primary:hover,
.shoutbox-input button:hover { filter: brightness(1.1); }

.avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    float: left;
}

.avatar-icon { font-size: 26px; color: var(--accent); float: left; }
.user-meta { margin-left: 48px; }
.user-panel .links { margin-top: 8px; font-size: 11px; }

/* ---- Steam auth (navbar) ---- */

.nav-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: 0;
    justify-self: end;
    flex: 0 1 auto;
    min-width: 0;
    background: none;
    border: 0;
    padding: 0;
    text-align: right;
}

.nav-auth-user {
    display: inline-flex;
    align-items: center;
    gap: 8px 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
}

.nav-auth-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--accent-border);
    object-fit: cover;
}

.nav-auth-avatar-icon {
    font-size: 22px;
    color: #c7d5e0;
}

.nav-auth-name {
    color: var(--text-light);
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-auth-link {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.nav-auth-link:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

.btn-steam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #799905 0%, #536904 100%);
    border: 1px solid var(--steam-green-border);
    color: #d2efa9;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    min-height: 36px;
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: filter 0.15s, color 0.15s;
}

.btn-steam:hover {
    filter: brightness(1.08);
    color: #fff;
    text-decoration: none;
}

.btn-steam i {
    font-size: 16px;
}

/* ---- Navigation ---- */

#nav {
    background: linear-gradient(180deg, var(--steam-nav-top) 0%, var(--steam-nav-bottom) 100%);
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(199, 213, 224, 0.35) transparent;
}

#nav::-webkit-scrollbar {
    height: 5px;
}

#nav::-webkit-scrollbar-track {
    background: transparent;
}

#nav::-webkit-scrollbar-thumb {
    background: rgba(199, 213, 224, 0.28);
    border-radius: 4px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    min-width: min-content;
}

.nav-list li {
    flex: 0 0 auto;
}

.nav-list li a {
    display: block;
    padding: 0 16px;
    line-height: 46px;
    color: var(--steam-text);
    font-weight: 400;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.45);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-list li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    text-decoration: none;
}

.nav-list li.active a {
    background: linear-gradient(180deg, var(--steam-nav-active-top) 0%, var(--steam-nav-active-bottom) 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-list li i { margin-right: 6px; }
.nav-list li:last-child a { border-right: 0; }

/* ---- Notices ---- */

.site-notices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px var(--page-pad-x) 0;
}

.notice-bar {
    background: rgba(23, 26, 33, 0.95);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    margin: 0;
    font-size: 13px;
    border-radius: var(--radius);
    color: var(--text);
}

#content .notice-bar {
    margin: 0 0 16px;
}

.notice-global {
    border-left-color: var(--notice-color, var(--accent));
}

.notice-global strong {
    color: var(--notice-color, var(--accent));
}

.notice-error { border-left-color: var(--danger); }
.notice-success { border-left-color: var(--success); }
.notice-draft { border-left-color: #f0c14b; }
.notice-draft strong { color: #f0c14b; }

/* ---- Content Grid ---- */

#content,
.page-body {
    padding: var(--page-pad-y) var(--page-pad-x) 28px;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    background: linear-gradient(180deg, rgba(27, 40, 56, 0.35) 0%, rgba(23, 26, 33, 0) 160px);
}

.main-col > .box:last-child,
.content-full > .box:last-child,
.content-full > .lr-player > .lr-player-grid,
.content-grid > .main-col > :last-child {
    margin-bottom: 0;
}

#content.content-grid,
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 24px;
    align-items: start;
}

#content.content-full,
.content-full {
    display: block;
}

#content.content-admin,
.content-admin {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.content-grid > .main-col,
.content-grid > .sidebar {
    min-width: 0;
    float: none;
    width: auto;
    max-width: none;
    margin-bottom: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
}

/* ---- Cards / Boxes ---- */

.box {
    background: var(--panel-gradient);
    border: 1px solid rgba(0, 0, 0, 0.85);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.box-head {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%), linear-gradient(180deg, #2f3947 0%, #232b36 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.65);
    padding: 11px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    min-width: 0;
}

.box-body { padding: 18px; }
.box-body.no-padding { padding: 0; }
.box-body.no-padding .table-scroll,
.box-body.no-padding .lr-weapons-table {
    margin: 0;
}

/* ---- Server list ---- */

.servers-hero {
    margin-bottom: 22px;
    padding: 26px 24px 22px;
    background: var(--panel-gradient);
    border: 1px solid rgba(0, 0, 0, 0.85);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.servers-hero h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    margin: 4px 0 10px;
}

.servers-hero-lead {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    max-width: 46em;
    margin-bottom: 14px;
}

.servers-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.servers-hero-stats strong {
    color: #fff;
    margin-right: 4px;
}

.servers-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.servers-region-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.servers-region-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px;
}

.servers-region-head h2 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.servers-region-head span {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 12px;
}

.server-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    background: var(--panel-gradient);
    border: 1px solid rgba(0, 0, 0, 0.7);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.server-card:not(.has-map-art) {
    grid-template-columns: minmax(0, 1fr) auto;
}

.server-card-art {
    position: relative;
    width: 148px;
    height: 84px;
    border-radius: 3px;
    overflow: hidden;
    flex: 0 0 148px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.55);
}

.server-card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.server-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.server-card-title a {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.server-card-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.server-card-map {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
}

.server-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.server-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 168px;
}

.server-card-count strong {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.server-card-count span {
    color: var(--text-muted);
    font-size: 13px;
}

.server-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.server-card .btn-connect {
    margin-top: 0;
}

.server-card .progress-bar {
    width: 168px;
}

.region-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 7px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.region-eu {
    background: rgba(102, 192, 244, 0.16);
    border: 1px solid rgba(102, 192, 244, 0.45);
    color: #66c0f4;
}

.region-na {
    background: rgba(219, 192, 106, 0.16);
    border: 1px solid rgba(219, 192, 106, 0.45);
    color: var(--vip);
}

.server-ip {
    color: var(--text);
    font-size: 12px;
}

.servers-region-count {
    float: right;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.mini-server-row .region-pill {
    margin-left: 6px;
    min-width: 28px;
    padding: 1px 5px;
}

.mini-server-all {
    margin: 10px 0 0;
    font-size: 12px;
}

.server-info { color: var(--text-muted); font-size: 12px; }

.server-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
    min-width: 140px;
}

.server-source {
    display: inline-block;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.btn-connect {
    display: inline-block;
    background: linear-gradient(180deg, var(--steam-green-top) 0%, var(--steam-green-bottom) 100%);
    border: 1px solid var(--steam-green-border);
    color: #d2efa9 !important;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    border-radius: var(--radius);
    margin-top: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-connect:hover {
    filter: brightness(1.08);
    color: #fff !important;
    text-decoration: none;
}

.btn-connect-lg {
    padding: 10px 20px;
    font-size: 13px;
    margin-top: 0;
}

.server-crumb {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 12px;
}

.server-info-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 24px 22px 18px;
    background:
        radial-gradient(900px 260px at 8% -20%, rgba(102, 192, 244, 0.16), transparent 55%),
        var(--panel-gradient);
    border: 1px solid rgba(0, 0, 0, 0.85);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.server-info-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.server-info-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.85);
}

.server-info-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.78) 42%, rgba(8, 12, 18, 0.42) 100%),
        linear-gradient(180deg, rgba(8, 12, 18, 0.2) 0%, rgba(8, 12, 18, 0.55) 100%);
}

.server-info-hero.has-map-art .server-info-hero-top,
.server-info-hero.has-map-art .server-info-fill {
    position: relative;
    z-index: 1;
}

.server-info-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.server-info-hero h1 {
    color: #fff;
    font-size: 28px;
    margin: 10px 0 8px;
}

.server-info-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.server-info-map {
    color: var(--accent);
    font-size: 14px;
    margin: 0;
}

.server-info-map i {
    margin-right: 4px;
    opacity: 0.8;
}

.server-info-actions {
    flex-shrink: 0;
}

.server-info-fill {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 12px;
}

.server-info-bar {
    flex: 1;
    max-width: 320px;
    width: auto;
}

.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.server-status-pill.is-online {
    background: rgba(126, 184, 74, 0.14);
    color: #a1d06a;
}

.server-status-pill.is-offline {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.server-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 2px;
    background: rgba(102, 192, 244, 0.12);
    border: 1px solid rgba(102, 192, 244, 0.28);
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.server-chip-vac {
    background: rgba(164, 208, 7, 0.12);
    border-color: rgba(164, 208, 7, 0.35);
    color: #c6e05a;
}

.server-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.server-stat-card {
    padding: 14px 14px 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: 3px;
}

.server-stat-card span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.server-stat-card strong {
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.server-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
}

.server-players-box {
    margin-top: 4px;
}

@media (max-width: 720px) {
    .server-card,
    .server-card.has-map-art,
    .server-info-hero-top,
    .server-player-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .server-card-art {
        width: 100%;
        height: 120px;
    }

    .server-card-side {
        align-items: flex-start;
        width: 100%;
    }

    .server-card .progress-bar {
        width: 100%;
    }
}

.server-player-list {
    list-style: none;
}

.server-player-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.server-player-row:last-child {
    border-bottom: 0;
}

.server-player-who {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.server-player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 3px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.35);
}

.server-player-avatar.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
}

.server-player-name {
    display: block;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

a.server-player-name:hover {
    color: var(--accent);
    text-decoration: underline;
}

.server-player-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
}

.server-player-stats {
    display: flex;
    gap: 18px;
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.server-player-stats em {
    display: block;
    font-style: normal;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.progress-bar {
    width: 140px;
    height: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.65);
    border-radius: 2px;
    display: block;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #66c0f4, #417a9b);
    border-radius: 1px;
}

/* ---- Tables ---- */

.data-table,
.bans-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table-scroll,
.box-body:has(> table),
.box-body.no-padding:has(> table) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll > table,
.box-body:has(> table) > table,
.box-body.no-padding:has(> table) > table {
    width: max-content;
    min-width: 100%;
    max-width: none;
}

.page-body table {
    max-width: 100%;
}

.page-body .table-scroll table,
.page-body .box-body:has(> table) > table {
    max-width: none;
}

.page-body pre {
    max-width: 100%;
    overflow-x: auto;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.data-table th,
.bans-table th {
    background: linear-gradient(180deg, #2f3947 0%, #232b36 100%);
    color: var(--accent);
    text-align: left;
    padding: 11px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.65);
}

.data-table td,
.bans-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.12);
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) td,
.bans-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.22);
}

.data-table tbody tr:hover td,
.bans-table tbody tr:hover td {
    background: rgba(102, 192, 244, 0.08);
}

.sidebar .data-table th,
.sidebar .data-table td {
    padding: 8px 10px;
}

.sidebar .data-table {
    font-size: 11px;
}
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---- Tags & Roles ---- */

.tag {
    display: inline-block;
    background: #222933;
    color: var(--text-muted);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-weight: 700;
}

.tag-vip { background: var(--accent-border); color: #b9d4f5; }

.shout-user { font-weight: 700; color: var(--accent); text-decoration: none; }
a.shout-user:hover { text-decoration: underline; color: inherit; }
.shout-avatar-link { display: inline-flex; line-height: 0; }
.shout-user.admin { color: var(--danger); }
.shout-user.vip { color: var(--vip); }

/* ---- News / Announcements ---- */

.news-post {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-light);
}

.news-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.news-teaser-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.news-post-teaser {
    margin-bottom: 0;
    padding: 16px;
    padding-bottom: 16px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: var(--radius);
}

@media (min-width: 1100px) {
    .news-teaser-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.news-title { color: var(--accent); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.news-meta { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.news-content { color: var(--text); line-height: 1.65; }
.news-pinned { border-left: 3px solid var(--accent); padding-left: 12px; }

.news-post-teaser .announcement-banner-wrap-teaser {
    margin-bottom: 10px;
}

.news-post-teaser .announcement-banner {
    max-height: 120px;
}

.news-excerpt-wrap {
    position: relative;
    margin-bottom: 6px;
}

.news-excerpt-wrap.is-truncated::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    background: linear-gradient(to bottom, rgba(16, 24, 34, 0), rgba(16, 24, 34, 0.95));
    pointer-events: none;
}

.news-excerpt {
    color: var(--text);
    line-height: 1.65;
    margin: 0;
    font-size: 13px;
}

.news-ellipsis {
    color: var(--text-muted);
}

.news-read-more {
    margin: 0;
    font-size: 12px;
}

.news-read-more a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.news-read-more a:hover {
    text-decoration: underline;
}

.news-read-more .fa {
    font-size: 14px;
    vertical-align: -1px;
}

.announcement-banner-wrap {
    margin-bottom: 12px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.announcement-banner {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.announcement-feed-links {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.announcement-feed-links a {
    color: var(--accent);
}

.announcement-back-link {
    margin-top: 20px;
    font-size: 12px;
}

.announcement-comments {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.announcement-comments h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 16px;
}

.footer-rss-link {
    color: var(--accent);
    text-decoration: none;
}

.footer-rss-link:hover {
    text-decoration: underline;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: var(--accent);
    margin: 14px 0 8px;
    font-size: 15px;
}

.markdown-body p {
    margin: 0 0 10px;
}

.markdown-body ul,
.markdown-body ol {
    margin: 0 0 10px 18px;
}

.markdown-body blockquote {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-left: 3px solid var(--accent);
    background: rgba(102, 192, 244, 0.08);
    color: var(--text-muted);
}

.markdown-body code {
    background: #1a2030;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 12px;
}

.markdown-body pre {
    background: var(--steam-bg-inset);
    border: 1px solid var(--border);
    padding: 10px;
    overflow-x: auto;
    margin-bottom: 10px;
}

.markdown-body pre code {
    background: none;
    padding: 0;
}

.markdown-body a {
    color: var(--accent);
}

/* Sponsors & partners */
.sponsors-sidebar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sponsor-sidebar-item {
    position: relative;
    display: block;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    text-decoration: none;
    line-height: 0;
}

.sponsor-sidebar-item:hover {
    border-color: var(--accent-blue);
}

.sponsor-sidebar-item img {
    display: block;
    width: 100%;
    max-height: 52px;
    height: auto;
    object-fit: contain;
    padding: 6px;
    box-sizing: border-box;
}

.sponsor-sidebar-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--text-muted);
    background: rgba(11, 13, 18, 0.9);
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sponsor-sidebar-tag-sponsor {
    color: #f39c12;
}

.sponsor-sidebar-tag-partner {
    color: var(--accent-blue);
}

.featured-partner-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

.featured-partner-card:hover .featured-partner-logo {
    border-color: rgba(102, 192, 244, 0.45);
}

.featured-partner-logo {
    display: block;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    line-height: 0;
}

.featured-partner-logo img {
    display: block;
    width: 100%;
    max-height: 88px;
    object-fit: contain;
    padding: 12px 14px;
    box-sizing: border-box;
    background: #0b0f14;
}

.featured-partner-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.featured-partner-meta strong {
    font-size: 14px;
}

.featured-partner-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.featured-partner-tag-sponsor {
    color: #f39c12;
}

.featured-partner-tag-partner {
    color: var(--accent-blue);
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sponsor-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: var(--radius);
    padding: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sponsor-card:hover {
    border-color: rgba(102, 192, 244, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 12px rgba(102, 192, 244, 0.12);
}

.sponsor-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid #1f2733;
    border-radius: 6px;
    padding: 10px;
    min-height: 60px;
}

.sponsor-logo-frame img {
    display: block;
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-type-badge {
    align-self: center;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid var(--accent-blue-border);
    color: var(--text-muted);
    background: rgba(18, 22, 31, 0.92);
}

.sponsor-type-badge-sponsor {
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.35);
}

.sponsor-type-badge-partner {
    color: var(--accent-blue);
    border-color: var(--accent-blue-border);
}

.footer-sponsors-section {
    margin-top: 18px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.footer-sponsors-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px var(--page-pad-x) 0;
}

.footer-sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    padding: 16px var(--page-pad-x) 20px;
}

.footer-sponsors-header .sponsors-section-title {
    font-size: 12px;
}

.sponsor-card-footer {
    min-width: 160px;
    max-width: 220px;
    flex: 1 1 180px;
}

.sponsor-card-footer .sponsor-logo-frame {
    min-height: 56px;
}

.sponsor-card-footer .sponsor-logo-frame img {
    max-height: 42px;
}

@media (max-width: 900px) {
    .sponsors-sidebar-grid,
    .sponsors-grid {
        grid-template-columns: 1fr;
    }
}

.box-head i { margin-right: 0; opacity: 0.9; }

/* ---- Shoutbox ---- */

.shoutbox-messages {
    max-height: 280px;
    min-height: 132px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 192, 244, 0.4) rgba(0, 0, 0, 0.28);
}

.shoutbox-messages::-webkit-scrollbar {
    width: 7px;
}

.shoutbox-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 4px;
}

.shoutbox-messages::-webkit-scrollbar-thumb {
    background: rgba(102, 192, 244, 0.35);
    border-radius: 4px;
}

.shoutbox-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 192, 244, 0.55);
}

.shout-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
    line-height: 1.45;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
}

.shout-item-muted {
    opacity: 0.72;
}

.shout-item-main {
    min-width: 0;
    flex: 1;
}

.shout-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 6px;
}

.shout-text {
    display: block;
    margin-top: 4px;
    color: var(--text);
    word-break: break-word;
}

.shout-mod {
    position: relative;
    flex-shrink: 0;
}

.shout-mod-menu-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 3px;
    line-height: 1;
}

.shout-mod-menu-btn:hover,
.shout-mod-menu-btn[aria-expanded="true"] {
    background: rgba(102, 192, 244, 0.12);
    color: var(--accent, #66c0f4);
}

.shout-mod-menu {
    display: none;
    position: absolute;
    top: 22px;
    right: 0;
    z-index: 400;
    min-width: 168px;
    padding: 4px 0;
    background: #1b2838;
    border: 1px solid #2a475e;
    border-radius: 3px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.shout-mod-menu.is-open {
    display: block;
}

.shout-mod-menu button {
    display: block;
    width: 100%;
    padding: 7px 12px;
    border: 0;
    background: transparent;
    color: var(--text-light, #fff);
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}

.shout-mod-menu button:hover,
.shout-mod-menu .shout-unmute {
    background: rgba(102, 192, 244, 0.12);
    color: var(--accent, #66c0f4);
}

.shout-mod-menu .shout-unmute:hover {
    background: rgba(231, 76, 60, 0.16);
    color: #e74c3c;
}

.shout-muted-tag {
    color: #e74c3c;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.shoutbox-mute-hint {
    margin: 0 0 8px;
    color: #e74c3c;
    font-size: 11px;
}

.shoutbox-input.is-disabled {
    opacity: 0.55;
}

.shout-time { color: var(--text-muted); font-size: 10px; }

.shoutbox-input {
    display: flex;
    gap: 6px;
}

.shoutbox-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.65);
    color: var(--text-light);
    padding: 7px 9px;
    border-radius: var(--radius);
    font-size: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.shoutbox-input input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--accent-glow);
}

.shoutbox-input button { width: auto; padding: 7px 12px; }
.shoutbox-login-hint { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.shout-item-meta .role-pill { margin: 0; }

.shout-avatar { width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; }

/* ---- Sidebar mini servers ---- */

.mini-server-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 12px;
    color: inherit;
    text-decoration: none;
}

a.mini-server-row:hover {
    text-decoration: none;
    color: inherit;
}

a.mini-server-row:hover strong {
    color: var(--accent);
}

.mini-server-row:last-child { border-bottom: 0; }

.mini-server-meta {
    display: block;
    width: 100%;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 2px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.status-dot.online { background: var(--success); box-shadow: 0 0 6px rgba(46, 204, 113, 0.5); }
.status-dot.offline { background: var(--danger); }

/* ---- Toolbar / Forms ---- */

.hlstats-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: var(--radius);
}

.hlstats-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.hlstats-toolbar-group input[type="text"] {
    width: min(280px, 100%);
}

.hlstats-toolbar label { font-weight: 700; color: var(--accent); margin-right: 6px; }

.hlstats-toolbar select,
.hlstats-toolbar input[type="text"],
.form-group input,
.form-group textarea,
.form-group select,
.comment-form textarea {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.65);
    color: var(--text-light);
    padding: 7px 9px;
    font-size: 12px;
    border-radius: var(--radius);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.hlstats-toolbar select:focus,
.hlstats-toolbar input[type="text"]:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--accent-glow);
}

.form-box { max-width: 480px; margin: 32px auto; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 700; color: var(--text-light); font-size: 12px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; }
.form-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.profile-header { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.profile-steam-badge { background: var(--accent-border); color: #fff; padding: 3px 10px; font-size: 10px; border-radius: var(--radius); }

/* ---- Profile pages ---- */

.profile-page { max-width: none; margin: 0 auto; }

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--profile-accent, var(--accent));
}

.profile-banner {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-light);
}

.profile-banner-default {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, color-mix(in srgb, var(--profile-accent, var(--accent)) 35%, var(--steam-bg-inset)) 100%);
}

.profile-card-body { padding: 20px 22px 24px; }

.profile-header-large {
    align-items: flex-end;
    margin-top: 0;
    padding-top: 0;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    margin-top: -52px;
    border-width: 3px;
    border-color: var(--profile-accent, var(--accent));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.profile-identity { flex: 1; min-width: 0; padding-top: 0; }
.profile-name { color: var(--text-light); font-size: 22px; margin-bottom: 4px; }
.profile-tagline { color: var(--text); font-size: 14px; margin-bottom: 8px; }
.profile-meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 11px; }
.profile-meta-item { color: var(--text-muted); }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 0; }

.btn-sm { padding: 6px 12px !important; font-size: 11px !important; }

.profile-stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.profile-stat { min-width: 80px; }
.profile-stat-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.profile-stat strong { color: var(--text-light); }

.profile-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 11px;
    text-decoration: none;
}

.profile-social-link:hover { border-color: var(--profile-accent, var(--accent)); color: var(--text-light); text-decoration: none; }

.profile-section { margin-top: 20px; }
.profile-section-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--profile-accent, var(--accent));
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.profile-empty-bio { text-align: center; padding: 28px 16px; border: 1px dashed var(--border); border-radius: var(--radius); margin-top: 16px; }
.profile-footer-meta { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border-light); font-size: 11px; }

.profile-head-link {
    margin-left: auto;
    float: none;
    font-size: 11px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    white-space: nowrap;
    flex: 0 0 auto;
}
.profile-head-link:hover { color: var(--accent); }

.profile-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}

.profile-form-section { min-width: 0; }
.profile-form-side .form-group { margin-bottom: 12px; }

.label-hint, .field-hint {
    font-weight: normal;
    color: var(--text-muted);
    font-size: 10px;
}

.field-hint { margin-top: 4px; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    color: var(--text);
    cursor: pointer;
}

.accent-swatches { display: flex; flex-wrap: wrap; gap: 8px; }

.accent-swatch input { position: absolute; opacity: 0; pointer-events: none; }

.accent-swatch span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.accent-swatch input:checked + span {
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-deep);
}

.profile-save-status { font-size: 12px; color: var(--text-muted); }
.profile-save-status.success { color: var(--success); }
.profile-save-status.error { color: var(--danger); }
.profile-save-status.saving { color: var(--accent); }

/* Markdown editor */

.md-editor {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-input);
}

.md-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.md-btn, .md-tab {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 8px;
    font-size: 11px;
    border-radius: var(--radius);
    cursor: pointer;
    min-width: 28px;
    line-height: 1.2;
}

.md-btn:hover, .md-tab:hover { border-color: var(--accent); color: var(--text-light); }
.md-tab.active, .md-btn:active { background: var(--accent); border-color: var(--accent-border); color: #fff; }

.md-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

.md-pane { display: none; }
.md-pane.active { display: block; }

.md-pane textarea {
    width: 100%;
    min-height: 280px;
    border: 0;
    background: transparent;
    color: var(--text-light);
    padding: 12px 14px;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.55;
    resize: vertical;
}

.md-pane textarea:focus { outline: none; }

.md-counter {
    text-align: right;
    padding: 4px 12px 8px;
    font-size: 10px;
    color: var(--text-muted);
}

.md-pane-preview, .md-pane-help {
    padding: 14px;
    min-height: 280px;
    max-height: 480px;
    overflow-y: auto;
}

.md-help-list {
    list-style: none;
    font-size: 12px;
    line-height: 1.8;
}

.md-help-list code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: var(--radius);
    color: var(--accent);
}

/* Rendered markdown */

.markdown-body { color: var(--text); font-size: 13px; line-height: 1.65; word-wrap: break-word; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { color: var(--text-light); margin: 16px 0 8px; line-height: 1.3; }
.markdown-body h1 { font-size: 20px; }
.markdown-body h2 { font-size: 17px; color: var(--profile-accent, var(--accent)); }
.markdown-body h3 { font-size: 15px; }
.markdown-body p { margin-bottom: 10px; }
.markdown-body ul, .markdown-body ol { margin: 8px 0 12px 22px; }
.markdown-body li { margin-bottom: 4px; }
.markdown-body blockquote {
    border-left: 3px solid var(--profile-accent, var(--accent));
    padding: 8px 12px;
    margin: 10px 0;
    background: var(--bg-elevated);
    color: var(--text-muted);
}
.markdown-body code {
    background: var(--bg-elevated);
    padding: 2px 5px;
    border-radius: var(--radius);
    font-size: 12px;
    color: #7ec8ff;
}
.markdown-body pre {
    background: var(--steam-bg-inset);
    border: 1px solid rgba(0, 0, 0, 0.65);
    padding: 12px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 10px 0;
}
.markdown-body pre code { background: none; padding: 0; color: #a8d4ff; }
.markdown-body a { color: var(--profile-accent, var(--accent)); }
.markdown-body hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.markdown-body del { color: var(--text-muted); }
.markdown-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.markdown-body table {
    display: block;
    width: max-content;
    min-width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}
.markdown-body th,
.markdown-body td {
    border: 1px solid var(--border-color, #2a475e);
    padding: 8px 10px;
    text-align: left;
}
.markdown-body th {
    background: rgba(0, 0, 0, 0.28);
    color: var(--text-light);
}
.markdown-body td { background: rgba(0, 0, 0, 0.12); }

.profile-markdown-preview { min-height: 200px; }

.profile-actions .btn-primary,
.profile-actions .btn-steam,
.profile-actions .btn-ghost,
.profile-actions .js-friend-action,
#profile-friend-slot {
    width: auto;
}

#profile-friend-slot {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-color);
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
}

.btn-ghost:hover {
    color: var(--text-light);
    border-color: var(--accent-blue);
    text-decoration: none;
}

.nav-auth-link {
    position: relative;
}

.nav-auth-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 999px;
    background: #c44848;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.profile-section-count {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.profile-more-friends {
    margin-top: 10px;
    font-size: 12px;
}

.friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
}

.friend-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
}

.friend-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text);
    text-align: center;
    text-decoration: none;
}

.friend-tile:hover {
    border-color: var(--profile-accent, var(--accent));
    color: var(--text-light);
    text-decoration: none;
}

.friend-tile span {
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.friend-tile-avatar,
.social-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.55);
    background: var(--steam-bg-inset);
}

.social-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    background: var(--bg-elevated);
}
.profile-avatar.avatar-fallback {
    font-size: 32px;
    background: var(--steam-bg-inset);
}

.friend-request-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.friend-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.friend-request-row:last-child {
    border-bottom: 0;
}

.friend-request-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    min-width: 0;
}

.friend-request-user:hover {
    text-decoration: none;
    color: #fff;
}

.friend-request-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.comment-form textarea {
    width: 100%;
    min-height: 72px;
    margin-bottom: 8px;
    resize: vertical;
}

.comment-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.friend-request-actions .btn-primary,
.friend-request-actions .btn-ghost,
.comment-form-row .btn-primary {
    width: auto;
}

.comment-counter {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-form-error {
    color: var(--danger) !important;
    margin-top: 8px;
}

.profile-comment-list {
    margin-top: 16px;
}

.profile-comment {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.profile-comment:last-child {
    border-bottom: 0;
}

.comment-body {
    min-width: 0;
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 700;
    color: var(--accent);
}

.comment-time {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-delete {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.comment-delete:hover {
    color: var(--danger);
}

.comment-text {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
    word-wrap: break-word;
}

@media (max-width: 800px) {
    .profile-form-grid { grid-template-columns: 1fr; }
    .profile-header-large { margin-top: 0; }
    .profile-avatar-large { margin-top: 0; }
    .profile-identity, .profile-actions { padding-top: 0; }
    .profile-actions { width: 100%; }
    .friend-request-row {
        flex-wrap: wrap;
    }
}

.nav-local-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #66c0f4;
    border-radius: var(--radius);
    background: #1a3a4e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.nav-local-login:hover {
    background: #24587a;
    border-color: #9bd6f5;
    color: #fff;
    text-decoration: none;
}

/* ---- Role badges ---- */

.role-pill {
    display: inline-block;
    background: color-mix(in srgb, var(--role-color, var(--accent)) 22%, var(--steam-bg-inset));
    border: 1px solid color-mix(in srgb, var(--role-color, var(--accent)) 55%, rgba(0, 0, 0, 0.55));
    color: var(--role-color, var(--accent));
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    margin-left: 4px;
}

.role-pill-sm {
    font-size: 9px;
    padding: 1px 6px;
}

.shout-item .role-pill {
    margin-left: 2px;
    margin-right: 2px;
}

.news-meta .role-pill {
    margin-left: 6px;
}

/* ---- Login page ---- */

.login-box { max-width: 480px; margin: 36px auto; }
.login-intro { margin-bottom: 16px; font-size: 12px; }
.login-form { margin-bottom: 0; }
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.login-steam-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Discord sidebar widget */
.discord-widget .box-body {
    padding-top: 12px;
}

.discord-widget-header {
    margin-bottom: 10px;
}

.discord-server-name {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 6px;
}

.discord-stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
}

.discord-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}

.discord-stat-muted {
    color: var(--text-muted);
}

.discord-section-label {
    margin: 10px 0 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.discord-channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.discord-channel-list li {
    font-size: 11px;
    color: var(--text);
    padding: 3px 0;
}

.discord-channel-list li i {
    color: var(--text-muted);
    margin-right: 4px;
    font-size: 10px;
}

.discord-channel-list .discord-more,
.discord-more-members {
    color: var(--text-muted);
    font-size: 10px;
}

.discord-member-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.discord-member {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
}

.discord-member:last-child {
    border-bottom: 0;
}

.discord-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.discord-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    background: var(--bg-input);
}

.discord-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
}

.discord-status {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-sizing: border-box;
}

.discord-status-online { background: var(--success); }
.discord-status-idle { background: #f1c40f; }
.discord-status-dnd { background: var(--danger); }
.discord-status-offline { background: #505a66; }

.discord-member-meta {
    min-width: 0;
    flex: 1;
}

.discord-member-name {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-member-game {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-fallback-copy {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-muted);
}

.discord-no-invite {
    margin: 8px 0 0;
    font-size: 10px;
}

.discord-join-btn {
    margin-top: 12px;
}

/* Homepage hero */
.home-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 28px 28px 24px;
    background: var(--panel-gradient);
    border: 1px solid rgba(0, 0, 0, 0.85);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.home-hero.has-media .home-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.95fr);
    gap: 28px;
    align-items: center;
}

.home-hero-title {
    margin: 0 0 10px;
    color: var(--text-light);
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-hero-lead {
    margin: 0 0 14px;
    color: var(--accent-blue);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.home-hero-body {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    max-width: 58ch;
    overflow-wrap: anywhere;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    color: var(--text-light) !important;
    background: var(--bg-input);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-hero-btn:hover {
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.home-hero-btn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.home-hero-btn-primary {
    background: linear-gradient(180deg, var(--steam-green-top) 0%, var(--steam-green-bottom) 100%);
    border-color: var(--steam-green-border);
    color: #d2efa9 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.home-hero-btn-primary:hover {
    filter: brightness(1.08);
    color: #fff !important;
}

.home-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-hero-links a {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
}

.home-hero-links a i {
    color: var(--accent-blue);
    margin-right: 5px;
}

.home-hero-links a:hover {
    color: var(--accent-blue);
}

.home-hero-media {
    min-width: 0;
}

.home-hero-media-label {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero-video-poster {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.home-hero-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    margin: -24px 0 0 -34px;
    border-radius: 12px;
    background: #ff0033;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.home-hero-video-poster:hover .home-hero-video-play,
.home-hero-video-poster:focus-visible .home-hero-video-play {
    background: #ff1a47;
}

.home-hero-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.75);
    background: #000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.home-hero-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.voice-connect { margin-top: 10px; display: block; text-align: center; }

/* ---- Static pages (About, Rules, Resources) ---- */

.static-page-intro {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 88ch;
}

.static-page-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.static-page-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.static-page-heading {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.static-page-text {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
    max-width: 88ch;
}

.static-page-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    background: rgba(102, 192, 244, 0.08);
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.static-page-actions {
    margin: 22px 0 0;
}

.help-status {
    margin: 0 0 22px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}

.help-status.is-warn {
    border-left-color: var(--vip);
}

.help-status.is-banned {
    border-left-color: var(--danger);
}

.help-status > strong {
    display: block;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.help-status p {
    margin: 0 0 10px;
    color: var(--text-muted);
    line-height: 1.6;
}

.help-status-list,
.help-strike-log {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.65;
}

.help-status-list li + li,
.help-strike-log li + li {
    margin-top: 4px;
}

.help-status-reason,
.help-status-sub {
    margin: 10px 0 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.help-status-actions {
    margin: 12px 0 0;
    font-size: 13px;
}

.help-jump {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin: 0 0 26px;
}

.help-jump-support {
    margin: 14px 0 16px;
}

.help-section {
    scroll-margin-top: 18px;
}

.help-section:target {
    background: rgba(102, 192, 244, 0.05);
    border-radius: 3px;
    padding: 12px 14px 16px;
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
}

.help-support-cta {
    margin-top: 8px;
    padding: 12px 14px;
    background: rgba(102, 192, 244, 0.08);
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-left: 3px solid var(--accent);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.help-support-cta p {
    margin: 0;
}

.help-support-cta p + p {
    margin-top: 10px;
}

.static-rules-list {
    margin: 0;
    padding-left: 22px;
    color: var(--text);
    line-height: 1.65;
}

.static-rules-list li {
    margin-bottom: 8px;
}

.static-rules-list li:last-child {
    margin-bottom: 0;
}

.rules-markdown {
    max-width: 88ch;
}

.rules-markdown h2 {
    color: var(--accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.resource-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.resource-card:hover {
    border-color: rgba(102, 192, 244, 0.45);
    background: rgba(102, 192, 244, 0.06);
    text-decoration: none;
}

.resource-card-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(102, 192, 244, 0.1);
    border: 1px solid rgba(102, 192, 244, 0.25);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 14px;
}

.resource-card-body {
    flex: 1;
    min-width: 0;
}

.resource-card-title {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 4px;
}

.resource-card-desc {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.resource-card-external {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 2px;
}

.resource-card:hover .resource-card-title {
    color: var(--accent);
}

/* ---- About team cards ---- */

.team-section .static-page-text {
    margin-bottom: 14px;
}

.team-section .static-page-heading i {
    margin-right: 8px;
}

.team-section-featured {
    padding: 18px 16px 20px;
    margin: 0 0 24px;
    background: linear-gradient(180deg, rgba(102, 192, 244, 0.1) 0%, rgba(23, 26, 33, 0.35) 100%);
    border: 1px solid rgba(102, 192, 244, 0.28);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.team-section-featured .static-page-heading {
    font-size: 16px;
    color: #fff;
}

.team-section-featured .static-page-heading i {
    color: var(--accent);
}

.team-section-featured .static-page-text {
    max-width: none;
    color: var(--text);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.team-grid-featured {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(27, 40, 56, 0.95) 0%, rgba(22, 26, 33, 0.95) 100%);
    border: 1px solid rgba(0, 0, 0, 0.55);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    min-height: 80px;
}

.team-card:hover {
    border-color: rgba(102, 192, 244, 0.5);
    background: linear-gradient(180deg, rgba(42, 71, 94, 0.55) 0%, rgba(22, 26, 33, 0.95) 100%);
    text-decoration: none;
    transform: translateY(-1px);
}

.team-card-featured {
    padding: 16px;
    min-height: 104px;
    border-color: rgba(102, 192, 244, 0.4);
    background: linear-gradient(180deg, rgba(42, 71, 94, 0.55) 0%, rgba(23, 26, 33, 0.95) 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(102, 192, 244, 0.12);
}

.team-card-featured:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(102, 192, 244, 0.18), inset 0 1px 0 rgba(102, 192, 244, 0.2);
}

.team-card-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(102, 192, 244, 0.28);
    background: #090b0e;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.team-card-featured .team-card-avatar {
    width: 76px;
    height: 76px;
    border-color: rgba(102, 192, 244, 0.55);
    box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.18);
}

.team-card-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--accent);
    font-size: 22px;
}

.team-card-body {
    flex: 1;
    min-width: 0;
}

.team-card-name {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-card-featured .team-card-name {
    font-size: 16px;
}

.team-card:hover .team-card-name {
    color: var(--accent);
}

.team-card-title {
    display: block;
    margin-top: 4px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.team-card-featured .team-card-title {
    font-size: 12px;
}

.team-card-go {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.team-card-featured .team-card-go {
    font-size: 16px;
}

.team-card:hover .team-card-go {
    color: var(--accent);
}

@media (max-width: 700px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Stats helpers ---- */

.stat-muted { color: var(--text-muted); }
.stat-accent { color: var(--accent); font-weight: 700; }
.stat-positive { color: var(--success); font-weight: 600; }

.clearfix::after { content: ""; display: table; clear: both; }

/* ---- Footer ---- */

.site-foot {
    margin-top: auto;
}

#footer {
    background: linear-gradient(180deg, #171a21 0%, #101419 100%);
    border-top: 1px solid #000;
    padding: 24px var(--page-pad-x) 28px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ---- Responsive ---- */

@media (max-width: 1240px) {
    .nav-auth .role-pill { display: none; }
}

@media (max-width: 1100px) {
    #content.content-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .server-row {
        grid-template-columns: 1fr;
    }

    .server-stats {
        align-items: flex-start;
        text-align: left;
    }

    .home-hero.has-media .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-header {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
    }

    .nav-auth,
    .nav-auth-user {
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        justify-self: end;
    }

    .home-hero {
        padding: 20px 18px;
    }

    .home-hero.has-media .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-title {
        font-size: 28px;
    }

    .box-head {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    #wrapper,
    .site-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    body.has-panorama #wrapper,
    body.has-panorama .site-shell {
        width: calc(100% - 16px);
        margin: 8px auto 16px;
        border-radius: 3px;
        border-left: 1px solid rgba(0, 0, 0, 0.85);
        border-right: 1px solid rgba(0, 0, 0, 0.85);
    }

    :root {
        --page-pad-x: 16px;
        --page-pad-y: 16px;
    }

    .site-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        grid-template-columns: none;
    }

    .logo,
    .site-search {
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .nav-auth {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .home-hero-actions,
    .server-card-actions {
        width: 100%;
    }

    .home-hero-btn,
    .server-card-actions .btn-ghost,
    .server-card-actions .btn-connect {
        flex: 1 1 140px;
        justify-content: center;
    }

    .server-stat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .featured-partner-logo img,
    .home-hero-video,
    .home-hero-video iframe,
    .home-hero-video-poster {
        max-width: 100%;
    }

    .user-panel {
        flex: 1 1 100%;
    }

    .nav-list li a {
        padding: 0 10px;
        font-size: 12px;
    }

    .nav-list li i {
        margin-right: 4px;
    }

    .home-hero {
        padding: 18px 14px;
    }

    .profile-header,
    .profile-header-large,
    .profile-identity,
    .profile-actions {
        min-width: 0;
        max-width: 100%;
    }

    .home-hero-lead {
        font-size: 15px;
    }
}

.code-block {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.toolbar-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.friends-sent-title {
    margin-top: 18px;
}

.btn-primary:hover {
    text-decoration: none;
    color: #fff;
}

/* ---- Maintenance page ---- */

.maintenance-body {
    min-height: 100vh;
}

.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(900px 480px at 50% -10%, rgba(102, 192, 244, 0.12), transparent 55%),
        radial-gradient(700px 400px at 100% 100%, rgba(65, 122, 155, 0.1), transparent 50%),
        var(--steam-bg-main);
}

.maintenance-shell {
    width: 100%;
    max-width: 560px;
}

.maintenance-top {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: var(--header-gradient);
    border: 1px solid rgba(0, 0, 0, 0.65);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.maintenance-top .logo h1 {
    font-size: 26px;
}

.maintenance-card {
    width: 100%;
    padding: 32px 32px 26px;
    background: var(--panel-gradient);
    border: 1px solid rgba(0, 0, 0, 0.65);
    border-top: 1px solid rgba(102, 192, 244, 0.28);
    border-radius: 0 0 4px 4px;
    box-shadow: var(--shadow);
    text-align: center;
}

.maintenance-preview-note {
    margin: 0 0 18px;
    padding: 8px 12px;
    background: rgba(102, 192, 244, 0.1);
    border: 1px solid rgba(102, 192, 244, 0.28);
    color: var(--accent);
    font-size: 12px;
}

.maintenance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maintenance-badge i {
    animation: maintenance-pulse 1.8s ease-in-out infinite;
}

@keyframes maintenance-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.maintenance-card > h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.maintenance-message {
    margin: 0 0 24px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

.feature-maintenance .empty-state {
    padding: 36px 16px;
}

.feature-maintenance .empty-state span {
    max-width: 42em;
    display: block;
    margin: 8px auto 0;
    line-height: 1.55;
}

.maintenance-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.maintenance-actions .home-hero-btn {
    justify-content: center;
}

.maintenance-staff {
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.maintenance-staff p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.maintenance-staff a {
    color: var(--accent);
}

.maintenance-foot {
    margin: 18px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 520px) {
    .maintenance-top {
        padding: 14px;
    }

    .maintenance-top .logo-brand {
        gap: 12px;
    }

    .maintenance-top .site-logo {
        width: 48px;
        height: 48px;
    }

    .maintenance-top .logo h1 {
        font-size: 22px;
    }

    .maintenance-card {
        padding: 24px 18px 20px;
    }

    .maintenance-card > h1 {
        font-size: 22px;
    }

    .maintenance-actions {
        flex-direction: column;
    }

    .maintenance-actions .home-hero-btn {
        width: 100%;
    }
}

/* ---- Empty states ---- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 22px;
    color: var(--accent);
    opacity: 0.7;
    margin-bottom: 4px;
}

.empty-state p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.empty-state span,
.empty-state .empty-state-hint {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 36ch;
}

.empty-state-compact {
    min-height: 120px;
    padding: 18px 10px;
}

.empty-state-compact i { font-size: 18px; }
.empty-state-compact p { font-size: 12px; font-weight: 600; }

.shout-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: var(--text-muted);
    font-size: 12px;
}

.data-table td.empty-cell,
.bans-table td.empty-cell {
    padding: 22px 14px;
}

/* Font Awesome 4 has no Discord glyph */
.fa-discord:before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.22 5.15A19.2 19.2 0 0 0 15.62 4c-.2.36-.43.83-.59 1.2a17.7 17.7 0 0 0-6.06 0A8.3 8.3 0 0 0 8.38 4a19.1 19.1 0 0 0-4.6 1.16C.96 9.07.22 12.88.5 16.63A19.4 19.4 0 0 0 6.3 20c.38-.52.72-1.07 1.02-1.65a12.5 12.5 0 0 1-1.6-.78c.13-.1.27-.2.4-.3 3.17 1.5 6.61 1.5 9.74 0 .13.1.27.2.4.3-.52.3-1.06.56-1.61.78.3.58.64 1.13 1.02 1.65a19.4 19.4 0 0 0 5.8-3.37c.4-4.07-.67-7.84-2.85-11.48ZM8.02 14.4c-.95 0-1.73-.88-1.73-1.96 0-1.08.76-1.97 1.73-1.97s1.75.88 1.73 1.97c0 1.08-.76 1.96-1.73 1.96Zm7.96 0c-.95 0-1.73-.88-1.73-1.96 0-1.08.76-1.97 1.73-1.97s1.75.88 1.73 1.97c0 1.08-.76 1.96-1.73 1.96Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.22 5.15A19.2 19.2 0 0 0 15.62 4c-.2.36-.43.83-.59 1.2a17.7 17.7 0 0 0-6.06 0A8.3 8.3 0 0 0 8.38 4a19.1 19.1 0 0 0-4.6 1.16C.96 9.07.22 12.88.5 16.63A19.4 19.4 0 0 0 6.3 20c.38-.52.72-1.07 1.02-1.65a12.5 12.5 0 0 1-1.6-.78c.13-.1.27-.2.4-.3 3.17 1.5 6.61 1.5 9.74 0 .13.1.27.2.4.3-.52.3-1.06.56-1.61.78.3.58.64 1.13 1.02 1.65a19.4 19.4 0 0 0 5.8-3.37c.4-4.07-.67-7.84-2.85-11.48ZM8.02 14.4c-.95 0-1.73-.88-1.73-1.96 0-1.08.76-1.97 1.73-1.97s1.75.88 1.73 1.97c0 1.08-.76 1.96-1.73 1.96Zm7.96 0c-.95 0-1.73-.88-1.73-1.96 0-1.08.76-1.97 1.73-1.97s1.75.88 1.73 1.97c0 1.08-.76 1.96-1.73 1.96Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#footer a {
    color: var(--accent);
}

#footer a:hover {
    color: #fff;
}

.lr-count {
    margin: 0;
    white-space: nowrap;
}
