:root {
    --lmh-bg: #080a12;
    --lmh-surface: #111827;
    --lmh-surface-2: #151c2b;
    --lmh-line: rgba(200, 155, 60, .22);
    --lmh-gold: #c89b3c;
    --lmh-cyan: #0ac8b9;
    --lmh-red: #d13639;
    --lmh-text: #f6f0df;
    --lmh-muted: #9ea7b8;
    --lmh-radius: 8px;
    --lmh-shadow: 0 20px 50px rgba(0, 0, 0, .32);
}

* {
    box-sizing: border-box;
}

body.lmh-dark {
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(10, 200, 185, .12), transparent 30rem),
        linear-gradient(180deg, #080a12 0%, #0c101b 55%, #080a12 100%);
    color: var(--lmh-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.lmh-header,
.lmh-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.lmh-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
}

.lmh-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.lmh-brand span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--lmh-line);
    background: linear-gradient(135deg, rgba(200, 155, 60, .26), rgba(10, 200, 185, .14));
    border-radius: 8px;
    color: var(--lmh-gold);
    font-family: Cinzel, serif;
}

.lmh-nav ul {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lmh-nav a {
    color: var(--lmh-muted);
    font-size: .94rem;
    font-weight: 700;
}

.lmh-nav a:hover,
.lmh-section-head a:hover {
    color: var(--lmh-cyan);
}

.lmh-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.lmh-hero {
    min-height: calc(100vh - 112px);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 48px;
    padding: 56px 0 32px;
}

.lmh-hero-copy h1,
.lmh-page-hero h1,
.lmh-champion-hero h1 {
    margin: 0;
    font-family: Cinzel, serif;
    font-size: clamp(3.4rem, 8vw, 6.8rem);
    line-height: .9;
}

.lmh-hero-copy p,
.lmh-page-hero p,
.lmh-champion-hero p {
    max-width: 680px;
    color: var(--lmh-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.lmh-kicker {
    margin: 0 0 10px;
    color: var(--lmh-gold);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lmh-actions,
.lmh-chip-row,
.lmh-lane-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lmh-button,
.lmh-role-tabs button {
    border: 1px solid var(--lmh-line);
    background: rgba(17, 24, 39, .82);
    color: var(--lmh-text);
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.lmh-button-primary,
.lmh-role-tabs button.is-active {
    background: linear-gradient(135deg, var(--lmh-gold), #f0d28a);
    color: #081018;
    border-color: transparent;
}

.lmh-hero-panel,
.lmh-card,
.lmh-panel,
.lmh-filter-bar,
.lmh-tier-preview,
.lmh-tier-list {
    border: 1px solid var(--lmh-line);
    background: rgba(17, 24, 39, .84);
    box-shadow: var(--lmh-shadow);
    border-radius: var(--lmh-radius);
}

.lmh-hero-panel {
    padding: 28px;
}

.lmh-hero-panel h2,
.lmh-section h2,
.lmh-panel h2,
.lmh-card h2 {
    margin: 0 0 12px;
    font-size: 1.55rem;
}

.lmh-chip,
.lmh-lane-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(158, 167, 184, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: var(--lmh-muted);
    font-size: .78rem;
    font-weight: 800;
}

.lmh-comp-icons {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.lmh-comp-icons img,
.lmh-draft-board img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid rgba(200, 155, 60, .44);
    border-radius: 8px;
    background: #090d16;
}

.lmh-chip-hot {
    border-color: rgba(200, 155, 60, .46);
    color: var(--lmh-gold);
}

.lmh-section {
    padding: 56px 0;
}

.lmh-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.lmh-section-head h2,
.lmh-page-hero h1 {
    margin: 0;
}

.lmh-section-head a {
    color: var(--lmh-gold);
    font-weight: 800;
}

.lmh-champion-grid,
.lmh-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lmh-card {
    overflow: hidden;
}

.lmh-card[hidden] {
    display: none;
}

.lmh-card-image {
    min-height: 220px;
    display: block;
    position: relative;
    background:
        linear-gradient(135deg, rgba(200, 155, 60, .22), rgba(10, 200, 185, .2)),
        #111827;
    background-size: cover;
    background-position: center;
}

.lmh-card-image::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(180deg, transparent, rgba(8, 10, 18, .9));
}

.lmh-tier {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--lmh-gold);
    color: #081018;
    font-weight: 900;
}

.lmh-card-body {
    padding: 18px;
}

.lmh-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lmh-card-title-row span {
    color: var(--lmh-cyan);
    font-size: .84rem;
    font-weight: 900;
}

.lmh-card p,
.lmh-panel p,
.lmh-entry-content {
    color: var(--lmh-muted);
    line-height: 1.65;
}

.lmh-split {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 28px;
}

.lmh-tier-preview {
    padding: 20px;
}

.lmh-tier-preview div,
.lmh-tier-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.lmh-tier-preview div:last-child,
.lmh-tier-row:last-child {
    border-bottom: 0;
}

.lmh-tier-preview strong,
.lmh-tier-row > strong {
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--lmh-gold);
    color: #081018;
    border-radius: 8px;
    font-weight: 900;
}

.lmh-page-hero {
    padding: 72px 0 34px;
}

.lmh-filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 16px;
    align-items: end;
    padding: 16px;
    margin-bottom: 22px;
}

.lmh-search span {
    display: block;
    margin-bottom: 8px;
    color: var(--lmh-muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.lmh-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(158, 167, 184, .28);
    border-radius: 8px;
    background: #090d16;
    color: var(--lmh-text);
    padding: 0 14px;
}

.lmh-role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lmh-champion-hero {
    min-height: 520px;
    display: flex;
    align-items: end;
    padding: 44px;
    background-color: #101624;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--lmh-line);
    border-radius: var(--lmh-radius);
    overflow: hidden;
}

.lmh-two-column,
.lmh-three-column {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.lmh-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lmh-three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lmh-panel {
    padding: 22px;
}

.lmh-panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--lmh-muted);
    line-height: 1.8;
}

.lmh-panel h3 {
    margin: 18px 0 10px;
    color: var(--lmh-gold);
    font-size: .9rem;
    text-transform: uppercase;
}

.lmh-stat {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    margin: 0 0 14px;
}

.lmh-stat span {
    color: var(--lmh-muted);
    font-weight: 800;
}

.lmh-stat i {
    grid-column: 1 / -1;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lmh-cyan) var(--value), rgba(255, 255, 255, .08) var(--value));
}

.lmh-ability-list {
    display: grid;
    gap: 10px;
}

.lmh-ability-list div,
.lmh-draft-board div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.lmh-ability-list strong,
.lmh-draft-board span {
    color: var(--lmh-gold);
}

.lmh-draft-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.lmh-draft-board div {
    grid-template-columns: 1fr;
}

.lmh-draft-board img {
    width: 58px;
    height: 58px;
}

.lmh-tier-list {
    padding: 10px 20px;
}

.lmh-tier-row div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lmh-tier-row a {
    padding: 9px 12px;
    border: 1px solid rgba(158, 167, 184, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    font-weight: 800;
}

.lmh-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: var(--lmh-muted);
}

.lmh-footer p {
    margin: 6px 0 0;
}

.lmh-disclaimer {
    text-align: right;
}

@media (max-width: 920px) {
    .lmh-header,
    .lmh-footer,
    .lmh-hero,
    .lmh-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .lmh-hero,
    .lmh-split,
    .lmh-filter-bar,
    .lmh-two-column,
    .lmh-three-column,
    .lmh-draft-board {
        grid-template-columns: 1fr;
    }

    .lmh-champion-grid,
    .lmh-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lmh-nav ul {
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .lmh-main,
    .lmh-header,
    .lmh-footer {
        width: min(100% - 22px, 1180px);
    }

    .lmh-champion-grid,
    .lmh-content-grid {
        grid-template-columns: 1fr;
    }

    .lmh-champion-hero {
        min-height: 440px;
        padding: 24px;
    }

    .lmh-hero-copy h1,
    .lmh-page-hero h1,
    .lmh-champion-hero h1 {
        font-size: 3.2rem;
    }

    .lmh-footer,
    .lmh-disclaimer {
        text-align: left;
    }
}
