/* Microbot WoW, direction B: a dark page, gold frame, Cinzel headings and
   Alegreya text. The shell (top bar, footer) applies to every page; the
   .mb-home and .mb-account rules only reach the redesigned pages. Pages that
   still carry their old body load the old stylesheets too, so nothing here
   reaches into their content except the background of the page. */

:root {
    --mb-bg: #121214;
    --mb-panel: rgba(217, 164, 65, 0.04);
    --mb-panel-2: #18181B;
    --mb-gold: #D9A441;
    --mb-gold-hi: #E8BD65;
    --mb-line: rgba(217, 164, 65, 0.28);
    --mb-soft: rgba(217, 164, 65, 0.12);
    --mb-head: #F7EDD8;
    --mb-body: #D5D2C8;
    --mb-muted: #9A968C;
    --mb-green: #3DDC84;
    --mb-red: #E24B4A;
    --mb-display: 'Cinzel', Georgia, serif;
    --mb-text: 'Alegreya', Georgia, serif;
    --mb-gutter: 56px;
    --mb-max: 1440px;
}

/* ------------------------------------------------------------ the page */

body.mb-body {
    margin: 0;
    background: var(--mb-bg);
}

body.mb-new {
    color: var(--mb-body);
    font-family: var(--mb-text);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.mb-new *,
.mb-top *,
.mb-foot * {
    box-sizing: border-box;
}

.mb-new h1,
.mb-new h2,
.mb-new h3,
.mb-new h4 {
    margin: 0;
    font-family: var(--mb-display);
    font-weight: 700;
    color: var(--mb-head);
    line-height: 1.15;
}

.mb-new a {
    color: var(--mb-gold);
    text-decoration: none;
    transition: color .15s;
}

.mb-new a:hover {
    color: var(--mb-gold-hi);
}

.mb-new img {
    max-width: 100%;
}

.mb-main {
    display: block;
    min-height: 60vh;
}

.mb-rule {
    display: block;
    width: 64px;
    height: 2px;
    background: var(--mb-gold);
}

.mb-caps {
    font-family: var(--mb-display);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mb-gold);
}

.mb-muted {
    color: var(--mb-muted);
}

.mb-right {
    text-align: right;
}

.mb-lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--mb-body);
    max-width: 560px;
}

/* ---------------------------------------------------------- buttons */

.mb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 26px;
    border: 1px solid var(--mb-gold);
    background: var(--mb-gold);
    color: var(--mb-bg) !important;
    font-family: var(--mb-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}

.mb-btn:hover {
    background: var(--mb-gold-hi);
    border-color: var(--mb-gold-hi);
    color: var(--mb-bg) !important;
}

.mb-btn-line {
    background: transparent;
    color: var(--mb-gold) !important;
}

.mb-btn-line:hover {
    background: var(--mb-soft);
    color: var(--mb-gold-hi) !important;
}

.mb-link {
    color: var(--mb-gold);
    text-decoration: none;
}

/* ---------------------------------------------------------- top bar */

/* The bar follows the reader: it sticks to the top of the window on every
   page, tinted and blurred so whatever passes beneath it stays readable.
   On the home page the painting reaches up under it. */
.mb-top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(18, 18, 20, 0.66);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mb-line);
    font-family: var(--mb-display);
}

.mb-page-posts .mb-hero {
    margin-top: -80px;
}

.mb-top-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    max-width: var(--mb-max);
    height: 80px;
    margin: 0 auto;
    padding: 0 var(--mb-gutter);
}

.mb-brand {
    display: inline-flex;
    align-items: center;
    flex: none;
}

.mb-brand img {
    display: block;
    width: 56px;
    height: 56px;
}

.mb-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.mb-nav > a,
.mb-shop-nav > a {
    font-family: var(--mb-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mb-body);
    text-decoration: none;
    transition: color .15s;
}

.mb-nav > a:hover,
.mb-nav > a.is-current,
.mb-shop-nav > a:hover,
.mb-shop-nav > a.is-current {
    color: var(--mb-gold);
}

.mb-nav > .mb-btn {
    margin-left: 8px;
    height: 44px;
}

.mb-nav > .mb-status {
    margin-left: 4px;
    font-family: var(--mb-text);
    letter-spacing: 0;
    text-transform: none;
}

.mb-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--mb-line);
    background: transparent;
    color: var(--mb-gold);
    font-family: var(--mb-display);
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

/* -------------------------------------------------------------- faq */

.mb-faq .mb-codex-index {
    max-width: 820px;
}

.mb-faq .mb-codex-group-items {
    padding: 4px 18px 18px;
}

.mb-faq .mb-prose {
    margin: 0;
}

/* ------------------------------------------------------------- hero */

.mb-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--mb-bg);
}

/* The painting was extended a quarter to the left (2026-09-06), so it fills
   the hero edge to edge with the warrior on the right; the shade darkens
   the text column over the quieter, new part. */
.mb-hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.mb-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 18, 20, 0.98) 0%, rgba(18, 18, 20, 0.92) 28%, rgba(18, 18, 20, 0.55) 46%, rgba(18, 18, 20, 0.12) 62%, rgba(18, 18, 20, 0) 74%),
        linear-gradient(180deg, rgba(18, 18, 20, 0.45) 0%, rgba(18, 18, 20, 0) 22%, rgba(18, 18, 20, 0) 66%, rgba(18, 18, 20, 1) 100%);
}

.mb-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: var(--mb-max);
    margin: 0 auto;
    padding: 200px var(--mb-gutter) 80px;
}

.mb-hero-inner h1 {
    max-width: 640px;
    font-size: 62px;
    line-height: 1.05;
    text-wrap: balance;
}

.mb-hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.mb-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--mb-body);
}

.mb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mb-muted);
}

.mb-dot-on {
    background: var(--mb-green);
    box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
}

.mb-dot-off {
    background: var(--mb-red);
}

.mb-dot-work {
    background: var(--mb-gold);
}

.mb-dot-plan {
    background: var(--mb-muted);
}

/* Each realm uses the launcher's compact two-line identity/status layout. */

.mb-realms {
    display: inline-flex;
    align-items: stretch;
    gap: 6px;
    font-family: var(--mb-text);
    letter-spacing: 0;
    text-transform: none;
}

.mb-realm {
    --mb-realm-dot: 7px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 7px;
    row-gap: 1px;
    min-width: 122px;
    padding: 7px 10px;
    border: 1px solid var(--mb-line);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
}

.mb-realm-icon {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.mb-realm-icon img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.mb-realm-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--mb-head);
    white-space: nowrap;
}

.mb-realm-state {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
    color: var(--mb-body);
    white-space: nowrap;
}

.mb-realm > .mb-dot {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: var(--mb-realm-dot);
    height: var(--mb-realm-dot);
    flex: none;
}

/* Three chips cost about 375px of bar. Above 1200 there is room for all of
   them; below it the two that are not read from a heartbeat step out so the
   logo and the menu keep theirs. On a phone they all come back, inside the
   dropdown, where width is not the constraint. */
@media (max-width: 1199px) {
    .mb-nav > .mb-realms .mb-realm-quiet {
        display: none;
    }

    .mb-nav {
        gap: 22px;
    }

    .mb-top-inner {
        gap: 24px;
    }
}

/* --------------------------------------------------------- sections */

.mb-section {
    max-width: var(--mb-max);
    margin: 0 auto;
    padding: 24px var(--mb-gutter) 72px;
}

.mb-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.mb-section-title {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mb-section-title h2 {
    font-size: 34px;
}

.mb-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mb-display);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mb-panel {
    border: 1px solid var(--mb-line);
    background: var(--mb-panel);
}

.mb-empty,
.mb-panel-note {
    margin: 0;
    padding: 18px;
    color: var(--mb-muted);
}

.mb-panel-note {
    padding-bottom: 0;
}

/* ------------------------------------------------------------ codex */

.mb-codex-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.mb-codex-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mb-codex-search {
    margin: 0;
}

.mb-codex-search input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel);
    color: var(--mb-head);
    font-family: var(--mb-text);
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    outline: none;
    transition: border-color .15s;
    -webkit-appearance: none;
    appearance: none;
}

.mb-codex-search input::placeholder {
    color: var(--mb-muted);
}

.mb-codex-search input:focus {
    border-color: var(--mb-gold);
}

.mb-codex-empty {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel);
    color: var(--mb-muted);
    font-size: 15px;
}

.mb-codex-index {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel);
}

.mb-codex-group {
    border-top: 1px solid var(--mb-line);
}

.mb-codex-group:first-child {
    border-top: 0;
}

.mb-codex-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 14px;
    border: 0;
    background: transparent;
    font-family: var(--mb-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: left;
    color: var(--mb-gold);
    cursor: pointer;
    transition: color .15s;
}

.mb-codex-group-head:hover {
    color: var(--mb-gold-hi);
}

.mb-codex-group-head svg {
    flex: none;
    transition: transform .15s;
}

.mb-codex-group.is-open .mb-codex-group-head svg {
    transform: rotate(180deg);
}

.mb-codex-group-items {
    padding-bottom: 8px;
}

.mb-codex-group-items[hidden] {
    display: none;
}

.mb-codex-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: var(--mb-body);
    font-family: var(--mb-text);
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}

.mb-codex-item:hover {
    color: var(--mb-gold-hi);
}

.mb-codex-item.is-active {
    border-left-color: var(--mb-gold);
    background: var(--mb-soft);
    color: var(--mb-gold);
}

.mb-codex-item svg {
    flex: none;
    opacity: .7;
}

.mb-codex-panels {
    padding: 28px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel);
}

.mb-codex-count {
    margin: 0 0 24px;
    color: var(--mb-muted);
    font-size: 15px;
}

.mb-codex-panels.is-results .mb-codex-panel + .mb-codex-panel {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--mb-line);
}

.mb-codex-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mb-codex-panel[hidden] {
    display: none;
}

.mb-codex-art {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--mb-line);
}

.mb-codex-panel h3 {
    font-size: 28px;
}

.mb-codex-panel h3 span {
    font-family: inherit !important;
}

.mb-prose {
    font-size: 17px;
    line-height: 1.75;
    color: var(--mb-body);
}

/* The highlighted words carry their colour in the feature text; the weight
   is the theme's call. Semi bold reads lighter than the old bold. */
.mb-prose span[style*="color"] {
    font-weight: 600;
}

.mb-prose strong {
    font-weight: 600;
}

.mb-prose p {
    margin: 0 0 1em;
}

.mb-prose ul {
    padding-left: 1.3em;
}

.mb-list {
    margin: 0;
}

.mb-rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.mb-table-rates caption {
    padding: 0 0 8px;
    text-align: left;
    font-family: var(--mb-display);
    font-size: 16px;
    color: var(--mb-head);
}

.mb-table-rates td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--mb-head);
}

.mb-rate-base td:first-child {
    color: var(--mb-muted);
}

.mb-rate-bonus td:first-child {
    color: #7FFF00;
}

.mb-rate-total td:first-child {
    color: #FFA500;
    font-weight: 600;
}

/* --------------------------------------------------- rankings, tables */

.mb-tabs {
    display: flex;
    gap: 28px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--mb-line);
    overflow-x: auto;
}

.mb-tab {
    flex: none;
    padding: 12px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--mb-muted);
    font-family: var(--mb-display);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.mb-tab:hover {
    color: var(--mb-gold-hi);
}

.mb-tab.is-active {
    color: var(--mb-gold);
    border-bottom-color: var(--mb-gold);
}

.mb-count {
    display: inline-block;
    min-width: 22px;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid var(--mb-line);
    font-family: var(--mb-text);
    font-size: 12px;
    letter-spacing: 0;
    text-align: center;
    color: var(--mb-head);
}

.mb-tab-panel[hidden] {
    display: none;
}

.mb-scroll {
    overflow-x: auto;
}

.mb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.mb-table th {
    padding: 12px 18px;
    font-family: var(--mb-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: left;
    color: var(--mb-muted);
    white-space: nowrap;
}

.mb-table td {
    height: 52px;
    padding: 8px 18px;
    border-top: 1px solid var(--mb-line);
    vertical-align: middle;
    white-space: nowrap;
}

.mb-table th.mb-right,
.mb-table td.mb-right {
    text-align: right;
}

.mb-table-rates td {
    height: auto;
    padding: 8px 10px;
    white-space: normal;
}

.mb-table-rates tr:first-child td {
    border-top: 0;
}

.mb-name {
    font-weight: 600;
}

.mb-rank {
    font-family: var(--mb-display);
    color: var(--mb-gold);
}

.mb-icons {
    display: inline-flex;
    gap: 6px;
    vertical-align: middle;
}

.mb-icons img {
    width: 20px;
    height: 20px;
}

.mb-money img {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
}

.mb-lic-d {
    color: #81D4FA;
}

.mb-lic-r {
    color: #FFA500;
}

.mb-rank-icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
}

.mb-subhead {
    padding: 16px 18px 6px;
    font-size: 18px;
}

.mb-faction-alliance {
    color: #81D4FA;
}

.mb-faction-horde {
    color: #E24B4A;
}

/* ---------------------------------------------------------- records */

.mb-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mb-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel);
}

.mb-card-title {
    font-family: var(--mb-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--mb-head);
}

.mb-card-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--mb-gold);
}

.mb-card-note {
    font-size: 14px;
    color: var(--mb-muted);
}

/* ----------------------------------------------------------- footer */

.mb-foot {
    border-top: 1px solid var(--mb-line);
    font-family: var(--mb-text);
}

.mb-foot-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: var(--mb-max);
    margin: 0 auto;
    padding: 32px var(--mb-gutter);
    color: var(--mb-head);
    text-decoration: none;
}

.mb-foot-link {
    display: block;
    flex: none;
    line-height: 0;
    transition: opacity .15s;
}

.mb-foot-link:hover {
    opacity: .8;
}

.mb-foot-logo {
    display: block;
    width: 48px;
    height: 48px;
    flex: none;
}

.mb-foot-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 17.7 against the subtitle's 18: the display face and the reading face carry
   these two strings at almost the same width per pixel of size, so this pair
   makes both lines run to exactly the same right edge, measured, not guessed. */
.mb-foot-name {
    font-family: var(--mb-display);
    font-size: 17.7px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--mb-head);
}

.mb-foot-note {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.mb-foot-tag {
    font-size: 18px;
    color: var(--mb-body);
}

.mb-foot-since {
    font-size: 18px;
    color: var(--mb-muted);
}

/* ---------------------------------------------------------- account */

.mb-account {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px var(--mb-gutter) 72px;
}

.mb-account-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.mb-account-head h1 {
    font-size: 44px;
}

.mb-messages .alert {
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid var(--mb-line);
    background: var(--mb-soft);
    color: var(--mb-head);
}

.mb-messages .alert-danger,
.mb-messages .alert-error {
    border-color: rgba(226, 75, 74, 0.5);
    background: rgba(226, 75, 74, 0.12);
}

.mb-messages .alert-success {
    border-color: rgba(61, 220, 132, 0.5);
    background: rgba(61, 220, 132, 0.10);
}

.mb-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.mb-account .mb-panel {
    padding: 28px;
}

.mb-account .mb-panel h2 {
    margin-bottom: 18px;
    font-size: 26px;
}

.mb-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-family: var(--mb-display);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mb-muted);
}

.mb-form input[type="text"],
.mb-form input[type="email"],
.mb-form input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel-2);
    color: var(--mb-head);
    font-family: var(--mb-text);
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    outline: none;
    transition: border-color .15s;
}

.mb-form input:focus {
    border-color: var(--mb-gold);
}

.mb-form .input-group {
    margin-bottom: 14px;
}

.mb-form .input-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel-2);
    color: var(--mb-head);
    font-family: var(--mb-text);
    font-size: 16px;
}

.mb-form p {
    margin: 0 0 14px;
}

.mb-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mb-details {
    margin-bottom: 24px;
}

.mb-details summary {
    cursor: pointer;
    font-family: var(--mb-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--mb-head);
    list-style: none;
}

.mb-details summary::-webkit-details-marker {
    display: none;
}

.mb-details summary::before {
    content: "+";
    display: inline-block;
    width: 22px;
    color: var(--mb-gold);
}

.mb-details[open] summary::before {
    content: "\2013";
}

.mb-details[open] summary {
    margin-bottom: 18px;
}

.mb-rules,
.mb-connect {
    margin-bottom: 24px;
}

.mb-rules li,
.mb-connect p {
    margin-bottom: 10px;
}

/* --------------------------------------------- pages not yet redone */

.mb-legacy-wrap {
    padding: 8px 0 24px;
}

/* -------------------------------------------------------- responsive */

@media (max-width: 1100px) {
    .mb-codex-grid {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 24px;
    }

    .mb-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    :root {
        --mb-gutter: 20px;
    }

    .mb-top-inner {
        justify-content: space-between;
        height: 64px;
    }

    .mb-brand img {
        width: 48px;
        height: 48px;
    }

    .mb-menu-toggle {
        display: inline-flex;
    }

    .mb-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        background: var(--mb-bg);
        border-bottom: 1px solid var(--mb-line);
    }

    .mb-nav.is-open {
        display: flex;
    }

    .mb-nav > a,
    .mb-shop-nav > a {
        padding: 14px var(--mb-gutter);
    }

    .mb-nav > .mb-btn {
        margin: 8px var(--mb-gutter) 0;
    }

    .mb-nav > .mb-realms {
        margin: 0;
        padding: 14px var(--mb-gutter) 0;
        flex-wrap: wrap;
    }

    .mb-nav > .mb-realms .mb-realm-quiet {
        display: flex;
    }

    .mb-realm {
        flex: 1 1 auto;
    }

    .mb-page-posts .mb-hero {
        margin-top: -64px;
    }

    .mb-hero {
        min-height: 560px;
    }

    .mb-hero-art {
        object-position: 64% top;
    }

    .mb-hero-shade {
        background: linear-gradient(180deg, rgba(18, 18, 20, 0.55) 0%, rgba(18, 18, 20, 0.15) 30%, rgba(18, 18, 20, 0.75) 62%, rgba(18, 18, 20, 1) 100%);
    }

    .mb-hero-inner {
        padding: 240px var(--mb-gutter) 40px;
        gap: 14px;
    }

    .mb-hero-inner h1 {
        font-size: 36px;
    }

    .mb-lead {
        font-size: 15px;
    }

    .mb-hero-actions .mb-btn {
        width: 100%;
    }

    .mb-section {
        padding: 16px var(--mb-gutter) 40px;
    }

    .mb-section-title h2 {
        font-size: 26px;
    }

    .mb-codex-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .mb-codex-index {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 8px;
        overflow-x: auto;
        border: 0;
        background: transparent;
    }

    .mb-codex-group,
    .mb-codex-group-items,
    .mb-codex-group-items[hidden] {
        display: contents;
    }

    .mb-codex-group-head {
        display: none;
    }

    .mb-codex-item {
        flex: none;
        width: auto;
        min-height: 40px;
        padding: 0 14px;
        border: 1px solid var(--mb-line);
        border-left-width: 1px;
        font-size: 14px;
    }

    .mb-codex-item.is-active {
        border-color: var(--mb-gold);
    }

    .mb-codex-item svg {
        display: none;
    }

    .mb-codex-panels {
        padding: 18px;
    }

    .mb-codex-panel h3 {
        font-size: 22px;
    }

    .mb-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-account {
        padding: 32px var(--mb-gutter) 48px;
    }

    .mb-account-head h1 {
        font-size: 32px;
    }

    .mb-account-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-account .mb-panel {
        padding: 20px;
    }

}

/* ------------------------------------------------------------ views */

.mb-view[hidden] {
    display: none;
}

.mb-single {
    padding-top: 24px;
}

.mb-loading {
    padding: 48px 18px;
    text-align: center;
}

.hide {
    display: none !important;
}

.mb-btn-small {
    height: 38px;
    padding: 0 16px;
    font-size: 12px;
}

.mb-section .alert {
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid var(--mb-line);
    background: var(--mb-soft);
    color: var(--mb-head);
}

/* ------------------------------------------------------------- wiki */

.mb-wiki-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 12px 16px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel-2);
    font-size: 14px;
}

.mb-wiki-toc-2 {
    color: var(--mb-muted);
}

.mb-wiki-toc-2::before {
    content: "\00B7\00A0";
}

.mb-wiki-body h4,
.mb-wiki-body h5,
.mb-wiki-body h6 {
    margin: 28px 0 10px;
    font-family: var(--mb-display);
    color: var(--mb-head);
    scroll-margin-top: 96px;
}

.mb-wiki-body h4 {
    font-size: 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mb-line);
}

.mb-wiki-body h5 {
    font-size: 18px;
}

.mb-wiki-body h6 {
    font-size: 16px;
    color: var(--mb-gold);
}

.mb-wiki-body p {
    margin: 0 0 1em;
}

.mb-wiki-body ul,
.mb-wiki-body ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.mb-wiki-body li {
    margin-bottom: 4px;
}

.mb-wiki-body table {
    width: 100%;
    margin: 0 0 1.2em;
    border-collapse: collapse;
    font-size: 15px;
}

.mb-wiki-body th,
.mb-wiki-body td {
    padding: 8px 12px;
    border: 1px solid var(--mb-line);
    vertical-align: top;
}

.mb-wiki-body th {
    font-family: var(--mb-display);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mb-gold);
    text-align: left;
}

.mb-wiki-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px 0 16px;
    border: 1px solid var(--mb-line);
}

.mb-wiki-body code,
.mb-wiki-body pre {
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    background: var(--mb-panel-2);
    color: var(--mb-head);
}

.mb-wiki-body code {
    padding: 1px 5px;
}

.mb-wiki-body pre {
    padding: 12px 14px;
    overflow-x: auto;
    border: 1px solid var(--mb-line);
}

.mb-wiki-body blockquote {
    margin: 0 0 1em;
    padding: 8px 16px;
    border-left: 2px solid var(--mb-gold);
    color: var(--mb-muted);
}

.mb-wiki-body hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--mb-line);
}

.mb-wiki-body details.wiki-fold {
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel);
}

.mb-wiki-body details.wiki-fold summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--mb-gold);
}

.mb-wiki-body details.wiki-fold[open] summary {
    margin-bottom: 10px;
}

/* ------------------------------------------------------- player runs */

.mb-runs-note {
    padding: 0 0 18px;
}

.mb-records {
    margin-bottom: 24px;
}

.mb-runs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.mb-runs-board {
    padding-bottom: 8px;
}

.mb-run-map {
    border-top: 1px solid var(--mb-line);
}

.mb-run-map summary,
.mb-run-map-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    cursor: pointer;
    list-style: none;
}

.mb-run-map summary::-webkit-details-marker {
    display: none;
}

.mb-run-map-empty {
    cursor: default;
    font-size: 15px;
}

.mb-run-name {
    flex: 1;
    font-family: var(--mb-display);
    font-size: 15px;
    color: var(--mb-head);
}

.mb-run-map-empty .mb-run-name {
    color: var(--mb-muted);
}

.mb-run-best {
    font-weight: 600;
    color: var(--mb-gold);
}

.mb-run {
    padding: 8px 18px 14px 40px;
    border-top: 1px dashed var(--mb-line);
}

.mb-run-line {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
}

.mb-run-time {
    font-weight: 600;
    color: var(--mb-head);
}

.mb-run-players {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 8px;
    font-size: 14px;
}

.mb-run-player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ------------------------------------------------------------- shop */

.mb-shop-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel);
}

.mb-shop-locked .mb-section-head {
    margin-bottom: 20px;
}

.mb-shop-state.mb-shop-guest {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 678px;
    margin: 0 auto;
    padding: 30px 32px;
    border-color: rgba(217, 164, 65, 0.38);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(217, 164, 65, 0.08), var(--mb-panel) 42%);
    transform: translateX(-50px);
}

.mb-shop-guest-copy .mb-caps {
    display: block;
    margin-bottom: 8px;
}

.mb-shop-guest h3 {
    margin: 0 0 9px;
    font-size: 25px;
}

.mb-shop-guest p {
    max-width: 470px;
    margin: 0;
    color: var(--mb-body);
    font-size: 16px;
    line-height: 1.55;
}

.mb-shop-guest-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    letter-spacing: .14em;
}

.mb-order {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel);
}

.mb-order-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.mb-order-character {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
}

.mb-order-character select {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel-2);
    color: var(--mb-head);
    font-family: var(--mb-text);
    font-size: 16px;
}

.mb-shop-category {
    margin-top: 20px;
}

.mb-shop-category-name {
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--mb-gold);
}

.mb-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.mb-shop-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--mb-line);
    background: var(--mb-panel-2);
}

.mb-shop-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mb-shop-icon {
    position: relative;
    flex: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--mb-line);
    background-size: cover;
    background-position: center;
    cursor: help;
}

.mb-shop-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mb-shop-item-name {
    font-weight: 600;
    line-height: 1.3;
}

.mb-shop-price,
.mb-shop-total,
.mb-shop-grand-value {
    display: inline-flex;
    gap: 4px;
    font-size: 15px;
    color: var(--mb-muted);
}

.mb-shop-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mb-shop-total {
    color: var(--mb-head);
    font-weight: 600;
}

.mb-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--mb-line);
}

.mb-qty-btn {
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    font-size: 18px;
    color: var(--mb-gold);
    cursor: pointer;
    user-select: none;
    transition: background-color .15s;
}

.mb-qty-btn:hover:not([disabled]) {
    background: var(--mb-soft);
}

.mb-qty-btn[disabled] {
    color: var(--mb-muted);
    cursor: not-allowed;
}

.mb-qty-value {
    min-width: 34px;
    text-align: center;
    font-weight: 600;
    color: var(--mb-head);
    border-left: 1px solid var(--mb-line);
    border-right: 1px solid var(--mb-line);
    line-height: 34px;
}

.simple-tooltip-wrapper .simple-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 30;
    width: 260px;
    padding: 12px 14px;
    border: 1px solid var(--mb-line);
    background: #0F0F11;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    cursor: default;
}

.simple-tooltip-wrapper:hover .simple-tooltip {
    display: block;
}

.simple-tooltip-title {
    margin: 0 0 6px;
    font-family: var(--mb-display);
    font-size: 15px;
}

.simple-tooltip-story {
    margin: 8px 0 0;
    color: #FFD200;
}

.mb-shop-add {
    margin: 4px 0 20px;
}

.repeater-add.disabled,
.repeater-remove.disabled {
    opacity: .4;
    pointer-events: none;
}

.mb-shop-checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 24px;
}

.mb-shop-grand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mb-shop-grand-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--mb-gold);
}

.mb-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .mb-shop-state.mb-shop-guest {
        transform: none;
    }

    .mb-runs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-order {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .mb-shop-state.mb-shop-guest {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 24px;
    }

    .mb-shop-guest-action {
        width: 100%;
    }
}
