/* Cabal Mythic homepage feature showcase */
.page-index {
    --mf-night: #090f17;
    --mf-panel: #121c27;
    --mf-ivory: #f6f2e9;
    --mf-gold: #eac68a;
    --mf-muted: #bac7d2;
}
.page-index .mc-header,
.page-index .mc-header.is-scrolled { background: #0a1119f7; }
.page-index .mc-header::after {
    left: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, #bea16a50 36%, #bea16a50 64%, transparent);
}
.page-index .mc-nav a[aria-current]::after { background: var(--mf-gold); box-shadow: none; }
.page-index .mc-header-actions .btn-gold {
    background: #e5c38c;
    border-color: #eacb98;
    color: #1c170f;
    font-size: .8rem;
}
.page-index .mc-header-actions .btn-gold:hover { background: #f5dbae; }
.page-index .mc-nav a,
.page-index .mc-login,
.page-index .mc-logout { font-size: .81rem; }
@media (min-width: 1151px) {
    .page-index .mc-header-inner { min-height: 72px; }
    .page-index .mc-nav a { padding-block: 23px; }
    .page-index .mc-nav a[aria-current]::after { bottom: 13px; }
}

.mf-hero { background: linear-gradient(112deg, #152130, #101a24 65%, #101925); }
.mf-poster-stage {
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #07111d;
    border-bottom: 1px solid #ae90566b;
}
.mf-poster-stage::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    background: linear-gradient(#071320af, #071320cb), url("images/mythic-features/auto-dungeon-ui.webp") center / cover;
    filter: blur(18px);
}
.mf-hero-art {
    display: block;
    width: min(100%, 1672px);
    cursor: zoom-in;
    box-shadow: 0 0 42px #02070dbc;
}
.mf-hero-art img { display: block; width: 100%; height: auto; }
@media (min-width: 901px) and (min-height: 540px) {
    .mf-hero-art { width: min(100%, 1672px, calc((100svh - 94px) * 1.7768)); }
}
.mf-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding-block: 22px;
}
.mf-hero-copy { max-width: 42rem; }
.mf-hero-copy .message { margin: 0 0 12px; }
.mf-hero h1 {
    margin: 0 0 3px;
    color: #f5d59e;
    font: 500 clamp(1.85rem, 2.7vw, 3rem)/1.15 var(--mc-display);
    letter-spacing: -.045em;
}
.mf-lead { margin: 0; color: #d0dce5; font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.mf-actions { display: flex; gap: 10px; }
.mf-hero-play { flex-shrink: 0; }
.mf-mobile-controls { display: none; }
.mf-label {
    margin: 0;
    color: var(--mf-gold);
    font-family: var(--mc-font);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.mf-rule::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    top: -2px;
    transform: rotate(45deg);
    background: #d2b27c;
}
.mf-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 23px;
    border: 1px solid;
    border-radius: 2px;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.4;
    transition: background .16s, border-color .16s;
}
.mf-action svg { width: 18px; height: 18px; }
.mf-action-primary {
    color: #20190e;
    border-color: #f0d59c;
    background: linear-gradient(115deg, #fae5bb, #dcba7e);
    box-shadow: 0 4px 20px #06101e52, inset 0 0 0 2px #f6e1bb50;
}
.mf-action-primary:hover { background: #ffedca; color: #1b1204; }
.mf-action-secondary { color: #f4f2ed; border-color: #c4d5de66; background: #0715227a; }
.mf-action-secondary:hover { color: #fff; border-color: #ead7b1; background: #142635d9; }
.mf-platform { display: flex; align-items: baseline; gap: 9px; margin: 14px 0 0; font-size: .81rem; color: #b6c6d3; }
.mf-platform a { color: #e4e6e6; text-decoration: underline; text-decoration-color: #e4e6e65e; text-underline-offset: .25em; }
.mf-platform a:hover { color: var(--mf-gold); }
.mf-platform span { color: #ad926a; }

.mf-collection { padding: clamp(26px, 2.8vw, 44px) 0 clamp(32px, 3.4vw, 54px); background: radial-gradient(ellipse at 48% 0%, #18232e70, transparent 70%), var(--mf-night); }
.mf-section-title { display: flex; align-items: center; gap: 22px; margin: 0 0 22px; }
.mf-section-title h2 {
    margin: 0;
    color: var(--mf-ivory);
    font: 500 clamp(1.65rem, 2.35vw, 2.4rem)/1.15 var(--mc-display);
    letter-spacing: -.045em;
}
.mf-rule { position: relative; flex: 1; height: 1px; background: linear-gradient(90deg, #bd9e6c6b, #bfa97c20); }
.mf-rule::after { left: 0; }
.mf-guide { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: .88rem; font-weight: 700; color: #e8c995; }
.mf-guide svg { width: 19px; height: 19px; }
.mf-guide:hover { color: #fff0c9; text-decoration: underline; }
.mf-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.35vw, 21px); }
.mf-card {
    --accent: #e8bf79;
    display: block;
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #9aaec135;
    border-radius: 3px;
    background: linear-gradient(145deg, #192430, #101924 76%);
    color: var(--mf-ivory);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.mf-card-emoji-chat { --accent: #f1b687; }
.mf-card-daily-login { --accent: #9ddfc3; }
.mf-card-freebies { --accent: #d5acec; }
.mf-card:hover, .mf-card:focus-visible { border-color: var(--accent); box-shadow: 0 8px 25px #01081075; }
.mf-card-media { aspect-ratio: 2.22; overflow: hidden; position: relative; background: var(--mf-panel); }
.mf-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.mf-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-bottom: 1px solid #f1deb320;
    background: linear-gradient(0deg, #07142255, transparent 28%);
}
.mf-card-daily-login .mf-card-media img { object-position: center 62%; }
.mf-card-copy { padding: 16px 19px 22px; }
.mf-label { display: block; font-size: .75rem; color: var(--accent, var(--mf-gold)); }
.mf-card h3 { margin: 6px 0 8px; font: 600 clamp(1.14rem, 1.54vw, 1.58rem)/1.18 var(--mc-display); letter-spacing: -.04em; color: var(--mf-ivory); }
.mf-card-copy p { margin: 0; font-size: .97rem; line-height: 1.48; color: var(--mf-muted); }
.mf-expand {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid #e8e4d366;
    border-radius: 50%;
    color: #fff9ed;
    background: #101620a8;
    font: 400 1.15rem/1 Arial, sans-serif;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .mf-card:hover { transform: translateY(-3px); }
    .mf-card:hover .mf-card-media img { transform: scale(1.045); }
}
.page-index .mc-server-bar { background: #101923; border-block: 1px solid #8fa9bb22; }
.page-index .mc-server-grid { padding-block: 18px; }
.page-index .mc-server-grid > div > span:not(.mc-status-dot) { font-size: .78rem; color: #b8c6d1; }
.page-index .mc-server-grid strong { font-size: 1.07rem; }
.page-index .mc-quick-access, .mf-archive-section { background: #0b121b; }
.page-index .mc-quick-grid strong { font-size: .92rem; }
.page-index .mc-quick-grid small { font-size: .8rem; color: #aab8c7; }
.page-index .mc-quick-grid b, .page-index .mc-quick-icon { color: #daba85; }
.mf-archive { border-top: 1px solid #8ea6bc25; color: #c2ced8; }
.mf-archive summary { padding: 14px 0; color: #e1d3bc; font-size: .9rem; font-weight: 700; cursor: pointer; }
.mf-archive summary span { margin-inline-start: 9px; color: #a6b6c4; font-weight: 400; }
.mf-archive nav { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0 0 22px; }
.mf-archive a, .mf-poster-link { color: var(--mf-gold); font-size: .88rem; text-decoration: underline; text-underline-offset: .24em; }
.page-index .mc-world { background: linear-gradient(#101822, #0d1119); }

html.mf-dialog-open { overflow: hidden; }
#mf-feature-dialog {
    position: fixed;
    inset: 0;
    width: min(900px, calc(100% - 36px));
    max-width: none;
    max-height: 89vh;
    max-height: 89dvh;
    padding: 0;
    margin: auto;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #ac9269;
    border-radius: 4px;
    background: #101a25;
    color: var(--mf-ivory);
    box-shadow: 0 30px 90px #000b;
}
#mf-feature-dialog:not([open]) { display: none; }
#mf-feature-dialog::backdrop { background: #030912dd; backdrop-filter: blur(6px); }
#mf-feature-dialog [data-mf-close] {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    width: 43px;
    height: 43px;
    border: 1px solid #f4e6cb9c;
    border-radius: 50%;
    background: #0c131cf2;
    color: #fff4dc;
    cursor: pointer;
    font: 400 1.7rem/1 Arial, sans-serif;
}
.mf-dialog-poster { background: #070b11; border-bottom: 1px solid #c6a76c58; }
.mf-dialog-poster a { display: block; cursor: zoom-in; }
.mf-dialog-poster img { display: block; width: 100%; height: auto; max-height: 58vh; object-fit: contain; }
.mf-dialog-info { padding: clamp(18px, 2.5vw, 30px); }
.mf-dialog-info h2 { margin: 4px 0 8px; font: 500 clamp(1.5rem, 2.7vw, 2.4rem)/1.22 var(--mc-display); color: var(--mf-ivory); }
.mf-dialog-info p:not(.mf-label) { max-width: 68ch; margin: 0 0 12px; color: #d3dee5; font-size: 1rem; line-height: 1.55; }
.mf-rewards { margin: 0 0 14px; }
.mf-rewards div { display: grid; grid-template-columns: minmax(6rem, 8rem) 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid #9baebe2b; }
.mf-rewards dt { color: var(--mf-gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.mf-rewards dd { margin: 0; color: #e2e9ee; }

@media (max-width: 1000px) {
    .mf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mf-card-media { aspect-ratio: 2.65; }
    .mf-card h3 { font-size: 1.4rem; }
}
@media (max-width: 700px) {
    .mf-poster-stage::before { display: none; }
    .mf-hero-inner { display: grid; gap: 13px; padding-block: 18px 23px; }
    .mf-hero h1 { font-size: 1.8rem; }
    .mf-actions { flex-wrap: wrap; gap: 9px; }
    .mf-action { min-height: 45px; padding: 10px 15px; }
    .mf-platform { margin-top: 9px; }
    .mf-mobile-controls {
        display: block;
        padding: 8px 0 7px;
        background: #09121d;
        border-bottom: 1px solid #9ab1c332;
    }
    .mf-lenses {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: min(94%, 506px);
        margin: 0 auto;
        padding: 0;
        min-inline-size: 0;
        border: 0;
    }
    .mf-lenses legend, .mf-lenses input {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        clip-path: inset(50%);
        overflow: hidden;
        white-space: nowrap;
    }
    .mf-lenses label {
        padding: 8px 6px;
        border-bottom: 2px solid #97aec131;
        color: #b3c2d0;
        cursor: pointer;
        font-size: .85rem;
        font-weight: 700;
        line-height: 1.5;
        text-align: center;
    }
    .mf-lenses input:checked + label { border-color: #edcd92; color: #f6d59a; }
    .mf-lenses input:focus-visible + label { outline: 2px solid var(--mf-gold); outline-offset: -2px; }
    .mf-lens { display: none; grid-column: 1 / -1; margin: 0; }
    #mf-selector:checked ~ .mf-selector-panel, #mf-settings:checked ~ .mf-settings-panel { display: block; }
    .mf-lens img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
    .mf-section-title { gap: 12px; margin-bottom: 16px; }
    .mf-guide { font-size: .81rem; }
    .mf-guide svg { width: 16px; }
    .mf-cards { gap: 12px; }
    .mf-card-media { aspect-ratio: 1.8; }
    .mf-card-copy { padding: 12px; }
    .mf-card h3 { font-size: clamp(1.05rem, 4.1vw, 1.4rem); margin-block: 5px; }
    .mf-card-copy p { font-size: .89rem; line-height: 1.45; }
    .mf-label { font-size: .69rem; letter-spacing: .1em; }
    .mf-expand { width: 21px; height: 21px; top: 6px; right: 6px; font-size: 1rem; }
    .mf-archive summary span { display: inline-block; }
}
@media (max-width: 400px) {
    .mf-section-title { justify-content: space-between; }
    .mf-section-title .mf-rule { display: none; }
    .mf-guide { white-space: nowrap; }
}
@media (max-width: 370px) {
    .mf-cards { grid-template-columns: 1fr; }
    .mf-card-media { aspect-ratio: 2.6; }
    .mf-card-copy { padding: 14px 16px; }
    .mf-card h3 { font-size: 1.3rem; }
    .mf-action { padding-inline: 12px; }
}
