/* ============================================================
   modern.css — Phase 1 responsive shell for the MuOnline site
   Modernized "dark fantasy" theme. Loaded LAST so it wins the
   cascade over the legacy kabod.css/layout.css. Only the shell
   (header, stats bar, sidebar, hero, news, footer, events panel)
   is restyled here; inner pages keep their legacy styling until
   they are migrated in later phases.
   ============================================================ */

:root {
    /* Webzen-MU inspired: warm charcoal-black, crimson brand, antique gold trim */
    --bg: #0f0a0a;
    --bg-2: #18100f;
    --bg-3: #211615;
    --bg-elev: #2a1c1a;
    --border: #3a2722;
    --border-soft: #2a1c19;

    /* antique gold / bronze — trim, headings, borders, ornaments */
    --gold: #d8a441;
    --gold-bright: #f0c869;
    --gold-deep: #9c6b26;
    --gold-glow: rgba(216, 164, 65, .25);

    /* MU crimson — brand identity + primary call-to-action */
    --red: #d23029;
    --red-bright: #f0473c;
    --red-deep: #8e1c17;
    --red-glow: rgba(210, 48, 41, .32);

    --text: #cabbb3;
    --text-dim: #9a8279;
    --text-bright: #f5ece6;

    --online: #46d27f;
    --offline: #ef5160;
    --discord: #5865f2;

    --radius: 12px;
    --radius-sm: 8px;
    --shell-max: 1240px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);

    --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ---------- base / resets over legacy ---------- */
/* legacy reset.css sets html/body background:#fff — darken html too so short
   pages don't reveal a white band below the footer */
html {
    background: var(--bg);
}

body {
    min-width: 0 !important;
    min-height: 100vh;
    /* sticky-footer column: page content grows, footer stays pinned to the
       bottom on short pages instead of floating with empty space below it */
    display: flex;
    flex-direction: column;
    margin: 0;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(210, 48, 41, .10), transparent 60%),
        linear-gradient(180deg, #140c0c 0%, var(--bg) 42%, var(--bg) 100%) fixed;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.mu-scope a {
    color: var(--gold);
    text-decoration: none;
    transition: color .15s ease;
}

.mu-scope a:hover {
    color: var(--gold-bright);
    text-decoration: none;
}

.mu-scope *,
.mu-scope *::before,
.mu-scope *::after {
    box-sizing: border-box;
}

/* legacy layout.css styles the global <h1> as the old logo sprite
   (height:335px; width:1000px; overflow:hidden; h1 span{margin:51px 0 0 195px}).
   Neutralize that for every heading inside the new shell. */
.mu-scope h1,
.mu-scope h2,
.mu-scope h3,
.mu-scope h4,
.mu-scope h5,
.mu-scope h6 {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
}

.mu-scope h1 span,
.mu-scope h1 a {
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    text-indent: 0;
    background: none;
    overflow: visible;
}

.mu-shell {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* the page-content wrapper grows to fill, pushing the footer to the bottom */
.mu-pagewrap {
    width: 100%;
    flex: 1 0 auto;
}

.mu-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ============================================================
   HEADER
   ============================================================ */
.mu-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: linear-gradient(180deg, rgba(14, 11, 22, .98), rgba(14, 11, 22, .92));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.mu-header__bar {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 68px;
}

/* logo */
.mu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--red-bright) !important;
    text-shadow: 0 0 18px var(--red-glow);
}

.mu-logo__mark {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    color: var(--gold);
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

/* nav */
.mu-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.mu-nav__item {
    position: relative;
}

.mu-nav__link {
    display: block;
    padding: 10px 14px;
    color: var(--text) !important;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-radius: var(--radius-sm);
}

.mu-nav__link:hover,
.mu-nav__item:hover > .mu-nav__link {
    color: var(--gold-bright) !important;
    background: rgba(231, 182, 90, .08);
}

.mu-nav__item--has > .mu-nav__link::after {
    content: '▾';
    margin-left: 6px;
    font-size: 10px;
    opacity: .6;
}

/* dropdown */
.mu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px;
    margin-top: 6px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .16s ease;
}

.mu-nav__item--has:hover .mu-dropdown,
.mu-nav__item--has:focus-within .mu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mu-dropdown a {
    display: block;
    padding: 9px 12px;
    color: var(--text) !important;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.mu-dropdown a:hover {
    background: rgba(231, 182, 90, .1);
    color: var(--gold-bright) !important;
}

/* header actions */
.mu-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mu-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    background: var(--discord);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(88, 101, 242, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}

.mu-discord:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(88, 101, 242, .5);
}

.mu-discord svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.mu-discord__label {
    display: inline;
}

.mu-download {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff !important;
    background: linear-gradient(180deg, var(--red), var(--red-deep));
    box-shadow: 0 4px 14px var(--red-glow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.mu-download:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 6px 20px var(--red-glow);
}

/* header login button */
.mu-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    color: var(--text-bright);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.mu-login-btn svg { width: 17px; height: 17px; }

.mu-login-btn:hover {
    border-color: var(--gold-deep);
    color: var(--gold-bright);
}

/* header account menu (logged in) */
.mu-account { position: relative; }

.mu-account__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    color: var(--text-bright);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    max-width: 180px;
    transition: border-color .15s ease, color .15s ease;
}

.mu-account__btn svg { width: 17px; height: 17px; flex: 0 0 17px; }
.mu-account__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-account__btn:hover { border-color: var(--gold-deep); color: var(--gold-bright); }

.mu-account__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 60;
}

.mu-account.is-open .mu-account__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mu-account__menu a {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text) !important;
    font-size: 14px;
    font-weight: 500;
}

.mu-account__menu a:hover { background: var(--bg-3); color: var(--gold-bright) !important; }

/* ---------- login modal ---------- */
body.mu-modal-open { overflow: hidden; }

.mu-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mu-modal[hidden] { display: none; }

.mu-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 5, 12, .72);
    backdrop-filter: blur(2px);
}

.mu-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 24px 24px;
    animation: mu-modal-in .18s ease;
}

@keyframes mu-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.mu-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease;
}

.mu-modal__close:hover { color: var(--gold-bright); }

.mu-modal__head {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    color: var(--gold-bright);
    margin-bottom: 18px;
}

/* hamburger */
.mu-burger {
    display: none;
    width: 42px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.mu-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    transition: .2s;
}

/* ============================================================
   STATS BAR (replaces the old hover-only stats)
   ============================================================ */
.mu-statsbar {
    border-top: 1px solid var(--border-soft);
    background: linear-gradient(180deg, rgba(231, 182, 90, .05), transparent);
}

.mu-statsbar__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 26px;
    min-height: 44px;
    padding: 6px 0;
}

.mu-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font-size: 13px;
}

.mu-stat__label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-size: 11px;
}

.mu-stat__value {
    color: var(--text-bright);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mu-stat--status {
    margin-right: auto;
    font-size: 13px;
}

.mu-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}

.mu-dot--on {
    background: var(--online);
    box-shadow: 0 0 0 0 rgba(70, 210, 127, .6);
    animation: mu-pulse 2s infinite;
}

.mu-dot--off {
    background: var(--offline);
}

@keyframes mu-pulse {
    0% { box-shadow: 0 0 0 0 rgba(70, 210, 127, .55); }
    70% { box-shadow: 0 0 0 8px rgba(70, 210, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(70, 210, 127, 0); }
}

.mu-stat--status b {
    color: var(--text-bright);
}

/* ============================================================
   PAGE LAYOUT (main + sidebar)
   ============================================================ */
.mu-layout {
    display: block;
    padding: 26px 0 50px;
}

.mu-main {
    min-width: 0;
}

/* generic card */
.mu-card {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mu-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.mu-card__body {
    padding: 16px;
}

/* ---------- login / account card ---------- */
.mu-field {
    margin-bottom: 11px;
}

.mu-field input {
    width: 100%;
    height: 42px;
    padding: 0 13px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.mu-field input::placeholder { color: var(--text-dim); }

.mu-field input:focus {
    outline: none;
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ---------- MuCoins shop ---------- */
.mu-shop-balance {
    display: flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 6px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-2);
}
.mu-shop-balance__v { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--gold-bright); }
.mu-shop-balance__gem { width: 18px; height: 18px; line-height: 0; }
.mu-shop-balance__gem svg { width: 100%; height: 100%; fill: #c77dff; }

.mu-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 64px auto 0;   /* top room for the overflowing gem sacks */
    align-items: end;
}

.mu-pkg-wrap { display: flex; }

/* card base — clickable button */
.mu-pkg {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 28px;
    padding: 62px 18px 22px;   /* top padding leaves room for the gem header */
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 20px;
    background:
        radial-gradient(75% 55% at 50% 30%, rgba(168, 130, 220, .22), transparent 70%),
        linear-gradient(180deg, #2a2740, #1b1a28);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    font-family: var(--font-body);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mu-pkg:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0, 0, 0, .5); border-color: rgba(168, 130, 220, .4); }
.mu-pkg:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* gem header graphic — centered at the top, overflowing the card edge */
.mu-pkg__gem {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    line-height: 0;
    filter: drop-shadow(0 6px 12px rgba(120, 60, 180, .45));
}
.mu-pkg__gem img { width: 118px; height: auto; display: block; }

/* higher tiers: bigger sack that breaks out further above the card */
.mu-pkg--breakout { padding-top: 78px; margin-top: 44px; }
.mu-pkg--breakout .mu-pkg__gem { top: -52px; }
.mu-pkg--breakout .mu-pkg__gem img { width: 150px; }

/* premium far-right card: purple glow + biggest sack */
.mu-pkg--premium {
    border-color: rgba(168, 110, 230, .55);
    box-shadow: 0 0 0 1px rgba(168, 110, 230, .35), 0 0 34px rgba(150, 70, 220, .45), 0 14px 30px rgba(0, 0, 0, .45);
}
.mu-pkg--premium:hover { box-shadow: 0 0 0 1px rgba(168, 110, 230, .55), 0 0 44px rgba(150, 70, 220, .6), 0 18px 38px rgba(0, 0, 0, .55); }
.mu-pkg--premium { padding-top: 92px; margin-top: 58px; }
.mu-pkg--premium .mu-pkg__gem { top: -70px; }
.mu-pkg--premium .mu-pkg__gem img { width: 200px; }

/* red bonus ribbon, top-left, rounded on the right */
.mu-pkg__ribbon {
    position: absolute;
    top: 16px;
    left: -7px;
    z-index: 3;
    padding: 4px 11px 4px 12px;
    border-radius: 0 7px 7px 0;
    background: linear-gradient(180deg, #ec4646, #b62b2b);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .3px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .4);
}
.mu-pkg__ribbon::before {   /* folded corner under the left edge */
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    border: 3px solid #7a1c1c;
    border-left-color: transparent;
    border-bottom-color: transparent;
}

/* primary value */
.mu-pkg__value { line-height: 1; }
.mu-pkg__coins {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 34px;
    color: var(--gold-bright);
    text-shadow: 0 2px 10px rgba(231, 182, 90, .25);
}
.mu-pkg__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f7d873, #e7b65a);
    color: #1a1305;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 26px;
    box-shadow: 0 4px 14px rgba(231, 182, 90, .35);
}
.mu-pkg__pill svg { width: 19px; height: 19px; fill: #1a1305; }

.mu-pkg__label {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: .3px;
    color: #a39fb5;
}

/* footer price — bold white (standard), gold on premium */
.mu-pkg__price {
    margin-top: 18px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 19px;
    color: #fff;
    letter-spacing: .4px;
}
.mu-pkg--premium .mu-pkg__price { color: var(--gold-bright); }
.mu-pkg:hover .mu-pkg__price { text-shadow: 0 0 14px rgba(255, 255, 255, .3); }

.mu-shop-note {
    max-width: 1180px;
    margin: 28px auto 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
}
.mu-shop-note b { color: var(--text); }
.mu-shop-note a { color: var(--gold); }
.mu-shop-note a:hover { color: var(--gold-bright); }

/* ---- premium packages (subscriptions mockup) ---- */
.mu-subs-head {
    max-width: 1180px;
    margin: 40px auto 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    color: var(--gold-bright);
    letter-spacing: .4px;
}

.mu-subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
}

.mu-sub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px 18px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    background:
        radial-gradient(70% 50% at 50% 22%, rgba(168, 130, 220, .16), transparent 70%),
        linear-gradient(180deg, #262338, #1a1926);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .32);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mu-sub:hover { transform: translateY(-4px); border-color: rgba(168, 130, 220, .35); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }

.mu-sub--featured {
    border-color: rgba(231, 182, 90, .5);
    box-shadow: 0 0 0 1px rgba(231, 182, 90, .25), 0 0 28px rgba(231, 182, 90, .22), 0 12px 28px rgba(0, 0, 0, .4);
}
.mu-sub--featured:hover { box-shadow: 0 0 0 1px rgba(231, 182, 90, .4), 0 0 38px rgba(231, 182, 90, .32), 0 16px 34px rgba(0, 0, 0, .5); }

.mu-sub__icon {
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 10px rgba(120, 60, 180, .4));
}
.mu-sub__icon svg { width: 100%; height: 100%; }

.mu-sub__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    color: var(--text-bright);
    line-height: 1.2;
}
.mu-sub__info { display: inline-flex; width: 15px; height: 15px; color: var(--text-dim); cursor: help; flex: 0 0 15px; }
.mu-sub__info svg { width: 100%; height: 100%; fill: currentColor; }
.mu-sub__info:hover { color: var(--gold); }

.mu-sub__price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 12px 0 12px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    color: var(--gold-bright);
}
.mu-sub__gem { width: 18px; height: 18px; line-height: 0; }
.mu-sub__gem svg { width: 100%; height: 100%; fill: #c77dff; }

.mu-sub__days {
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    color: var(--text);
}

.mu-sub__pkgnote {
    margin-top: 12px;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--text-dim);
    font-style: italic;
}

/* ---- Gaming Services (glassmorphism cards) ---- */
.mu-svc-head {
    max-width: 1180px;
    margin: 44px auto 20px;
}
.mu-svc-head h2 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    color: var(--gold-bright);
    letter-spacing: .4px;
}
.mu-svc-head p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--text-dim);
}

.mu-svc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.mu-svc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 22px 22px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(160deg, rgba(34, 33, 52, .72), rgba(16, 16, 26, .72));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
/* subtle top shine */
.mu-svc::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    opacity: .5;
}
.mu-svc:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 130, 220, .5);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(150, 90, 220, .3);
}

.mu-svc__price {
    position: absolute;
    top: 16px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    color: var(--gold-bright);
}
.mu-svc__gem { width: 16px; height: 16px; line-height: 0; }
.mu-svc__gem svg { width: 100%; height: 100%; fill: #c77dff; }

.mu-svc__icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: radial-gradient(70% 70% at 50% 30%, rgba(168, 130, 220, .2), transparent 70%), rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .06);
    filter: drop-shadow(0 4px 10px rgba(120, 60, 180, .35));
}
.mu-svc__icon svg { width: 40px; height: 40px; }

.mu-svc__body { min-width: 0; padding-right: 56px; }
.mu-svc__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .5px;
    color: var(--text-bright);
}
.mu-svc__desc { margin-top: 3px; font-size: 13px; color: var(--text-dim); }

.mu-svc__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.mu-svc__dur {
    margin-right: auto;   /* pushes the action buttons to the right */
    height: 36px;
    padding: 0 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
}
.mu-svc__dur:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-glow); }

.mu-svc__actions { display: flex; gap: 8px; }

.mu-svc__act {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(0, 0, 0, .25);
    color: var(--text-bright);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, background .15s ease;
}
.mu-svc__act svg { width: 19px; height: 19px; fill: currentColor; }
.mu-svc__act:hover { transform: translateY(-2px); }

/* "+" — use on your own character (gold) */
.mu-svc__act--use:hover {
    border-color: var(--gold-deep);
    color: #1a1305;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    box-shadow: 0 4px 14px rgba(231, 182, 90, .4);
}

/* gift — gift to another character (purple) */
.mu-svc__act--gift:hover {
    border-color: rgba(168, 130, 220, .6);
    color: #fff;
    background: linear-gradient(180deg, #b06ee6, #8a3fd0);
    box-shadow: 0 4px 14px rgba(150, 90, 220, .45);
}

@media (max-width: 720px) {
    .mu-svc-grid { grid-template-columns: 1fr; }
}

/* ---- Consumables shop ---- */
.mu-cons-head { max-width: 1180px; margin: 44px auto 20px; }
.mu-cons-head h2 { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--gold-bright); letter-spacing: .4px; }
.mu-cons-head p { margin: 6px 0 0; font-size: 14px; color: var(--text-dim); }

.mu-cons-panel {
    max-width: 1180px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(165deg, rgba(30, 29, 46, .8), rgba(15, 15, 24, .82));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: hidden;
}

/* top bar: category tabs + currency toggle */
.mu-cons-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, .18);
}
.mu-cons-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mu-cons-tab {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mu-cons-tab:hover { color: var(--gold-bright); }
.mu-cons-tab.is-active {
    color: #1a1305;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    box-shadow: 0 3px 12px rgba(231, 182, 90, .35);
}

.mu-cons-cur { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.mu-cons-cur__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.mu-cons-cur__btn.is-active { background: var(--bg-3); color: var(--text-bright); box-shadow: inset 0 0 0 1px var(--border); }
.mu-cons-cur__btn .cons-cur { width: 15px; height: 15px; }

/* currency icon component (gem default, coin when .is-wcoins) */
.cons-cur { display: inline-flex; align-items: center; width: 16px; height: 16px; line-height: 0; }
.cons-cur svg { width: 100%; height: 100%; }
.cons-cur .ico-gem svg, .cons-cur--gem svg { fill: #c77dff; }
.cons-cur .ico-coin svg, .cons-cur--coin svg { fill: var(--gold-bright); }
.cons-cur .ico-gem, .cons-cur .ico-coin { display: inline-flex; width: 100%; height: 100%; }
.cons-cur .ico-coin { display: none; }
.is-wcoins .cons-cur .ico-gem { display: none; }
.is-wcoins .cons-cur .ico-coin { display: inline-flex; }

/* product grid: 5 / 3 / 2-1 */
.mu-cons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px 18px;
    padding: 46px 22px 26px;
}

.mu-prod {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(180deg, rgba(40, 38, 58, .6), rgba(20, 19, 30, .6));
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mu-prod:hover { transform: translateY(-4px); border-color: rgba(168, 130, 220, .4); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.mu-prod.in-cart { border-color: rgba(231, 182, 90, .5); box-shadow: 0 0 0 1px rgba(231, 182, 90, .25), 0 10px 24px rgba(0, 0, 0, .4); }

/* circular icon partially outside the top */
.mu-prod__ring {
    position: absolute;
    top: -28px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #2e2c44, #16151f);
    border: 2px solid var(--gold-deep);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 6px 14px rgba(0, 0, 0, .5);
}
.mu-prod__ring img { max-width: 40px; max-height: 40px; width: auto; height: auto; image-rendering: pixelated; }

.mu-prod__name {
    margin-top: 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1.25;
    min-height: 32px;
    display: flex;
    align-items: center;
}
.mu-prod__price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 12px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 17px;
    color: var(--gold-bright);
}

.mu-prod__qty { display: inline-flex; align-items: center; gap: 10px; }
.mu-prod__q { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; color: var(--text-bright); }
.mu-qbtn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-2);
    color: var(--text-bright);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease, color .15s ease;
}
.mu-qbtn:hover:not(:disabled) { border-color: var(--gold-deep); color: var(--gold-bright); transform: translateY(-1px); }
.mu-qbtn:disabled { opacity: .35; cursor: not-allowed; }

/* sticky cart footer */
.mu-cons-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(18, 17, 27, .85), rgba(12, 11, 18, .95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mu-cons-preview { flex: 1 1 240px; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.mu-cons-preview__empty { font-size: 13px; color: var(--text-dim); }
.mu-cons-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px 4px 5px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-2);
    font-size: 12px;
    color: var(--text);
}
.mu-cons-chip img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; }
.mu-cons-chip b { font-weight: 600; }
.mu-cons-chip em { font-style: normal; color: var(--gold-bright); font-weight: 700; }

.mu-cons-coupon { display: flex; gap: 8px; }
.mu-cons-coupon input {
    height: 40px;
    width: 150px;
    padding: 0 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-size: 13px;
}
.mu-cons-coupon input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-glow); }
.mu-cons-coupon input.is-ok { border-color: rgba(74, 170, 90, .6); }
.mu-cons-coupon input.is-bad { border-color: rgba(214, 70, 70, .6); }
.mu-cons-coupon button {
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    color: var(--text-bright);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.mu-cons-coupon button:hover { border-color: var(--gold-deep); color: var(--gold-bright); }

.mu-cons-checkout { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.mu-cons-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.mu-cons-total__k { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); }
.mu-cons-total__v { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--gold-bright); }
.mu-cons-total__v .cons-cur { width: 20px; height: 20px; }

.mu-cons-actions { display: flex; align-items: center; gap: 10px; }
.mu-cons-buy {
    height: 46px;
    padding: 0 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--red), var(--red-deep));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 18px var(--red-glow);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.mu-cons-buy:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 26px var(--red-glow), 0 0 22px rgba(214, 70, 70, .4); }
.mu-cons-buy:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.mu-cons-gift {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(168, 130, 220, .4);
    border-radius: 12px;
    background: rgba(0, 0, 0, .25);
    color: #c77dff;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.mu-cons-gift svg { width: 22px; height: 22px; fill: currentColor; }
.mu-cons-gift:hover { transform: translateY(-2px); background: linear-gradient(180deg, #b06ee6, #8a3fd0); color: #fff; box-shadow: 0 6px 18px rgba(150, 90, 220, .45); }

.mu-cons-clear {
    height: 46px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.mu-cons-clear:hover { border-color: var(--red-deep); color: #ff9a8a; }

@media (max-width: 1024px) {
    .mu-cons-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    .mu-cons-grid { grid-template-columns: repeat(2, 1fr); }
    .mu-cons-checkout { margin-left: 0; width: 100%; justify-content: space-between; }
    .mu-cons-coupon { width: 100%; }
    .mu-cons-coupon input { flex: 1; width: auto; }
}
@media (max-width: 420px) {
    .mu-cons-grid { grid-template-columns: 1fr; }
}

/* ---------- user panels (character info / account) ---------- */
.mu-subnav { margin-bottom: 18px; }
.mu-char-switch { margin-bottom: 18px; }

/* available points highlight in the stats card */
.mu-freepoints {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(231, 182, 90, .1);
    border: 1px solid var(--gold-deep);
}

.mu-freepoints span { font-size: 13px; color: var(--gold-bright); text-transform: uppercase; letter-spacing: .5px; }
.mu-freepoints b { font-family: var(--font-head); font-size: 20px; color: var(--gold-bright); }

/* two balances side by side (MuCoins + WCoins) */
.mu-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mu-balances .mu-freepoints { margin-bottom: 0; }
.mu-freepoints--alt {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border);
}
.mu-freepoints--alt span { color: var(--text-dim); }
.mu-freepoints--alt b { color: var(--text-bright); }

/* form selects (skins / grand reset) */
.mu-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
}
.mu-field select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-glow); }

/* checkbox option rows (grand reset rewards) */
.mu-checks { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 16px; }
.mu-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}
.mu-check:hover { border-color: var(--border-soft); }
.mu-check input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--gold-deep); cursor: pointer; }

/* price line */
.mu-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    font-size: 14px;
    color: var(--text-dim);
}
.mu-price b { color: var(--gold-bright); font-family: var(--font-head); font-size: 15px; }

/* account profile definition list */
.mu-deflist { list-style: none; margin: 0; padding: 0; }
.mu-deflist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 2px;
    border-bottom: 1px dashed var(--border-soft);
    font-size: 14px;
}
.mu-deflist li:last-child { border-bottom: none; }
.mu-deflist__k { color: var(--text-dim); }
.mu-deflist__v { color: var(--text-bright); text-align: right; word-break: break-word; }
.mu-deflist__v a { color: var(--gold); }
.mu-deflist__v a:hover { color: var(--gold-bright); }

/* status pill */
.mu-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.mu-pill--good { color: #cdeccf; background: rgba(74, 170, 90, .15); border: 1px solid rgba(74, 170, 90, .4); }
.mu-pill--bad  { color: #ffd0d0; background: rgba(214, 70, 70, .15); border: 1px solid rgba(214, 70, 70, .4); }

/* character actions */
.mu-char__actions { margin-top: 22px; }

.mu-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.mu-action {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    color: var(--text) !important;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.mu-action:hover { border-color: var(--gold-deep); background: var(--bg-3); transform: translateY(-2px); text-decoration: none; }
.mu-action__t { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--gold-bright); }
.mu-action__d { font-size: 12.5px; color: var(--text-dim); }

.mu-action--accent { border-color: var(--red-deep); background: linear-gradient(180deg, rgba(176,42,42,.18), rgba(176,42,42,.06)); }
.mu-action--accent:hover { border-color: var(--red); background: linear-gradient(180deg, rgba(176,42,42,.28), rgba(176,42,42,.1)); }
.mu-action--accent .mu-action__t { color: #ff9a8a; }

/* generic message / notice page (error template) */
.mu-message {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-bright);
}

.mu-message a { color: var(--gold); }
.mu-message a:hover { color: var(--gold-bright); text-decoration: underline; }
.mu-message b { color: var(--gold-bright); }

/* register / account form */
.mu-register { max-width: 560px; margin: 0 auto; }

.mu-form-intro {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim);
}

.mu-register .mu-field { margin-bottom: 16px; }

.mu-register .mu-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
}

.mu-field__hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-dim);
}

.mu-field input:invalid:not(:placeholder-shown) { border-color: var(--red); }

.mu-register .h-captcha { margin-top: 4px; }

.mu-register__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.mu-register__status { margin-bottom: 18px; }

.mu-status-line {
    margin: 0 0 8px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.5;
}

.mu-status-line.is-error {
    color: #ffd0d0;
    background: rgba(214, 70, 70, .12);
    border: 1px solid rgba(214, 70, 70, .4);
}

.mu-status-line.is-success {
    color: #cdeccf;
    background: rgba(74, 170, 90, .12);
    border: 1px solid rgba(74, 170, 90, .4);
}

.mu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    color: #fff !important;
    background: linear-gradient(180deg, var(--red), var(--red-deep));
    box-shadow: 0 4px 14px var(--red-glow);
    transition: transform .15s ease, box-shadow .15s ease;
}

.mu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--red-glow);
}

.mu-btn--ghost {
    color: var(--gold) !important;
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
}

.mu-btn--ghost:hover {
    color: var(--gold-bright) !important;
    border-color: var(--gold-deep);
    background: rgba(231, 182, 90, .06);
}

.mu-login__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12.5px;
}

.mu-login__meta a { color: var(--text-dim); }
.mu-login__meta a:hover { color: var(--gold); }

.mu-account__hi {
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--text);
}

.mu-account__hi b { color: var(--gold-bright); }

.mu-account__links {
    display: grid;
    gap: 9px;
}

/* ---------- events countdown panel ---------- */
.mu-events__list {
    display: flex;
    flex-direction: column;
}

.mu-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 4px;
    border-bottom: 1px dashed var(--border-soft);
}

.mu-event:last-child { border-bottom: none; }

.mu-event__name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--text-bright);
    font-weight: 500;
}

.mu-event__name::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-deep);
    box-shadow: 0 0 8px var(--gold-glow);
}

.mu-event__time {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold-bright);
    background: rgba(231, 182, 90, .08);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 9px;
    white-space: nowrap;
    min-width: 96px;
    text-align: center;
}

.mu-event__time.is-live {
    color: #0c0a12;
    background: var(--online);
    border-color: var(--online);
    animation: mu-blink 1.2s steps(2, start) infinite;
}

@keyframes mu-blink { 50% { opacity: .55; } }

/* vote / misc sidebar buttons */
.mu-vote {
    display: block;
    text-align: center;
}

.mu-vote img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* ============================================================
   HERO + NEWS (homepage)
   ============================================================ */
.mu-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 440px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 26px;
    background-color: #120a0a;
    background-position: center 22%;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: var(--shadow);
}

/* darkening overlay so the headline + buttons stay readable over the art */
.mu-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 8, 8, .55) 0%, rgba(12, 8, 8, .38) 42%, rgba(12, 8, 8, .9) 100%),
        radial-gradient(62% 70% at 50% 42%, rgba(12, 8, 8, .55), transparent 75%);
}

/* subtle inner glow / gold frame line */
.mu-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(216, 164, 65, .12), inset 0 -60px 80px rgba(12, 8, 8, .5);
}

.mu-hero__in {
    position: relative;
    z-index: 1;
    top: -18px;
    margin: 0 auto;
    padding: 44px 46px;
    max-width: 640px;
    text-align: center;
}

.mu-hero__kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(231, 182, 90, .06);
}

.mu-hero__title {
    margin: 0 0 14px;
    font-family: var(--font-head);
    font-size: 42px;
    line-height: 1.1;
    color: var(--text-bright);
    text-shadow: 0 2px 30px rgba(0, 0, 0, .6);
}

.mu-hero__title span { color: var(--red-bright); }

.mu-hero__text {
    margin: 0 0 24px;
    color: var(--text);
    font-size: 16px;
}

.mu-hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.mu-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 36px;
    border-radius: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 16px;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.mu-hero__btn:hover { transform: translateY(-2px); }

.mu-hero__btn--primary {
    color: #fff !important;
    background: linear-gradient(180deg, var(--red-bright), var(--red-deep));
    box-shadow: 0 8px 24px var(--red-glow);
}

.mu-hero__btn--primary:hover { box-shadow: 0 12px 30px var(--red-glow); filter: brightness(1.06); }

.mu-hero__btn--gold {
    color: #2a1d05 !important;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 8px 24px var(--gold-glow);
}

.mu-hero__btn--gold:hover { box-shadow: 0 12px 30px var(--gold-glow); filter: brightness(1.05); }

/* section heading */
.mu-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
}

.mu-section-head h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--text-bright);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.mu-section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* news cards */
.mu-news {
    display: grid;
    gap: 14px;
}

.mu-news__item {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .15s ease, transform .15s ease;
}

.mu-news__item:hover {
    border-color: var(--gold-deep);
    transform: translateY(-2px);
}

.mu-news__badge {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.mu-badge--notice { color: #79c0ff; background: rgba(56, 139, 253, .14); border: 1px solid rgba(56, 139, 253, .3); }
.mu-badge--update { color: #6fe79b; background: rgba(70, 210, 127, .12); border: 1px solid rgba(70, 210, 127, .3); }
.mu-badge--event { color: var(--gold-bright); background: rgba(231, 182, 90, .12); border: 1px solid var(--gold-deep); }

.mu-news__body { min-width: 0; }

.mu-news__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}

.mu-news__title a { color: var(--text-bright) !important; }
.mu-news__title a:hover { color: var(--gold-bright) !important; }

.mu-news__excerpt {
    margin: 0 0 10px;
    color: var(--text-dim);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mu-news__excerpt * { font-size: inherit !important; color: inherit !important; }

.mu-news__meta {
    font-size: 12.5px;
    color: var(--text-dim);
}

/* ---------- featured (expanded) first article ---------- */
.mu-news__feature {
    padding: 26px 28px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mu-news__feature-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mu-news__feature-title {
    margin: 0 0 16px;
    font-family: var(--font-head);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
}

.mu-news__feature-title a { color: var(--text-bright) !important; }
.mu-news__feature-title a:hover { color: var(--gold-bright) !important; }

/* admin-authored news HTML, made readable on the dark theme */
.mu-article {
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* override legacy reset.css `p,li,ul,ol{font-size:12px}` inside the article */
.mu-article p,
.mu-article li,
.mu-article ul,
.mu-article ol,
.mu-article td,
.mu-article th,
.mu-article span,
.mu-article font,
.mu-article strong,
.mu-article b {
    font-size: 16px;
}

.mu-article h1,
.mu-article h2 { font-size: 22px; }
.mu-article h3 { font-size: 19px; }

/* The body is arbitrary admin-authored HTML (often old white-bg tables and
   black <font> text). Neutralize it so it stays readable on the dark theme. */
.mu-article *,
.mu-article *::before,
.mu-article *::after {
    background-color: transparent !important;
    border-color: var(--border-soft) !important;
    max-width: 100%;
}

.mu-article,
.mu-article p,
.mu-article span,
.mu-article div,
.mu-article td,
.mu-article th,
.mu-article li,
.mu-article font,
.mu-article small {
    color: var(--text) !important;
}

.mu-article h1,
.mu-article h2,
.mu-article h3,
.mu-article h4,
.mu-article h5 { color: var(--gold-bright) !important; }

.mu-article td,
.mu-article th {
    border: 1px solid var(--border-soft) !important;
    padding: 8px 12px;
}

.mu-article p { margin: 0 0 16px; }
.mu-article a { color: var(--red-bright) !important; }
.mu-article a:hover { color: var(--gold-bright) !important; }
.mu-article strong, .mu-article b { color: var(--text-bright) !important; }

.mu-article h1,
.mu-article h2,
.mu-article h3,
.mu-article h4 {
    font-family: var(--font-head);
    color: var(--gold-bright);
    margin: 22px 0 12px;
    line-height: 1.3;
}

.mu-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.mu-article ul,
.mu-article ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.mu-article li { margin-bottom: 6px; }

.mu-article table {
    max-width: 100%;
    border-collapse: collapse;
}

.mu-article iframe { max-width: 100%; }

.mu-news__more {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    color: var(--red-bright) !important;
}

.mu-news__more:hover { color: var(--gold-bright) !important; }

/* ============================================================
   INNER PAGES (events, commands, castle siege, news article)
   ============================================================ */
.mu-page-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.mu-page-head h1 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mu-page-head h1 span { color: var(--gold-bright); font-weight: 600; }

/* content panel */
.mu-panel {
    padding: 24px 26px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* tab navigation (events / commands) */
.mu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.mu-tabs li { list-style: none; }

.mu-tabs a {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    color: var(--text) !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.mu-tabs a:hover {
    border-color: var(--gold-deep);
    color: var(--gold-bright) !important;
}

.mu-tabs a.on,
.mu-tabs a.active {
    background: linear-gradient(180deg, var(--red), var(--red-deep));
    border-color: var(--red-deep);
    color: #fff !important;
}

/* data tables */
.mu-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mu-table th,
.mu-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
    font-size: 14px;
    vertical-align: middle;
}

.mu-table thead th {
    background: rgba(216, 164, 65, .09);
    color: var(--gold-bright);
    font-family: var(--font-head);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mu-table tbody tr:last-child td { border-bottom: none; }
.mu-table tbody tr:hover { background: rgba(255, 255, 255, .025); }

/* key/value variant (castle siege info) */
.mu-table--kv td:first-child {
    width: 42%;
    color: var(--text-dim);
    font-weight: 500;
}

.mu-table--kv td:last-child { color: var(--text-bright); }

.mu-table a { color: var(--gold); }
.mu-table a:hover { color: var(--gold-bright); text-decoration: underline; }

/* prose / lore content — also themes the legacy .p_gfeat / .tb3 markup
   used by the events & commands sub-views so they don't need rewriting */
.mu-prose {
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* legacy reset.css sets `p,li,ul,ol{font-size:12px}` (element selector), which
   beats the container size — force a readable size on the text elements */
.mu-prose p,
.mu-prose li,
.mu-prose ul,
.mu-prose ol,
.mu-prose dd,
.mu-prose dt,
.mu-prose td,
.mu-prose th,
.mu-prose span,
.mu-prose font,
.mu-prose strong,
.mu-prose b,
.mu-prose a {
    font-size: 15.5px;
}

.mu-prose h1,
.mu-prose h2 { font-size: 21px; }
.mu-prose h3 { font-size: 18px; }
.mu-prose h4 { font-size: 16px; }

.mu-prose p { margin: 0 0 14px; }
.mu-prose strong,
.mu-prose b { color: var(--text-bright); }
.mu-prose a { color: var(--red-bright); }
.mu-prose a:hover { color: var(--gold-bright); }

.mu-prose h1,
.mu-prose h2,
.mu-prose h3,
.mu-prose h4 {
    font-family: var(--font-head);
    color: var(--gold-bright);
    margin: 22px 0 12px;
    line-height: 1.3;
}

.mu-prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.mu-prose ul,
.mu-prose ol { margin: 0 0 14px; padding-left: 22px; }
.mu-prose li { margin-bottom: 6px; }

/* neutralize legacy lore wrappers + style their tables for dark theme */
.mu-prose .p_gfeat { background: none; padding: 0; margin: 0; }

.mu-prose .tb3,
.mu-prose .tb3_in,
.mu-prose .tb3_end {
    background: none !important;
    background-image: none !important;
    border: none;
    width: auto;
    margin: 0 0 18px;
    padding: 0;
}

.mu-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 18px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.mu-prose th,
.mu-prose td {
    padding: 10px 13px;
    border: 1px solid var(--border-soft);
    text-align: left;
    color: var(--text);
}

.mu-prose thead th,
.mu-prose td[colspan] {
    background: rgba(216, 164, 65, .08);
    color: var(--gold-bright);
    font-weight: 600;
}

/* ---------- rankings / listing extras ---------- */
/* toolbar row: tabs on the left, search on the right */
.mu-rank-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 16px;
}

.mu-rank-tools .mu-tabs { margin: 0; }

.mu-search {
    display: flex;
    margin-left: auto;
}

.mu-search input {
    height: 38px;
    width: 160px;
    padding: 0 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 14px;
}

.mu-search input::placeholder { color: var(--text-dim); }
.mu-search input:focus { outline: none; }

.mu-search__btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--red-deep);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: linear-gradient(180deg, var(--red), var(--red-deep));
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mu-table tbody tr.is-found {
    background: rgba(216, 164, 65, .16);
    box-shadow: inset 3px 0 0 var(--gold);
}

/* character rankings: center every column except Name + Guild */
.mu-table--rankings th,
.mu-table--rankings td { text-align: center; }
.mu-table--rankings th:nth-child(2),
.mu-table--rankings td:nth-child(2),
.mu-table--rankings th:nth-child(3),
.mu-table--rankings td:nth-child(3) { text-align: left; }

.mu-table a { color: var(--gold); }
.mu-table a:hover { color: var(--gold-bright); text-decoration: underline; }

/* class avatar shown next to the character name */
.mu-table--rankings .rank-char {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.mu-table--rankings .class-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--bg-2);
    box-shadow: 0 0 0 1px var(--border);
    object-fit: cover;
}

/* class filter tabs rendered as round icons */
.mu-tabs--class { align-items: center; }
.mu-tabs--class .class-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    line-height: 0;
}
.mu-tabs--class .class-tab img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: block;
    transition: transform .15s ease;
}
.mu-tabs--class .class-tab:hover img { transform: scale(1.08); }
.mu-tabs--class .class-tab.on {
    background: linear-gradient(180deg, var(--red), var(--red-deep));
    border-color: var(--red-deep);
}

.mu-update-note {
    margin-top: 14px;
    text-align: right;
    font-size: 12.5px;
    color: var(--text-dim);
}

.mu-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid var(--red-deep);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-sm);
    background: rgba(210, 48, 41, .1);
    color: var(--text-bright);
    font-size: 14px;
}

/* pager — styles the legacy `.gfeat_tab2` output from helpers\pagination */
.gfeat_tab2 {
    height: auto !important;
    margin: 18px 0 0 !important;
}

.gfeat_tab2 ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.gfeat_tab2 li {
    display: inline-block !important;
    float: none !important;
    list-style: none;
}

.gfeat_tab2 li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

/* current page = <li> without .on */
.gfeat_tab2 li:not(.on) > span {
    background: linear-gradient(180deg, var(--red), var(--red-deep));
    border-color: var(--red-deep);
    color: #fff;
    font-weight: 700;
}

.gfeat_tab2 li.on > span a { color: var(--text) !important; display: block; }
.gfeat_tab2 li.on > span:hover { border-color: var(--gold-deep); }
.gfeat_tab2 li.on > span:hover a { color: var(--gold-bright) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.mu-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35));
    margin-top: 40px;
}

.mu-footer__vote {
    display: flex;
    justify-content: center;
    padding: 26px 0 0;
}

.mu-footer__vote .mu-vote img {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    opacity: .9;
    transition: opacity .15s ease, transform .15s ease;
}

.mu-footer__vote .mu-vote:hover img { opacity: 1; transform: translateY(-1px); }

.mu-footer__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 26px 0;
    font-size: 13px;
    color: var(--text-dim);
}

.mu-footer__brand {
    font-family: var(--font-head);
    color: var(--gold) !important;
    letter-spacing: 1px;
}

.mu-footer__gen { font-size: 12px; opacity: .7; }

/* ============================================================
   CHARACTER PROFILE PAGE
   ============================================================ */
.mu-char {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 26px;
}

/* identity (wide) + stats laid out horizontally */
.mu-char__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.mu-char__top > .mu-card { margin: 0; }

/* identity card: portrait on the left, details on the right */
.mu-char__id-body {
    display: flex;
    align-items: center;
    gap: 22px;
}

.mu-char__id-info { flex: 1; min-width: 0; }

/* identity card */
.mu-char__portrait {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
}

.mu-char__portrait img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-3);
    border: 2px solid var(--gold-deep);
    box-shadow: 0 0 0 4px rgba(231, 182, 90, .08), 0 8px 22px rgba(0, 0, 0, .5);
}

.mu-char__name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    color: var(--text-bright);
}

.mu-char__class {
    font-size: 13px;
    letter-spacing: .5px;
    color: var(--gold);
    margin: 2px 0 14px;
}

.mu-char__lvls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.mu-char__lvls span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    text-align: center;
    line-height: 1.15;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 6px;
}

.mu-char__lvl-k {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-dim);
}

.mu-char__lvls b { font-size: 19px; color: var(--gold-bright); font-family: var(--font-head); }

.mu-char__meta {
    list-style: none;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mu-char__meta li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.mu-char__meta-k {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.mu-char__meta-v {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-bright);
    text-align: right;
}

.mu-char__meta-v em { color: var(--text-dim); font-style: normal; font-size: 12.5px; }
.mu-char__guildmark { display: inline-flex; line-height: 0; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.mu-char__guildmark table { display: block; }

/* stats card */
.mu-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.mu-stats li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px dashed var(--border-soft);
}

.mu-stats li:last-child { border-bottom: none; }

.mu-stat-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
}

.mu-stat-ic svg { width: 18px; height: 18px; }
.mu-stat-ic--str svg { fill: #e3815f; }
.mu-stat-ic--agi svg {
    fill: none;
    stroke: #f0c84a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mu-stat-ic--vit svg { fill: #e3596f; }
.mu-stat-ic--ene svg { fill: #5ab2e0; }
.mu-stat-ic--cmd svg { fill: #c98be0; }

.mu-stat-k { flex: 1; font-size: 14px; color: var(--text); }
.mu-stats b { font-family: var(--font-head); font-size: 16px; color: var(--text-bright); }

/* equipment grid — fixed paper-doll positions (hidden slots leave a gap) */
.mu-char__gear .mu-card__body { padding: 26px 22px; }

.mu-equip {
    --slot: 150px;
    --slot-sm: 74px;
    display: grid;
    grid-template-columns: repeat(5, var(--slot));
    grid-auto-rows: var(--slot);
    gap: 16px;
    justify-content: center;
    grid-template-areas:
        ".      pet    helm   pend   wings"
        "weapon ring1  armor  ring2  shield"
        ".      gloves pants  boots  .";
}

.mu-area-pet { grid-area: pet; }
.mu-area-helm { grid-area: helm; }
.mu-area-pend { grid-area: pend; }
.mu-area-wings { grid-area: wings; }
.mu-area-weapon { grid-area: weapon; }
.mu-area-ring1 { grid-area: ring1; }
.mu-area-armor { grid-area: armor; }
.mu-area-ring2 { grid-area: ring2; }
.mu-area-shield { grid-area: shield; }
.mu-area-gloves { grid-area: gloves; }
.mu-area-pants { grid-area: pants; }
.mu-area-boots { grid-area: boots; }

.mu-slot {
    position: relative;
    width: var(--slot);
    height: var(--slot);
    place-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(231, 182, 90, .05), transparent 60%),
        linear-gradient(160deg, var(--bg-2), var(--bg-3));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 2px 6px rgba(0, 0, 0, .25);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mu-slot--sm { width: var(--slot-sm); height: var(--slot-sm); }

/* subtle inner frame ring */
.mu-slot::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: calc(var(--radius) - 5px);
    pointer-events: none;
}

/* empty slot hover: gentle highlight */
.mu-slot:hover { border-color: var(--border-soft); }

/* filled slot: gold frame + corner accents */
.mu-slot.is-filled {
    border-color: var(--gold-deep);
    box-shadow: inset 0 0 22px rgba(231, 182, 90, .1), 0 2px 8px rgba(0, 0, 0, .3);
}

.mu-slot.is-filled:hover {
    transform: translateY(-4px);
    border-color: var(--gold-bright);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 22px var(--gold-glow);
    z-index: 2;
}

.mu-slot__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    transition: transform .18s ease;
}

.mu-slot.is-filled:hover .mu-slot__item { transform: scale(1.08); }

/* override the inline pixel sizes from the legacy item markup so items fit the slot */
.mu-slot__item img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5));
}

.mu-slot__ph {
    width: 64px;
    height: 64px;
    opacity: .2;
    transition: opacity .18s ease;
}

.mu-slot:hover .mu-slot__ph { opacity: .32; }
.mu-slot--sm .mu-slot__ph { width: 46px; height: 46px; }
.mu-slot__ph svg { width: 100%; height: 100%; fill: var(--text-dim); }

.mu-slot__label {
    position: absolute;
    bottom: 7px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-dim);
    pointer-events: none;
}

/* filled slots: label hidden by default, revealed as a pill on hover */
.mu-slot.is-filled .mu-slot__label {
    opacity: 0;
    bottom: 8px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(10, 8, 18, .82);
    border: 1px solid var(--gold-deep);
    color: var(--gold-bright);
    transition: opacity .18s ease;
}

.mu-slot.is-filled:hover .mu-slot__label { opacity: 1; }

/* ---- modern item tooltip (overrides tooltipster default theme) ---- */
.tooltipster-base.tooltipster-default {
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.tooltipster-default .tooltipster-content {
    width: max-content;
    max-width: 400px;
    padding: 16px 20px;
    background: linear-gradient(180deg, #141019, #0d0a12);
    border: 1px solid var(--gold-deep);
    border-radius: var(--radius-sm);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .6), inset 0 0 22px rgba(231, 182, 90, .07);
    color: #c8c2d6;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

/* the legacy item markup centers itself and supplies its own <br> line breaks */
.tooltipster-default .tooltipster-content > div { font-size: 14px !important; }
.tooltipster-default .tooltipster-content font { line-height: 1.7; }

/* enlarge the item icon (pixel art kept crisp) */
.tooltipster-default .tooltipster-content img {
    zoom: 1.7;
    image-rendering: pixelated;
    margin-bottom: 6px;
}

/* the bold first line is the item name — make it pop */
.tooltipster-default .tooltipster-content span[style*="font-weight:bold"] {
    font-family: var(--font-head);
    font-size: 16px !important;
    letter-spacing: .3px;
}

/* differentiate the option categories by colour (legacy uses inline <font color>) */
.tooltipster-default .tooltipster-content font[color="#9aadd5" i] { color: #8fb6ff !important; } /* normal options / luck */
.tooltipster-default .tooltipster-content font[color="#8CB0EA" i] { color: #59d39a !important; } /* excellent options */
.tooltipster-default .tooltipster-content font[color="#F4CB33" i] { color: #f3c34a !important; } /* harmony */
.tooltipster-default .tooltipster-content font[color="gray" i]    { color: #7c768c !important; } /* serial / code */

/* ---- detail tabs: override the legacy gameguide/kabod styling ---- */
.mu-char__detail .tabs,
.mu-char__detail .gameguide_tab {
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    overflow: visible;
}

.mu-char__detail .tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    margin: 0 0 18px;
    padding: 0 0 14px;
    background: none;
    border-bottom: 1px solid var(--border);
}

.mu-char__detail .tab-list li {
    float: none;
    list-style: none;
    padding: 0;
    background: none;
}

.mu-char__detail .tab-list li a,
.mu-char__detail .gameguide_tab li a {
    display: inline-block;
    height: auto;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.mu-char__detail .tab-list li a:hover,
.mu-char__detail .gameguide_tab li a:hover {
    border-color: var(--gold-deep);
    color: var(--gold-bright);
    background: var(--bg-2);
}

.mu-char__detail .tab-list li.active a,
.mu-char__detail .gameguide_tab li a.on {
    background: linear-gradient(180deg, var(--red), var(--red-deep));
    border-color: var(--red-deep);
    color: #fff;
}

.mu-char__detail .tab-panel {
    background: none;
    color: var(--text);
    min-height: 0;
    overflow: visible;
}

.mu-char__detail .tab-panel table {
    width: 100%;
    max-width: 560px;
    margin: 4px auto !important;
    border-collapse: collapse;
}

.mu-char__detail .tab-panel td {
    padding: 11px 12px;
    border-bottom: 1px dashed var(--border-soft);
    color: var(--text-bright);
    font-size: 14px;
}

.mu-char__detail .tab-panel tr td:first-child:not(:last-child) {
    color: var(--text-dim);
    font-weight: 500;
    text-align: left !important;
}

.mu-char__detail .tab-panel tr:last-child td { border-bottom: none; }
.mu-char__detail .tab-panel a { color: var(--gold); }
.mu-char__detail .tab-panel a:hover { color: var(--gold-bright); }

/* keep the evolution charts fluid */
.mu-char__detail .tab-panel > div[id^="evol"] { max-width: 100%; overflow-x: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .mu-discord__label { display: none; }
    .mu-discord { padding: 0 11px; }
}

@media (max-width: 900px) {
    .mu-burger { display: inline-flex; }

    .mu-char__top { grid-template-columns: 1fr; }
    .mu-char__id-body { flex-direction: column; text-align: center; }
    .mu-char__id-info { width: 100%; }
    .mu-char__meta li { justify-content: center; }
    .mu-equip { --slot: 104px; --slot-sm: 56px; gap: 10px; }

    .mu-nav {
        position: fixed;
        inset: 68px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 10px;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        transform: translateY(-120%);
        transition: transform .25s ease;
    }

    .mu-nav.is-open { transform: translateY(0); }

    .mu-nav__item--has > .mu-nav__link::after { float: right; }

    .mu-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 2px 0 4px;
        box-shadow: none;
        background: var(--bg);
        display: none;
    }

    .mu-nav__item--has.is-expanded .mu-dropdown { display: block; }

    .mu-hero { min-height: 380px; }
    .mu-hero__in { padding: 36px 24px; max-width: none; }
    .mu-hero__title { font-size: 32px; }
}

@media (max-width: 560px) {
    .mu-equip { --slot: 62px; --slot-sm: 40px; gap: 7px; }
    .mu-char__detail .mu-card__body { overflow-x: auto; }
    .mu-header__bar { height: 60px; gap: 10px; }
    .mu-logo { font-size: 18px; }
    .mu-download { display: none; }
    .mu-nav { inset-block-start: 60px; }
    .mu-statsbar__in { gap: 6px 18px; }
    .mu-stat--status { width: 100%; margin-right: 0; }
    .mu-hero { min-height: 340px; }
    .mu-hero__title { font-size: 26px; }
    .mu-hero__in { padding: 26px 18px; }
    /* stronger overlay so centered text stays readable on the narrower art */
    .mu-hero::before {
        background:
            linear-gradient(180deg, rgba(12, 8, 8, .68), rgba(12, 8, 8, .55) 45%, rgba(12, 8, 8, .92)),
            radial-gradient(80% 70% at 50% 45%, rgba(12, 8, 8, .55), transparent 80%);
    }
    .mu-hero__cta { width: 100%; }
    .mu-hero__btn { flex: 1 1 100%; height: 52px; font-size: 15px; padding: 0 20px; }
    .mu-news__item { flex-direction: column; gap: 10px; }
    .mu-news__feature { padding: 20px; }
    .mu-news__feature-title { font-size: 21px; }
}
