/* Live menu preview: the CS2 ImGui menu rebuilt in HTML, 1:1 with the in-game one (708x564, values from ui/theme.cpp).
   It is laid out at its real size and scaled as a whole (transform) to the width of its box, so it looks the same everywhere. */

@font-face { font-family: "AxMont"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "AxMont"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "AxIcons"; font-display: block; src: url("../fonts/menu-icons.woff2") format("woff2"); }
@font-face { font-family: "AxEye"; font-display: block; src: url("../fonts/menu-eye.woff2") format("woff2"); }
@font-face { font-family: "AxWeapons"; font-display: block; src: url("../fonts/menu-weapons.woff2") format("woff2"); }

.mp-wrap { position: relative; width: 100%; aspect-ratio: 708 / 564; overflow: clip; border-radius: 6px; }
.mp-wrap[hidden], [data-mp-fallback][hidden] { display: none !important; }

.mp {
    /* accent as r g b, so it can be used with any alpha; the "Menu color" setting rewrites these three */
    --a: 232 67 84;
    --a-l: 241 70 87;
    --a-d: 209 60 76;
    --mesh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' shape-rendering='crispEdges' fill='%23fff'%3E%3Crect width='1' height='1' fill-opacity='.067'/%3E%3Crect x='2' y='2' width='1' height='1' fill-opacity='.067'/%3E%3Crect x='1' y='3' width='1' height='1' fill-opacity='.05'/%3E%3Crect x='3' y='1' width='1' height='1' fill-opacity='.05'/%3E%3Crect x='1' y='1' width='1' height='1' fill-opacity='.027'/%3E%3Crect x='3' y='3' width='1' height='1' fill-opacity='.027'/%3E%3C/svg%3E");

    position: absolute; left: 0; top: 0;
    width: 708px; height: 564px;
    transform-origin: 0 0;
    transform: scale(var(--mp-scale, 1));
    box-sizing: border-box;
    border: 1px solid #2c2c2c; border-radius: 5px;
    background: #060606;
    box-shadow: inset 0 0 0 1px #0b0b0b;
    color: #cdcdd2;
    font: 500 13px/1 "AxMont", "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0;
    text-align: left;
    user-select: none; -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    contain: layout paint;
}
.mp *, .mp *::before, .mp *::after { box-sizing: border-box; }
/* the site styles every <button>: none of that in here (the hover background comes from --hbg, transparent by default) */
:where(.mp) button { all: unset; box-sizing: border-box; cursor: pointer; }
.mp button:hover { background: var(--hbg, transparent); text-decoration: none; }
.mp button:focus-visible, .mp [tabindex]:focus-visible { outline: 1px solid rgb(var(--a) / .7); outline-offset: 2px; }

/* icons ------------------------------------------------------------------------------------ */
.mp-i { display: inline-block; flex: none; font: normal 400 16px/1 "AxIcons"; font-style: normal; speak: none; }
.mp-i-eye { font-family: "AxEye"; }
.mp-i-w { font-family: "AxWeapons"; }
.mp-mask { width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mp-mask-ragebot { --m: url("ragebot.png"); }
.mp-mask-antiaim { --m: url("antiaim.png"); }
.mp-mask-movement { --m: url("movement.png"); }
.mp-svg { display: inline-block; flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* sidebar ---------------------------------------------------------------------------------- */
.mp-side { position: absolute; left: 0; top: 0; width: 66px; height: 100%; }
.mp-tab {
    position: absolute; left: 12px; width: 48px; height: 30px;
    display: flex; align-items: center; justify-content: center; padding-right: 2px;
    color: #565656; font-size: 20px;
    transition: color .18s;
}
.mp-tab .mp-i { font-size: 20px; }
.mp-tab:hover { color: #a1a1a1; }
.mp-tab.on { color: rgb(var(--a)); }
.mp-sel {
    position: absolute; left: 18px; width: 34px; height: 32px; border-radius: 5px;
    background: linear-gradient(90deg, rgb(var(--a) / .24), rgb(var(--a) / .05));
    box-shadow: inset 0 0 0 1px rgb(var(--a) / .22), 0 0 18px rgb(var(--a) / .1);
    transition: transform .28s cubic-bezier(.3, .7, .2, 1);
    pointer-events: none;
}
.mp-sel::before { content: ""; position: absolute; left: 0; top: 10px; width: 2px; height: 12px; border-radius: 1px; background: rgb(var(--a)); }

.mp-avatar {
    position: absolute; left: 23px; top: 440px; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #181818; box-shadow: inset 0 0 0 1px #1f1f1f;
    color: #58585e;
}
.mp-avatar .mp-i { font-size: 12px; }
.mp-side-btn { position: absolute; left: 22px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: #565656; transition: color .18s; }
.mp-side-btn:hover { color: #d0d0d0; }
.mp-side-btn .mp-i { font-size: 17px; }

/* tooltips (sidebar to the right, others below) */
.mp-tip {
    position: absolute; z-index: 30;
    padding: 7px 10px; border-radius: 3px;
    background: #151515; box-shadow: 0 0 0 1px #1d1d1f, 0 6px 16px rgb(0 0 0 / .5);
    color: #b4b4b8; font-size: 12.5px; font-weight: 700; white-space: nowrap;
    opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s;
    pointer-events: none;
}
.mp-tip.show { opacity: 1; transform: none; }
.mp-tip small { display: block; margin-top: 4px; color: #6e6e74; font-size: 11.5px; font-weight: 500; }

/* sub tabs --------------------------------------------------------------------------------- */
.mp-subs { position: absolute; left: 81px; top: 16px; height: 36px; display: flex; gap: 8px; transition: opacity .14s; }
.mp-sub {
    position: relative; display: flex; align-items: flex-start; gap: 8px; height: 34px; padding: 6px 14px 0 0;
    color: #565656; font-size: 14px; font-weight: 700; white-space: nowrap;
    transition: color .2s;
}
.mp-sub .mp-i, .mp-sub .mp-svg { font-size: 16px; margin-top: -1px; }
.mp-sub:hover { color: #3a3a3a; }
.mp-sub span { position: relative; padding-top: 1px; }
.mp-sub span::after {
    content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; border-radius: 1px;
    background: rgb(var(--a)); transform: scaleX(0); transition: transform .25s cubic-bezier(.3, .7, .2, 1);
}
.mp-sub.on { color: #ebebeb; }
.mp-sub.on .mp-i, .mp-sub.on .mp-svg { color: rgb(var(--a)); }
.mp-sub.on span::after { transform: scaleX(1); }
.mp-fade { opacity: 0 !important; }

/* content panel ---------------------------------------------------------------------------- */
.mp-panel {
    position: absolute; left: 66px; top: 56px; width: 628px; height: 494px; border-radius: 6px;
    background: var(--mesh) 0 0 / 4px 4px repeat, #090909;
    box-shadow: inset 0 0 0 1px #111, 0 0 0 1px #050505;
}
.mp-view {
    position: absolute; left: 15px; top: 14px; right: 9px; bottom: 14px;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: none;
    transition: opacity .14s;
}
.mp-view::-webkit-scrollbar { display: none; }
.mp-cols { display: grid; grid-template-columns: 293px 293px; column-gap: 18px; align-items: start; }
.mp-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* like the menu: every card keeps its content height, the last one in a column stops at the bottom of the view and scrolls */
.mp-col { max-height: var(--mp-colh, 466px); }
.mp-col > .mp-card { flex: none; }
/* when the cards above leave little room (Global / Snipers add Auto scope) the last one keeps a few rows and the page scrolls to it, like the menu */
.mp-col > .mp-card:last-child { flex: 0 1 auto; min-height: var(--mp-minh, 0); }
.mp-full { margin-top: 0; }
.mp-cols + .mp-full { margin-top: 10px; }

/* cards (ui::begin_child) */
.mp-card {
    position: relative; display: flex; flex-direction: column; min-height: 0;
    border-radius: 6px;
    background: linear-gradient(#101013, #0a0a0c);
    box-shadow: inset 0 0 0 1px #222227, 0 0 0 1px rgb(2 2 3 / .9), 0 7px 10px -2px rgb(0 0 0 / .45);
}
.mp-card::before { /* light line along the top edge, strongest in the middle */
    content: ""; position: absolute; left: 6px; right: 6px; top: 1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .07), transparent);
}
.mp-card-h {
    position: relative; flex: none; display: flex; align-items: center; gap: 9px; height: 43px; padding-left: 19px;
    border-radius: 6px 6px 0 0;
    background: #0a0a0c; box-shadow: inset 1px 1px 0 #222227, inset -1px 0 0 #222227;
    color: #ebebeb; font-weight: 700;
}
.mp-card-h > .mp-i, .mp-card-h > .mp-svg { color: rgb(var(--a)); font-size: 17px; }
.mp-card-h::after {
    content: ""; position: absolute; left: 1px; right: 1px; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, rgb(var(--a)) 0, rgb(var(--a) / 0) var(--mp-hl, 60%)), #202025;
}
.mp-card-b {
    position: relative; flex: 1 1 auto; min-height: 0;
    padding: 12px 0 9px;
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: #2b2b30 transparent;
}
.mp-card-b::-webkit-scrollbar { width: 9px; }
.mp-card-b::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 5px; background: #2b2b30 padding-box; }
.mp-card-b::-webkit-scrollbar-thumb:hover { background-color: #45454b; }

/* rows ------------------------------------------------------------------------------------- */
.mp-row { position: relative; padding: 0 19px 0 13px; }
.mp-row[hidden] { display: none; }
.mp-line { display: flex; align-items: center; gap: 9px; height: 15px; }
.mp-lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #cdcdd2; font-weight: 700; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.mp-val { flex: none; color: #58585e; font-weight: 700; }

/* checkbox: label, then (from the toggle to the left) colour swatches, gear, keyboard icon */
.mp-chk { height: 29px; cursor: pointer; }
.mp-chk .mp-lbl { color: #3e3e42; transition: color .16s; }
.mp-chk.on .mp-lbl { color: #fff; }
.mp-tg { position: relative; flex: none; width: 25px; height: 15px; border-radius: 8px; background: #202022; transition: background .16s; }
.mp-tg::after {
    content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%;
    background: #565656; transition: transform .2s cubic-bezier(.3, .7, .2, 1), background .16s, scale .15s;
}
.mp-chk:hover .mp-tg::after { scale: .84; }
.mp-chk.on .mp-tg { background: rgb(var(--a-l)); }
.mp-chk.on .mp-tg::after { transform: translateX(10px); background: #0a0a0a; }
.mp-x { flex: none; display: flex; align-items: center; justify-content: center; width: 14px; height: 15px; color: rgb(118 118 124 / .6); transition: color .15s; }
.mp-x .mp-i { font-size: 13.5px; }
.mp-x:hover, .mp-x.open { color: rgb(255 255 255 / .8); }
.mp-sws { flex: none; display: flex; align-items: center; gap: 5px; height: 15px; }
.mp-sw { position: relative; display: block; flex: none; width: 22px; height: 15px; overflow: hidden; border-radius: 3px; background: var(--c); cursor: pointer; }
.mp-sw input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }

/* slider: label + value, then  - [track] +  */
.mp-sl { height: 44px; }
.mp-sl-bar { position: absolute; left: 13px; right: 19px; top: 18px; height: 16px; display: flex; align-items: center; gap: 11px; }
.mp-step {
    position: relative; flex: none; width: 16px; height: 16px; border-radius: 3px;
    background: #181818; box-shadow: inset 0 0 0 1px #1f1f1f;
    transition: background .15s, box-shadow .15s;
}
.mp-step::before, .mp-step::after { content: ""; position: absolute; left: 4px; right: 4px; top: 7px; height: 2px; background: #58585e; transition: background .15s; }
.mp-step::after { display: none; }
.mp-step.plus::after { display: block; transform: rotate(90deg); }
.mp-step { --hbg: #202020; }
.mp-step:hover { box-shadow: inset 0 0 0 1px #313131; }
.mp-step:hover::before, .mp-step:hover::after { background: #ebebeb; }
.mp-track { position: relative; flex: 1 1 auto; height: 20px; cursor: pointer; touch-action: none; }
.mp-track::before { content: ""; position: absolute; left: 0; right: 0; top: 7.5px; height: 5px; border-radius: 3px; background: #181818; }
.mp-fill {
    position: absolute; left: 0; top: 7.5px; height: 5px; min-width: 5px; border-radius: 3px;
    width: var(--p); background: linear-gradient(90deg, rgb(var(--a-l)), rgb(var(--a-d)));
}
.mp-knob {
    position: absolute; top: 3px; left: var(--p); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
    background: #2c2c2c; transition: scale .15s;
}
.mp-track:hover .mp-knob, .mp-track.drag .mp-knob { scale: 1.08; }
.mp-sl.anim .mp-fill { transition: width .14s; }
.mp-sl.anim .mp-knob { transition: left .14s, scale .15s; }

/* combo / multi combo */
.mp-cb { height: 65px; }
.mp-box {
    position: absolute; left: 13px; right: 15px; top: 24px; height: 29px;
    display: flex; align-items: center; gap: 8px; padding: 0 10px;
    border-radius: 3px;
    background: #181818; box-shadow: inset 0 0 0 1px #1f1f1f, 0 0 0 1px #080808;
    color: #ebebeb; font-weight: 700;
    transition: background .15s;
}
.mp-box > span { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mp-box .mp-i { color: #8e8e94; font-size: 11px; margin-right: 3px; transition: color .15s; }
.mp-box { --hbg: #1d1d1d; }
.mp-box.open { background: #1d1d1d; }
.mp-box:hover .mp-i, .mp-box.open .mp-i { color: rgb(var(--a)); }

/* colour edit / keybind rows: label on the left, the control on the right */
.mp-ce { height: 29px; }
.mp-kb { height: 45px; }
.mp-kb .mp-line { height: 32px; }
.mp-key {
    flex: none; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 55px; height: 32px; padding: 0 11px;
    border-radius: 3px; background: #181818; box-shadow: inset 0 0 0 1px #1f1f1f;
    color: #cdcdd2; font-size: 11px; font-weight: 700;
    transition: background .15s, box-shadow .15s;
}
.mp-key .mp-i { color: rgb(var(--a)); font-size: 13px; }
.mp-key { --hbg: #202020; }
.mp-key:hover, .mp-key.wait { background: #202020; box-shadow: inset 0 0 0 1px #313131; }
.mp-key.wait { color: rgb(var(--a)); }

/* text, buttons, inputs */
.mp-tx { min-height: 24px; padding-bottom: 8px; color: #cdcdd2; font-weight: 700; line-height: 16px; }
.mp-tx.accent { color: rgb(var(--a)); }
.mp-bt { height: 42px; }
.mp-btn {
    position: absolute; left: 13px; right: 15px; top: -2px; height: 33px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border-radius: 2px; background: rgb(var(--a-l)); color: #000; font-size: 12px; font-weight: 700;
    transition: background .15s;
}
.mp-btn { --hbg: rgb(var(--a) / .78); }
.mp-btn .mp-i, .mp-btn .mp-svg { font-size: 14px; }
.mp-in { height: 46px; }
.mp-field {
    position: absolute; left: 13px; right: 15px; top: -2px; height: 36px;
    display: flex; align-items: center; gap: 10px; padding: 0 14px;
    border-radius: 3px; background: #0e0e0e; box-shadow: inset 0 0 0 1px #1f1f1f, 0 0 0 1px #080808;
    color: #3e3e42; font-weight: 700;
}
.mp-field .mp-i { font-size: 14px; }
.mp-field input {
    all: unset; flex: 1 1 auto; min-width: 0; color: #d2d2d6; font: inherit; cursor: text;
}
.mp-field input::placeholder { color: #4a4a4e; }

/* weapon selector (Ragebot / Legitbot) */
.mp-wbar {
    position: relative; height: 40px; margin-bottom: 10px; padding: 0 6px; display: flex;
    border-radius: 6px; background: linear-gradient(#101013, #0a0a0c);
    box-shadow: inset 0 0 0 1px #222227, 0 0 0 1px rgb(2 2 3 / .9), 0 7px 10px -2px rgb(0 0 0 / .45);
}
.mp-wc { position: relative; width: 56px; height: 40px; display: flex; align-items: center; justify-content: center; padding-bottom: 2px; color: #565656; transition: color .2s; }
.mp-wc:hover { color: #3a3a3a; }
.mp-wc.on { color: #ebebeb; }
.mp-wc b { font-weight: 700; font-size: 13px; }
.mp-wc .mp-i-w { font-size: 16px; }
[data-fit] { display: block; line-height: 1; white-space: nowrap; }
.mp-wline {
    position: absolute; bottom: 7px; left: 0; height: 2px; border-radius: 1px; background: rgb(var(--a));
    transition: transform .3s cubic-bezier(.3, .7, .2, 1), width .3s cubic-bezier(.3, .7, .2, 1);
}

/* popups (gear settings, combos, keybinds) ------------------------------------------------- */
.mp-layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.mp-pop {
    position: absolute; pointer-events: auto;
    border-radius: 3px;
    background: #0e0e0e; box-shadow: inset 0 0 0 1px rgb(27 27 29 / .92), 0 10px 26px rgb(0 0 0 / .55);
    animation: mp-pop .16s cubic-bezier(.2, .7, .2, 1);
}
@keyframes mp-pop { from { opacity: 0; transform: translateY(-4px); } }
.mp-pop-s { width: 208px; padding: 14px 0 6px; }
.mp-pop-s .mp-row { padding: 0 16px; }
.mp-pop-s .mp-lbl { font-size: 12px; }
.mp-pop-s .mp-chk { height: 30px; }
.mp-pop-s .mp-chk .mp-lbl { color: #6e6e74; }
.mp-pop-s .mp-chk.on .mp-lbl { color: #cdcdd2; }
.mp-pop-s .mp-sl { height: 57px; }
.mp-pop-s .mp-sl-bar { left: 16px; right: 16px; top: 28px; }
.mp-pop-s .mp-box, .mp-pop-s .mp-btn, .mp-pop-s .mp-field { left: 16px; right: 16px; }
.mp-pop-s .mp-sws { margin-right: 0; }

.mp-list { max-height: 180px; padding: 4px; overflow-y: auto; background: #181818; box-shadow: inset 0 0 0 1px #1a1a1a, 0 0 0 1px #0f0f0f, 0 10px 26px rgb(0 0 0 / .55); scrollbar-width: thin; scrollbar-color: #2b2b30 transparent; }
.mp-opt {
    display: flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 2px;
    color: #8a8a90; font-weight: 700; cursor: pointer;
    transition: background .12s, color .12s;
}
.mp-opt span { flex: 1 1 auto; }
.mp-opt .mp-i { font-size: 12px; color: rgb(var(--a)); opacity: 0; }
.mp-opt:hover { background: #1c1c1c; color: #ebebeb; }
.mp-opt.on { background: #1f1f1f; color: #ebebeb; }
.mp-opt.on .mp-i { opacity: 1; }

/* toast (bottom of the panel) */
.mp-toast {
    position: absolute; left: 50%; bottom: 30px; z-index: 40;
    display: flex; align-items: center; gap: 9px; padding: 10px 14px;
    border-radius: 4px; background: #121214; box-shadow: inset 0 0 0 1px #26262b, 0 10px 30px rgb(0 0 0 / .6);
    color: #d6d6da; font-size: 12px; font-weight: 700; white-space: nowrap;
    transform: translate(-50%, 8px); opacity: 0; transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.mp-toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--a)); box-shadow: 0 0 8px rgb(var(--a) / .8); }
.mp-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Skins > Add items: the category tiles (artwork cut from the menu screenshot) */
.mp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px 10px; padding: 2px 13px 4px; }
.mp-tile {
    position: relative; height: 129px; border-radius: 4px; overflow: hidden;
    background: var(--art) var(--x) var(--y) / 708px 564px no-repeat;
    transition: filter .18s, transform .18s;
}
.mp-tile { --hbg: var(--art) var(--x) var(--y) / 708px 564px no-repeat; }
.mp-tile:hover { filter: brightness(1.18) saturate(1.1); }
.mp-art { width: 100%; border-radius: 4px; background: var(--art) var(--x) var(--y) / 708px 564px no-repeat; }

/* Config */
.mp-cfg-top { display: flex; gap: 8px; height: 45px; margin-bottom: 11px; }
.mp-cfg-top .mp-field { position: relative; left: 0; right: 0; top: 0; flex: 1 1 auto; height: 45px; padding: 0 15px; gap: 12px; }
.mp-sq {
    flex: none; width: 38px; height: 38px; margin-top: 3.5px; display: flex; align-items: center; justify-content: center;
    border-radius: 3px; background: #181818; box-shadow: inset 0 0 0 1px #1f1f1f; color: #d0d0d4;
    transition: background .15s;
}
.mp-sq .mp-i, .mp-sq .mp-svg { font-size: 14px; }
.mp-sq { --hbg: #222224; }
.mp-sq.acc { background: rgb(var(--a-l)); box-shadow: none; color: #fff; }
.mp-sq.acc { --hbg: rgb(var(--a) / .8); }
.mp-cfg { height: 411px; }
.mp-cfg-head, .mp-cfg-row { display: grid; grid-template-columns: 252px 133px 1fr; align-items: center; padding: 0 0 0 17px; }
.mp-cfg-head { flex: none; height: 33px; border-bottom: 1px solid #1a1a1e; color: #4a4a4e; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; }
.mp-cfg-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2b2b30 transparent; }
.mp-cfg-row { position: relative; height: 46px; border-bottom: 1px solid #141417; cursor: pointer; transition: background .15s; }
.mp-cfg-row:hover { background: rgb(255 255 255 / .015); }
.mp-cfg-row.sel { background: linear-gradient(90deg, rgb(var(--a) / .13), rgb(var(--a) / .02) 70%); }
.mp-cfg-row.sel::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: rgb(var(--a)); }
.mp-cfg-name { display: flex; align-items: center; gap: 8px; color: #ebebeb; font-weight: 700; white-space: nowrap; }
.mp-cfg-name .mp-i { color: #58585e; font-size: 13px; }
.mp-badge { padding: 4px 6px 3px; border-radius: 3px; background: rgb(var(--a) / .14); box-shadow: inset 0 0 0 1px rgb(var(--a) / .7); color: rgb(var(--a)); font-size: 9px; letter-spacing: .05em; }
.mp-cfg-date { color: #6e6e74; font-size: 11px; font-weight: 700; }
.mp-acts { display: flex; align-items: center; gap: 13px; }
.mp-act { display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: #8e8e94; font-size: 20px; transition: color .15s; }
.mp-act:hover { color: #fff; }
.mp-act.del { color: #c2484c; }
.mp-act.del:hover { color: #eb5c60; }
.mp-play { margin-left: 13px; width: 32px; height: 32px; border-radius: 2px; background: rgb(var(--a-l)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .15s; }
.mp-play { --hbg: rgb(var(--a) / .8); }
.mp-cfg-foot { flex: none; display: flex; justify-content: space-between; align-items: center; height: 35px; padding: 0 17px; border-top: 1px solid #1a1a1e; color: #58585e; font-size: 11px; font-weight: 700; }
.mp-cfg-foot b { color: #ebebeb; }
.mp-cfg-foot i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: rgb(var(--a)); box-shadow: 0 0 0 2px rgb(var(--a) / .25); vertical-align: 0; }
.mp-empty { padding: 30px 0; color: #4a4a4e; font-weight: 700; text-align: center; }

@media (prefers-reduced-motion: reduce) {
    .mp *, .mp *::before, .mp *::after { transition: none !important; animation: none !important; }
}

/* small screens: the menu is shown scaled down; a tap opens it full screen to play with it */
.mp-open, .mp-open:hover {
    position: absolute; margin: 0; color: inherit; font: inherit; inset: 0; z-index: 2; display: none; align-items: flex-end; justify-content: center; padding-bottom: 14px;
    border: 0; border-radius: 6px; background: linear-gradient(transparent 55%, rgb(0 0 0 / .55)); cursor: pointer;
}
.mp-open span {
    padding: 8px 16px; border-radius: 999px; background: #e2e2e8; color: #0b0b0c; font: 600 13px/1 "Segoe UI", system-ui, sans-serif;
    box-shadow: 0 6px 22px rgb(0 0 0 / .5);
}
.mp-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(5 5 6 / .94); }
.mp-dialog::backdrop { background: rgb(5 5 6 / .9); }
.mp-dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.mp-dialog .mp-wrap { width: min(96vw, calc((100dvh - 110px) * 708 / 564)); }
.mp-dialog-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; align-items: center; padding: 0 16px; color: #9a9aa2; font: 13px "Segoe UI", system-ui, sans-serif; text-align: center; }
.mp-dialog-bar button, .mp-dialog-bar button:hover { padding: 8px 16px; border: 1px solid rgba(101, 101, 105, .43); border-radius: 999px; background: #111113; color: #ececf0; font: 600 13px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
@media (max-width: 560px) {
    .home-shot .mp-open { display: flex; }
    .home-shot .mp { pointer-events: none; }
}
@media (max-width: 560px) and (orientation: portrait) {
    .mp-dialog-hint::after { content: " · Turn your phone sideways for a bigger menu"; }
}

/* the last row ends at what it draws, not at its full step (the menu's visual_bottom): no extra gap at the end of a card */
.mp-card-b > .mp-row:not([hidden]):not(:has(~ .mp-row:not([hidden]))) { margin-bottom: -9px; }
.mp-card-b > .mp-sl:not([hidden]):not(:has(~ .mp-row:not([hidden]))) { margin-bottom: -6px; }
.mp-card-b > .mp-cb:not([hidden]):not(:has(~ .mp-row:not([hidden]))),
.mp-card-b > .mp-bt:not([hidden]):not(:has(~ .mp-row:not([hidden]))) { margin-bottom: -6px; }
