/* Legend Mod public website UI. Shared by the homepage and developer guide.
   Keep game styles, existing promotions, translations and theme bridge independent. */
.lm-launch,.lm-dev-current,.lm-legacy,.lm-project-note {
    --lm-ui-ink:var(--text,#0f172a);
    --lm-ui-secondary:var(--text-secondary,#475569);
    --lm-ui-panel:var(--bg-card,#fff);
    --lm-ui-line:var(--border,rgba(15,23,42,.12));
    --lm-ui-icon:#6d28d9;
    color:var(--lm-ui-ink);
    box-sizing:border-box;
}
.dark-theme .lm-launch,.dark-theme .lm-dev-current,.dark-theme .lm-legacy,.dark-theme .lm-project-note {
    --lm-ui-icon:#c4b5fd;
}
html.lm-themed-root :is(.lm-launch,.lm-dev-current,.lm-legacy,.lm-project-note) {
    --lm-ui-ink:var(--lm-tc,#fff);
    --lm-ui-secondary:var(--text-secondary,var(--lm-tc,#fff));
    --lm-ui-panel:var(--lm-pc2,#002f52);
    --lm-ui-line:var(--border,rgba(255,255,255,.2));
    --lm-ui-icon:var(--lm-tc,#fff);
}
.lm-launch {
    padding:clamp(16px,3vw,26px);
    border:1px solid var(--lm-ui-line);
    border-radius:var(--radius,14px);
    background:var(--lm-ui-panel);
    margin:16px auto;
    text-align:start;
    box-shadow:0 2px 10px rgba(15,23,42,.035);
}
.lm-launch h2,.lm-dev-current h2,.lm-page-title {
    font-size:clamp(1.35rem,3vw,1.8rem)!important;
    color:var(--lm-ui-ink,var(--text,#0f172a))!important;
    margin:0 0 10px!important;
    line-height:1.28;
    letter-spacing:-.025em;
    font-weight:750!important;
}
.lm-launch p,.lm-dev-current p {
    margin:7px 0 12px;
    color:var(--lm-ui-secondary);
    line-height:1.6;
    font-size:.94rem;
}
.lm-launch h2>.lm-glyph,.lm-dev-current h2>.lm-glyph,.lm-page-title>.lm-glyph {
    color:var(--lm-ui-icon,var(--accent,#7c3aed));
    margin-inline-end:.45em;
    font-size:.82em;
}
.lm-glyph,.lm-nav-icon { flex:none; line-height:1; vertical-align:middle; }
.lm-product-mark {
    width:25px!important;height:25px!important;object-fit:contain;flex:none;
    display:inline-block;vertical-align:middle;max-width:25px!important;
    margin:0!important;
}
.lm-resource-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));
    gap:12px;
    margin:16px 0 0;
    align-items:stretch;
}
.lm-resource-card {
    display:flex;flex-direction:column;align-items:flex-start;
    min-width:0;padding:16px;
    border:1px solid var(--lm-ui-line);
    border-radius:12px;background:var(--lm-ui-panel);
    color:inherit;box-sizing:border-box;
}
.lm-resource-card h3,.lm-fps-tip h3 {
    display:flex;flex-wrap:wrap;align-items:center;gap:8px;
    margin:0 0 7px!important;font-size:1.02rem!important;
    font-weight:700!important;color:var(--lm-ui-ink)!important;
    line-height:1.4;
}
.lm-resource-card h3>span,.lm-fps-tip h3>span { min-width:0; flex:1 1 95px; }
.lm-resource-card h3>.lm-glyph,.lm-fps-tip h3>.lm-glyph {
    display:inline-flex;align-items:center;justify-content:center;
    width:32px;height:32px;border-radius:9px;
    background:var(--btn-bg,rgba(124,58,237,.08));
    color:var(--lm-ui-icon);
    font-size:.92rem;
}
.lm-resource-card p { margin:5px 0 13px;font-size:.88rem;flex:1; }
/* Shared action buttons: match the existing Expanding Land banner's geometry and palette.
   Keep the banner's own selectors, content and layout unchanged. */
:root {
    --lm-action-ink:#211344;
    --lm-action-panel:rgba(255,255,255,.82);
    --lm-action-border:rgba(104,63,181,.18);
    --lm-action-primary:linear-gradient(135deg,#6823d7,#8735e7);
    --lm-action-primary-ink:#fff;
    --lm-action-primary-border:#6925c6;
    --lm-action-focus:#8151d8;
}
.dark-theme {
    --lm-action-ink:#f7f3ff;
    --lm-action-panel:rgba(26,18,47,.65);
    --lm-action-border:rgba(210,186,255,.2);
}
html.lm-themed-root {
    --lm-action-ink:var(--lm-btn-tc,#fff);
    --lm-action-panel:var(--lm-btn1,#362854);
    --lm-action-border:var(--lm-mc,#645080);
    --lm-action-primary:var(--lm-btn1b,#6925c6);
    --lm-action-primary-ink:var(--lm-btn-tc,#fff);
    --lm-action-primary-border:var(--lm-mc,#645080);
}
.lm-actions {display:flex;flex-wrap:wrap;gap:9px;align-items:stretch;}
.lm-actions .lm-glyph,.lm-resource-card>a .lm-glyph {font-size:.9em;}
.lm-resource-card>a,.lm-action {
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    box-sizing:border-box;min-height:46px;min-width:0;max-width:100%;
    padding:10px 15px;border:1px solid var(--lm-action-border)!important;
    border-radius:10px;font-family:inherit;font-size:.82rem;font-weight:700!important;
    line-height:1.3;text-align:center;white-space:normal;overflow-wrap:anywhere;
    color:var(--lm-action-ink)!important;background:var(--lm-action-panel)!important;
    text-decoration:none!important;cursor:pointer;appearance:none;
    transition:background .16s,box-shadow .16s,transform .16s!important;
}
.lm-resource-card>a {margin-top:auto;}
.lm-resource-card>a+a {margin-top:8px;}
:is(#Scripts,#About,#Features,#Changelog,#FPS,#Developers,#LMmobile,#lm-support,.lm-developer-site) :is(.lm-action,.lm-resource-card>a):is(:link,:visited,:hover,:focus-visible) {
    color:var(--lm-action-ink)!important;
    background:var(--lm-action-panel)!important;
}
:is(#Scripts,#About,#Features,#Changelog,#FPS,#Developers,#LMmobile,#lm-support,.lm-developer-site) :is(.lm-action,.lm-resource-card>a) :is(span,i) {
    color:inherit!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;visibility:visible!important;
}
:is(#Scripts,#About,#Features,#Changelog,#FPS,#Developers,#LMmobile,#lm-support,.lm-developer-site) :is(.lm-action,.lm-resource-card>a):hover:not(:disabled) {
    transform:translateY(-2px);box-shadow:0 5px 12px rgba(57,32,104,.16);
}
:is(#Scripts,#About,#Features,#Changelog,#FPS,#Developers,#LMmobile,#lm-support,.lm-developer-site) :is(.lm-action,.lm-resource-card>a):focus-visible {
    outline:3px solid var(--lm-action-focus);outline-offset:3px;
}
:is(#Scripts,#About,#Features,#Changelog,#FPS,#Developers,#LMmobile,#lm-support,.lm-developer-site) :is(.lm-install-primary,.lm-action-primary):is(:link,:visited,:hover,:focus-visible),
:is(#Scripts,#About,#Features,#Changelog,#FPS,#Developers,#LMmobile,#lm-support,.lm-developer-site) button.lm-action-primary {
    background:var(--lm-action-primary)!important;color:var(--lm-action-primary-ink)!important;
    border-color:var(--lm-action-primary-border)!important;
    box-shadow:0 4px 10px rgba(97,38,195,.25);font-size:.91rem;padding-inline:20px;
}
.lm-action:disabled {opacity:.55;cursor:default;transform:none;}
#Scripts .lm-install-primary .lm-product-mark {width:22px!important;height:22px!important;max-width:22px!important;}
.lm-dev-current {
    max-width:900px;margin:12px auto;padding:clamp(8px,2vw,18px);
    text-align:start;
}
.lm-support-strip {
    display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
    width:calc(100% - 24px);margin:14px auto;padding:14px 18px;
    background:var(--lm-ui-panel);border:1px solid var(--lm-ui-line);border-radius:11px;
}
.lm-support-copy {flex:1 1 420px;min-width:0;}
.lm-support-strip h2 {font-size:1.04rem!important;margin:0 0 5px!important;}
.lm-support-strip p {margin:4px 0;font-size:.88rem;}
.lm-support-strip .lm-support-note {font-size:.8rem;color:var(--lm-ui-secondary);}
.lm-support-actions {flex:0 1 auto;justify-content:center;}
.lm-support-actions .lm-action {flex:1 1 auto;}
.lm-dev-current pre {
    overflow:auto;max-width:100%;padding:14px;border:1px solid var(--lm-ui-line);
    border-radius:10px;background:var(--bg-subtle,#f5f5fa);color:var(--lm-ui-ink);text-align:left;
}
.lm-dev-current img,.lm-legacy img { max-width:100%;height:auto; }
.lm-dev-current a:focus-visible,.lm-launch a:focus-visible,.lm-legacy summary:focus-visible,.lm-replay-controls button:focus-visible,.lm-project-note summary:focus-visible,#nav a:focus-visible {
    outline:3px solid var(--accent,#7c3aed);outline-offset:3px;
}
html.lm-themed-root .lm-dev-current,html.lm-themed-root .lm-legacy { color:var(--lm-tc)!important; }
/* Navigation: compact, readable labels with the established Font Awesome set. */
#nav a[name] { display:inline-flex!important;align-items:center;justify-content:center;gap:7px;padding:10px 12px!important; }
#nav a[name] .lm-nav-icon { font-size:.9em;color:inherit!important; }
#nav a[name]>span { color:inherit!important; }
#nav a[name].active { color:#fff!important; }
html.lm-themed-root #nav a[name].active { color:var(--lm-btn-tc)!important; }
#nav a[name=LMmobile] { display:none!important; } /* kept available by the mobile-guide link */
#nav ul { align-items:center; }

/* Installation: one heading, four clearly numbered steps, no competing panels. */
.lm-install-guide,.lm-script-library,#lm-alternatives,#lm-install-steps {scroll-margin-top:85px;}
.lm-install-heading {display:flex;align-items:flex-start;gap:14px;justify-content:space-between;margin-bottom:8px;}
.lm-install-heading>div {min-width:0;}
.lm-install-heading>img {width:56px!important;height:56px!important;object-fit:contain;flex:none;}
.lm-install-heading p {margin:5px 0;}
.lm-install-steps {display:grid;gap:10px;}
.lm-install-step {
    display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:12px;
    padding:14px;border:1px solid var(--lm-ui-line);border-radius:11px;
}
.lm-install-step h3,.lm-catalog-group>h3 {
    margin:0 0 6px!important;color:var(--lm-ui-ink)!important;
    font-weight:700!important;font-size:1.03rem!important;line-height:1.4;
}
.lm-install-step h3>.lm-glyph,.lm-catalog-group>h3>.lm-glyph { color:var(--lm-ui-icon);margin-inline-end:7px;font-size:.9em; }
.lm-install-step p {margin:0 0 9px;}
.lm-install-step .lm-permission-note {padding-inline-start:11px;border-inline-start:2px solid var(--lm-ui-line);}
.lm-browser-links {display:flex;flex-wrap:wrap;gap:7px;}
.lm-install-help {border-top:1px solid var(--lm-ui-line);padding-top:12px;margin-top:14px;color:var(--lm-ui-secondary);font-size:.88rem;}
.lm-catalog-group {margin-top:22px;padding-top:16px;border-top:1px solid var(--lm-ui-line);}
.lm-catalog-group:first-of-type {border-top:0;padding-top:0;}
.lm-script-library .lm-resource-grid {margin-top:9px;}
.lm-project-note {margin:8px auto 12px;max-width:800px;font-size:.82rem;text-align:center;}
.lm-project-note summary {display:inline-block;cursor:pointer;padding:7px 12px;text-decoration:underline;text-underline-offset:3px;}
.lm-project-note summary .lm-glyph {margin-inline-end:6px;}
.lm-project-note p {line-height:1.55;margin:5px auto;}
.lm-project-note a {color:inherit!important;text-decoration:underline!important;}

/* Information tabs: consistent typography and readable content width. */
:is(#About,#Features,#Changelog,#FPS,#Developers,#LMmobile)>section {
    box-sizing:border-box;width:calc(100% - 24px);max-width:var(--max-w,880px)!important;
    margin:16px auto!important;padding:clamp(18px,3vw,32px)!important;
    line-height:1.65;
}
:is(#About,#Features,#Changelog,#FPS,#Developers,#LMmobile) .lm-page-title {
    text-align:center!important;border:0!important;border-image:none!important;padding:0!important;
    margin:0 auto 15px!important;font-size:clamp(1.45rem,3.8vw,2rem)!important;
}
:is(#About,#Features,#Changelog,#FPS,#Developers,#LMmobile) .project-tagline .lm-glyph {margin-inline-end:7px;color:var(--accent,#7c3aed);}
:is(#About,#Features,#Changelog)>section>strong {display:block;font-size:.86rem;color:var(--text-secondary,#475569);font-weight:550;margin-bottom:9px;}
.lm-about-video {max-width:720px;margin:16px auto 24px;}
.lm-about-video .yt-wrap {margin:0 auto!important;}
.lm-feature-tiles {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:17px 0;}
.lm-feature-tile {
    min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
    text-align:center;gap:8px;padding:14px 8px;min-height:85px;
    border:1px solid var(--lm-ui-line);border-radius:11px;
    font-weight:650;font-size:.87rem;line-height:1.4;color:var(--lm-ui-ink);
}
.lm-feature-tile .lm-glyph {font-size:1.25rem;color:var(--lm-ui-icon);}
.lm-fps-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0;}
.lm-fps-tip {padding:16px;border:1px solid var(--lm-ui-line);border-radius:11px;}
.lm-fps-tip p {margin:8px 0 0;font-size:.9rem;}
.lm-dev-entry {margin:12px 0;}
.lm-mobile-actions {justify-content:center;margin:15px 0 0;}
.lm-legacy {max-width:900px;margin:14px auto;padding:12px;border:1px solid var(--lm-ui-line);border-radius:11px;text-align:start;}
.lm-legacy summary {cursor:pointer;padding:7px;font-weight:650;color:var(--lm-ui-ink);}
.lm-legacy summary .lm-glyph {margin:0 7px;color:var(--lm-ui-icon);}
.lm-legacy[open] summary {margin-bottom:10px;}
.lm-release-archive ul {padding-inline-start:1.4rem;}
.lm-release-archive li {margin:0 0 9px;}
.lm-legacy iframe,.lm-replay-frame {
    display:block;border:0;width:100%!important;max-width:100%!important;aspect-ratio:16/9;
    height:auto!important;min-height:0!important;margin:12px auto;background:#101522;
}
#animatedpromosIframe4,#customskinsIframe2 {min-height:0!important;width:100%!important;height:auto!important;aspect-ratio:16/9;}
.lm-replay-controls {display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:9px;margin:12px 0;}
#animatedpromosIframe4 {display:block;margin:16px auto;border:0;background:#101522;}
.lm-replay-controls button.lm-action {appearance:none;font-family:inherit;cursor:pointer;}
.lm-replay-controls [hidden] {display:none!important;}
.lm-replay-frame {aspect-ratio:16/10;min-height:260px!important;}

/* Standalone Devs page: same card system and palette, independent of the game. */
body.lm-developer-site {
    --bg:#f4f2f7;--bg-card:#fff;--bg-subtle:#eae7f0;--text:#0f172a;
    --text-secondary:#475569;--border:rgba(15,23,42,.12);--accent:#7c3aed;
    --btn-bg:#f3efff;--btn-border:#d7ccf0;
    background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
}
.lm-developer-site>section {max-width:980px;width:calc(100% - 24px);margin:0 auto;box-sizing:border-box;}
.lm-developer-site .lm-dev-page {max-width:900px;margin:12px auto 18px;padding:clamp(16px,3vw,30px);background:var(--lm-ui-panel);border:1px solid var(--lm-ui-line);border-radius:14px;}
.lm-developer-site .lm-dev-page>.lm-dev-current {padding:0;margin:18px 0 22px;}
.lm-developer-site .lm-dev-page>h2 {margin-top:24px!important;}
.lm-developer-site .lm-legacy {background:var(--lm-ui-panel);}
.lm-developer-site .lm-dev-page a>.lm-glyph {margin-inline-end:5px;}
.lm-developer-site .lm-resource-card>a>.lm-glyph {margin:0;}

@media(max-width:600px) {
    #nav a[name] {padding:9px 9px!important;gap:5px;font-size:.75rem!important;}
    .lm-launch {margin:12px 0;padding:14px;}
    .lm-resource-grid,.lm-fps-grid {grid-template-columns:1fr;}
    .lm-resource-card {padding:14px;}
    .lm-resource-card>a,.lm-action {width:100%;}
    .lm-install-heading>img {width:40px!important;height:40px!important;}
    .lm-install-step {grid-template-columns:32px minmax(0,1fr);padding:10px;gap:8px;}
    .lm-install-step .step-badge {min-width:32px;height:32px;}
    .lm-browser-links {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,115px),1fr));}
    .lm-feature-tiles {grid-template-columns:repeat(2,minmax(0,1fr));}
    .lm-feature-tile {min-height:76px;padding:10px 5px;}
    .lm-replay-frame {min-height:220px!important;}
    :is(#About,#Features,#Changelog,#FPS,#Developers,#LMmobile)>section {width:calc(100% - 16px);padding:16px!important;margin:12px auto!important;}
}
@media(prefers-reduced-motion:reduce) {
    .lm-action,.lm-resource-card>a {transition:none!important;}
    .lm-action:hover,.lm-resource-card>a:hover {transform:none!important;}
}


/* Original Legend Mod artwork as an actual image, not a low-contrast
   background hidden behind the social icons. */
body>section:first-of-type>section.lm-brand-header {
    box-sizing:border-box;width:calc(100% - 24px);max-width:1000px!important;
    padding:16px 12px 12px!important;background:none!important;
}
.lm-brand-header .hero-banner-wrap {
    display:flex;align-items:center;justify-content:space-between;gap:20px;
    min-height:0;width:100%;
}
.lm-brand-header .lm-brand-wordmark {
    display:block;flex:0 1 330px;min-width:0;width:min(100%,330px);
    height:auto;max-height:68px;object-fit:contain;
}
.lm-brand-header .hero-banner-wrap .flex-center {
    display:flex;flex:0 0 auto;align-items:center;justify-content:center;
    width:auto;min-height:0;padding:0;gap:var(--lmweb-social-gap,6px);flex-wrap:wrap;
}
.lm-brand-header .hero-banner-wrap .flex-center>a,
.lm-brand-header .hero-banner-wrap .flex-center>a:hover {
    display:inline-flex;align-items:center;justify-content:center;
    width:var(--lmweb-social-size,39px);height:var(--lmweb-social-size,39px);padding:0!important;margin:0;
    box-sizing:border-box;border:1px solid var(--border,rgba(15,23,42,.12));
    border-radius:var(--lmweb-social-radius,10px);background:var(--bg-card,#fff)!important;
    color:var(--text-secondary,#475569)!important;
    background-image:none!important;
    transition:background-color .15s,transform .15s!important;
}
.lm-brand-header .hero-banner-wrap .flex-center>a:hover {
    background:var(--btn-bg,#f3efff)!important;color:var(--text,#0f172a)!important;
    border-color:var(--accent,#7c3aed);transform:translateY(-2px);
}
.lm-brand-header .hero-banner-wrap .icon-3d {
    padding:0!important;font-size:1.28rem!important;color:inherit!important;
    animation:none!important;text-shadow:none;
}
.lm-brand-header .hero-banner-wrap a:hover .icon-3d {animation:icon3d 200ms 2!important;}
.lm-brand-header .hero-banner-wrap a:focus-visible {outline:3px solid var(--accent,#7c3aed);outline-offset:3px;}
@media(max-width:700px) {
    body>section:first-of-type>section.lm-brand-header {padding:13px 8px 10px!important;}
    .lm-brand-header .hero-banner-wrap {flex-direction:column;gap:10px;}
    .lm-brand-header .lm-brand-wordmark {flex:0 0 auto;width:min(100%,265px);max-height:55px;}
    .lm-brand-header .hero-banner-wrap .flex-center {gap:5px;}
    .lm-brand-header .hero-banner-wrap .flex-center>a {width:35px;height:35px;}
    .lm-brand-header .hero-banner-wrap .icon-3d {font-size:1.1rem!important;}
}
@media(prefers-reduced-motion:reduce) {
    .lm-brand-header .hero-banner-wrap a:hover .icon-3d {animation:none!important;}
    .lm-brand-header .hero-banner-wrap a {transition:none!important;}
}

/* Cohesive page width, visible clan link, and status contrast. */
body>section:first-of-type>section.lm-brand-header {
    max-width:1100px!important;
    padding:14px 0 10px!important;
}
.lm-brand-header .lm-brand-identity {
    display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 auto;
}
.lm-brand-header .lm-brand-wordmark {
    flex:0 1 270px;width:min(100%,270px);max-height:58px;
    background:#000;border-radius:8px;
}
body>section:first-of-type>#navbar {
    box-sizing:border-box;width:calc(100% - 24px);max-width:1100px!important;
    border:1px solid var(--border);border-radius:12px;
}
#nav {max-width:100%;margin:0 auto;}
#Scripts {box-sizing:border-box;width:calc(100% - 24px);max-width:1100px!important;margin:0 auto!important;}
:is(#About,#Features,#Changelog,#FPS,#Developers,#LMmobile)>section {max-width:1100px!important;}
.lm-section-subtitle {margin:0 auto 15px;color:var(--text-secondary,#475569);font-size:.9rem;}
#About .lm-community-actions {justify-content:center;margin:15px auto 22px;}

#expanding-land-promo .lm-el-primary i,#expanding-land-promo .lm-el-android i {color:inherit!important;}
@media(max-width:900px) {
    .lm-brand-header .hero-banner-wrap {flex-direction:column;gap:10px;}
    .lm-brand-header .lm-brand-identity {flex:0 0 auto;justify-content:center;flex-wrap:wrap;width:100%;}
    .lm-brand-header .lm-brand-wordmark {flex:0 1 260px;}
}
@media(max-width:600px) {
    #Scripts,body>section:first-of-type>#navbar {width:calc(100% - 16px);}
    .lm-brand-header .lm-brand-identity {gap:8px;}
    .lm-brand-header .lm-brand-wordmark {flex:0 1 190px;}
    #About .lm-community-actions .lm-action {width:100%;}
}

/* Compact installation heading and discreet open-source footer. */
#lm-install .lm-install-heading {align-items:center;margin-bottom:16px;}
#lm-install .lm-install-heading h2 {margin-bottom:0!important;}
.lm-footer .lm-project-note {margin:8px auto 0;color:var(--text-secondary,#475569);}
.lm-footer .lm-project-note summary {font-weight:500;font-size:.8rem;padding:5px 8px;}
.lm-footer .lm-project-note p {max-width:680px;}

/* Canonical Features and Devs content, migrated from the retired pages. */
#Features .lm-dev-current {max-width:none;}
.lm-full-features {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0;}
.lm-full-feature {min-width:0;padding:17px;border:1px solid var(--lm-ui-line);border-radius:12px;background:var(--lm-ui-panel);text-align:start;}
.lm-feature-symbol {display:inline-flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:10px;background:var(--btn-bg,rgba(124,58,237,.08));color:var(--lm-ui-icon);font-size:1.15rem;margin-bottom:10px;}
.lm-full-feature h3 {font-size:1.05rem!important;line-height:1.4;margin:0 0 7px!important;color:var(--lm-ui-ink)!important;font-weight:700!important;}
.lm-full-feature p {margin:0 0 9px;}
.lm-full-feature ul {padding-inline-start:1.2rem;margin:8px 0 0;color:var(--lm-ui-secondary);font-size:.87rem;line-height:1.55;}
.lm-full-feature li {margin:5px 0;}
.lm-full-feature .badge-new {display:inline-block;font-size:.64rem;vertical-align:middle;padding:2px 6px;border-radius:5px;background:rgba(22,163,74,.12);color:var(--text,#166534);}
.lm-full-feature a {color:var(--accent,#7c3aed)!important;text-decoration:underline!important;overflow-wrap:anywhere;}
.lm-dev-quick {margin-top:24px;padding-top:18px;border-top:1px solid var(--lm-ui-line);}
.lm-dev-quick h2 {margin-top:18px!important;}
.lm-source-panel {margin-top:20px;}
.lm-source-panel .lm-project-note {text-align:start;}
#Developers .lm-legacy textarea {max-width:100%;width:100%;box-sizing:border-box;}
#Developers .lm-legacy iframe {max-width:100%;}
@media(max-width:600px){.lm-full-features{grid-template-columns:1fr;gap:10px;}.lm-full-feature{padding:14px;}}

.lm-source-panel .lm-project-note {border:1px solid var(--lm-ui-line);border-radius:11px;padding:12px;}
.lm-source-panel .lm-project-note ul {padding-inline-start:1.2rem;line-height:1.55;}

/* Expanding Land: a distinct promotional hero, retaining the actual game artwork. */
#expanding-land-promo.lm-el-promo {
    --el-ink:#211344;
    --el-sub:#51436c;
    --el-panel:rgba(255,255,255,.82);
    --el-border:rgba(104,63,181,.18);
    --el-purple:#6224c9;
    --el-teal:#087d72;
    --el-gold:#946008;
    --el-pink:#b42478;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    box-sizing:border-box;
    margin:16px auto 22px!important;
    padding:clamp(16px,3vw,26px);
    border:1px solid #c9b3f4;
    border-radius:16px;
    background:radial-gradient(ellipse at 92% 6%,rgba(139,92,246,.23),transparent 47%),
        linear-gradient(125deg,#faf7ff 4%,#ede4ff 100%)!important;
    box-shadow:0 6px 20px rgba(89,49,160,.12);
    color:var(--el-ink)!important;
    text-align:start;
}
#expanding-land-promo::before {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background:radial-gradient(circle at 93% 16%,transparent 0 96px,rgba(255,255,255,.3) 97px 98px,transparent 99px 145px,rgba(255,255,255,.18) 146px 147px,transparent 148px);
}
#expanding-land-promo .lm-el-intro {
    margin-bottom:18px;
}
#expanding-land-promo .lm-el-copy {min-width:0;}
#expanding-land-promo .lm-el-meta {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
#expanding-land-promo .lm-el-ad-label {
    color:var(--el-sub)!important;
    font-size:.65rem;
    font-weight:700;
    letter-spacing:.09em;
    text-transform:uppercase;
}
#expanding-land-promo #el-status-badge {
    display:inline-flex;align-items:center;gap:6px;padding:4px 10px;
    border:1px solid var(--el-border);border-radius:999px;
    font-size:.71rem;font-weight:750;line-height:1.35;
    text-transform:uppercase;letter-spacing:.04em;
}
#expanding-land-promo #el-status-dot {width:7px;height:7px;border-radius:50%;background:currentColor;flex:none;}
#expanding-land-promo #el-status-badge[data-state=online] {color:#11643d!important;background:#e1f8eb!important;border-color:#a9dfbf!important;}
#expanding-land-promo #el-status-badge[data-state=online] #el-status-dot {background:#199c54!important;}
#expanding-land-promo #el-status-badge[data-state=checking] {color:#51436c!important;background:#f5efff!important;border-color:var(--el-border)!important;}
#expanding-land-promo #el-status-badge[data-state=checking] #el-status-dot {background:currentColor!important;}
#expanding-land-promo #el-status-badge[data-state=unavailable] {color:#854d0e!important;background:#fff2d6!important;border-color:#ecd2a2!important;}
#expanding-land-promo #el-status-badge[data-state=unavailable] #el-status-dot {background:#d97706!important;}
#expanding-land-promo #el-status-badge[data-state=offline] {color:#a62339!important;background:#ffe8ec!important;border-color:#efb9c3!important;}
#expanding-land-promo h2.lm-el-title {
    margin:0 0 5px!important;padding:0!important;border:0!important;
    background:none!important;color:var(--el-ink)!important;
    font-family:var(--font,system-ui)!important;
    font-size:clamp(1.9rem,4vw,2.85rem)!important;font-weight:850!important;
    letter-spacing:-.045em;line-height:1.08;text-align:start!important;
}
#expanding-land-promo .lm-el-byline {font-size:.77rem;font-weight:700;color:var(--el-purple)!important;margin:0 0 7px!important;text-align:start;}
#expanding-land-promo .lm-el-description {font-size:.91rem;line-height:1.5;color:var(--el-sub)!important;margin:0!important;max-width:720px;text-align:start;}
#expanding-land-promo .lm-el-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px;}
#expanding-land-promo .lm-el-stat {
    min-width:0;
    background:var(--el-panel)!important;border:1px solid var(--el-border);border-radius:11px;
    padding:12px 8px;text-align:center;box-shadow:0 2px 6px rgba(57,32,104,.045);
}
#expanding-land-promo .lm-el-stat-value {
    display:flex;align-items:center;justify-content:center;gap:7px;
    color:var(--el-purple)!important;font-size:clamp(1.02rem,2.2vw,1.48rem);
    font-weight:800;font-variant-numeric:tabular-nums;line-height:1.25;
}
#expanding-land-promo .lm-el-stat-value i {font-size:.77em;color:inherit!important;}
#expanding-land-promo .lm-el-stat-value span {color:inherit!important;}
#expanding-land-promo .lm-el-stat:nth-child(2) .lm-el-stat-value {color:var(--el-teal)!important;}
#expanding-land-promo .lm-el-stat:nth-child(3) .lm-el-stat-value {color:var(--el-gold)!important;}
#expanding-land-promo .lm-el-stat:nth-child(4) .lm-el-stat-value {color:var(--el-pink)!important;}
#expanding-land-promo .lm-el-stat-label {
    display:block;color:var(--el-sub)!important;font-size:.67rem;font-weight:700;
    line-height:1.35;margin-top:5px;text-transform:uppercase;letter-spacing:.035em;
}
#expanding-land-promo .lm-el-pills {display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px;}
#expanding-land-promo .lm-el-pill {
    display:inline-flex;align-items:center;gap:6px;border:1px solid var(--el-border);border-radius:999px;
    padding:5px 11px;font-size:.76rem;font-weight:650;line-height:1.3;
    background:var(--el-panel)!important;color:var(--el-purple)!important;
}
#expanding-land-promo .lm-el-pill i {font-size:.86em;color:inherit!important;}
#expanding-land-promo .lm-el-potions {color:var(--el-teal)!important;}
#expanding-land-promo .lm-el-realPlayers {color:var(--el-gold)!important;}
#expanding-land-promo .lm-el-antiTeam {color:var(--el-pink)!important;}
#expanding-land-promo .lm-el-actions {display:flex;flex-wrap:wrap;align-items:stretch;gap:9px;}
#expanding-land-promo a.lm-el-button:is(:link,:visited,:hover,:focus-visible) {
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    min-height:46px;min-width:0;padding:10px 15px;box-sizing:border-box;
    border:1px solid var(--el-border)!important;border-radius:10px;
    background:var(--el-panel)!important;
    color:var(--el-ink)!important;text-decoration:none!important;
    font-size:.82rem;font-weight:700!important;line-height:1.3;text-align:center;
    transition:background .16s,box-shadow .16s,transform .16s!important;
}
#expanding-land-promo a.lm-el-button :is(span,i) {color:inherit!important;-webkit-text-fill-color:currentColor!important;}
#expanding-land-promo a.lm-el-button.lm-el-primary:is(:link,:visited,:hover,:focus-visible) {
    background:linear-gradient(135deg,#6823d7,#8735e7)!important;color:#fff!important;
    border-color:#6925c6!important;box-shadow:0 4px 10px rgba(97,38,195,.25);
    font-size:.91rem;padding-inline:20px;
}
#expanding-land-promo a.lm-el-button.lm-el-android:is(:link,:visited,:hover,:focus-visible) {
    background:linear-gradient(135deg,#087e72,#087653)!important;color:#fff!important;
    border-color:#087653!important;box-shadow:0 4px 10px rgba(8,118,83,.2);
    font-size:.91rem;padding-inline:20px;
}
#expanding-land-promo a.lm-el-button:hover {transform:translateY(-2px);box-shadow:0 5px 12px rgba(57,32,104,.16);}
#expanding-land-promo a.lm-el-button:focus-visible {outline:3px solid #8151d8;outline-offset:3px;}
#expanding-land-promo a.lm-el-secondary i.fa-youtube {color:#c62836!important;}
/* Keep the ad readable in dark and game-selected themes. */
:is(.dark-theme,html.lm-themed-root) #expanding-land-promo.lm-el-promo {
    --el-ink:#f7f3ff;--el-sub:#d8cce9;--el-panel:rgba(26,18,47,.65);
    --el-border:rgba(210,186,255,.2);--el-purple:#d4b8ff;--el-teal:#79e3cd;
    --el-gold:#ffd68b;--el-pink:#ffa5d4;
    border-color:#594481;
    background:radial-gradient(ellipse at 92% 6%,rgba(136,82,220,.25),transparent 52%),linear-gradient(125deg,#24183e,#3b285b)!important;
}
:is(.dark-theme,html.lm-themed-root) #expanding-land-promo #el-status-badge[data-state=online] {color:#b4f5c9!important;background:#194932!important;border-color:#407d55!important;}
:is(.dark-theme,html.lm-themed-root) #expanding-land-promo #el-status-badge[data-state=checking] {color:#e5d7fa!important;background:#362854!important;border-color:#645080!important;}
:is(.dark-theme,html.lm-themed-root) #expanding-land-promo #el-status-badge[data-state=unavailable] {color:#ffe0a2!important;background:#594018!important;border-color:#886329!important;}
:is(.dark-theme,html.lm-themed-root) #expanding-land-promo #el-status-badge[data-state=offline] {color:#ffc0ce!important;background:#5a2635!important;border-color:#995267!important;}
/* Centre the original wordmark above the aligned navigation; no new branding. */
body>section:first-of-type>section.lm-brand-header {
    padding:14px 0 11px!important;
}
.lm-brand-header .hero-banner-wrap {
    display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    gap:12px;align-items:center;
}
.lm-brand-header .lm-brand-identity {
    grid-column:2;display:flex;justify-content:center;align-items:center;flex:none;
    width:auto;min-width:0;
}
.lm-brand-header .lm-brand-wordmark {
    flex:none;width:clamp(220px,25vw,320px);max-width:100%;
    max-height:none;height:auto;object-fit:contain;
}
.lm-brand-header .hero-banner-wrap .flex-center {grid-column:3;justify-self:end;justify-content:flex-end;min-width:0;}
@media(max-width:980px) {
    .lm-brand-header .hero-banner-wrap {display:flex;flex-direction:column;gap:9px;}
    .lm-brand-header .lm-brand-identity {width:100%;}
    .lm-brand-header .lm-brand-wordmark {width:min(100%,290px);}
    .lm-brand-header .hero-banner-wrap .flex-center {justify-content:center;}
}
@media(max-width:600px) {
    #expanding-land-promo .lm-el-intro {margin-bottom:14px;}
    #expanding-land-promo .lm-el-stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
    #expanding-land-promo .lm-el-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
    #expanding-land-promo .lm-el-actions>a:last-child {grid-column:1/-1;}
    #expanding-land-promo a.lm-el-button {padding-inline:9px;}
    #expanding-land-promo a.lm-el-button.lm-el-primary,#expanding-land-promo a.lm-el-button.lm-el-android {padding-inline:9px;}
    .lm-brand-header .lm-brand-wordmark {width:min(100%,260px);}
}
@media(prefers-reduced-motion:reduce) {
    #expanding-land-promo a.lm-el-button {transition:none!important;}
    #expanding-land-promo a.lm-el-button:hover {transform:none;}
}
/* Small screens keep the complete tab bar and language/theme controls visible. */
@media(max-width:768px) {
    body>section:first-of-type>#navbar {align-self:center;margin-inline:auto!important;}
    #navbar #nav ul {width:100%;min-width:0;justify-content:center;flex-wrap:wrap!important;gap:4px;padding:0 6px;}
    #navbar #nav li:has(>a[name=LMmobile]) {display:none!important;}
    #navbar #nav li {max-width:100%;}
    #navbar #nav a[name] {min-height:38px;box-sizing:border-box;}
    #navbar #nav select {max-width:100%;}
}

/* Integrated FAQ: native keyboard-accessible disclosures with no fixed answer height. */
.lm-faq-block {margin:20px auto 12px;text-align:start;scroll-margin-top:85px;max-width:100%;min-width:0;}
.lm-launch>.lm-faq-block {margin:0;}
.lm-faq-block h2 {margin-bottom:13px!important;font-size:clamp(1.2rem,2.4vw,1.5rem)!important;color:var(--text,#0f172a)!important;}
.lm-faq-block h2>.lm-glyph {margin-inline-end:7px;color:var(--accent,#7c3aed);}
.lm-faq-item {margin:8px 0;border:1px solid var(--lmweb-line,var(--border));border-radius:10px;background:var(--bg-card,#fff);color:var(--text,#0f172a);scroll-margin-top:85px;overflow:hidden;}
.lm-faq-item summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:12px 14px;cursor:pointer;list-style:none;font-weight:650;font-size:.92rem;line-height:1.45;text-align:start;}
.lm-faq-item summary::-webkit-details-marker {display:none;}
.lm-faq-item summary:focus-visible {outline:3px solid var(--accent,#7c3aed);outline-offset:-3px;border-radius:9px;}
.lm-faq-item summary:hover {background:var(--btn-bg,#f3efff);}
.lm-faq-chevron {flex:none;font-size:.8rem;color:var(--accent,#7c3aed);}
.lm-faq-item[open] .lm-faq-chevron {transform:rotate(180deg);}
.lm-faq-answer {padding:0 14px 14px;overflow-wrap:anywhere;}
.lm-faq-answer p {margin:0!important;color:var(--text-secondary,#475569)!important;font-size:.91rem;line-height:1.65;}
.lm-faq-answer a,.lm-faq-related a {text-decoration:underline!important;text-underline-offset:3px;}
.lm-faq-related {display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.82rem;margin-top:12px;}
html.lm-themed-root .lm-faq-item {background:var(--lm-pc2)!important;color:var(--lm-tc)!important;border-color:var(--lm-tc2)!important;}
html.lm-themed-root .lm-faq-answer p,html.lm-themed-root .lm-faq-block h2 {color:var(--lm-tc)!important;}
html.lm-themed-root .lm-faq-item summary:hover {background:var(--lm-btn1)!important;}
