/* Lemuria — jungle douce, formes arrondies */

:root {
    --lm-primary: #6aad3a;
    --lm-gold: #d4af37;
    --lm-bg: #101810;
    --lm-bg-soft: #172117;
    --lm-surface: #f4f1e8;
    --lm-surface-2: #ebe6d8;
    --lm-ink: #1c241c;
    --lm-muted: #5d6a5d;
    --lm-cream: #f7f4ec;
    --lm-fire: #e07030;
    --lm-ice: #5ec4d4;
    --lm-storm: #7aa8ff;
    --lm-radius: 1.6rem;
    --lm-radius-sm: 1.1rem;
    --lm-pill: 999px;
    --lm-shadow: 0 16px 40px -18px rgba(0, 0, 0, .45);
    --lm-font: "Nunito", "Trebuchet MS", sans-serif;
    --lm-display: "Fredoka", "Nunito", sans-serif;
}

html { height: 100%; scroll-behavior: smooth; }

body.lm-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(106, 173, 58, .18), transparent 55%),
        radial-gradient(900px 420px at 110% 0%, rgba(212, 175, 55, .1), transparent 50%),
        var(--lm-bg);
    color: var(--lm-cream);
    font-family: var(--lm-font);
    font-weight: 600;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app { flex: 1 0 auto; }
.lm-footer { flex-shrink: 0; }

a { color: var(--lm-primary); text-decoration: none; }
a:hover { color: var(--lm-gold); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6, .lm-brand-text {
    font-family: var(--lm-display);
    font-weight: 650;
    letter-spacing: .01em;
}

.lm-page { animation: lmIn .45s ease both; }
@keyframes lmIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header */
.lm-fixed-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1030;
}

.lm-topbanner {
    padding: .42rem 1rem;
    text-align: center;
    color: #132013;
    font-weight: 800;
    font-size: .88rem;
    background: linear-gradient(90deg, #8bc34a, var(--lm-gold), #8bc34a);
}

.lm-navbar {
    background: rgba(16, 24, 16, .92);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .55);
    padding: .7rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, .18);
}

.lm-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--lm-cream) !important;
    font-size: 1.35rem;
}

.lm-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--lm-gold);
}

.lm-brand-text { color: var(--lm-gold); }

.lm-toggler {
    border: none;
    background: var(--lm-bg-soft);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lm-cream);
    font-size: 1.25rem;
}

.lm-navbar .nav-link {
    font-weight: 700;
    color: var(--lm-cream) !important;
    border-radius: var(--lm-pill);
    padding: .48rem 1rem !important;
    margin: 0 .1rem;
    transition: background .2s, color .2s, transform .25s cubic-bezier(.34, 1.4, .64, 1);
}

.lm-navbar .nav-link:hover,
.lm-navbar .nav-link.active {
    background: rgba(106, 173, 58, .22);
    color: var(--lm-gold) !important;
    transform: translateY(-2px) scale(1.04);
}

.lm-dropdown {
    border: none;
    border-radius: var(--lm-radius-sm);
    background: var(--lm-surface);
    box-shadow: var(--lm-shadow);
    padding: .45rem;
}

.lm-dropdown .dropdown-item {
    border-radius: .8rem;
    padding: .5rem .8rem;
    font-weight: 700;
    color: var(--lm-ink);
}

.lm-dropdown .dropdown-item:hover,
.lm-dropdown .dropdown-item.active {
    background: #e4efd8;
    color: #2f6a22;
}

.lm-avatar {
    border-radius: 50%;
    border: 2px solid var(--lm-gold);
    object-fit: cover;
}

/* Buttons */
.lm-btn, .btn {
    border-radius: var(--lm-pill) !important;
    font-weight: 800;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1.35rem;
    transition: transform .28s cubic-bezier(.34, 1.5, .64, 1), box-shadow .28s ease, filter .28s;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .4);
    position: relative;
    overflow: hidden;
}

.lm-btn:hover, .btn:hover { transform: translateY(-3px) scale(1.045); box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .5); }
.lm-btn:active, .btn:active { transform: translateY(1px) scale(.97); }
.lm-btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; }

.lm-btn-primary, .btn-primary {
    background: linear-gradient(135deg, var(--lm-primary), #4e8a2c) !important;
    color: #fff !important;
}
.lm-btn-primary::after, .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%);
    transform: translateX(-130%);
    pointer-events: none;
}
.lm-btn-primary:hover::after, .btn-primary:hover::after {
    animation: lmShine .75s ease;
}
.lm-copy-ip.is-copied {
    animation: lmCopied .55s cubic-bezier(.34, 1.6, .64, 1);
}

.lm-btn-ghost {
    background: rgba(244, 241, 232, .08) !important;
    color: var(--lm-cream) !important;
    box-shadow: none;
}

.lm-btn-discord, .btn-secondary {
    background: #5865F2 !important;
    color: #fff !important;
}

/* Cards / forms */
.lm-card, .card {
    border: none;
    border-radius: 1.8rem 1.4rem 2rem 1.6rem !important;
    background: var(--lm-surface);
    color: var(--lm-ink);
    box-shadow: var(--lm-shadow);
}

.card-body { color: var(--lm-ink); }

.form-control, .form-select {
    border-radius: 1rem !important;
    border: 1.5px solid #d7d0be;
    padding: .7rem 1rem;
    background: #fff;
}

.form-control:focus {
    border-color: var(--lm-primary);
    box-shadow: 0 0 0 .25rem rgba(106, 173, 58, .2);
}

.alert { border: none; border-radius: var(--lm-radius-sm); }
.badge { border-radius: var(--lm-pill); }

.lm-page-content .card,
.lm-page-content .table {
    border-radius: var(--lm-radius);
}

/* Titres sur le fond jungle (hors cartes) */
.lm-page-content > h1,
.lm-page-content > h2,
.lm-page-title {
    color: var(--lm-cream);
}

/* Titres dans les cartes ivoire : encre, jamais blanc */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.lm-card h1, .lm-card h2, .lm-card h3, .lm-card h4, .lm-card h5, .lm-card h6,
.card .card-title, .card .card-header,
.lm-wiki-cat h2,
.lm-wiki-article-title,
.lm-wiki-content h1, .lm-wiki-content h2, .lm-wiki-content h3,
.lm-wiki-result h2,
.lm-lore-panel h1, .lm-lore-panel h2, .lm-lore-panel h3,
.lm-founder h3,
.lm-news-title,
.lm-card-title {
    color: var(--lm-ink) !important;
}

.lm-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(212, 175, 55, .16);
    color: var(--lm-gold);
    border-radius: var(--lm-pill);
    padding: .28rem .85rem;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lm-section-title, .lm-page-title, .lm-hero-title {
    font-family: var(--lm-display);
}

.lm-lead, .lm-muted { color: rgba(247, 244, 236, .78); }
.lm-card .lm-lead, .lm-card .lm-muted { color: var(--lm-muted); }

/* Hero */
.lm-hero {
    position: relative;
    overflow: hidden;
    padding: 4.2rem 0 3.4rem;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(106, 173, 58, .2), transparent 55%),
        linear-gradient(180deg, rgba(8, 14, 8, .2), rgba(16, 24, 16, .92));
}

.lm-hero.has-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--lm-hero-photo) center / cover no-repeat;
    filter: saturate(1.05);
    z-index: 0;
}

.lm-hero.has-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 10, .35), rgba(16, 24, 16, .88));
    z-index: 0;
}

.lm-hero-canopy {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(20, 50, 22, .55) 0 12%, transparent 13%),
        radial-gradient(circle at 28% -4%, rgba(14, 40, 18, .5) 0 16%, transparent 17%),
        radial-gradient(circle at 72% -6%, rgba(18, 48, 20, .5) 0 18%, transparent 19%),
        radial-gradient(circle at 90% 2%, rgba(12, 36, 16, .55) 0 14%, transparent 15%);
    pointer-events: none;
    z-index: 1;
}

.lm-hero-mist {
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(180deg, transparent, var(--lm-bg));
    z-index: 1;
}

.lm-hero .container { position: relative; z-index: 3; }

.lm-hero .lm-kicker { animation: lmHeroIn .7s cubic-bezier(.22, 1, .36, 1) both; }
.lm-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: #fff;
    margin: .7rem 0 .5rem;
    animation: lmHeroIn .8s .08s cubic-bezier(.22, 1, .36, 1) both;
}

.lm-hero-text {
    font-size: 1.12rem;
    color: rgba(247, 244, 236, .86);
    max-width: 36rem;
    animation: lmHeroIn .8s .16s cubic-bezier(.22, 1, .36, 1) both;
}
.lm-hero-chips { animation: lmHeroIn .75s .24s cubic-bezier(.22, 1, .36, 1) both; }
.lm-hero .d-flex { animation: lmHeroIn .75s .32s cubic-bezier(.22, 1, .36, 1) both; }
.lm-hero-logo-wrap { animation: lmHeroLogo .95s .15s cubic-bezier(.22, 1, .36, 1) both; }

.lm-quote {
    margin: 1.1rem 0 0;
    padding: .85rem 1.2rem;
    border-left: 4px solid var(--lm-gold);
    background: rgba(244, 241, 232, .08);
    border-radius: 0 var(--lm-radius-sm) var(--lm-radius-sm) 0;
    font-style: italic;
    color: var(--lm-gold);
}

.lm-hero-logo-wrap {
    position: relative;
    display: grid;
    place-items: center;
}

.lm-hero-ring {
    position: absolute;
    width: min(88%, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow:
        0 0 0 10px rgba(212, 175, 55, .22),
        0 0 60px 8px rgba(106, 173, 58, .28);
    pointer-events: none;
}
.lm-hero-ring.is-mid {
    width: min(102%, 420px);
    box-shadow: 0 0 0 2px rgba(106, 173, 58, .28);
    animation: lmRingPulse 6s ease-in-out infinite;
}
.lm-hero-ring.is-outer {
    width: min(118%, 490px);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, .18);
    animation: lmRingPulse 8s ease-in-out infinite reverse;
}

.lm-hero-logo {
    width: min(88%, 360px);
    height: auto;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45));
}

.lm-hero-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lm-spark {
    position: absolute;
    font-size: 1.6rem;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.35));
    animation: lmSpark 4.5s ease-in-out infinite;
}
.lm-spark.is-fire { left: 54%; top: 22%; animation-delay: 0s; }
.lm-spark.is-storm { left: 82%; top: 38%; animation-delay: .8s; }
.lm-spark.is-ice { left: 72%; top: 66%; animation-delay: 1.5s; }
@keyframes lmSpark {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: .8; }
    40% { transform: translateY(-14px) scale(1.22) rotate(10deg); opacity: 1; }
    70% { transform: translateY(-4px) scale(1.05) rotate(-6deg); opacity: .9; }
}

.lm-hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.lm-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    background: rgba(244, 241, 232, .12);
    border: 1px solid rgba(212, 175, 55, .28);
    color: var(--lm-cream);
    border-radius: var(--lm-pill);
    padding: .35rem .85rem;
    font-size: .9rem;
    font-weight: 800;
}
.lm-chip.is-live {
    background: rgba(106, 173, 58, .22);
    border-color: rgba(106, 173, 58, .45);
    animation: lmLive 2.2s ease-out infinite;
}

.lm-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    color: var(--lm-gold);
    font-size: 1.5rem;
    z-index: 3;
    animation: lmScroll 2.1s ease-in-out infinite;
}
.lm-scroll:hover { color: var(--lm-cream); }
@keyframes lmScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: .7; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

.lm-hero { min-height: min(88vh, 760px); display: flex; flex-direction: column; justify-content: center; }

/* Stats */
.lm-stats { padding: .5rem 0 1rem; }
.lm-stat-card {
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: 2.2rem 1.4rem 2.5rem 1.7rem;
    padding: 1.4rem 1rem;
    box-shadow: var(--lm-shadow);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.lm-stat-icon { font-size: 1.6rem; display: block; margin-bottom: .35rem; }
.lm-stat-number {
    display: block;
    font-family: var(--lm-display);
    font-size: 2rem;
    color: #2f6a22;
}
.lm-stat-label { color: var(--lm-muted); font-weight: 700; }

/* Sections */
#lore, #fondateurs, #districts, #rejoindre { scroll-margin-top: 7rem; }
.lm-section { padding: 2.4rem 0; position: relative; }
.lm-section-title { font-size: 2rem; margin: .45rem 0 .4rem; color: var(--lm-cream); }
.lm-lead-center { max-width: 40rem; margin-inline: auto; }

.lm-origin {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 1.4rem;
    align-items: stretch;
}
.lm-origin-copy {
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: 2.8rem 1.5rem 2.4rem 1.9rem;
    padding: 2rem 1.8rem;
    box-shadow: var(--lm-shadow);
    position: relative;
    overflow: hidden;
}
.lm-origin-copy .lm-kicker { background: rgba(47, 106, 34, .12); color: #2f6a22; }
.lm-origin-copy .lm-section-title,
.lm-origin-copy .lm-lead { color: var(--lm-ink) !important; }
.lm-origin-copy .lm-lead { color: var(--lm-muted) !important; }
.lm-origin-aside {
    background: linear-gradient(180deg, #1a2a18, #121a12);
    border-radius: 1.5rem 2.8rem 1.7rem 2.5rem;
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, .28);
    box-shadow: var(--lm-shadow);
    position: relative;
    overflow: hidden;
}
.lm-origin-mark {
    font-family: var(--lm-display);
    font-size: 3.4rem;
    line-height: .6;
    color: var(--lm-gold);
}
.lm-origin-aside p {
    font-family: var(--lm-display);
    font-size: 1.45rem;
    color: var(--lm-gold);
    margin: .4rem 0 1rem;
}
.lm-origin-cite { color: rgba(247, 244, 236, .7); font-size: .9rem; }

.lm-founder-role {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lm-muted);
    margin-bottom: .2rem;
}
.lm-founder.is-fire .lm-founder-role { color: var(--lm-fire); }
.lm-founder.is-ice .lm-founder-role { color: #0e7490; }
.lm-founder.is-storm .lm-founder-role { color: #4f46e5; }

.lm-district-card {
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: 1.4rem 2.6rem 1.5rem 2.3rem;
    padding: 1.7rem 1.4rem 1.5rem;
    height: 100%;
    box-shadow: var(--lm-shadow);
    overflow: hidden;
    position: relative;
}
.lm-district-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 7px;
}
.lm-district-card.is-fire::before { background: linear-gradient(90deg, #f57c00, #b71c1c); }
.lm-district-card.is-ice::before { background: linear-gradient(90deg, #4dd0e1, #1565c0); }
.lm-district-card.is-storm::before { background: linear-gradient(90deg, #7aa8ff, #5e35b1); }
.lm-district-emoji { font-size: 2rem; display: block; margin: .4rem 0 .6rem; }
.lm-district-card h3 { margin-bottom: .45rem; color: var(--lm-ink) !important; }
.lm-district-card p { margin: 0; color: var(--lm-muted); }

.lm-quote-banner {
    position: relative;
    overflow: hidden;
    margin: 0 0 2rem;
    padding: 2.6rem 1rem;
    background:
        radial-gradient(600px 160px at 50% 0%, rgba(212, 175, 55, .18), transparent 70%),
        linear-gradient(180deg, rgba(18, 28, 18, .4), rgba(16, 24, 16, .1));
    border-block: 1px solid rgba(212, 175, 55, .22);
}
.lm-quote-banner-text {
    font-family: var(--lm-display);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    color: var(--lm-gold);
    margin-bottom: .7rem;
    animation: lmQuoteGlow 4.5s ease-in-out infinite;
}
.lm-quote-banner-sub {
    max-width: 42rem;
    margin: 0 auto;
    color: rgba(247, 244, 236, .8);
}

.lm-join {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: 2.6rem 1.6rem 2.8rem 1.4rem;
    padding: 1.6rem 1.6rem;
    box-shadow: var(--lm-shadow);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.lm-join-copy { flex: 1 1 240px; }
.lm-join-copy .lm-kicker { background: rgba(47, 106, 34, .12); color: #2f6a22; }
.lm-join h2 { font-size: 1.7rem; margin: .35rem 0 .4rem; color: var(--lm-ink) !important; }
.lm-join p { color: var(--lm-muted); margin-bottom: 1rem; }
.lm-join .lm-btn-ghost {
    background: #e4efd8 !important;
    color: #2f6a22 !important;
}
.lm-cta { padding: 0 0 3.2rem; }
.lm-page-hero { margin-bottom: 1.6rem; }
.lm-page-title { font-size: 2.1rem; color: var(--lm-cream); margin: .4rem 0 .35rem; }

.lm-founder {
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: 2.5rem 1.3rem 2.2rem 1.8rem;
    padding: 1.6rem 1.3rem 1.4rem;
    height: 100%;
    box-shadow: var(--lm-shadow);
    border-top: 6px solid var(--lm-primary);
    position: relative;
    overflow: hidden;
}
.lm-founder.is-fire { border-top-color: var(--lm-fire); }
.lm-founder.is-ice { border-top-color: var(--lm-ice); }
.lm-founder.is-storm { border-top-color: var(--lm-storm); }
.lm-founder-orb {
    width: 58px; height: 58px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.55rem;
    margin-bottom: .8rem;
    background: #efe8d6;
}
.lm-founder h3 { margin-bottom: .45rem; }
.lm-founder p { margin: 0; color: var(--lm-muted); }

.lm-lore-panel {
    background: linear-gradient(180deg, rgba(244, 241, 232, .96), #efe8d4);
    color: var(--lm-ink);
    border-radius: calc(var(--lm-radius) + .3rem);
    padding: 2.2rem 1.8rem;
    box-shadow: var(--lm-shadow);
}
.lm-lore-panel .lm-kicker { background: rgba(47, 106, 34, .12); color: #2f6a22; }
.lm-lore-panel .lm-section-title,
.lm-lore-panel .lm-lead { color: var(--lm-ink); }
.lm-lore-panel .lm-lead { color: var(--lm-muted); }

.lm-districts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    margin: 1.3rem 0 1.5rem;
}
.lm-district {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: #fff;
    border-radius: var(--lm-pill);
    padding: .7rem 1rem;
    font-weight: 800;
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .25);
}
.lm-district.is-fire { color: #b45309; }
.lm-district.is-ice { color: #0e7490; }
.lm-district.is-storm { color: #3730a3; }
.lm-balance-title { font-size: 1.25rem; margin-top: .4rem; }

.lm-news-card {
    display: flex;
    flex-direction: column;
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: 1.8rem 1.3rem 2.2rem 1.6rem;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--lm-shadow);
    transition: transform .2s;
}
.lm-news-card:hover { transform: translateY(-4px); color: var(--lm-ink); }
.lm-news-image, .lm-news-placeholder {
    height: 160px;
    object-fit: cover;
    width: 100%;
    background: linear-gradient(135deg, #1a3c22, #0c1610);
    display: grid;
    place-items: center;
}
.lm-news-body { padding: 1rem 1.1rem 1.2rem; }
.lm-news-date { color: var(--lm-muted); font-size: .85rem; }
.lm-news-title { margin: .25rem 0 0; font-size: 1.15rem; }

.lm-progress {
    height: 10px;
    background: #ddd6c4;
    border-radius: var(--lm-pill);
    overflow: hidden;
}
.lm-progress > span, .lm-progress .progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--lm-primary), var(--lm-gold));
    border-radius: inherit;
}

.lm-cta { padding: 0 0 3rem; }
.lm-discord-frame {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: var(--lm-radius);
    padding: 1.2rem 1.4rem;
    box-shadow: var(--lm-shadow);
    flex-wrap: wrap;
}
.lm-discord-frame:hover { color: var(--lm-ink); }
.lm-cta-logo { border-radius: 50%; box-shadow: 0 0 0 3px var(--lm-gold); }
.lm-discord-frame strong { display: block; font-size: 1.2rem; }
.lm-discord-action {
    margin-left: auto;
    background: #5865F2;
    color: #fff;
    border-radius: var(--lm-pill);
    padding: .55rem 1.1rem;
    font-weight: 800;
}

/* Vote */
.lm-vote-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
    margin-bottom: 1.4rem;
}
.lm-vote-stat {
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: var(--lm-radius-sm);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--lm-shadow);
}
.lm-vote-stat span { display: block; color: var(--lm-muted); font-size: .85rem; }
.lm-vote-stat strong { font-size: 1.45rem; color: #2f6a22; }
.lm-card-title {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    color: var(--lm-ink);
}
.lm-vote-name-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.lm-vote-name-row .form-control { flex: 1 1 180px; }
.lm-vote-sites { display: grid; gap: .65rem; }
.lm-vote-site {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border-radius: var(--lm-pill);
    padding: .7rem 1rem;
    color: var(--lm-ink);
    font-weight: 700;
    box-shadow: 0 8px 16px -12px rgba(0,0,0,.3);
}
.lm-vote-site:hover { color: var(--lm-ink); transform: translateY(-2px); }
.lm-vote-site-icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: #e4efd8; color: #2f6a22;
}
.lm-vote-site span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.lm-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: .7rem;
    align-items: end;
    margin-bottom: 1.3rem;
}
.lm-podium-slot {
    background: #fff;
    border-radius: var(--lm-radius-sm);
    padding: 1rem .7rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.lm-podium-slot.is-pos-1 { padding-top: 1.4rem; box-shadow: 0 0 0 2px var(--lm-gold); }
.lm-podium-medal { font-size: 1.4rem; }
.lm-leaderboard, .lm-rewards { list-style: none; padding: 0; margin: 0; }
.lm-leaderboard li, .lm-rewards li {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: #fff;
    border-radius: var(--lm-pill);
    padding: .55rem .9rem;
    margin-bottom: .45rem;
}
.lm-rank-pos { font-weight: 800; color: #2f6a22; min-width: 2.2rem; }
.lm-rank-count { margin-left: auto; font-weight: 800; }
.lm-rewards img { border-radius: 50%; }
.lm-rewards strong { margin-left: auto; color: #2f6a22; }
.lm-goal-pct { font-weight: 800; color: #2f6a22; }

/* Wiki */
.lm-wiki-search-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: var(--lm-surface);
    border-radius: var(--lm-pill);
    padding: .35rem .4rem .35rem 1rem;
    box-shadow: var(--lm-shadow);
    color: var(--lm-ink);
}
.lm-wiki-search-row .form-control { border: none !important; box-shadow: none !important; background: transparent; }
.lm-wiki-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.lm-wiki-cat {
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: var(--lm-radius);
    padding: 1.4rem 1.2rem;
    box-shadow: var(--lm-shadow);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: transform .2s;
}
.lm-wiki-cat:hover { transform: translateY(-4px); color: var(--lm-ink); }
.lm-wiki-cat-icon {
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    background: #e4efd8; color: #2f6a22; font-size: 1.3rem;
}
.lm-wiki-cat h2 { font-size: 1.2rem; margin: 0; }
.lm-wiki-cat-cta { color: #2f6a22; font-weight: 800; margin-top: auto; }
.lm-wiki-sidebar {
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: var(--lm-radius);
    padding: 1.1rem;
    box-shadow: var(--lm-shadow);
}
.lm-wiki-side-block h3 { font-size: 1rem; margin-bottom: .55rem; }
.lm-wiki-nav { display: grid; gap: .35rem; margin-bottom: 1rem; }
.lm-wiki-nav-link {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .7rem; border-radius: var(--lm-pill);
    color: var(--lm-ink); font-weight: 700;
}
.lm-wiki-nav-link:hover, .lm-wiki-nav-link.active {
    background: #e4efd8; color: #2f6a22;
}
.lm-wiki-article-title { margin-bottom: 1rem; }
.lm-wiki-content { color: var(--lm-ink); }
.lm-wiki-content p { margin-bottom: 1rem; }
.lm-wiki-content blockquote {
    border-left: 4px solid var(--lm-gold);
    padding: .7rem 1rem;
    background: #efe8d4;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
}
.lm-wiki-result { display: block; margin-bottom: .9rem; color: var(--lm-ink); }
.lm-wiki-result:hover { color: var(--lm-ink); }
.lm-wiki-badge {
    background: #e4efd8; color: #2f6a22;
    border-radius: var(--lm-pill); padding: .25rem .7rem; font-weight: 800; font-size: .85rem;
}
.lm-empty {
    text-align: center;
    background: var(--lm-surface);
    color: var(--lm-ink);
    border-radius: var(--lm-radius);
    padding: 2.4rem 1.4rem;
}
.lm-empty i { font-size: 2rem; color: #2f6a22; }

/* Footer */
.lm-footer {
    margin-top: 1rem;
    background: #0b120b;
    color: rgba(247, 244, 236, .82);
}
.lm-footer-wave { color: #0b120b; margin-top: -1px; }
.lm-footer-wave svg { display: block; width: 100%; height: 54px; }
.lm-footer-brand {
    display: flex; align-items: center; gap: .7rem;
    font-family: var(--lm-display); font-size: 1.4rem; color: var(--lm-gold);
}
.lm-footer-logo { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px var(--lm-gold); }
.lm-footer-quote { color: var(--lm-gold); font-style: italic; }
.lm-footer-title { color: var(--lm-cream); font-size: 1.05rem; }
.lm-footer-links { list-style: none; padding: 0; margin: 0; }
.lm-footer-links a { color: rgba(247, 244, 236, .8); }
.lm-footer-links a:hover { color: var(--lm-gold); }
.lm-social {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--c, var(--lm-primary)); color: #fff;
}
.lm-social-discord { background: #5865F2; }
.lm-footer-bottom {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin-top: 1.6rem; padding-top: 1rem;
    border-top: 1px solid rgba(244, 241, 232, .1);
    font-size: .9rem;
}

/* Error */
.lm-error { display: grid; place-items: center; min-height: 50vh; }
.lm-error-card {
    background: var(--lm-surface); color: var(--lm-ink);
    border-radius: var(--lm-radius); padding: 2rem 1.6rem; text-align: center;
    max-width: 520px; box-shadow: var(--lm-shadow);
}
.lm-error-logo { border-radius: 50%; margin-bottom: .6rem; }
.lm-error-code { display: block; font-family: var(--lm-display); font-size: 2rem; color: #2f6a22; }

/* Auth / generic inner pages */
.lm-page-content .nav-pills .nav-link { border-radius: var(--lm-pill); }
.pagination .page-link { border-radius: var(--lm-pill) !important; margin: 0 .15rem; }

/* Mouvement au survol */
.lm-brand-logo {
    transition: transform .35s cubic-bezier(.34, 1.4, .64, 1);
}
.lm-brand:hover .lm-brand-logo {
    transform: rotate(-8deg) scale(1.08);
}

.lm-hero-logo {
    animation: lmFloat 5.5s ease-in-out infinite;
    transition: transform .4s cubic-bezier(.34, 1.4, .64, 1), filter .4s;
}
.lm-hero-logo-wrap:hover .lm-hero-logo {
    animation-play-state: paused;
    transform: scale(1.07) rotate(5deg);
    filter: drop-shadow(0 22px 32px rgba(212, 175, 55, .28));
}
.lm-hero-ring {
    animation: lmPulse 4s ease-in-out infinite;
}
@keyframes lmFloat {
    0%, 100% { transform: translateY(0) rotate(-1.6deg); }
    50% { transform: translateY(-18px) rotate(1.8deg); }
}
@keyframes lmPulse {
    0%, 100% { opacity: .75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.055); }
}
@keyframes lmHeroIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}
@keyframes lmHeroLogo {
    from { opacity: 0; transform: scale(.86) rotate(-8deg); }
    to { opacity: 1; transform: none; }
}
@keyframes lmShine {
    from { transform: translateX(-130%); }
    to { transform: translateX(130%); }
}
@keyframes lmCopied {
    0% { transform: scale(1); }
    40% { transform: scale(1.08) rotate(-2deg); }
    70% { transform: scale(.97); }
    100% { transform: scale(1); }
}

.lm-stat-card,
.lm-founder,
.lm-news-card,
.lm-wiki-cat,
.lm-card,
.lm-discord-frame,
.lm-vote-site,
.lm-vote-stat,
.lm-podium-slot,
.lm-leaderboard li {
    transition: transform .28s cubic-bezier(.34, 1.35, .64, 1), box-shadow .28s ease;
}

.lm-stat-card:hover,
.lm-founder:hover,
.lm-news-card:hover,
.lm-wiki-cat:hover,
.lm-page-content .card:hover,
.lm-discord-frame:hover,
.lm-lore-panel:hover,
.lm-district-card:hover,
.lm-origin-copy:hover,
.lm-join:hover {
    box-shadow: 0 24px 44px -14px rgba(0, 0, 0, .52);
}
.lm-join:hover,
.lm-lore-panel:hover {
    transform: translateY(-8px) scale(1.02);
}

.lm-founder-orb {
    transition: transform .35s cubic-bezier(.34, 1.5, .64, 1);
}
.lm-founder:hover .lm-founder-orb {
    transform: scale(1.18) rotate(-12deg);
}
.lm-founder.is-fire:hover .lm-founder-orb { animation: lmWiggle .5s ease; }
.lm-founder.is-storm:hover .lm-founder-orb { animation: lmZap .45s ease; }
.lm-founder.is-ice:hover .lm-founder-orb { animation: lmSpin .6s ease; }

@keyframes lmWiggle {
    0%, 100% { transform: scale(1.18) rotate(-12deg); }
    33% { transform: scale(1.22) rotate(10deg); }
    66% { transform: scale(1.16) rotate(-16deg); }
}
@keyframes lmZap {
    0%, 100% { transform: scale(1.18) translateY(0); }
    40% { transform: scale(1.28) translateY(-6px); }
    70% { transform: scale(1.12) translateY(2px); }
}
@keyframes lmSpin {
    from { transform: scale(1.18) rotate(0); }
    to { transform: scale(1.18) rotate(360deg); }
}

.lm-pop {
    transition: transform .25s cubic-bezier(.34, 1.5, .64, 1);
    cursor: default;
}
.lm-pop:hover {
    transform: translateY(-5px) scale(1.06);
}

.lm-news-card .lm-news-image,
.lm-news-placeholder img {
    transition: transform .45s ease;
}
.lm-news-card:hover .lm-news-image,
.lm-news-card:hover .lm-news-placeholder img {
    transform: scale(1.08);
}

.lm-vote-site:hover,
.lm-vote-stat:hover,
.lm-podium-slot:hover,
.lm-leaderboard li:hover {
    transform: translateY(-4px) scale(1.03);
}

.lm-social {
    transition: transform .25s cubic-bezier(.34, 1.5, .64, 1);
}
.lm-social:hover { transform: translateY(-4px) rotate(-8deg) scale(1.12); color: #fff; }

.lm-tilt {
    transform-style: preserve-3d;
    will-change: transform;
}
.lm-tilt.is-tilting {
    z-index: 2;
}

.lm-reveal {
    opacity: 0;
    transform: translateY(32px) scale(.96);
    transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1);
}
.lm-reveal.is-in {
    opacity: 1;
    transform: none;
}

.lm-stat-icon {
    animation: lmPebble 3.4s ease-in-out infinite;
    display: inline-block;
}
.col-md-4:nth-child(2) .lm-stat-icon { animation-delay: .35s; }
.col-md-4:nth-child(3) .lm-stat-icon { animation-delay: .7s; }
.lm-district-emoji {
    animation: lmSpark 4s ease-in-out infinite;
    display: inline-block;
}
.lm-district-card.is-ice .lm-district-emoji { animation-delay: .5s; }
.lm-district-card.is-storm .lm-district-emoji { animation-delay: 1s; }
.lm-founder-orb {
    animation: lmOrbBreath 3.2s ease-in-out infinite;
}
.lm-founder.is-storm .lm-founder-orb { animation-delay: .45s; }
.lm-founder.is-ice .lm-founder-orb { animation-delay: .9s; }

@keyframes lmOrbBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes lmLive {
    0% { box-shadow: 0 0 0 0 rgba(106, 173, 58, .45); }
    70% { box-shadow: 0 0 0 10px rgba(106, 173, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 173, 58, 0); }
}
@keyframes lmQuoteGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(212, 175, 55, 0); }
    50% { text-shadow: 0 0 22px rgba(212, 175, 55, .45); }
}

.lm-card-pebbles::before,
.lm-card-pebbles::after {
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.lm-stat-card:hover .lm-card-pebbles::before,
.lm-founder:hover .lm-card-pebbles::before,
.lm-district-card:hover .lm-card-pebbles::before,
.lm-join:hover .lm-card-pebbles::before {
    transform: scale(1.4) translate(-10px, 8px);
}
.lm-stat-card:hover .lm-card-pebbles::after,
.lm-founder:hover .lm-card-pebbles::after,
.lm-district-card:hover .lm-card-pebbles::after {
    transform: translate(8px, -6px) rotate(12deg);
}

@media (prefers-reduced-motion: reduce) {
    .lm-hero-logo, .lm-hero-ring, .lm-page, .lm-blob, .lm-pebble, .lm-leaf,
    .lm-hero-orbit, .lm-orbit-dot, .lm-bg-shapes .lm-ring, .lm-spark, .lm-scroll,
    .lm-stat-icon, .lm-district-emoji, .lm-founder-orb, .lm-chip.is-live,
    .lm-cta-logo, .lm-aside-rings, .lm-wave svg, .lm-hero .lm-kicker,
    .lm-hero-title, .lm-hero-text, .lm-hero-chips, .lm-hero .d-flex, .lm-hero-logo-wrap,
    .lm-quote-banner-text {
        animation: none !important;
    }
    .lm-reveal { opacity: 1; transform: none; transition: none; }
    .lm-stat-card:hover, .lm-founder:hover, .lm-news-card:hover,
    .lm-wiki-cat:hover, .lm-discord-frame:hover, .lm-pop:hover,
    .lm-vote-site:hover { transform: none; }
}

@media (max-width: 767px) {
    .lm-districts, .lm-vote-stats, .lm-podium, .lm-origin { grid-template-columns: 1fr; }
    .lm-hero { padding-top: 2.4rem; text-align: center; min-height: auto; }
    .lm-hero-text { margin-inline: auto; }
    .lm-quote { text-align: left; }
    .lm-discord-action { margin-left: 0; width: 100%; text-align: center; }
    .lm-spark.is-fire { left: 8%; }
    .lm-spark.is-storm { left: 86%; top: 22%; }
    .lm-spark.is-ice { display: none; }
    .lm-scroll { display: none; }
    .lm-blob.is-d, .lm-leaf.is-3, .lm-pebble.is-5 { display: none; }
    .lm-hero-ring.is-outer { display: none; }
}

/* —— Formes organiques : blobs, galets, anneaux, vagues —— */
.lm-bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.lm-fixed-header { z-index: 1030; }
#app, .lm-footer { position: relative; z-index: 1; }

.lm-blob {
    position: absolute;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    filter: blur(2px);
    animation: lmBlobMorph 14s ease-in-out infinite;
}
.lm-bg-shapes .lm-blob.is-a {
    width: 28vw; height: 28vw; min-width: 220px; min-height: 220px;
    left: -8vw; top: 18vh;
    background: radial-gradient(circle at 30% 30%, rgba(106, 173, 58, .34), rgba(106, 173, 58, .06) 70%);
}
.lm-bg-shapes .lm-blob.is-b {
    width: 22vw; height: 22vw; min-width: 180px; min-height: 180px;
    right: -6vw; top: 42vh;
    background: radial-gradient(circle at 60% 40%, rgba(212, 175, 55, .26), rgba(212, 175, 55, .05) 72%);
    animation-delay: -4s;
}
.lm-bg-shapes .lm-blob.is-c {
    width: 18vw; height: 20vw; min-width: 160px; min-height: 160px;
    left: 8vw; bottom: 8vh;
    background: radial-gradient(circle at 40% 60%, rgba(94, 196, 212, .22), transparent 70%);
    animation-delay: -7s;
}
.lm-bg-shapes .lm-blob.is-d {
    width: 16vw; height: 16vw; min-width: 140px; min-height: 140px;
    right: 18vw; bottom: 18vh;
    background: radial-gradient(circle at 50% 50%, rgba(224, 112, 48, .2), transparent 68%);
    animation-delay: -2s;
}

.lm-bg-shapes .lm-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, .16);
    animation: lmRingPulse 10s ease-in-out infinite;
}
.lm-bg-shapes .lm-ring.is-a { width: 140px; height: 140px; left: 6%; top: 62%; }
.lm-bg-shapes .lm-ring.is-b { width: 90px; height: 90px; right: 10%; top: 22%; animation-delay: -3s; border-color: rgba(106, 173, 58, .2); }
.lm-bg-shapes .lm-ring.is-c { width: 54px; height: 54px; right: 28%; bottom: 12%; animation-delay: -6s; }

.lm-pebble {
    position: absolute;
    border-radius: 50%;
    animation: lmPebble 9s ease-in-out infinite;
}
.lm-bg-shapes .lm-pebble.is-1 { width: 18px; height: 18px; left: 14%; top: 28%; background: rgba(212, 175, 55, .35); }
.lm-bg-shapes .lm-pebble.is-2 { width: 12px; height: 12px; left: 22%; top: 72%; background: rgba(106, 173, 58, .4); animation-delay: -2s; }
.lm-bg-shapes .lm-pebble.is-3 { width: 22px; height: 16px; right: 16%; top: 58%; background: rgba(94, 196, 212, .32); border-radius: 60% 40% 55% 45%; animation-delay: -5s; }
.lm-bg-shapes .lm-pebble.is-4 { width: 10px; height: 10px; right: 8%; bottom: 28%; background: rgba(224, 112, 48, .38); animation-delay: -1s; }
.lm-bg-shapes .lm-pebble.is-5 { width: 14px; height: 14px; left: 48%; top: 86%; background: rgba(122, 168, 255, .28); animation-delay: -4s; }

.lm-leaf {
    position: absolute;
    width: 42px; height: 26px;
    background: rgba(106, 173, 58, .28);
    border-radius: 0 80% 0 80%;
    transform: rotate(-28deg);
    animation: lmLeaf 11s ease-in-out infinite;
}
.lm-bg-shapes .lm-leaf.is-1 { left: 4%; top: 46%; }
.lm-bg-shapes .lm-leaf.is-2 { right: 5%; top: 34%; transform: rotate(42deg); animation-delay: -3s; background: rgba(139, 195, 74, .22); }
.lm-bg-shapes .lm-leaf.is-3 { left: 72%; bottom: 22%; transform: rotate(-12deg); animation-delay: -6s; }

@keyframes lmBlobMorph {
    0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: translate(0, 0) rotate(0deg); }
    33% { border-radius: 70% 30% 46% 54% / 30% 60% 40% 70%; transform: translate(12px, -10px) rotate(6deg); }
    66% { border-radius: 30% 70% 70% 30% / 60% 30% 70% 40%; transform: translate(-10px, 8px) rotate(-4deg); }
}
@keyframes lmRingPulse {
    0%, 100% { transform: scale(1); opacity: .7; }
    50% { transform: scale(1.06); opacity: 1; }
}
@keyframes lmPebble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes lmLeaf {
    0%, 100% { transform: rotate(-28deg) translateY(0); }
    50% { transform: rotate(-18deg) translateY(-8px); }
}

.lm-hero-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.lm-hero-blobs .lm-blob {
    filter: blur(0);
}
.lm-blob.is-hero-fire {
    width: 280px; height: 260px;
    left: -60px; bottom: 8%;
    background: radial-gradient(circle at 40% 40%, rgba(224, 112, 48, .28), transparent 68%);
}
.lm-blob.is-hero-ice {
    width: 240px; height: 240px;
    right: 4%; top: 12%;
    background: radial-gradient(circle at 50% 50%, rgba(94, 196, 212, .22), transparent 70%);
    animation-delay: -5s;
}
.lm-blob.is-hero-moss {
    width: 320px; height: 280px;
    left: 28%; top: -80px;
    background: radial-gradient(circle at 50% 60%, rgba(106, 173, 58, .2), transparent 68%);
    animation-delay: -8s;
}
.lm-blob.is-hero-gold {
    width: 180px; height: 180px;
    right: 22%; bottom: 6%;
    background: radial-gradient(circle at 40% 40%, rgba(212, 175, 55, .2), transparent 70%);
    animation-delay: -2s;
}

.lm-hero-orbit {
    position: absolute;
    width: min(118%, 490px);
    aspect-ratio: 1;
    border-radius: 50%;
    animation: lmOrbit 22s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.lm-orbit-dot {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 12px currentColor;
    animation: lmDotPulse 1.8s ease-in-out infinite;
}
.lm-orbit-dot.is-fire { background: var(--lm-fire); color: var(--lm-fire); top: 8%; left: 46%; }
.lm-orbit-dot.is-storm { background: var(--lm-storm); color: var(--lm-storm); top: 52%; right: 2%; animation-delay: .4s; }
.lm-orbit-dot.is-ice { background: var(--lm-ice); color: var(--lm-ice); bottom: 10%; left: 18%; animation-delay: .8s; }
@keyframes lmOrbit { to { transform: rotate(360deg); } }
@keyframes lmDotPulse {
    0%, 100% { transform: scale(1); opacity: .75; }
    50% { transform: scale(1.35); opacity: 1; }
}
@keyframes lmWave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3%); }
}

.lm-wave {
    line-height: 0;
    color: var(--lm-bg);
    pointer-events: none;
}
.lm-wave svg { display: block; width: 100%; height: 56px; }
.lm-wave.is-hero svg {
    width: 110%;
    margin-left: -5%;
    animation: lmWave 9s ease-in-out infinite;
}
.lm-wave.is-hero {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    z-index: 3;
    color: var(--lm-bg);
}
.lm-wave.is-quote { color: rgba(212, 175, 55, .12); margin-bottom: -1px; }
.lm-wave.is-quote svg { height: 48px; }

.lm-quote-blobs { position: absolute; inset: 0; pointer-events: none; }
.lm-blob.is-quote-l {
    width: 220px; height: 200px;
    left: -40px; top: -40px;
    background: radial-gradient(circle, rgba(212, 175, 55, .2), transparent 70%);
}
.lm-blob.is-quote-r {
    width: 240px; height: 220px;
    right: -50px; bottom: -60px;
    background: radial-gradient(circle, rgba(106, 173, 58, .18), transparent 70%);
    animation-delay: -6s;
}
.lm-quote-banner .container { position: relative; z-index: 1; }

.lm-aside-rings {
    position: absolute;
    right: -30px; bottom: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 8px solid rgba(212, 175, 55, .14);
    box-shadow: 0 0 0 18px rgba(212, 175, 55, .07);
    pointer-events: none;
    animation: lmOrbit 22s linear infinite;
}
.lm-origin-aside > *:not(.lm-aside-rings) { position: relative; z-index: 1; }

.lm-card-pebbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.lm-card-pebbles::before,
.lm-card-pebbles::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.lm-card-pebbles::before {
    width: 72px; height: 72px;
    right: -18px; top: -22px;
    background: radial-gradient(circle at 40% 40%, rgba(106, 173, 58, .18), transparent 70%);
}
.lm-card-pebbles::after {
    width: 44px; height: 36px;
    left: 12px; bottom: 10px;
    border-radius: 60% 40% 55% 45%;
    background: rgba(212, 175, 55, .14);
}
.lm-stat-card .lm-card-pebbles::after { background: rgba(47, 106, 34, .1); }
.lm-founder.is-fire .lm-card-pebbles::before { background: radial-gradient(circle, rgba(224, 112, 48, .2), transparent 70%); }
.lm-founder.is-ice .lm-card-pebbles::before { background: radial-gradient(circle, rgba(94, 196, 212, .22), transparent 70%); }
.lm-founder.is-storm .lm-card-pebbles::before { background: radial-gradient(circle, rgba(122, 168, 255, .22), transparent 70%); }
.lm-district-card.is-fire .lm-card-pebbles::before { background: radial-gradient(circle, rgba(224, 112, 48, .18), transparent 70%); }
.lm-district-card.is-ice .lm-card-pebbles::before { background: radial-gradient(circle, rgba(94, 196, 212, .2), transparent 70%); }
.lm-district-card.is-storm .lm-card-pebbles::before { background: radial-gradient(circle, rgba(122, 168, 255, .2), transparent 70%); }
.lm-stat-card > *:not(.lm-card-pebbles),
.lm-founder > *:not(.lm-card-pebbles),
.lm-district-card > *:not(.lm-card-pebbles),
.lm-origin-copy > *:not(.lm-card-pebbles),
.lm-join > *:not(.lm-card-pebbles) { position: relative; z-index: 1; }

.lm-cta-logo {
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, .22), 0 0 0 14px rgba(106, 173, 58, .12);
    animation: lmFloat 6s ease-in-out infinite;
}

.lm-founder.is-storm { border-radius: 1.4rem 2.6rem 1.6rem 2.2rem; }
.lm-founder.is-ice { border-radius: 2.2rem 1.6rem 2.6rem 1.3rem; }
.lm-district-card.is-ice { border-radius: 2.4rem 1.4rem 2.2rem 1.8rem; }
.lm-district-card.is-storm { border-radius: 1.6rem 2.4rem 1.3rem 2.5rem; }
.lm-stat-card:nth-child(1),
.col-md-4:nth-child(2) .lm-stat-card { border-radius: 1.5rem 2.4rem 1.6rem 2.2rem; }
.col-md-4:nth-child(3) .lm-stat-card { border-radius: 2.4rem 1.5rem 2.2rem 1.8rem; }
