:root {
    --lh-bg: #0a0b08;
    --lh-panel: #11130f;
    --lh-panel-2: #171912;
    --lh-line: #393622;
    --lh-line-soft: rgba(183, 146, 71, .18);
    --lh-gold: #d7b55f;
    --lh-gold-bright: #f0d27b;
    --lh-text: #e7e2d2;
    --lh-muted: #a8a593;
    --lh-green: #6ea73a;
    --lh-red: #b24c43;
}

.lh-wrap {
    width: min(1180px, calc(100% - 24px));
    margin: 28px auto 56px;
    color: var(--lh-text);
    font-family: Arial, Helvetica, sans-serif;
}

.lh-wrap *, .lh-wrap *::before, .lh-wrap *::after { box-sizing: border-box; }
.lh-wrap a { color: inherit; text-decoration: none; }
.lh-wrap h1, .lh-wrap h2, .lh-wrap h3, .lh-wrap p { margin-top: 0; }

.lh-titlebar {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
    padding: 28px 32px;
    border: 1px solid var(--lh-line);
    background:
        linear-gradient(90deg, rgba(203, 163, 78, .08), transparent 32%),
        linear-gradient(#151710, #0e100c);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .24), 0 14px 45px rgba(0, 0, 0, .28);
}

.lh-titlebar h1, .lh-player-hero h1 {
    margin: 3px 0 0;
    color: var(--lh-gold-bright);
    font: 700 clamp(34px, 6vw, 62px)/1 Georgia, serif;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.lh-titlebar p { max-width: 430px; margin: 0; color: var(--lh-muted); text-align: right; line-height: 1.6; }
.lh-kicker { color: var(--lh-gold); font: 700 12px/1.2 Georgia, serif; letter-spacing: .22em; text-transform: uppercase; }

.lh-mode-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--lh-line);
    border-top: 0;
    background: #0c0d0a;
}

.lh-mode-tabs a {
    position: relative;
    padding: 17px 12px;
    color: var(--lh-muted);
    text-align: center;
    font: 700 13px/1.2 Georgia, serif;
    letter-spacing: .05em;
    border-right: 1px solid var(--lh-line-soft);
    transition: .2s ease;
}
.lh-mode-tabs a:last-child { border-right: 0; }
.lh-mode-tabs a:hover, .lh-mode-tabs a.is-active { color: var(--lh-gold-bright); background: rgba(111, 143, 51, .12); }
.lh-mode-tabs a.is-active::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; background: var(--lh-gold); }

.lh-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.lh-sidebar, .lh-main > section, .lh-board, .lh-player-hero, .lh-player-summary, .lh-profile-panel, .lh-notice {
    border: 1px solid var(--lh-line);
    background: linear-gradient(145deg, #141611, #0e0f0c);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .23);
}
.lh-sidebar { overflow: hidden; align-self: start; }

.lh-nav-group h2 {
    margin: 0;
    padding: 13px 16px;
    color: var(--lh-gold);
    background: rgba(0, 0, 0, .23);
    border-top: 1px solid var(--lh-line-soft);
    border-bottom: 1px solid var(--lh-line-soft);
    font: 700 13px/1 Georgia, serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lh-nav-group:first-child h2 { border-top: 0; }
.lh-nav-group a { display: flex; gap: 10px; align-items: center; padding: 8px 13px; color: #c7c3b4; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, .035); }
.lh-nav-group a:hover, .lh-nav-group a.is-active { color: #fff1b7; background: linear-gradient(90deg, rgba(93, 130, 42, .24), transparent); }
.lh-nav-group a span, .lh-category-icon, .lh-skill-medallion {
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(211, 175, 88, .45);
    background: radial-gradient(circle at 35% 30%, var(--lh-skill-color, #6c6755), #25261f 68%);
    color: #fff2b4;
    border-radius: 50%;
    font: 700 9px/1 Arial, sans-serif;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3);
}

.lh-main { min-width: 0; }
.lh-search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; padding: 14px; }
.lh-search-card label { display: block; margin-bottom: 8px; color: var(--lh-gold); font: 700 12px/1 Georgia, serif; letter-spacing: .08em; text-transform: uppercase; }
.lh-search-card > div { display: flex; }
.lh-search-card input, .lh-compare input {
    min-width: 0;
    flex: 1;
    padding: 12px 13px;
    color: #f0eddf;
    border: 1px solid #403d2d;
    background: #090a08;
    outline: none;
}
.lh-search-card input:focus, .lh-compare input:focus { border-color: var(--lh-gold); box-shadow: 0 0 0 2px rgba(215, 181, 95, .12); }
.lh-search-card button, .lh-compare button {
    padding: 0 18px;
    color: #17170f;
    border: 1px solid #b18b37;
    background: linear-gradient(#e3c56f, #a97f2e);
    font: 700 13px/1 Georgia, serif;
    cursor: pointer;
}

.lh-board { overflow: hidden; }
.lh-board__header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 17px 19px; border-bottom: 1px solid var(--lh-line); background: rgba(0, 0, 0, .2); }
.lh-board__header .lh-category-icon { width: 44px; height: 44px; font-size: 12px; }
.lh-board__header span { color: var(--lh-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.lh-board__header h2 { margin: 2px 0 0; color: var(--lh-gold-bright); font: 700 25px/1.1 Georgia, serif; }
.lh-board__header small { color: var(--lh-muted); }

.lh-table-scroll { overflow-x: auto; }
.lh-table, .lh-mini-table { width: 100%; border-collapse: collapse; }
.lh-table th, .lh-table td { padding: 14px 18px; border-bottom: 1px solid rgba(199, 177, 113, .12); text-align: left; }
.lh-table th { color: var(--lh-muted); background: rgba(0, 0, 0, .14); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.lh-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .014); }
.lh-table tbody tr:hover { background: rgba(119, 151, 61, .08); }
.lh-table td:nth-last-child(-n+2), .lh-table th:nth-last-child(-n+2) { text-align: right; }
.lh-rank { color: var(--lh-gold); font-weight: 700; width: 74px; }
.lh-player-link { display: inline-flex; align-items: center; gap: 9px; color: #eee7d2 !important; font-weight: 700; }
.lh-player-link:hover { color: var(--lh-gold-bright) !important; }
.lh-mode-mark { width: 14px; height: 18px; display: inline-block; clip-path: polygon(50% 0, 100% 18%, 84% 82%, 50% 100%, 16% 82%, 0 18%); background: #777; border: 1px solid rgba(255,255,255,.2); }
.lh-mode-mark--ironman { background: #b17a37; }
.lh-mode-mark--hardcore { background: #b43b31; }
.lh-mode-mark--ultimate { background: #3a8aa1; }
.lh-empty { padding: 42px !important; text-align: center !important; color: var(--lh-muted); }

.lh-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 16px 18px; }
.lh-pagination > a:last-child { justify-self: end; }
.lh-pagination > div { display: flex; gap: 6px; }
.lh-pagination a { min-width: 34px; padding: 9px 10px; color: var(--lh-gold); text-align: center; border: 1px solid #383525; background: #0a0b08; font-size: 12px; }
.lh-pagination a:hover, .lh-pagination a.is-active { color: #17170f; border-color: #c5a654; background: var(--lh-gold); }

.lh-compare { margin-top: 18px; padding: 20px; }
.lh-compare header { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.lh-compare header span { color: var(--lh-gold-bright); font: 700 19px/1 Georgia, serif; }
.lh-compare header p { margin: 0; color: var(--lh-muted); font-size: 13px; }
.lh-compare form { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 9px; align-items: center; }
.lh-compare form > span { color: var(--lh-gold); font: 700 12px Georgia, serif; text-transform: uppercase; }
.lh-compare-table { margin-top: 18px; overflow: auto; }
.lh-compare-table table { width: 100%; border-collapse: collapse; }
.lh-compare-table th, .lh-compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--lh-line-soft); text-align: center; }
.lh-compare-table th { color: var(--lh-gold); }
.lh-error { margin: 14px 0 0; color: #e18075; }

.lh-player-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 28px; }
.lh-player-hero > a { padding: 11px 15px; color: var(--lh-gold); border: 1px solid var(--lh-line); background: #0a0b08; }
.lh-player-hero p { margin: 7px 0 0; color: var(--lh-muted); }
.lh-avatar { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; color: #18170e; background: linear-gradient(135deg, #f0d27b, #91671f); font: 700 34px Georgia, serif; box-shadow: 0 0 0 5px rgba(0, 0, 0, .25), 0 0 0 6px var(--lh-line); }
.lh-account-badge { display: inline-block; padding: 5px 9px; color: #17170f; background: var(--lh-gold); font: 700 10px/1 Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.lh-account-badge--ironman { background: #bd8240; }
.lh-account-badge--hardcore { color: white; background: #a7443a; }
.lh-account-badge--ultimate { color: white; background: #3c7e92; }

.lh-player-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.lh-player-summary > div { padding: 22px; text-align: center; border-right: 1px solid var(--lh-line-soft); }
.lh-player-summary > div:last-child { border-right: 0; }
.lh-player-summary span { display: block; color: var(--lh-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.lh-player-summary strong { display: block; margin-top: 7px; color: var(--lh-gold-bright); font: 700 24px/1.1 Georgia, serif; }

.lh-profile-panel { margin-top: 18px; padding: 22px; }
.lh-profile-panel > h2 { margin-bottom: 17px; color: var(--lh-gold-bright); font: 700 23px/1 Georgia, serif; }
.lh-skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lh-skill-grid > a { display: flex; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--lh-line-soft); background: rgba(0, 0, 0, .12); }
.lh-skill-grid > a:hover { border-color: rgba(215,181,95,.52); background: rgba(96,126,44,.08); }
.lh-skill-grid > a > span:last-child { min-width: 0; }
.lh-skill-grid strong, .lh-skill-grid small, .lh-skill-grid em { display: block; }
.lh-skill-grid strong { color: #eee7d2; font: 700 14px Georgia, serif; }
.lh-skill-grid small { margin-top: 3px; color: var(--lh-muted); }
.lh-skill-grid em { margin-top: 3px; color: var(--lh-gold); font-size: 11px; font-style: normal; }
.lh-activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lh-activity-grid > div { display: grid; grid-template-columns: 42px 1fr; gap: 3px 12px; align-items: center; padding: 13px; border: 1px solid var(--lh-line-soft); }
.lh-activity-grid > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; color: var(--lh-gold); border: 1px solid var(--lh-line); border-radius: 50%; }
.lh-activity-grid strong { color: #eee7d2; font: 700 14px Georgia, serif; }
.lh-activity-grid small { color: var(--lh-muted); }

.lh-notice { padding: 50px; text-align: center; }
.lh-notice h1 { color: var(--lh-gold-bright); font: 700 38px Georgia, serif; }
.lh-notice p { color: var(--lh-muted); }
.lh-notice a { display: inline-block; margin-top: 15px; padding: 11px 16px; color: #17170f; background: var(--lh-gold); }

.lh-mini-table th, .lh-mini-table td { padding: 8px 10px; border-bottom: 1px solid var(--lh-line-soft); text-align: left; }
.lh-mini-table th { color: var(--lh-muted); font-size: 10px; text-transform: uppercase; }
.lh-mini-table td:first-child { color: var(--lh-gold); }
.lh-mini-table td:last-child, .lh-mini-table th:last-child { text-align: right; }

@media (max-width: 920px) {
    .lh-layout { grid-template-columns: 205px minmax(0, 1fr); }
    .lh-skill-grid { grid-template-columns: repeat(2, 1fr); }
    .lh-titlebar { align-items: start; }
}

@media (max-width: 760px) {
    .lh-wrap { width: min(100% - 14px, 1180px); margin-top: 12px; }
    .lh-titlebar { display: block; padding: 22px; }
    .lh-titlebar p { margin-top: 12px; text-align: left; }
    .lh-mode-tabs { grid-template-columns: 1fr 1fr; }
    .lh-layout { display: block; }
    .lh-sidebar { margin-bottom: 14px; max-height: 290px; overflow: auto; }
    .lh-search-grid { grid-template-columns: 1fr; }
    .lh-board__header { grid-template-columns: auto 1fr; }
    .lh-board__header small { grid-column: 1 / -1; }
    .lh-compare form { grid-template-columns: 1fr; }
    .lh-compare form > span { text-align: center; }
    .lh-player-hero { grid-template-columns: auto 1fr; }
    .lh-player-hero > a { grid-column: 1 / -1; text-align: center; }
    .lh-player-summary { grid-template-columns: 1fr; }
    .lh-player-summary > div { border-right: 0; border-bottom: 1px solid var(--lh-line-soft); }
    .lh-player-summary > div:last-child { border-bottom: 0; }
    .lh-skill-grid, .lh-activity-grid { grid-template-columns: 1fr; }
    .lh-pagination { grid-template-columns: 1fr 1fr; }
    .lh-pagination > div { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
}

@media (max-width: 480px) {
    .lh-table th, .lh-table td { padding: 11px 10px; }
    .lh-table th:nth-child(4), .lh-table td:nth-child(4) { display: none; }
    .lh-titlebar h1, .lh-player-hero h1 { font-size: 34px; }
    .lh-player-hero { text-align: center; }
    .lh-avatar { margin: 0 auto; }
    .lh-player-hero { display: block; }
    .lh-player-hero > a { display: block; margin-top: 18px; }
}
