/* L2Crystal — Description page content */

:root {
    --desc-container: 1280px;
    --desc-nav-width: 268px;
}

body.desc-page-body .desc-hero {
    text-align: left;
    max-width: 680px;
    margin: 0 auto;
}

body.desc-page-body .desc-hero__stats {
    justify-content: flex-start;
}

body.desc-page-body #desc-popup {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 7, 14, 0.88);
    backdrop-filter: blur(8px);
}

body.desc-page-body #desc-popup.is-open {
    display: flex !important;
}

body.desc-page-body #desc-popup[hidden] {
    display: none !important;
}

.desc-popup__fade {
    position: absolute;
    inset: 0;
}

.desc-popup__panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 24px;
    background: linear-gradient(180deg, rgba(18, 24, 42, 0.98), rgba(10, 14, 26, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
}

.desc-popup__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: none;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.desc-popup__title {
    margin: 0 0 16px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.1rem;
    color: #f0d78c;
}

.desc-popup__block {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.desc-popup__block-head {
    font-weight: 700;
    color: #f0d78c;
    margin-bottom: 4px;
}

.desc-popup__block-desc,
.desc-popup__block-text {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.desc-popup__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.desc-popup__dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #eef2f8;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(5, 8, 16, 0.6);
}

.desc-popup__note {
    font-size: 13px;
    color: #94a3b8;
    margin: 12px 0 0;
}

/* ── Page wrapper ── */
.desc-page {
    position: relative;
    z-index: 2;
    max-width: var(--desc-container);
    margin: 0 auto;
    padding: 24px 20px 56px;
    background: #050810;
}

/* фон только для блока контента, не перекрывает .dh-shell */
.desc-page::before {
    content: none;
    display: none;
}

/* ── Content sections ── */
.desc-hero__badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--online, #22c55e);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}

.desc-hero__title {
    margin: 0 0 6px;
    font-family: var(--font-display, 'Cinzel', Georgia, serif);
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.15;
    color: var(--gold-soft, #f0d78c);
    text-shadow:
        0 0 40px rgba(212, 175, 55, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.5);
}

.desc-hero__sub {
    margin: 0 0 14px;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted, #94a3b8);
}

.desc-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.desc-stat {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px;
    min-width: 88px;
    padding: 8px 14px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(14, 22, 42, 0.92) 0%, rgba(5, 8, 16, 0.75) 100%);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.desc-stat:hover {
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 92, 255, 0.15);
}

.desc-stat__value {
    font-family: var(--font-display, 'Cinzel', Georgia, serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold-soft, #f0d78c);
}

.desc-stat__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
}

/* ── Layout grid ── */
.about-shell {
    display: grid;
    grid-template-columns: var(--desc-nav-width) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ── Sidebar nav ── */
.about-nav {
    position: sticky;
    top: calc(var(--dh-nav-h, 92px) + 16px);
    padding: 0;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    background:
        linear-gradient(165deg, rgba(18, 26, 50, 0.98) 0%, rgba(8, 12, 24, 0.96) 100%);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(124, 92, 255, 0.08),
        inset 0 1px 0 rgba(212, 175, 55, 0.12);
    overflow: hidden;
}

.about-nav__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.18) 0%, rgba(212, 175, 55, 0.08) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.about-nav__crest {
    font-size: 10px;
    color: var(--gold-soft, #f0d78c);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.about-nav__title {
    margin: 0;
    padding: 0;
    border: none;
    font-family: var(--font-display, 'Cinzel', Georgia, serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-soft, #f0d78c);
}

.about-nav__list {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-nav__link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.about-nav__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    border-radius: 9px;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.22);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.about-nav__text {
    line-height: 1.3;
}

.about-nav__link:hover {
    color: var(--gold-soft, #f0d78c);
    background: rgba(124, 92, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.15);
    transform: translateX(2px);
}

.about-nav__link:hover .about-nav__icon {
    background: rgba(124, 92, 255, 0.22);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 12px rgba(124, 92, 255, 0.25);
}

.about-nav__link.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.22) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: inset 3px 0 0 var(--gold, #d4af37);
}

.about-nav__link.is-active .about-nav__icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(124, 92, 255, 0.2) 100%);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

.about-nav__progress {
    margin: 0 12px 12px;
    height: 3px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    overflow: hidden;
}

.about-nav__progress-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent, #7c5cff) 0%, var(--gold, #d4af37) 100%);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
    transition: width 0.15s ease-out;
}

/* ── Sections ── */
.about-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.about-section {
    position: relative;
    padding: 26px 28px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: var(--radius, 14px);
    background: linear-gradient(160deg, rgba(16, 24, 48, 0.88) 0%, rgba(10, 16, 32, 0.92) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
    scroll-margin-top: 80px;
}

body.desc-page-body.has-desc-js .about-section:not(.is-visible) {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s, box-shadow 0.3s;
}

body.desc-page-body.has-desc-js .about-section.is-visible,
.about-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
    opacity: 0.6;
}

.about-section:hover {
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(124, 92, 255, 0.08);
}

.about-section__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.about-section__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.3) 0%, rgba(59, 130, 246, 0.18) 100%);
    border: 1px solid rgba(124, 92, 255, 0.35);
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.2);
}

.about-section__title {
    margin: 0;
    font-family: var(--font-display, 'Cinzel', Georgia, serif);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold-soft, #f0d78c);
}

.about-section__note {
    margin: -6px 0 18px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
    text-align: center;
    border-radius: 10px;
    background: rgba(124, 92, 255, 0.08);
    border: 1px solid rgba(124, 92, 255, 0.15);
}

/* ── Media blocks ── */
.about-media-block {
    display: grid;
    grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.about-media-block--wide {
    grid-template-columns: minmax(180px, 340px) minmax(0, 1fr);
}

.about-media-block__frame {
    position: relative;
    margin: 0;
    padding: 3px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.45) 0%, rgba(124, 92, 255, 0.25) 50%, rgba(59, 130, 246, 0.2) 100%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.about-media-block__frame::before,
.about-media-block__frame::after {
    content: '◆';
    position: absolute;
    font-size: 8px;
    color: var(--gold-soft, #f0d78c);
    opacity: 0.7;
    z-index: 2;
}

.about-media-block__frame::before { top: 8px; left: 8px; }
.about-media-block__frame::after { bottom: 8px; right: 8px; }

.about-media-block__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 11px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.about-lead {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text, #eef2f8);
}

.about-lead strong { color: var(--gold-soft, #f0d78c); }

/* ── Lists ── */
.about-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.about-list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text, #eef2f8);
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #7c5cff) 0%, var(--accent-blue, #3b82f6) 100%);
    box-shadow: 0 0 8px rgba(124, 92, 255, 0.55);
}

.about-list li strong { color: var(--gold-soft, #f0d78c); }

.about-list--compact li {
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
}

.about-subtitle {
    margin: 22px 0 12px;
    font-family: var(--font-display, 'Cinzel', Georgia, serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-blue, #3b82f6);
}

.about-subtitle:first-child { margin-top: 0; }

/* ── Commands ── */
.about-commands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-self: center;
}

.about-commands li {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 13px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 11px;
    background: rgba(5, 8, 16, 0.55);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.about-commands li:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateX(4px);
    box-shadow: -4px 0 0 rgba(212, 175, 55, 0.35);
}

.about-commands code {
    flex-shrink: 0;
    padding: 4px 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-soft, #f0d78c);
    border-radius: 7px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.about-commands li span,
.about-commands .about-cmd-desc {
    color: var(--text-muted, #94a3b8);
}

/* ── Tables ── */
.about-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.about-table th {
    padding: 13px 16px;
    text-align: left;
    font-family: var(--font-display, 'Cinzel', Georgia, serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-soft, #f0d78c);
    background: linear-gradient(180deg, rgba(124, 92, 255, 0.22) 0%, rgba(124, 92, 255, 0.12) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    white-space: nowrap;
}

.about-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--text, #eef2f8);
    vertical-align: top;
}

.about-table tbody tr:nth-child(even) td {
    background: rgba(5, 8, 16, 0.35);
}

.about-table tbody tr:hover td {
    background: rgba(124, 92, 255, 0.08);
}

.about-table tr:last-child td { border-bottom: none; }

.about-table__boss {
    font-weight: 600;
    color: var(--gold-soft, #f0d78c);
}

.about-table .tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
}

.about-table .tag--peace {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.about-table .tag--pvp {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ── Coins ── */
.about-coins {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-coins li {
    position: relative;
    padding: 14px 16px 14px 18px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 11px;
    background: rgba(5, 8, 16, 0.5);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s;
}

.about-coins li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold, #d4af37) 0%, var(--accent, #7c5cff) 100%);
    opacity: 0.7;
}

.about-coins li:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.about-coins strong {
    display: block !important;
    margin-bottom: 4px;
    color: var(--gold-soft, #f0d78c);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.about-coins li span,
.about-coins .about-coin__desc {
    display: block;
    color: var(--text-muted, #94a3b8);
}

/* ── Mobile nav toggle ── */
.about-nav-toggle {
    display: none;
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 18px;
    font-family: var(--font-ui, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-soft, #f0d78c);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(14, 22, 42, 0.95) 0%, rgba(8, 12, 24, 0.9) 100%);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.about-nav-toggle:hover {
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.12);
}

.about-nav-toggle__icon {
    display: inline-block;
    width: 14px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--gold-soft, #f0d78c);
    box-shadow: 0 -5px 0 var(--gold-soft, #f0d78c), 0 5px 0 var(--gold-soft, #f0d78c);
}

/* ── Standalone page footer ── */
.desc-footer {
    max-width: var(--desc-container);
    margin: 0 auto;
    padding: 28px 20px 48px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.14);
}

.desc-footer p {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.desc-footer__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold-soft, #f0d78c);
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);
    transition: border-color 0.2s, transform 0.2s;
}

.desc-footer__btn:hover {
    color: #fff;
    border-color: rgba(212, 175, 55, 0.62);
    transform: translateY(-1px);
}

body.desc-page-body {
    background: #050810;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .desc-hero__sub { margin-left: auto; margin-right: auto; }
    .desc-hero__stats { justify-content: center; }
}

@media (max-width: 960px) {
    .desc-page { margin-top: 0; }

    body.desc-page-body .about-shell { grid-template-columns: 1fr !important; }

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

    .about-nav-toggle { display: block; }

    .about-nav {
        position: static;
        display: none;
    }

    .about-nav.is-open { display: block; }

    .about-media-block,
    .about-media-block--wide {
        grid-template-columns: 1fr;
    }

    .about-media-block__frame {
        max-width: 320px;
        margin: 0 auto;
    }

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

@media (max-width: 560px) {
    .about-section { padding: 20px 16px; }
    .desc-stat { min-width: calc(50% - 8px); flex: 1; }
}
