/* MATRIX RUST — лендинг сервера */

/* Кнопка «Войти» / кабинет в шапке */
.nav__login {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(46, 196, 182, 0.45);
    background: rgba(46, 196, 182, 0.12);
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
}
.nav__login:hover {
    background: rgba(46, 196, 182, 0.22);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav__login--cabinet {
    padding: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.nav__login-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 0 12px var(--accent-glow);
}
.nav__login-avatar[hidden] {
    display: none !important;
}
.nav__login-label[hidden] {
    display: none !important;
}

/* Пока проверяется сессия — не мелькает «Войти» (дублируется inline в index.html до загрузки CSS) */
html.auth-nav-loading .nav__login {
    visibility: hidden;
    pointer-events: none;
}

html.auth-nav-ready .nav__login {
    visibility: visible;
    pointer-events: auto;
}

/* Модальное окно входа */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-modal[hidden] {
    display: none !important;
}
.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 7, 0.82);
    backdrop-filter: blur(8px);
}
.auth-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: min(90vh, 720px);
    overflow: auto;
    border-radius: 16px;
    background: linear-gradient(165deg, #1a2a26 0%, #0d1513 55%, #0a100e 100%);
    border: 1px solid rgba(46, 196, 182, 0.25);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(46, 196, 182, 0.08);
    animation: authModalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.auth-modal__dialog--wide {
    max-width: 560px;
}
.auth-modal__avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}
.nav__login-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}
.auth-modal__synced {
    margin: 0 0 10px;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: right;
}
.auth-stat-section {
    margin-bottom: 14px;
}
.auth-stat-section__title {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.auth-stat-section__sum {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}
.auth-modal__grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
.auth-modal__grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
.auth-stat-extra {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.auth-stat-extra strong {
    color: var(--text);
}
.auth-stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.auth-stat-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.78rem;
}
.auth-stat-list__label {
    color: var(--text-muted);
}
.auth-stat-list__value {
    font-weight: 700;
    color: var(--text);
}
.auth-stat-list__empty {
    padding: 8px 10px;
    font-size: 0.75rem;
    color: var(--text-dim);
}
@keyframes authModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.auth-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.auth-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}
.auth-modal__inner {
    padding: 28px 24px 24px;
}
.auth-modal__guest {
    text-align: center;
}
.auth-modal__hero {
    margin-bottom: 20px;
}
.auth-modal__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.auth-modal__title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}
.auth-modal__lead {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.auth-modal__features {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.auth-modal__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-modal__feat-icon {
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
}
.auth-modal__steam {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #1b2838 0%, #171a21 100%);
    border: 1px solid rgba(102, 192, 244, 0.35);
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.auth-modal__steam:hover {
    transform: translateY(-2px);
    border-color: #66c0f4;
    box-shadow: 0 8px 28px rgba(23, 26, 33, 0.8);
}
.auth-modal__steam-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #c7d5e0;
}
.auth-modal__steam-icon svg {
    display: block;
}
.auth-modal__steam:hover .auth-modal__steam-icon {
    color: #fff;
    background: rgba(102, 192, 244, 0.2);
}
.auth-modal__steam-text {
    display: flex;
    align-items: center;
    text-align: left;
}
.auth-modal__steam-text strong {
    font-size: 1rem;
}
.auth-modal__note {
    margin: 16px 0 0;
    font-size: 0.75rem;
    color: var(--text-dim);
}
.auth-modal__cabinet {
    text-align: left;
}
.auth-modal__cabinet-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-right: 28px;
}
.auth-modal__user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.auth-modal__avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 0 16px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}
.auth-modal__welcome {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-modal__name {
    margin: 2px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.auth-modal__steam-id {
    margin: 2px 0 0;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: ui-monospace, monospace;
}
.auth-modal__message {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(46, 196, 182, 0.1);
    border: 1px solid var(--border);
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-modal__message--error {
    background: rgba(230, 126, 34, 0.1);
    border-color: rgba(230, 126, 34, 0.35);
    color: #f0c090;
}
.auth-modal__rank {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(46, 196, 182, 0.15) 0%, rgba(46, 196, 182, 0.04) 100%);
    border: 1px solid var(--border);
}
.auth-modal__rank-label {
    font-size: 0.85rem;
    font-weight: 600;
}
.auth-modal__rank-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
}
.auth-modal__rank-value {
    grid-row: 1 / 3;
    grid-column: 2;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.auth-modal__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.auth-stat {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.auth-stat--pvp {
    border-color: rgba(46, 196, 182, 0.2);
    background: rgba(46, 196, 182, 0.06);
}
.auth-stat__label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.auth-stat__value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}
body.auth-modal-open {
    overflow: hidden;
}
@media (max-width: 480px) {
    .auth-modal__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .auth-modal__name {
        max-width: 140px;
    }
}
:root {
    --page-bg-image: none;
    --accent: #2ec4b6;
    --accent-dark: #1a9e92;
    --accent-glow: rgba(46, 196, 182, 0.35);
    --warm: #e67e22;
    --bg: #050908;
    --bg-card: #13201c;
    --bg-card-hover: #1a2824;
    --border: rgba(46, 196, 182, 0.15);
    --text: #f0faf8;
    --text-muted: rgba(224, 242, 239, 0.72);
    --text-dim: #5a7d76;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1140px;
    --header-h: 72px;
    --section-py: 44px;
    --section-head-mb: 28px;
    --card-pad: 16px;
    --grid-gap: 12px;
    --font: "Montserrat", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: var(--page-bg-image);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 9, 8, 0.82) 0%, rgba(5, 9, 8, 0.94) 45%, rgba(5, 9, 8, 0.97) 100%);
    pointer-events: none;
}

img,
picture img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #5ee0d4;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background: rgba(5, 9, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.05em;
}

.logo__img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--border);
    box-shadow: 0 0 16px var(--accent-glow);
}

.logo__mark {
    display: none;
}

.logo__text strong {
    color: var(--accent);
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav__shop {
    background: var(--accent) !important;
    color: var(--bg) !important;
    font-weight: 600 !important;
}

.nav__shop:hover {
    background: #3dd9cb !important;
    color: var(--bg) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--bg);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
    box-shadow: 0 6px 32px var(--accent-glow);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn--sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn[hidden] {
    display: none !important;
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--card-pad);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 60px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: transparent;
}

.hero__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero__glow--left {
    top: 20%;
    left: -10%;
    background: var(--accent-glow);
}

.hero__glow--right {
    bottom: 10%;
    right: -5%;
    background: rgba(230, 126, 34, 0.15);
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(46, 196, 182, 0.12);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.hero__title {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ffffff, #2ec4b6, #5ee0d4, #ffffff);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 12s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 400% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.hero__title span {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    margin: 0 0 28px;
    max-width: 540px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.hero__field-label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.hero__field-label--ip {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
}

.hero__field-label--promo {
    color: #f0b070;
    text-shadow: 0 0 10px rgba(230, 126, 34, 0.25);
}

.hero__field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.hero__field-row .btn {
    flex-shrink: 0;
}

.hero__ip-value {
    flex: 1;
    min-width: 200px;
    font-size: 0.95rem;
    color: var(--accent);
    word-break: break-all;
}

.hero__ip,
.hero__promo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 14px;
    padding: 14px 18px;
    border-radius: var(--radius);
}

.hero__ip {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
}

.hero__promo {
    margin-bottom: 20px;
    background: rgba(230, 126, 34, 0.08);
    border: 1px solid rgba(230, 126, 34, 0.35);
}

.hero__promo-value {
    flex: 1 1 auto;
    min-width: 100px;
    margin: 0;
    padding: 10px 16px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--warm);
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.35);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(230, 126, 34, 0.25);
}

.hero__promo-hint {
    width: 100%;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.hero__promo-hint a {
    color: var(--accent);
    font-weight: 600;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__card.card {
    padding: 24px;
}

.hero__card-title {
    margin: 0 0 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stat-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-list li:last-child {
    border-bottom: none;
}

.stat-list__label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.stat-list__value {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.stat-list__value--accent {
    color: var(--accent);
}

.hero__card-hint {
    margin: 10px 0 0;
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.hero__card-hint code {
    font-size: 0.7rem;
    color: var(--accent);
}



/* Слайдер новостей */
.news-container-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-nav-controls {
    display: none;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
}

.news-nav-controls.is-ready {
    display: flex;
}

.news-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warm), #d35400);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    line-height: 1; /* Фикс съезда стрелки */
    padding: 0;
}

.news-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(230, 126, 34, 0.6);
}

.news-nav-btn:active {
    transform: scale(0.95);
}

.news-nav-btn[hidden] {
    display: none !important;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
    transition: opacity 0.3s;
}

.news-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--warm), #d35400);
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    z-index: 10;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.news-nav-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(230, 126, 34, 0.6);
}

.news-nav-btn:active {
    transform: scale(0.95);
}

.news-nav-btn[hidden] {
    display: none !important;
}.news-nav-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.news-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.news-card__img-wrap {
    position: relative;
    width: 100%;
    padding-top: var(--news-image-ratio, 75%);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.news-card__img-wrap .news-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 35px rgba(46, 196, 182, 0.18);
}

.news-card__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid var(--border);
    display: block;
}

.news-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(46, 196, 182, 0.32);
    background: rgba(46, 196, 182, 0.12);
    line-height: 1;
    max-width: 100%;
    white-space: nowrap;
    align-self: flex-start;
}

.news-card__title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.news-card__body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    max-height: 9.5rem;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 196, 182, 0.7) rgba(255, 255, 255, 0.06);
}

.news-card__body::-webkit-scrollbar {
    width: 6px;
}

.news-card__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.news-card__body::-webkit-scrollbar-thumb {
    background: rgba(46, 196, 182, 0.7);
    border-radius: 999px;
}

.news-card__body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.news-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.news-card--pinned {
    border-color: var(--warm);
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.1);
}

.news-card--pinned .news-card__tag {
    color: var(--warm);
}

.section {
    padding: var(--section-py) 0;
    scroll-margin-top: calc(var(--header-h) + 18px);
}

.section--alt {
    background: rgba(19, 32, 28, 0.72);
}

.section--plain {
    background: transparent;
}

.section__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--section-head-mb);
}

.section__head--left {
    text-align: left;
    margin-left: 0;
    max-width: none;
}

.section__tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(46, 196, 182, 0.12);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(46, 196, 182, 0.08);
}

.section__head h2 {
    margin: 0 0 10px;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
}

.section__desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.section__desc code {
    color: var(--accent);
    font-size: 0.9em;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.about-card__icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.about-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.about-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--accent);
}

.feature p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Steps */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--grid-gap);
}

.steps__item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
}

.steps__num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    font-weight: 800;
    font-size: 1.1rem;
}

.steps__item h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.steps__item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.connect-cmd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.connect-cmd code {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.9rem;
}

/* Промокод в шаге «Как подключиться» */
.step-promo {
    margin-top: 10px;
    padding: 14px 16px;
    background: rgba(230, 126, 34, 0.08);
    border: 1px solid rgba(230, 126, 34, 0.35);
    border-radius: var(--radius-sm);
}

.step-promo__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.step-promo__code {
    flex: 1 1 auto;
    min-width: 100px;
    margin: 0;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--warm);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(230, 126, 34, 0.25);
    border-radius: var(--radius-sm);
}

.step-promo__row .btn {
    flex-shrink: 0;
}

.step-promo__hint {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.step-promo__hint a {
    color: var(--accent);
    font-weight: 600;
}

kbd {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85em;
}

/* Wipe */
.wipe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
}

.wipe-card--wide {
    grid-column: 1 / -1;
}

.wipe-card h3 {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wipe-card__big {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.wipe-card__sub {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Rules — краткий список */
.rules-list {
    list-style: none;
    margin: 0 auto;
    padding: 18px 24px 18px 28px;
    max-width: 760px;
}

.rules-list li {
    position: relative;
    padding: 11px 0 11px 24px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rules-list li:first-child {
    padding-top: 0;
}

.rules-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.rules-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.35em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow), 0 0 18px rgba(46, 196, 182, 0.25);
    transform: translateY(-50%);
}

.rules-list li:first-child::before {
    top: 0.85em;
}

/* Nested rules lists */
.rules-list .rules-list {
    margin: 10px 0 0;
    padding: 0 0 0 24px;
    max-width: none;
}

.rules-list .rules-list li {
    padding: 6px 0 6px 20px;
    border-bottom: none;
    font-size: 0.95rem;
}

.rules-list .rules-list li::before {
    width: 8px;
    height: 8px;
    opacity: 0.8;
}

.rules-cta {
    margin-top: 18px;
    text-align: center;
}

/* Social / Telegram */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 28px var(--accent-glow);
    color: var(--text);
}

.social-card--tg {
    background: linear-gradient(145deg, rgba(36, 161, 222, 0.12), var(--bg-card));
}

.social-card--shop {
    background: linear-gradient(145deg, rgba(46, 196, 182, 0.1), var(--bg-card));
}

.social-card__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.social-card__icon--brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-card__icon--brand svg {
    display: block;
}

.social-card__icon--tg {
    color: #2aabee;
}

.social-card__icon--discord {
    color: #5865f2;
}

.social-card__icon--shop {
    color: var(--accent);
}

.social-card--discord {
    background: linear-gradient(145deg, rgba(88, 101, 242, 0.12), var(--bg-card));
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px var(--accent-glow); }
    50% { box-shadow: 0 0 30px rgba(46, 196, 182, 0.5); }
    100% { box-shadow: 0 0 15px var(--accent-glow); }
}

.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-revealed {
    opacity: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__content {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__card {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.logo__img {
    animation: pulse-glow 3s infinite ease-in-out;
}

.btn--primary {
    transition: all 0.3s ease;
}

.btn--primary:hover {
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.steps__num {
    animation: float 4s infinite ease-in-out;
}

.steps__item:nth-child(2) .steps__num { animation-delay: 0.5s; }
.steps__item:nth-child(3) .steps__num { animation-delay: 1s; }
.steps__item:nth-child(4) .steps__num { animation-delay: 1.5s; }

.hero__badge {
    position: relative;
    overflow: hidden;
}

.hero__badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to { left: 100%; }
}

.social-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.social-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.social-card__btn {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

/* CTA */
.cta {
    padding: 0 0 var(--section-py);
}

.cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(46, 196, 182, 0.08) 100%);
}

.cta__inner h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.cta__inner p {
    margin: 0;
    color: var(--text-muted);
}

.cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Footer */
.footer {
    padding: 22px 0;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.footer__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer__brand {
    margin: 0 0 4px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.footer__copy {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 200;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
}

.toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .wipe-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 36px;
        --section-head-mb: 22px;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + 28px) 0 48px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 16px;
        background: rgba(5, 9, 8, 0.98);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s, opacity 0.25s;
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav a,
    .nav__login {
        width: 100%;
        text-align: center;
        padding: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .nav a::before {
        font-size: 1.4rem;
        margin-bottom: 2px;
        font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    }

    .nav a[data-nav-icon="about"]::before { content: "ℹ️"; }
    .nav a[data-nav-icon="rules"]::before { content: "📜"; }
    .nav a[data-nav-icon="telegram"]::before { content: "📢"; }
    .nav a[data-nav-icon="connect"]::before { content: "🎮"; }
    .nav a[data-nav-icon="stats"]::before { content: "📊"; }
    .nav a[data-shop-link]::before { content: "🛒"; }
    .nav__login:not(.nav__login--cabinet)::before { content: "🔐"; }
    .nav__login--cabinet::before { content: none; }
}

/* ——— Статистика / профиль / топы ——— */
.page-stats .stats-page-main {
    padding-top: 88px;
    padding-bottom: 48px;
    min-height: 70vh;
}
.stats-page-title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}
.nav__link--active {
    color: var(--accent) !important;
}
.stats-hub__head {
    margin-bottom: 24px;
}
.stats-hub__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.stats-hub__tab {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.stats-hub__tab:hover {
    color: var(--text);
    border-color: rgba(46, 196, 182, 0.35);
}
.stats-hub__tab.is-active {
    background: rgba(46, 196, 182, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}
.stats-hub__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.stats-hub__cat {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.stats-hub__cat.is-active {
    background: rgba(46, 196, 182, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}
.stats-hub__cat-icon {
    margin-right: 4px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.stats-tops {
    padding: 20px;
}
.stats-tops__loading,
.stats-tops__empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    padding: 24px 12px;
}
.stats-tops__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stats-tops__item {
    display: grid;
    grid-template-columns: 36px 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.stats-tops__item--gold {
    border-color: rgba(255, 200, 80, 0.35);
    background: linear-gradient(90deg, rgba(255, 200, 80, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.stats-tops__item--silver {
    border-color: rgba(180, 190, 200, 0.3);
}
.stats-tops__item--bronze {
    border-color: rgba(205, 140, 80, 0.3);
}
.stats-tops__rank {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    text-align: center;
}
.stats-tops__avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.stats-tops__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stats-tops__name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stats-tops__value {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
}
.stats-hub__meta {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
}
.stats-tops__list--clans .stats-tops__item--clan {
    grid-template-columns: 36px 36px 1fr auto auto;
}
.stats-tops__item--clan {
    display: grid;
    grid-template-columns: 36px 36px 1fr auto auto;
    align-items: center;
    gap: 12px;
}
.stats-tops__clan-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.stats-tops__name--link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.stats-tops__name--link:hover {
    color: var(--accent);
    text-decoration: underline;
}
.stats-tops__clan-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}
.stats-clan-page__back {
    margin: 0 0 12px;
    font-size: 0.85rem;
}
.stats-clan-page__back a {
    color: var(--text-dim);
    text-decoration: none;
}
.stats-clan-page__back a:hover {
    color: var(--accent);
}
.stats-clan-summary {
    margin-bottom: 20px;
    padding: 20px;
}
.stats-clan-summary__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.stats-clan-page__tops-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
}
.stats-profile__hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    margin-bottom: 16px;
}
.stats-profile__hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}
.stats-profile__avatar {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    font-size: 2rem;
}
.stats-profile__server {
    margin: 0 0 8px;
    font-size: clamp(1.1rem, 2.8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
}
.stats-profile__server-accent {
    color: var(--accent);
    text-shadow: 0 0 24px var(--accent-glow), 0 0 48px rgba(46, 196, 182, 0.35);
}
.stats-profile__name {
    margin: 0;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 24px rgba(46, 196, 182, 0.25);
}
.stats-profile__steam {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: ui-monospace, monospace;
}
.stats-profile__synced {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: var(--text-dim);
}
.stats-profile__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.stats-profile__message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(46, 196, 182, 0.08);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.stats-profile__message--error {
    background: rgba(230, 126, 34, 0.1);
    border-color: rgba(230, 126, 34, 0.35);
}
.stats-profile__cta {
    padding: 32px 24px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.stats-profile__cta-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
}
.stats-profile__cta-text {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.stats-profile__steam-btn {
    max-width: 320px;
    margin: 0 auto;
}
.stats-profile__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.stats-profile__block-title {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.stats-block {
    padding: 18px;
}
.stats-block--lists {
    grid-column: 1 / -1;
}
.stats-block__row {
    display: grid;
    gap: 8px;
}
.stats-block__row--highlight {
    grid-template-columns: 1fr 1fr 1fr;
}
.auth-stat--wide {
    grid-column: span 1;
}
.auth-stat__value--lg {
    font-size: 1.35rem;
}
.auth-stat--rank .auth-stat__value {
    color: var(--accent);
    font-size: 1.2rem;
}
.stats-ranks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.stats-rank-chip {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.stats-rank-chip__place {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}
.stats-rank-chip__label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 2px;
}
.stats-profile__ranks {
    padding: 18px;
    margin-bottom: 16px;
}
@media (max-width: 900px) {
    .stats-profile__grid {
        grid-template-columns: 1fr;
    }
    .stats-block__row--highlight {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 520px) {
    .stats-tops__item {
        grid-template-columns: 28px 36px 1fr auto;
        gap: 8px;
        padding: 10px;
    }
    .stats-tops__item--clan {
        grid-template-columns: 28px 32px 1fr auto;
    }
    .stats-tops__clan-meta {
        display: none;
    }
}

/* Clans toolbar & profile */
.stats-clans-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.stats-profile__clan {
    margin-bottom: 16px;
}
.stats-profile__clan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.stats-profile__clan-head .stats-profile__block-title {
    margin: 0;
}
.stats-profile__clan-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.stats-profile__clan-delete {
    color: #e74c3c;
}
.stats-profile__clan-delete:hover {
    color: #ff6b6b;
    border-color: rgba(231, 76, 60, 0.45);
}
.stats-profile__clan-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.stats-profile__clan-link:hover {
    border-color: rgba(255, 107, 53, 0.35);
    background: rgba(255, 107, 53, 0.06);
}
.stats-profile__clan-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.stats-profile__clan-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.stats-profile__clan-info strong {
    font-size: 1rem;
    font-weight: 700;
}
.stats-profile__clan-info span {
    font-size: 0.78rem;
    color: var(--text-dim);
}
.stats-profile__clan-empty {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.stats-clan-page__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "tag badge"
        "title badge"
        "meta badge";
    align-items: center;
    column-gap: 32px;
    row-gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    text-align: left;
}
.stats-clan-page__head .section__tag {
    grid-area: tag;
    margin-bottom: 0;
    justify-self: start;
}
.stats-clan-page__head .stats-page-title {
    grid-area: title;
    margin: 0;
    justify-self: start;
}
.stats-clan-page__head .section__desc {
    grid-area: meta;
    margin: 0;
    justify-self: start;
}
.stats-clan-page__badge {
    grid-area: badge;
    align-self: center;
    justify-self: end;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 2px solid rgba(255, 107, 53, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.stats-clan-page__badge[hidden] {
    display: none !important;
}
.stats-clan-page__head:not(:has(.stats-clan-page__badge:not([hidden]))) {
    grid-template-columns: 1fr;
    grid-template-areas:
        "tag"
        "title"
        "meta";
}
@media (max-width: 640px) {
    .stats-clan-page__head {
        column-gap: 16px;
    }
    .stats-clan-page__badge {
        width: 88px;
        height: 88px;
        font-size: 2.5rem;
        border-radius: 18px;
    }
}

/* Clan create / customize modal */
body.clan-modal-open {
    overflow: hidden;
}
.clan-modal[hidden] {
    display: none !important;
}
.clan-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.clan-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}
.clan-modal__dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: min(92vh, 720px);
    overflow-y: auto;
    padding: 24px;
    z-index: 1;
}
.clan-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.clan-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.clan-modal__title {
    margin: 0 32px 8px 0;
    font-size: 1.25rem;
}
.clan-modal__lead {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.clan-modal__field {
    display: block;
    margin-bottom: 14px;
}
.clan-modal__field span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}
.clan-modal__field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font: inherit;
}
.clan-modal__fieldset {
    border: none;
    margin: 0 0 14px;
    padding: 0;
}
.clan-modal__fieldset legend {
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}
.clan-icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.clan-icon-btn {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.2rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.clan-icon-btn:hover {
    border-color: rgba(255, 107, 53, 0.45);
    background: rgba(255, 107, 53, 0.08);
}
.clan-icon-btn.is-active {
    border-color: var(--accent);
    background: rgba(255, 107, 53, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.35);
}
.clan-color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.clan-color-preset {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s, border-color 0.15s;
}
.clan-color-preset:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.45);
}
.clan-color-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.clan-color-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
}
.clan-color-picker input[type="color"] {
    width: 40px;
    height: 32px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.clan-modal__preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border);
}
.clan-modal__preview-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-right: auto;
}
.clan-modal__preview-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.clan-modal__preview-name {
    font-weight: 700;
    font-size: 1rem;
}
.clan-modal__error {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(230, 126, 34, 0.12);
    border: 1px solid rgba(230, 126, 34, 0.35);
    color: #f5b041;
    font-size: 0.85rem;
}
.clan-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Clans toolbar & profile */
.stats-clans-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.stats-profile__clan {
    margin-bottom: 16px;
}
.stats-profile__clan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.stats-profile__clan-head .stats-profile__block-title {
    margin: 0;
}
.stats-profile__clan-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.stats-profile__clan-delete {
    color: #e74c3c;
}
.stats-profile__clan-delete:hover {
    color: #ff6b6b;
    border-color: rgba(231, 76, 60, 0.45);
}
.stats-profile__clan-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.stats-profile__clan-link:hover {
    border-color: rgba(255, 107, 53, 0.35);
    background: rgba(255, 107, 53, 0.06);
}
.stats-profile__clan-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.stats-profile__clan-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.stats-profile__clan-info strong {
    font-size: 1rem;
    font-weight: 700;
}
.stats-profile__clan-info span {
    font-size: 0.78rem;
    color: var(--text-dim);
}
.stats-profile__clan-empty {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.stats-clan-page__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "tag badge"
        "title badge"
        "meta badge";
    align-items: center;
    column-gap: 32px;
    row-gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    text-align: left;
}
.stats-clan-page__head .section__tag {
    grid-area: tag;
    margin-bottom: 0;
    justify-self: start;
}
.stats-clan-page__head .stats-page-title {
    grid-area: title;
    margin: 0;
    justify-self: start;
}
.stats-clan-page__head .section__desc {
    grid-area: meta;
    margin: 0;
    justify-self: start;
}
.stats-clan-page__badge {
    grid-area: badge;
    align-self: center;
    justify-self: end;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    border: 2px solid rgba(255, 107, 53, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.stats-clan-page__badge[hidden] {
    display: none !important;
}
.stats-clan-page__head:not(:has(.stats-clan-page__badge:not([hidden]))) {
    grid-template-columns: 1fr;
    grid-template-areas:
        "tag"
        "title"
        "meta";
}
@media (max-width: 640px) {
    .stats-clan-page__head {
        column-gap: 16px;
    }
    .stats-clan-page__badge {
        width: 88px;
        height: 88px;
        font-size: 2.5rem;
        border-radius: 18px;
    }
}

/* Clan create / customize modal */
body.clan-modal-open {
    overflow: hidden;
}
.clan-modal[hidden] {
    display: none !important;
}
.clan-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.clan-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
}
.clan-modal__dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: min(92vh, 720px);
    overflow-y: auto;
    padding: 24px;
    z-index: 1;
}
.clan-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.clan-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.clan-modal__title {
    margin: 0 32px 8px 0;
    font-size: 1.25rem;
}
.clan-modal__lead {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.clan-modal__field {
    display: block;
    margin-bottom: 14px;
}
.clan-modal__field span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}
.clan-modal__field input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font: inherit;
}
.clan-modal__fieldset {
    border: none;
    margin: 0 0 14px;
    padding: 0;
}
.clan-modal__fieldset legend {
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}
.clan-icon-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.clan-icon-btn {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.2rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.clan-icon-btn:hover {
    border-color: rgba(255, 107, 53, 0.45);
    background: rgba(255, 107, 53, 0.08);
}
.clan-icon-btn.is-active {
    border-color: var(--accent);
    background: rgba(255, 107, 53, 0.18);
    box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.35);
}
.clan-color-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.clan-color-preset {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s, border-color 0.15s;
}
.clan-color-preset:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.45);
}
.clan-color-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.clan-color-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
}
.clan-color-picker input[type="color"] {
    width: 40px;
    height: 32px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.clan-modal__preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border);
}
.clan-modal__preview-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-right: auto;
}
.clan-modal__preview-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.clan-modal__preview-name {
    font-weight: 700;
    font-size: 1rem;
}
.clan-modal__error {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(230, 126, 34, 0.12);
    border: 1px solid rgba(230, 126, 34, 0.35);
    color: #f5b041;
    font-size: 0.85rem;
}
.clan-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
