.system-lb-page {
    --lb-panel: rgba(7, 11, 20, 0.78);
    --lb-panel-strong: rgba(10, 14, 25, 0.94);
    --lb-border: rgba(102, 225, 222, 0.18);
    --lb-cyan: #72f4e9;
    --lb-purple: #a678ff;
    --lb-gold: #f4c966;
    --lb-red: #ff6d87;
    --lb-green: #77ffa2;
    display: grid;
    gap: 20px;
    color: #edf8ff;
}

.system-lb-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 18px;
    min-height: 340px;
    padding: clamp(22px, 4vw, 44px);
    overflow: hidden;
    border: 1px solid rgba(114, 244, 233, 0.22);
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(5, 8, 15, 0.94), rgba(16, 12, 32, 0.76) 58%, rgba(7, 9, 18, 0.94)),
        url('/application/themes/tanados_reborn/assets/images/tanados/tanados-hero-realmgate-v4.webp') center / cover no-repeat;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), inset 0 0 70px rgba(114, 244, 233, 0.07);
}

.system-lb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 24%, rgba(114, 244, 233, 0.18), transparent 32%),
        radial-gradient(circle at 78% 34%, rgba(166, 120, 255, 0.22), transparent 36%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

.system-lb-attunement .system-lb-hero::before {
    background:
        radial-gradient(circle at 20% 24%, rgba(244, 201, 102, 0.17), transparent 32%),
        radial-gradient(circle at 78% 34%, rgba(166, 120, 255, 0.22), transparent 36%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

.system-lb-hero > div {
    position: relative;
    z-index: 1;
}

.system-lb-hero h2 {
    max-width: 780px;
    margin: 10px 0 12px;
    color: #fff8dc;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 0.95;
    letter-spacing: 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.system-lb-hero p {
    max-width: 760px;
    margin: 0;
    color: #d7e9f5;
    font-size: 16px;
    line-height: 1.68;
}

.system-lb-kicker {
    display: inline-flex;
    width: fit-content;
    color: var(--lb-cyan);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.system-lb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.system-lb-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid rgba(114, 244, 233, 0.32);
    border-radius: 8px;
    background: rgba(20, 230, 210, 0.1);
    color: #f2fffd;
    font-weight: 850;
    text-decoration: none;
}

.system-lb-actions a:hover,
.system-lb-actions a:focus {
    border-color: rgba(166, 120, 255, 0.58);
    background: rgba(166, 120, 255, 0.15);
    color: #fff;
}

.system-lb-focus {
    align-self: end;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(114, 244, 233, 0.22);
    border-radius: 10px;
    background: rgba(4, 8, 18, 0.62);
    backdrop-filter: blur(8px);
}

.system-lb-focus strong {
    color: #fff8dc;
    font-size: 20px;
}

.system-lb-focus span,
.system-lb-focus small {
    color: #cddfee;
    line-height: 1.55;
}

.system-lb-focus small {
    color: #ffe2a2;
    font-weight: 800;
}

.system-lb-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.system-lb-stats > div,
.system-lb-panel,
.system-lb-card-grid article,
.system-lb-run-list article,
.system-lb-objective-list article,
.system-lb-dungeon-list article {
    border: 1px solid var(--lb-border);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(6, 9, 17, 0.76);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.system-lb-stats > div {
    min-height: 88px;
    padding: 14px;
}

.system-lb-stats strong {
    display: block;
    color: #fff;
    font-size: 29px;
    line-height: 1;
}

.system-lb-stats span {
    display: block;
    margin-top: 9px;
    color: #b8c7d8;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.system-lb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.system-lb-panel {
    overflow: hidden;
    padding: 15px;
}

.system-lb-primary {
    border-color: rgba(114, 244, 233, 0.24);
}

.system-lb-panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.system-lb-panel-head h3 {
    margin: 0;
    color: #fff8dc;
    font-size: 22px;
    line-height: 1.16;
}

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

.system-lb-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.system-lb-table-compact {
    min-width: 680px;
}

.system-lb-table th,
.system-lb-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    vertical-align: middle;
}

.system-lb-table th {
    color: #bcefea;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.system-lb-table td {
    color: #e9f3fb;
    font-size: 13px;
}

.system-lb-table tr:hover td {
    background: rgba(114, 244, 233, 0.045);
}

.system-lb-rank {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(244, 201, 102, 0.28);
    border-radius: 8px;
    background: rgba(244, 201, 102, 0.11);
    color: #ffe2a2;
    font-weight: 900;
}

.system-lb-player {
    display: grid;
    gap: 3px;
    min-width: 220px;
}

.system-lb-player strong {
    color: #fff;
    font-size: 14px;
}

.system-lb-player span,
.system-lb-empty,
.system-lb-card-grid p,
.system-lb-run-list small,
.system-lb-objective-list small {
    color: #b9c8d7;
    font-size: 12px;
    line-height: 1.5;
}

.system-lb-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid rgba(166, 120, 255, 0.32);
    border-radius: 999px;
    background: rgba(166, 120, 255, 0.12);
    color: #f0e8ff;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.system-lb-status-timed,
.system-lb-status-completed_timed,
.system-lb-status-unlocked {
    border-color: rgba(114, 244, 233, 0.35);
    background: rgba(114, 244, 233, 0.11);
    color: #e8fffc;
}

.system-lb-status-untimed,
.system-lb-status-completed_untimed {
    border-color: rgba(244, 201, 102, 0.34);
    background: rgba(244, 201, 102, 0.12);
    color: #ffedc0;
}

.system-lb-status-failed,
.system-lb-status-abandoned,
.system-lb-status-depleted {
    border-color: rgba(255, 109, 135, 0.36);
    background: rgba(255, 109, 135, 0.12);
    color: #ffd8df;
}

.system-lb-run-list,
.system-lb-objective-list,
.system-lb-dungeon-list,
.system-lb-card-grid {
    display: grid;
    gap: 10px;
}

.system-lb-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.system-lb-run-list article,
.system-lb-objective-list article,
.system-lb-dungeon-list article,
.system-lb-card-grid article {
    padding: 13px;
}

.system-lb-run-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.system-lb-run-list strong,
.system-lb-run-list small,
.system-lb-objective-list strong,
.system-lb-objective-list small,
.system-lb-dungeon-list strong,
.system-lb-card-grid span,
.system-lb-card-grid h4,
.system-lb-card-grid p {
    display: block;
}

.system-lb-run-list strong {
    margin-top: 7px;
    color: #fff;
    font-size: 14px;
}

.system-lb-run-list > article > span {
    color: #ffe2a2;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.system-lb-card-grid span,
.system-lb-objective-list span,
.system-lb-dungeon-list span {
    color: #bcefea;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.system-lb-card-grid h4,
.system-lb-objective-list strong,
.system-lb-dungeon-list strong {
    margin: 7px 0 5px;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.system-lb-card-grid p {
    margin: 0;
}

.system-lb-dungeon-list {
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.system-lb-empty {
    padding: 16px;
    text-align: center;
}

@media (max-width: 1200px) {
    .system-lb-grid,
    .system-lb-hero {
        grid-template-columns: 1fr;
    }

    .system-lb-focus {
        align-self: stretch;
    }
}

@media (max-width: 640px) {
    .system-lb-page {
        gap: 14px;
    }

    .system-lb-hero {
        min-height: 0;
        padding: 18px;
    }

    .system-lb-hero h2 {
        font-size: 34px;
    }

    .system-lb-actions a {
        flex: 1 1 150px;
    }

    .system-lb-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .system-lb-stats > div {
        min-height: 78px;
        padding: 12px;
    }

    .system-lb-stats strong {
        font-size: 24px;
    }

    .system-lb-panel {
        padding: 12px;
    }

    .system-lb-panel-head {
        display: grid;
        gap: 6px;
    }

    .system-lb-run-list article {
        align-items: flex-start;
        flex-direction: column;
    }
}
