/* ==========================================================================
   MuStone Landing Page
   Scoped: everything is namespaced with .ld- or body.home so inner pages
   using the original template styles are never affected.
   ========================================================================== */

:root {
    --ld-bg: #091426;
    --ld-bg-alt: #0d1b31;
    --ld-panel: #122340;
    --ld-border: rgba(104, 144, 205, 0.22);
    /* --ld-gold now holds the accent orange; the name is kept because
       inner.css and older rules reference these variables */
    --ld-gold: #ff9e1b;
    --ld-gold-light: #ffb84d;
    --ld-accent-deep: #f07800;
    --ld-blue: #2f96f3;
    --ld-blue-light: #4fb2ff;
    --ld-blue-deep: #1668c9;
    --ld-text: #c3d2e8;
    --ld-text-dim: #8ba0bf;
    --ld-white: #f5f8fd;
    --ld-green: #35e065;
    --ld-nav-h: 64px;
}

body.home {
    background: var(--ld-bg);
    color: var(--ld-text);
    font-family: 'Nunito', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- Navbar (mega menu) on home ---------- */
body.home #navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(9, 20, 38, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ld-border);
}
.ld-nav-brandbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 0;
    flex-shrink: 0;
}
.ld-nav-brand {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ld-gold-light);
    line-height: 1.1;
}
.ld-nav-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ld-green);
}
.ld-nav-online i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ld-green);
    animation: ld-pulse 1.8s infinite;
}
.ld-nav-brand:hover {
    color: var(--ld-gold-light);
}
.ld-menu {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ld-menu > li {
    position: relative;
}
.ld-menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 20px;
    color: var(--ld-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    transition: color 0.25s ease;
    position: relative;
}
.ld-menu-link svg {
    width: 22px;
    height: 22px;
    transition: transform 0.25s ease;
}
.ld-menu-link:hover {
    color: var(--ld-gold-light);
}
.ld-menu-link:hover svg {
    transform: translateY(-2px);
}
.ld-menu-link::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 2px;
    background: var(--ld-gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.ld-menu > li:hover > .ld-menu-link::after {
    transform: scaleX(1);
}
.ld-caret {
    position: absolute;
    right: 7px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1.5px solid var(--ld-text-dim);
    border-bottom: 1.5px solid var(--ld-text-dim);
    transform: rotate(45deg);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.ld-menu > li:hover .ld-caret {
    transform: rotate(225deg);
    border-color: var(--ld-gold);
}

/* Dropdown */
.ld-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 300px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: rgba(12, 24, 44, 0.98);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.ld-menu > li:hover > .ld-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.ld-submenu-right {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(8px);
}
.ld-menu > li:hover > .ld-submenu-right {
    transform: translateX(0) translateY(0);
}
.ld-submenu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 9px;
    transition: background 0.2s ease;
}
.ld-submenu li a:hover {
    background: rgba(255, 158, 27, 0.08);
}
.ld-sub-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--ld-border);
    background: radial-gradient(circle at center, rgba(255, 158, 27, 0.14) 0%, rgba(255, 158, 27, 0.02) 70%);
    color: var(--ld-gold);
    transition: border-color 0.2s ease;
}
.ld-submenu li a:hover .ld-sub-icon {
    border-color: var(--ld-gold);
}
.ld-sub-icon svg {
    width: 22px;
    height: 22px;
}
.ld-sub-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ld-sub-text strong {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ld-white);
    white-space: nowrap;
}
.ld-submenu li a:hover .ld-sub-text strong {
    color: var(--ld-gold-light);
}
.ld-sub-text small {
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--ld-text-dim);
    white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.ld-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.ld-container-narrow {
    max-width: 820px;
}
.ld-section {
    padding: 90px 0;
    background: var(--ld-bg);
}
.ld-section-alt {
    background: var(--ld-bg-alt);
}
.ld-section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ld-white);
    margin-bottom: 56px;
}
.ld-section-title span {
    color: var(--ld-gold);
}
.ld-section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, transparent, var(--ld-gold), transparent);
}

/* ---------- Scroll reveal ---------- */
.ld-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.ld-reveal.ld-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Hero ---------- */
.ld-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.ld-hero-bg {
    position: absolute;
    inset: 0;
    background: url(../img/profiles/guild.jpg) center 30% / cover no-repeat;
    animation: ld-hero-zoom 22s ease-in-out infinite alternate;
}
.ld-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(9, 20, 38, 0.25) 0%, rgba(9, 20, 38, 0.78) 75%),
        linear-gradient(to bottom, rgba(9, 20, 38, 0.55) 0%, rgba(9, 20, 38, 0.35) 45%, var(--ld-bg) 100%);
}
@keyframes ld-hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
/* Floating gold particles */
.ld-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.ld-particles span {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ld-gold-light);
    opacity: 0;
    animation: ld-float 12s linear infinite;
    box-shadow: 0 0 8px 2px rgba(255, 184, 77, 0.4);
}
.ld-particles span:nth-child(1)  { left: 6%;  animation-delay: 0s;    animation-duration: 13s; }
.ld-particles span:nth-child(2)  { left: 14%; animation-delay: 2.2s;  animation-duration: 11s; width: 3px; height: 3px; }
.ld-particles span:nth-child(3)  { left: 23%; animation-delay: 5s;    animation-duration: 15s; }
.ld-particles span:nth-child(4)  { left: 31%; animation-delay: 1.4s;  animation-duration: 10s; width: 5px; height: 5px; }
.ld-particles span:nth-child(5)  { left: 42%; animation-delay: 7s;    animation-duration: 14s; width: 3px; height: 3px; }
.ld-particles span:nth-child(6)  { left: 51%; animation-delay: 3.6s;  animation-duration: 12s; }
.ld-particles span:nth-child(7)  { left: 60%; animation-delay: 8.5s;  animation-duration: 16s; width: 3px; height: 3px; }
.ld-particles span:nth-child(8)  { left: 68%; animation-delay: 0.8s;  animation-duration: 11s; width: 5px; height: 5px; }
.ld-particles span:nth-child(9)  { left: 76%; animation-delay: 4.4s;  animation-duration: 13s; }
.ld-particles span:nth-child(10) { left: 84%; animation-delay: 6.2s;  animation-duration: 15s; width: 3px; height: 3px; }
.ld-particles span:nth-child(11) { left: 91%; animation-delay: 2.8s;  animation-duration: 12s; }
.ld-particles span:nth-child(12) { left: 96%; animation-delay: 9s;    animation-duration: 14s; width: 5px; height: 5px; }
@keyframes ld-float {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    8%   { opacity: 0.9; }
    50%  { transform: translateY(-55vh) translateX(-18px); opacity: 0.5; }
    100% { transform: translateY(-105vh) translateX(14px); opacity: 0; }
}

/* Falling petals (classic MU vibe, reusing the template's leaf art) */
.ld-petals {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}
.ld-petals span {
    position: absolute;
    top: -90px;
    width: 52px;
    height: 52px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    animation: ld-petal-fall 13s linear infinite;
    will-change: transform;
}
.ld-petals span:nth-child(1)  { left: 4%;  background-image: url(../img/leaves-left-1.png);  animation-delay: 0s;    animation-duration: 14s; width: 58px; height: 58px; }
.ld-petals span:nth-child(2)  { left: 15%; background-image: url(../img/leaves-right-4.png); animation-delay: 3.5s;  animation-duration: 11s; width: 34px; height: 34px; }
.ld-petals span:nth-child(3)  { left: 26%; background-image: url(../img/leaves-left-3.png);  animation-delay: 7s;    animation-duration: 16s; }
.ld-petals span:nth-child(4)  { left: 37%; background-image: url(../img/leaves-right-2.png); animation-delay: 1.2s;  animation-duration: 12s; width: 40px; height: 40px; }
.ld-petals span:nth-child(5)  { left: 48%; background-image: url(../img/leaves-left-4.png);  animation-delay: 9s;    animation-duration: 15s; width: 46px; height: 46px; }
.ld-petals span:nth-child(6)  { left: 58%; background-image: url(../img/leaves-right-5.png); animation-delay: 4.8s;  animation-duration: 10s; width: 36px; height: 36px; }
.ld-petals span:nth-child(7)  { left: 68%; background-image: url(../img/leaves-left-2.png);  animation-delay: 2.4s;  animation-duration: 17s; }
.ld-petals span:nth-child(8)  { left: 78%; background-image: url(../img/leaves-right-1.png); animation-delay: 6.2s;  animation-duration: 13s; width: 44px; height: 44px; }
.ld-petals span:nth-child(9)  { left: 87%; background-image: url(../img/leaves-left-5.png);  animation-delay: 10.5s; animation-duration: 12s; width: 48px; height: 48px; }
.ld-petals span:nth-child(10) { left: 94%; background-image: url(../img/leaves-right-3.png); animation-delay: 5.4s;  animation-duration: 15s; width: 38px; height: 38px; }
@keyframes ld-petal-fall {
    0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.85; }
    25%  { transform: translate3d(-38px, 22vh, 0) rotate(75deg); }
    50%  { transform: translate3d(30px, 50vh, 0) rotate(160deg); opacity: 0.75; }
    75%  { transform: translate3d(-26px, 78vh, 0) rotate(240deg); }
    96%  { opacity: 0.5; }
    100% { transform: translate3d(24px, 112vh, 0) rotate(330deg); opacity: 0; }
}

.ld-hero-inner {
    position: relative;
    z-index: 2;
    padding: 110px 24px 70px;
    animation: ld-fade-up 1s ease both;
}
@keyframes ld-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ld-logo {
    max-width: 230px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 6px 24px rgba(255, 158, 27, 0.35));
    /* the logo art is a square JPG with its own background: fade the edges
       into the hero so it does not read as a hard rectangular block */
    -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, #000 52%, transparent 76%);
    mask-image: radial-gradient(ellipse 72% 72% at center, #000 52%, transparent 76%);
}
@media (max-width: 768px) {
    .ld-logo { max-width: 170px; }
}
.ld-title {
    font-size: 58px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ld-white);
    margin-bottom: 14px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}
.ld-title span {
    background: linear-gradient(180deg, var(--ld-gold-light), var(--ld-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ld-subtitle {
    font-size: 18px;
    color: var(--ld-text);
    max-width: 560px;
    margin: 0 auto 34px;
}

/* Hero chips */
.ld-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}
.ld-chip {
    background: rgba(21, 26, 38, 0.75);
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    padding: 10px 22px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ld-chip span {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ld-text-dim);
}
.ld-chip strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--ld-gold-light);
}
.ld-chip-online strong {
    color: var(--ld-green);
}
.ld-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ld-green);
    box-shadow: 0 0 0 0 rgba(53, 224, 101, 0.6);
    animation: ld-pulse 1.8s infinite;
}
@keyframes ld-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(53, 224, 101, 0.55); }
    70%  { box-shadow: 0 0 0 12px rgba(53, 224, 101, 0); }
    100% { box-shadow: 0 0 0 0 rgba(53, 224, 101, 0); }
}

/* ---------- Buttons ---------- */
.ld-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}
.ld-btn {
    display: inline-block;
    padding: 16px 42px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.ld-btn-primary {
    background: linear-gradient(180deg, var(--ld-gold-light), #f07800);
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(255, 158, 27, 0.35);
}
.ld-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(255, 158, 27, 0.5);
    color: #ffffff;
}
.ld-btn-ghost {
    border: 1px solid var(--ld-gold);
    color: var(--ld-gold-light);
    background: rgba(255, 158, 27, 0.06);
}
.ld-btn-ghost:hover {
    background: rgba(255, 158, 27, 0.16);
    transform: translateY(-3px);
    color: var(--ld-gold-light);
}

/* Scroll hint */
.ld-scroll-hint {
    display: inline-block;
    margin-top: 56px;
    width: 26px;
    height: 44px;
    border: 2px solid var(--ld-text-dim);
    border-radius: 14px;
    position: relative;
}
.ld-scroll-hint span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--ld-gold);
    animation: ld-scroll 1.8s ease infinite;
}
@keyframes ld-scroll {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(16px); }
}

/* ---------- Live stats strip ---------- */
.ld-stats {
    background: var(--ld-bg-alt);
    border-top: 1px solid var(--ld-border);
    border-bottom: 1px solid var(--ld-border);
    padding: 44px 0;
}
.ld-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.ld-stat strong {
    display: block;
    font-size: 40px;
    font-weight: 900;
    color: var(--ld-white);
    line-height: 1.1;
}
.ld-stat span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ld-text-dim);
}
.ld-stat-online strong {
    color: var(--ld-green);
    text-shadow: 0 0 24px rgba(53, 224, 101, 0.35);
}

/* ---------- Steps ---------- */
.ld-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.ld-step {
    display: block;
    background: var(--ld-panel);
    border: 1px solid var(--ld-border);
    border-radius: 14px;
    padding: 40px 30px 34px;
    position: relative;
    color: var(--ld-text);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ld-step:hover {
    transform: translateY(-6px);
    border-color: var(--ld-gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    color: var(--ld-text);
}
.ld-step-num {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--ld-gold-light), #f07800);
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}
.ld-step h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--ld-white);
    text-transform: none;
    margin-bottom: 10px;
}
.ld-step p {
    font-size: 14.5px;
    color: var(--ld-text-dim);
    margin: 0;
}

/* ---------- Classes ---------- */
.ld-classes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.ld-class {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ld-border);
    background: var(--ld-panel);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ld-class:hover {
    transform: translateY(-6px);
    border-color: var(--ld-gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.ld-class img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ld-class:hover img {
    transform: scale(1.07);
}
.ld-class-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 46px 20px 16px;
    background: linear-gradient(to top, rgba(9, 20, 38, 0.95) 30%, rgba(9, 20, 38, 0.55) 70%, transparent 100%);
}
.ld-class-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ld-gold-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 4px;
}
.ld-class-info p {
    font-size: 13px;
    color: var(--ld-text);
    margin: 0;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.35s ease, max-height 0.35s ease;
}
.ld-class:hover .ld-class-info p {
    opacity: 1;
    max-height: 60px;
}

/* Coming-soon class: dimmed art + pulsing gold ribbon */
.ld-class-soon img {
    filter: grayscale(0.75) brightness(0.6);
}
.ld-class-soon:hover img {
    filter: grayscale(0.4) brightness(0.75);
}
.ld-class-soon .ld-class-info h3 {
    color: var(--ld-text-dim);
}
.ld-class-soon-badge {
    position: absolute;
    top: 26px;
    right: -44px;
    z-index: 2;
    transform: rotate(45deg);
    background: linear-gradient(90deg, var(--ld-gold-light), var(--ld-gold));
    color: #1a1405;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 0;
    width: 190px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    animation: ld-soon-pulse 1.8s ease-in-out infinite;
}
@keyframes ld-soon-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 158, 27, 0.55); }
    50% { box-shadow: 0 0 26px 8px rgba(255, 158, 27, 0.3); }
}
@media (max-width: 768px) {
    /* On phones the rotated ribbon clips badly: use a straight pill badge */
    .ld-class-soon-badge {
        top: 12px;
        right: 12px;
        transform: none;
        width: auto;
        padding: 7px 16px;
        border-radius: 999px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}

/* ---------- Page loader (logo splash) ---------- */
.ld-loader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background: var(--ld-bg, #050914);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.ld-loader-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.ld-loader-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    animation: ld-loader-breathe 1.6s ease-in-out infinite;
}
@keyframes ld-loader-breathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 158, 27, 0)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 22px rgba(255, 158, 27, 0.45)); }
}
.ld-loader-ring {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--ld-gold, #ff9e1b);
    animation: ld-loader-spin 0.9s linear infinite;
}
@keyframes ld-loader-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Floating language selector ---------- */
.ld-lang-fab {
    position: fixed;
    right: 22px;
    bottom: 92px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.ld-lang-fab-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(104, 144, 205, 0.4);
    background: #0c1c33;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ld-lang-fab-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--ld-gold, #ff9e1b);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.ld-lang-fab-toggle img {
    width: 28px;
    height: auto;
    border-radius: 4px;
    pointer-events: none;
}
.ld-lang-fab-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    padding: 8px;
    border-radius: 14px;
    background: #0c1c33;
    border: 1px solid rgba(104, 144, 205, 0.35);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}
.ld-lang-fab.open .ld-lang-fab-menu {
    display: flex;
}
.ld-lang-fab-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--ld-text, #b9c2d8);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.ld-lang-fab-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}
.ld-lang-fab-menu a.ld-lang-fab-active {
    background: rgba(255, 158, 27, 0.14);
    color: var(--ld-gold-light, #ffb84d);
}
.ld-lang-fab-menu a img {
    width: 22px;
    height: auto;
    border-radius: 3px;
}
@media (max-width: 640px) {
    .ld-lang-fab {
        right: 14px;
        bottom: 78px;
    }
    .ld-lang-fab-toggle {
        width: 50px;
        height: 50px;
    }
}

/* ---------- Floating currency selector (above the language one) ---------- */
.ld-cur-fab {
    bottom: 162px;
}
.ld-cur-fab-toggle {
    flex-direction: column;
    gap: 2px;
}
.ld-cur-fab-toggle span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--ld-gold-light, #ffb84d);
    line-height: 1;
}
.ld-cur-flag {
    display: inline-flex;
    line-height: 0;
}
.ld-cur-flag svg {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.ld-cur-fab .ld-lang-fab-menu {
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.ld-cur-fab .ld-lang-fab-menu a b {
    min-width: 26px;
    text-align: center;
    font-size: 13px;
    color: var(--ld-gold-light, #ffb84d);
}
@media (max-width: 640px) {
    .ld-cur-fab {
        bottom: 140px;
    }
}

/* ---------- Features ---------- */
.ld-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.ld-feature {
    background: var(--ld-panel);
    border: 1px solid var(--ld-border);
    border-radius: 14px;
    padding: 34px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.ld-feature:hover {
    transform: translateY(-6px);
    border-color: var(--ld-gold);
}
.ld-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border: 1px solid var(--ld-border);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 158, 27, 0.14) 0%, rgba(255, 158, 27, 0.03) 70%);
    box-shadow: 0 0 24px rgba(255, 158, 27, 0.12) inset;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ld-feature:hover .ld-feature-icon {
    border-color: var(--ld-gold);
    box-shadow: 0 0 24px rgba(255, 158, 27, 0.25) inset, 0 0 18px rgba(255, 158, 27, 0.2);
}
.ld-feature-icon svg {
    width: 38px;
    height: 38px;
}
.ld-feature h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ld-white);
    text-transform: none;
    margin-bottom: 8px;
}
.ld-feature p {
    font-size: 14.5px;
    color: var(--ld-text-dim);
    margin: 0;
}

/* ---------- Rankings ---------- */
.ld-rankings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.ld-rank-card {
    background: var(--ld-panel);
    border: 1px solid var(--ld-border);
    border-radius: 14px;
    padding: 30px;
}
.ld-rank-card h3 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ld-gold-light);
    margin-bottom: 18px;
}
.ld-rank-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ld-rank-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ld-rank-card li:last-child {
    border-bottom: none;
}
.ld-rank-pos {
    width: 26px;
    font-weight: 900;
    color: var(--ld-gold);
    flex-shrink: 0;
}
.ld-rank-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ld-rank-flag {
    flex-shrink: 0;
    max-width: 24px;
    height: auto;
}
.ld-rank-guildlogo {
    flex-shrink: 0;
    line-height: 0;
}
.ld-rank-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.ld-rank-name a {
    color: var(--ld-white);
}
.ld-rank-name a:hover {
    color: var(--ld-gold-light);
}
.ld-rank-score {
    font-weight: 800;
    color: var(--ld-gold-light);
    white-space: nowrap;
}
.ld-rank-score small {
    font-weight: 400;
    color: var(--ld-text-dim);
}
.ld-rank-more {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ld-gold);
}
.ld-rank-more:hover {
    color: var(--ld-gold-light);
}

/* ---------- Event Champions ---------- */
.ld-champions-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 158, 27, 0.07) 0%, transparent 55%),
        var(--ld-bg-alt);
}
.ld-champ-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 46px;
}
.ld-champ-tab {
    padding: 10px 22px;
    background: var(--ld-panel);
    border: 1px solid var(--ld-border);
    border-radius: 30px;
    color: var(--ld-text-dim);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}
.ld-champ-tab:hover {
    color: var(--ld-gold-light);
    border-color: var(--ld-gold);
}
.ld-champ-tab.ld-active {
    background: linear-gradient(180deg, var(--ld-gold-light), #f07800);
    border-color: var(--ld-gold);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 158, 27, 0.3);
}
.ld-champ-panel {
    display: none;
    animation: ld-fade-up 0.5s ease both;
}
.ld-champ-panel.ld-active {
    display: block;
}

/* Podium */
.ld-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 22px;
    margin-bottom: 34px;
}
.ld-podium-slot {
    text-align: center;
    background: var(--ld-panel);
    border: 1px solid var(--ld-border);
    border-radius: 16px;
    padding: 26px 26px 20px;
    width: 220px;
    position: relative;
    transition: transform 0.3s ease;
}
.ld-podium-slot:hover {
    transform: translateY(-5px);
}
.ld-podium-empty {
    visibility: hidden;
}
.ld-podium-1 {
    padding-top: 40px;
    padding-bottom: 34px;
    border-color: rgba(255, 158, 27, 0.55);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 158, 27, 0.14) 0%, transparent 70%),
        var(--ld-panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 34px rgba(255, 158, 27, 0.12);
    z-index: 2;
}
.ld-crown {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 34px;
    color: var(--ld-gold-light);
    text-shadow: 0 0 18px rgba(255, 184, 77, 0.6);
}
.ld-podium-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 14px;
}
.ld-podium-avatar img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ld-border);
}
.ld-podium-1 .ld-podium-avatar img {
    width: 104px;
    height: 104px;
    border-color: var(--ld-gold);
    box-shadow: 0 0 24px rgba(255, 158, 27, 0.35);
}
.ld-podium-place {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(180deg, #cfd4dd, #8d939e); /* silver default */
}
.ld-podium-1 .ld-podium-place {
    background: linear-gradient(180deg, var(--ld-gold-light), #f07800);
}
.ld-podium-3 .ld-podium-place {
    background: linear-gradient(180deg, #d9a077, #9c6a44); /* bronze */
}
.ld-podium-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}
.ld-podium-name a {
    color: var(--ld-white);
}
.ld-podium-name a:hover {
    color: var(--ld-gold-light);
}
.ld-podium-1 .ld-podium-name {
    font-size: 18px;
}
.ld-podium-score {
    font-size: 20px;
    font-weight: 900;
    color: var(--ld-gold-light);
}
.ld-podium-score small,
.ld-podium-extra {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ld-text-dim);
}
.ld-podium-extra {
    margin-top: 4px;
}

/* Positions 4+ */
.ld-champ-rest {
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.ld-champ-rest li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    margin-bottom: 8px;
    background: var(--ld-panel);
    border: 1px solid var(--ld-border);
    border-radius: 10px;
}
.ld-champ-extra {
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ld-text-dim);
    white-space: nowrap;
}

/* ---------- News (wraps WebEngine news module output) ---------- */
.ld-news {
    background: var(--ld-panel);
    border: 1px solid var(--ld-border);
    border-radius: 14px;
    padding: 34px;
    color: var(--ld-text);
}
.ld-news h1, .ld-news h2, .ld-news h3, .ld-news h4 {
    color: var(--ld-white);
}
.ld-news a {
    color: var(--ld-gold-light);
}
.ld-news img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.ld-news table {
    color: var(--ld-text);
}

/* ---------- FAQ ---------- */
.ld-faq-item {
    background: var(--ld-panel);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}
.ld-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--ld-white);
    font-family: inherit;
    transition: color 0.25s ease;
}
.ld-faq-q:hover {
    color: var(--ld-gold-light);
}
.ld-faq-arrow {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--ld-gold);
    border-bottom: 2px solid var(--ld-gold);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}
.ld-faq-item.ld-open .ld-faq-arrow {
    transform: rotate(225deg);
}
.ld-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.ld-faq-a p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 14.5px;
    color: var(--ld-text-dim);
}
.ld-faq-a a {
    color: var(--ld-gold-light);
}

/* ---------- Final CTA ---------- */
.ld-final-cta {
    padding: 100px 0;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(255, 158, 27, 0.10) 0%, transparent 65%),
        var(--ld-bg-alt);
    border-top: 1px solid var(--ld-border);
}
.ld-final-cta h2 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ld-white);
    margin-bottom: 12px;
}
.ld-final-cta p {
    color: var(--ld-text-dim);
    margin-bottom: 34px;
}

/* ---------- Footer ---------- */
.ld-footer {
    padding: 34px 0;
    text-align: center;
    background: var(--ld-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: var(--ld-text-dim);
}
.ld-footer p {
    margin: 0 0 6px;
}
.ld-footer-links a {
    color: var(--ld-text-dim);
}
.ld-footer-links a:hover {
    color: var(--ld-gold-light);
}

/* ---------- Mobile navigation (hamburger) ---------- */
.ld-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 0;
}
.ld-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--ld-gold-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 900px) {
    .ld-nav-toggle {
        display: block;
    }
    .ld-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
        background: rgba(9, 20, 38, 0.97);
        border-bottom: 1px solid var(--ld-border);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    #navbar.ld-nav-open .ld-menu {
        display: flex;
    }
    .ld-menu-link {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        font-size: 12px;
    }
    .ld-menu-link svg {
        width: 18px;
        height: 18px;
    }
    .ld-menu-link::after {
        display: none;
    }
    .ld-caret {
        position: static;
        margin: 0 0 0 4px;
    }
    .ld-has-sub.ld-sub-open .ld-caret {
        transform: rotate(225deg);
        border-color: var(--ld-gold);
    }
    /* Submenus expand in place on tap */
    .ld-submenu {
        display: none;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        padding: 4px 18px 10px;
        background: rgba(255, 158, 27, 0.04);
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    .ld-menu > li:hover > .ld-submenu,
    .ld-menu > li:hover > .ld-submenu-right {
        transform: none;
    }
    .ld-has-sub.ld-sub-open > .ld-submenu {
        display: block;
    }
    .ld-sub-text strong,
    .ld-sub-text small {
        white-space: normal;
    }
    /* Burger turns into X */
    #navbar.ld-nav-open .ld-nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    #navbar.ld-nav-open .ld-nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    #navbar.ld-nav-open .ld-nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ld-steps,
    .ld-features,
    .ld-classes {
        grid-template-columns: repeat(2, 1fr);
    }
    .ld-podium {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .ld-podium-slot {
        width: 100%;
        max-width: 340px;
    }
    .ld-podium-1 {
        order: -1;
    }
    .ld-rankings {
        grid-template-columns: 1fr;
    }
    .ld-title {
        font-size: 42px;
    }
}
@media (max-width: 640px) {
    .ld-steps,
    .ld-features,
    .ld-stats-grid {
        grid-template-columns: 1fr;
    }
    .ld-stats-grid {
        gap: 30px;
    }
    .ld-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    .ld-subtitle {
        font-size: 16px;
    }
    .ld-section {
        padding: 60px 0;
    }
    .ld-section-title {
        font-size: 26px;
    }
    .ld-btn {
        width: 100%;
        text-align: center;
    }
    /* Lighter petal effect on phones */
    .ld-petals span:nth-child(n+6) {
        display: none;
    }
    /* Classes become a swipeable carousel on phones */
    .ld-classes {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 14px;
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
        scrollbar-width: thin;
        scrollbar-color: var(--ld-gold) transparent;
    }
    .ld-class {
        flex: 0 0 78%;
        scroll-snap-align: center;
    }
    .ld-class-info p {
        opacity: 1;
        max-height: 60px;
    }
}

/* ============ LANGUAGE SWITCHER (ld-lang-item) ============ */
.ld-lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}
.ld-sub-icon img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
}
.ld-sub-active > a {
    background: rgba(255, 158, 27, 0.08);
}
.ld-sub-active > a .ld-sub-text strong {
    color: var(--ld-gold-light);
}
@media (max-width: 768px) {
    .ld-lang-item .ld-menu-link {
        justify-content: flex-start;
    }
}

/* ============ SOCIAL FAB (floating action button, all pages) ============ */
.ld-social-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.ld-social-fab-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--ld-gold-light), var(--ld-gold));
    color: var(--ld-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--ld-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ld-social-fab-toggle svg {
    width: 26px;
    height: 26px;
}
.ld-social-fab-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--ld-gold);
}
.ld-social-fab.open .ld-social-fab-toggle {
    transform: scale(1.04);
}
.ld-social-fab-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
    max-width: calc(100vw - 44px);
    padding: 10px;
    border-radius: 14px;
    background: var(--ld-panel);
    border: 1px solid var(--ld-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.ld-social-fab.open .ld-social-fab-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}
.ld-social-fab-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--ld-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease;
}
.ld-social-fab-link:hover {
    background: rgba(255, 158, 27, 0.1);
    color: var(--ld-white);
}
.ld-social-fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}
.ld-social-fab-icon svg {
    width: 20px;
    height: 20px;
}
.ld-social-fab-discord .ld-social-fab-icon { color: #5865F2; }
.ld-social-fab-facebook .ld-social-fab-icon { color: #1877F2; }
.ld-social-fab-instagram .ld-social-fab-icon { color: #E1306C; }
.ld-social-fab-youtube .ld-social-fab-icon { color: #FF0000; }
.ld-social-fab-empty {
    padding: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ld-text-dim);
    font-style: italic;
}
@media (max-width: 480px) {
    .ld-social-fab {
        right: 14px;
        bottom: 14px;
    }
    .ld-social-fab-toggle {
        width: 50px;
        height: 50px;
    }
    .ld-social-fab-panel {
        min-width: 200px;
    }
}
.ld-social-fab-whatsapp .ld-social-fab-icon { color: #25D366; }

/* ==========================================================================
   MuDream-style redesign layer
   Appended after the original rules so the cascade picks these overrides
   without rewriting the sections above. New components live here too.
   ========================================================================== */

/* ---------- Buttons: pill shape ---------- */
.ld-btn {
    border-radius: 999px;
    padding: 17px 46px;
    font-weight: 900;
}
.ld-btn-blue {
    background: linear-gradient(180deg, var(--ld-blue-light), var(--ld-blue-deep));
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(47, 150, 243, 0.35);
}
.ld-btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(47, 150, 243, 0.5);
    color: #ffffff;
}

/* ---------- Navbar: logo + selected-server box + action buttons ---------- */
body.home #navbar,
body.inner #navbar {
    height: var(--ld-nav-h);
}
.ld-nav-brandbox {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
}
.ld-nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}
.ld-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ld-white);
}
.ld-nav-server {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 16px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ld-border);
    line-height: 1.2;
}
.ld-nav-server small {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ld-gold);
}
.ld-nav-server strong {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ld-white);
}
.ld-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ld-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ld-nav-btn svg {
    width: 16px;
    height: 16px;
}
.ld-nav-btn-register {
    background: linear-gradient(180deg, var(--ld-blue-light), var(--ld-blue-deep));
    box-shadow: 0 6px 16px rgba(47, 150, 243, 0.35);
}
.ld-nav-btn-login {
    background: linear-gradient(180deg, var(--ld-gold-light), var(--ld-accent-deep));
    box-shadow: 0 6px 16px rgba(255, 158, 27, 0.35);
}
.ld-nav-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

/* ---------- Sub navigation strip (home only) ---------- */
.ld-subnav {
    position: fixed;
    top: var(--ld-nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    justify-content: center;
    gap: 2px;
    padding: 0 16px;
    background: rgba(9, 20, 38, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}
.ld-subnav::-webkit-scrollbar {
    display: none;
}
.ld-subnav a {
    position: relative;
    padding: 15px 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ld-text-dim);
    white-space: nowrap;
    transition: color 0.2s ease;
}
.ld-subnav a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ld-gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.ld-subnav a:hover,
.ld-subnav a.ld-active {
    color: var(--ld-white);
}
.ld-subnav a.ld-active::after {
    transform: scaleX(1);
}

/* ---------- Hero: REMASTERED-style headline ---------- */
.ld-hero-inner {
    padding-top: 160px;
}
.ld-title {
    font-size: 64px;
    letter-spacing: 6px;
    line-height: 1;
    margin-bottom: 4px;
}
.ld-title sup {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--ld-gold);
    margin-left: 6px;
}
.ld-title-mega {
    font-family: 'Archivo Black', 'Nunito', sans-serif;
    font-size: clamp(56px, 11vw, 130px);
    line-height: 0.95;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffc35c 0%, var(--ld-gold) 45%, var(--ld-accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 34px rgba(240, 120, 0, 0.35));
    margin-bottom: 20px;
}
.ld-subtitle {
    margin-bottom: 28px;
}

/* Hero chips become MuDream pills */
.ld-chips {
    gap: 12px;
    margin-bottom: 38px;
}
.ld-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    background: rgba(9, 20, 38, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.10);
}
.ld-chip span {
    display: inline;
    font-size: 11px;
    letter-spacing: 1.6px;
}
.ld-chip strong {
    font-size: 15px;
    color: var(--ld-white);
}
.ld-chip-online strong {
    color: var(--ld-green);
}

/* ---------- Social FAB becomes the community bubble ---------- */
.ld-social-fab-toggle {
    background: linear-gradient(135deg, #a855f7, #6d28d9);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.5);
}
.ld-social-fab-toggle:hover {
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.65);
}

/* ---------- Community overlay (Our Socials) ---------- */
.ld-social-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 10, 20, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.ld-social-overlay.open {
    opacity: 1;
    visibility: visible;
}
.ld-social-panel {
    position: relative;
    width: min(880px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #10223f 0%, #0b1830 100%);
    border: 1px solid var(--ld-border);
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.25s ease;
}
.ld-social-overlay.open .ld-social-panel {
    transform: none;
}
.ld-social-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ld-white);
    cursor: pointer;
    transition: background 0.2s ease;
}
.ld-social-close:hover {
    background: rgba(255, 255, 255, 0.14);
}
.ld-social-close svg {
    width: 20px;
    height: 20px;
}
.ld-social-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}
.ld-social-head svg {
    width: 32px;
    height: 32px;
    color: var(--ld-gold);
}
.ld-social-head h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: var(--ld-white);
}
.ld-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}
.ld-social-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ld-white);
    font-size: 16px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ld-social-tile:hover {
    transform: translateY(-3px);
    border-color: var(--ld-gold);
    background: rgba(255, 255, 255, 0.07);
    color: var(--ld-white);
}
.ld-social-tile .ld-social-fab-icon {
    width: 30px;
    height: 30px;
}
.ld-social-tile .ld-social-fab-icon svg {
    width: 26px;
    height: 26px;
}
.ld-discord-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.18), rgba(109, 40, 217, 0.12));
    border: 1px solid rgba(88, 101, 242, 0.35);
}
.ld-discord-card > svg {
    width: 46px;
    height: 46px;
    color: #5865F2;
    flex-shrink: 0;
}
.ld-discord-info {
    flex: 1;
    min-width: 0;
}
.ld-discord-info h4 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ld-white);
}
.ld-discord-info p {
    margin: 0;
    font-size: 13.5px;
    color: var(--ld-text-dim);
}
.ld-discord-join {
    padding: 13px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a855f7, #6d28d9);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.ld-discord-join:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

/* ---------- Redesign responsive ---------- */
@media (max-width: 991px) {
    .ld-title {
        font-size: 44px;
        letter-spacing: 4px;
    }
}
@media (max-width: 900px) {
    .ld-nav-server {
        display: none;
    }
    .ld-nav-btn {
        padding: 9px 16px;
        font-size: 10.5px;
        letter-spacing: 1px;
    }
    .ld-nav-btn svg {
        display: none;
    }
    .ld-social-grid {
        grid-template-columns: 1fr;
    }
    .ld-discord-card {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 640px) {
    .ld-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    .ld-nav-logo {
        width: 32px;
        height: 32px;
    }
    .ld-nav-btn {
        padding: 8px 12px;
        font-size: 9.5px;
    }
    .ld-social-panel {
        padding: 28px 20px;
    }
    .ld-btn {
        width: 100%;
        text-align: center;
    }
}

/* ---------- Navbar density tiers (desktop widths above the 900px burger) ---------- */
@media (max-width: 1460px) {
    body.home #navbar,
    body.inner #navbar {
        padding: 0 16px;
    }
    .ld-menu-link {
        padding: 12px 12px;
        letter-spacing: 1px;
    }
    .ld-nav-btn {
        padding: 10px 16px;
        font-size: 11px;
    }
}
@media (max-width: 1200px) {
    .ld-nav-server {
        display: none;
    }
    .ld-menu-link {
        padding: 12px 9px;
        font-size: 10px;
    }
    .ld-menu-link svg {
        width: 18px;
        height: 18px;
    }
}
@media (max-width: 1040px) {
    .ld-nav-brand {
        font-size: 0;
        gap: 0;
    }
    .ld-menu-link {
        padding: 12px 7px;
    }
    .ld-nav-btn {
        padding: 9px 12px;
        font-size: 10px;
        letter-spacing: 0.8px;
    }
}

/* ---------- Subnav: center when it fits, full scroll when it overflows ---------- */
.ld-subnav {
    justify-content: flex-start;
}
.ld-subnav a:first-child {
    margin-left: auto;
}
.ld-subnav a:last-child {
    margin-right: auto;
}

/* ---------- Mega title: keep a single line on narrow screens ---------- */
.ld-title-mega {
    font-size: clamp(38px, 11vw, 130px);
    white-space: nowrap;
}

/* ---------- Hero: brand logo between the title and the subtitle ---------- */
.ld-title {
    margin-bottom: 14px;
}
.ld-logo {
    display: block;
    max-width: 190px;
    margin: 0 auto 8px;
}
