/*
 * MuFiesta theme — classic 2011 light-body MU Online template.
 *
 * Layout: dark blue header, dark grey nav, light body with 3-column
 * sidebar structure, dark footer. Fixed 1007px centre column.
 * Designed to overlay the base MYKD CSS stack.
 */

/* ── variables ── */
:root {
    --mf-header-bg: url('img/header-mufiesta-v2.jpg');
    --mf-nav-bg: #3a3a3a;
    --mf-panel-bg: #f5f5f5;
    --mf-body-outer: #0a1628;
    --mf-body-pattern: url('img/bg.jpg');
    --mf-title-bg: url('img/left_title.png');
    --mf-link: #006d9a;
    --mf-value: #4682b4;
    --mf-row-even: #e8e8e8;
    --mf-row-odd: #dcdcdc;
    --mf-text: #2f2f2f;
    --mf-text-light: #606060;
    --mf-white: #fff;
    --mf-footer-bg: url('img/background-down.jpg');
    --mf-wrap: 1140px;
    --mf-side: 230px;
    --mf-gap: 12px;
}

/* ── reset MYKD dark defaults ── */
body.mf-body {
    background: var(--mf-body-outer) var(--mf-body-pattern) repeat;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 12px;
    color: var(--mf-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Breadcrumb handled per-context: hidden in sidebars, restyled in .mf-center */
.mf-side .breadcrumb-area,
.mf-side .breadcrumb__wrapper {
    display: none;
}

.mf-wrap {
    max-width: var(--mf-wrap);
    margin: 0 auto;
    padding: 0;
}

/* ── header + navigation (redesign 2026-11-01) ── */
/* Header */
.mf-header,
.mf-header *,
.mf-nav,
.mf-nav * {
    box-sizing: border-box;
}

.mf-header {
    position: relative;
    z-index: 20;
    isolation: isolate;
    width: 100%;
    max-width: var(--mf-wrap, 1140px);
    height: 222px;
    margin: 0 auto;
    overflow: visible; /* Header dropdowns must escape the banner. */
    border-radius: 8px 8px 0 0;
    font-family: Tahoma, Geneva, sans-serif;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .65);
}

.mf-header__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.2s ease;
}

.mf-header__slide.is-on {
    z-index: 1;
    opacity: 1;
}

.mf-header__overlay {
    position: relative;
    z-index: 2;
    height: 100%;
}

.mf-header__inner {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 14px 15px 0;
}

/* Utility row */
.mf-header__tools {
    position: relative;
    z-index: 5;
    order: 1;
    min-width: 0;
}

.mf-header__tools-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mf-header__tools .mf-pick {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.mf-header__tools .mf-pick__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid rgba(180, 204, 224, .3);
    border-radius: 4px;
    background: rgba(12, 25, 40, .88);
    color: #edf3f8;
    font: 11px/16px Tahoma, Geneva, sans-serif;
    text-transform: none;
    text-shadow: 0 1px 1px #000;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.mf-header__tools .mf-pick__btn:hover,
.mf-header__tools .mf-pick__btn[aria-expanded="true"] {
    background: #203b53;
    border-color: #7299b8;
}

.mf-header__tools .mf-pick__btn i {
    flex-shrink: 0;
}

.mf-header__tools .mf-pick__menu {
    display: none;
    position: absolute;
    z-index: 10;
    top: calc(100% + 5px);
    right: 0;
    left: auto;
    min-width: 164px;
    width: max-content;
    max-width: min(260px, calc(100vw - 32px));
    max-height: min(320px, 60vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 4px;
    border: 1px solid #49647c;
    border-radius: 5px;
    background: #f3f6f8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.mf-header__tools .mf-pick__menu.is-open {
    display: block;
}

.mf-header__tools .mf-pick__menu form {
    margin: 0;
}

.mf-header__tools .mf-pick__menu a,
.mf-header__tools .mf-pick__menu button {
    display: block;
    width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 7px 9px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #293b4b;
    font: 11px/16px Tahoma, Geneva, sans-serif;
    text-align: left;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.mf-header__tools .mf-pick__menu a:hover,
.mf-header__tools .mf-pick__menu button:hover {
    background: #dfe9f1;
    color: #006d9a;
}

.mf-header__tools .mf-pick__menu .is-on {
    background: #e5edf3;
    color: #006d9a;
    font-weight: bold;
    box-shadow: inset 2px 0 #4682b4;
}

.mf-header__social {
    position: relative;
    z-index: 4;
    order: 2;
    display: flex;
    gap: 6px;
    padding: 0;
}

.mf-header__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(180, 204, 224, .3);
    border-radius: 4px;
    background: rgba(12, 25, 40, .88);
    color: #edf3f8;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    opacity: 1;
    transition: background-color .15s, border-color .15s;
}

.mf-header__social a:hover {
    background: #203b53;
    border-color: #7299b8;
    color: #fff;
}

/* Login: 176px artwork + 24px padding + 2px border */
.mf-header__login {
    position: absolute;
    z-index: 3;
    top: 56px;
    right: 15px;
    width: 202px;
    padding: 10px 12px;
    border: 1px solid rgba(167, 197, 221, .32);
    border-radius: 6px;
    background: rgba(8, 21, 36, .9);
    color: #edf3f8;
    font-size: 11px;
    line-height: 1.3;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .06),
        0 5px 14px rgba(0, 0, 0, .25);
}

.mf-login {
    margin: 0;
}

.mf-login__row {
    margin: 0 0 6px;
}

.mf-login__row label {
    display: block;
    margin: 0 0 2px;
    color: #e4edf5;
    font: 11px/13px Tahoma, Geneva, sans-serif;
}

.mf-login__field {
    width: 176px;
    height: 19px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url('img/username.png') left top / 176px 19px no-repeat;
}

.mf-login__field--user {
    background-image: url('img/username.png');
}

.mf-login__field--pass {
    background-image: url('img/password.png');
}

.mf-login__field input {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 19px;
    min-height: 0;
    margin: 0;
    padding: 1px 5px 1px 21px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #111;
    font: 11px/17px Tahoma, Geneva, sans-serif;
    box-shadow: none;
}

.mf-login__field input::placeholder {
    color: #666;
}

.mf-login__field:focus-within {
    outline: 2px solid #8fc7ef;
    outline-offset: 2px;
}

.mf-login__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
}

.mf-login__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid #6995b8;
    border-radius: 4px;
    background: linear-gradient(#376d96, #274f70);
    color: #fff;
    font: bold 11px/16px Tahoma, Geneva, sans-serif;
    text-transform: none;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
    box-shadow: inset 0 1px rgba(255, 255, 255, .12);
    cursor: pointer;
}

.mf-login__actions button:hover {
    background: linear-gradient(#417da9, #305e82);
    color: #fff;
    text-decoration: none;
}

.mf-login__actions button:active {
    background: #274f70;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25);
}

.mf-login__actions a,
.mf-login__forgot a,
.mf-acct__links a {
    color: #c0ddf1;
    font: 11px/14px Tahoma, Geneva, sans-serif;
    text-decoration: none;
    text-shadow: 0 1px 1px #000;
}

.mf-login__actions a:hover,
.mf-login__forgot a:hover,
.mf-acct__links a:hover {
    color: #fff;
    text-decoration: underline;
}

.mf-login__forgot {
    margin-top: 6px;
    line-height: 14px;
}

/* Logged-in account uses the same panel */
.mf-acct {
    color: #edf3f8;
    font: 11px/1.6 Tahoma, Geneva, sans-serif;
    overflow-wrap: anywhere;
}

.mf-acct__greeting {
    display: block;
    color: #bdcbd8;
    font-size: 10px;
}

.mf-acct__name {
    font-size: 12px;
    font-weight: bold;
}

.mf-acct__balance {
    display: block;
    margin-top: 6px;
}

.mf-acct__balance span {
    display: inline-block;
    margin-right: 8px;
    font-size: 10px;
}

.mf-acct__balance b {
    color: #a3cff0;
}

.mf-acct__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
}

/* Navigation: 38px total, including the accent border */
.mf-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--mf-wrap, 1140px);
    height: 38px;
    margin: 0 auto;
    border-top: 2px solid var(--mf-nav-accent, #4682b4);
    background: linear-gradient(#414141, #343434);
    box-shadow:
        inset 0 -1px rgba(0, 0, 0, .4),
        0 6px 12px -8px rgba(0, 0, 0, .65);
}

.mf-nav .mf-wrap {
    width: 100%;
}

.mf-nav__toggle {
    display: none;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 20px;
    cursor: pointer;
}

.mf-nav__links {
    display: flex;
    align-items: stretch;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    list-style: none;
}

.mf-nav__links li {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.mf-nav__links li a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    color: #e9e9e9;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 14px;
    font-weight: bold;
    font-variant: small-caps;
    line-height: 18px;
    text-transform: none;
    text-shadow: 0 1px 1px #111;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}

.mf-nav__links li a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}

.mf-nav__links li.is-on a {
    background: rgba(70, 130, 180, .18);
    color: #c2e2fa;
    box-shadow: inset 0 -3px #77aed7;
}

.mf-nav__sep {
    align-self: center;
    flex-shrink: 0;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, .14);
}

/* Visible keyboard focus; inputs use the field outline above. */
.mf-header a:focus-visible,
.mf-header button:focus-visible,
.mf-nav a:focus-visible,
.mf-nav button:focus-visible {
    outline: 2px solid #8fc7ef;
    outline-offset: 2px;
}

.mf-header__tools .mf-pick__menu a:focus-visible,
.mf-header__tools .mf-pick__menu button:focus-visible,
.mf-nav__links li a:focus-visible {
    outline-offset: -3px;
}

/* Existing theme breakpoint; preserve the current toggle script. */


.mf-toolbar {
    max-width: var(--mf-wrap);
    margin: 0 auto;
    background: rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 4px 0;
}

.mf-toolbar__inner {
    display: flex;
    gap: 12px;
    padding: 0 10px;
}

.mf-pick {
    position: relative;
}

.mf-pick__btn {
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--mf-text);
    font-family: Tahoma, sans-serif;
    font-size: 11px;
    padding: 3px 10px;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mf-pick__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--mf-white);
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 140px;
    padding: 4px 0;
}

.mf-pick__menu.is-open {
    display: block;
}

.mf-pick__menu a,
.mf-pick__menu button {
    display: block;
    width: 100%;
    padding: 5px 12px;
    font-size: 11px;
    font-family: Tahoma, sans-serif;
    color: var(--mf-text);
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.mf-pick__menu a:hover,
.mf-pick__menu button:hover {
    background: var(--mf-row-even);
}

.mf-pick__menu .is-on {
    font-weight: bold;
    color: var(--mf-value);
}

/* ── body / three-column shell ── */
.mf-body-bg {
    /* original frame art is 1007px wide; scale it to the wrap so the edge never tiles as a seam */
    background: var(--mf-panel-bg) url('img/background.jpg') repeat-y center top / 100% auto;
    max-width: var(--mf-wrap);
    margin: 0 auto;
    min-height: 400px;
    overflow: hidden;
    padding: 12px 0;
}

.mf-shell {
    display: flex;
    gap: var(--mf-gap);
    padding: 0 6px;
}

.mf-side {
    width: var(--mf-side);
    flex-shrink: 0;
}

.mf-center {
    flex: 1;
    min-width: 0;
}

/* ── block (section container) ── */
.mf-block {
    margin-bottom: 12px;
}

.mf-block__title {
    background: var(--mf-nav-bg) url('img/left_title.png') no-repeat center;
    background-size: cover;
    color: var(--mf-white);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-variant: small-caps;
    font-weight: bold;
    padding: 8px 10px;
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.mf-block__body {
    background: var(--mf-white);
    padding: 8px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.mf-block__body--flush {
    padding: 0;
}

.mf-block__body--flush .mf-tbl {
    margin: 0;
}

/* Sidebar blocks sit directly on the frame art like the original (no white box) */
.mf-side .mf-block__body {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2px 0 10px;
    overflow-x: hidden;
}

/* Sidebar tables: tighter fit for narrow 230px columns */
.mf-side .mf-tbl {
    font-size: 10px;
}

.mf-side .mf-tbl th,
.mf-side .mf-tbl td {
    padding: 2px 4px;
}

.mf-side .mf-tbl__v {
    white-space: normal;
    word-break: break-word;
}

.mf-side .mf-tbl__n {
    width: 22px;
}

.mf-block__more {
    text-align: right;
    padding-top: 6px;
    font-size: 11px;
}

.mf-block__more a {
    color: var(--mf-link);
    text-decoration: none;
}

.mf-block__more a:hover {
    text-decoration: underline;
}

/* ── tables ── */
.mf-tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1px;
    font-size: 11px;
    color: var(--mf-text);
    display: table;
}

/* Original look: cells separated by 1px gaps, "#" column darker, everything centred, no stripes */
.mf-tbl th,
.mf-tbl td {
    background: var(--mf-row-even);
    padding: 3px 6px;
    height: 20px;
    text-align: center;
    vertical-align: middle;
}

.mf-tbl th {
    font-weight: bold;
    font-size: 11px;
}

.mf-tbl__n {
    width: 28px;
    background: var(--mf-row-odd) !important;
    font-weight: bold;
}

.mf-tbl__v {
    color: var(--mf-value);
    font-weight: bold;
    white-space: nowrap;
}

/* Key/value tables (server info, statistics): key left with the original "»", value right */
.mf-tbl--kv td.mf-tbl__k {
    width: 45%;
    text-align: left;
    padding-left: 8px;
}

.mf-tbl--kv td.mf-tbl__k::before {
    content: "\00bb\00a0 ";
    color: #999;
}

.mf-tbl--kv td.mf-tbl__v {
    text-align: right;
    padding-right: 8px;
}

.mf-tbl--wide {
    width: 100%;
}

.mf-tbl a {
    color: var(--mf-link);
    text-decoration: none;
}

.mf-tbl a:hover {
    text-decoration: underline;
}

/* ── news cells ── */
.mf-news__date {
    width: 75px;
    color: var(--mf-text-light);
    font-size: 10px;
    white-space: nowrap;
}

.mf-tbl .mf-news__title {
    text-align: left;
    padding-left: 10px;
}

.mf-news__title a {
    font-weight: bold;
}

/* ── server status widget ── */
.mf-serv__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c00;
    vertical-align: middle;
    margin-right: 4px;
}

.mf-serv__dot.is-up {
    background: #0a0;
}

.mf-serv__bar {
    height: 6px;
    background: var(--mf-row-even);
    border-radius: 3px;
    margin: 6px 0 4px;
    overflow: hidden;
}

.mf-serv__bar span {
    display: block;
    height: 100%;
    background: var(--mf-value);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.mf-serv__online {
    font-size: 10px;
    color: var(--mf-text-light);
    text-align: center;
}

.mf-serv__count {
    font-weight: bold;
    color: var(--mf-value);
}

/* ── purse (currency balances in sidebar) ── */
.mf-purse {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.mf-purse__row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 11px;
}

.mf-purse__val {
    font-weight: bold;
    color: var(--mf-value);
}

/* ── link lists ── */
.mf-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mf-links li {
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mf-links li:last-child {
    border-bottom: none;
}

.mf-links a {
    color: var(--mf-link);
    text-decoration: none;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mf-links a:hover {
    text-decoration: underline;
}

.mf-links a i {
    width: 16px;
    text-align: center;
    color: var(--mf-text-light);
    font-size: 12px;
}

/* ── social buttons ── */
.mf-social-btn {
    display: block;
    padding: 6px 10px;
    margin-bottom: 4px;
    background: var(--mf-row-even);
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--mf-text);
    text-decoration: none;
    font-size: 11px;
    text-align: center;
    transition: background 0.2s;
}

.mf-social-btn:hover {
    background: var(--mf-row-odd);
    text-decoration: none;
    color: var(--mf-text);
}

.mf-social-btn i {
    margin-right: 4px;
}

/* ── flash messages ── */
.mf-flash {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 12px;
}

.mf-flash--ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mf-flash--bad {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mf-flash--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ── empty state ── */
.mf-empty {
    color: var(--mf-text-light);
    text-align: center;
    padding: 16px;
    font-size: 12px;
}

/* ── footer ── */
.mf-footer {
    background: #333 url('img/background-down.jpg') no-repeat center;
    background-size: cover;
    max-width: var(--mf-wrap);
    margin: 0 auto;
    padding: 16px 0;
    color: var(--mf-white);
    font-size: 11px;
    text-align: center;
}

.mf-footer__inner {
    padding: 0 15px;
}

.mf-footer__links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.mf-footer__links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 11px;
}

.mf-footer__links a:hover {
    color: var(--mf-white);
}

.mf-footer__copy {
    color: rgba(255,255,255,0.6);
    margin: 4px 0;
    font-size: 11px;
}

.mf-footer__by {
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    margin: 2px 0 0;
}

.mf-footer__by a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.mf-footer__by a:hover {
    color: var(--mf-white);
}

/* ==========================================================================
   MYKD dark-theme overrides — flip to light inside the content area.
   MYKD main.css + mustack-custom.css use CSS custom properties for
   foreground, background, and border colours with dark-theme defaults.
   Re-declaring them on .mf-center flips every inherited component to light
   without per-class overrides.
   ========================================================================== */

.mf-center {
    /* MuStack utility vars (used with fallback values in components) */
    --ms-fg-0: #2f2f2f;
    --ms-fg-1: rgba(0,0,0,0.75);
    --ms-fg-2: rgba(0,0,0,0.5);
    --ms-fg-3: rgba(0,0,0,0.35);
    --ms-fg-4: rgba(0,0,0,0.12);
    --ms-bg-0: #fff;
    --ms-bg-1: rgba(0,0,0,0.025);
    --ms-bg-2: rgba(0,0,0,0.04);
    --ms-bg-3: rgba(0,0,0,0.06);
    --ms-bd-1: rgba(0,0,0,0.1);
    --ms-bd-2: rgba(0,0,0,0.15);
    --ms-shade-2: rgba(0,0,0,0.08);

    /* MYKD theme vars — override dark → light */
    --tg-body-color: #2f2f2f;
    --tg-heading-color: #2f2f2f;
    --tg-common-color-black: #f5f5f5;
    --tg-common-color-black-2: #efefef;
    --tg-common-color-black-3: #f5f5f5;
    --tg-common-color-black-4: #f5f5f5;
    --tg-common-color-black-5: #f5f5f5;
    --tg-common-color-white: #2f2f2f;
    --tg-common-color-gray: #e8e8e8;
    --tg-border-1: #ddd;
    --tg-border-2: #ddd;
    --tg-border-3: #ccc;
    --tg-border-4: #ccc;
    --tg-border-5: #ddd;

    /* Bootstrap 5 table vars */
    --bs-table-bg: var(--mf-white);
    --bs-table-color: var(--mf-text);
    --bs-table-striped-bg: var(--mf-row-odd);
    --bs-table-striped-color: var(--mf-text);
    --bs-table-hover-bg: var(--mf-row-even);
    --bs-table-hover-color: var(--mf-text);
    --bs-table-border-color: #e0e0e0;

    overflow-x: clip;
}

/* Body-level overrides */
.mf-body {
    background-color: transparent !important;
}

.mf-body a {
    color: var(--mf-link);
}

.mf-body a:hover {
    color: #004a70;
}

.mf-body h1, .mf-body h2, .mf-body h3,
.mf-body h4, .mf-body h5, .mf-body h6 {
    color: var(--mf-text);
}

.mf-body .text-muted {
    color: var(--mf-text-light) !important;
}

/* ==========================================================================
   Inherited pages — layout and content overrides.
   Default-theme pages use full-width Bootstrap containers, breadcrumb
   banners, and multi-column grids designed for ~1200px. The ~650px
   centre column needs them flattened.
   ========================================================================== */

/* 1. Bootstrap containers: no width cap, no gutters */
.mf-center .container,
.mf-center .container-fluid,
.mf-center .container-lg,
.mf-center .container-xl,
.mf-center .custom-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 2. Overflow protection — targeted, NOT on * (which breaks icons/buttons) */
.mf-center img,
.mf-center svg,
.mf-center iframe,
.mf-center video,
.mf-center table,
.mf-center pre {
    max-width: 100%;
}

.mf-center img,
.mf-center video {
    height: auto;
}

/* 3. Breadcrumb header: strip landing-page banner, show title as mf-block bar */
.mf-center .breadcrumb-area {
    display: block !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
    background: none !important;
    background-image: none !important;
    border: 0 !important;
    min-height: 0 !important;
}

.mf-center .breadcrumb-area::before,
.mf-center .breadcrumb-area::after {
    display: none !important;
}

.mf-center .breadcrumb__wrapper {
    display: block !important;
    padding: 0 !important;
}

.mf-center .breadcrumb__content {
    text-align: left;
    padding: 0 !important;
}

.mf-center .breadcrumb__content .title {
    background: var(--mf-nav-bg) url('img/left_title.png') no-repeat center;
    background-size: cover;
    color: var(--mf-white) !important;
    font-family: Arial, sans-serif;
    font-size: 11px !important;
    font-variant: small-caps;
    font-weight: bold;
    padding: 8px 10px !important;
    border-radius: 4px 4px 0 0;
    margin: 0 !important;
    text-shadow: none !important;
    letter-spacing: 0.05em;
}

.mf-center .breadcrumb__content .title::after {
    display: none;
}

.mf-center .breadcrumb__content nav[aria-label],
.mf-center .breadcrumb {
    display: none !important;
}

/* 4. Section backgrounds: strip dark backgrounds */
.mf-center section,
.mf-center .area-bg,
.mf-center .area-bg-one,
.mf-center .nft-item__area {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* 5. Section padding: strip the 80px landing-page rhythm */
.mf-center > section,
.mf-center section[style*="padding"] {
    padding: 4px 0 8px !important;
}

.mf-center .breadcrumb-area + section {
    padding-top: 0 !important;
}

.mf-center .mb-50 { margin-bottom: 12px !important; }

/* 6. Multi-column grids stack vertically */
.mf-center .row {
    --bs-gutter-x: 10px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mf-center .row > [class*="col-"],
.mf-center .row > .col {
    flex: 0 0 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 10px;
}

/* 7. Tables: light styling, horizontal scroll for wide ones */
.mf-center .table,
.mf-center .mustack-table {
    color: var(--mf-text);
    width: 100%;
}

.mf-center .table-responsive,
.mf-center .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mf-center .table thead th,
.mf-center .mustack-table thead th {
    background: var(--mf-row-odd) !important;
    color: var(--mf-text) !important;
    border-color: #ccc !important;
}

.mf-center .table td,
.mf-center .mustack-table td {
    border-color: #e0e0e0 !important;
    color: var(--mf-text);
}

.mf-center .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--mf-row-odd);
}

.mf-center .table-striped tbody tr:nth-of-type(even) {
    background-color: var(--mf-row-even);
}

/* 8. Long strings break instead of pushing out */
.mf-center p,
.mf-center li,
.mf-center td,
.mf-center a {
    overflow-wrap: anywhere;
}

/* 9. Flex rows wrap */
.mf-center .d-flex {
    flex-wrap: wrap;
}

/* 10. Cards and panels: light background */
.mf-center .mustack-card,
.mf-center .card {
    background: var(--mf-white) !important;
    border: 1px solid #ddd !important;
    color: var(--mf-text) !important;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mf-center .mustack-card .card-body,
.mf-center .card .card-body {
    color: var(--mf-text);
    padding: 12px;
}

.mf-center .card-header {
    background: var(--mf-row-odd) !important;
    color: var(--mf-text) !important;
    border-bottom: 1px solid #ddd;
}

.mf-center .mustack-card-header {
    color: var(--mf-value) !important;
    border-bottom-color: #ddd !important;
}

/* 11. Ranking cards: light for narrow column */
.mf-center .rk-menu {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

.mf-center .rk-card {
    background: var(--mf-white) !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    color: var(--mf-text) !important;
}

.mf-center .rk-card:hover {
    border-color: var(--mf-value) !important;
    background: #f0f7fb !important;
    color: var(--mf-text) !important;
}

.mf-center .rk-card-title {
    color: var(--mf-text) !important;
    font-size: 13px !important;
    margin: 0 0 2px !important;
}

.mf-center .rk-card-desc {
    color: var(--mf-text-light) !important;
    font-size: 11px !important;
}

.mf-center .rk-card-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
}

/* 12. Section titles inside inherited pages */
.mf-center .section__title {
    margin-bottom: 10px !important;
}

.mf-center .section__title .title {
    font-size: 14px !important;
    color: var(--mf-text) !important;
    letter-spacing: 0.03em;
}

.mf-center .section__title .title::after {
    display: none;
}

/* 13. Forms */
.mf-center .singUp-wrap,
.mf-center .form-wrap,
.mf-center .account__form {
    background: var(--mf-white) !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px !important;
    margin: 0 !important;
}

.mf-center .singUp-wrap .title,
.mf-center .form-wrap .title {
    color: var(--mf-text) !important;
    font-size: 15px !important;
}

.mf-center .form-grp input,
.mf-center .form-grp select,
.mf-center .form-grp textarea,
.mf-center .form-control {
    background: var(--mf-white) !important;
    color: var(--mf-text) !important;
    border: 1px solid #ccc !important;
    border-radius: 3px;
}

.mf-center .form-select {
    background-color: var(--mf-white) !important;
    color: var(--mf-text) !important;
    border: 1px solid #ccc !important;
    border-radius: 3px;
}

.mf-center .form-grp label,
.mf-center label {
    color: var(--mf-text);
}

/* 14. Buttons */
.mf-center .btn-two,
.mf-center .arrow-btn,
.mf-center .btn-primary {
    background: var(--mf-value) !important;
    border-color: var(--mf-value) !important;
    color: var(--mf-white) !important;
}

.mf-center .btn-two:hover,
.mf-center .arrow-btn:hover,
.mf-center .btn-primary:hover {
    background: #3a6f99 !important;
    border-color: #3a6f99 !important;
}

/* 15. Pagination */
.mf-center .pagination .page-link {
    background: var(--mf-white);
    color: var(--mf-link);
    border-color: #ddd;
}

.mf-center .pagination .page-item.active .page-link {
    background: var(--mf-value);
    border-color: var(--mf-value);
    color: var(--mf-white);
}

/* 16. Tab nav inside pages */
.mf-center .nav-tabs,
.mf-center .nav-pills {
    flex-wrap: wrap;
}

.mf-center .nav-tabs .nav-link {
    color: var(--mf-text);
    font-size: 12px;
    padding: 6px 10px;
}

.mf-center .nav-tabs .nav-link.active {
    background: var(--mf-white);
    border-color: #ddd #ddd var(--mf-white);
    color: var(--mf-value);
    font-weight: bold;
}

/* 17. Item tooltip stays usable in narrow column */
.mf-center .item-tooltip {
    max-width: 100%;
    font-size: 11px;
}

/* 18. Streamer offer block: stack in narrow column */
.mf-center .stb--offer {
    padding: 12px 0 16px !important;
}

.mf-center .stc {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100% !important;
}

.mf-center .stc-item {
    grid-template-columns: 1fr !important;
    justify-items: center;
}

.mf-center .stc-art {
    width: 140px !important;
}

.mf-center .stc-item .stc-tip {
    margin: -24px 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    font-size: 0.82rem !important;
    padding: 16px 14px !important;
}

.mf-center .stc-title {
    font-size: 1.2rem !important;
}

.mf-center .stc-lead {
    font-size: 0.85rem !important;
}

.mf-center .stc-btn {
    color: var(--mf-white) !important;
}

.mf-center .stc-btn:hover {
    color: var(--mf-white) !important;
}

.mf-center .stc-link {
    color: var(--mf-text) !important;
    text-decoration-color: rgba(0,0,0,0.2) !important;
}

.mf-center .stc-link:hover {
    color: var(--mf-value) !important;
}

/* 19. Stat boxes: light */
.mf-center .mustack-stat-box {
    background: var(--mf-white) !important;
    border-color: #ddd !important;
}

.mf-center .mustack-stat-box .odometer {
    color: var(--mf-text) !important;
}

.mf-center .mustack-stat-box .stat-label {
    color: var(--mf-text-light) !important;
}

/* 20. Medals stay visible */
.mf-center .medal-default {
    background: var(--mf-row-even) !important;
    border-color: #ccc !important;
}

/* 21. Character cards/rows: light */
.mf-center .char-card,
.mf-center .char-row-panel {
    background: var(--mf-white) !important;
    border-color: #ddd !important;
}

.mf-center .char-card-name,
.mf-center .char-row-name {
    color: var(--mf-value) !important;
}

.mf-center .char-card-stat-val,
.mf-center .char-row-stat-val {
    color: var(--mf-text) !important;
}

/* 22. News preview */
.mf-center .news-preview {
    color: var(--mf-text-light) !important;
}

/* 23. Badges */
.mf-center .badge-secondary {
    background: var(--mf-row-even) !important;
    color: var(--mf-text-light) !important;
}

/* ── responsive ── */
@media (max-width: 1040px) {
    .mf-header,
    .mf-nav,
    .mf-toolbar,
    .mf-body-bg,
    .mf-footer {
        max-width: 100%;
    }
}

@media (max-width: 860px) {
    .mf-shell {
        flex-direction: column;
    }

    .mf-side {
        width: 100%;
    }

    .mf-side--right {
        order: 3;
    }

    .mf-center {
        order: 1;
    }

    .mf-side--left {
        order: 2;
    }

    .mf-header {
        height: auto;
        min-height: 222px;
    }

    .mf-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        align-content: start;
        gap: 10px;
        height: auto;
        min-height: 222px;
        padding: 12px;
    }

    .mf-header__tools-inner {
        flex-wrap: wrap;
    }

    .mf-header__tools .mf-pick__menu {
        right: auto;
        left: 0;
        max-width: min(260px, calc(100vw - 32px));
    }

    .mf-header__social {
        position: static;
        padding: 0;
        justify-content: flex-end;
    }

    .mf-header__login {
        position: static;
        order: 3;
        grid-column: 1 / -1;
        width: 100%;
        padding: 10px 12px;
        background: rgba(8, 21, 36, .9);
    }

    .mf-login {
        width: 176px;
        max-width: 100%;
    }

    .mf-login__field {
        max-width: 100%;
    }

    .mf-nav__toggle {
        display: block;
    }

    .mf-nav__links {
        display: none;
        flex-direction: column;
        height: auto;
        padding: 8px 0;
    }

    .mf-nav__links.is-open {
        display: flex;
    }

    .mf-nav__links li a {
        padding: 8px 16px;
        font-size: 13px;
    }

    .mf-nav__sep {
        width: 100%;
        height: 1px;
        background: rgba(255,255,255,0.1);
    }

    .mf-nav {
        height: auto;
        min-height: 38px;
        flex-wrap: wrap;
    }
}


/* ==========================================================================
   Inherited pages (default theme views rendered inside .mf-center):
   flatten the modern MYKD look into the compact 2011 template style.
   ========================================================================== */

/* fonts: MYKD headings/buttons read these vars (Oswald/Poppins by default) */
:root {
    --tg-heading-font-family: Tahoma, Geneva, sans-serif;
    --tg-body-font-family: Tahoma, Geneva, sans-serif;
}

/* WOW.js keeps .wow boxes invisible until it animates them - never hide content here */
.mf-center .wow {
    visibility: visible !important;
    animation: none !important;
    opacity: 1 !important;
}

/* page views use inline padding: 70-80px; the centre column is too narrow for that */
.mf-center > section,
.mf-center > div > section {
    padding: 8px 0 !important;
}

.mf-center .container {
    max-width: 100% !important;
    padding-left: 4px;
    padding-right: 4px;
}

/* typography */
.mf-center {
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.mf-center p,
.mf-center li {
    font-size: 12px;
    line-height: 1.6;
}

.mf-center h1, .mf-center h2, .mf-center h3,
.mf-center h4, .mf-center h5, .mf-center h6,
.mf-center .title {
    font-family: Tahoma, Geneva, sans-serif;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 8px;
}

.mf-center h1, .mf-center .title { font-size: 18px; }
.mf-center h2 { font-size: 16px; }
.mf-center h3 { font-size: 14px; }
.mf-center h4 { font-size: 13px; }
.mf-center h5, .mf-center h6 { font-size: 12px; }

.mf-center .section__title {
    margin: 0 0 10px;
}

.mf-center .sub-title,
.mf-center .section__title::before,
.mf-center .section__title::after,
.mf-center .section__title .title::before,
.mf-center .section__title .title::after {
    display: none !important;
}

.mf-center .legal-updated {
    font-size: 11px;
    color: var(--mf-text-light);
}

/* form controls */
.mf-center .form-control,
.mf-center .form-select,
.mf-center select,
.mf-center textarea,
.mf-center input:not([type]),
.mf-center input[type="text"],
.mf-center input[type="password"],
.mf-center input[type="email"],
.mf-center input[type="number"],
.mf-center input[type="search"],
.mf-center input[type="url"],
.mf-center input[type="tel"] {
    height: auto;
    min-height: 0;
    padding: 4px 6px;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 11px;
    line-height: 1.4;
    border: 1px solid #bbb;
    border-radius: 2px;
    background-color: #fff;
    color: var(--mf-text);
    box-shadow: none;
}

.mf-center textarea {
    min-height: 80px;
}

.mf-center .form-select,
.mf-center select {
    padding-right: 26px;
}

.mf-center .form-control:focus,
.mf-center .form-select:focus,
.mf-center select:focus,
.mf-center textarea:focus,
.mf-center input:focus {
    outline: none;
    border-color: var(--mf-value);
    box-shadow: 0 0 0 2px rgba(70,130,180,0.25);
}

.mf-center .form-control:disabled,
.mf-center input:disabled,
.mf-center select:disabled {
    background-color: #eee;
    color: #888;
}

.mf-center .is-invalid,
.mf-center .form-control.is-invalid {
    border-color: #c0392b;
}

.mf-center label,
.mf-center .form-label {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 3px;
}

.mf-center .form-group,
.mf-center .form-grp,
.mf-center .mb-3,
.mf-center .mb-4 {
    margin-bottom: 8px !important;
}

/* buttons: plain steel-blue rectangles, no clip-path / svg shapes */
.mf-center .btn,
.mf-center .tg-btn-1,
.mf-center .tg-btn-2,
.mf-center .tg-btn-3,
.mf-center .tg-btn-4,
.mf-center .tg-btn-5,
.mf-center .arrow-btn,
.mf-center .btn-two,
.mf-center .mu-confirm-btn,
.mf-center button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: auto;
    padding: 5px 14px !important;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.4;
    background: var(--mf-value) !important;
    color: var(--mf-white) !important;
    border: 1px solid #2f5f86 !important;
    border-radius: 3px;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    box-shadow: none;
}

.mf-center .btn:hover,
.mf-center .tg-btn-1:hover,
.mf-center .tg-btn-2:hover,
.mf-center .tg-btn-3:hover,
.mf-center .tg-btn-4:hover,
.mf-center .tg-btn-5:hover,
.mf-center .arrow-btn:hover,
.mf-center .btn-two:hover,
.mf-center .mu-confirm-btn:hover,
.mf-center button[type="submit"]:hover {
    background: var(--mf-link) !important;
    color: var(--mf-white) !important;
}

.mf-center .btn:focus-visible,
.mf-center button[type="submit"]:focus-visible {
    outline: 2px solid var(--mf-value);
    outline-offset: 2px;
}

.mf-center .btn:not(.dropdown-toggle)::before, .mf-center .btn:not(.dropdown-toggle)::after,
.mf-center .arrow-btn::before, .mf-center .arrow-btn::after,
.mf-center .tg-btn-1 svg,
.mf-center .tg-btn-3::before, .mf-center .tg-btn-3::after,
.mf-center .tg-btn-4 span::before, .mf-center .tg-btn-4 span::after,
.mf-center .tg-btn-5 span::before, .mf-center .tg-btn-5 span::after {
    display: none !important;
}

.mf-center .btn-outline-secondary,
.mf-center .btn-light,
.mf-center .btn-secondary {
    background: #e8e8e8 !important;
    color: var(--mf-text) !important;
    border-color: #bbb !important;
}

.mf-center .btn-outline-secondary:hover,
.mf-center .btn-light:hover,
.mf-center .btn-secondary:hover {
    background: #d8d8d8 !important;
    color: var(--mf-text) !important;
}

/* cards / boxes */
.mf-center .mustack-card,
.mf-center .rk-card,
.mf-center .shop-pack-card,
.mf-center .stat-block,
.mf-center .db-card,
.mf-center .si-item,
.mf-center .cs-stat,
.mf-center .cs-section,
.mf-center .card,
.mf-center .blog-post-item {
    background: var(--mf-white) !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    padding: 10px !important;
    margin-bottom: 10px;
}

.mf-center .rk-card { margin-bottom: 6px; }
.mf-center .rk-card-title { font-size: 13px; }
.mf-center .rk-card-desc { font-size: 11px; }

.mf-center .stat-head,
.mf-center .cs-section > h3,
.mf-center .shop-cat-header {
    font-size: 13px;
    margin-bottom: 8px;
}

.mf-center .db-val { font-size: 18px; }
.mf-center .db-lbl, .mf-center .si-label { font-size: 10px; }
.mf-center .si-value { font-size: 13px; }
.mf-center .db-grid { gap: 8px; }
.mf-center .si-grid { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* news list + article */
.mf-center .blog-post-item { padding: 10px !important; }
.mf-center .blog-post-content {
    background: var(--mf-white) !important;
    border: none !important;
    padding: 6px 0 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}
.mf-center .blog-post-thumb,
.mf-center .news-preview {
    max-height: 170px;
    overflow: hidden;
    margin-bottom: 10px !important;
    border-radius: 3px;
}
.mf-center .blog-post-thumb img,
.mf-center .news-preview img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}
.mf-center .blog-post-meta { font-size: 11px; margin-bottom: 6px; }
.mf-center .blog-post-content .title,
.mf-center .blog-details-content .title { font-size: 16px; }

/* castle siege hero: light instead of the dark gold panel */
.mf-center .cs-hero {
    background: var(--mf-white) !important;
    background-image: none !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    padding: 14px !important;
}
.mf-center .cs-hero::before,
.mf-center .cs-hero::after { display: none !important; }
.mf-center .cs-countdown .seg {
    background: var(--mf-row-even);
    border: 1px solid #ddd;
    border-radius: 3px;
}
.mf-center .cs-countdown .seg span {
    color: var(--mf-value);
    text-shadow: none;
    font-size: 1.4rem;
}

/* streamers page: two cards do not fit side by side in the centre column */
.mf-center .st-grid,
.mf-center .st-row,
.mf-center .st-split {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.mf-center .st-side {
    background: var(--mf-white);
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px;
}

/* ranking detail page: side nav becomes a row of small tabs, compact header + table */
.mf-center .rk-side {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}
.mf-center .rk-side a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    font-size: 11px;
    background: var(--mf-white);
    border: 1px solid #ddd;
    border-radius: 3px;
    color: var(--mf-text);
    text-decoration: none;
}
.mf-center .rk-side a.active {
    background: var(--mf-value);
    border-color: #2f5f86;
    color: var(--mf-white);
}
.mf-center .rk-side .ic {
    width: 18px;
    height: 18px;
    font-size: 10px;
    border-radius: 3px;
}

.mf-center .rk-header { gap: 10px; margin-bottom: 10px; padding-bottom: 8px; }
.mf-center .rk-header .ic { width: 32px; height: 32px; font-size: 1rem; border-radius: 4px; }
.mf-center .rk-header h1 { font-size: 16px; }
.mf-center .rk-header .desc { font-size: 11px; }
.mf-center .rk-table thead th { padding: 5px 8px; font-size: 10px; }
.mf-center .rk-table tbody td { padding: 4px 8px; font-size: 11px; }
.mf-center .rk-avatar-circle, .mf-center .rk-avatar-wrap { width: 28px; height: 28px; }

/* shop */
.mf-center .shop-cat-tab {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 3px;
}
.mf-center .price-amount { font-size: 16px; }
.mf-center .shop-pack-items { min-height: 0; }

/* character page: the 640px equipment board and the 440px backpack + side panel
   were designed for a full-width page; stack the side panels and shrink the board */
.mf-center .info-panel { padding: 12px; }
.mf-center .inv-layout { flex-direction: column; align-items: stretch; gap: 10px; }
.mf-center .inv-grid-wrap { width: 100%; overflow: visible; justify-content: center; }
/* slots are positioned in px for a 640px board: keep that width and scale the whole board down */
.mf-center .inv-grid { width: 640px; max-width: none; zoom: 0.92; }
.mf-center .inv-artifact-panel { flex-direction: row; flex-wrap: wrap; justify-content: center; width: 100%; }
.mf-center .inv-artifact-panel .inv-artifact-label { width: 100%; }
.mf-center .bp-layout { flex-direction: column; align-items: center; gap: 10px; }
.mf-center .bp-layout-ext { width: 100%; max-width: 440px; }
.mf-center .bp-grid-wrap { max-width: 100%; }
.mf-center .mst-grid { grid-template-columns: 1fr; gap: 10px; }
/* stack counts were white-on-dark; on the light cells they turn dark-on-dark glow */
.mf-center .bp-stack {
    top: 2px;
    right: 2px;
    padding: 1px 4px;
    font-size: 11px;
    color: #fff;
    background: rgba(0,0,0,0.78);
    border-radius: 3px;
    text-shadow: none;
}
.mf-center .char-header-attrs { grid-template-columns: 1fr 1fr; gap: 4px; margin-left: 0; }
.mf-center .info-stats { flex-wrap: wrap; }
.mf-center .info-stat { flex: 1 1 calc(33% - 1px); min-width: 80px; }

/* ── guild profile (fits the narrow centre column) ── */
.mf-center .guild-profile-header { padding: 16px 18px; margin-bottom: 12px; border-radius: 4px; }
.mf-center .guild-mark-lg { width: 72px; height: 72px; padding: 6px; box-shadow: none; }
.mf-center .guild-name-lg { font-size: 1.35rem; letter-spacing: 1px; }
.mf-center .guild-header-stats { gap: 16px; }
.mf-center .guild-stats-row { gap: 6px; margin-bottom: 12px; }
.mf-center .guild-stats-row .mustack-stat-box { padding: 10px 4px; border-radius: 4px; }
.mf-center .guild-stats-row .stat-icon { font-size: 18px; margin-bottom: 2px; }
.mf-center .guild-stats-row .mustack-stat-box > div[style*="font-size"] { font-size: 1.25rem !important; }
.mf-center .guild-stats-row .stat-label { font-size: 10px; letter-spacing: .3px; line-height: 1.3; }
.mf-center .guild-notice-card { padding: 12px 14px; margin-bottom: 12px; border-radius: 4px; }
.mf-center .alliance-section { margin-bottom: 12px; }
.mf-center .alliance-card { padding: 8px 10px; border-radius: 4px; }
.mf-center .guild-members-section .section-title { color: var(--tg-heading-color); font-size: 1rem; margin-bottom: 8px; }
.mf-center .guild-members-section .mustack-card { padding: 0; }
.mf-center #guild-members-table { width: 100%; margin: 0; }
.mf-center #guild-members-table th,
.mf-center #guild-members-table td { padding: 5px 6px; font-size: 12px; vertical-align: middle; letter-spacing: 0; }
.mf-center #guild-members-table th { font-size: 11px; line-height: 1.2; }
.mf-center #guild-members-table td,
.mf-center #guild-members-table td span,
.mf-center #guild-members-table .rank-badge { white-space: nowrap; }
.mf-center #guild-members-table td > div[style*="flex"] { gap: 5px !important; }
.mf-center #guild-members-table td span[style*="font-size"] { font-size: 12px !important; }
.mf-center #guild-members-table .class-avatar-sm { width: 22px; height: 22px; }
.mf-center #guild-members-table .rank-badge { padding: 2px 6px; font-size: 11px; }
.mf-center #guild-members-table .char-link { color: var(--tg-theme-secondary) !important; }
.mf-center #guild-members-table .rank-cell span { color: #666 !important; }
.mf-center #guild-members-table td:nth-child(5) > span { color: #2563eb !important; }
.mf-center #guild-members-table td:nth-child(6) > span { color: #7e22ce !important; }

/* guild warehouse card */
.mf-center .gw-stat-card { padding: 0; margin-top: 12px; border-radius: 4px; background: #fff; border: 1px solid #d6d6d6; }
.mf-center .gw-stat-card h5.mst-toggle { margin: 0; padding: 9px 12px; border-bottom: 0; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--tg-heading-color); background: #e8e8e8; border-radius: 4px; }
.mf-center .gw-stat-card h5.mst-toggle:not(.collapsed) { border-bottom: 1px solid #d6d6d6; border-radius: 4px 4px 0 0; }
.mf-center .gw-stat-card h5.mst-toggle:hover { background: #dfe8f1; }
.mf-center .gw-stat-card h5 span[style*="font-size:0.75rem"] { color: #595959 !important; font-weight: 400; letter-spacing: 0; }
.mf-center .gw-stat-card h5 > span:last-child { font-weight: 700; }
.mf-center .gw-stat-card .mst-chevron { color: #595959; }
.mf-center .gw-stat-card .card-collapse:not(.card-hidden) { padding: 10px; }
.mf-center .gw-stat-card .bp-grid-wrap { justify-content: center; padding-bottom: 0; }
.mf-center .gw-stat-card .bp-grid { max-width: 100%; background: #1d2633; border-color: #0f1720; border-radius: 4px; }
.mf-center .gw-empty { padding: 20px 12px; color: #595959; }

/* character achievements (light) */
.mf-center .mst-summary-badge { background: #e8e8e8; color: #555; border-radius: 3px; }
.mf-center .mst-summary-badge strong { color: #222; }
.mf-center .ach-tabs { gap: 4px; padding: 0; margin-bottom: 10px; }
.mf-center .ach-tabs .nav-link { border-radius: 3px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: #444; background: #e8e8e8; border: 1px solid #d0d0d0; }
.mf-center .ach-tabs .nav-link:hover { background: #dfe8f1; color: #1f4e79; }
.mf-center .ach-tabs .nav-link.active { background: #2f6493; border-color: #2f6493; color: #fff; }
.mf-center .ach-bonuses-grid { gap: 6px; }
.mf-center .ach-bonus-card,
.mf-center .ach-bonus-card.invested,
.mf-center .ach-bonus-card.maxed { background: #fff; border: 1px solid #d6d6d6; border-radius: 4px; padding: 10px 6px 8px; }
.mf-center .ach-bonus-card.invested { background: #f3f7fb; border-color: #b9cde0; }
.mf-center .ach-bonus-card.maxed { background: #eef6ee; border-color: #a9cfa9; }
.mf-center .ach-bonus-card:hover,
.mf-center .ach-bonus-card.invested:hover,
.mf-center .ach-bonus-card.maxed:hover { border-color: var(--tg-theme-primary); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.mf-center .ach-bonus-icon-wrap { width: 46px; height: 46px; margin-bottom: 6px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.mf-center .ach-bonus-card .bonus-name { color: #1f4e79; font-size: 11px; }
.mf-center .ach-bonus-card .bonus-name .plus { color: #2e7d32; }
.mf-center .ach-bonus-card .bonus-pts { color: #595959; font-size: 10px; }
.mf-center .ach-bonus-card .bonus-lvl.lv-zero { background: #eee; color: #595959; border-color: #d6d6d6; }
.mf-center .ach-bonus-card .bonus-lvl.lv-active { background: #dfe8f1; color: #1f4e79; border-color: #b9cde0; }
.mf-center .ach-bonus-card .bonus-lvl.lv-max { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.mf-center .ach-bonus-card .bonus-gain { color: #2e7d32; font-size: 10px; }
/* tooltip stays dark: give it light text again */
.mf-center .ach-bonus-tip { background: rgba(12,20,30,.97); border-color: var(--tg-theme-primary); }
.mf-center .ach-bonus-tip-name { color: #9cc7ee; }
.mf-center .ach-bonus-tip-row { color: rgba(255,255,255,.7); }
.mf-center .ach-bonus-tip-row span { color: #fff; }
.mf-center .ach-bonus-tip-bar { background: rgba(255,255,255,.15); }
.mf-center .ach-row { border-bottom-color: #e2e2e2; padding: 6px 10px; }
.mf-center .ach-row.ach-completed { background: #eef3f8; }
.mf-center .ach-name { color: #333; font-size: 12px; }
.mf-center .ach-row.ach-completed .ach-name { color: #1f4e79; }
.mf-center .ach-bar-wrap { background: #dcdcdc; }
.mf-center .ach-progress { color: #595959; font-size: 11px; }
.mf-center .ach-level-badge { background: #e8e8e8; color: #555; border-radius: 3px; }
.mf-center .ach-row.ach-completed .ach-level-badge,
.mf-center .ach-pts-badge { background: #dfe8f1; color: #1f4e79; border-radius: 3px; }
.mf-center .ach-empty { color: #595959; }

/* Community buttons — override .mf-body a color */
.mf-body .comm-btn { color: #fff; }
.mf-body .comm-btn:hover { color: #fff; }
