/* =====================================================================
   GLHF Major Pick'em - after the in-game Pick'Em window of CS2:
   a violet window with contour lines, the Swiss bracket by records,
   green «пройшли» boxes, a red «0:3» box, round logo slots,
   the challenge column on the left. Every move is animated.
   ===================================================================== */
@font-face {
    font-family: "MPK Cond";
    src: url("fonts/roboto-condensed-cyrillic.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "MPK Cond";
    src: url("fonts/roboto-condensed-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* The look: the GLHF site itself - near-black panels, thin green edges, Enerhodar headings.
   .mpk-layer: dialogs moved to <body> (outside the container) keep the same tokens. */
@property --mpk-glow { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mpk-p { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --mpk-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.mpk, .mpk-layer {
    --mpk-acc: #00ff64;
    --mpk-acc-rgb: 0, 255, 100;
    --mpk-red: #ff5a5f;
    --mpk-red-rgb: 255, 90, 95;
    --mpk-gold: #ffc861;
    --mpk-gold-rgb: 255, 200, 97;
    --mpk-text: #f4f7f9;
    --mpk-soft: #aab3bc;
    --mpk-mute: #6b7280;
    --mpk-line: rgba(140, 175, 160, 0.14);
    --mpk-line-soft: rgba(140, 175, 160, 0.08);
    --mpk-edge: rgba(0, 255, 100, 0.15);
    --mpk-edge-hi: rgba(0, 255, 100, 0.4);
    --mpk-panel: linear-gradient(180deg, rgba(16, 22, 28, 0.94), rgba(10, 14, 18, 0.94));
    --mpk-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
    --mpk-raise: 0 28px 64px -36px rgba(0, 0, 0, 0.9);
    --mpk-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --mpk-slow: 0.6s;
    --mpk-cond: "MPK Cond", "Roboto Condensed", "Arial Narrow", sans-serif;
    --mpk-head: var(--glhf-font-heading, "Enerhodar", "Segoe UI", system-ui, sans-serif);
    --mpk-r: 20px;
    --mpk-r-in: 12px;
    --mpk-r-sm: 8px;

    /* the working surfaces of the pick window */
    --w-bg1: #121920;
    --w-bg2: #0b1014;
    --w-box: rgba(5, 8, 11, 0.55);
    --w-box-line: rgba(140, 175, 160, 0.11);
    --w-text: #f4f7f9;
    --w-soft: #aab3bc;
    --w-dim: #6b7280;
    --w-green: #0f6a3d;
    --w-green-hi: #1fd676;
    --w-red: #8c2534;
    --w-red-hi: #b0303f;
    --w-out: rgba(255, 90, 95, 0.07);
    --w-tab: rgba(0, 255, 100, 0.08);
}
.mpk, .mpk-layer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--mpk-soft);
    font-feature-settings: "tnum" 1;
    container-type: inline-size;
    padding: 28px 0 8px;
}
.mpk *, .mpk *::before, .mpk *::after { box-sizing: border-box; }
:where(.mpk, .mpk-layer) button { font: inherit; color: inherit; }

.mpk-rise {
    opacity: 0;
    transform: translateY(14px);
    animation: mpk-rise 0.9s var(--mpk-ease) forwards;
    animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes mpk-rise { to { opacity: 1; transform: none; } }

/* ---------- a panel: header, pick window, cards, the preview ----------
   The edge is drawn by ::after: a thin green line, and under the pointer it lights up (--mx / --my / .is-lit come from the script). */
.mpk-head, .mpk-window, .mpk-card, .mpk-pv {
    position: relative;
    border: 0;
    border-radius: var(--mpk-r);
    background: var(--mpk-panel);
    box-shadow: var(--mpk-raise);
    isolation: isolate;
    transition: --mpk-glow 0.9s var(--mpk-ease);
}
.mpk-head.is-lit, .mpk-window.is-lit, .mpk-card.is-lit, .mpk-pv.is-lit { --mpk-glow: 1; }
.mpk-head::after, .mpk-window::after, .mpk-card::after, .mpk-pv::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 1px;
    border-radius: inherit;
    background:
        radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--mpk-acc-rgb), calc(0.7 * var(--mpk-glow))), transparent 68%),
        linear-gradient(var(--mpk-edge), var(--mpk-edge));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}
/* the lamp: a fine grid that is there all along but shows only around the pointer */
.mpk-lamp {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-image: radial-gradient(circle, rgba(var(--mpk-acc-rgb), 0.55) 0.9px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #000, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
    mask-image: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), #000, rgba(0, 0, 0, 0.35) 45%, transparent 72%);
    opacity: calc(0.5 * var(--mpk-glow));
    pointer-events: none;
}
/* a small accent dash before block names */
.mpk-aside-title, .mpk-card-title, .mpk-pv-h {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mpk-aside-title::before, .mpk-card-title::before, .mpk-pv-h::before {
    content: "";
    flex: none;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--mpk-acc);
    box-shadow: 0 0 10px rgba(var(--mpk-acc-rgb), 0.6);
}

/* ---------- title of the empty state ---------- */
.mpk-hero .mpk-eyebrow, .mpk-hero .mpk-title { text-align: center; }

/* ---------- the header: event name, a hologram of the trophy, the state of the Major ---------- */
.mpk-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px 36px;
    padding: 30px 34px;
    background:
        radial-gradient(70% 150% at 0% 0%, rgba(var(--mpk-acc-rgb), 0.07), transparent 60%),
        radial-gradient(50% 120% at 62% 110%, rgba(var(--mpk-acc-rgb), 0.05), transparent 65%),
        var(--mpk-panel);
    overflow: hidden;
}
.mpk-head::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("contours.svg") 70% 40% / 140% auto no-repeat;
    opacity: 0.03;
    pointer-events: none;
}
.mpk-head-main { min-width: 0; }
.mpk-head .mpk-title {
    font-size: clamp(1.25rem, 3.1cqi, 2.3rem);
    line-height: 1.16;
    text-wrap: balance;
}
.mpk-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    font-family: var(--mpk-cond);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: var(--mpk-soft);
}
.mpk-head-meta:empty { display: none; }
.mpk-head-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px 6px 11px;
    border: 1px solid var(--mpk-line);
    border-radius: 999px;
    background: rgba(5, 8, 11, 0.4);
    white-space: nowrap;
    transition: border-color 0.6s var(--mpk-ease), color 0.6s var(--mpk-ease);
}
.mpk-head-meta span:hover { border-color: var(--mpk-edge-hi); color: var(--mpk-text); }
.mpk-head-meta svg { width: 15px; height: 15px; flex: none; color: var(--mpk-acc); }

/* the hologram (drawn by the script; can be spun by hand) */
.mpk-holo {
    position: relative;
    width: 168px;
    height: 168px;
    margin: -22px 0;
    cursor: grab;
    touch-action: pan-y;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.9s var(--mpk-ease) 0.25s, transform 0.9s var(--mpk-ease) 0.25s;
    -webkit-tap-highlight-color: transparent;
}
.mpk-holo.is-on { opacity: 1; transform: none; }
.mpk-holo:active { cursor: grabbing; }
.mpk-holo canvas { display: block; width: 100%; height: 100%; }

.mpk-head-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 380px;
    padding: 20px 22px 18px;
    border: 1px solid var(--mpk-line);
    border-radius: var(--mpk-r-in);
    background: rgba(5, 8, 11, 0.5);
    font-family: var(--mpk-cond);
}
.mpk-head-status {
    display: flex;
    align-items: center;
    gap: 14px;
    --tone: var(--mpk-mute);
    --tone-rgb: 107, 114, 128;
    transition: opacity 0.45s var(--mpk-ease), transform 0.45s var(--mpk-ease);
}
.mpk-head-status.is-swap { opacity: 0; transform: translateY(4px); }
.mpk-head-status[data-tone="open"] { --tone: var(--mpk-acc); --tone-rgb: var(--mpk-acc-rgb); }
.mpk-head-status[data-tone="live"] { --tone: var(--mpk-red); --tone-rgb: var(--mpk-red-rgb); }
.mpk-head-status[data-tone="done"] { --tone: var(--mpk-gold); --tone-rgb: var(--mpk-gold-rgb); }
.mpk-head-status[data-tone="wait"] { --tone: #9fb3c8; --tone-rgb: 159, 179, 200; }
.mpk-head-dot {
    position: relative;
    flex: none;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    background: var(--tone);
    box-shadow: 0 0 12px rgba(var(--tone-rgb), 0.7);
}
.mpk-head-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(var(--tone-rgb), 0.55);
    animation: mpk-head-ping 2.8s var(--mpk-ease) infinite;
}
@keyframes mpk-head-ping { 0% { transform: scale(0.6); opacity: 0.9; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.mpk-head-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mpk-head-txt b { font-family: var(--mpk-head); font-size: 0.8rem; font-weight: 700; line-height: 1.25; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mpk-text); }
.mpk-head-txt small { font-size: 0.88rem; color: var(--mpk-soft); }

/* the stages as a track */
.mpk-track {
    --fill: 0;
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    column-gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mpk .mpk-track li { margin: 0; padding: 0; background: none; border: 0; }
.mpk .mpk-track li::before { content: none; }
.mpk-track::before, .mpk-track::after {
    content: "";
    position: absolute;
    top: 5px;
    height: 2px;
    border-radius: 2px;
    left: calc(50% / var(--n, 4));
    right: calc(50% / var(--n, 4));
    background: rgba(255, 255, 255, 0.09);
}
.mpk-track::after {
    right: auto;
    width: calc((100% - 100% / var(--n, 4)) * var(--fill));
    background: linear-gradient(90deg, rgba(var(--mpk-acc-rgb), 0.3), var(--mpk-acc));
    box-shadow: 0 0 10px rgba(var(--mpk-acc-rgb), 0.45);
    transition: width 0.9s var(--mpk-ease);
}
.mpk-track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.mpk-track-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0f1419;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
    transition: background 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease);
}
.mpk-track-name {
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--mpk-mute);
    transition: color 0.6s var(--mpk-ease);
}
.mpk-track li:hover .mpk-track-dot { transform: scale(1.3); }
.mpk-track li:hover .mpk-track-name { color: var(--mpk-text); }
.mpk-track li.is-finished .mpk-track-dot { background: var(--mpk-acc); box-shadow: 0 0 0 3px rgba(var(--mpk-acc-rgb), 0.16); }
.mpk-track li.is-finished .mpk-track-name { color: var(--mpk-soft); }
.mpk-track li.is-open .mpk-track-dot,
.mpk-track li.is-locked .mpk-track-dot { background: #0a0e12; box-shadow: inset 0 0 0 3px var(--mpk-acc), 0 0 0 4px rgba(var(--mpk-acc-rgb), 0.18), 0 0 14px rgba(var(--mpk-acc-rgb), 0.55); transform: scale(1.15); }
.mpk-track li.is-locked .mpk-track-dot { box-shadow: inset 0 0 0 3px var(--mpk-red), 0 0 0 4px rgba(var(--mpk-red-rgb), 0.18), 0 0 14px rgba(var(--mpk-red-rgb), 0.55); }
.mpk-track li.is-open .mpk-track-name, .mpk-track li.is-locked .mpk-track-name { color: var(--mpk-text); }

@container (max-width: 1080px) {
    .mpk-head { grid-template-columns: minmax(0, 1fr) auto; }
    .mpk-head-side { grid-column: 1 / -1; min-width: 0; }
    .mpk-head-side .mpk-track { max-width: 520px; }
    .mpk-holo { width: 132px; height: 132px; margin: -14px 0; }
}
@container (max-width: 560px) {
    .mpk-head { padding: 22px 16px 16px; gap: 16px 8px; }
    .mpk-head-meta { margin-top: 14px; font-size: 0.86rem; }
    .mpk-head-meta span { padding: 5px 11px 5px 9px; }
    .mpk-head-side { padding: 16px 14px 14px; }
    .mpk-holo { width: 92px; height: 92px; margin: -8px -6px -8px 0; }
    .mpk-track-name { font-size: 0.7rem; letter-spacing: 0.03em; }
}
@media (prefers-reduced-motion: reduce) { .mpk-head-dot::after { animation: none; } }
.mpk-eyebrow {
    display: block;
    font-family: var(--mpk-cond);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(var(--mpk-acc-rgb), 0.85);
}
.mpk-title {
    margin: 0;
    font-family: var(--mpk-head);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 2.1rem);
    line-height: 1.16;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mpk-text);
}
.mpk-lead { margin: 10px 0 0; font-size: 0.95rem; line-height: 1.6; max-width: 720px; }
.mpk-hero { text-align: center; padding: 40px 20px; }

/* ---------- the window ---------- */
.mpk-window {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    background: radial-gradient(90% 60% at 100% 0%, rgba(var(--mpk-acc-rgb), 0.045), transparent 60%), var(--mpk-panel);
    color: var(--w-soft);
    font-family: var(--mpk-cond);
    overflow: hidden;
}
.mpk-window::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("contours.svg") center / cover no-repeat;
    opacity: 0.025;
    pointer-events: none;
}

/* ---------- left column: the challenge ---------- */
.mpk-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 16px 18px;
    background: rgba(5, 8, 11, 0.35);
    border-right: 1px solid var(--mpk-line-soft);
}
.mpk-aside-title {
    align-self: stretch;
    font-family: var(--mpk-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mpk-text);
}
/* the gauge: sixty ticks light up clockwise as the goals are done; the disc leans after the pointer */
.mpk-coin {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    width: 144px;
    aspect-ratio: 1;
    margin: 6px 0 2px;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    transform: perspective(520px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.9s var(--mpk-ease), --mpk-p 1.4s var(--mpk-ease);
    -webkit-tap-highlight-color: transparent;
}
.mpk-coin.is-tilt { transition: transform 0.18s linear, --mpk-p 1.4s var(--mpk-ease); }
.mpk-coin::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--mpk-acc) calc(var(--mpk-p) * 360deg), rgba(255, 255, 255, 0.13) 0);
    -webkit-mask:
        repeating-conic-gradient(from -1deg, #000 0 2deg, transparent 2deg 6deg),
        radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
    -webkit-mask-composite: source-in;
    mask:
        repeating-conic-gradient(from -1deg, #000 0 2deg, transparent 2deg 6deg) intersect,
        radial-gradient(closest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
    filter: drop-shadow(0 0 5px rgba(var(--mpk-acc-rgb), 0.45));
}
.mpk-coin::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px solid var(--mpk-edge);
    pointer-events: none;
}
.mpk-coin-face {
    position: absolute;
    inset: 19px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at var(--gx, 34%) var(--gy, 26%), rgba(var(--mpk-acc-rgb), 0.16), transparent 58%),
        radial-gradient(circle at 50% 120%, rgba(var(--mpk-acc-rgb), 0.1), transparent 60%),
        #0c1115;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -14px 26px rgba(0, 0, 0, 0.5), 0 14px 30px -10px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}
.mpk-coin-face b { font-family: var(--mpk-head); font-size: 1.9rem; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 0 22px rgba(var(--mpk-acc-rgb), 0.35); }
.mpk-coin-face span { margin-top: 7px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--w-soft); }
/* a light sweep across the disc after a press */
.mpk-coin-face::after {
    content: "";
    position: absolute;
    inset: -20% -60%;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
    transform: translateX(-70%);
    pointer-events: none;
}
.mpk-coin.is-ping .mpk-coin-face::after { animation: mpk-coin-sweep 1.2s var(--mpk-ease); }
@keyframes mpk-coin-sweep { to { transform: translateX(70%); } }
.mpk-coin-sub { text-align: center; font-size: 0.88rem; line-height: 1.5; color: var(--w-soft); }
.mpk-coin-sub b { color: var(--mpk-acc); }
.mpk-coin-sub span { color: var(--w-dim); }
.mpk-goals { list-style: none; margin: 4px 0 0; padding: 0; align-self: stretch; display: flex; flex-direction: column; gap: 4px; }
.mpk-goal {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--mpk-line-soft);
    border-radius: var(--mpk-r-sm);
    background: rgba(255, 255, 255, 0.012);
    font-size: 0.8rem;
    line-height: 1.25;
    color: var(--w-soft);
    transition: background-color 0.7s var(--mpk-ease), border-color 0.7s var(--mpk-ease), color 0.7s var(--mpk-ease), transform 0.7s var(--mpk-ease);
}
.mpk-goal:hover { transform: translateX(3px); border-color: var(--mpk-line); }
.mpk-goal-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--mpk-line);
    color: var(--w-dim);
    transition: color 0.7s var(--mpk-ease), background-color 0.7s var(--mpk-ease), box-shadow 0.7s var(--mpk-ease);
}
.mpk-goal-ic svg { width: 12px; height: 12px; }
.mpk-goal.is-done { border-color: rgba(var(--mpk-acc-rgb), 0.22); background: linear-gradient(90deg, rgba(var(--mpk-acc-rgb), 0.1), rgba(var(--mpk-acc-rgb), 0.025)); color: var(--mpk-text); }
.mpk-goal.is-done .mpk-goal-ic { background: var(--mpk-acc); color: #04170c; box-shadow: 0 0 12px rgba(var(--mpk-acc-rgb), 0.45); }
.mpk-aside-foot { margin-top: auto; align-self: stretch; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.mpk-aside-note { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--w-dim); }
.mpk-ghost-btn {
    padding: 10px 12px;
    border: 1px solid var(--mpk-line);
    border-radius: var(--mpk-r-sm);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: var(--w-text);
    cursor: pointer;
    transition: background-color 0.6s var(--mpk-ease), border-color 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease), opacity 0.6s var(--mpk-ease);
}
.mpk-ghost-btn:hover { background: rgba(var(--mpk-acc-rgb), 0.07); border-color: var(--mpk-edge-hi); box-shadow: 0 0 22px -8px rgba(var(--mpk-acc-rgb), 0.6); }

/* ---------- reminder switch ---------- */
.mpk-remind {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--w-soft);
    cursor: pointer;
    user-select: none;
}
.mpk-remind input { position: absolute; opacity: 0; pointer-events: none; }
.mpk-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px var(--mpk-line);
    transition: background-color 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease);
}
.mpk-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--w-soft);
    transition: transform 0.6s var(--mpk-ease), background-color 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease);
}
.mpk-remind input:checked + .mpk-switch { background: rgba(var(--mpk-acc-rgb), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.45); }
.mpk-remind input:checked + .mpk-switch::after { transform: translateX(16px); background: var(--mpk-acc); box-shadow: 0 0 10px rgba(var(--mpk-acc-rgb), 0.6); }
.mpk-remind input:focus-visible + .mpk-switch { outline: 2px solid rgba(var(--mpk-acc-rgb), 0.6); outline-offset: 2px; }

/* ---------- main column: tabs, notice ---------- */
.mpk-main { min-width: 0; padding: 18px 22px 22px; display: flex; flex-direction: column; }
.mpk-topbar { display: flex; align-items: center; gap: 10px; }
.mpk-tabs { position: relative; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--mpk-line-soft); border-radius: 999px; background: rgba(5, 8, 11, 0.45); overflow-x: auto; scrollbar-width: none; }
.mpk-tabs::-webkit-scrollbar { display: none; }
.mpk-tab-ink {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: var(--w-tab);
    box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.45), 0 0 20px -6px rgba(var(--mpk-acc-rgb), 0.7);
    transition: transform 0.75s var(--mpk-ease), width 0.75s var(--mpk-ease);
    pointer-events: none;
}
/* a faint pill that slides after the pointer from tab to tab */
.mpk-tab-ghost {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: transform 0.6s var(--mpk-ease), width 0.6s var(--mpk-ease), opacity 0.6s var(--mpk-ease);
    pointer-events: none;
}
.mpk-tab-ghost.is-on { opacity: 1; }
.mpk-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-family: var(--mpk-head);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--w-soft);
    cursor: pointer;
    transition: color 0.6s var(--mpk-ease);
}
.mpk-tab:hover { color: #fff; }
.mpk-tab.is-active { color: var(--mpk-acc); }
.mpk-tab-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity 0.5s var(--mpk-ease), background-color 0.5s var(--mpk-ease); }
.mpk-tab[data-status="open"] .mpk-tab-dot { opacity: 1; background: var(--mpk-acc); animation: mpk-pulse 2.4s ease-in-out infinite; }
.mpk-tab[data-status="locked"] .mpk-tab-dot { opacity: 1; background: var(--mpk-gold); }
.mpk-tab[data-status="finished"] .mpk-tab-dot { opacity: 0.55; background: var(--w-soft); }
@keyframes mpk-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.mpk-icon-btn {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--w-soft);
    cursor: pointer;
    transition: color 0.5s var(--mpk-ease), background-color 0.5s var(--mpk-ease), box-shadow 0.5s var(--mpk-ease), transform 0.7s var(--mpk-ease);
}
.mpk-icon-btn svg { width: 17px; height: 17px; }
.mpk-icon-btn:hover { color: var(--mpk-acc); background: rgba(var(--mpk-acc-rgb), 0.08); box-shadow: inset 0 0 0 1px var(--mpk-edge); }
.mpk-icon-btn.is-small { width: 22px; height: 22px; }
.mpk-icon-btn.is-small svg { width: 13px; height: 13px; }
.mpk-icon-btn:disabled { opacity: 0.32; cursor: default; background: transparent; box-shadow: none; color: var(--w-soft); }
.mpk-icon-btn.is-spin svg { animation: mpk-spin 0.7s var(--mpk-ease); }
@keyframes mpk-spin { to { transform: rotate(360deg); } }
.mpk-notice {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.6s var(--mpk-ease), opacity 0.6s var(--mpk-ease);
}
.mpk-notice.is-on { grid-template-rows: 1fr; opacity: 1; }
.mpk-notice > div { overflow: hidden; }
.mpk-notice p { margin: 0; padding: 12px 2px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 0.95rem; color: var(--w-text); }
.mpk-notice-line { display: inline-flex; align-items: center; gap: 8px; }
.mpk-notice-line svg { width: 16px; height: 16px; flex: none; color: var(--w-soft); }
.mpk-notice b { color: #fff; }
.mpk-dim { color: var(--w-dim); }
.mpk-notice-msg { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #ffd98f; font-family: var(--glhf-font-body, inherit); font-size: 0.86rem; }

/* the yellow strip before the lock */
.mpk-warn {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.7s var(--mpk-ease), opacity 0.7s var(--mpk-ease), margin 0.7s var(--mpk-ease);
}
.mpk-warn.is-on { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.mpk-warn > div { overflow: hidden; }
.mpk-warn p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(var(--mpk-gold-rgb), 0.16), rgba(var(--mpk-gold-rgb), 0.05));
    box-shadow: inset 0 0 0 1px rgba(var(--mpk-gold-rgb), 0.35);
    font-size: 0.92rem;
    color: #ffe3a8;
    transition: background 0.7s var(--mpk-ease), box-shadow 0.7s var(--mpk-ease);
}
.mpk-warn p > span:nth-child(2) { flex: 1 1 260px; }
.mpk-warn b { color: #fff; }
.mpk-warn-ic { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--mpk-gold); color: #2a1d05; font: 700 0.9rem/1 var(--mpk-cond); }
.mpk-warn.is-urgent p { background: linear-gradient(90deg, rgba(var(--mpk-gold-rgb), 0.3), rgba(var(--mpk-gold-rgb), 0.1)); box-shadow: inset 0 0 0 1px rgba(var(--mpk-gold-rgb), 0.7), 0 0 26px -10px rgba(var(--mpk-gold-rgb), 0.7); }
.mpk-warn.is-urgent .mpk-warn-ic { animation: mpk-pulse 2.4s ease-in-out infinite; }
.mpk-warn .mpk-link { color: var(--mpk-gold); }

/* «Зараз грають» with the streams */
.mpk-livebar { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.7s var(--mpk-ease), opacity 0.7s var(--mpk-ease), margin 0.7s var(--mpk-ease); }
.mpk-livebar.is-on { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.mpk-livebar > div { overflow: hidden; }
.mpk-livebar p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 12px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 90, 101, 0.14), rgba(255, 90, 101, 0.03)); box-shadow: inset 0 0 0 1px rgba(255, 90, 101, 0.3); }
.mpk-lv-dot { display: inline-flex; align-items: center; gap: 6px; font: 700 0.78rem/1 var(--mpk-cond); letter-spacing: 0.12em; text-transform: uppercase; color: #ff7a85; }
.mpk-lv-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5a65; animation: mpk-pulse 1.8s ease-in-out infinite; }
.mpk-lv-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; flex: 1 1 280px; min-width: 0; }
.mpk-lv-m { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: #fff; }
.mpk-lv-m img, .mpk-lv-m .mpk-mono { width: 22px; height: auto; }
.mpk-lv-m i { font-style: normal; font-weight: 700; color: var(--w-soft); }
.mpk-lv-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mpk-lv-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 6px; background: rgba(145, 70, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(170, 120, 255, 0.45); font: 700 0.84rem/1 var(--mpk-cond); letter-spacing: 0.04em; color: #fff; text-decoration: none; transition: background-color 0.5s var(--mpk-ease), box-shadow 0.5s var(--mpk-ease); }
.mpk-lv-btn:hover { background: rgba(145, 70, 255, 0.4); box-shadow: inset 0 0 0 1px rgba(190, 150, 255, 0.8); color: #fff; }
.mpk-lv-btn svg { width: 11px; height: 11px; }
.mpk-lv-btn.is-ua { background: rgba(0, 87, 184, 0.28); box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.5); }
.mpk-lv-btn.is-ua:hover { background: rgba(0, 87, 184, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.85); }

/* ---------- stage panel ---------- */
.mpk-stage { position: relative; display: grid; transition: height 0.7s var(--mpk-ease); }
.mpk-panel { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mpk-panel.is-enter { animation: mpk-panel-in 0.7s var(--mpk-ease) both; }
.mpk-panel.is-leave { animation: mpk-panel-out 0.5s var(--mpk-ease) both; pointer-events: none; }
.mpk-panel.is-leave.to-left, .mpk-panel.is-enter.from-right { --mpk-dx: 28px; }
.mpk-panel.is-leave.to-right, .mpk-panel.is-enter.from-left { --mpk-dx: -28px; }
@keyframes mpk-panel-in { from { opacity: 0; transform: translateX(var(--mpk-dx, 0)); } to { opacity: 1; transform: none; } }
@keyframes mpk-panel-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(calc(var(--mpk-dx, 0) * -1)); } }

/* ---------- «Твій шлях до 5» and «За кого вболівати» (a locked stage in play) ---------- */
.mpk-follow { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.7s var(--mpk-ease), opacity 0.7s var(--mpk-ease); }
.mpk-follow.is-on { grid-template-rows: 1fr; opacity: 1; }
.mpk-follow > div { overflow: hidden; min-width: 0; }
.mpk-panel:has(.mpk-follow:not(.is-on)) { gap: 0; }
.mpk-panel:has(.mpk-follow:not(.is-on)) > .mpk-swiss, .mpk-panel:has(.mpk-follow:not(.is-on)) > .mpk-playoffs { margin-top: 16px; }
.mpk-follow-in { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; padding-top: 14px; }
.mpk-path, .mpk-fl { min-width: 0; padding: 12px 14px; border-radius: 10px; background: rgba(5, 8, 11, 0.32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mpk-path-title { margin-bottom: 9px; font: 700 0.8rem/1 var(--mpk-cond); letter-spacing: 0.09em; text-transform: uppercase; color: #fff; }
.mpk-path-dots { position: relative; display: flex; gap: 5px; margin-bottom: 10px; }
.mpk-path-dots i { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22); transition: background-color 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease); animation: mpk-up 0.6s var(--mpk-ease) both; animation-delay: calc(var(--i) * 40ms); }
.mpk-path-dots i.is-right { background: #2fd47f; box-shadow: none; }
.mpk-path-dots i.is-open { background: rgba(255, 255, 255, 0.75); box-shadow: none; }
.mpk-path-dots i.is-burnt { background: rgba(255, 90, 101, 0.55); box-shadow: none; }
/* the line after the fifth dot: five right picks pass the stage */
.mpk-path-dots.has-mark i:nth-child(5) { margin-right: 6px; position: relative; }
.mpk-path-dots.has-mark i:nth-child(5)::after { content: ""; position: absolute; right: -6.5px; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--mpk-gold); }
.mpk-path-sub { margin-left: 8px; font: 400 0.76rem/1.3 var(--glhf-font-body, inherit); letter-spacing: 0; text-transform: none; color: var(--w-dim); }
.mpk-path-text { font-size: 0.86rem; color: var(--w-text); line-height: 1.35; }
.mpk-path-text b { color: #fff; }
.mpk-path-text .is-good { color: #8dffc0; }
.mpk-path-text .is-bad { color: #ff9aa2; }
.mpk-path-meta { margin-top: 7px; font-size: 0.76rem; line-height: 1.45; color: var(--w-dim); }
.mpk-path-meta b { color: var(--w-text); }
.mpk-fl-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mpk-fl-card { flex: 0 0 260px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 10px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); animation: mpk-up 0.7s var(--mpk-ease) both; }
@keyframes mpk-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mpk-fl-top .mpk-live { font-size: inherit; }
.mpk-fl-top { display: flex; justify-content: space-between; font: 700 0.72rem/1 var(--mpk-cond); letter-spacing: 0.07em; text-transform: uppercase; color: var(--w-dim); }
.mpk-fl-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: start; }
.mpk-fl-vs { align-self: center; margin-top: -26px; font-size: 0.78rem; color: var(--w-dim); }
.mpk-fl-side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 6px 4px; border-radius: 7px; text-align: center; transition: background-color 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease); }
.mpk-fl-side img, .mpk-fl-side .mpk-mono { width: 34px; height: auto; }
.mpk-fl-side > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; color: #fff; }
.mpk-fl-side.is-root { background: rgba(47, 154, 102, 0.18); box-shadow: inset 0 0 0 1px rgba(110, 230, 160, 0.4); }
.mpk-fx { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; font-size: 0.7rem; line-height: 1.25; }
.mpk-fx > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpk-fx svg { width: 10px; height: 10px; flex: none; }
.mpk-fx.is-win { color: #8dffc0; }
.mpk-fx.is-lose { color: #ff9aa2; }
.mpk-fx.is-none { color: var(--w-dim); }
.mpk-fl-root { font-size: 0.8rem; color: var(--w-soft); text-align: center; }
.mpk-fl-root b { color: #8dffc0; }
.mpk-fl-empty { margin: 0; font-size: 0.84rem; color: var(--w-dim); }

/* ---------- Swiss: pool column + bracket canvas ---------- */
.mpk-swiss { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding-top: 8px; }
.mpk-pool-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mpk-pool-hint { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 0.74rem; line-height: 1.25; color: var(--mpk-acc); }
.mpk-pool-hint svg { width: 26px; height: 26px; }
.mpk.is-readonly .mpk-pool-hint { color: var(--w-dim); }
.mpk.is-readonly .mpk-pool-hint svg { display: none; }
.mpk-pool { display: grid; grid-template-columns: repeat(2, 50px); gap: 6px 8px; }
.mpk-pool-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 2px; max-width: 112px; }

/* hotkeys: a small keyboard icon, the list rises on hover or focus */
.mpk-keys { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--w-soft); cursor: help; outline: none; transition: color 0.5s var(--mpk-ease), background-color 0.5s var(--mpk-ease); }
.mpk-keys > svg { width: 18px; height: 18px; }
.mpk-keys:hover, .mpk-keys:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.07); }
.mpk-keys-pop {
    position: absolute;
    left: calc(100% + 10px);
    bottom: -4px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 250px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(13, 18, 23, 0.97);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    font-family: var(--glhf-font-body, inherit);
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--w-text);
    text-align: left;
    cursor: default;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity 0.45s var(--mpk-ease), transform 0.45s var(--mpk-ease), visibility 0s linear 0.45s;
}
.mpk-keys-pop b { font-family: var(--mpk-cond); font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.mpk-keys:hover .mpk-keys-pop, .mpk-keys:focus-visible .mpk-keys-pop { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s var(--mpk-ease), transform 0.45s var(--mpk-ease), visibility 0s; }
.mpk-keys-pop kbd { display: inline-block; min-width: 1.5em; padding: 0 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12); font: 700 0.74rem/1.5 var(--mpk-cond); text-align: center; color: #fff; }

.mpk-cell {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--mpk-line-soft);
    transition: box-shadow 0.6s var(--mpk-ease);
}
.mpk-cell > * { grid-area: 1 / 1; }
.mpk-cell-ghost { display: grid; place-items: center; opacity: 0; transition: opacity 0.6s var(--mpk-ease); pointer-events: none; }
.mpk-cell-ghost img, .mpk-cell-ghost .mpk-mono { width: 40px; height: auto; filter: grayscale(1) brightness(0.8); opacity: 0.2; }
.mpk-cell.is-used .mpk-cell-ghost { opacity: 1; }
.mpk-cell.is-used { box-shadow: inset 0 0 0 1px transparent; }
.mpk-cell-rec {
    position: absolute;
    right: -4px;
    bottom: -2px;
    z-index: 3;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(5, 8, 11, 0.9);
    box-shadow: inset 0 0 0 1px var(--mpk-line);
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--w-soft);
    pointer-events: none;
}
.mpk-cell[data-outcome="3-0"] .mpk-cell-rec, .mpk-cell[data-outcome="adv"] .mpk-cell-rec { color: var(--mpk-acc); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.35); }
.mpk-cell[data-outcome="0-3"] .mpk-cell-rec, .mpk-cell[data-outcome="elim"] .mpk-cell-rec { color: #ff9aa2; box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.35); }

/* the team chip: one per team, travels between the pool and the slots */
.mpk-chip {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: grab;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.5s var(--mpk-ease), box-shadow 0.5s var(--mpk-ease), opacity 0.5s var(--mpk-ease);
}
.mpk-chip:focus-visible { outline: 2px solid rgba(var(--mpk-acc-rgb), 0.7); outline-offset: 2px; }
.mpk-chip-logo {
    display: block;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    transition: filter 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease), opacity 0.6s var(--mpk-ease);
}
.mpk-mono {
    display: grid;
    place-items: center;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 0 1px var(--mpk-line);
    color: var(--w-soft);
    font-size: 0.72rem;
    font-weight: 700;
}
/* the armed ring: an accent arc that slowly circles the chosen team */
.mpk-chip::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from var(--mpk-ang), rgba(var(--mpk-acc-rgb), 0) 0deg, rgba(var(--mpk-acc-rgb), 0.95) 110deg, rgba(var(--mpk-acc-rgb), 0) 220deg, rgba(var(--mpk-acc-rgb), 0.5) 300deg, rgba(var(--mpk-acc-rgb), 0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease);
    pointer-events: none;
}
.mpk-chip:hover .mpk-chip-logo { transform: translateY(-2px) scale(1.06); }
.mpk-chip.is-armed { background: rgba(var(--mpk-acc-rgb), 0.08); box-shadow: 0 0 22px -4px rgba(var(--mpk-acc-rgb), 0.45); }
.mpk-chip.is-armed::before { opacity: 1; transform: none; animation: mpk-orbit 3.6s linear infinite; }
.mpk-chip.is-armed .mpk-chip-logo { transform: scale(1.08); }
@keyframes mpk-orbit { to { --mpk-ang: 360deg; } }
.mpk.is-readonly .mpk-chip { cursor: default; }
.mpk.is-readonly .mpk-chip:hover .mpk-chip-logo { transform: none; }
.mpk-chip.is-dragging { opacity: 0.2; }
.mpk-chip-ghost {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    pointer-events: none;
    background: rgba(13, 18, 23, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 0 1.5px rgba(var(--mpk-acc-rgb), 0.8), 0 0 28px -4px rgba(var(--mpk-acc-rgb), 0.5);
}
.mpk-chip-ghost::before { display: none; }
/* pointing at a team lights it everywhere on the board, the rest steps back */
.mpk-swiss.is-focus .mpk-mteam:not(.is-hot):not(.is-lost),
.mpk-swiss.is-focus .mpk-out:not(.is-hot) { opacity: 0.38; }
.mpk-swiss.is-focus .mpk-chip:not(.is-hot):not(.is-armed) .mpk-chip-logo { opacity: 0.4; }
.mpk-mteam.is-hot img, .mpk-chip.is-hot .mpk-chip-logo, .mpk-out.is-hot img { filter: drop-shadow(0 0 7px rgba(var(--mpk-acc-rgb), 0.6)); }
.mpk-mteam.is-hot { opacity: 1 !important; filter: none !important; }

/* scaling canvas: every size inside is in design units (1000 wide) */
.mpk-scroll { min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(var(--mpk-acc-rgb), 0.25) transparent; scroll-behavior: smooth; }
.mpk-canvas {
    --u: calc(100cqw / 1000);
    position: relative;
    width: 100%;
    min-width: 700px;
    container-type: inline-size;
}
.mpk-canvas > * { position: absolute; }

.mpk-box {
    display: flex;
    flex-direction: column;
    padding: calc(var(--u) * 30) calc(var(--u) * 8) calc(var(--u) * 8);
    border-radius: calc(var(--u) * 10);
    background: var(--w-box);
    box-shadow: inset 0 0 0 1px var(--w-box-line);
    transition: box-shadow 0.7s var(--mpk-ease), background-color 0.7s var(--mpk-ease);
}
.mpk-box:hover { box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.22); background: rgba(8, 12, 16, 0.7); }
.mpk-box-rec {
    position: absolute;
    top: calc(var(--u) * 8);
    right: calc(var(--u) * 12);
    font: 400 calc(var(--u) * 11.5) / 1.2 var(--mpk-head);
    letter-spacing: 0.06em;
    color: var(--w-soft);
}
.mpk-mrow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    height: calc(var(--u) * 42);
    font-size: calc(var(--u) * 14);
    color: var(--w-dim);
    border-radius: calc(var(--u) * 7);
    transition: background-color 0.5s var(--mpk-ease);
}
.mpk-mrow:not(.is-tbd):hover { background: rgba(var(--mpk-acc-rgb), 0.05); }
.mpk-mrow .mpk-q { font-size: calc(var(--u) * 16); color: var(--w-dim); }
.mpk-vs { font-size: calc(var(--u) * 12); color: var(--w-dim); letter-spacing: 0.06em; }
.mpk-score { font-size: calc(var(--u) * 14); font-weight: 700; color: var(--w-text); letter-spacing: 0.02em; }
.mpk-live { font-size: calc(var(--u) * 11); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #ff7a85; animation: mpk-pulse 1.8s ease-in-out infinite; }
.mpk-mteam { display: grid; place-items: center; transition: opacity 0.6s var(--mpk-ease), filter 0.6s var(--mpk-ease); }
.mpk-mteam img, .mpk-mteam .mpk-mono { width: calc(var(--u) * 28); height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); transition: filter 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease); }
.mpk-mteam .mpk-mono { font-size: calc(var(--u) * 9); width: calc(var(--u) * 28); }
.mpk-mteam[data-tcard]:hover img { transform: scale(1.12); }
.mpk-mteam.is-lost { opacity: 0.32; filter: grayscale(0.85); }
.mpk-mmid { display: grid; place-items: center; }

/* ---------- team card ---------- */
.mpk-tcard {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9990;
    width: 300px;
    max-width: calc(100vw - 16px);
    padding: 16px 16px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 27, 34, 0.98), rgba(10, 14, 18, 0.98));
    box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 255, 100, 0.22), 0 0 40px -18px rgba(0, 255, 100, 0.35);
    font-family: var(--glhf-font-body, system-ui, sans-serif);
    font-size: 0.82rem;
    line-height: 1.35;
    color: #e6ebef;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.97);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.5s;
}
.mpk-tcard.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s; }
.mpk-tcard.is-measure { visibility: hidden; transition: none; }
.mpk-tcard[data-side="left"]:not(.is-on) { transform: translateX(8px) scale(0.97); }
.mpk-tcard[data-side="right"]:not(.is-on) { transform: translateX(-8px) scale(0.97); }
.mpk-tc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(140, 175, 160, 0.12); }
.mpk-tc-logo { width: 52px; height: auto; flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55)); }
.mpk-tc-head .mpk-mono { display: grid; place-items: center; width: 52px; height: 52px; flex: none; }
.mpk-tc-name { display: block; font: 400 0.92rem/1.2 var(--glhf-font-heading, "Enerhodar", "Segoe UI", sans-serif); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.mpk-tc-rank { display: block; margin-top: 4px; color: #aab3bc; }
.mpk-tc-rank b { color: #ffc861; }
.mpk-tc-roster { margin-top: 11px; padding: 8px 10px; border-radius: 8px; background: rgba(5, 8, 11, 0.6); box-shadow: inset 0 0 0 1px rgba(140, 175, 160, 0.1); color: #c4ccd3; }
.mpk-tc-row { display: flex; flex-direction: column; gap: 5px; margin-top: 11px; }
.mpk-tc-k { font: 700 0.7rem/1 "MPK Cond", "Roboto Condensed", "Arial Narrow", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #6b7280; }
.mpk-tc-opp { display: flex; align-items: center; gap: 8px; }
.mpk-tc-opp img, .mpk-tc-opp .mpk-mono { width: 22px; height: auto; }
.mpk-tc-opp b { color: #fff; }
.mpk-tcard i { font-style: normal; color: #6b7280; }
.mpk-tc-stages { display: flex; flex-wrap: wrap; gap: 5px; }
.mpk-tc-stage { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(140, 175, 160, 0.12); }
.mpk-tc-stage.is-up { background: rgba(0, 255, 100, 0.1); box-shadow: inset 0 0 0 1px rgba(0, 255, 100, 0.35); color: #9dffc6; }
.mpk-tc-stage.is-down { background: rgba(255, 90, 95, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.35); color: #ffb3ba; }
.mpk-tc-form { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.mpk-tc-form li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; }
.mpk-tc-res { display: grid; place-items: center; width: 20px; height: 18px; border-radius: 5px; font: 700 0.72rem/1 "MPK Cond", "Roboto Condensed", sans-serif; }
.mpk-tc-res.is-w { background: #00ff64; color: #04170c; }
.mpk-tc-res.is-l { background: rgba(255, 90, 95, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.5); color: #ffb3ba; }
.mpk-tc-o { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpk-tc-d { color: #6b7280; font-size: 0.76rem; }
.mpk-tc-foot { margin-top: 11px; padding-top: 8px; border-top: 1px solid rgba(140, 175, 160, 0.12); font-size: 0.7rem; color: #6b7280; }
.mpk-chip, .mpk-mteam, .mpk-out, .mpk-side { -webkit-touch-callout: none; }

/* small markers: where the winners and the losers go next */
.mpk-arrow {
    width: calc(var(--u) * 12);
    height: calc(var(--u) * 12);
    margin-top: calc(var(--u) * -6);
    background: var(--mpk-acc);
    clip-path: polygon(0 20%, 55% 20%, 55% 0, 100% 50%, 55% 100%, 55% 80%, 0 80%);
    opacity: 0.75;
    filter: drop-shadow(0 0 calc(var(--u) * 5) rgba(var(--mpk-acc-rgb), 0.5));
    transform: rotate(-24deg);
    animation: mpk-arrow 3.6s var(--mpk-ease) infinite;
}
.mpk-arrow.is-down { transform: rotate(24deg); background: var(--mpk-red); filter: drop-shadow(0 0 calc(var(--u) * 5) rgba(255, 90, 95, 0.45)); animation-delay: 1.8s; }
@keyframes mpk-arrow { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.95; } }

/* pick boxes: 3:0, 3:1 3:2, 0:3 - tinted glass with a thin neon edge */
.mpk-pickbox {
    --pb: var(--mpk-acc-rgb);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--u) * 8);
    padding: calc(var(--u) * 8);
    border-radius: calc(var(--u) * 12);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(var(--pb), 0.14), transparent 70%),
        linear-gradient(180deg, rgba(var(--pb), 0.07), rgba(var(--pb), 0.025)),
        rgba(5, 8, 11, 0.6);
    box-shadow: inset 0 0 0 1px rgba(var(--pb), 0.38), 0 calc(var(--u) * 14) calc(var(--u) * 34) calc(var(--u) * -18) rgba(var(--pb), 0.35);
    transition: box-shadow 0.7s var(--mpk-ease);
}
.mpk-pickbox:hover { box-shadow: inset 0 0 0 1px rgba(var(--pb), 0.6), 0 calc(var(--u) * 14) calc(var(--u) * 38) calc(var(--u) * -14) rgba(var(--pb), 0.45); }
.mpk-pickbox--03 { --pb: 255, 90, 95; }
.mpk-pickbox--adv { display: grid; grid-template-columns: calc(var(--u) * 96) 1fr; align-items: center; gap: calc(var(--u) * 10); }
.mpk-pickbox-label {
    font: 400 calc(var(--u) * 11) / 1.35 var(--mpk-head);
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    color: rgb(var(--pb));
    text-shadow: 0 0 calc(var(--u) * 14) rgba(var(--pb), 0.35);
    white-space: nowrap;
}
.mpk-slots { display: flex; justify-content: center; gap: calc(var(--u) * 10); }
.mpk-pickbox--adv .mpk-slots { display: grid; grid-template-columns: repeat(3, calc(var(--u) * 56)); gap: calc(var(--u) * 10) calc(var(--u) * 12); }

/* a slot is a socket: dark well, the team drops in and the ring lights up */
.mpk-slot {
    position: relative;
    display: grid;
    place-items: center;
    width: calc(var(--u) * 56);
    height: calc(var(--u) * 56);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.22));
    box-shadow: inset 0 0 0 calc(var(--u) * 1.5) rgba(var(--pb, 255, 255, 255), 0.22), inset 0 calc(var(--u) * 5) calc(var(--u) * 10) rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.6s var(--mpk-ease), background-color 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease);
}
.mpk-slot > * { grid-area: 1 / 1; }
.mpk-slot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 calc(var(--u) * 1.5) rgba(var(--pb, 255, 255, 255), 0.8);
    opacity: 0;
    pointer-events: none;
}
.mpk-slot.is-land::after { animation: mpk-land 0.9s var(--mpk-ease) both; }
@keyframes mpk-land { from { opacity: 0.9; transform: scale(0.9); } to { opacity: 0; transform: scale(1.7); } }
.mpk-slot-q { font-size: calc(var(--u) * 20); color: rgba(var(--pb, 255, 255, 255), 0.4); transition: opacity 0.5s var(--mpk-ease); }
.mpk-slot.has-team .mpk-slot-q { opacity: 0; }
.mpk-slot.has-team { box-shadow: inset 0 0 0 calc(var(--u) * 1.5) rgba(var(--pb, 255, 255, 255), 0.6), inset 0 calc(var(--u) * 5) calc(var(--u) * 10) rgba(0, 0, 0, 0.6), 0 0 calc(var(--u) * 14) calc(var(--u) * -2) rgba(var(--pb, 255, 255, 255), 0.35); }
.mpk-slot > .mpk-chip { width: 100%; height: 100%; }
.mpk-slot > .mpk-chip::before { inset: calc(var(--u) * -4); }
.mpk-slot > .mpk-chip .mpk-chip-logo { width: 72%; }
.mpk.is-armed .mpk-slot:not(.is-locked) { box-shadow: inset 0 0 0 calc(var(--u) * 1.5) rgba(255, 255, 255, 0.55), inset 0 calc(var(--u) * 5) calc(var(--u) * 10) rgba(0, 0, 0, 0.6); animation: mpk-socket 2.4s ease-in-out infinite; }
@keyframes mpk-socket { 0%, 100% { transform: none; } 50% { transform: scale(1.04); } }
.mpk-slot.is-target { transform: scale(1.1); animation: none !important; box-shadow: inset 0 0 0 calc(var(--u) * 2.5) #fff, 0 0 calc(var(--u) * 22) rgba(255, 255, 255, 0.35); }
.mpk-slot > .mpk-chip .mpk-chip-logo { transition: transform 0.5s var(--mpk-ease), opacity 0.5s var(--mpk-ease), filter 0.5s var(--mpk-ease); }
/* dragging onto a taken slot: its team steps back - it will swap places (or return to the pool) */
.mpk-slot.is-swap > .mpk-chip:not(.is-dragging) .mpk-chip-logo { transform: scale(0.72); opacity: 0.45; }
.mpk-slot-mark {
    position: absolute;
    right: calc(var(--u) * -3);
    top: calc(var(--u) * -3);
    z-index: 3;
    display: grid;
    place-items: center;
    width: calc(var(--u) * 20);
    height: calc(var(--u) * 20);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease);
    pointer-events: none;
}
.mpk-slot-mark svg { width: 62%; height: auto; }
.mpk-slot.is-correct { box-shadow: inset 0 0 0 calc(var(--u) * 2.5) var(--mpk-acc), 0 0 calc(var(--u) * 16) rgba(var(--mpk-acc-rgb), 0.4); }
.mpk-slot.is-wrong { box-shadow: inset 0 0 0 calc(var(--u) * 2.5) #ff8f99; }
.mpk-slot.is-correct .mpk-slot-mark { opacity: 1; transform: none; background: var(--mpk-acc); color: #062012; box-shadow: 0 0 calc(var(--u) * 10) rgba(var(--mpk-acc-rgb), 0.6); }
.mpk-slot.is-wrong .mpk-slot-mark { opacity: 1; transform: none; background: #ff5a65; color: #2a0509; }
.mpk-slot.is-wrong .mpk-chip-logo { filter: grayscale(0.9) brightness(0.65); }
.mpk-slot-comm {
    position: absolute;
    left: 50%;
    bottom: calc(var(--u) * -9);
    z-index: 3;
    translate: -50% 0;
    padding: 0 calc(var(--u) * 5);
    border-radius: 999px;
    background: rgba(5, 8, 11, 0.92);
    box-shadow: inset 0 0 0 1px var(--mpk-line);
    font-size: calc(var(--u) * 10.5);
    font-weight: 700;
    color: var(--w-soft);
    animation: mpk-rise 0.6s var(--mpk-ease) both;
    pointer-events: none;
}

/* known results: 2:3 and 1:3 */
.mpk-outbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--u) * 8);
    padding: calc(var(--u) * 9) calc(var(--u) * 8);
    border-radius: calc(var(--u) * 12);
    background: var(--w-out);
    box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.16);
}
.mpk-outbox .mpk-pickbox-label { --pb: 255, 154, 162; text-shadow: none; }
.mpk-outs { display: flex; gap: calc(var(--u) * 7); }
.mpk-out {
    display: grid;
    place-items: center;
    width: calc(var(--u) * 38);
    height: calc(var(--u) * 38);
    border-radius: 50%;
    box-shadow: inset 0 0 0 calc(var(--u) * 1.5) rgba(255, 255, 255, 0.1);
    font-size: calc(var(--u) * 16);
    color: rgba(255, 255, 255, 0.22);
    transition: opacity 0.6s var(--mpk-ease);
}
.mpk-out img, .mpk-out .mpk-mono { width: 72%; height: auto; filter: grayscale(0.6); opacity: 0.85; font-size: calc(var(--u) * 9); }

/* mini leaderboard in the corner */
.mpk-leaders { display: flex; flex-direction: column; gap: calc(var(--u) * 6); }
.mpk-leaders-head { display: flex; align-items: center; justify-content: space-between; font: 400 calc(var(--u) * 10.5) / 1.3 var(--mpk-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-soft); }
.mpk-leaders ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: calc(var(--u) * 3); }
.mpk-leaders li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: calc(var(--u) * 4) calc(var(--u) * 12);
    border-radius: calc(var(--u) * 7);
    background: rgba(5, 8, 11, 0.5);
    box-shadow: inset 0 0 0 1px var(--mpk-line-soft);
    font-size: calc(var(--u) * 12.5);
    color: var(--w-soft);
    animation: mpk-rise 0.6s var(--mpk-ease) both;
}
.mpk-leaders li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpk-leaders li b { color: #fff; }
.mpk-leaders li.is-me { background: rgba(var(--mpk-acc-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.4); color: #fff; }
.mpk-leaders li.is-me b { color: var(--mpk-acc); }
.mpk-leaders li.is-empty { color: var(--w-dim); }

/* «Picks saved» badge */
.mpk-saved {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--u) * 8);
    border: calc(var(--u) * 1) solid rgba(var(--mpk-acc-rgb), 0.45);
    border-radius: 999px;
    background: rgba(var(--mpk-acc-rgb), 0.07);
    font-size: calc(var(--u) * 13.5);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #9dffc6;
    white-space: nowrap;
    transition: border-color 0.6s var(--mpk-ease), color 0.6s var(--mpk-ease), background-color 0.6s var(--mpk-ease), opacity 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease);
}
.mpk-saved[hidden] { display: none; }
.mpk-saved svg { width: calc(var(--u) * 15); height: auto; flex: none; }
.mpk-saved[data-s="saving"] { border-color: rgba(255, 255, 255, 0.25); color: var(--w-soft); background: rgba(5, 8, 11, 0.4); }
.mpk-saved[data-s="count"] { border-style: dashed; border-color: rgba(255, 255, 255, 0.28); color: var(--w-soft); background: rgba(5, 8, 11, 0.45); }
.mpk-saved[data-s="error"] { border-color: rgba(255, 120, 130, 0.75); color: #ffb1b8; background: rgba(40, 8, 14, 0.5); }
.mpk-saved[data-s="score"] { border-color: rgba(255, 255, 255, 0.18); color: #fff; background: rgba(5, 8, 11, 0.45); }
.mpk-saved.is-inline { position: static; height: 38px; gap: 8px; padding: 0 18px; font-size: 0.9rem; border-style: solid; border-width: 1px; }
.mpk-saved.is-inline[data-s="saved"] { border-color: rgba(var(--mpk-acc-rgb), 0.45); }
.mpk-saved.is-inline svg { width: 15px; }

/* ---------- playoffs ---------- */
.mpk-playoffs { padding-top: 10px; }
.mpk-bracket {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.7fr);
    gap: 0 44px;
}
.mpk-round { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.mpk-round-name {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    font: 400 0.7rem/1.3 var(--mpk-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--w-soft);
}
.mpk-round-pts { padding: 2px 8px; border-radius: 999px; background: rgba(var(--mpk-acc-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.3); font: 700 0.74rem/1.3 var(--mpk-cond); letter-spacing: 0.04em; color: var(--mpk-acc); }
.mpk-round-list { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 16px; }
.mpk-match {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(8, 12, 16, 0.9);
    box-shadow: inset 0 0 0 1px var(--w-box-line);
    transition: box-shadow 0.6s var(--mpk-ease), background-color 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease);
}
.mpk-match:hover { box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.28); }
.mpk-match.is-correct { box-shadow: inset 0 0 0 1.5px var(--mpk-acc), 0 0 22px -8px rgba(var(--mpk-acc-rgb), 0.6); }
.mpk-match.is-wrong { box-shadow: inset 0 0 0 1.5px #ff7f8a; }
/* connectors between rounds: drawn in JS, light runs along the path of the picked team */
.mpk-wires { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mpk-wire { fill: none; stroke: rgba(140, 175, 160, 0.2); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke 0.8s var(--mpk-ease), stroke-dashoffset 1.1s var(--mpk-ease), opacity 0.8s var(--mpk-ease); }
.mpk-wire.is-new { stroke-dashoffset: 1; }
.mpk-wire.is-on { stroke: rgba(var(--mpk-acc-rgb), 0.75); filter: drop-shadow(0 0 4px rgba(var(--mpk-acc-rgb), 0.55)); }
.mpk-wire.is-gold { stroke: rgba(var(--mpk-gold-rgb), 0.85); filter: drop-shadow(0 0 5px rgba(var(--mpk-gold-rgb), 0.55)); }
.mpk-wire.is-miss { stroke: rgba(var(--mpk-red-rgb), 0.5); }
.mpk-wire.is-hot { stroke: #fff; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
.mpk-wire-pulse { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.12 1; stroke-dashoffset: 0.12; opacity: 0; }
.mpk-wire-pulse.is-on { opacity: 0.85; animation: mpk-wire 3.4s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
@keyframes mpk-wire { 0% { stroke-dashoffset: 0.12; opacity: 0; } 12% { opacity: 0.85; } 70% { opacity: 0.85; } 86%, 100% { stroke-dashoffset: -1; opacity: 0; } }
.mpk-side {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 5px 12px 5px 10px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease), opacity 0.6s var(--mpk-ease);
}
.mpk-side::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--mpk-acc);
    box-shadow: 0 0 12px rgba(var(--mpk-acc-rgb), 0.7);
    transform: scaleY(0);
    transition: transform 0.6s var(--mpk-ease), background-color 0.6s var(--mpk-ease);
}
.mpk-side:disabled { cursor: default; }
.mpk-side:not(:disabled):hover { background: rgba(var(--mpk-acc-rgb), 0.06); }
.mpk-side:not(:disabled):hover::before { transform: scaleY(0.45); }
.mpk-side-logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 0 0 1px var(--mpk-line-soft);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}
.mpk-side-logo img, .mpk-side-logo .mpk-mono { width: 26px; height: auto; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5)); transition: filter 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease); }
.mpk-side:not(:disabled):hover .mpk-side-logo img { transform: scale(1.1); }
.mpk-side-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; font-weight: 600; color: var(--w-text); transition: color 0.6s var(--mpk-ease); }
.mpk-side-score { font-size: 1.05rem; font-weight: 700; color: var(--w-dim); }
.mpk-side.is-tbd .mpk-side-name { color: var(--w-dim); font-weight: 400; }
.mpk-side.is-picked { background: linear-gradient(90deg, rgba(var(--mpk-acc-rgb), 0.16), rgba(var(--mpk-acc-rgb), 0.03)); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.3); }
.mpk-side.is-picked::before { transform: none; }
.mpk-side.is-picked .mpk-side-name { color: #fff; }
.mpk-side.is-won .mpk-side-score { color: #fff; }
.mpk-side.is-lost { opacity: 0.5; }
.mpk-side.is-lost img { filter: grayscale(0.9); }
.mpk-side.is-picked.is-lost { background: linear-gradient(90deg, rgba(255, 90, 95, 0.18), rgba(255, 90, 95, 0.03)); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.3); opacity: 0.8; }
.mpk-side.is-picked.is-lost::before { background: var(--mpk-red); box-shadow: 0 0 12px rgba(255, 90, 95, 0.6); }
.mpk-side.is-path { background: rgba(255, 255, 255, 0.07); }
.mpk-side-pct { font-size: 0.78rem; color: var(--w-soft); min-width: 32px; text-align: right; }
.mpk-champ {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 10px;
    align-self: center;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 30%, rgba(var(--mpk-gold-rgb), 0.14), transparent 70%), rgba(8, 12, 16, 0.9);
    box-shadow: inset 0 0 0 1px rgba(var(--mpk-gold-rgb), 0.28), 0 0 40px -18px rgba(var(--mpk-gold-rgb), 0.5);
    text-align: center;
    overflow: hidden;
}
.mpk-champ::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from var(--mpk-ang), transparent 0deg, rgba(var(--mpk-gold-rgb), 0.12) 40deg, transparent 90deg, transparent 180deg, rgba(var(--mpk-gold-rgb), 0.08) 220deg, transparent 270deg);
    animation: mpk-orbit 14s linear infinite;
    pointer-events: none;
}
.mpk-champ > * { position: relative; }
.mpk-champ-ic { color: var(--mpk-gold); }
.mpk-champ-ic svg { width: 26px; height: 26px; }
.mpk-champ-logo { width: 64px; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)); }
.mpk-champ-q { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(var(--mpk-gold-rgb), 0.3); font-size: 1.5rem; color: rgba(var(--mpk-gold-rgb), 0.45); }
.mpk-champ-name { font: 400 0.74rem/1.3 var(--mpk-head); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.mpk-po-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 20px; }
.mpk-po-hint { margin-right: auto; font-size: 0.86rem; color: var(--w-soft); }

/* ---------- cards under the window (top of forecasters) ---------- */
.mpk-card { padding: 26px 28px; box-shadow: var(--mpk-raise); }
.mpk-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.mpk-card-title {
    flex: none;
    margin: 0;
    white-space: nowrap;
    font: 400 0.86rem/1.3 var(--mpk-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mpk-text);
}
.mpk-card-sub { font-size: 0.8rem; color: var(--mpk-mute); }
.mpk-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--mpk-soft);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 3px;
    transition: color 0.5s var(--mpk-ease), text-decoration-color 0.5s var(--mpk-ease);
}
.mpk-link:hover { color: var(--mpk-text); text-decoration-color: currentColor; }

.mpk-move { display: inline-flex; align-items: center; gap: 1px; margin-left: 5px; font: 700 0.7rem/1 var(--mpk-cond); vertical-align: middle; animation: mpk-up 0.7s var(--mpk-ease) both; }
.mpk-move svg { width: 9px; height: 9px; }
.mpk-move.is-up { color: #6cf0a6; }
.mpk-move.is-down { color: #ff8f99; }
.mpk-move.is-new { padding: 1px 4px; border-radius: 4px; background: rgba(var(--mpk-gold-rgb), 0.16); color: var(--mpk-gold); text-transform: uppercase; letter-spacing: 0.05em; }



.mpk-scope {
    padding: 8px 14px;
    border: 1px solid var(--mpk-line);
    border-radius: 999px;
    background: transparent;
    font-size: 0.82rem;
    color: var(--mpk-soft);
    cursor: pointer;
    transition: background-color 0.5s var(--mpk-ease), border-color 0.5s var(--mpk-ease), color 0.5s var(--mpk-ease);
}
.mpk-scope:hover { color: var(--mpk-text); border-color: rgba(255, 255, 255, 0.16); }
.mpk-scope.is-active { color: var(--mpk-text); border-color: rgba(var(--mpk-acc-rgb), 0.45); background: rgba(var(--mpk-acc-rgb), 0.09); }
.mpk-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mpk-row {
    display: grid;
    grid-template-columns: 62px 32px minmax(0, 1fr) auto 64px;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    animation: mpk-rise 0.6s var(--mpk-ease) both;
    animation-delay: calc(var(--i, 0) * 35ms);
    transition: background-color 0.5s var(--mpk-ease);
}
.mpk-row:hover { background: rgba(255, 255, 255, 0.04); }
.mpk-row.is-me { background: rgba(var(--mpk-acc-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.3); }
.mpk-row.is-gap { margin-top: 14px; }
.mpk-row-place { display: flex; align-items: center; justify-content: flex-start; padding-left: 6px; font-family: var(--mpk-cond); font-weight: 700; font-size: 1.05rem; color: var(--mpk-mute); }
.mpk-row:nth-child(1) .mpk-row-place { color: var(--mpk-gold); }
.mpk-row-ava { width: 32px; height: auto; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.06); object-fit: cover; }

.mpk-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mpk-text); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.mpk-row-sub { font-size: 0.76rem; color: var(--mpk-mute); white-space: nowrap; }
.mpk-row-pts { font-family: var(--mpk-cond); font-weight: 700; font-size: 1.2rem; color: var(--mpk-text); text-align: right; }
.mpk-row.is-me .mpk-row-pts { color: var(--mpk-acc); }
.mpk-board-body { min-height: 60px; }


.mpk-empty { margin: 0; padding: 30px 0; text-align: center; color: var(--mpk-mute); font-size: 0.92rem; }
.mpk-pool .mpk-empty { grid-column: 1 / -1; padding: 10px 0; font-size: 0.8rem; }
.mpk-credits { margin: 18px 0 40px; font-size: 0.74rem; color: #59616c; line-height: 1.6; }
.mpk-credits a { color: inherit; }

/* ---------- toast ---------- */
.mpk-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 9998;
    max-width: min(520px, calc(100vw - 32px));
    padding: 13px 20px 13px 18px;
    border: 1px solid rgba(0, 255, 100, 0.35);
    border-radius: 999px;
    background: rgba(13, 18, 23, 0.97);
    color: #f4f7f9;
    font-size: 0.88rem;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65), 0 0 34px -12px rgba(0, 255, 100, 0.45);
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.mpk-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- narrower screens ---------- */
@container (max-width: 1120px) {
    .mpk-window { grid-template-columns: minmax(0, 1fr); }
    .mpk-aside {
        order: 2;
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr);
        grid-template-areas: "title title" "coin goals" "sub goals" "foot foot";
        align-items: start;
        gap: 10px 22px;
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .mpk-aside-title { grid-area: title; }
    .mpk-coin { grid-area: coin; }
    .mpk-coin-sub { grid-area: sub; }
    .mpk-goals { grid-area: goals; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
    .mpk-aside-foot { grid-area: foot; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
    .mpk-aside-note { flex: 1 1 240px; }
}
@container (max-width: 760px) {
    .mpk-follow-in { grid-template-columns: minmax(0, 1fr); }
    .mpk-main { padding: 12px 12px 14px; }
    .mpk-swiss { grid-template-columns: minmax(0, 1fr); }
    .mpk-pool-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .mpk-pool-hint { flex-direction: row; width: 100%; justify-content: center; }
    .mpk-pool { grid-template-columns: repeat(8, 40px); gap: 6px; }
    .mpk-cell, .mpk-cell > .mpk-chip { width: 40px; height: 40px; }
    .mpk-cell-ghost img { width: 32px; }
    .mpk-bracket { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .mpk-round:not(.mpk-round--2) .mpk-match::after { display: none; }
    .mpk-champ { flex-direction: row; justify-self: stretch; }
    .mpk-aside { grid-template-columns: 1fr; grid-template-areas: "title" "coin" "sub" "goals" "foot"; justify-items: center; }
    .mpk-goals { justify-self: stretch; grid-template-columns: 1fr; }
}
@container (max-width: 560px) {
    .mpk-row { grid-template-columns: 50px 28px minmax(0, 1fr) 48px; gap: 8px; }
    .mpk-row-place { padding-left: 2px; }
    .mpk-move { margin-left: 3px; }
    .mpk-row-sub { display: none; }
    .mpk-pool { grid-template-columns: repeat(4, 44px); }
    .mpk-cell, .mpk-cell > .mpk-chip { width: 44px; height: 44px; }
    .mpk-card { padding: 14px; }
    .mpk-card-head { flex-direction: column; align-items: flex-start; gap: 4px; }
    .mpk-po-foot { flex-wrap: wrap; }
    .mpk-tab { padding: 7px 9px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mpk *, .mpk *::before, .mpk *::after { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
}

/* ---------- comparing two Pick'ems (a dialog over the page) ---------- */
html.mpk-noscroll { overflow: hidden; }
.mpk-row[data-k]:not(.is-me) { cursor: pointer; }
.mpk-cmp { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; gap: 0; padding: 16px; container-type: normal; visibility: hidden; transition: visibility 0s linear 0.55s; }
.mpk-cmp.is-on { visibility: visible; transition: visibility 0s; }
.mpk-cmp-back { position: absolute; inset: 0; background: rgba(5, 8, 11, 0.72); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.55s var(--mpk-ease); }
.mpk-cmp.is-on .mpk-cmp-back { opacity: 1; }
.mpk-cmp-box {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 22px 22px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--w-bg1), var(--w-bg2));
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    font-family: var(--mpk-cond);
    color: var(--w-text);
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition: opacity 0.55s var(--mpk-ease), transform 0.55s var(--mpk-ease);
}
.mpk-cmp.is-on .mpk-cmp-box { opacity: 1; transform: none; }
.mpk-cmp-x { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--w-soft); cursor: pointer; transition: background-color 0.5s var(--mpk-ease), color 0.5s var(--mpk-ease); }
.mpk-cmp-x:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.mpk-cmp-x svg { width: 13px; height: 13px; }
.mpk-cmp-load { display: flex; align-items: center; gap: 10px; padding: 30px 6px; color: var(--w-soft); }
.mpk-cmp-load span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: #fff; animation: mpk-spin 0.9s linear infinite; }
.mpk-cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-right: 30px; }
.mpk-cmp-who { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.mpk-cmp-who b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.mpk-cmp-who > span:last-child { font-size: 0.85rem; color: var(--w-soft); }
.mpk-cmp-ava { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); object-fit: cover; }
.mpk-cmp-ava.is-me { background: rgba(var(--mpk-acc-rgb), 0.16); color: var(--mpk-acc); font-weight: 700; }
.mpk-cmp-vs { font-size: 0.9rem; color: var(--w-dim); text-transform: uppercase; }
.mpk-cmp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.mpk-cmp-body { margin-top: 14px; }
.mpk-cmp-sum { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 9px; background: rgba(5, 8, 11, 0.35); font-family: var(--glhf-font-body, inherit); font-size: 0.88rem; }
.mpk-cmp-sum b { color: #fff; }
.mpk-cmp-cols { display: grid; grid-template-columns: 1fr 96px 1fr; margin: 14px 0 4px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-dim); text-align: center; }
.mpk-cmp-zone { display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.mpk-cmp-zname { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; text-align: center; }
.mpk-cmp-side { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.mpk-cmp-t { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(5, 8, 11, 0.45); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1); opacity: 0.55; transition: opacity 0.5s var(--mpk-ease), box-shadow 0.5s var(--mpk-ease); }
.mpk-cmp-t img, .mpk-cmp-t .mpk-mono { width: 70%; height: auto; }
.mpk-cmp-t.is-same { opacity: 1; box-shadow: inset 0 0 0 1.5px rgba(var(--mpk-acc-rgb), 0.75); }
.mpk-cmp-t.is-right { opacity: 1; box-shadow: inset 0 0 0 2px #8dffc0; }
.mpk-cmp-t.is-wrong { box-shadow: inset 0 0 0 2px rgba(255, 143, 153, 0.7); }
.mpk-cmp-t.is-wrong img { filter: grayscale(0.9); }
.mpk-cmp-t.is-empty { color: var(--w-dim); }
/* a pick the other one does not have */
.mpk-cmp-t.is-diff::after { content: ""; position: absolute; right: -1px; top: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--mpk-gold); box-shadow: 0 0 0 2px var(--w-bg1); }
.mpk-cmp-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--glhf-font-body, inherit); font-size: 0.76rem; color: var(--w-dim); }
.mpk-cmp-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--mpk-gold); }
.mpk-cmp-none { font-size: 0.8rem; color: var(--w-dim); }
.mpk-cmp-edge { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-family: var(--glhf-font-body, inherit); font-size: 0.84rem; color: var(--w-soft); }
.mpk-cmp-edge div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mpk-cmp-edge img { width: 20px; height: auto; }
@media (max-width: 560px) {
    .mpk-cmp { padding: 8px; }
    .mpk-cmp-box { padding: 18px 12px 14px; }
    .mpk-cmp-zone, .mpk-cmp-cols { grid-template-columns: 1fr 56px 1fr; }
    .mpk-cmp-t { width: 34px; height: 34px; }
    .mpk-cmp-zname { font-size: 0.74rem; }
}



.mpk-ghost-btn.is-discord { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.mpk-ghost-btn.is-discord svg { width: 17px; height: 17px; color: #8c9eff; flex: none; }
.mpk-ghost-btn.is-busy { opacity: 0.55; pointer-events: none; }

/* ---------- «Прогноз дня» ---------- */
.mpk-daily[hidden] { display: none; }
.mpk-fc { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.mpk-fc img { width: 14px; height: auto; }
.mpk-dl-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: center; }
.mpk-dl-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 16px 12px; border-radius: 12px; background: linear-gradient(160deg, rgba(20, 27, 34, 0.7), rgba(13, 18, 23, 0.7)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mpk-dl-team { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.mpk-dl-team img, .mpk-dl-team .mpk-mono { width: 56px; height: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.mpk-dl-team b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1rem/1.1 var(--mpk-cond); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.mpk-dl-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--mpk-mute); text-align: center; }
.mpk-dl-mid .mpk-vs { font-size: 1rem; }
.mpk-dl-mid .mpk-live { font-size: 0.85rem; }
.mpk-dl-res { font: 700 1.6rem/1 var(--mpk-cond); color: #fff; }
.mpk-dl-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mpk-dl-bank { display: flex; align-items: baseline; gap: 10px; }
.mpk-dl-bank span, .mpk-dl-k { font: 700 0.74rem/1 var(--mpk-cond); letter-spacing: 0.09em; text-transform: uppercase; color: var(--mpk-mute); }
.mpk .mpk-dl-bank b, .mpk .mpk-dl-bank .mpk-fc { font: 700 1.5rem/1 var(--mpk-cond); color: var(--mpk-gold); }
.mpk .mpk-dl-bank .mpk-fc img { width: 20px; }
.mpk-dl-bank em { font-style: normal; font-size: 0.82rem; color: var(--mpk-soft); }
.mpk-dl-form { display: flex; flex-direction: column; gap: 10px; }
.mpk-dl-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 10px; }
.mpk-dl-row.is-go { grid-template-columns: auto auto; justify-content: start; gap: 14px; }
.mpk-dl-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mpk .mpk-dl-opt, .mpk .mpk-dl-stake {
    padding: 7px 11px;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    font: 700 0.86rem/1 var(--mpk-cond);
    letter-spacing: 0.03em;
    color: var(--mpk-text);
    cursor: pointer;
    transition: background-color 0.5s var(--mpk-ease), box-shadow 0.5s var(--mpk-ease), color 0.5s var(--mpk-ease);
}
.mpk-dl-stake { min-width: 36px; text-align: center; }
.mpk-dl-opt:hover, .mpk-dl-stake:hover { background: rgba(255, 255, 255, 0.09); }
.mpk-dl-opt.is-on, .mpk-dl-stake.is-on { background: rgba(var(--mpk-acc-rgb), 0.14); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.6); color: #fff; }
.mpk-dl-unit { margin-left: 2px; font-size: 0.8rem; color: var(--mpk-mute); }
.mpk-dl-form .glhf-btn.is-confirm { box-shadow: 0 0 0 2px rgba(var(--mpk-gold-rgb), 0.7); }
.mpk-dl-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.04); font-size: 0.92rem; color: var(--mpk-soft); }
.mpk-dl-mine b { color: #fff; }
.mpk-daily .is-good { color: #6cf0a6; }
.mpk-daily .is-bad { color: #ff8f99; }
.mpk-dl-note { margin: 0; font-size: 0.88rem; color: var(--mpk-soft); }
.mpk-dl-dist { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.mpk-dl-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px 90px; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--mpk-soft); }
.mpk-dl-bar i { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.mpk-dl-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: rgba(255, 255, 255, 0.3); animation: mpk-grow 0.9s var(--mpk-ease) both; }
.mpk-dl-bar.is-result i::after { background: var(--mpk-acc); }
.mpk-dl-bar.is-result span, .mpk-dl-bar.is-result b { color: #fff; }
.mpk-dl-bar em { font-style: normal; color: var(--mpk-mute); }
@keyframes mpk-grow { from { transform: scaleX(0); transform-origin: left; } to { transform: none; transform-origin: left; } }
.mpk-dl-past { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--mpk-line); }
.mpk-dl-prow { display: grid; grid-template-columns: 70px minmax(0, 1fr) 90px 90px; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--mpk-soft); }
.mpk-dl-prow > span:nth-child(2) { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.mpk-dl-prow img { width: 20px; height: auto; }
.mpk-dl-prow b { color: #fff; }
@container (max-width: 760px) {
    .mpk-dl-main { grid-template-columns: minmax(0, 1fr); }
    .mpk-dl-bar { grid-template-columns: 110px minmax(0, 1fr) 40px; }
    .mpk-dl-bar em { display: none; }
    .mpk-dl-prow { grid-template-columns: 62px minmax(0, 1fr) auto; }
    .mpk-dl-prow > span:first-child { white-space: nowrap; }
    .mpk-dl-prow > span:nth-child(3) { display: none; }
    .mpk-dl-row.is-go { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   Before the bracket: the Major preview (format, points, invited teams, maps)
   ===================================================================== */
.mpk-pv {
    padding: 32px 34px 36px;
    box-shadow: var(--mpk-raise);
    color: var(--w-soft);
    font-family: var(--mpk-cond);
    overflow: hidden;
}
.mpk-pv::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("contours.svg") center / cover no-repeat;
    opacity: 0.028;
    pointer-events: none;
}
.mpk-pv-empty { margin: 0; font-size: 1.05rem; color: var(--w-soft); }
.mpk-pv b { color: var(--w-text); font-weight: 700; }
.mpk-pv-h {
    margin: 36px 0 16px;
    font: 400 0.74rem/1.3 var(--mpk-head);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--w-text);
}

/* facts + countdown */
.mpk-pv-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: stretch; }
.mpk-pv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.mpk-pv-facts > div {
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--w-box);
    box-shadow: inset 0 0 0 1px var(--w-box-line);
}
.mpk-pv-facts dt { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--w-dim); }
.mpk-pv-facts dd { margin: 6px 0 0; font-size: 1.45rem; font-weight: 700; color: var(--w-text); white-space: nowrap; }
.mpk-pv-count {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 290px;
    padding: 16px 22px;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(var(--mpk-acc-rgb), 0.07), rgba(var(--mpk-acc-rgb), 0.015));
    box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.16);
}
.mpk-pv-count-t { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(var(--mpk-acc-rgb), 0.85); }
.mpk-pv-count-n { display: flex; gap: 18px; }
.mpk-pv-count-n span { display: flex; align-items: baseline; gap: 5px; }
.mpk-pv-count-n b {
    display: inline-block;
    min-width: 1.2ch;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--w-text);
    transition: opacity 0.45s var(--mpk-ease), transform 0.45s var(--mpk-ease), filter 0.45s var(--mpk-ease);
}
.mpk-pv-count-n b.is-swap { opacity: 0; transform: translateY(-6px); filter: blur(3px); }
.mpk-pv-count-n i { font-style: normal; font-size: 0.82rem; color: var(--w-dim); }
.mpk-pv-count-s { font-size: 0.82rem; color: var(--w-soft); }

/* stages as a track of four cards */
.mpk-pv-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.mpk-pv-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 18px 16px;
    border-radius: 10px;
    background: var(--w-box);
    box-shadow: inset 0 0 0 1px var(--w-box-line);
    font-size: 0.92rem;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.8s var(--mpk-ease), transform 0.8s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
.mpk-pv-stages.is-in .mpk-pv-stage { opacity: 1; transform: none; }
.mpk-pv-stage:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.mpk-pv-stage-n { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--w-text); }
.mpk-pv-stage-d { display: inline-flex; align-items: center; gap: 7px; color: var(--w-text); }
.mpk-pv-stage-d svg { width: 14px; height: 14px; color: rgba(var(--mpk-acc-rgb), 0.8); flex: none; }
.mpk-pv-dim { color: var(--w-dim); }
.mpk-pv-stage-p {
    align-self: flex-start;
    margin-top: auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(var(--mpk-acc-rgb), 0.1);
    color: var(--mpk-acc);
    font-size: 0.8rem;
    font-weight: 700;
}
.mpk-pv-stage.is-po .mpk-pv-stage-p { background: rgba(var(--mpk-gold-rgb), 0.12); color: var(--mpk-gold); }

/* how the points work */
.mpk-pv-rules { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 10px; }
.mpk-pv-rule, .mpk-pv-facts2 {
    margin: 0;
    padding: 18px;
    border-radius: 10px;
    background: var(--w-box);
    box-shadow: inset 0 0 0 1px var(--w-box-line);
}
.mpk-pv-rule p { margin: 14px 0 0; font-size: 0.92rem; line-height: 1.5; }
.mpk-pv-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.mpk-pv-slots span {
    display: grid;
    place-items: center;
    min-height: 30px;
    padding: 0 4px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #e9fff2;
    white-space: nowrap;
}
.mpk-pv-slots .is-30, .mpk-pv-slots .is-adv { background: linear-gradient(180deg, var(--w-green-hi), var(--w-green)); }
.mpk-pv-slots .is-03 { background: linear-gradient(180deg, var(--w-red-hi), var(--w-red)); color: #ffe9ec; }
.mpk-pv-bracket {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(4, 13px);
    gap: 5px 14px;
    height: 67px;
}
.mpk-pv-bracket span { grid-column: 1; border-radius: 5px; background: rgba(var(--mpk-acc-rgb), 0.35); }
.mpk-pv-bracket i { grid-column: 2; border-radius: 5px; background: rgba(var(--mpk-acc-rgb), 0.55); }
.mpk-pv-bracket i:nth-of-type(1) { grid-row: 1 / span 2; margin: 9px 0; }
.mpk-pv-bracket i:nth-of-type(2) { grid-row: 3 / span 2; margin: 9px 0; }
.mpk-pv-bracket em { grid-column: 3; grid-row: 2 / span 2; margin: 9px 0; border-radius: 5px; background: linear-gradient(180deg, rgba(var(--mpk-gold-rgb), 0.85), rgba(var(--mpk-gold-rgb), 0.45)); }
.mpk-pv-facts2 { list-style: none; display: grid; align-content: center; gap: 10px; font-size: 0.92rem; line-height: 1.45; }
.mpk-pv-facts2 li { position: relative; padding-left: 16px; }
.mpk-pv-facts2 li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--mpk-acc-rgb), 0.75); }

/* invited teams */
.mpk-pv-teams-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 34px; }
.mpk-pv-teams-head .mpk-pv-h { margin: 0; }
.mpk-pv-tag {
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(var(--mpk-gold-rgb), 0.12);
    box-shadow: inset 0 0 0 1px rgba(var(--mpk-gold-rgb), 0.3);
    color: var(--mpk-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.mpk-pv-tag.is-ok { background: rgba(var(--mpk-acc-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.3); color: var(--mpk-acc); }
.mpk-pv-note { margin: 10px 0 0; max-width: 72ch; font-size: 0.9rem; line-height: 1.5; }
.mpk-pv-hint { color: var(--w-dim); }
.mpk-pv-group { margin-top: 22px; }
.mpk-pv-group h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font: 700 0.8rem/1 var(--mpk-cond);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--w-soft);
}
.mpk-pv-group h3 span { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--w-dim); letter-spacing: 0.02em; }
.mpk-pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mpk-pv-team {
    height: 124px;
    perspective: 900px;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.7s var(--mpk-ease), transform 0.7s var(--mpk-ease);
    transition-delay: calc(var(--i, 0) * 35ms);
}
.mpk-pv-group.is-in .mpk-pv-team { opacity: 1; transform: none; }
.mpk-pv-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s var(--mpk-ease);
}
.mpk-pv-face, .mpk-pv-back {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: var(--w-box);
    box-shadow: inset 0 0 0 1px var(--w-box-line);
    transition: box-shadow 0.6s var(--mpk-ease), background-color 0.6s var(--mpk-ease);
}
.mpk-pv-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    text-align: center;
}
.mpk-pv-face b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; letter-spacing: 0.02em; }
.mpk-pv-logo { width: 44px; height: auto; transition: transform 0.7s var(--mpk-ease); }
.mpk-pv-face .mpk-mono { width: 44px; font-size: 0.8rem; }
.mpk-pv-meta { font-size: 0.76rem; color: var(--w-dim); }
.mpk-pv-meta i { font-style: normal; font-weight: 700; color: var(--w-soft); }
.mpk-pv-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    transform: rotateY(180deg);
    background: linear-gradient(160deg, rgba(var(--mpk-acc-rgb), 0.2), rgba(5, 8, 11, 0.7));
    box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.35);
}
.mpk-pv-back ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin: 0; padding: 0; list-style: none; font-size: 0.84rem; color: var(--w-text); }
.mpk-pv-back li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpk-pv-back span, .mpk-pv-back p { margin: 0; font-size: 0.74rem; color: var(--w-dim); }
.mpk-pv-team.is-flip .mpk-pv-flip { transform: rotateY(180deg); }
.mpk-pv-team:focus-visible .mpk-pv-face { box-shadow: inset 0 0 0 2px rgba(var(--mpk-acc-rgb), 0.6); }
@media (hover: hover) {
    .mpk-pv-team:hover .mpk-pv-flip { transform: rotateY(180deg); }
    .mpk-pv-team:hover .mpk-pv-logo { transform: scale(1.06); }
}

/* map pool */
.mpk-pv-maps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mpk-pv-map {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: var(--w-box);
    box-shadow: inset 0 0 0 1px var(--w-box-line);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s var(--mpk-ease), transform 0.7s var(--mpk-ease);
    transition-delay: calc(var(--i, 0) * 60ms);
}
.mpk-pv-maps.is-in .mpk-pv-map { opacity: 1; transform: none; }
.mpk-pv-map img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.72);
    transition: transform 0.9s var(--mpk-ease), filter 0.9s var(--mpk-ease);
}
.mpk-pv-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 11, 0.85)); }
.mpk-pv-map span { position: absolute; left: 10px; bottom: 8px; z-index: 1; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--w-text); }
.mpk-pv-map:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.9); }

@container (max-width: 1120px) {
    .mpk-pv-maps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mpk-pv-rules { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mpk-pv-facts2 { grid-column: 1 / -1; }
}
@container (max-width: 900px) {
    .mpk-pv-top { grid-template-columns: minmax(0, 1fr); }
    .mpk-pv-count { min-width: 0; }
    .mpk-pv-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 560px) {
    .mpk-pv { padding: 20px 16px 24px; }
    .mpk-pv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mpk-pv-facts dd { font-size: 1.2rem; }
    .mpk-pv-stages, .mpk-pv-rules { grid-template-columns: minmax(0, 1fr); }
    .mpk-pv-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mpk-pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mpk-pv-team { height: 116px; }
    .mpk-pv-count-n b { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mpk-pv-stage, .mpk-pv-team, .mpk-pv-map { transform: none; transition: opacity 0.45s ease; }
    .mpk-pv-flip { transform: none !important; transition: none; }
    .mpk-pv-back { transform: none; opacity: 0; transition: opacity 0.45s ease; }
    .mpk-pv-team.is-flip .mpk-pv-back { opacity: 1; }
    @media (hover: hover) { .mpk-pv-team:hover .mpk-pv-back { opacity: 1; } }
}

/* =====================================================================
   Site-style finish for the blocks kept from the first version
   ===================================================================== */
/* follow strip */
.mpk-path, .mpk-fl { border-radius: 12px; background: rgba(5, 8, 11, 0.45); box-shadow: inset 0 0 0 1px var(--mpk-line-soft); }
.mpk-path-title { font: 400 0.64rem/1.3 var(--mpk-head); letter-spacing: 0.08em; }
.mpk-path-dots i.is-right { background: var(--mpk-acc); box-shadow: 0 0 10px rgba(var(--mpk-acc-rgb), 0.55); }
.mpk-path-text .is-good, .mpk-fx.is-win, .mpk-fl-root b { color: #7dffb5; }
.mpk-fl-card { border-radius: 10px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--mpk-line-soft); transition: transform 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease); }
.mpk-fl-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.25); }
.mpk-fl-side.is-root { background: rgba(var(--mpk-acc-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.35); }

/* pool column */
.mpk-pool-hint { color: var(--w-soft); }
.mpk-pool-hint svg { color: var(--mpk-acc); filter: drop-shadow(0 0 8px rgba(var(--mpk-acc-rgb), 0.45)); animation: mpk-nudge 4.5s var(--mpk-ease) infinite; }
@keyframes mpk-nudge { 0%, 60%, 100% { transform: none; } 75% { transform: translateX(5px); } 88% { transform: translateX(-2px); } }
.mpk-keys-pop { border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.2); }
.mpk-keys-pop b { font: 400 0.66rem/1.3 var(--mpk-head); letter-spacing: 0.08em; }
.mpk-keys-pop kbd { background: rgba(var(--mpk-acc-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.3); color: var(--mpk-acc); }

/* strips */
.mpk-warn p, .mpk-livebar p { border-radius: 12px; }
.mpk-lv-btn { border-radius: 999px; padding: 7px 14px; }

/* leaderboard */
.mpk-scope { transition: background-color 0.6s var(--mpk-ease), border-color 0.6s var(--mpk-ease), color 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease); }
.mpk-scope:hover { border-color: rgba(var(--mpk-acc-rgb), 0.3); }
.mpk-scope.is-active { color: var(--mpk-acc); box-shadow: 0 0 22px -10px rgba(var(--mpk-acc-rgb), 0.7); }
.mpk-row { position: relative; border-radius: 12px; box-shadow: inset 0 0 0 1px transparent; transition: background-color 0.6s var(--mpk-ease), box-shadow 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease); }
.mpk-row:hover { background: rgba(var(--mpk-acc-rgb), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.18); transform: translateX(4px); }
.mpk-row.is-me, .mpk-row.is-me:hover { background: rgba(var(--mpk-acc-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.35); }
.mpk-row-place { font: 400 0.8rem/1 var(--mpk-head); }
.mpk-row:nth-child(1) .mpk-row-place { text-shadow: 0 0 14px rgba(var(--mpk-gold-rgb), 0.5); }
.mpk-row:nth-child(2) .mpk-row-place { color: #d5dde4; }
.mpk-row:nth-child(3) .mpk-row-place { color: #d9a877; }
.mpk-row-ava { box-shadow: 0 0 0 1px var(--mpk-line); }
.mpk-row-pts { font: 400 0.92rem/1 var(--mpk-head); }

/* compare dialog */
.mpk-cmp-back { background: rgba(3, 5, 7, 0.78); backdrop-filter: blur(6px); }
.mpk-cmp-box { border-radius: 20px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.22), 0 0 70px -30px rgba(var(--mpk-acc-rgb), 0.4); transition-duration: 0.7s; }
.mpk-cmp-x:hover { background: rgba(var(--mpk-acc-rgb), 0.14); color: var(--mpk-acc); transform: rotate(90deg); }
.mpk-cmp-x { transition: background-color 0.6s var(--mpk-ease), color 0.6s var(--mpk-ease), transform 0.6s var(--mpk-ease); }
.mpk-cmp-who b { font: 400 0.8rem/1.3 var(--mpk-head); }
.mpk-cmp-ava { box-shadow: 0 0 0 1px var(--mpk-line); }
.mpk-cmp-sum { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--mpk-line-soft); }
.mpk-cmp-t.is-right { box-shadow: inset 0 0 0 2px var(--mpk-acc); }
.mpk-cmp-t.is-same { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }

/* «Прогноз дня» */
.mpk-dl-match { border-radius: 14px; background: radial-gradient(120% 100% at 50% 0%, rgba(var(--mpk-acc-rgb), 0.06), transparent 70%), rgba(5, 8, 11, 0.55); box-shadow: inset 0 0 0 1px var(--mpk-line); }
.mpk-dl-team img { transition: transform 0.7s var(--mpk-ease); }
.mpk-dl-team:hover img { transform: translateY(-3px) scale(1.06); }
.mpk-dl-team b { font: 400 0.76rem/1.3 var(--mpk-head); }
.mpk-dl-res { font: 400 1.3rem/1 var(--mpk-head); }
.mpk .mpk-dl-opt, .mpk .mpk-dl-stake { border-radius: 999px; padding: 8px 14px; }
.mpk-dl-opt:hover, .mpk-dl-stake:hover { background: rgba(var(--mpk-acc-rgb), 0.07); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.3); }
.mpk-dl-opt.is-on, .mpk-dl-stake.is-on { color: var(--mpk-acc); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.6), 0 0 20px -8px rgba(var(--mpk-acc-rgb), 0.7); }
.mpk-dl-mine { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--mpk-line-soft); }
.mpk-dl-bar i { height: 6px; border-radius: 999px; }
.mpk-dl-bar i::after { border-radius: 999px; }
.mpk-dl-bar.is-result i::after { box-shadow: 0 0 12px rgba(var(--mpk-acc-rgb), 0.6); }

/* preview */
.mpk-pv-facts > div, .mpk-pv-stage, .mpk-pv-rule, .mpk-pv-facts2, .mpk-pv-count { border-radius: 14px; }
.mpk-pv-facts > div { transition: box-shadow 0.7s var(--mpk-ease), transform 0.7s var(--mpk-ease); }
.mpk-pv-facts > div:hover { box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.3); transform: translateY(-3px); }
.mpk-pv-facts dd { font: 400 1.05rem/1.2 var(--mpk-head); letter-spacing: 0.02em; }
.mpk-pv-count { box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.3), 0 0 50px -24px rgba(var(--mpk-acc-rgb), 0.6); }
.mpk-pv-count-n b { font: 400 1.7rem/1 var(--mpk-head); color: var(--mpk-acc); text-shadow: 0 0 22px rgba(var(--mpk-acc-rgb), 0.35); }
.mpk-pv-stage { overflow: hidden; }
.mpk-pv-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--mpk-acc), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--mpk-ease); }
.mpk-pv-stage.is-po::before { background: linear-gradient(90deg, var(--mpk-gold), transparent); }
.mpk-pv-stage:hover { box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.28); transform: translateY(-3px) !important; }
.mpk-pv-stage:hover::before { transform: none; }
.mpk-pv-stage-n { font: 400 0.82rem/1.3 var(--mpk-head); }
.mpk-pv-slots span { border-radius: 999px; }
.mpk-pv-slots .is-30, .mpk-pv-slots .is-adv { background: rgba(var(--mpk-acc-rgb), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.4); color: #9dffc6; }
.mpk-pv-slots .is-03 { background: rgba(255, 90, 95, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, 0.4); color: #ffb3ba; }
.mpk-pv-bracket span { background: rgba(var(--mpk-acc-rgb), 0.22); }
.mpk-pv-bracket i { background: rgba(var(--mpk-acc-rgb), 0.45); }
.mpk-pv-group h3 { font: 400 0.64rem/1.3 var(--mpk-head); }
.mpk-pv-group h3 span { font: 700 0.76rem/1.3 var(--mpk-cond); }
.mpk-pv-team, .mpk-pv-face, .mpk-pv-back { border-radius: 14px; }
.mpk-pv-face { overflow: hidden; }
.mpk-pv-face::after { content: ""; position: absolute; inset: 0; background: radial-gradient(160px circle at var(--gx, 50%) var(--gy, -40%), rgba(255, 255, 255, 0.1), transparent 70%); opacity: 0; transition: opacity 0.7s var(--mpk-ease); pointer-events: none; }
.mpk-pv-team:hover .mpk-pv-face::after { opacity: 1; }
.mpk-pv-back { background: linear-gradient(160deg, rgba(var(--mpk-acc-rgb), 0.12), rgba(5, 8, 11, 0.8)); box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.35); }
.mpk-pv-map { border-radius: 14px; }
.mpk-pv-map span { font: 400 0.66rem/1.3 var(--mpk-head); }
.mpk-pv-map::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(var(--mpk-acc-rgb), 0.5); opacity: 0; transition: opacity 0.7s var(--mpk-ease); pointer-events: none; }
.mpk-pv-map:hover::before { opacity: 1; }

/* phones: no wires in a one-column bracket, smaller card padding */
@container (max-width: 1120px) {
    .mpk-aside { border-top: 1px solid var(--mpk-line-soft); }
}
@container (max-width: 760px) {
    .mpk-wires { display: none; }
    .mpk-bracket { gap: 20px; }
    .mpk-card { padding: 20px 18px; }
}
@container (max-width: 560px) {
    .mpk-card { padding: 16px 14px; }
    .mpk-tab { padding: 8px 10px; font-size: 0.56rem; letter-spacing: 0.04em; }
    .mpk-topbar { min-width: 0; }
    .mpk-tabs { flex: 0 1 auto; min-width: 0; }
    .mpk-pv { padding: 22px 16px 26px; }
    .mpk-row:hover { transform: none; }
}
@media (hover: none) {
    .mpk-row:hover, .mpk-fl-card:hover, .mpk-pv-facts > div:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .mpk *, .mpk *::before, .mpk *::after, .mpk-layer *, .mpk-layer *::before, .mpk-layer *::after { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; transition-duration: 0.01s !important; }
    .mpk-wire-pulse { display: none; }
}

/* picks are closed and someone tries to take a team: the line that says so lights up and settles back */
.mpk-notice-line, .mpk-notice-line svg { transition: color 0.9s var(--mpk-ease), text-shadow 0.9s var(--mpk-ease), transform 0.9s var(--mpk-ease); }
.mpk-notice-line { transform-origin: left center; }
.mpk-notice.is-nudge .mpk-notice-line { color: var(--mpk-gold); text-shadow: 0 0 22px rgba(var(--mpk-gold-rgb), 0.55); transform: translateX(6px); }
.mpk-notice.is-nudge .mpk-notice-line svg { color: var(--mpk-gold); }
@media (prefers-reduced-motion: reduce) { .mpk-notice.is-nudge .mpk-notice-line { transform: none; } }
