/*
 * responsive.css — Phase J
 *
 * Loaded AFTER styles.css / front_styles.css so these rules win
 * via cascade order. Design principle: don't touch the original
 * stylesheets; override the fixed-pixel layout with media-query
 * scoped rules here. Reverting this file reverts the mobile work
 * cleanly.
 *
 * Breakpoints:
 *   Desktop  >= 1025px        — unchanged (original 1000px grid)
 *   Tablet   721–1024px       — fluid rows, right column collapses
 *   Mobile  <= 720px          — menu/content/right stack vertically,
 *                                profile stats wrap, tables scroll
 *
 * The original game uses image-based panel backgrounds at fixed
 * widths (outer_wrap_bg.png, content_small_bg_02.png, etc). On
 * narrow screens those don't tile cleanly, so we bias toward
 * solid colors from the same palette rather than stretching
 * images.
 */

/* ---------- Universal baseline ---------- */
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }


/* =====================================================
 * TABLET (<=1024px)
 * ===================================================== */
@media (max-width: 1024px) {

    /* The fixed 1000px row becomes fluid with a safety max. */
    .row { width: auto !important; max-width: 1000px; padding: 0 10px; box-sizing: border-box; }

    /* Stretching the panel background images past their native
     * width looks bad. Kill the image and use solid colors that
     * match the pixel-average of each. */
    #outer                                    { background: #c1c1c1 !important; }
    #small_content_wrap                       { background: #e2e2e2 !important; }
    #small_content_wrap #header_section       { background: #e2e2e2 !important; }
    #small_content_wrap #footer_section       { background: #bdbdbd !important; }

    /* The right column drops beneath the main content. */
    #right { float: none !important; width: auto !important; margin: 14px 0 0 0; }
    #right #members_box,
    #right #random_players_box { margin: 0 0 14px 0; width: auto !important; background: #fafafa; border: 1px solid #c5c5c5; border-radius: 5px; padding: 10px; }

    /* Let the main content flex into the freed space. */
    #main #content { width: auto !important; float: none !important; }
}


/* =====================================================
 * MOBILE (<=720px)
 * ===================================================== */
@media (max-width: 720px) {

    body      { font-size: 13px; }  /* slightly up for touch readability */
    .row      { padding: 0 8px; }

    /* -------- Header: profile info + stat bars -------- */
    #header                           { height: auto !important; padding-bottom: 8px; }
    #header #profile_info             { float: none !important; width: auto !important; margin: 10px 8px; padding: 10px; background: rgba(0,0,0,0.04); border-radius: 4px; display: flex; gap: 12px; align-items: center; }
    #header #profile_info .avatar     { flex: 0 0 auto; }
    #header #profile_info .info       { flex: 1; }

    #header #profile_stats            { float: none !important; margin: 4px 8px 10px 8px; }
    #header #profile_stats .profile_stat {
        float: none !important;
        width: auto !important;
        margin: 3px 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    #header #profile_stats .profile_stat .stat_name  { flex: 0 0 110px; }
    #header #profile_stats .profile_stat .stat_bar   { flex: 1; }
    /* Stretch the outer track to fill the available width. */
    #header #profile_stats .profile_stat .stat_bar > div {
        width: 100% !important;
        max-width: 100%;
    }

    /* -------- Main: stack menu / content / right -------- */
    #main #menu      { float: none !important; width: 100% !important; margin: 0 0 10px 0; }
    #main #menu .top,
    #main #menu .middle,
    #main #menu .bottom { width: 100% !important; background: none !important; background-color: #2a2a2a !important; height: auto !important; }
    #main #menu .middle { padding: 4px 0; }
    #main #menu ul.menu {
        width: auto !important;
        padding: 6px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 4px;
    }
    #main #menu ul.menu li {
        list-style: none;
        background: #444;
        padding: 10px 8px;
        border-radius: 3px;
        text-align: center;
        min-height: 38px;       /* touch target */
        box-sizing: border-box;
    }
    #main #menu ul.menu li a { color: #fff; text-decoration: none; display: block; }

    #main #content { padding: 0; }
    #content .pad  { padding: 10px !important; }

    /* -------- Tables: allow horizontal scroll rather than break -------- */
    /* Wrap any table in a scroll container effect. */
    table {
        max-width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    /* But preserve grid/card layouts in the dashboards we already
     * built with CSS Grid (preferences / index / explore / tutorial
     * etc.) — those are already mobile-friendly and don't need
     * the table-scroll hack. */
    .prefs-wrap table, .dash table, .exp-wrap table, .tut-wrap table {
        display: table; white-space: normal;
    }

    /* -------- Forms -------- */
    form input[type="text"],
    form input[type="password"],
    form input[type="email"],
    form input[type="number"],
    form input[type="search"],
    form input[type="tel"],
    form select,
    form textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px;
        font-size: 15px;   /* >= 16px actually prevents iOS auto-zoom */
    }
    form input[type="submit"],
    form input[type="button"],
    form button {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 40px;
    }

    /* -------- Footer -------- */
    .follow_section   { float: none !important; text-align: center; }
    .copyright        { float: none !important; text-align: center; padding: 10px; }

    /* -------- Phase UX dashboard hero cards (index.php) -------- */
    .dash-hero { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important; }
}


/* =====================================================
 * FRONT PAGES (login / register / forgot / reset /
 * about / contact / faq / tos / lockout)
 * These use front_styles.css with a similar 3-column
 * shape: login panel, menu, content, right column.
 * ===================================================== */
@media (max-width: 1024px) {
    /* The login panel sits top-right on desktop; collapse it. */
    #header .login_panel { float: none !important; width: auto !important; margin: 10px auto; max-width: 400px; }
    #header #header      { height: auto !important; }
}

@media (max-width: 720px) {
    /* Main columns stack. */
    #main #menu, #main #content, #main #right,
    div#menu, div#content, div#right {
        float: none !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Menu: convert the vertical strip to a 2-column grid of
     * touch-friendly buttons. */
    #main #menu .middle          { padding: 6px; }
    #main #menu ul.menu          {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    #main #menu ul.menu li       {
        background: rgba(0,0,0,0.5);
        border-radius: 4px;
        text-align: center;
        padding: 10px 6px;
    }
    #main #menu ul.menu li a     { color: #fff; text-decoration: none; display: block; }

    /* Members / random-players right-column boxes stretch full-width. */
    #right #members_box,
    #right #random_players_box {
        margin: 8px 0;
        width: auto !important;
        background: #fafafa;
        border: 1px solid #c5c5c5;
        border-radius: 5px;
        padding: 10px;
        min-height: 0 !important;
        height: auto !important;
    }
    #right #random_players_box .avatar { float: none; margin: 0 auto 8px; }
    #right #random_players_box .info   { float: none; }
}


/* =====================================================
 * Narrow mobile (<=420px) — tighten further
 * ===================================================== */
@media (max-width: 420px) {
    body      { font-size: 13px; }
    .row      { padding: 0 6px; }
    #header #profile_stats .profile_stat .stat_name { flex: 0 0 90px; font-size: 11px; }
    #main #menu ul.menu { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
 * Audit 2026-10-06 (MCL-020): on phones the nav grid overflowed the
 * screen (436px wide on a 375px phone) because styles.css fixes every
 * menu item and link at 200px with a more specific selector than the
 * grid rules above. Let the items size to their grid cell.
 * ===================================================== */
@media (max-width: 720px) {
    #main #menu .middle { box-sizing: border-box; }
    #main #menu .middle ul.menu { width: auto !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #main #menu .middle ul.menu li,
    #main #menu .middle ul.menu li a {
        width: auto !important;
        height: auto !important;
        min-width: 0;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
}
@media (max-width: 720px) {
    /* MCL-020: the footer's fixed 370px copyright block + 40px margin
     * pushed every page to 436px on phones. */
    #footer_container .copyright,
    #footer_container .follow_section { width: auto !important; margin-left: 0 !important; box-sizing: border-box; }
    .gap { max-width: 100%; }
}
@media (max-width: 720px) {
    /* MCL-020: stray <br>/spacer elements inside the menu list became empty grid cells. */
    #main #menu .middle ul.menu > :not(li) { display: none !important; }
}
@media (max-width: 720px) {
    /* MCL-020: fixed-width divider on the login/sign-up pages overflowed phones by ~25px. */
    .divider { width: auto !important; max-width: 100%; }
    /* Legacy mobile/index.php header image is a fixed 500px. */
    img { max-width: 100%; height: auto; }
}

/* --------------------------------------------------------------------
 * Site scrollbar (2026-10-07): dark track, amber thumb, matching the
 * chat dock. Chrome/Edge/Safari use the ::-webkit-scrollbar rules
 * (Chrome ignores them once scrollbar-color is set, so that is only
 * given to Firefox). Text areas and other scroll boxes get the same
 * look; the chat dock styles its own panels in chat.css.
 * ------------------------------------------------------------------ */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0f1012; }
::-webkit-scrollbar-thumb {
    background: #a86300; border-radius: 7px;
    border: 3px solid #0f1012; background-clip: padding-box; min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background-color: #dc8100; }
::-webkit-scrollbar-thumb:active { background-color: #ffad33; }
::-webkit-scrollbar-corner { background: #0f1012; }
::-webkit-scrollbar-button { display: none; }
@supports (-moz-appearance: none) {
    html { scrollbar-color: #a86300 #0f1012; }
}

/* =====================================================
 * Phone header + nav (2026-10-07, Marc: "the mobile header and nav look
 * very broken"). Before: the logo vanished (the tablet rule removes the
 * header background it lives in), the profile and stat boxes kept their
 * fixed 253px background images while their contents stretched, and all
 * 27 menu buttons stacked up ~900px of stone texture before the page.
 * Now, on tablets and phones: the logo band is back, with a dark player
 * card and a two-column stat grid (side by side on tablets, stacked on
 * phones). On phones the menu also folds behind a Menu button (header.php)
 * that shows unread mail and events.
 * ===================================================== */
.mnav-toggle { display: none; }

@media (max-width: 1024px) {
    /* Logo band: the original header art, scaled so the whole logo fits, cropped to the wall.
     * Tablets get the same dark cards, side by side; on phones they stack. */
    #header {
        height: auto !important;
        background: #1b1c1f !important;
        padding: 0 8px 8px !important;
        border-bottom: 1px solid #000;
        font-family: 'Open Sans', Arial, sans-serif;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: stretch;
    }
    #header::before {
        content: '';
        display: block;
        flex: 0 0 calc(100% + 16px);
        height: 112px;
        margin: 0 -8px;
        background: #2a2b2e url(../images/content_small_bg_01.png) no-repeat center top / 860px auto;
        border-bottom: 1px solid #000;
    }
    #header > .spacer { display: none; }

    /* Player card. */
    #header #profile_info {
        background: #26272b !important;
        width: auto !important;
        height: auto !important;
        flex: 1 1 260px;
        margin: 0 !important;
        padding: 8px 10px !important;
        border: 1px solid #000;
        border-radius: 6px;
        display: flex;
        gap: 10px;
        align-items: center;
        color: #c9c9c9;
        font-size: 13px;
        line-height: 1.5;
    }
    #header #profile_info .avatar { width: auto; margin: 0 !important; float: none !important; }
    #header #profile_info .avatar img { width: 44px; height: auto; border-radius: 5px; display: block; }
    #header #profile_info .info { float: none !important; margin: 0 !important; padding: 0 !important; color: #c9c9c9; font: 13px/1.5 'Open Sans', Arial, sans-serif; }
    #header #profile_info .info a { color: #f0a92e; font-weight: 700; text-decoration: none; }
    #header #profile_info > .spacer { display: none; }

    /* Stats: two columns of label + bar; experience spans the row. */
    #header #profile_stats {
        flex: 1 1 340px;
        background: #26272b !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 8px 10px 10px !important;
        border: 1px solid #000;
        border-radius: 6px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 7px 14px;
        box-sizing: border-box;
    }
    #header #profile_stats .profile_stat { display: block !important; width: auto !important; margin: 0 !important; float: none !important; }
    #header #profile_stats .profile_stat:last-child { grid-column: 1 / -1; }
    #header #profile_stats .profile_stat .spacer { display: none; }
    #header #profile_stats .profile_stat .stat_name {
        display: block;
        flex: none;
        width: auto;
        margin: 0 0 3px;
        font: 600 12px/1.3 'Open Sans', Arial, sans-serif;
        color: #e3dfd6;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #header #profile_stats .profile_stat .stat_name .stat { color: #a2a3a6; font-weight: 400; }
    #header #profile_stats .profile_stat .stat_bar { width: auto; margin: 0; float: none; }
    #header #profile_stats .profile_stat .stat_bar > div {
        width: 100% !important;
        height: 6px !important;
        float: none !important;
        background: #3a3c41 !important;
        border-radius: 3px;
        overflow: hidden;
    }
    #header #profile_stats .profile_stat .stat_bar > div > div { height: 6px !important; }
}

@media (max-width: 720px) {
    /* Menu folds behind a button; open, it is a compact grid of plain buttons. */
    #main #menu { margin: 0 0 10px !important; }
    #main #menu .mnav-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 8px 0 0;
        padding: 10px 12px;
        background: #26272b;
        color: #fff;
        border: 1px solid #000;
        border-radius: 6px;
        font: 800 14px 'Open Sans', Arial, sans-serif;
        letter-spacing: .5px;
        text-transform: uppercase;
        cursor: pointer;
        min-height: 44px;
    }
    #main #menu .mnav-badges { display: flex; gap: 6px; text-transform: none; letter-spacing: 0; }
    #main #menu .mnav-badges b { background: #f0a92e; color: #1b1206; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
    #main #menu.mnav-open .mnav-toggle { border-radius: 6px 6px 0 0; border-bottom-color: #3c3f44; }
    #main #menu .top,
    #main #menu .bottom { display: none !important; }
    #main #menu .middle { display: none !important; }
    #main #menu.mnav-open .middle {
        display: block !important;
        background: #1f2023 !important;
        border: 1px solid #000;
        border-top: 0;
        border-radius: 0 0 6px 6px;
        padding: 6px !important;
    }
    #main #menu .middle ul.menu { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 5px !important; padding: 0 !important; margin: 0 !important; }
    #main #menu .middle ul.menu li { background: #2d2f33 !important; border: 1px solid #111; border-radius: 4px; padding: 0 !important; min-height: 0; }
    #main #menu .middle ul.menu li a {
        background: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 4px 6px;
        text-align: center;
        font: 600 12.5px/1.2 'Open Sans', Arial, sans-serif;
        color: #ece8df !important;
        text-shadow: none;
    }
    #main #menu .middle ul.menu li a:hover,
    #main #menu .middle ul.menu li a:active { background: #3a3c41 !important; color: #f0a92e !important; }
}
@media (max-width: 340px) {
    #main #menu .middle ul.menu { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* =====================================================
 * Live stats (2026-10-10). The header updates without a reload
 * (includes/live_stats.php, js/mcl_live.js).
 * ===================================================== */

/* A stat whose number went up glows the game's green for about 1.2 s, one that went
 * down its red, then fades back. The server marks the stats a page's own action
 * changed; the script marks what a poll or an in-place action changes. */
@keyframes mcl-up-t   { from { color: #83ff76; text-shadow: 0 0 6px rgba(131, 255, 118, .9); } }
@keyframes mcl-down-t { from { color: #ff7c7c; text-shadow: 0 0 6px rgba(255, 124, 124, .9); } }
@keyframes mcl-up-b   { from { box-shadow: 0 0 0 1px #83ff76, 0 0 8px 2px rgba(131, 255, 118, .85); } }
@keyframes mcl-down-b { from { box-shadow: 0 0 0 1px #ff7c7c, 0 0 8px 2px rgba(255, 124, 124, .85); } }
.profile_stat.mcl-up .stat_name, .profile_stat.mcl-up .stat_name .stat,
.mcl-pin-stat.mcl-up .mcl-pin-v { animation: mcl-up-t 1.2s ease-out; }
.profile_stat.mcl-down .stat_name, .profile_stat.mcl-down .stat_name .stat,
.mcl-pin-stat.mcl-down .mcl-pin-v { animation: mcl-down-t 1.2s ease-out; }
.profile_stat.mcl-up .stat_bar > div, .mcl-pin-stat.mcl-up .mcl-pin-bar { animation: mcl-up-b 1.2s ease-out; }
.profile_stat.mcl-down .stat_bar > div, .mcl-pin-stat.mcl-down .mcl-pin-bar { animation: mcl-down-b 1.2s ease-out; }

/* Jail / hospital strip (was inline in includes/lockup.php; here so a strip the
 * script adds when you're locked up mid-page looks the same). */
.lk-strip { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 7px 12px; border-radius: 6px; font: 600 13px 'Open Sans', Arial, sans-serif; color: #f3eee4; background: #2b2c30; border: 1px solid #111; border-left: 4px solid #f0a92e; }
.lk-strip.hosp { border-left-color: #3fb3a8; }
.lk-strip.out { border-left-color: #83ff76; }
.lk-strip .ic { font-size: 15px; }
.lk-strip .t { flex: 1; }
.lk-strip b { color: #fff; }
#content .lk-strip a { color: #f0a92e; text-decoration: none; white-space: nowrap; }
#content .lk-strip.hosp a { color: #5fd0c4; }

/* "X is attacking you": a small notice that doesn't block the page or cover the stats. */
.mcl-atk {
    position: fixed; top: 12px; right: 16px; z-index: 995;
    display: flex; align-items: center; gap: 10px; max-width: 360px; box-sizing: border-box;
    padding: 10px 10px 10px 12px; border-radius: 6px;
    background: #2b2c30; color: #f3eee4; border: 1px solid #111; border-left: 4px solid #ff7c7c;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    font: 600 13px/1.35 'Open Sans', Arial, sans-serif;
    animation: mcl-atk-in .25s ease-out;
}
.mcl-atk .mcl-atk-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mcl-atk a { color: #f0a92e; text-decoration: none; white-space: nowrap; }
.mcl-atk a:hover, .mcl-atk a:focus { text-decoration: underline; }
.mcl-atk button { flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #c9c9c9; font: 700 18px/1 Arial, sans-serif; cursor: pointer; }
.mcl-atk button:hover, .mcl-atk button:focus { background: #3a3c41; color: #fff; }
/* js/mcl_live.js places it (atkSpot): below the header, the pinned strip or a jail / hospital strip,
 * right-aligned to the content column, never over the chat dock. These are the fallbacks. */
@keyframes mcl-atk-in { from { opacity: 0; transform: translateY(-8px); } }

/* Phones: the stat strip pinned to the top once the header scrolls away
 * (js/mcl_live.js turns it on; never on desktop). Fixed, so nothing moves. */
#mcl-pin { display: none; }
@media (max-width: 1024px) {
    #mcl-pin.on {
        display: flex; gap: 8px;
        position: fixed; top: 0; left: 0; right: 0; z-index: 990;
        padding: 5px 16px 6px; box-sizing: border-box;
        background: rgba(27, 28, 31, .97); border-bottom: 1px solid #000;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
        font: 600 11px/1.25 'Open Sans', Arial, sans-serif; color: #e3dfd6;
        animation: mcl-pin-in .18s ease-out;
    }
    #mcl-pin .mcl-pin-stat { flex: 1 1 0; min-width: 0; }
    #mcl-pin .mcl-pin-l { display: block; color: #a2a3a6; font-weight: 400; font-size: 10px; }
    #mcl-pin .mcl-pin-v { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #mcl-pin .mcl-pin-bar { display: block; height: 4px; margin-top: 2px; border-radius: 2px; background: #3a3c41; overflow: hidden; }
    #mcl-pin .mcl-pin-fill { display: block; height: 100%; background: #68c4d6; }
    #mcl-pin .mcl-pin-hp { background: #ff7c7c; }
}
@media (max-width: 720px) {
    .mcl-atk { left: 16px; right: 16px; max-width: none; }
}
@keyframes mcl-pin-in { from { transform: translateY(-100%); } }

@media (prefers-reduced-motion: reduce) {
    .profile_stat.mcl-up .stat_name, .profile_stat.mcl-up .stat_name .stat, .profile_stat.mcl-down .stat_name, .profile_stat.mcl-down .stat_name .stat,
    .profile_stat.mcl-up .stat_bar > div, .profile_stat.mcl-down .stat_bar > div,
    .mcl-pin-stat.mcl-up .mcl-pin-v, .mcl-pin-stat.mcl-down .mcl-pin-v, .mcl-pin-stat.mcl-up .mcl-pin-bar, .mcl-pin-stat.mcl-down .mcl-pin-bar,
    .mcl-atk, #mcl-pin.on { animation: none !important; }
}

/* Donator banner (2026-10-13): the thin VIP strip across the top of every logged-in page; it replaces
 * the old orange "Donate" button (header.php, menuarea()). It is one link to donate.php. The art is
 * Graphic-Novel Crime (images/store/vip-strip-*.webp, vip-case.webp); every word on it is live HTML.
 * The size comes from the width of the strip itself (container queries), not the screen, so it
 * stays right in the 700px content column, a phone-width one and anything between. */
.mcl-vip { container: mcl-vip / inline-size; }
.mcl-vip-link {
    position: relative; display: flex; align-items: center; gap: 14px; box-sizing: border-box; width: 100%;
    margin: clamp(22px, 5.6cqi, 40px) 0 16px;   /* room for the briefcase and crown that climb out of the top edge */
    min-height: clamp(62px, 11cqi, 80px); padding: 6px clamp(8px, 2cqi, 14px) 6px clamp(88px, 26cqi, 196px);
    border: 2px solid #0b0b0c; border-radius: 8px; background: #17181b;
    box-shadow: inset 0 0 0 1px #b57610, 0 3px 10px rgba(0, 0, 0, .4);
    color: #f3eee4; text-decoration: none; font: 600 13px/1.3 'Open Sans', Arial, sans-serif;
}
.mcl-vip-link:hover, .mcl-vip-link:focus { color: #f3eee4; text-decoration: none; }
.mcl-vip-link:focus-visible { outline: 2px solid #ffbf4d; outline-offset: 3px; }
/* the art sits in its own clipped layer so the briefcase can climb out of the top edge */
.mcl-vip-art { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; }
.mcl-vip-bg { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.mcl-vip-art::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px) 0 0 / 6px 6px,
        linear-gradient(90deg, rgba(14, 14, 16, 0) 0%, rgba(14, 14, 16, 0) 22%, rgba(14, 14, 16, .66) 40%, rgba(14, 14, 16, .88) 58%, rgba(14, 14, 16, .94) 100%),
        radial-gradient(circle at 11% 62%, rgba(255, 191, 77, .4), rgba(255, 191, 77, 0) 38%);
}
.mcl-vip-link:hover .mcl-vip-bg { filter: brightness(1.12); }
.mcl-vip-icon {
    position: absolute; left: clamp(6px, 1.4cqi, 12px); bottom: 3px; z-index: 2; width: clamp(70px, 14.5cqi, 106px); height: auto;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); transition: transform .18s ease-out;
}
.mcl-vip-link:hover .mcl-vip-icon { transform: translateY(-3px) rotate(-3deg); }
.mcl-vip-copy { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-shadow: 0 1px 0 #000, 0 0 9px rgba(0, 0, 0, .9); }
.mcl-vip-kicker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #ffbf4d; }
.mcl-vip-head { font-size: clamp(14px, 2.7cqi, 19px); font-weight: 800; line-height: 1.15; color: #fff; }
.mcl-vip-sub { font-size: clamp(11px, 1.75cqi, 12.5px); font-weight: 600; color: #e6dfd0; }
.mcl-vip-go {
    position: relative; z-index: 1; flex: none; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px;
    border: 1px solid #8a5408; border-radius: 5px; background: linear-gradient(180deg, #ffbf4d, #dc8100);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 2px 4px rgba(0, 0, 0, .45);
    color: #1b1206; font-size: 12.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; text-shadow: none; white-space: nowrap;
    transition: transform .15s ease-out, filter .15s;
}
.mcl-vip-go::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-18deg);
    animation: mcl-vip-shine 5.5s ease-in-out 1.5s infinite;
}
.mcl-vip-link:hover .mcl-vip-go { transform: translateY(-1px); filter: brightness(1.07); }
@keyframes mcl-vip-shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
/* narrower strips: the line under the headline goes first, then the button shrinks to its label */
@container mcl-vip (max-width: 579px) {
    .mcl-vip-sub { display: none; }
    .mcl-vip-go { padding: 8px 11px; }
}
@container mcl-vip (max-width: 419px) {
    .mcl-vip-kicker { font-size: 9px; letter-spacing: 1.5px; }
    .mcl-vip-k-long, .mcl-vip-go .mcl-vip-go-long { display: none; }
    .mcl-vip-go { padding: 8px 11px; font-size: 11.5px; letter-spacing: .3px; }
    .mcl-vip-link { gap: 8px; }
}
@container mcl-vip (max-width: 339px) {
    .mcl-vip-head { font-size: 13.5px; }
    .mcl-vip-go { padding: 7px 9px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .mcl-vip-go::after { animation: none; display: none; }
    .mcl-vip-icon, .mcl-vip-go { transition: none; }
}
