/* L2Crystal — mockup design */

/* ── Legacy reset ── */
body.modern-theme #general {
    display: block !important;
    background: none !important;
    background-image: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 100vh !important;
    overflow: visible !important;
    padding: 0 !important;
}

body.modern-theme .wrapper,
body.modern-theme .wrapper .inner,
body.modern-theme #navi .inner,
body.modern-theme #header .inner,
body.modern-theme #shares .inner,
body.modern-theme #content .inner,
body.modern-theme #rating .inner,
body.modern-theme #footer .inner {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    background: none !important;
    background-image: none !important;
}

body.modern-theme #navi,
body.modern-theme #header,
body.modern-theme #content,
body.modern-theme #shares,
body.modern-theme #rating,
body.modern-theme #footer {
    background: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.modern-theme .news-block .news,
body.modern-theme .news-block {
    width: auto !important;
    height: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-image: none !important;
    box-shadow: none !important;
    top: auto !important;
    left: auto !important;
}

body.modern-theme .ticker {
    display: flex !important;
}

body.modern-theme .header-status,
body.modern-theme .ticker,
body.modern-theme .shares-block,
body.modern-theme .site-header,
body.modern-theme .site-header__nav,
body.modern-theme .lang-switch {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.modern-theme #popup[style*="display: block"],
body.modern-theme #popup[style*="display: flex"] {
    display: flex !important;
}

body.modern-theme #header .logo,
body.modern-theme .hero__logo .logo,
body.modern-theme #header .hero-logo,
body.modern-theme .hero__logo .hero-logo {
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    background: none !important;
    background-image: none !important;
}

body.modern-theme #header .logo::before,
body.modern-theme #header .logo::after,
body.modern-theme .hero-logo::before,
body.modern-theme .hero-logo::after {
    display: none !important;
    content: none !important;
    background: none !important;
}
body.modern-theme #popup .popup-content,
body.modern-theme #popup .popup-close,
body.modern-theme .popup-content-item .link a { background-image: none !important; }

/* ── Variables ── */
:root {
    --bg-deep: #050810;
    --bg-panel: rgba(10, 16, 32, 0.82);
    --bg-card: rgba(14, 22, 42, 0.78);
    --border: rgba(212, 175, 55, 0.22);
    --border-soft: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(124, 92, 255, 0.45);
    --text: #eef2f8;
    --text-muted: #94a3b8;
    --gold: #d4af37;
    --gold-soft: #f0d78c;
    --accent: #7c5cff;
    --accent-blue: #3b82f6;
    --accent-cyan: #22d3ee;
    --online: #22c55e;
    --radius: 14px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --font-ui: 'Inter', system-ui, sans-serif;
    --font-display: 'Cinzel', Georgia, serif;
    --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body.body-js,
body.modern-theme {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-ui);
    color: var(--text);
    background: var(--bg-deep);
    line-height: 1.6;
}

#general {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px 48px;
}

body.modern-theme #general {
    max-width: none !important;
    width: 100% !important;
    padding: 0 0 48px !important;
}

body.modern-theme canvas { max-width: 100%; }
body.modern-theme .status,
body.modern-theme .progress,
body.modern-theme .progress canvas { display: none !important; }

/* ── Header inside hero ── */
.site-header,
.site-header.hero__header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.94) 0%, rgba(12, 8, 32, 0.82) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: none;
}

body.modern-theme #navi.site-header,
body.modern-theme .site-header.hero__header {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

.site-header__promo {
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(0, 0, 0, 0.28);
}

.promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 16px;
    min-height: 0;
    box-sizing: border-box;
}

.promo-banner__text {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
}

.promo-banner__link {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #4ade80;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    white-space: nowrap;
}

.promo-banner__link:hover {
    color: #86efac;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

.site-header.hero__header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.55) 18%,
        rgba(124, 92, 255, 0.45) 50%,
        rgba(212, 175, 55, 0.55) 82%,
        transparent 100%
    );
    pointer-events: none;
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(100px, 140px) 1fr auto;
    align-items: center;
    gap: 16px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 24px 10px;
    min-height: 0;
}

.site-header__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-header__brand img { display: none; }

.site-header__brand-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-soft);
    white-space: nowrap;
}

.site-header__nav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-bottom: 6px;
}

.site-header__nav-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), var(--gold-soft) 50%, rgba(212, 175, 55, 0.15));
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
    transform: translateX(-50%);
    transition:
        left 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.site-header__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(148, 163, 184, 0.92);
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
}

.site-header__link-icon {
    display: grid;
    place-items: center;
    opacity: 0.75;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.site-header__link-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header__link:hover {
    color: var(--gold-soft);
    background: transparent;
    opacity: 1;
}

.site-header__link:hover .site-header__link-icon {
    opacity: 1;
    color: var(--gold-soft);
}

.site-header__link.is-active {
    color: #fff;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.site-header__link.is-active .site-header__link-icon {
    opacity: 1;
    color: var(--gold-soft);
}

/* Language RU | EN */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switch__globe {
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.lang-switch__globe svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.lang-switch__items {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.lang-switch__item {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.lang-switch__item:hover { color: var(--text); }

.lang-switch__item.is-active {
    color: var(--gold-soft);
    cursor: default;
}

.lang-switch__sep {
    color: rgba(148, 163, 184, 0.35);
    font-weight: 400;
    user-select: none;
}

.site-header__lang { flex-shrink: 0; }

/* Legacy lang dropdown — hidden on mockup nav */
.site-header .modern-lang__list { display: none !important; }

/* Google Translate — флаги как на description */
body.modern-theme {
    position: static !important;
    top: 0 !important;
    margin-top: 0 !important;
}

.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
#google_translate_element {
    display: none !important;
}

body.modern-theme > .skiptranslate {
    display: none !important;
}

.site-gtranslate {
    position: relative;
    z-index: 220;
    padding: 0;
    background: transparent;
    border: 0;
}

.site-gtranslate__current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.site-gtranslate__current .lang__img_select {
    width: 22px;
    height: 22px;
    margin: 0;
}

.site-gtranslate__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    padding: 6px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 24, 0.98);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.site-gtranslate:hover .site-gtranslate__list,
.site-gtranslate:focus-within .site-gtranslate__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-gtranslate .lang__link_sub {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 120px;
    height: auto;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
}

.site-gtranslate .lang__link_sub:hover {
    background: rgba(124, 92, 255, 0.15);
    color: var(--text);
}

.site-gtranslate .lang__name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: inherit;
}

.site-gtranslate .lang__img {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

/* ── Hero ── */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 28px;
    padding: 0 20px 32px;
    text-align: center;
    overflow: hidden;
    min-height: 560px;
    box-sizing: border-box;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #050810;
}

.hero__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.04);
    filter: contrast(1.06) saturate(1.1) brightness(0.98);
    image-rendering: -webkit-optimize-contrast;
}

.hero__character {
    position: absolute;
    right: -24px;
    bottom: -20%;
    z-index: 0;
    width: min(860px, 50vw);
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    animation: hero-character-float 7s ease-in-out infinite;
}

.hero__character-cutout {
    width: 100%;
    -webkit-mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 3%,
        rgba(0, 0, 0, 0.85) 8%,
        #000 14%,
        #000 70%,
        rgba(0, 0, 0, 0.85) 84%,
        rgba(0, 0, 0, 0.35) 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 3%,
        rgba(0, 0, 0, 0.85) 8%,
        #000 14%,
        #000 70%,
        rgba(0, 0, 0, 0.85) 84%,
        rgba(0, 0, 0, 0.35) 94%,
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.hero__character-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(920px, 88vh);
    object-fit: contain;
    object-position: bottom right;
}

@keyframes hero-character-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 42% 55% at 82% 58%, rgba(124, 92, 255, 0.16) 0%, transparent 62%),
        radial-gradient(ellipse 55% 45% at 50% 38%, rgba(59, 130, 246, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 50% 42%, rgba(124, 92, 255, 0.18) 0%, transparent 60%),
        linear-gradient(90deg, rgba(5, 8, 16, 0.42) 0%, rgba(5, 8, 16, 0.06) 45%, rgba(5, 8, 16, 0.04) 100%),
        linear-gradient(180deg,
            rgba(5, 8, 16, 0.1) 0%,
            rgba(5, 8, 16, 0.08) 30%,
            rgba(5, 8, 16, 0.5) 68%,
            rgba(5, 8, 16, 0.94) 92%,
            #050810 100%);
}

.hero__inner {
    position: relative;
    z-index: 3;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Logo glow */
.hero__logo-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 12px 0 20px;
}

.hero__glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

.hero__glow--primary {
    width: min(520px, 95vw);
    height: 360px;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(34, 211, 238, 0.45) 0%,
        rgba(59, 130, 246, 0.35) 25%,
        rgba(124, 92, 255, 0.2) 50%,
        transparent 72%
    );
    filter: blur(28px);
    animation: hero-glow-pulse 4s ease-in-out infinite;
}

.hero__glow--secondary {
    width: min(380px, 80vw);
    height: 200px;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    filter: blur(20px);
    animation: hero-glow-pulse 4s ease-in-out infinite 2s;
}

@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

.hero__logo {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.hero-logo {
    position: relative;
    display: inline-block;
    line-height: 0;
    background: transparent;
}

.hero-logo__img {
    display: block;
    max-width: min(480px, 92vw);
    max-height: 280px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background: transparent;
    -webkit-box-reflect: none !important;
    filter:
        drop-shadow(0 0 28px rgba(124, 92, 255, 0.5))
        drop-shadow(0 0 48px rgba(59, 130, 246, 0.35));
    transition: transform 0.35s, filter 0.35s;
}

.hero-logo:hover .hero-logo__img {
    transform: scale(1.02);
    filter:
        drop-shadow(0 0 36px rgba(124, 92, 255, 0.65))
        drop-shadow(0 0 64px rgba(59, 130, 246, 0.45));
}

.hero__logo .logo,
.hero__logo .logo__img {
    display: none !important;
}

.hero__tagline {
    display: none;
}

/* Hero status block */
.hero__status-block {
    max-width: 624px;
    margin: 0 auto;
}

.hero-notice {
    margin-top: 14px;
    padding: 7px 14px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 10px;
    background: rgba(8, 12, 24, 0.72);
}

.hero-notice__text {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-soft);
    text-align: center;
}

/* Status panel */
.status-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    padding: 22px 28px 18px;
    background:
        linear-gradient(135deg, rgba(18, 14, 42, 0.96) 0%, rgba(10, 14, 32, 0.94) 50%, rgba(14, 10, 36, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.08) inset,
        0 0 48px rgba(124, 92, 255, 0.15),
        0 0 80px rgba(59, 130, 246, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
}

.status-panel__ornament {
    position: absolute;
    top: 11px;
    font-size: 9px;
    line-height: 1;
    color: rgba(212, 175, 55, 0.8);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
    pointer-events: none;
}

.status-panel__ornament--tl { left: 14px; }
.status-panel__ornament--tr { right: 14px; }

.status-panel__main {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.status-panel__footer {
    width: 100%;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.status-panel__cabinet-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold-soft);
    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.06) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 24px rgba(212, 175, 55, 0.08);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.status-panel__cabinet-btn:hover {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-color: rgba(212, 175, 55, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 28px rgba(212, 175, 55, 0.18);
    transform: translateY(-1px);
}

.status-panel__cabinet-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.status-panel::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 13px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    pointer-events: none;
}

.status-panel__online {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding-right: 8px;
}

.status-panel__divider {
    width: 1px;
    align-self: stretch;
    min-height: 64px;
    margin: 0 24px;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.5) 30%, rgba(212, 175, 55, 0.5) 70%, transparent);
    flex-shrink: 0;
}

/* Online ring */
.online-ring {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
}

.online-ring.is-online {
    animation: ring-glow 2.5s ease-in-out infinite;
}

.online-ring.is-offline { filter: none; }

@keyframes ring-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.45)); }
    50% { filter: drop-shadow(0 0 22px rgba(34, 197, 94, 0.9)); }
}

.online-ring__glow {
    stroke: rgba(34, 197, 94, 0.2);
    stroke-width: 6;
    fill: none;
}

.online-ring.is-online .online-ring__glow {
    stroke: rgba(34, 197, 94, 0.25);
    animation: ring-pulse-bg 2.5s ease-in-out infinite;
}

@keyframes ring-pulse-bg {
    0%, 100% { stroke-opacity: 0.4; }
    50% { stroke-opacity: 0.9; }
}

.online-ring__track {
    stroke: rgba(255, 255, 255, 0.12);
}

.online-ring.is-online .online-ring__bar {
    stroke: #22c55e;
}

.online-ring.is-offline .online-ring__bar {
    stroke: var(--text-muted);
}

.status-panel__text {
    text-align: left;
    min-width: 140px;
}

.status-panel__label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
    margin-bottom: 2px;
}

.status-panel__state {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.status-panel__state.is-online {
    color: #22c55e;
    text-shadow:
        0 0 20px rgba(34, 197, 94, 0.7),
        0 0 40px rgba(34, 197, 94, 0.3);
}

.status-panel__state.is-offline { color: var(--text-muted); }

/* Single server badge */
.server-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px 10px 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(124, 92, 255, 0.06));
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 12px;
    box-shadow:
        inset 0 0 24px rgba(212, 175, 55, 0.06),
        0 0 20px rgba(212, 175, 55, 0.08);
}

.server-badge__crest {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 70%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.server-badge__crest svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 6px rgba(240, 215, 140, 0.5));
}

.server-badge__body {
    text-align: left;
}

.server-badge__name {
    display: block;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 2px;
}

.server-badge__rate {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    background: linear-gradient(180deg, #f0d78c 0%, #d4af37 45%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.45));
}

#header .header-status {
    background: none !important;
    width: auto !important;
    height: auto !important;
}

/* Ticker */
.ticker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 14px;
    padding: 11px 8px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(12, 16, 32, 0.9), rgba(8, 10, 24, 0.95));
    backdrop-filter: blur(12px);
    box-shadow:
        0 0 24px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.ticker__ornament {
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    font-size: 8px;
    color: rgba(212, 175, 55, 0.55);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    user-select: none;
}

.ticker__viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}

.ticker__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: ticker-scroll 36s linear infinite;
}

.ticker__track:hover { animation-play-state: paused; }

.ticker__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding-right: 40px;
}

.ticker__item {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-soft);
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.ticker__item::after {
    content: '·';
    margin: 0 20px;
    color: rgba(212, 175, 55, 0.35);
    font-size: 14px;
    vertical-align: middle;
}

.ticker__group .ticker__item:last-child::after {
    content: none;
    margin: 0;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Page layout ── */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 20px 48px;
    --tops-head-offset: 58px;
}

.page-layout__main {
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-width: 0;
}

.page-layout__aside {
    position: sticky;
    top: 16px;
    align-self: start;
    margin-top: var(--tops-head-offset);
    min-width: 0;
    height: auto;
    z-index: 2;
}

.tops-section {
    min-width: 0;
}

.tops-section .section-head,
.streams-section .section-head {
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.tops-section,
.streams-section {
    width: 100%;
}

/* Section headers */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.section-head__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.section-head__title--live svg {
    opacity: 0.85;
    color: var(--gold-soft);
}

.section-head__action {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold-soft);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.06);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.section-head__action:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

/* Tops / rating grid */
.tops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.top-card {
    width: 100% !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(16, 22, 42, 0.95), rgba(10, 14, 28, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.top-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(124, 92, 255, 0.08);
}

.top-card__head {
    padding: 16px 16px 0;
}

.top-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.top-card__badge--pvp {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.top-card__badge--online {
    background: linear-gradient(135deg, #059669, #047857);
}

.top-card__badge--level,
.top-card__badge--clans {
    background: linear-gradient(135deg, #ca8a04, #a16207);
}

.top-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 18px;
}

.top-card__columns,
.top-card__row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) minmax(72px, auto);
    gap: 10px;
    align-items: center;
}

.top-card__columns {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.top-card__columns span:last-child,
.top-card__value {
    text-align: right;
}

.top-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-card__row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 12px;
    color: var(--text-muted);
    align-items: start;
}

.top-card__row:last-child {
    border-bottom: none;
}

.top-card__row.is-first {
    color: var(--text);
}

.top-card__rank {
    font-weight: 700;
    color: var(--gold-soft);
    line-height: 1.35;
    padding-top: 1px;
}

.top-card__name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.top-card__name-main {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--gold-soft);
    font-weight: 600;
}

.top-card__name-meta {
    display: block;
    min-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(148, 163, 184, 0.85);
}

.top-card__value {
    font-weight: 700;
    color: #e8edf5;
    line-height: 1.35;
    padding-top: 1px;
}

.top-card__empty {
    padding: 18px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* News grid (legacy) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    width: 100% !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(16, 22, 42, 0.95), rgba(10, 14, 28, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(124, 92, 255, 0.08);
}

.news-card__image {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-card:hover .news-card__image img { transform: scale(1.05); }

.news-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.news-card__badge--event {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.news-card__badge--update {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 16px 18px;
}

.news-card__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-soft);
    line-height: 1.35;
}

.news-card__text {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 11px;
    color: rgba(148, 163, 184, 0.85);
}

.news-card__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Streams grid */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.streams-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 24px;
}

.stream-card {
    position: relative;
    width: 100% !important;
    float: none !important;
    aspect-ratio: 16 / 11;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #0a0e1a;
    transition: transform 0.25s, box-shadow 0.25s;
}

.stream-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.stream-card__preview {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.stream-card__preview iframe,
.stream-card__preview img,
.stream-card__preview > * {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.stream-card__preview a.streamBlock-video,
.stream-card__preview .streamBlock-video_info1 {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.stream-card__preview .streamBlock-video_info1 iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.stream-card__live {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #ef4444;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
}

.stream-card__live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.stream-card__viewers {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.stream-card__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
}

.stream-card__avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-soft);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.5), rgba(59, 130, 246, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.stream-card__info {
    min-width: 0;
    text-align: left;
}

.stream-card__info strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-card__info span {
    display: block;
    font-size: 10px;
    color: rgba(148, 163, 184, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar */
.sidebar-card {
    height: auto;
    min-height: 0;
    background: linear-gradient(180deg, rgba(14, 20, 38, 0.96), rgba(8, 12, 24, 0.94));
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 16px;
    padding: 18px 14px 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-card__title {
    margin: 0 0 14px;
    padding: 0 4px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.promo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.promo-row:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.promo-row__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.promo-row--blue .promo-row__icon {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.promo-row--green .promo-row__icon {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
}

.promo-row--purple .promo-row__icon {
    background: rgba(124, 92, 255, 0.15);
    border-color: rgba(124, 92, 255, 0.3);
    box-shadow: 0 0 16px rgba(124, 92, 255, 0.15);
}

.promo-row--gold .promo-row__icon {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}

.promo-row--orange .promo-row__icon {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.15);
}

.promo-row__content {
    flex: 1;
    min-width: 0;
}

.promo-row__title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.35;
}

.promo-row__arrow {
    color: var(--gold);
    font-size: 20px;
    opacity: 0.55;
    flex-shrink: 0;
    transition: transform 0.2s, opacity 0.2s;
}

.promo-row:hover .promo-row__arrow {
    opacity: 1;
    transform: translateX(3px);
}

.promo-row--static {
    cursor: default;
}

.promo-row--news {
    cursor: pointer;
}

.promo-row--static:hover {
    transform: none;
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(14, 20, 36, 0.55);
}

.page-layout__aside .promo-row {
    gap: 10px;
    padding: 10px 12px;
}

.page-layout__aside .promo-row__icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.page-layout__aside .promo-row__title {
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1.35;
    white-space: normal;
}

.page-layout__aside .donate-cta {
    margin-top: 12px;
    padding: 13px 16px;
    font-size: 12px;
}

.donate-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 15px 20px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #6d28d9 100%);
    border: 1px solid rgba(167, 139, 250, 0.45);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(124, 92, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.donate-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 92, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.donate-cta__icon {
    font-size: 16px;
}

/* ── Community section ── */
.community-section {
    width: 100%;
    padding: 28px 24px 24px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(14, 18, 36, 0.92), rgba(8, 10, 22, 0.95)),
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 92, 255, 0.08), transparent);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.community-section__head {
    text-align: center;
    margin-bottom: 24px;
}

.community-section__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.community-section__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-soft);
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.2);
}

.community-grid {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 16px;
    align-items: stretch;
}

.community-grid__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.community-grid__col--actions {
    justify-content: center;
}

.community-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 88px;
    padding: 16px 14px;
    text-decoration: none;
    text-align: center;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 12px;
    transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.community-action:hover {
    transform: translateY(-2px);
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.community-action--wide {
    min-height: 56px;
    flex-direction: row;
    justify-content: center;
}

.community-action__icon {
    display: grid;
    place-items: center;
    color: var(--gold-soft);
    opacity: 0.9;
}

.community-action__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.35;
}

/* Community topics list (forum hot topics) */
.community-topics {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.community-topics__label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: var(--gold-soft);
}

.community-topics__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.community-topics__list .promo-row--topic {
    min-height: 52px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(212, 175, 55, 0.22);
}

.community-topics__list .promo-row--topic:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.07);
}

.community-topics__list .promo-row__title {
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-align: left;
}

.community-topics__list .promo-row__icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.community-topics__empty,
.sidebar-news__empty {
    display: grid;
    place-items: center;
    min-height: 120px;
    padding: 16px;
    border: 1px dashed rgba(212, 175, 55, 0.28);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.sidebar-news__empty {
    min-height: 80px;
}

/* Social cards */
.social-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 120px;
    padding: 20px 16px;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.25s, box-shadow 0.25s;
}

.social-card:hover {
    transform: translateY(-3px) scale(1.01);
}

.social-card--discord {
    color: #fff;
    background: linear-gradient(145deg, #5865f2 0%, #4752c4 100%);
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.35);
}

.social-card--discord:hover {
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

.social-card--telegram {
    color: #fff;
    background: linear-gradient(145deg, #229ed9 0%, #1a8bc4 100%);
    box-shadow: 0 8px 32px rgba(34, 158, 217, 0.35);
}

.social-card--telegram:hover {
    box-shadow: 0 12px 40px rgba(34, 158, 217, 0.5);
}

.social-card--solo {
    flex: 1;
    min-height: 100%;
}

.social-card__icon {
    opacity: 0.95;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.social-card__name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.social-card__meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

/* Legacy aliases — keep old section-bar from breaking elsewhere */
.section-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
}

.section-bar__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.section-bar__sub {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

.cards-grid {
    display: grid;
    gap: 18px;
    width: 100%;
}

/* ── Footer ── */
#footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

.footer-block {
    text-align: center;
    padding: 20px 16px;
}

.footer-block .copyright {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-block .rule-agreement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.footer-block .rule-agreement a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-block .rule-agreement a:hover { color: var(--gold-soft); }

.footer-block .rule-agreement span[aria-hidden] { color: rgba(148, 163, 184, 0.35); }

.footer-block > p {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.55);
    margin: 10px 0;
}

.footer-block .g2a img { max-height: 36px; opacity: 0.7; transition: opacity 0.2s; }
.footer-block .g2a:hover img { opacity: 1; }

/* ── Popup ── */
#popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 7, 14, 0.88);
    backdrop-filter: blur(8px);
}

.popup-content {
    position: relative;
    width: min(640px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(18, 24, 42, 0.98), rgba(10, 14, 26, 0.98));
    border: 1px solid var(--border-soft);
    border-radius: calc(var(--radius) + 2px);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-soft);
    cursor: pointer;
}

.popup-close::before,
.popup-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--text-muted);
    transform: translate(-50%, -50%) rotate(45deg);
}

.popup-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.popup-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-soft);
    margin-bottom: 18px;
}

.popup-content-header { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.popup-content-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.popup-content-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
}

.popup-content-item .link { display: flex; flex-wrap: wrap; gap: 8px; }

.popup-content-item .link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

/* Loader */
.load-logo {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--bg-deep);
}

.load-logo .load-line {
    height: 3px;
    width: 0;
    max-width: 280px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 2px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero__character {
        width: min(680px, 72vw);
        right: -48px;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-layout__aside {
        position: static;
        margin-top: 0;
    }

    .tops-grid,
    .news-grid,
    .streams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-grid {
        grid-template-columns: 1fr 1fr;
    }

    .community-grid__col--actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .community-action {
        flex: 1;
        min-height: 72px;
    }

    .status-panel {
        padding: 18px 16px 16px;
        max-width: 100%;
    }

    .status-panel__main {
        flex-direction: column;
        gap: 16px;
    }

    .status-panel__online {
        width: 100%;
        justify-content: center;
        padding-right: 0;
    }

    .status-panel__divider {
        display: none;
    }

    .server-badge {
        width: 100%;
        justify-content: center;
    }

    .hero__status-block {
        max-width: 100%;
        padding: 0 4px;
    }
}

@media (max-width: 768px) {
    .promo-banner {
        flex-wrap: wrap;
        padding: 5px 12px;
    }

    .promo-banner__text {
        white-space: normal;
    }

    .site-header__inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .site-header__brand {
        grid-column: 1;
        grid-row: 1;
    }

    .site-header__brand-text { display: none; }

    .site-header__lang {
        grid-column: 2;
        grid-row: 1;
        padding: 6px 10px;
    }

    .site-header__nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .site-header__nav-indicator {
        display: none;
    }

    .site-header__nav::-webkit-scrollbar { display: none; }

    .site-header__link {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 10px;
    }

    .site-header__link-text { display: none; }

    .site-header__link-icon svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        min-height: 480px;
        padding: 0 12px 28px;
    }

    .hero__character {
        width: min(520px, 95vw);
        right: -22%;
        bottom: -20%;
    }

    .hero__bg-img {
        object-position: center 24%;
        transform: scale(1.08);
    }

    .hero__tagline {
        font-size: 10px;
        letter-spacing: 0.2em;
    }

    .section-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-bar__sub { text-align: left; }
}

@media (max-width: 480px) {
    body.modern-theme #general { padding: 0 0 32px !important; }

    .hero { padding-left: 10px; padding-right: 10px; min-height: 420px; }

    .hero__character {
        display: none;
    }

    .page-layout {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tops-grid,
    .news-grid,
    .streams-grid {
        grid-template-columns: 1fr;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-grid__col--actions {
        flex-direction: column;
    }

    .community-section {
        padding: 20px 14px;
    }

    .section-head {
        flex-wrap: wrap;
    }
}

.stream-card.is-playing .stream-card__preview iframe {
    pointer-events: auto !important;
}

.stream-card.is-playing .stream-card__live,
.stream-card.is-playing .stream-card__viewers {
    z-index: 2;
}

.stream-card[data-embed] {
    cursor: pointer;
}
