/* Match modal (div#glhf-match-modal): header with the teams and the score, the veto strip with map pictures,
   the server, the played maps with CS2's own round icons, the rosters and the moderator's result dialog.
   Loads after glhf-tournaments.css; the shell mechanics there (overlay, box height and pane animations,
   tabs, the stats pane) stay, this file sets the look. Markup: glhf-tournaments-automation.php
   (glhf_render_match_modal_html), view: glhf-tournaments.js («Match modal view»). */

#glhf-match-modal {
    --mx-ct: #6cc6ff;
    --mx-t: #ffa63d;
    --mx-ban: #ff3d5e;
    --mx-pick: var(--glhf-accent);
    --mx-staff: #a99bff;
    --mx-line: rgba(255, 255, 255, 0.07);
    --mx-line-strong: rgba(255, 255, 255, 0.12);
    --mx-card: rgba(255, 255, 255, 0.022);
    --mx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --glhf-side-ct: var(--mx-ct);
    --glhf-side-t: var(--mx-t);
}
#glhf-match-modal .glhf-match-modal-box {
    width: min(1120px, calc(100vw - 2.5rem));
    max-width: 1120px;
    max-height: min(92vh, 900px);
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(var(--glhf-accent-rgb), 0.07), transparent 60%),
        linear-gradient(180deg, #121920 0%, #0d1217 38%, #0b1014 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
#glhf-match-modal .glhf-match-modal-box[data-state="live"] {
    border-color: rgba(var(--glhf-accent-rgb), 0.28);
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(var(--glhf-accent-rgb), 0.07),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
#glhf-match-modal .glhf-mx-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
#glhf-match-modal .glhf-mx-ic {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* -- header ------------------------------------------------------------------------------------- */
#glhf-match-modal .glhf-match-modal-head.glhf-mx-head {
    position: relative;
    flex: 0 0 auto;
    padding: 1rem 1.25rem 0.95rem;
    border-bottom: 1px solid var(--mx-line);
    background: none;
    overflow: hidden;
    isolation: isolate;
}
#glhf-match-modal .glhf-mx-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
#glhf-match-modal .glhf-mx-glow i {
    position: absolute;
    top: -40%;
    width: 46%;
    height: 180%;
    opacity: 0.0;
    filter: blur(10px);
    transition: opacity 0.9s var(--mx-ease), background 0.9s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-glow-a { left: -12%; background: radial-gradient(closest-side, var(--mx-glow-a, transparent), transparent); }
#glhf-match-modal .glhf-mx-glow-b { right: -12%; background: radial-gradient(closest-side, var(--mx-glow-b, transparent), transparent); }
#glhf-match-modal .glhf-mx-head:has(.glhf-mx-team[data-team="a"][data-side="ct"]) { --mx-glow-a: rgba(108, 198, 255, 0.16); }
#glhf-match-modal .glhf-mx-head:has(.glhf-mx-team[data-team="a"][data-side="t"]) { --mx-glow-a: rgba(255, 166, 61, 0.14); }
#glhf-match-modal .glhf-mx-head:has(.glhf-mx-team[data-team="b"][data-side="ct"]) { --mx-glow-b: rgba(108, 198, 255, 0.16); }
#glhf-match-modal .glhf-mx-head:has(.glhf-mx-team[data-team="b"][data-side="t"]) { --mx-glow-b: rgba(255, 166, 61, 0.14); }
#glhf-match-modal .glhf-mx-head:has(.glhf-mx-team[data-side="ct"], .glhf-mx-team[data-side="t"]) .glhf-mx-glow i { opacity: 1; }
#glhf-match-modal .glhf-mx-head:has(.glhf-mx-team.is-winner[data-team="a"]) { --mx-glow-a: rgba(var(--glhf-accent-rgb), 0.16); }
#glhf-match-modal .glhf-mx-head:has(.glhf-mx-team.is-winner[data-team="b"]) { --mx-glow-b: rgba(var(--glhf-accent-rgb), 0.16); }
#glhf-match-modal .glhf-mx-head:has(.glhf-mx-team.is-winner) .glhf-mx-glow i { opacity: 1; }

#glhf-match-modal .glhf-mx-topbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.25rem;
}
#glhf-match-modal .glhf-mx-crumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
#glhf-match-modal .glhf-match-round-label {
    font-family: var(--glhf-font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--glhf-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 1.45rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--glhf-text-secondary);
    font-family: var(--glhf-font-heading);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}
#glhf-match-modal .glhf-mx-chip.is-live {
    color: var(--mx-pick);
    border-color: rgba(var(--glhf-accent-rgb), 0.3);
    background: rgba(var(--glhf-accent-rgb), 0.08);
}
#glhf-match-modal .glhf-mx-chip.is-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: glhfLivePulse 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
#glhf-match-modal .glhf-mx-state.glhf-match-state {
    flex: none;
    white-space: nowrap;
    height: 1.45rem;
    padding: 0 0.6rem 0 0.5rem;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    transition: color 0.5s var(--mx-ease), border-color 0.5s var(--mx-ease), background 0.5s var(--mx-ease);
}
#glhf-match-modal[data-state="live"] .glhf-mx-state {
    color: #ff5d6c;
    border-color: rgba(255, 93, 108, 0.32);
    background: rgba(255, 93, 108, 0.1);
}
#glhf-match-modal[data-state="veto"] .glhf-mx-state,
#glhf-match-modal[data-state="rps"] .glhf-mx-state {
    color: #ffc35a;
    border-color: rgba(255, 195, 90, 0.3);
    background: rgba(255, 195, 90, 0.08);
}
#glhf-match-modal[data-state="veto"] .glhf-match-state-dot,
#glhf-match-modal[data-state="rps"] .glhf-match-state-dot,
#glhf-match-modal[data-state="ready"] .glhf-match-state-dot,
#glhf-match-modal[data-state="awaiting_server"] .glhf-match-state-dot {
    animation: glhfLivePulse 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
#glhf-match-modal .glhf-mx-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}
#glhf-match-modal .glhf-mx-staff {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
#glhf-match-modal .glhf-mx-staff-gotv {
    display: contents;
}
#glhf-match-modal .glhf-mx-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.15rem;
    padding: 0 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(169, 155, 255, 0.28);
    background: rgba(169, 155, 255, 0.08);
    color: var(--mx-staff);
    font-family: var(--glhf-font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    transition: background 0.35s var(--mx-ease), border-color 0.35s var(--mx-ease), color 0.35s var(--mx-ease), transform 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-tool .glhf-mx-ic {
    font-size: 1rem;
}
#glhf-match-modal .glhf-mx-tool[hidden] {
    display: none;
}
#glhf-match-modal .glhf-mx-tool:hover,
#glhf-match-modal .glhf-mx-tool:focus-visible {
    background: rgba(169, 155, 255, 0.16);
    border-color: rgba(169, 155, 255, 0.5);
    color: #d6cfff;
    transform: translateY(-1px);
}
#glhf-match-modal .glhf-match-modal-close.glhf-mx-close {
    position: static;
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--glhf-text-secondary);
    opacity: 1;
    transition: background 0.45s var(--mx-ease), color 0.45s var(--mx-ease), border-color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform 0.45s var(--mx-ease);
}
/* «Поділитися»: копіює пряме посилання на матч */
#glhf-match-modal .glhf-mx-share {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 2.15rem;
    padding: 0 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--glhf-text-secondary);
    font-family: var(--glhf-font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    transition: background 0.45s var(--mx-ease), color 0.45s var(--mx-ease), border-color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-share svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#glhf-match-modal .glhf-mx-share:hover,
#glhf-match-modal .glhf-mx-share:focus-visible {
    background: rgba(var(--glhf-accent-rgb), 0.1);
    border-color: rgba(var(--glhf-accent-rgb), 0.45);
    color: var(--glhf-accent);
}
#glhf-match-modal .glhf-mx-share.is-done {
    border-color: rgba(var(--glhf-accent-rgb), 0.6);
    color: var(--glhf-accent);
}
/* «Нагадати»: лише поки матч не почався; з'являється й зникає, плавно розсуваючи сусідів */
#glhf-match-modal .glhf-mx-watch {
    max-width: 0;
    padding: 0;
    border-width: 0;
    margin-right: -0.4rem;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    transition: max-width 0.6s var(--mx-ease), padding 0.6s var(--mx-ease), margin 0.6s var(--mx-ease), opacity 0.45s var(--mx-ease),
        background 0.45s var(--mx-ease), color 0.45s var(--mx-ease), border-color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-watch.is-shown {
    max-width: 12rem;
    padding: 0 0.8rem;
    border-width: 1px;
    margin-right: 0;
    opacity: 1;
    pointer-events: auto;
}
#glhf-match-modal .glhf-mx-watch svg { flex: none; transition: transform 0.6s var(--mx-ease); transform-origin: 50% 10%; }
#glhf-match-modal .glhf-mx-watch.is-active {
    background: rgba(var(--glhf-accent-rgb), 0.12);
    border-color: rgba(var(--glhf-accent-rgb), 0.55);
    color: var(--glhf-accent);
}
#glhf-match-modal .glhf-mx-watch.is-active svg { animation: mx-bell 0.9s var(--mx-ease) 1; }
@keyframes mx-bell {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(14deg); }
    45% { transform: rotate(-10deg); }
    70% { transform: rotate(5deg); }
}
/* Квадрат лишається на місці, обертається лише хрестик усередині (власник: квадрат, що крутиться, - не те) */
#glhf-match-modal .glhf-match-modal-close.glhf-mx-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--glhf-text-primary);
}
#glhf-match-modal .glhf-match-modal-close.glhf-mx-close:hover svg {
    transform: rotate(90deg);
}

/* teams + score */
#glhf-match-modal .glhf-mx-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin: 0.85rem 0 0.95rem;
}
#glhf-match-modal .glhf-mx-team {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    transition: opacity 0.7s var(--mx-ease), filter 0.7s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-team[data-team="b"] {
    flex-direction: row-reverse;
    text-align: right;
}
#glhf-match-modal .glhf-mx-emblem {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015)),
        #141c23;
    border: 1px solid var(--mx-line-strong);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.6s var(--mx-ease), box-shadow 0.6s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-team[data-side="ct"] .glhf-mx-emblem { border-color: rgba(108, 198, 255, 0.4); }
#glhf-match-modal .glhf-mx-team[data-side="t"] .glhf-mx-emblem { border-color: rgba(255, 166, 61, 0.4); }
#glhf-match-modal .glhf-mx-emblem-letter {
    font-family: var(--glhf-font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--glhf-text-primary);
    letter-spacing: 0;
}
/* герб команди замість літери: проявляється, літера тане */
#glhf-match-modal .glhf-mx-emblem-letter { transition: opacity 0.6s var(--mx-ease); }
#glhf-match-modal .glhf-mx-emblem.has-crest .glhf-mx-emblem-letter { opacity: 0; }
#glhf-match-modal .glhf-mx-emblem-crest {
    position: absolute;
    inset: 18%;
    display: grid;
    place-items: center;
    animation: mx-crest-in 0.7s var(--mx-ease) both;
}
#glhf-match-modal .glhf-mx-emblem-crest svg,
#glhf-match-modal .glhf-mx-roster-emblem.has-crest svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 35%, transparent));
}
@keyframes mx-crest-in { from { opacity: 0; transform: scale(0.85); } }
#glhf-match-modal .glhf-mx-team[data-side="ct"] .glhf-mx-emblem-letter { color: var(--mx-ct); }
#glhf-match-modal .glhf-mx-team[data-side="t"] .glhf-mx-emblem-letter { color: var(--mx-t); }
#glhf-match-modal .glhf-mx-team-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
#glhf-match-modal .glhf-mx-team-name {
    font-family: var(--glhf-font-heading);
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--glhf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-team-sub {
    font-size: 0.8rem;
    color: var(--glhf-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-team-tags {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
}
#glhf-match-modal .glhf-mx-side-tag {
    display: none;
    padding: 0.18rem 0.45rem;
    border-radius: 6px;
    font-family: var(--glhf-font-heading);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}
#glhf-match-modal .glhf-mx-side-tag[style*="inline"],
#glhf-match-modal .glhf-mx-roster-head .glhf-mx-side-tag {
    display: inline-block;
}
#glhf-match-modal [data-side="ct"] > .glhf-mx-team-tags .glhf-mx-side-tag,
#glhf-match-modal .glhf-mx-side-tag[data-side="ct"] { color: var(--mx-ct); background: rgba(108, 198, 255, 0.12); border: 1px solid rgba(108, 198, 255, 0.3); }
#glhf-match-modal [data-side="t"] > .glhf-mx-team-tags .glhf-mx-side-tag,
#glhf-match-modal .glhf-mx-side-tag[data-side="t"] { color: var(--mx-t); background: rgba(255, 166, 61, 0.12); border: 1px solid rgba(255, 166, 61, 0.3); }
#glhf-match-modal .glhf-mx-win-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: var(--glhf-accent);
    color: var(--glhf-bg-primary, #0a0e12);
    font-family: var(--glhf-font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.5s var(--mx-ease), transform 0.5s var(--mx-ease);
    pointer-events: none;
}
#glhf-match-modal .glhf-mx-team.is-winner .glhf-mx-win-tag {
    opacity: 1;
    transform: none;
}
#glhf-match-modal .glhf-mx-team:not(.is-winner) .glhf-mx-win-tag {
    position: absolute;
    visibility: hidden;
}
#glhf-match-modal .glhf-mx-team.is-winner .glhf-mx-emblem {
    border-color: rgba(var(--glhf-accent-rgb), 0.6);
    box-shadow: 0 0 0 4px rgba(var(--glhf-accent-rgb), 0.08), 0 12px 32px rgba(var(--glhf-accent-rgb), 0.18);
}
#glhf-match-modal .glhf-mx-team.is-loser {
    opacity: 0.55;
    filter: saturate(0.6);
}

#glhf-match-modal .glhf-mx-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 9rem;
}
#glhf-match-modal .glhf-mx-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
#glhf-match-modal .glhf-mx-digits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--glhf-font-heading);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
#glhf-match-modal .glhf-mx-digit {
    display: inline-block;
    min-width: 1.1em;
    font-size: clamp(2.6rem, 4.2vw, 3.5rem);
    text-align: center;
    color: var(--glhf-text-primary);
    transition: color 0.5s var(--mx-ease), opacity 0.5s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-digit[data-side="ct"] { color: var(--mx-ct); }
#glhf-match-modal .glhf-mx-digit[data-side="t"] { color: var(--mx-t); }
#glhf-match-modal .glhf-mx-digits[data-lead="a"] .glhf-mx-digit[data-k="b"],
#glhf-match-modal .glhf-mx-digits[data-lead="b"] .glhf-mx-digit[data-k="a"] {
    opacity: 0.55;
}
#glhf-match-modal .glhf-mx-digit.is-bump {
    animation: mx-bump 0.6s var(--mx-ease-out);
}
@keyframes mx-bump {
    0% { transform: translateY(-0.35em); opacity: 0; filter: blur(4px); }
    100% { transform: none; opacity: 1; filter: none; }
}
#glhf-match-modal .glhf-mx-digits i {
    font-style: normal;
    font-size: 1.8rem;
    color: var(--glhf-text-muted);
    opacity: 0.6;
}
#glhf-match-modal .glhf-mx-score-map {
    font-family: var(--glhf-font-heading);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-vs {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    border: 1px solid var(--mx-line-strong);
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 70%);
}
#glhf-match-modal .glhf-mx-vs span {
    font-family: var(--glhf-font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--glhf-text-secondary);
}
#glhf-match-modal .glhf-mx-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 0;
    padding: 0 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 195, 90, 0.1);
    border: 1px solid rgba(255, 195, 90, 0);
    color: #ffc35a;
    font-family: var(--glhf-font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    opacity: 0;
    transition: height 0.45s var(--mx-ease), opacity 0.45s var(--mx-ease), border-color 0.45s var(--mx-ease), color 0.45s var(--mx-ease), background 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-timer.is-on {
    height: 1.75rem;
    opacity: 1;
    border-color: rgba(255, 195, 90, 0.28);
}
#glhf-match-modal .glhf-mx-timer.is-urgent {
    color: #ff5d6c;
    background: rgba(255, 93, 108, 0.12);
    border-color: rgba(255, 93, 108, 0.4);
    animation: mx-urgent 1s ease-in-out infinite;
}
@keyframes mx-urgent {
    50% { box-shadow: 0 0 0 4px rgba(255, 93, 108, 0.12); }
}
#glhf-match-modal .glhf-mx-verdict {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    max-width: 22rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--mx-ease), opacity 0.5s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-verdict.is-on {
    max-height: 5rem;
    opacity: 1;
}
/* «Історія зустрічей»: попередні ігри цих гравців з архіву */
#glhf-match-modal .glhf-mx-h2h {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.72rem;
    color: var(--glhf-text-muted, #8a96a3);
    cursor: help;
    transition: max-height 0.5s var(--mx-ease), opacity 0.5s var(--mx-ease), margin 0.5s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-h2h.is-shown {
    max-height: 2rem;
    opacity: 1;
    margin-top: 0.3rem;
}
#glhf-match-modal .glhf-mx-h2h span { letter-spacing: 0.05em; text-transform: uppercase; }
#glhf-match-modal .glhf-mx-h2h b {
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--glhf-text-primary, #e6edf3);
    font-family: var(--glhf-font-heading);
}
#glhf-match-modal .glhf-mx-verdict-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(169, 155, 255, 0.1);
    border: 1px solid rgba(169, 155, 255, 0.28);
    color: var(--mx-staff);
    font-size: 0.72rem;
    font-weight: 600;
}
#glhf-match-modal .glhf-mx-verdict-why {
    font-size: 0.74rem;
    color: var(--glhf-text-muted);
    text-align: center;
}

/* tabs */
#glhf-match-modal .glhf-match-modal-tabs.glhf-mx-tabs {
    margin: 0 auto;
    padding: 4px;
    border-color: var(--mx-line-strong);
    background: rgba(5, 8, 11, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
#glhf-match-modal .glhf-mx-tabs .glhf-match-modal-tab {
    min-height: 36px;
    padding: 0.4rem 1.2rem;
    font-size: 0.72rem;
    transition: color 0.35s var(--mx-ease), background 0.35s var(--mx-ease), box-shadow 0.35s var(--mx-ease);
}

/* -- body + sections ---------------------------------------------------------------------------- */
#glhf-match-modal .glhf-match-modal-body.glhf-mx-body {
    gap: 0.9rem;
    padding: 1.1rem 1.25rem 1.35rem;
}
#glhf-match-modal .glhf-mx-sec:empty {
    display: none;
}
#glhf-match-modal .glhf-mx-sec.is-in > * {
    animation: mx-sec-in 0.6s var(--mx-ease-out) both;
}
@keyframes mx-sec-in {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
}
/* the order of the blocks follows the match: what matters now goes first */
#glhf-match-modal .glhf-match-error { order: -5; }
#glhf-match-modal[data-state="ready"] .glhf-match-server,
#glhf-match-modal[data-state="live"] .glhf-match-server,
#glhf-match-modal[data-state="awaiting_server"] .glhf-match-server { order: -3; }
#glhf-match-modal[data-state="ready"] .glhf-match-maps-final,
#glhf-match-modal[data-state="live"] .glhf-match-maps-final,
#glhf-match-modal[data-state="finished"] .glhf-match-maps-final { order: -2; }

#glhf-match-modal .glhf-mx-card {
    min-width: 0;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid var(--mx-line);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
/* згортання карток «Вето мап» і «Склад» після матчу */
#glhf-match-modal .glhf-mx-sec.is-foldable > .glhf-mx-card {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    transition: grid-template-rows 0.7s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-sec.is-foldable.is-folded > .glhf-mx-card {
    grid-template-rows: auto 0fr;
}
#glhf-match-modal .glhf-mx-sec.is-foldable > .glhf-mx-card > .glhf-mx-card-head {
    transition: margin-bottom 0.7s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-sec.is-foldable.is-folded > .glhf-mx-card > .glhf-mx-card-head {
    margin-bottom: 0;
}
#glhf-match-modal .glhf-mx-sec.is-foldable > .glhf-mx-card > .glhf-mx-card-body {
    min-height: 0;
    overflow: clip;
    overflow-clip-margin: 0.75rem;
    transition: opacity 0.6s var(--mx-ease) 0.1s;
}
#glhf-match-modal .glhf-mx-sec.is-foldable.is-folded > .glhf-mx-card > .glhf-mx-card-body {
    opacity: 0;
    transition-delay: 0s;
}
/* уся згорнута картка (і заголовок розгорнутої) - велика кнопка: курсор і плавна підсвітка */
#glhf-match-modal .glhf-mx-sec.is-foldable > .glhf-mx-card {
    transition: grid-template-rows 0.7s var(--mx-ease), border-color 0.45s var(--mx-ease), background-color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-sec.is-foldable.is-folded > .glhf-mx-card,
#glhf-match-modal .glhf-mx-sec.is-foldable > .glhf-mx-card > .glhf-mx-card-head {
    cursor: pointer;
    user-select: none;
}
@media (hover: hover) and (pointer: fine) {
    #glhf-match-modal .glhf-mx-sec.is-foldable.is-folded > .glhf-mx-card:hover {
        border-color: rgba(255, 255, 255, 0.14);
        background-color: rgba(255, 255, 255, 0.025);
    }
    #glhf-match-modal .glhf-mx-sec.is-foldable.is-folded > .glhf-mx-card:hover .glhf-mx-fold,
    #glhf-match-modal .glhf-mx-sec.is-foldable > .glhf-mx-card > .glhf-mx-card-head:hover .glhf-mx-fold {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--glhf-text-primary);
    }
}
#glhf-match-modal .glhf-mx-fold {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 1.9rem;
    margin-left: auto;
    padding: 0 0.7rem;
    border-radius: 9px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--glhf-text-secondary);
    font-family: var(--glhf-font-heading);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.45s var(--mx-ease), color 0.45s var(--mx-ease), border-color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-fold:hover,
#glhf-match-modal .glhf-mx-fold:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--glhf-text-primary);
}
#glhf-match-modal .glhf-mx-fold svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(180deg);
    transition: transform 0.6s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-sec.is-folded .glhf-mx-fold svg {
    transform: none;
}
#glhf-match-modal .glhf-mx-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
#glhf-match-modal .glhf-mx-card-title {
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--glhf-text-secondary);
}
#glhf-match-modal .glhf-mx-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
#glhf-match-modal .glhf-mx-lead {
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    color: var(--glhf-text-secondary);
    line-height: 1.5;
}
#glhf-match-modal .glhf-mx-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-note .glhf-mx-ic {
    margin-top: 0.18rem;
    font-size: 0.95rem;
}
#glhf-match-modal .glhf-mx-note--ok {
    color: var(--mx-pick);
}
#glhf-match-modal .glhf-mx-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 93, 108, 0.32);
    background: rgba(255, 93, 108, 0.08);
    color: #ff8e9a;
    font-size: 0.88rem;
}
#glhf-match-modal .glhf-mx-alert .glhf-mx-ic {
    margin-top: 0.15rem;
    font-size: 1.05rem;
}
#glhf-match-modal .glhf-mx-wait {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--glhf-text-secondary);
    font-size: 0.9rem;
}
#glhf-match-modal .glhf-mx-wait i {
    width: 18px;
    height: 18px;
    flex: none;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--glhf-accent);
    animation: mx-spin 0.9s linear infinite;
}
@keyframes mx-spin { to { transform: rotate(360deg); } }

/* buttons */
#glhf-match-modal .glhf-mx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.6rem;
    padding: 0 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--glhf-text-primary);
    font-family: var(--glhf-font-heading);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.35s var(--mx-ease), border-color 0.35s var(--mx-ease), color 0.35s var(--mx-ease), transform 0.35s var(--mx-ease), box-shadow 0.35s var(--mx-ease), opacity 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-btn .glhf-mx-ic { font-size: 1rem; }
#glhf-match-modal .glhf-mx-btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}
#glhf-match-modal .glhf-mx-btn--primary {
    border-color: transparent;
    background: var(--glhf-accent);
    color: var(--glhf-bg-primary, #0a0e12);
    box-shadow: 0 10px 30px rgba(var(--glhf-accent-rgb), 0.22);
}
#glhf-match-modal .glhf-mx-btn--primary:hover:not(:disabled) {
    background: var(--glhf-accent);
    box-shadow: 0 14px 38px rgba(var(--glhf-accent-rgb), 0.34);
}
#glhf-match-modal .glhf-mx-btn--lg {
    height: 3.1rem;
    padding: 0 1.6rem;
    font-size: 0.82rem;
}
#glhf-match-modal .glhf-mx-btn:disabled {
    opacity: 0.45;
    cursor: default;
    box-shadow: none;
}

/* -- veto strip --------------------------------------------------------------------------------- */
#glhf-match-modal .glhf-mx-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-legend i {
    width: 9px;
    height: 9px;
    margin-left: 0.35rem;
    border-radius: 3px;
}
#glhf-match-modal .glhf-mx-legend i.is-pick { background: var(--mx-pick); box-shadow: 0 0 8px rgba(var(--glhf-accent-rgb), 0.6); }
#glhf-match-modal .glhf-mx-legend i.is-ban { background: var(--mx-ban); box-shadow: 0 0 8px rgba(255, 61, 94, 0.6); }

#glhf-match-modal .glhf-mx-strip {
    display: flex;
    gap: 0.6rem;
    margin: 0;
    padding: 0.35rem 0.1rem 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}
/*
 * Смуги прокрутки вікна матчу - тонкі, у кольорах сайту, без системних білих доріжок і стрілок.
 * Chrome/Edge малюють їх через ::-webkit-scrollbar лише тоді, коли scrollbar-width/-color не задані,
 * тож стандартні властивості лишаємо тільки для Firefox.
 */
#glhf-match-modal .glhf-mx-strip,
#glhf-match-modal .glhf-mx-rounds-track,
#glhf-match-modal .glhf-mx-duels-scroll {
    scrollbar-width: auto;
    scrollbar-color: auto;
}
@supports (-moz-appearance: none) {
    #glhf-match-modal .glhf-mx-strip,
    #glhf-match-modal .glhf-mx-rounds-track,
    #glhf-match-modal .glhf-mx-duels-scroll {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
    }
    #glhf-match-modal .glhf-mx-strip:hover,
    #glhf-match-modal .glhf-mx-rounds-track:hover,
    #glhf-match-modal .glhf-mx-duels-scroll:hover {
        scrollbar-color: rgba(var(--glhf-accent-rgb), 0.45) transparent;
    }
}
#glhf-match-modal .glhf-mx-strip::-webkit-scrollbar,
#glhf-match-modal .glhf-mx-rounds-track::-webkit-scrollbar,
#glhf-match-modal .glhf-mx-duels-scroll::-webkit-scrollbar { height: 6px; }
#glhf-match-modal .glhf-mx-strip::-webkit-scrollbar-track,
#glhf-match-modal .glhf-mx-rounds-track::-webkit-scrollbar-track,
#glhf-match-modal .glhf-mx-duels-scroll::-webkit-scrollbar-track { background: transparent; }
#glhf-match-modal .glhf-mx-strip::-webkit-scrollbar-button,
#glhf-match-modal .glhf-mx-rounds-track::-webkit-scrollbar-button,
#glhf-match-modal .glhf-mx-duels-scroll::-webkit-scrollbar-button { display: none; }
#glhf-match-modal .glhf-mx-strip::-webkit-scrollbar-thumb,
#glhf-match-modal .glhf-mx-rounds-track::-webkit-scrollbar-thumb,
#glhf-match-modal .glhf-mx-duels-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}
#glhf-match-modal .glhf-mx-strip:hover::-webkit-scrollbar-thumb,
#glhf-match-modal .glhf-mx-rounds-track:hover::-webkit-scrollbar-thumb,
#glhf-match-modal .glhf-mx-duels-scroll:hover::-webkit-scrollbar-thumb { background: rgba(var(--glhf-accent-rgb), 0.45); }
#glhf-match-modal .glhf-mx-tile {
    position: relative;
    flex: 1 1 0;
    min-width: 6.8rem;
    max-width: 11rem;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
    background: #121a21;
    border: 1px solid rgba(255, 255, 255, 0.09);
    scroll-snap-align: start;
    animation: mx-tile-in 0.6s var(--mx-ease-out) both;
    animation-delay: calc(var(--i, 0) * 45ms);
    transition:
        border-color 0.55s var(--mx-ease),
        box-shadow 0.55s var(--mx-ease),
        transform 0.45s var(--mx-ease),
        opacity 0.55s var(--mx-ease);
}
@keyframes mx-tile-in {
    from { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.97); }
}
#glhf-match-modal .glhf-mx-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: hidden;
    background: radial-gradient(120% 80% at 50% 0%, #1d2a33, #0e151b);
}
/* the picture keeps its proportions: full height of the tile, centred, the sides cropped */
#glhf-match-modal .glhf-mx-tile .glhf-mx-media img {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: auto;
    max-width: none;
    transform: translateX(-50%) scale(1.02);
    transition: filter 0.7s var(--mx-ease), transform 1.2s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-media.is-radar {
    background: #0f171e;
}
#glhf-match-modal .glhf-mx-tile .glhf-mx-media.is-radar img {
    top: 6%;
    height: 70%;
    opacity: 0.75;
}
#glhf-match-modal .glhf-mx-media.is-none {
    display: grid;
    place-items: center;
}
#glhf-match-modal .glhf-mx-media.is-none b {
    font-family: var(--glhf-font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
}
#glhf-match-modal .glhf-mx-media.is-wait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    background-size: 220% 100%;
    animation: mx-shimmer 1.6s linear infinite;
}
@keyframes mx-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
#glhf-match-modal .glhf-mx-tile-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(6, 9, 12, 0.15) 0%, rgba(6, 9, 12, 0) 30%, rgba(6, 9, 12, 0.55) 62%, rgba(6, 9, 12, 0.94) 100%);
    transition: background 0.55s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-tile-slash {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 150%;
    height: 3px;
    border-radius: 3px;
    background: var(--mx-ban);
    box-shadow: 0 0 12px rgba(255, 61, 94, 0.9), 0 0 2px rgba(255, 61, 94, 1);
    transform: translate(-50%, -50%) rotate(-53deg) scaleX(0);
    transition: transform 0.7s var(--mx-ease) 0.08s;
    pointer-events: none;
}
#glhf-match-modal .glhf-mx-tile-order {
    position: absolute;
    top: 0.5rem;
    left: 0.55rem;
    z-index: 3;
    font-family: var(--glhf-font-heading);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    transition: opacity 0.4s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-tile-order:empty { opacity: 0; }
#glhf-match-modal .glhf-mx-tile-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    padding: 0.6rem 0.65rem 0.7rem;
}
#glhf-match-modal .glhf-mx-tile-name {
    max-width: 100%;
    font-family: var(--glhf-font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-tile-tag {
    padding: 0.16rem 0.42rem;
    border-radius: 6px;
    font-family: var(--glhf-font-heading);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    color: var(--glhf-text-secondary);
}
#glhf-match-modal .glhf-mx-tile-who {
    max-width: 100%;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-tile-sides {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    max-width: 100%;
    margin-top: 0.1rem;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.7);
}
#glhf-match-modal .glhf-mx-tile-sides span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-tile-sides b {
    display: inline-block;
    min-width: 1.6rem;
    font-family: var(--glhf-font-heading);
    font-weight: 800;
}
#glhf-match-modal .glhf-mx-tile-sides [data-side="ct"] b { color: var(--mx-ct); }
#glhf-match-modal .glhf-mx-tile-sides [data-side="t"] b { color: var(--mx-t); }

/* banned: red frame and glow, the picture goes dark and grey, a red slash runs across */
#glhf-match-modal .glhf-mx-tile.is-ban {
    border-color: rgba(255, 61, 94, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 61, 94, 0.35), 0 12px 34px -12px rgba(255, 61, 94, 0.7), inset 0 0 30px rgba(255, 61, 94, 0.12);
}
#glhf-match-modal .glhf-mx-tile.is-ban .glhf-mx-media img {
    filter: grayscale(0.9) brightness(0.42) contrast(1.05);
}
#glhf-match-modal .glhf-mx-tile.is-ban .glhf-mx-tile-shade {
    background: linear-gradient(180deg, rgba(255, 61, 94, 0.12), rgba(10, 4, 6, 0.4) 50%, rgba(8, 5, 7, 0.94) 100%);
}
#glhf-match-modal .glhf-mx-tile.is-ban .glhf-mx-tile-slash {
    transform: translate(-50%, -50%) rotate(-53deg) scaleX(1);
}
#glhf-match-modal .glhf-mx-tile.is-ban .glhf-mx-tile-tag {
    background: rgba(255, 61, 94, 0.2);
    color: #ff8098;
}
#glhf-match-modal .glhf-mx-tile.is-ban .glhf-mx-tile-name {
    color: rgba(255, 255, 255, 0.7);
}
/* picked / decider: green frame and glow, the picture at full colour */
#glhf-match-modal .glhf-mx-tile.is-pick,
#glhf-match-modal .glhf-mx-tile.is-decider {
    border-color: rgba(var(--glhf-accent-rgb), 0.9);
    box-shadow: 0 0 0 1px rgba(var(--glhf-accent-rgb), 0.35), 0 14px 38px -12px rgba(var(--glhf-accent-rgb), 0.65), inset 0 0 30px rgba(var(--glhf-accent-rgb), 0.12);
}
#glhf-match-modal .glhf-mx-tile.is-pick .glhf-mx-media img,
#glhf-match-modal .glhf-mx-tile.is-decider .glhf-mx-media img {
    filter: saturate(1.15) brightness(1.04);
    transform: translateX(-50%) scale(1.07);
}
#glhf-match-modal .glhf-mx-tile.is-pick .glhf-mx-tile-shade,
#glhf-match-modal .glhf-mx-tile.is-decider .glhf-mx-tile-shade {
    background: linear-gradient(180deg, rgba(var(--glhf-accent-rgb), 0.1), rgba(6, 9, 12, 0) 30%, rgba(4, 12, 8, 0.6) 62%, rgba(4, 10, 7, 0.95) 100%);
}
#glhf-match-modal .glhf-mx-tile.is-pick .glhf-mx-tile-tag,
#glhf-match-modal .glhf-mx-tile.is-decider .glhf-mx-tile-tag {
    background: var(--glhf-accent);
    color: var(--glhf-bg-primary, #0a0e12);
}
/* left over in a BO1: out of the game, quietly */
#glhf-match-modal .glhf-mx-tile.is-drop {
    opacity: 0.72;
}
#glhf-match-modal .glhf-mx-tile.is-drop .glhf-mx-media img {
    filter: grayscale(1) brightness(0.45);
}
/* the map whose side is being chosen now */
#glhf-match-modal .glhf-mx-tile.is-target {
    animation: mx-tile-in 0.6s var(--mx-ease-out) both, mx-target 2.2s ease-in-out 0.6s infinite;
}
@keyframes mx-target {
    50% { box-shadow: 0 0 0 3px rgba(var(--glhf-accent-rgb), 0.45), 0 14px 38px -10px rgba(var(--glhf-accent-rgb), 0.8); }
}
/* your move: a tile to click */
#glhf-match-modal .glhf-mx-tile-hitbox {
    position: absolute;
    inset: 0;
    z-index: 4;
}
#glhf-match-modal .glhf-mx-tile-hitbox:empty {
    pointer-events: none;
}
#glhf-match-modal .glhf-mx-tile-hit {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}
#glhf-match-modal .glhf-mx-tile-cta {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-family: var(--glhf-font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: translateY(6px) scale(0.94);
    transition: opacity 0.35s var(--mx-ease), transform 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-tile.is-act-ban .glhf-mx-tile-cta { background: var(--mx-ban); box-shadow: 0 8px 24px rgba(255, 61, 94, 0.5); }
#glhf-match-modal .glhf-mx-tile.is-act-pick .glhf-mx-tile-cta { background: var(--glhf-accent); color: var(--glhf-bg-primary, #0a0e12); box-shadow: 0 8px 24px rgba(var(--glhf-accent-rgb), 0.5); }
#glhf-match-modal .glhf-mx-tile.is-actionable {
    border-color: rgba(255, 255, 255, 0.18);
}
#glhf-match-modal .glhf-mx-tile.is-actionable:hover,
#glhf-match-modal .glhf-mx-tile.is-actionable:focus-within {
    transform: translateY(-5px);
}
#glhf-match-modal .glhf-mx-tile.is-act-ban:hover,
#glhf-match-modal .glhf-mx-tile.is-act-ban:focus-within {
    border-color: rgba(255, 61, 94, 0.9);
    box-shadow: 0 16px 36px -14px rgba(255, 61, 94, 0.8);
}
#glhf-match-modal .glhf-mx-tile.is-act-pick:hover,
#glhf-match-modal .glhf-mx-tile.is-act-pick:focus-within {
    border-color: rgba(var(--glhf-accent-rgb), 0.95);
    box-shadow: 0 16px 36px -14px rgba(var(--glhf-accent-rgb), 0.8);
}
#glhf-match-modal .glhf-mx-tile.is-actionable:hover .glhf-mx-tile-cta,
#glhf-match-modal .glhf-mx-tile.is-actionable:focus-within .glhf-mx-tile-cta {
    opacity: 1;
    transform: none;
}
#glhf-match-modal .glhf-mx-tile.is-actionable:hover .glhf-mx-media img {
    transform: translateX(-50%) scale(1.08);
}
#glhf-match-modal .glhf-mx-tile.is-act-ban:hover .glhf-mx-media img {
    filter: saturate(0.6) brightness(0.8);
}
/* touch screens have no hover: your move shows its button on every free tile */
@media (hover: none) {
    #glhf-match-modal .glhf-mx-tile.is-actionable .glhf-mx-tile-cta {
        opacity: 1;
        transform: none;
        font-size: 0.62rem;
        padding: 0.4rem 0.65rem;
    }
}
#glhf-match-modal .glhf-mx-tile-hit:focus-visible,
#glhf-match-modal .glhf-mx-pick:focus-visible,
#glhf-match-modal .glhf-mx-side-btn:focus-visible,
#glhf-match-modal .glhf-mx-rps-btn:focus-visible,
#glhf-match-modal .glhf-mx-btn:focus-visible,
#glhf-match-modal .glhf-mx-tool:focus-visible,
#glhf-match-modal .glhf-mx-copy:focus-visible,
#glhf-match-modal .glhf-mx-connect:focus-visible {
    outline: 2px solid rgba(var(--glhf-accent-rgb), 0.55);
    outline-offset: 2px;
}
#glhf-match-modal .glhf-mx-pick:focus:not(:focus-visible),
#glhf-match-modal .glhf-mx-tile-hit:focus:not(:focus-visible) {
    outline: none;
}
#glhf-match-modal .glhf-mx-tile.is-sending {
    animation: mx-sending 0.9s ease-in-out infinite;
}
@keyframes mx-sending { 50% { opacity: 0.6; } }

/* your move: the panel above the strip */
#glhf-match-modal .glhf-mx-veto-turn:empty { display: none; }
#glhf-match-modal .glhf-mx-veto-turn {
    margin-bottom: 0.9rem;
}
#glhf-match-modal .glhf-mx-move {
    position: relative;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--glhf-accent-rgb), 0.3);
    background: linear-gradient(90deg, rgba(var(--glhf-accent-rgb), 0.1), rgba(var(--glhf-accent-rgb), 0.02));
}
#glhf-match-modal .glhf-mx-move.is-ban {
    border-color: rgba(255, 61, 94, 0.35);
    background: linear-gradient(90deg, rgba(255, 61, 94, 0.12), rgba(255, 61, 94, 0.02));
}
#glhf-match-modal .glhf-mx-move-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}
#glhf-match-modal .glhf-mx-move-kicker {
    font-family: var(--glhf-font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mx-pick);
}
#glhf-match-modal .glhf-mx-move.is-ban .glhf-mx-move-kicker { color: #ff8098; }
#glhf-match-modal .glhf-mx-move-you {
    font-size: 0.75rem;
    color: var(--glhf-text-secondary);
}
#glhf-match-modal .glhf-mx-move-prompt {
    font-size: 1rem;
    font-weight: 600;
    color: var(--glhf-text-primary);
}
#glhf-match-modal .glhf-mx-move-hint {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-top: 0.85rem;
}
#glhf-match-modal .glhf-mx-side-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--glhf-text-primary);
    text-align: left;
    transition: transform 0.35s var(--mx-ease), border-color 0.35s var(--mx-ease), background 0.35s var(--mx-ease), box-shadow 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-side-btn b {
    font-family: var(--glhf-font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}
#glhf-match-modal .glhf-mx-side-btn span { font-size: 0.85rem; color: var(--glhf-text-secondary); }
#glhf-match-modal .glhf-mx-side-btn[data-side="ct"] b { color: var(--mx-ct); }
#glhf-match-modal .glhf-mx-side-btn[data-side="t"] b { color: var(--mx-t); }
#glhf-match-modal .glhf-mx-side-btn[data-side="ct"]:hover:not(:disabled) { border-color: rgba(108, 198, 255, 0.6); background: rgba(108, 198, 255, 0.08); box-shadow: 0 12px 30px -14px rgba(108, 198, 255, 0.7); transform: translateY(-2px); }
#glhf-match-modal .glhf-mx-side-btn[data-side="t"]:hover:not(:disabled) { border-color: rgba(255, 166, 61, 0.6); background: rgba(255, 166, 61, 0.08); box-shadow: 0 12px 30px -14px rgba(255, 166, 61, 0.7); transform: translateY(-2px); }
#glhf-match-modal .glhf-mx-side-btn.is-sending { animation: mx-sending 0.9s ease-in-out infinite; }

/* whose move (anyone who is not acting): restyle of the turn board */
#glhf-match-modal .glhf-mm-turn {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 195, 90, 0.22);
    background: linear-gradient(90deg, rgba(255, 195, 90, 0.08), rgba(255, 195, 90, 0.01));
}

/* series of a BO3 / BO5 */
#glhf-match-modal .glhf-mx-series {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.6rem;
    margin-top: 0.85rem;
}
#glhf-match-modal .glhf-mx-slot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.2rem;
    padding: 0.55rem 0.8rem 0.55rem 0.55rem;
    border-radius: 14px;
    border: 1px solid var(--mx-line);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color 0.5s var(--mx-ease), background 0.5s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-slot .glhf-mx-media {
    position: relative;
    inset: auto;
    flex: none;
    width: 4.6rem;
    height: 3rem;
    border-radius: 9px;
}
#glhf-match-modal .glhf-mx-slot .glhf-mx-media img {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
}
#glhf-match-modal .glhf-mx-slot .glhf-mx-media.is-none b { font-size: 1.2rem; }
#glhf-match-modal .glhf-mx-slot .glhf-mx-media img { animation: mx-media-in 0.6s var(--mx-ease) both; }
@keyframes mx-media-in { from { opacity: 0; } }
#glhf-match-modal .glhf-mx-slot.is-pick,
#glhf-match-modal .glhf-mx-slot.is-decider { border-color: rgba(var(--glhf-accent-rgb), 0.3); }
#glhf-match-modal .glhf-mx-slot.is-current { border-color: rgba(255, 195, 90, 0.45); background: rgba(255, 195, 90, 0.05); }
#glhf-match-modal .glhf-mx-slot-text { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
#glhf-match-modal .glhf-mx-slot-kicker { font-family: var(--glhf-font-heading); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-slot-map { font-weight: 700; color: var(--glhf-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#glhf-match-modal .glhf-mx-slot-meta { font-size: 0.72rem; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-slot-sides { display: flex; flex-direction: column; gap: 0.1rem; margin-left: auto; font-size: 0.72rem; color: var(--glhf-text-secondary); text-align: right; }
#glhf-match-modal .glhf-mx-slot-sides b { margin-right: 0.3rem; font-family: var(--glhf-font-heading); }
#glhf-match-modal .glhf-mx-slot-sides [data-side="ct"] b { color: var(--mx-ct); }
#glhf-match-modal .glhf-mx-slot-sides [data-side="t"] b { color: var(--mx-t); }
#glhf-match-modal .glhf-mx-slot-sides.is-pending { color: #ffc35a; }

/* -- rock, paper, scissors ---------------------------------------------------------------------- */
#glhf-match-modal .glhf-mx-rps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
#glhf-match-modal .glhf-mx-rps-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 8.5rem;
    border-radius: 18px;
    border: 1px solid var(--mx-line-strong);
    background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
    color: var(--glhf-text-primary);
    font-family: var(--glhf-font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.4s var(--mx-ease), border-color 0.4s var(--mx-ease), box-shadow 0.4s var(--mx-ease), background 0.4s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rps-ic {
    width: 3rem;
    height: 3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s var(--mx-ease), color 0.4s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rps-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    border-color: rgba(var(--glhf-accent-rgb), 0.6);
    box-shadow: 0 18px 40px -18px rgba(var(--glhf-accent-rgb), 0.8);
    color: var(--glhf-accent);
}
#glhf-match-modal .glhf-mx-rps-btn:hover:not(:disabled) .glhf-mx-rps-ic {
    transform: scale(1.08) rotate(-6deg);
}
#glhf-match-modal .glhf-mx-rps-btn.is-sending {
    border-color: rgba(var(--glhf-accent-rgb), 0.8);
    color: var(--glhf-accent);
    animation: mx-sending 0.9s ease-in-out infinite;
}
#glhf-match-modal .glhf-mx-rps-btn:disabled:not(.is-sending) { opacity: 0.45; }
#glhf-match-modal .glhf-mx-rps-mine {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--glhf-accent-rgb), 0.3);
    background: rgba(var(--glhf-accent-rgb), 0.06);
    color: var(--glhf-accent);
}
#glhf-match-modal .glhf-mx-rps-mine span { display: flex; flex-direction: column; gap: 0.1rem; }
#glhf-match-modal .glhf-mx-rps-mine em { font-style: normal; font-size: 0.74rem; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-rps-mine strong { font-size: 1.05rem; color: var(--glhf-text-primary); }

/* -- server ------------------------------------------------------------------------------------- */
#glhf-match-modal .glhf-mx-connect {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%),
        var(--glhf-accent);
    color: var(--glhf-bg-primary, #0a0e12);
    text-decoration: none;
    box-shadow: 0 16px 44px -14px rgba(var(--glhf-accent-rgb), 0.7);
    transition: transform 0.4s var(--mx-ease), box-shadow 0.4s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px -14px rgba(var(--glhf-accent-rgb), 0.85);
    color: var(--glhf-bg-primary, #0a0e12);
}
#glhf-match-modal .glhf-mx-connect-ic {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.16);
    font-size: 1.15rem;
}
#glhf-match-modal .glhf-mx-connect-ic .glhf-mx-ic { fill: currentColor; stroke: none; }
#glhf-match-modal .glhf-mx-connect-text { display: flex; flex-direction: column; gap: 0.1rem; }
#glhf-match-modal .glhf-mx-connect-text strong { font-family: var(--glhf-font-heading); font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
#glhf-match-modal .glhf-mx-connect-text em { font-style: normal; font-size: 0.78rem; opacity: 0.75; }
#glhf-match-modal .glhf-mx-connect-arrow { margin-left: auto; font-size: 1.3rem; transition: transform 0.4s var(--mx-ease); }
#glhf-match-modal .glhf-mx-connect:hover .glhf-mx-connect-arrow { transform: translateX(4px); }
/* Не гравець матчу: та сама кнопка, але під замком і поясненням про Монобазу */
#glhf-match-modal .glhf-mx-connect-lock {
    display: grid;
    border-radius: 16px;
    isolation: isolate;
}
#glhf-match-modal .glhf-mx-connect-lock > * { grid-area: 1 / 1; }
#glhf-match-modal .glhf-mx-connect.is-locked {
    opacity: 0.5;
    filter: grayscale(0.6) blur(2.5px);
    box-shadow: none;
    pointer-events: none;
    user-select: none;
}
#glhf-match-modal .glhf-mx-lock-veil {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 0.95rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 195, 90, 0.3);
    border-radius: 16px;
    background:
        linear-gradient(110deg, rgba(255, 195, 90, 0.12), rgba(10, 14, 18, 0) 55%),
        rgba(10, 14, 18, 0.72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
#glhf-match-modal .glhf-mx-lock-ic {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(255, 195, 90, 0.4);
    border-radius: 50%;
    background: rgba(255, 195, 90, 0.1);
    color: #ffc35a;
    font-size: 1.1rem;
    box-shadow: 0 0 22px rgba(255, 195, 90, 0.18);
}
#glhf-match-modal .glhf-mx-lock-text { display: flex; flex: 1 1 15rem; flex-direction: column; gap: 0.2rem; min-width: 0; }
#glhf-match-modal .glhf-mx-lock-text strong {
    color: #ffc35a;
    font-family: var(--glhf-font-heading);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
#glhf-match-modal .glhf-mx-lock-text em { color: var(--glhf-text-secondary); font-size: 0.78rem; font-style: normal; line-height: 1.4; }
#glhf-match-modal .glhf-mx-lock-actions { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; margin-left: auto; }
#glhf-match-modal .glhf-mx-lock-cta {
    padding: 0.55rem 1.05rem;
    border-radius: var(--glhf-radius-full, 999px);
    background: #ffc35a;
    color: #1a1300;
    font-family: var(--glhf-font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 26px -10px rgba(255, 195, 90, 0.7);
    transition: transform 0.45s var(--mx-ease), box-shadow 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-lock-cta:hover {
    color: #1a1300;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -10px rgba(255, 195, 90, 0.85);
}
#glhf-match-modal .glhf-mx-lock-login {
    color: var(--glhf-text-muted);
    font-size: 0.72rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-lock-login:hover { color: var(--glhf-text-primary); }
@media (max-width: 560px) {
    #glhf-match-modal .glhf-mx-lock-actions { flex-direction: row; flex-wrap: wrap; width: 100%; margin-left: 0; }
}
#glhf-match-modal .glhf-mx-copies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}
#glhf-match-modal .glhf-mx-copy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(0, 0, 0, 0.22);
    color: var(--glhf-text-primary);
    text-align: left;
    transition: border-color 0.35s var(--mx-ease), background 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-copy:hover {
    border-color: rgba(var(--glhf-accent-rgb), 0.45);
    background: rgba(var(--glhf-accent-rgb), 0.05);
}
#glhf-match-modal .glhf-mx-copy-kicker {
    font-family: var(--glhf-font-heading);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-copy code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: var(--glhf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-copy-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--glhf-text-muted);
    transition: color 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-copy:hover .glhf-mx-copy-hint { color: var(--glhf-accent); }
#glhf-match-modal .glhf-mx-cstv {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    border: 1px dashed rgba(169, 155, 255, 0.35);
    background: rgba(169, 155, 255, 0.05);
}
#glhf-match-modal .glhf-mx-cstv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--glhf-font-heading);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mx-staff);
}
#glhf-match-modal .glhf-mx-cstv .glhf-mx-btn { height: 2.2rem; }
#glhf-match-modal .glhf-mx-cstv .glhf-mx-copy.is-compact { flex: 1 1 16rem; width: auto; padding: 0.5rem 0.7rem; }
#glhf-match-modal .glhf-mx-server .glhf-match-retry-btn { margin-top: 0.75rem; }
/* «Глядачі: 3/9» - зайняті місця на CSTV сервера */
#glhf-match-modal .glhf-mx-seats {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    flex: none;
    margin-left: auto;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#glhf-match-modal .glhf-mx-connect .glhf-mx-seats + .glhf-mx-connect-arrow { margin-left: 0; }
#glhf-match-modal .glhf-mx-seats-label {
    font-family: var(--glhf-font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
}
#glhf-match-modal .glhf-mx-seats b {
    display: inline-block;
    font-size: 1rem;
    font-weight: 800;
    animation: glhfSeatsIn 0.6s var(--mx-ease) both;
}
#glhf-match-modal .glhf-mx-seats i { font-style: normal; font-size: 0.8rem; opacity: 0.7; }
#glhf-match-modal .glhf-mx-seats .glhf-mx-ic { width: 0.95rem; height: 0.95rem; align-self: center; opacity: 0.8; }
#glhf-match-modal .glhf-mx-cstv .glhf-mx-seats {
    margin-left: 0;
    background: rgba(169, 155, 255, 0.1);
    color: var(--mx-staff);
}
#glhf-match-modal .glhf-mx-seats.is-full { background: rgba(255, 120, 90, 0.22); }
/* Місць немає: кнопка лишається робочою (хтось може вийти), але тьмяніє */
#glhf-match-modal .glhf-mx-connect.is-full {
    filter: saturate(0.3) brightness(0.85);
    box-shadow: none;
    transition: transform 0.4s var(--mx-ease), filter 0.6s var(--mx-ease);
}
@keyframes glhfSeatsIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
    #glhf-match-modal .glhf-mx-connect .glhf-mx-seats-label { display: none; }
    #glhf-match-modal .glhf-mx-connect .glhf-mx-seats { padding: 0.32rem 0.55rem; }
    #glhf-match-modal .glhf-mx-connect .glhf-mx-seats + .glhf-mx-connect-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #glhf-match-modal .glhf-mx-seats b { animation: none; }
}

/* -- played maps -------------------------------------------------------------------------------- */
#glhf-match-modal .glhf-mx-maps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
#glhf-match-modal .glhf-mx-map {
    border-radius: 16px;
    border: 1px solid var(--mx-line);
    background: rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: border-color 0.5s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-map.is-playing {
    border-color: rgba(var(--glhf-accent-rgb), 0.35);
}
/* мапа, на яку серія так і не дійшла: притушена */
#glhf-match-modal .glhf-mx-map-banner > .glhf-mx-media img {
    transition: filter 0.6s var(--mx-ease), opacity 0.6s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-map.is-skipped .glhf-mx-map-banner > .glhf-mx-media img {
    filter: grayscale(0.85) brightness(0.6);
}
#glhf-match-modal .glhf-mx-map.is-skipped .glhf-mx-map-name,
#glhf-match-modal .glhf-mx-map.is-skipped .glhf-mx-who {
    opacity: 0.6;
}
#glhf-match-modal .glhf-mx-map-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    min-height: 6.4rem;
    padding: 0.9rem 1rem;
    isolation: isolate;
    overflow: hidden;
}
#glhf-match-modal .glhf-mx-map-banner > .glhf-mx-media {
    z-index: -2;
}
/* a wide banner: the picture spans the width, centred, top and bottom cropped */
#glhf-match-modal .glhf-mx-map-banner > .glhf-mx-media img {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: auto;
    max-width: none;
    transform: translateY(-50%);
    filter: saturate(1.05);
}
#glhf-match-modal .glhf-mx-map-banner > .glhf-mx-media.is-radar img {
    left: auto;
    right: 4%;
    width: 30%;
    opacity: 0.4;
}
/* банер мапи: зліва (під назвою) картинка розмита й темніша, праворуч - чітка і яскрава */
#glhf-match-modal .glhf-mx-map-banner::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 62%);
    mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 62%);
    pointer-events: none;
}
#glhf-match-modal .glhf-mx-map-veil {
    position: absolute;
    /* з запасом: при масштабі екрана 125-150% край затемнення лягав на пів пікселя нижче
       і зверху просвічувала світла смужка картинки (банер усе одно обрізає зайве) */
    inset: -2px;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 12, 16, 0.86) 0%, rgba(8, 12, 16, 0.6) 34%, rgba(8, 12, 16, 0.22) 72%, rgba(8, 12, 16, 0.12) 100%),
        radial-gradient(40% 90% at 50% 50%, rgba(8, 12, 16, 0.38), transparent 75%);
}
#glhf-match-modal .glhf-mx-map-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
}
#glhf-match-modal .glhf-mx-map-idx {
    font-family: var(--glhf-font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-map-name {
    font-family: var(--glhf-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
#glhf-match-modal .glhf-mx-map-won {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--glhf-accent);
}
#glhf-match-modal .glhf-mx-map-sides {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    justify-content: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
#glhf-match-modal .glhf-mx-map-sides .glhf-mx-map-score {
    font-size: 2.7rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
#glhf-match-modal .glhf-mx-map-sides .glhf-mx-map-score i { font-size: 1.6rem; }
#glhf-match-modal .glhf-mx-map-sides .glhf-mx-map-score.is-idle { font-size: 0.78rem; }
#glhf-match-modal .glhf-mx-map-banner > .glhf-mx-media img { filter: saturate(1.12) brightness(1.08); }
#glhf-match-modal .glhf-mx-who {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-size: 0.82rem;
    color: var(--glhf-text-secondary);
    white-space: nowrap;
}
#glhf-match-modal .glhf-mx-who:first-child { justify-content: flex-end; }
#glhf-match-modal .glhf-mx-who b {
    font-family: var(--glhf-font-heading);
    font-size: 0.68rem;
    font-weight: 800;
}
#glhf-match-modal .glhf-mx-who[data-side="ct"] b { color: var(--mx-ct); }
#glhf-match-modal .glhf-mx-who[data-side="t"] b { color: var(--mx-t); }
#glhf-match-modal .glhf-mx-map-score {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--glhf-font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--glhf-text-primary);
}
#glhf-match-modal .glhf-mx-map-score span { opacity: 0.6; transition: opacity 0.5s var(--mx-ease), color 0.5s var(--mx-ease); }
#glhf-match-modal .glhf-mx-map-score span.is-win,
#glhf-match-modal .glhf-mx-map-score.is-live span { opacity: 1; }
#glhf-match-modal .glhf-mx-map-score [data-side="ct"] { color: var(--mx-ct); }
#glhf-match-modal .glhf-mx-map-score [data-side="t"] { color: var(--mx-t); }
#glhf-match-modal .glhf-mx-map-score i { font-style: normal; font-size: 1.2rem; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-map-score.is-idle {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--glhf-text-muted);
}
/* «Дивитися повтор» і «Скачати демо»: праворуч в історії раундів (або в банері, якщо раундів немає).
   Значок і підпис видно завжди; при наведенні кнопка плавно заливається зеленим. */
#glhf-match-modal .glhf-mx-map-actions {
    display: flex;
    align-items: center;
}
#glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo {
    flex-direction: row;
    flex-wrap: wrap;
    align-self: center;
    gap: 0.5rem;
    padding: 0;
    border: 0;
}
#glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-link {
    flex: 0 0 auto;
    min-height: 2.6rem;
    padding: 0 1rem;
    border-radius: 11px;
    border-color: var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.04);
    transition:
        border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#glhf-match-modal .glhf-mx-map-banner .glhf-mx-map-actions .glhf-mm-demo-link {
    background: rgba(8, 12, 16, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-face {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
#glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-link .glhf-mm-demo-label,
#glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-link .glhf-mm-demo-ico {
    grid-area: auto;
    opacity: 1;
    transform: none;
    transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-ico { color: var(--glhf-accent); }
#glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-label { font-size: 0.74rem; }
@media (hover: hover) and (pointer: fine) {
    #glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-link:hover,
    #glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-link:focus-visible {
        border-color: var(--glhf-accent);
        background: var(--glhf-accent);
        color: var(--glhf-accent-fg);
        box-shadow: var(--glhf-shadow-glow);
    }
    #glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-link:hover .glhf-mm-demo-label,
    #glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-link:focus-visible .glhf-mm-demo-label,
    #glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-link:hover .glhf-mm-demo-ico,
    #glhf-match-modal .glhf-mx-map-actions .glhf-mm-demo-link:focus-visible .glhf-mm-demo-ico {
        opacity: 1;
        transform: none;
        color: var(--glhf-accent-fg);
    }
}
#glhf-match-modal .glhf-mx-rounds.has-actions {
    grid-template-columns: auto minmax(0, 1fr) auto;
}
#glhf-match-modal .glhf-mx-rounds > .glhf-mx-map-actions {
    padding-left: 1rem;
    border-left: 1px solid var(--mx-line);
}

/* round history: one column per round, team A's wins on top, team B's below, CS2's icons */
#glhf-match-modal .glhf-mx-rounds {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.8rem 1rem 0.9rem;
    border-top: 1px solid var(--mx-line);
    background: rgba(0, 0, 0, 0.16);
}
#glhf-match-modal .glhf-mx-rounds-legend {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 7.5rem;
    padding: 0.15rem 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-rounds-legend span {
    height: 1.55rem;
    line-height: 1.55rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-rounds-track {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-behavior: smooth;
}
#glhf-match-modal .glhf-mx-r {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: none;
}
#glhf-match-modal .glhf-mx-r.is-swap {
    margin-left: 0.55rem;
    padding-left: 0.55rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.14);
}
#glhf-match-modal .glhf-mx-r { outline: none; }
#glhf-match-modal .glhf-mx-r.is-replay { cursor: pointer; }
#glhf-match-modal .glhf-mx-r .glhf-mx-r-cell {
    transition: box-shadow 0.45s var(--mx-ease), filter 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-r.is-tip .glhf-mx-r-cell:not(.is-empty),
#glhf-match-modal .glhf-mx-r:focus-visible .glhf-mx-r-cell:not(.is-empty) {
    filter: brightness(1.2);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}
#glhf-match-modal .glhf-mx-r.is-tip .glhf-mx-r-cell.is-empty,
#glhf-match-modal .glhf-mx-r:focus-visible .glhf-mx-r-cell.is-empty {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
#glhf-match-modal .glhf-mx-r.is-tip b { color: var(--glhf-text-primary); }

/* підказка раунду: картка над квадратиком, плавно з'являється й зникає */
#glhf-match-modal .glhf-mx-rtip {
    position: fixed;
    z-index: 40;
    /* одна ширина для всіх раундів, хоч би які довгі імена: картка не «стрибає» між квадратиками */
    width: min(20rem, calc(100vw - 16px));
    box-sizing: border-box;
    padding: 0.7rem 0.8rem 0.75rem;
    border-radius: 14px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(12, 17, 22, 0.97);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    font-size: 0.76rem;
    color: var(--glhf-text-secondary);
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s var(--mx-ease), transform 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rtip.is-below { transform: translateY(-6px) scale(0.98); }
#glhf-match-modal .glhf-mx-rtip.is-on { opacity: 1; transform: none; pointer-events: auto; }
#glhf-match-modal .glhf-mx-rtip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.3rem;
}
#glhf-match-modal .glhf-mx-rtip-head b {
    font-family: var(--glhf-font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}
#glhf-match-modal .glhf-mx-rtip-win { font-weight: 700; color: var(--glhf-text-primary); }
#glhf-match-modal .glhf-mx-rtip-win[data-side="ct"] { color: var(--mx-ct); }
#glhf-match-modal .glhf-mx-rtip-win[data-side="t"] { color: var(--mx-t); }
#glhf-match-modal .glhf-mx-rtip-how { margin-bottom: 0.5rem; color: var(--glhf-text-primary); }
#glhf-match-modal .glhf-mx-rtip-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
}
#glhf-match-modal .glhf-mx-rtip-score span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#glhf-match-modal .glhf-mx-rtip-score span:first-child { text-align: right; }
#glhf-match-modal .glhf-mx-rtip-score b { font-family: var(--glhf-font-heading); font-size: 0.95rem; color: #fff; font-variant-numeric: tabular-nums; }
#glhf-match-modal .glhf-mx-rtip-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    line-height: 1.5;
}
#glhf-match-modal .glhf-mx-rtip-line i { font-style: normal; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-rtip-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--glhf-text-primary); text-align: right; }
#glhf-match-modal .glhf-mx-rtip-head { min-width: 0; }
#glhf-match-modal .glhf-mx-rtip-win { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#glhf-match-modal .glhf-mx-rtip-money {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 0.7rem;
    row-gap: 0.15rem;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--mx-line);
    line-height: 1.45;
}
#glhf-match-modal .glhf-mx-rtip-money i { grid-column: 1 / -1; font-style: normal; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-rtip-money span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#glhf-match-modal .glhf-mx-rtip-money b { color: var(--glhf-text-primary); font-variant-numeric: tabular-nums; text-align: right; }
#glhf-match-modal .glhf-mx-rtip-money em { font-style: normal; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-rtip-go {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.4rem;
    margin-top: 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--glhf-accent-rgb), 0.5);
    background: rgba(var(--glhf-accent-rgb), 0.12);
    color: var(--glhf-accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
#glhf-match-modal .glhf-mx-rtip-go svg { width: 14px; height: 14px; fill: currentColor; }
/* мишею: раунд клікається сам, у підказці лише нагадування; пальцем: у підказці кнопка */
#glhf-match-modal .glhf-mx-rtip.is-touch .glhf-mx-rtip-go { display: inline-flex; }
#glhf-match-modal .glhf-mx-rtip:not(.is-touch):has(.glhf-mx-rtip-go)::after {
    content: 'Клік - повтор з цього раунду';
    display: block;
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mx-line);
    font-size: 0.7rem;
    color: var(--glhf-accent);
}
#glhf-match-modal .glhf-mx-r b {
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    color: var(--glhf-text-muted);
    font-variant-numeric: tabular-nums;
}
#glhf-match-modal .glhf-mx-r-cell {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
}
#glhf-match-modal .glhf-mx-r-cell[data-side="ct"] {
    background: linear-gradient(180deg, rgba(108, 198, 255, 0.95), rgba(64, 150, 220, 0.95));
    box-shadow: 0 4px 12px -4px rgba(108, 198, 255, 0.6);
}
#glhf-match-modal .glhf-mx-r-cell[data-side="t"] {
    background: linear-gradient(180deg, rgba(255, 176, 77, 0.95), rgba(230, 130, 30, 0.95));
    box-shadow: 0 4px 12px -4px rgba(255, 166, 61, 0.6);
}
#glhf-match-modal .glhf-mx-r-cell[data-side=""]:not(.is-empty) {
    background: rgba(255, 255, 255, 0.4);
}
#glhf-match-modal .glhf-mx-r-ic {
    width: 0.95rem;
    height: 0.95rem;
    background: #0b1116;
    -webkit-mask: var(--ic) center / contain no-repeat;
    mask: var(--ic) center / contain no-repeat;
}
#glhf-match-modal .glhf-mx-r-svg {
    width: 0.85rem;
    height: 0.85rem;
    fill: none;
    stroke: #0b1116;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#glhf-match-modal .glhf-mx-r-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0b1116;
}
#glhf-match-modal .glhf-mx-r.is-new .glhf-mx-r-cell:not(.is-empty) {
    animation: mx-round-in 0.8s var(--mx-ease-out) both;
}
@keyframes mx-round-in {
    0% { transform: scale(0.4); opacity: 0; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    60% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: none; }
}

/* -- rosters ------------------------------------------------------------------------------------ */
#glhf-match-modal .glhf-mx-roster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
#glhf-match-modal .glhf-mx-roster-vs {
    align-self: center;
    font-family: var(--glhf-font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--glhf-text-muted);
    opacity: 0.6;
}
#glhf-match-modal .glhf-mx-roster-team {
    min-width: 0;
}
#glhf-match-modal .glhf-mx-roster-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
}
#glhf-match-modal .glhf-mx-roster-emblem {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 8px;
    border: 1px solid var(--mx-line-strong);
    background: #141c23;
    font-family: var(--glhf-font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--glhf-text-primary);
}
#glhf-match-modal .glhf-mx-roster-emblem.has-crest {
    padding: 0.28rem;
    animation: mx-crest-in 0.7s var(--mx-ease) both;
}
#glhf-match-modal .glhf-mx-roster-head[data-side="ct"] .glhf-mx-roster-emblem { color: var(--mx-ct); border-color: rgba(108, 198, 255, 0.35); }
#glhf-match-modal .glhf-mx-roster-head[data-side="t"] .glhf-mx-roster-emblem { color: var(--mx-t); border-color: rgba(255, 166, 61, 0.35); }
#glhf-match-modal .glhf-mx-roster-name {
    min-width: 0;
    font-family: var(--glhf-font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--glhf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-roster-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
#glhf-match-modal .glhf-mx-roster-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0.4rem 0.6rem 0.4rem 0.45rem;
    border-radius: 12px;
    border: 1px solid var(--mx-line);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.35s var(--mx-ease), background 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-roster-list li:hover {
    border-color: var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.04);
}
#glhf-match-modal .glhf-mx-roster-list li.is-captain {
    border-color: rgba(255, 195, 90, 0.25);
    background: linear-gradient(90deg, rgba(255, 195, 90, 0.06), rgba(255, 255, 255, 0.015));
}
#glhf-match-modal .glhf-mx-roster-ava {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 50%;
    background: linear-gradient(145deg, #23303b, #151d24);
    font-family: var(--glhf-font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--glhf-text-secondary);
}
#glhf-match-modal .glhf-mx-roster-who {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
}
#glhf-match-modal .glhf-mx-roster-nick {
    min-width: 0;
    font-weight: 700;
    color: var(--glhf-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-roster-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
}
#glhf-match-modal .glhf-mx-cap {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 195, 90, 0.12);
    color: #ffc35a;
    font-family: var(--glhf-font-heading);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
#glhf-match-modal .glhf-mx-roster-list .glhf-mm-sub-btn {
    height: 1.9rem;
    padding: 0 0.7rem;
    border-radius: 9px;
    font-size: 0.66rem;
}

/* -- the moderator's result dialog -------------------------------------------------------------- */
#glhf-match-modal .glhf-mx-dialog {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(5, 8, 11, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: background 0.35s var(--mx-ease), backdrop-filter 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-dialog[hidden] { display: none; }
#glhf-match-modal .glhf-mx-dialog.is-open {
    background: rgba(5, 8, 11, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
#glhf-match-modal .glhf-mx-dialog-card {
    width: min(30rem, 100%);
    padding: 1.35rem 1.35rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(169, 155, 255, 0.25);
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(169, 155, 255, 0.1), transparent 60%),
        #10161c;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.97);
    transition: opacity 0.35s var(--mx-ease), transform 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-dialog.is-open .glhf-mx-dialog-card {
    opacity: 1;
    transform: none;
}
#glhf-match-modal .glhf-mx-dialog-kicker {
    font-family: var(--glhf-font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mx-staff);
}
#glhf-match-modal .glhf-mx-dialog-title {
    margin: 0.3rem 0 0.35rem;
    font-family: var(--glhf-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--glhf-text-primary);
}
#glhf-match-modal .glhf-mx-dialog-lead {
    margin-bottom: 1rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--glhf-text-secondary);
}
#glhf-match-modal .glhf-mx-dialog-teams {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}
#glhf-match-modal .glhf-mx-pick {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.025);
    color: var(--glhf-text-primary);
    text-align: left;
    transition: border-color 0.35s var(--mx-ease), background 0.35s var(--mx-ease), box-shadow 0.35s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-pick:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.22); }
#glhf-match-modal .glhf-mx-pick.is-on {
    border-color: rgba(var(--glhf-accent-rgb), 0.75);
    background: rgba(var(--glhf-accent-rgb), 0.07);
    box-shadow: 0 0 0 3px rgba(var(--glhf-accent-rgb), 0.12);
}
#glhf-match-modal .glhf-mx-pick:disabled { opacity: 0.5; cursor: default; }
#glhf-match-modal .glhf-mx-pick-mark {
    display: grid;
    place-items: center;
    width: 1.3rem;
    height: 1.3rem;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: transparent;
    font-size: 0.8rem;
    transition: background 0.3s var(--mx-ease), border-color 0.3s var(--mx-ease), color 0.3s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-pick.is-on .glhf-mx-pick-mark {
    background: var(--glhf-accent);
    border-color: var(--glhf-accent);
    color: var(--glhf-bg-primary, #0a0e12);
}
#glhf-match-modal .glhf-mx-pick-emblem {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: none;
    border-radius: 9px;
    background: #18222a;
    font-family: var(--glhf-font-heading);
    font-weight: 800;
}
#glhf-match-modal .glhf-mx-pick-name {
    min-width: 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#glhf-match-modal .glhf-mx-pick-now {
    margin-left: auto;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(var(--glhf-accent-rgb), 0.12);
    color: var(--glhf-accent);
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}
#glhf-match-modal .glhf-mx-dialog-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--glhf-text-secondary);
}
#glhf-match-modal .glhf-mx-dialog-field em { font-style: normal; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-dialog-reason {
    width: 100%;
    min-height: 3.4rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(0, 0, 0, 0.25);
    color: var(--glhf-text-primary);
    font: inherit;
    font-size: 0.86rem;
    resize: vertical;
    transition: border-color 0.3s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-dialog-reason:focus {
    outline: none;
    border-color: rgba(var(--glhf-accent-rgb), 0.55);
}
#glhf-match-modal .glhf-mx-dialog-note {
    margin-top: 0.8rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    background: rgba(255, 195, 90, 0.08);
    border: 1px solid rgba(255, 195, 90, 0.22);
    color: #ffd38a;
    font-size: 0.8rem;
    line-height: 1.45;
}
#glhf-match-modal .glhf-mx-dialog-note.is-block {
    background: rgba(255, 93, 108, 0.08);
    border-color: rgba(255, 93, 108, 0.3);
    color: #ff9aa5;
}
#glhf-match-modal .glhf-mx-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

/* -- phones ------------------------------------------------------------------------------------- */
@media (max-width: 760px) {
    #glhf-match-modal .glhf-match-modal-head.glhf-mx-head { padding: 0.8rem 0.9rem 0.8rem; }
    #glhf-match-modal .glhf-mx-board { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.5rem; margin: 0.7rem 0 0.8rem; }
    #glhf-match-modal .glhf-mx-team,
    #glhf-match-modal .glhf-mx-team[data-team="b"] { flex-direction: column; align-items: center; text-align: center; gap: 0.45rem; }
    #glhf-match-modal .glhf-mx-emblem { width: 2.8rem; height: 2.8rem; border-radius: 13px; }
    #glhf-match-modal .glhf-mx-emblem-letter { font-size: 1.2rem; }
    #glhf-match-modal .glhf-mx-team-name { font-size: 0.95rem; max-width: 100%; }
    #glhf-match-modal .glhf-mx-team-sub { display: none !important; }
    #glhf-match-modal .glhf-mx-center { min-width: 0; }
    #glhf-match-modal .glhf-mx-digit { font-size: 2.3rem; }
    #glhf-match-modal .glhf-mx-tool span { display: none; }
    #glhf-match-modal .glhf-mx-share span { display: none; }
    #glhf-match-modal .glhf-mx-share { padding: 0; width: 2.15rem; justify-content: center; }
    #glhf-match-modal .glhf-mx-watch { width: auto; max-width: 0; }
    #glhf-match-modal .glhf-mx-watch.is-shown { width: 2.15rem; max-width: 2.15rem; padding: 0; }
    #glhf-match-modal .glhf-mx-tool { padding: 0 0.6rem; }
    #glhf-match-modal .glhf-match-modal-body.glhf-mx-body { padding: 0.85rem 0.8rem 1rem; gap: 0.7rem; }
    #glhf-match-modal .glhf-mx-card { padding: 0.85rem 0.8rem 0.9rem; border-radius: 16px; }
    #glhf-match-modal .glhf-mx-card-head { flex-wrap: wrap; }
    #glhf-match-modal .glhf-mx-tile { min-width: 6.2rem; flex-basis: 6.2rem; }
    #glhf-match-modal .glhf-mx-rps-btn { min-height: 6.5rem; }
    #glhf-match-modal .glhf-mx-map-banner { grid-template-columns: minmax(0, 1fr) auto; }
    #glhf-match-modal .glhf-mx-map-sides { left: auto; right: 1rem; transform: translateY(-50%); }
    #glhf-match-modal .glhf-mx-map-sides .glhf-mx-map-score { font-size: 2.1rem; }
    #glhf-match-modal .glhf-mx-map-banner > .glhf-mx-map-actions { grid-column: 2; grid-row: 1; }
    #glhf-match-modal .glhf-mx-roster { grid-template-columns: minmax(0, 1fr); }
    #glhf-match-modal .glhf-mx-roster-list li { flex-wrap: wrap; row-gap: 0.35rem; }
    #glhf-match-modal .glhf-mx-roster-who { flex: 1 1 calc(100% - 2.7rem); flex-wrap: wrap; row-gap: 0.2rem; }
    #glhf-match-modal .glhf-mx-roster-meta { margin-left: 2.6rem; }
    #glhf-match-modal .glhf-mx-team-tags { flex-wrap: wrap; justify-content: center; }
    #glhf-match-modal .glhf-mx-win-tag { font-size: 0.56rem; padding: 0.18rem 0.45rem; }
    #glhf-match-modal .glhf-mx-crumbs .glhf-mx-chip { display: none !important; }
    #glhf-match-modal .glhf-mx-rounds { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
    #glhf-match-modal .glhf-mx-rounds-legend { display: none; }
    #glhf-match-modal .glhf-mx-rounds.has-actions { grid-template-columns: minmax(0, 1fr); }
    #glhf-match-modal .glhf-mx-rounds > .glhf-mx-map-actions { padding: 0.6rem 0 0; border-left: 0; border-top: 1px solid var(--mx-line); }
    #glhf-match-modal .glhf-mx-rounds > .glhf-mx-map-actions .glhf-mm-demo { width: 100%; flex-direction: column; }
    #glhf-match-modal .glhf-mx-rounds > .glhf-mx-map-actions .glhf-mm-demo-link { width: 100%; }
    #glhf-match-modal .glhf-mx-roster-vs { display: none; }
    #glhf-match-modal .glhf-mx-sides { grid-template-columns: 1fr; }
    /* довгі назви на телефоні: переносимо (до двох рядків), а не обрізаємо за краєм */
    #glhf-match-modal .glhf-mx-team { min-width: 0; }
    #glhf-match-modal .glhf-mx-team-text { width: 100%; align-items: center; }
    #glhf-match-modal .glhf-mx-team-name {
        font-size: 0.85rem;
        white-space: normal;
        overflow-wrap: anywhere;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    #glhf-match-modal .glhf-mx-map-sides { gap: 0.5rem; }
    #glhf-match-modal .glhf-mx-map-score { font-size: 1.5rem; }
    #glhf-match-modal .glhf-mx-who { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; font-size: 0.76rem; }
    #glhf-match-modal .glhf-mx-who:first-child { text-align: right; }
    #glhf-match-modal .glhf-mx-who b { flex: none; overflow-wrap: normal; white-space: nowrap; }
    /* на вузькій плитці сторони не влазять - вони є в рядку обраних мап під вето */
    #glhf-match-modal .glhf-mx-tile-sides { display: none; }
    #glhf-match-modal .glhf-mx-tile-tag { max-width: 100%; font-size: 0.52rem; letter-spacing: 0.06em; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
    #glhf-match-modal .glhf-mx-tile,
    #glhf-match-modal .glhf-mx-tile-slash,
    #glhf-match-modal .glhf-mx-sec.is-in > *,
    #glhf-match-modal .glhf-mx-r.is-new .glhf-mx-r-cell,
    #glhf-match-modal .glhf-mx-digit.is-bump,
    #glhf-match-modal .glhf-mx-timer.is-urgent,
    #glhf-match-modal .glhf-mx-media.is-wait::after,
    #glhf-match-modal .glhf-mx-chip.is-live::before {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* -- статистика: герой матчу і перемикач мап ------------------------------------------------------- */
#glhf-match-modal .glhf-mx-hero {
    --hero: var(--glhf-accent);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 0.9rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--hero) 35%, transparent);
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--hero) 16%, transparent), transparent 60%),
        rgba(255, 255, 255, 0.02);
    overflow: hidden;
    animation: mx-sec-in 0.7s var(--mx-ease-out) both;
}
#glhf-match-modal .glhf-mx-hero-glow {
    position: absolute;
    inset: -40% auto auto -10%;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--hero) 22%, transparent), transparent 70%);
    pointer-events: none;
}
#glhf-match-modal .glhf-mx-hero-who {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
#glhf-match-modal .glhf-mx-hero-ava .glhf-stats-avatar-box {
    width: 3.4rem;
    height: 3.4rem;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--hero) 70%, transparent), 0 10px 26px rgba(0, 0, 0, 0.4);
}
#glhf-match-modal .glhf-mx-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
#glhf-match-modal .glhf-mx-hero-kicker {
    font-family: var(--glhf-font-heading);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hero);
}
#glhf-match-modal .glhf-mx-hero-name {
    font-family: var(--glhf-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    overflow-wrap: anywhere;
}
#glhf-match-modal .glhf-mx-hero-team {
    font-size: 0.78rem;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-hero-stats {
    position: relative;
    display: flex;
    gap: 1.3rem;
    margin: 0;
}
#glhf-match-modal .glhf-mx-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
#glhf-match-modal .glhf-mx-hero-stat dt {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-hero-stat dd {
    margin: 0;
    font-family: var(--glhf-font-heading);
    font-size: 1.35rem;
    color: #fff;
}
#glhf-match-modal .glhf-mx-hero-stat:first-child dd { color: var(--hero); }
#glhf-match-modal .glhf-mx-mapsw {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
}
#glhf-match-modal .glhf-mx-mapsw button {
    height: 2.1rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--glhf-text-secondary);
    font-family: var(--glhf-font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.45s var(--mx-ease), color 0.45s var(--mx-ease), border-color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-mapsw button:hover { background: rgba(255, 255, 255, 0.08); color: var(--glhf-text-primary); }
#glhf-match-modal .glhf-mx-mapsw button.is-on {
    background: rgba(var(--glhf-accent-rgb), 0.14);
    border-color: rgba(var(--glhf-accent-rgb), 0.5);
    color: var(--glhf-accent);
}
#glhf-match-modal .glhf-mx-mapstats-note {
    margin: 0.6rem 0 0;
    font-size: 0.72rem;
    color: var(--glhf-text-muted);
}
@media (max-width: 760px) {
    #glhf-match-modal .glhf-mx-hero { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
    #glhf-match-modal .glhf-mx-hero-stats { justify-content: space-between; gap: 0.6rem; }
    #glhf-match-modal .glhf-mx-hero-stat dd { font-size: 1.1rem; }
}

/* -- ключові моменти мапи (з повтору) ----------------------------------------------------------- */
#glhf-match-modal .glhf-mx-moments {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem 0.8rem;
    border-top: 1px solid var(--mx-line);
    animation: mx-sec-in 0.6s var(--mx-ease-out) both;
}
#glhf-match-modal .glhf-mx-moments-label {
    flex: none;
    font-family: var(--glhf-font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-moments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}
/* момент = картка з двох кнопок: сам момент (повтор) і посилання на нього */
#glhf-match-modal .glhf-mx-moment-wrap {
    --mo: var(--glhf-accent-rgb);
    display: inline-flex;
    align-items: stretch;
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(var(--mo), 0.3);
    background: rgba(var(--mo), 0.07);
    transition: background 0.45s var(--mx-ease), border-color 0.45s var(--mx-ease), transform 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-moment-wrap[data-type="ace"] { --mo: 255, 210, 63; }
#glhf-match-modal .glhf-mx-moment-wrap[data-type="multi"] { --mo: 255, 138, 61; }
#glhf-match-modal .glhf-mx-moment-wrap[data-type="knife"],
#glhf-match-modal .glhf-mx-moment-wrap[data-type="noscope"] { --mo: 179, 136, 255; }
#glhf-match-modal .glhf-mx-moment-wrap:hover,
#glhf-match-modal .glhf-mx-moment-wrap:focus-within {
    background: rgba(var(--mo), 0.12);
    border-color: rgba(var(--mo), 0.6);
    transform: translateY(-1px);
}
#glhf-match-modal .glhf-mx-moment {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 0.45rem;
    row-gap: 0.1rem;
    min-width: 0;
    min-height: 2rem;
    padding: 0.3rem 0.6rem 0.3rem 0.6rem;
    border: 0;
    border-radius: 13px 0 0 13px;
    text-align: left;
    background: transparent;
    color: var(--glhf-text-primary);
    font: inherit;
    font-size: 0.76rem;
    cursor: pointer;
    transition: background 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-moment-link {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 2rem;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(var(--mo), 0.22);
    border-radius: 0 13px 13px 0;
    background: transparent;
    color: var(--glhf-text-muted);
    cursor: pointer;
    transition: background 0.45s var(--mx-ease), color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-moment-link svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (hover: hover) and (pointer: fine) {
    #glhf-match-modal .glhf-mx-moment:hover,
    #glhf-match-modal .glhf-mx-moment-link:hover { background: rgba(var(--mo), 0.1); }
    #glhf-match-modal .glhf-mx-moment-link:hover { color: rgb(var(--mo)); }
}
#glhf-match-modal .glhf-mx-moment-link.is-done { color: rgb(var(--mo)); background: rgba(var(--mo), 0.16); }
#glhf-match-modal .glhf-mx-moment.is-loading { opacity: 0.6; }
#glhf-match-modal .glhf-mx-moment svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: rgb(var(--mo));
    fill: none;
    stroke: rgb(var(--mo));
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#glhf-match-modal .glhf-mx-moment-what,
#glhf-match-modal .glhf-mx-moment-round { white-space: nowrap; }
#glhf-match-modal .glhf-mx-moment-what { font-weight: 700; }
#glhf-match-modal .glhf-mx-moment-who { color: var(--glhf-text-secondary); }
#glhf-match-modal .glhf-mx-moment-round {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: var(--glhf-text-muted);
}
@media (max-width: 760px) {
    #glhf-match-modal .glhf-mx-moments { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 0.6rem 0.75rem 0.7rem; }
}

/* -- вкладка «Розбір» ---------------------------------------------------------------------------- */
#glhf-match-modal .glhf-match-modal-tab.glhf-mx-tab-review {
    max-width: 0;
    padding-left: 0;
    padding-right: 0;
    margin-left: -4px;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    transition: max-width 0.6s var(--mx-ease), padding 0.6s var(--mx-ease), margin 0.6s var(--mx-ease), opacity 0.45s var(--mx-ease),
        color 0.45s var(--mx-ease), background 0.45s var(--mx-ease), box-shadow 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-match-modal-tab.glhf-mx-tab-review.is-shown {
    max-width: 12rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-left: 0;
    opacity: 1;
    pointer-events: auto;
}
#glhf-match-modal .glhf-mx-rv {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
#glhf-match-modal .glhf-mx-rv > .glhf-mx-mapsw { margin-bottom: 0; }
#glhf-match-modal .glhf-mx-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 3px;
    border-radius: 11px;
    border: 1px solid var(--mx-line);
    background: rgba(0, 0, 0, 0.22);
}
#glhf-match-modal .glhf-mx-seg button {
    min-height: 1.95rem;
    max-width: 11rem;
    padding: 0 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--glhf-text-muted);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.45s var(--mx-ease), color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-seg button:hover { color: var(--glhf-text-primary); background: rgba(255, 255, 255, 0.05); }
#glhf-match-modal .glhf-mx-seg button.is-on {
    background: rgba(var(--glhf-accent-rgb), 0.14);
    color: var(--glhf-accent);
}
#glhf-match-modal .glhf-mx-rv-grid {
    display: grid;
    grid-template-columns: minmax(0, 34rem) minmax(13rem, 1fr);
    align-items: start;
    gap: 1.2rem;
}
#glhf-match-modal .glhf-mx-rv-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}
#glhf-match-modal .glhf-mx-rv-filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
}
#glhf-match-modal .glhf-mx-rv-label {
    margin-top: 0.35rem;
    font-family: var(--glhf-font-heading);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-rv-label:first-child { margin-top: 0; }
#glhf-match-modal .glhf-mx-rv-filters .glhf-mx-seg { display: flex; }
#glhf-match-modal .glhf-mx-rv-filters .glhf-mx-seg button { flex: 1 1 0; max-width: none; min-width: 0; padding: 0 0.5rem; }
#glhf-match-modal .glhf-mx-rv-levels { display: flex; flex-direction: column; gap: 0.4rem; }
#glhf-match-modal .glhf-mx-rv-levels:empty { display: none; }
#glhf-match-modal .glhf-mx-rv-pick { display: block; }
#glhf-match-modal .glhf-mx-rv-pick select {
    width: 100%;
    height: 2.35rem;
    padding: 0 2rem 0 0.75rem;
    border-radius: 11px;
    border: 1px solid var(--mx-line);
    background: rgba(0, 0, 0, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a98a6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 14px auto;
    color: var(--glhf-text-primary);
    font: inherit;
    font-size: 0.76rem;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rv-pick select:hover,
#glhf-match-modal .glhf-mx-rv-pick select:focus-visible { border-color: rgba(var(--glhf-accent-rgb), 0.45); outline: none; }
#glhf-match-modal .glhf-mx-rv-pick select option { background: #0e151b; }
#glhf-match-modal .glhf-mx-rv-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    background: radial-gradient(120% 90% at 50% 0%, #121b22, #0a0f14);
    overflow: hidden;
}
#glhf-match-modal .glhf-mx-rv-canvas {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 0.45s var(--mx-ease), filter 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rv-canvas.is-hit { cursor: pointer; }
#glhf-match-modal .glhf-mx-rv-stage.is-wait .glhf-mx-rv-canvas,
#glhf-match-modal .glhf-mx-rv-stage.is-error .glhf-mx-rv-canvas { opacity: 0; }
#glhf-match-modal .glhf-mx-rv-stage.is-redraw .glhf-mx-rv-canvas { opacity: 0.25; filter: blur(2px); }
#glhf-match-modal .glhf-mx-rv-wait {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 0.78rem;
    color: var(--glhf-text-muted);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rv-stage.is-wait .glhf-mx-rv-wait,
#glhf-match-modal .glhf-mx-rv-stage.is-error .glhf-mx-rv-wait { opacity: 1; }
#glhf-match-modal .glhf-mx-rv-stage.is-error .glhf-stats-spinner { display: none; }
#glhf-match-modal .glhf-mx-rv-tip {
    position: absolute;
    z-index: 2;
    max-width: 16rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(10, 14, 18, 0.96);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--glhf-text-secondary);
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 12px));
    pointer-events: none;
    transition: opacity 0.3s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rv-tip.is-low { transform: translate(-50%, 14px); }
#glhf-match-modal .glhf-mx-rv-tip.is-on { opacity: 1; }
#glhf-match-modal .glhf-mx-rv-tip b { color: #fff; }
#glhf-match-modal .glhf-mx-rv-tip span { color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-rv-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 0.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--mx-line);
    font-size: 0.72rem;
    color: var(--glhf-text-secondary);
}
#glhf-match-modal .glhf-mx-rv-legend em {
    flex-basis: 100%;
    margin-top: 0.3rem;
    line-height: 1.5;
    font-style: normal;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-rv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px rgba(8, 12, 16, 0.9);
}
#glhf-match-modal .glhf-mx-rv-dot[data-side="ct"] { background: var(--mx-ct); }
#glhf-match-modal .glhf-mx-rv-dot[data-side="t"] { background: var(--mx-t); }
#glhf-match-modal .glhf-mx-rv-ramp {
    width: 8rem;
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(0, 110, 255, 0.55), rgba(0, 225, 200, 0.7), rgba(130, 255, 70, 0.85), rgba(255, 205, 0, 0.9), rgba(255, 55, 30, 0.95));
    order: 2;
}
#glhf-match-modal .glhf-mx-rv-ramp + span { order: 1; }
#glhf-match-modal .glhf-mx-rv-ramp + span + span { order: 3; }
#glhf-match-modal .glhf-mx-rv-legend em { order: 4; }
#glhf-match-modal .glhf-mx-rv-note {
    margin: 0.7rem 0 0;
    font-size: 0.72rem;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-duels-scroll { overflow-x: auto; }
#glhf-match-modal .glhf-mx-duels {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 4px;
    font-size: 0.76rem;
}
#glhf-match-modal .glhf-mx-duels th {
    max-width: 8.5rem;
    padding: 0.35rem 0.4rem;
    font-weight: 600;
    color: var(--glhf-text-secondary);
    text-align: center;
}
#glhf-match-modal .glhf-mx-duels th span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#glhf-match-modal .glhf-mx-duels tbody th { text-align: right; }
#glhf-match-modal .glhf-mx-duels th.is-corner,
#glhf-match-modal .glhf-mx-duels tbody th { width: 12rem; max-width: 12rem; }
@media (max-width: 760px) {
    #glhf-match-modal .glhf-mx-duels { table-layout: auto; }
    #glhf-match-modal .glhf-mx-duels th.is-corner,
    #glhf-match-modal .glhf-mx-duels tbody th { width: auto; max-width: 7rem; }
}
#glhf-match-modal .glhf-mx-rv-facts {
    flex-basis: 100%;
    order: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.6rem 0 0;
}
#glhf-match-modal .glhf-mx-rv-facts div {
    padding: 0.55rem 0.7rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
}
#glhf-match-modal .glhf-mx-rv-facts dt {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--glhf-text-muted);
}
#glhf-match-modal .glhf-mx-rv-facts dd {
    margin: 0.2rem 0 0;
    font-family: var(--glhf-font-heading);
    font-size: 1rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#glhf-match-modal .glhf-mx-duels th.is-corner {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--glhf-text-muted);
    text-align: left;
}
#glhf-match-modal .glhf-mx-duels td {
    min-width: 4.2rem;
    height: 2.4rem;
    padding: 0 0.4rem;
    border-radius: 9px;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, 0.035);
    transition: background 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-duels td b { font-family: var(--glhf-font-heading); font-size: 0.9rem; color: var(--glhf-text-primary); }
#glhf-match-modal .glhf-mx-duels td i { margin: 0 0.3rem; font-style: normal; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-duels td.is-up { background: rgba(var(--glhf-accent-rgb), 0.13); box-shadow: inset 0 0 0 1px rgba(var(--glhf-accent-rgb), 0.28); }
#glhf-match-modal .glhf-mx-duels td.is-up b:first-child { color: var(--glhf-accent); }
#glhf-match-modal .glhf-mx-duels td.is-down { background: rgba(255, 90, 90, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 90, 90, 0.24); }
#glhf-match-modal .glhf-mx-duels td.is-down b:last-child { color: #ff7a7a; }
#glhf-match-modal .glhf-mx-duels td.is-none b { color: var(--glhf-text-muted); }
@media (max-width: 760px) {
    #glhf-match-modal .glhf-match-modal-tab.glhf-mx-tab-review.is-shown { padding-left: 0.9rem; padding-right: 0.9rem; }
    #glhf-match-modal .glhf-mx-rv-grid { grid-template-columns: minmax(0, 1fr); }
    #glhf-match-modal .glhf-mx-rv-map .glhf-mx-card-head { flex-wrap: wrap; }
}

/* -- «Розбір» v2: режими карти, час раунду, зони, раунд, економіка ----------------------------- */
#glhf-match-modal .glhf-mx-rv-map > .glhf-mx-card-head { margin-bottom: 0.4rem; }
#glhf-match-modal .glhf-mx-rv-modes {
    display: flex;
    gap: 0.2rem;
    margin: 0 0 1rem;
    border-bottom: 1px solid var(--mx-line);
    overflow-x: auto;
    scrollbar-width: none;
}
#glhf-match-modal .glhf-mx-rv-modes::-webkit-scrollbar { display: none; }
#glhf-match-modal .glhf-mx-rv-modes button {
    position: relative;
    flex: none;
    min-height: 2.6rem;
    padding: 0 0.95rem;
    border: 0;
    background: transparent;
    color: var(--glhf-text-muted);
    font-family: var(--glhf-font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rv-modes button::after {
    content: '';
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--glhf-accent);
    box-shadow: 0 0 10px rgba(var(--glhf-accent-rgb), 0.6);
    transform: scaleX(0);
    transition: transform 0.5s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rv-modes button:hover { color: var(--glhf-text-primary); }
#glhf-match-modal .glhf-mx-rv-modes button.is-on { color: #fff; }
#glhf-match-modal .glhf-mx-rv-modes button.is-on::after { transform: scaleX(1); }
#glhf-match-modal .glhf-mx-rv-col { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
#glhf-match-modal .glhf-mx-rv-under:empty { display: none; }
#glhf-match-modal .glhf-mx-rv-time {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}
#glhf-match-modal .glhf-mx-rv-play,
#glhf-match-modal .glhf-mx-rv-all {
    height: 2.2rem;
    border-radius: 9px;
    border: 1px solid var(--mx-line-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--glhf-text-secondary);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.45s var(--mx-ease), color 0.45s var(--mx-ease), border-color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rv-play { display: grid; place-items: center; width: 2.2rem; padding: 0; color: var(--glhf-accent); }
#glhf-match-modal .glhf-mx-rv-play svg { width: 15px; height: 15px; fill: currentColor; }
#glhf-match-modal .glhf-mx-rv-play .is-pause,
#glhf-match-modal .glhf-mx-rv-play.is-playing .is-play { display: none; }
#glhf-match-modal .glhf-mx-rv-play.is-playing .is-pause { display: inline; }
#glhf-match-modal .glhf-mx-rv-all { padding: 0 0.7rem; }
#glhf-match-modal .glhf-mx-rv-all.is-on,
#glhf-match-modal .glhf-mx-rv-play:hover,
#glhf-match-modal .glhf-mx-rv-all:hover { background: rgba(var(--glhf-accent-rgb), 0.12); border-color: rgba(var(--glhf-accent-rgb), 0.45); color: var(--glhf-accent); }
#glhf-match-modal .glhf-mx-rv-range { width: 100%; accent-color: var(--glhf-accent); cursor: pointer; transition: opacity 0.45s var(--mx-ease); }
#glhf-match-modal .glhf-mx-rv-time.is-all .glhf-mx-rv-range { opacity: 0.4; }
#glhf-match-modal .glhf-mx-rv-tlabel { min-width: 9.5rem; font-size: 0.72rem; color: var(--glhf-text-secondary); font-variant-numeric: tabular-nums; }
#glhf-match-modal .glhf-mx-rv-zones { flex-basis: 100%; order: 6; display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.6rem; }
#glhf-match-modal .glhf-mx-rv-zone {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 2.6rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
}
#glhf-match-modal .glhf-mx-rv-zone span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--glhf-text-primary); }
#glhf-match-modal .glhf-mx-rv-zone i { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
#glhf-match-modal .glhf-mx-rv-zone b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(var(--glhf-accent-rgb), 0.5), var(--glhf-accent)); transition: width 0.6s var(--mx-ease); }
#glhf-match-modal .glhf-mx-rv-zone em { font-style: normal; text-align: right; color: var(--glhf-text-muted); font-variant-numeric: tabular-nums; }
#glhf-match-modal .glhf-mx-rv-x { color: #fff; font-size: 0.8rem; line-height: 1; }
#glhf-match-modal .glhf-mx-rv-sq,
#glhf-match-modal .glhf-mx-rv-c4 { width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1.5px rgba(8, 12, 16, 0.9); }
#glhf-match-modal .glhf-mx-rv-c4 { background: #ff3b3b; }
#glhf-match-modal .glhf-mx-rv-rounds { display: flex; flex-wrap: wrap; gap: 4px; }
#glhf-match-modal .glhf-mx-rv-rounds button {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    border: 1px solid var(--mx-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--glhf-text-secondary);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.45s var(--mx-ease), border-color 0.45s var(--mx-ease), color 0.45s var(--mx-ease), box-shadow 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rv-rounds button.is-a { box-shadow: inset 0 -3px 0 rgba(var(--glhf-accent-rgb), 0.65); }
#glhf-match-modal .glhf-mx-rv-rounds button.is-b { box-shadow: inset 0 -3px 0 rgba(255, 70, 200, 0.6); }
#glhf-match-modal .glhf-mx-rv-rounds button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
#glhf-match-modal .glhf-mx-rv-rounds button.is-on { background: rgba(var(--glhf-accent-rgb), 0.16); border-color: rgba(var(--glhf-accent-rgb), 0.55); color: var(--glhf-accent); }
#glhf-match-modal .glhf-mx-rv-rinfo { flex-basis: 100%; font-size: 0.82rem; color: var(--glhf-text-secondary); }
#glhf-match-modal .glhf-mx-rv-rinfo b { color: #fff; }
#glhf-match-modal .glhf-mx-rv-feed {
    flex-basis: 100%;
    order: 6;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.74rem;
}
#glhf-match-modal .glhf-mx-rv-feed li {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}
#glhf-match-modal .glhf-mx-rv-feed time { color: var(--glhf-text-muted); font-variant-numeric: tabular-nums; }
#glhf-match-modal .glhf-mx-rv-feed b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
#glhf-match-modal .glhf-mx-rv-feed b[data-side="ct"] { color: var(--mx-ct); }
#glhf-match-modal .glhf-mx-rv-feed b[data-side="t"] { color: var(--mx-t); }
#glhf-match-modal .glhf-mx-rv-feed i { font-style: normal; color: var(--glhf-text-muted); white-space: nowrap; }
#glhf-match-modal .glhf-mx-rv-go {
    order: 7;
    flex-basis: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    margin-top: 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(var(--glhf-accent-rgb), 0.5);
    background: rgba(var(--glhf-accent-rgb), 0.12);
    color: var(--glhf-accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.45s var(--mx-ease), color 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-rv-go:hover { background: var(--glhf-accent); color: var(--glhf-accent-fg); }
#glhf-match-modal .glhf-mx-rv-go svg { width: 14px; height: 14px; fill: currentColor; }
/* економіка */
#glhf-match-modal .glhf-mx-rv-eco-body > .glhf-stats-spinner { margin: 1.5rem auto; }
#glhf-match-modal .glhf-mx-eco-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.74rem;
    color: var(--glhf-text-secondary);
}
#glhf-match-modal .glhf-mx-eco-legend span { width: 14px; height: 3px; border-radius: 2px; }
#glhf-match-modal .glhf-mx-eco-legend .is-a { background: var(--glhf-accent); }
#glhf-match-modal .glhf-mx-eco-legend .is-b { background: #ff46c8; }
#glhf-match-modal .glhf-mx-eco-legend em { flex-basis: 100%; font-style: normal; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-eco-plot { position: relative; height: 11rem; padding-left: 0; }
#glhf-match-modal .glhf-mx-eco-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#glhf-match-modal .glhf-mx-eco-chart .is-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
#glhf-match-modal .glhf-mx-eco-chart path { fill: none; stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#glhf-match-modal .glhf-mx-eco-chart path.is-a { stroke: var(--glhf-accent); }
#glhf-match-modal .glhf-mx-eco-chart path.is-b { stroke: #ff46c8; }
#glhf-match-modal .glhf-mx-eco-chart circle.is-a { fill: var(--glhf-accent); }
#glhf-match-modal .glhf-mx-eco-chart circle.is-b { fill: #ff46c8; }
#glhf-match-modal .glhf-mx-eco-y { position: absolute; left: 0; top: 0.2rem; display: flex; flex-direction: column; gap: 3.2rem; font-size: 0.62rem; color: var(--glhf-text-muted); }
#glhf-match-modal .glhf-mx-eco-hits { position: absolute; inset: 0; }
#glhf-match-modal .glhf-mx-eco-hit {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.4rem;
    margin-left: -0.7rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.45s var(--mx-ease);
}
#glhf-match-modal .glhf-mx-eco-hit:hover { background: rgba(255, 255, 255, 0.06); }
#glhf-match-modal .glhf-mx-eco-facts { margin-top: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
@media (max-width: 760px) {
    #glhf-match-modal .glhf-mx-rv-time { grid-template-columns: auto minmax(0, 1fr) auto; }
    #glhf-match-modal .glhf-mx-rv-tlabel { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
}
#glhf-match-modal .glhf-mx-rv-zones.is-pink .glhf-mx-rv-zone b { background: linear-gradient(90deg, rgba(255, 70, 200, 0.5), #ff46c8); }
/* економіка й дуелі - вкладки тієї самої картки: вкладена картка дуелей без власної рамки */
#glhf-match-modal .glhf-mx-rv-map > .glhf-mx-card-body { transition: opacity 0.22s var(--mx-ease), transform 0.4s var(--mx-ease); }
#glhf-match-modal .glhf-mx-rv-map > .glhf-mx-card-body.is-swap { opacity: 0; transform: translateY(4px); }
#glhf-match-modal .glhf-mx-rv-wide[hidden],
#glhf-match-modal .glhf-mx-rv-grid[hidden] { display: none !important; }
#glhf-match-modal .glhf-mx-rv-wide > .glhf-mx-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
#glhf-match-modal .glhf-mx-rv-wide > .glhf-mx-card > .glhf-mx-card-head .glhf-mx-card-title { font-size: 0.68rem; color: var(--glhf-text-muted); }
