:root {
    --mbx-bg: #1a0f07;
    --mbx-ink: #2a1a0f;
    --mbx-hot: #ff8c42;
    --mbx-sun: #ffe66d;
    --mbx-paper: #f6efe4;
    --mbx-mute: #c4a48a;
    --mbx-line: rgba(255, 230, 109, 0.35);
    --mbx-header: 76px;
    --space-md: 12px;
    --space-lg: 20px;
    --space-xl: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding-top: var(--mbx-header);
    background: var(--mbx-bg);
    color: var(--mbx-paper);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 15px;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mbx-sun); }
button, input { font-family: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }

.mbx-main { min-height: 60vh; }
.mbx-flow { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.mbx-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.mbx-pad { padding: 28px 22px 48px; max-width: 1120px; margin: 0 auto; }
.mbx-title { margin: 0; font-size: clamp(28px, 4vw, 46px); }
.mbx-sub { margin: 8px 0 0; font-size: 18px; }
.mbx-kicker { margin: 0; color: var(--mbx-hot); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; }
.mbx-prose p { margin: 0 0 14px; }
.mbx-prose h2 { margin: 28px 0 10px; font-size: 22px; }

.mbx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--mbx-header);
    background: #140c06;
    border-bottom: 1px solid var(--mbx-line);
}
.mbx-header-bar {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    max-width: 1280px;
    margin: 0 auto;
}
.mbx-header .mbx-cluster { flex-wrap: nowrap; flex-shrink: 0; min-width: max-content; gap: 6px; }
.mbx-nav-end { justify-content: flex-end; }
.mbx-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
}
.mbx-logo img { width: auto; height: 32px; }
.mbx-nav-link {
    color: var(--mbx-paper);
    text-decoration: none;
    font-size: 12px;
    padding: 8px 3px;
    white-space: nowrap;
}
.mbx-header .mbx-btn { min-height: 32px; padding: 4px 8px; white-space: nowrap; font-size: 12px; }
.mbx-nav-link.mbx-is-active { color: var(--mbx-sun); box-shadow: inset 0 -2px 0 var(--mbx-hot); }
.mbx-header-account {
    color: var(--mbx-bg);
    background: var(--mbx-sun);
    text-decoration: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
    align-items: center;
}
.mbx-burger {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--mbx-hot);
    background: transparent;
    padding: 10px;
    cursor: pointer;
}
.mbx-burger span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--mbx-sun);
}
.mbx-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 120;
}
.mbx-nav-overlay[hidden] { display: none; }
.mbx-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background: #24160d;
    z-index: 130;
    padding: 64px 18px 24px;
    overflow-y: auto;
}
.mbx-drawer:not([hidden]) { display: flex; flex-direction: column; gap: 4px; }
.mbx-drawer a, .mbx-drawer button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 8px;
    color: var(--mbx-paper);
    text-decoration: none;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 140, 66, 0.25);
    font-size: 16px;
    cursor: pointer;
}
.mbx-drawer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--mbx-sun);
    font-size: 28px;
    cursor: pointer;
}
body.mbx-nav-open { overflow: hidden; }

.mbx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    background: #140c06;
    color: var(--mbx-sun);
    border: 2px solid var(--mbx-hot);
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    animation: mbx-border 1.4s linear infinite;
}
.mbx-btn[data-mbx-variant="quiet"] { animation: none; border-color: var(--mbx-mute); color: var(--mbx-paper); }
.mbx-btn[data-mbx-variant="primary"] { background: var(--mbx-ink); }
@keyframes mbx-border {
    0% { border-top-color: var(--mbx-sun); border-right-color: var(--mbx-hot); border-bottom-color: #6a3a16; border-left-color: var(--mbx-hot); }
    25% { border-top-color: var(--mbx-hot); border-right-color: var(--mbx-sun); border-bottom-color: var(--mbx-hot); border-left-color: #6a3a16; }
    50% { border-top-color: #6a3a16; border-right-color: var(--mbx-hot); border-bottom-color: var(--mbx-sun); border-left-color: var(--mbx-hot); }
    75% { border-top-color: var(--mbx-hot); border-right-color: #6a3a16; border-bottom-color: var(--mbx-hot); border-left-color: var(--mbx-sun); }
    100% { border-top-color: var(--mbx-sun); border-right-color: var(--mbx-hot); border-bottom-color: #6a3a16; border-left-color: var(--mbx-hot); }
}

.mbx-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 16px 48px;
}
.mbx-rail {
    position: sticky;
    top: calc(var(--mbx-header) + 12px);
    align-self: start;
    border-left: 1px solid var(--mbx-line);
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mbx-rail h2 { margin: 0; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mbx-hot); }
.mbx-rail a { display: block; padding: 6px 0; color: var(--mbx-paper); text-decoration: none; }
.mbx-rail ol { margin: 0; padding-left: 18px; }
.mbx-rail li { margin: 6px 0; }

.mbx-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--mbx-hot);
    background:
        linear-gradient(180deg, transparent 0 55%, rgba(255, 140, 66, 0.18) 55% 56%, transparent 56%),
        repeating-linear-gradient(180deg, rgba(255, 230, 109, 0.08) 0 1px, transparent 1px 14px),
        linear-gradient(180deg, #3a2010, #1a0f07 70%);
    padding: 22px;
}
.mbx-hero-frame { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.mbx-hero-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    align-items: center;
    background: rgba(20, 12, 6, 0.72);
    padding: 12px;
    border: 1px solid var(--mbx-line);
}
.mbx-hero-card img { width: 160px; height: 160px; object-fit: contain; background: #0e0905; }
.mbx-hero-nav {
    width: 44px;
    height: 44px;
    border: 1px solid var(--mbx-sun);
    background: transparent;
    color: var(--mbx-sun);
    cursor: pointer;
    font-size: 22px;
}

.mbx-tile, .mbx-week-card, .mbx-tier, .mbx-card {
    background: var(--mbx-ink);
    border: 1px solid rgba(255, 140, 66, 0.45);
    border-radius: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mbx-tile:hover, .mbx-week-card:hover, .mbx-tier:hover, .mbx-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 28px rgba(255, 140, 66, 0.22);
}
[data-mbx-rise] { opacity: 0; transform: translateY(20px); }
[data-mbx-rise].mbx-is-in { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }

.mbx-quick-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.mbx-quick-item {
    flex: 0 0 140px;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}
.mbx-quick-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #0e0905; border: 1px solid var(--mbx-line); }

.mbx-week-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; padding: 12px; }
.mbx-week-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #0e0905; }

.mbx-tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mbx-tier { padding: 14px; }
.mbx-tier h3 { margin: 0 0 6px; }
.mbx-tier p { margin: 0 0 8px; color: var(--mbx-sun); }
.mbx-tier ul { margin: 0; padding-left: 16px; }

.mbx-poll-opt, .mbx-filter {
    min-height: 44px;
    border: 1px solid var(--mbx-hot);
    background: transparent;
    color: var(--mbx-paper);
    padding: 8px 12px;
    cursor: pointer;
}
.mbx-filter.mbx-is-active, .mbx-poll-opt.mbx-is-active { background: var(--mbx-hot); color: #1a0f07; }

.mbx-disclaimer {
    border-top: 1px solid var(--mbx-line);
    padding: 18px 16px 8px;
    color: var(--mbx-mute);
    font-size: 13px;
}
.mbx-disclaimer p { max-width: 900px; margin: 0 auto; }

.mbx-footer {
    border-top: 1px solid var(--mbx-line);
    background: #140c06;
}
.mbx-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 16px 28px;
}
.mbx-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    justify-content: space-between;
}
.mbx-footer-brand { color: var(--mbx-sun); font-weight: 700; text-decoration: none; white-space: nowrap; }
.mbx-footer-links { flex: 1 1 100%; justify-content: flex-start; }
.mbx-footer-links a { color: var(--mbx-paper); text-decoration: none; font-size: 13px; }
.mbx-footer-links a:hover { color: var(--mbx-sun); }
.mbx-badges { margin-left: auto; }
.mbx-badge {
    display: inline-flex;
    background: #f4f2ea;
    padding: 6px 9px;
    border-radius: 8px;
}
.mbx-badge img { height: 32px; width: auto; }
.mbx-age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--mbx-sun);
    color: var(--mbx-sun);
    font-weight: 700;
}
.mbx-copy { color: var(--mbx-mute); font-size: 12px; margin: 10px 0 0; }

.mbx-age-modal, .mbx-auth {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 200;
    display: none;
    place-items: center;
    padding: 16px;
}
.mbx-age-modal:not([hidden]) { display: grid; }
.mbx-auth.is-open { display: grid; }
.mbx-age-card, .mbx-auth-card {
    width: min(440px, 95vw);
    background: #24160d;
    border: 1px solid var(--mbx-hot);
    padding: 22px;
    position: relative;
}
.mbx-auth-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--mbx-sun);
    font-size: 28px;
    cursor: pointer;
}
.mbx-acct { display: flex; flex-direction: column; gap: 8px; }
.mbx-acct input, .mbx-field {
    min-height: 44px;
    background: #140c06;
    color: var(--mbx-paper);
    border: 1px solid var(--mbx-hot);
    padding: 8px 10px;
}
.mbx-cookie {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 180;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    background: #24160d;
    border: 1px solid var(--mbx-sun);
    padding: 12px;
}
.mbx-cookie[hidden] { display: none; }

.mbx-page-hero { padding: 8px 0 4px; }
.mbx-unlock {
    border: 1px dashed var(--mbx-hot);
    padding: 12px;
}
.mbx-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.mbx-series h2 { margin: 18px 0 8px; }
.mbx-tile {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    padding: 8px;
    position: relative;
    cursor: pointer;
    text-align: left;
    width: 100%;
}
.mbx-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #0e0905; }
.mbx-tile span { padding-top: 8px; }
.mbx-lock {
    position: absolute;
    inset: 8px 8px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(20, 12, 6, 0.82);
    text-align: center;
    padding: 8px;
}
.mbx-game-backdrop, .mbx-game-modal { display: none; }
.mbx-game-backdrop.mbx-is-open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 210; }
.mbx-game-modal.mbx-is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    max-width: 1000px;
    background: #140c06;
    z-index: 220;
    border: 1px solid var(--mbx-hot);
}
.mbx-game-modal iframe { width: 100%; height: 100%; border: 0; }
.mbx-game-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    z-index: 2;
    border: 0;
    background: var(--mbx-sun);
    color: #1a0f07;
    font-size: 26px;
    cursor: pointer;
}
body.mbx-game-open { overflow: hidden; }

.mbx-stage { border: 1px solid var(--mbx-hot); background: #0e0905; height: min(78vh, 820px); }
.mbx-stage iframe { width: 100%; height: 100%; border: 0; }
.mbx-spec { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.mbx-spec li { border: 1px solid var(--mbx-line); padding: 8px 10px; }
.mbx-related { align-items: stretch; }
.mbx-related .mbx-tile { width: 160px; }
.mbx-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mbx-mute); }
.mbx-crumbs a { color: var(--mbx-sun); }

.mbx-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mbx-card { padding: 14px; display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; min-height: 160px; }
.mbx-band { height: 8px; background: linear-gradient(90deg, var(--mbx-hot), var(--mbx-sun)); }

.mbx-board { width: 100%; border-collapse: collapse; }
.mbx-board th, .mbx-board td { text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(255,140,66,0.25); }
.mbx-table-wrap { overflow-x: auto; }

.mbx-note { color: var(--mbx-mute); font-size: 13px; }
.mbx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mbx-you { color: var(--mbx-sun); }

@media (max-width: 992px) {
    .mbx-tier-grid, .mbx-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mbx-shell { grid-template-columns: 1fr; }
    .mbx-rail { position: static; border-left: 0; border-top: 1px solid var(--mbx-line); padding-left: 0; padding-top: 16px; }
}
@media (min-width: 769px) {
    #authButtons2 { display: none !important; }
    .mbx-drawer, .mbx-drawer:not([hidden]) { display: none !important; }
    .mbx-nav-overlay { display: none !important; }
}
@media (max-width: 768px) {
    :root { --mbx-header: 62px; }
    .mbx-burger { display: block; }
    .mbx-nav-side { display: none; }
    .mbx-header-bar { display: grid; grid-template-columns: 1fr auto; }
    .mbx-logo { position: static; transform: none; justify-content: flex-start; }
    .mbx-logo img { height: 36px; width: auto; }
    #accountLink { display: none !important; }
    .mbx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mbx-week-card, .mbx-hero-card, .mbx-split { grid-template-columns: 1fr; }
    .mbx-hero-frame { grid-template-columns: auto 1fr auto; }
    .mbx-game-modal.mbx-is-open { width: 95%; height: 95vh; }
    .mbx-footer-row { flex-direction: column; align-items: flex-start; }
    .mbx-badges { margin-left: 0; }
}
@media (max-width: 480px) {
    .mbx-tier-grid, .mbx-card-grid { grid-template-columns: 1fr; }
    .mbx-hero-card img { width: 100%; height: auto; }
}
@media (max-width: 360px) {
    body { font-size: 14px; }
    .mbx-pad, .mbx-shell { padding-left: 10px; padding-right: 10px; }
}
