/* The strip of a map's events under its live view (live-events.js), for everyone since 14.11. Computers: the
   events and the counts in one row in the middle, sized by the site's scale (1 at --s .85); phones: the events in
   three columns, the counts in a row under them, the site's own px. Every picture a one-colour mask over the current
   colour: grey until the event, then the side's. */
.ev-wrap { --u: calc(var(--s, .85) / .85); margin-top: calc(16px * var(--s, .85)); }
@media (min-width: 1051px) { .ev-wrap { padding-left: calc(80px * var(--s, .85)); } }
.ev-strip {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: calc(18px * var(--u));
    padding: calc(14px * var(--u)) calc(18px * var(--u)) calc(12px * var(--u));
    color: #f8fafc;
}
.ev-strip .radiant { --side: #34d399; --side-rgb: 52, 211, 153; }
.ev-strip .dire { --side: #f87171; --side-rgb: 248, 113, 113; }
.ev-shape {
    display: block;
    flex: none;
    background: currentColor;
    -webkit-mask: var(--shape) center / 100% 100% no-repeat;
    mask: var(--shape) center / 100% 100% no-repeat;
}
/* The events: each as wide as its longest caption needs, 20 px apart. */
.ev-icons { flex: none; display: flex; gap: calc(20px * var(--u)); }
.ev-item { display: flex; flex-direction: column; align-items: center; gap: calc(4px * var(--u)); width: calc(88px * var(--u)); min-width: 0; }
.ev-dot {
    display: grid;
    place-items: center;
    width: calc(40px * var(--u));
    height: calc(40px * var(--u));
    margin-bottom: calc(3px * var(--u));
    border-radius: 50%;
    background: rgba(30, 41, 59, .45);
    box-shadow: inset 0 0 0 1px #334155;
    color: #475569;
}
.ev-item:is(.radiant, .dire) .ev-dot { background: rgba(var(--side-rgb), .14); box-shadow: inset 0 0 0 1.5px rgba(var(--side-rgb), .6); color: var(--side); }
/* Taken, by whom not known (the hub up after it with both sides' already down): as one not yet, dark grey with its
   dash (the user, 14.11: not a light grey of its own). */
.ev-cap { color: #8391a7; font: 700 calc(9.5px * var(--u))/1.15 Inter, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.ev-team { max-width: 100%; overflow: hidden; color: #f1f5f9; font: 700 calc(12px * var(--u))/1.2 Inter, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.ev-item:is(.none, .unknown) .ev-team { color: #475569; }
/* The counts: right of the events past a line, each icon in a box as tall as a circle. */
.ev-counts { flex: none; display: flex; align-self: stretch; align-items: flex-start; gap: calc(16px * var(--u)); padding-left: calc(18px * var(--u)); border-left: 1px solid rgba(51, 65, 85, .45); }
.ev-count { display: flex; flex-direction: column; align-items: center; gap: calc(4px * var(--u)); min-width: calc(64px * var(--u)); }
.ev-count-ico { display: grid; place-items: center; height: calc(40px * var(--u)); margin-bottom: calc(3px * var(--u)); color: #94a3b8; }
.ev-score { display: inline-flex; align-items: baseline; gap: calc(6px * var(--u)); font: 700 calc(15px * var(--u))/1 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.ev-score i { color: #475569; font-style: normal; font-weight: 500; }
.ev-score .radiant { color: #34d399; }
.ev-score .dire { color: #f87171; }
.ev-score .zero { color: #475569; }
/* In the draft (and the break before it; live-map.js .drafting): wider screens the strip's outlines, every event and
   count as before the first one, the dashes and 0 : 0 kept, the captions not (the user, 18.11; an empty panel since
   14.11), their room kept so nothing moves when the game starts; phones none, as their chart and map (the user,
   14.11: only once the map is live). */
.live-view.drafting .ev-strip .ev-cap { visibility: hidden; }

/* Narrower computers (the row wider than the strip): the counts under the events, past a line, each in a line of its
   own (icon, score, word); the events wrap in the narrowest. */
@media (min-width: 640px) and (max-width: 1279px) {
    .ev-strip { flex-direction: column; align-items: center; gap: 0; }
    .ev-icons { flex-wrap: wrap; justify-content: center; row-gap: calc(12px * var(--u)); }
    .ev-counts { align-self: stretch; justify-content: center; flex-wrap: wrap; gap: calc(10px * var(--u)) calc(28px * var(--u)); margin-top: calc(12px * var(--u)); padding: calc(10px * var(--u)) 0 0; border-left: 0; border-top: 1px solid rgba(51, 65, 85, .45); }
    .ev-count { flex-direction: row; gap: calc(8px * var(--u)); min-width: 0; }
    .ev-count-ico { height: auto; margin: 0; }
}

@media (max-width: 639px) {
    /* Under the map as far as the map under the chart (live-map.css: the phone's 12 px between the panels). */
    .ev-wrap { --u: 1; margin-top: 12px; padding-left: 0; }
    .live-view.drafting .ev-wrap { display: none; }
    .ev-strip { display: block; padding: 14px 6px 9px; }
    .ev-icons { flex-wrap: wrap; justify-content: center; gap: 14px 0; }
    .ev-item { width: 33.333%; }
    .ev-dot { --u: .9; width: 36px; height: 36px; margin: 0 0 2px; }
    .ev-cap { font-size: 9px; line-height: 1.2; }
    .ev-team { font-size: 11.5px; }
    .ev-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 12px 6px 0; padding: 9px 0 0; border-left: 0; border-top: 1px solid rgba(51, 65, 85, .45); }
    .ev-count { flex-direction: row; justify-content: center; gap: 7px; min-width: 0; min-height: 22px; }
    .ev-count-ico { --u: .85; height: auto; margin: 0; }
    .ev-count .ev-cap { display: none; }
    .ev-score { gap: 4px; font-size: 13px; }
}
