:root {
    --bg: #0a0a0f;
    --panel: #12121a;
    --panel-alt: #181824;
    --text: #ece9df;
    --muted: #a9a4b6;
    --accent: #d6b35a;
    --accent-dark: #8f6b1a;
    --border: #2a2736;
    --ok: #34d399;
}

/* ==========================================================================
   Lineage 2 C6 / Interlude inspired Characters page (scoped to .l2-chars)
   ========================================================================== */
.l2-chars {
    --l2-gold: #d6b35a;
    --l2-gold-soft: #b9974a;
    --l2-bronze: #3a2f22;
    --l2-bronze-dark: #241d14;
    --l2-stone: #16130f;
    --l2-stone-2: #1f1a13;
    --l2-line: #4a3c26;
}

.l2-chars .l2-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px;
    background:
        linear-gradient(180deg, rgba(58, 47, 34, 0.55), rgba(20, 16, 12, 0.9)),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 6px);
    border: 1px solid var(--l2-line);
    border-radius: 4px;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.45);
}

.l2-chars .l2-hero::before,
.l2-chars .l2-hero::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--l2-gold-soft), transparent);
    opacity: 0.5;
}
.l2-chars .l2-hero::before { top: 6px; }
.l2-chars .l2-hero::after { bottom: 6px; }

.l2-chars .l2-hero-title {
    margin: 0 0 4px;
    font-size: 1.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--l2-gold);
    text-shadow: 0 1px 0 #000, 0 0 12px rgba(214, 179, 90, 0.25);
}

.l2-chars .l2-hero-sub {
    margin: 2px 0;
    color: var(--muted);
}
.l2-chars .l2-hero-sub strong { color: var(--text); }

.l2-chars .l2-hero-count {
    margin: 6px 0 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--l2-gold-soft);
}

/* Bronze/gold buttons */
.l2-chars .l2-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f2e8cf;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(180deg, #4a3a22, #2a2013);
    border: 1px solid var(--l2-gold-soft);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.15), inset 0 -2px 6px rgba(0, 0, 0, 0.5);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.l2-chars .l2-btn:hover {
    color: #fff8e6;
    background: linear-gradient(180deg, #5c4826, #33260f);
    box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.25), 0 0 10px rgba(214, 179, 90, 0.35);
}
.l2-chars .l2-btn:disabled,
.l2-chars .l2-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
.l2-chars .l2-btn-sm { padding: 6px 11px; font-size: 0.72rem; }

/* Summary panel */
.l2-chars .l2-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.l2-chars .l2-summary-item {
    padding: 14px 16px;
    text-align: center;
    background: linear-gradient(180deg, var(--l2-stone-2), var(--l2-stone));
    border: 1px solid var(--l2-line);
    border-radius: 4px;
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.55);
}
.l2-chars .l2-summary-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}
.l2-chars .l2-summary-value {
    display: block;
    margin-top: 6px;
    font-size: 1.3rem;
    color: var(--l2-gold);
    text-shadow: 0 1px 0 #000;
}

/* Decorative divider */
.l2-chars .l2-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: var(--l2-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.l2-chars .l2-divider::before,
.l2-chars .l2-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--l2-line), transparent);
}

/* Table panel */
.l2-chars .l2-table-wrap {
    width: 100%;
    background: linear-gradient(180deg, var(--l2-stone-2), var(--l2-stone));
    border: 1px solid var(--l2-line);
    border-radius: 4px;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.l2-chars table.l2-table {
    width: 100%;
    border-collapse: collapse;
}
.l2-chars .l2-table thead th {
    padding: 12px 14px;
    text-align: left;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--l2-gold);
    background: linear-gradient(180deg, #2c2417, #1a140d);
    border-bottom: 1px solid var(--l2-line);
    white-space: nowrap;
}
.l2-chars .l2-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(74, 60, 38, 0.4);
    color: var(--text);
    vertical-align: middle;
}
.l2-chars .l2-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015);
}
.l2-chars .l2-table tbody tr:hover td {
    background: rgba(214, 179, 90, 0.06);
}
.l2-chars .l2-col-index { color: var(--l2-gold-soft); width: 48px; }
.l2-chars .l2-col-num { text-align: center; width: 64px; }

.l2-chars .l2-char-name {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.l2-chars .l2-char-name .name { color: #f2e8cf; font-weight: 600; }
.l2-chars .l2-char-name .title { font-size: 0.72rem; color: var(--muted); font-style: italic; }
.l2-chars .l2-muted { color: var(--muted); }
.l2-chars td form { margin: 0; }

/* Status badges */
.l2-chars .l2-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid var(--border);
}
.l2-chars .l2-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}
.l2-chars .l2-badge.is-online { color: #7fe0a6; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.l2-chars .l2-badge.is-offline { color: #9a94a6; border-color: rgba(154, 148, 166, 0.3); background: rgba(154, 148, 166, 0.06); }

/* Empty state */
.l2-chars .l2-empty {
    padding: 46px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--l2-stone-2), var(--l2-stone));
    border: 1px dashed var(--l2-line);
    border-radius: 4px;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.6);
}
.l2-chars .l2-empty h3 {
    margin: 0 0 8px;
    color: var(--l2-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.l2-chars .l2-empty p { margin: 0; color: var(--muted); }

/* Mobile: stacked character cards */
@media (max-width: 720px) {
    .l2-chars .l2-summary { grid-template-columns: repeat(2, 1fr); }

    .l2-chars .l2-table-wrap { background: transparent; border: none; box-shadow: none; }
    .l2-chars .l2-table thead { display: none; }
    .l2-chars .l2-table, .l2-chars .l2-table tbody, .l2-chars .l2-table tr, .l2-chars .l2-table td { display: block; width: 100%; }
    .l2-chars .l2-table tbody tr {
        margin-bottom: 14px;
        background: linear-gradient(180deg, var(--l2-stone-2), var(--l2-stone));
        border: 1px solid var(--l2-line);
        border-radius: 4px;
        box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
    }
    .l2-chars .l2-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid rgba(74, 60, 38, 0.3);
    }
    .l2-chars .l2-table tbody td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--l2-gold-soft);
    }
    .l2-chars .l2-col-index { display: none; }
}

/* Dashboard styling in the same classic Interlude visual language. */
.l2-dashboard {
    --l2d-line: #4a3c26;
    --l2d-stone: #17120e;
    --l2d-stone-2: #211a12;
}

.l2-dashboard .l2d-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid var(--l2d-line);
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(63, 49, 31, 0.62), rgba(20, 15, 10, 0.92)),
        url("/images/cover_transparent.png") center/cover no-repeat;
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.45);
}

.l2-dashboard .l2d-heading h1 {
    margin: 0;
    color: #d6b35a;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 0 #000;
}

.l2-dashboard .l2d-heading .subtitle {
    margin: 5px 0 8px;
    color: #c7bda9;
}

.l2-dashboard .l2d-divider {
    width: min(420px, 100%);
    height: 1px;
    background: linear-gradient(90deg, #b9974a, transparent);
}

.l2-dashboard .l2d-session {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(185, 151, 74, 0.45);
    border-radius: 4px;
    background: rgba(9, 8, 6, 0.45);
}

.l2-dashboard .l2d-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #b9974a;
    background: radial-gradient(circle at 35% 30%, #d9bf80, #6a5533 60%, #241d14);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.l2-dashboard .l2d-session-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.l2-dashboard .l2d-session-label {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b9b0a0;
}

.l2-dashboard .l2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 15px;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #f2e8cf;
    cursor: pointer;
    background: linear-gradient(180deg, #4a3a22, #2a2013);
    border: 1px solid #b9974a;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.15), inset 0 -2px 6px rgba(0, 0, 0, 0.5);
}

.l2-dashboard .l2-btn:hover {
    color: #fff8e6;
    background: linear-gradient(180deg, #5c4826, #33260f);
    box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.25), 0 0 10px rgba(214, 179, 90, 0.35);
}

.l2-dashboard .l2-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.l2-dashboard .l2-btn-sm {
    padding: 6px 10px;
    font-size: 0.7rem;
}

.l2-dashboard .l2d-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 14px;
    align-items: start;
}

.l2-dashboard .l2d-panel {
    background: linear-gradient(180deg, var(--l2d-stone-2), var(--l2d-stone));
    border: 1px solid var(--l2d-line);
    border-radius: 4px;
    padding: 14px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.l2-dashboard .l2d-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.l2-dashboard .l2d-panel-head h2 {
    margin: 0;
    color: #d6b35a;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
}

.l2-dashboard .l2d-count {
    color: #d6b35a;
    font-weight: 700;
    letter-spacing: 1px;
}

.l2-dashboard .l2d-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.l2-dashboard .l2d-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.l2-dashboard .l2d-table th,
.l2-dashboard .l2d-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(74, 60, 38, 0.35);
    vertical-align: middle;
    white-space: nowrap;
}

.l2-dashboard .l2d-table th {
    color: #d6b35a;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.72rem;
    text-align: left;
    background: rgba(10, 8, 6, 0.35);
}

.l2-dashboard .l2d-col-index {
    width: 44px;
    text-align: center;
    color: #b9974a;
}

.l2-dashboard .l2d-col-login {
    font-weight: 600;
    color: #f2e8cf;
}

.l2-dashboard .l2d-reset summary {
    list-style: none;
}

.l2-dashboard .l2d-reset summary::-webkit-details-marker {
    display: none;
}

.l2-dashboard .l2d-reset-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 6px;
    margin-top: 6px;
}

.l2-dashboard .l2d-reset-form input,
.l2-dashboard .l2d-create-form input {
    background: #0f0e0b;
    color: #ece9df;
    border: 1px solid #3e3220;
    border-radius: 3px;
    padding: 8px 9px;
}

.l2-dashboard .l2d-create-form textarea {
    background: #0f0e0b;
    color: #ece9df;
    border: 1px solid #3e3220;
    border-radius: 3px;
    padding: 8px 9px;
    resize: vertical;
    min-height: 90px;
}

.l2-dashboard .l2d-create-form select {
    background: #0f0e0b;
    color: #ece9df;
    border: 1px solid #3e3220;
    border-radius: 3px;
    padding: 8px 9px;
}

.l2-dashboard .l2d-inline-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c7bda9;
    font-size: 0.9rem;
}

.l2-dashboard .l2d-panel-note {
    margin: 0 0 10px;
    color: #b9b0a0;
}

.l2-dashboard .l2d-create-form {
    display: grid;
    gap: 8px;
}

.l2-dashboard .l2d-create-form label {
    font-size: 0.85rem;
    color: #c7bda9;
}

.l2-dashboard .l2d-console-output {
    margin: 0;
    min-height: 240px;
    max-height: 360px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #3e3220;
    border-radius: 3px;
    background: #0a0a0a;
    color: #b7f7be;
    font-size: 0.79rem;
    line-height: 1.35;
    font-family: Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 1024px) {
    .l2-dashboard .l2d-main-grid {
        grid-template-columns: 1fr;
    }

    .l2-dashboard .l2d-reset-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .l2-dashboard .l2d-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .l2-dashboard .l2d-session {
        width: 100%;
        justify-content: space-between;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, #1b1426 0%, #0a0a0f 45%, #07070a 100%);
    color: var(--text);
    min-height: 100vh;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(6px);
    background: rgba(10, 10, 15, 0.88);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-text {
    line-height: 1;
}

.header-cover {
    height: 56px;
    border-top: 1px solid rgba(42, 39, 54, 0.65);
    background: linear-gradient(rgba(10, 10, 15, 0.78), rgba(10, 10, 15, 0.88)), url("/images/cover_transparent.png") center/cover no-repeat;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link:focus-visible {
    border-color: var(--accent-dark);
    color: var(--accent);
    background: rgba(214, 179, 90, 0.07);
}

.nav-link.active {
    border-color: var(--accent-dark);
    color: var(--accent);
    background: rgba(214, 179, 90, 0.12);
}

.hero {
    padding: 4.5rem 0 2.5rem;
}

.hero-panel {
    background: linear-gradient(160deg, rgba(214, 179, 90, 0.08), rgba(24, 24, 36, 0.7));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.3rem;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.03em;
}

.subtitle {
    color: var(--muted);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 8px;
    padding: 0.72rem 1.2rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #1b1408;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #e8c66e;
}

.btn-outline {
    border: 1px solid var(--accent-dark);
    color: var(--accent);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(214, 179, 90, 0.08);
}

.info {
    padding: 0.5rem 0 4rem;
}

.page-main {
    padding-bottom: 2.8rem;
}

.page-hero {
    padding: 3.2rem 0 1rem;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.page-section {
    padding: 0.7rem 0 1.3rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 0.9rem;
}

.content-card {
    background: linear-gradient(180deg, var(--panel-alt), var(--panel));
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.05rem;
}

.content-card h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: var(--accent);
    font-size: 1.15rem;
}

.content-card p {
    color: var(--text);
    line-height: 1.45;
}

.cards-compact {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.styled-list {
    margin: 0;
    padding-left: 1.1rem;
}

.styled-list li {
    margin: 0.3rem 0;
}

.styled-list.ordered {
    list-style: decimal;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 0.9rem;
}

.ranking-section {
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 320px;
}

.ranking-table th,
.ranking-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.55rem;
    text-align: left;
    font-size: 0.92rem;
}

.ranking-table th {
    color: var(--accent);
    font-weight: 600;
}

.boss-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 0.9rem;
}

.boss-card p {
    margin: 0.45rem 0;
}

.status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-alive {
    color: #092916;
    background: #34d399;
}

.status-dead {
    color: #2b0909;
    background: #f87171;
}

.status-respawning {
    color: #332506;
    background: #fbbf24;
}

.download-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.download-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.download-item h3 {
    margin: 0;
}

.narrow-container {
    width: min(560px, 92%);
}

.form-card {
    padding: 1.2rem;
}

.form-grid {
    display: grid;
    gap: 0.65rem;
}

.form-grid label {
    color: var(--muted);
    font-size: 0.95rem;
}

.form-grid input[type="text"],
.form-grid input[type="password"],
.form-grid input[type="email"] {
    background: #0f0f16;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.66rem 0.72rem;
}

.form-grid input:focus-visible {
    outline: 1px solid var(--accent-dark);
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.25rem 0 0.25rem;
}

.form-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.alert {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.94rem;
}

.alert-success {
    border-color: #2a6b53;
    background: rgba(52, 211, 153, 0.12);
    color: #98f0ca;
}

.alert-error {
    border-color: #8b3a3a;
    background: rgba(248, 113, 113, 0.13);
    color: #fecaca;
}

.field-error {
    margin: -0.2rem 0 0.2rem;
    color: #fca5a5;
    font-size: 0.84rem;
}

.session-box {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
}

.session-text {
    margin: 0;
}

.account-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.3rem;
}

.stat-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.stat-value {
    margin: 0 0 0.45rem;
    color: var(--accent);
    font-size: 1.16rem;
    font-weight: 700;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
}

.section-title {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 0.9rem;
}

.card {
    background: linear-gradient(180deg, var(--panel-alt), var(--panel));
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.card h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 600;
}

.value {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.status-online {
    color: var(--ok);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(8, 8, 12, 0.8);
}

.footer-inner {
    padding: 1.35rem 0 1.6rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-inner p {
    margin: 0.2rem 0;
}

@media (max-width: 980px) {
    .cards {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .cards-compact {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }

    .rankings-grid,
    .boss-grid,
    .stack-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.75rem 0;
    }

    .brand-logo {
        width: 30px;
        height: 30px;
    }

    .header-cover {
        height: 42px;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 2.5rem;
    }

    .hero-panel {
        padding: 1.4rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .cards-compact,
    .rankings-grid,
    .boss-grid,
    .stack-grid {
        grid-template-columns: 1fr;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .session-box {
        flex-direction: column;
        align-items: flex-start;
    }
}