/* The game library (/games), who's playing on the start page, and the games part of the statistics. */

.games-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px 16px;
}
.games-hint > .icon { font-size: var(--text-xl); color: var(--accent); flex: none; }
.games-hint p { flex: 1; min-width: 220px; margin: 0; }
.games-hint--warning > .icon { color: var(--danger, #e5484d); }

.games-filters, .games-add { margin-bottom: 16px; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.game-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 460 / 215;
    object-fit: cover;
    background: var(--surface-2);
}
.game-card__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.game-card__name { font-size: 0.98rem; line-height: 1.25; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: 4px; color: var(--ink-muted); font-size: 0.82rem; align-items: center; }
.game-card__recent { color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.game-card .chips { margin-top: 2px; }
.game-card .game-status { margin-top: auto; }

.game-image--none {
    display: grid;
    place-items: center;
    color: var(--ink-muted);
    font-size: 1.6rem;
}

.chip--accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); }
.chip .icon { vertical-align: -0.12em; }

.game-status {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: var(--text-sm);
}
.game-status--want { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.game-status--playing { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.game-status--finished { border-color: color-mix(in srgb, #30a46c 60%, var(--line)); }
.game-status--dropped { color: var(--ink-muted); }

.games-more { display: block; margin: 18px auto 0; }

.games-backlog { margin-bottom: 22px; }
.games-backlog .hub-section__title .icon { color: var(--accent); }
.games-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.games-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; }
.games-row__image {
    width: 120px;
    aspect-ratio: 460 / 215;
    flex: none;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-2);
}
.games-row__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.games-row__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.games-row__text small { color: var(--ink-muted); }
.games-row .game-status { width: 180px; flex: none; }

/* A backlog row: the main line, then a suggestion and the opened details under it. */
.games-row { flex-direction: column; align-items: stretch; gap: 8px; }
.games-row__main { display: flex; align-items: center; gap: 12px; }
.games-row__tools { display: flex; gap: 2px; flex: none; }
.games-row__progress { display: block; height: 4px; max-width: 220px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.games-row__progress span { display: block; height: 100%; background: var(--accent); }
.games-stars { color: var(--accent); font-size: 0.8rem; letter-spacing: 1px; }
.games-stars__off { color: var(--line); }

.games-suggestion {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    font-size: var(--text-sm);
}
.games-suggestion > .icon { color: var(--accent); }
.games-suggestion .text-button { margin-left: auto; }

.games-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; align-items: end; padding: 4px 4px 2px; }
.games-details label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--ink-muted); }
.games-details input { max-width: 140px; }
.games-details__note { grid-column: 1 / -1; }
.games-details__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.games-details__rating { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.games-details__rating legend { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 4px; }
.games-star { border: 0; background: none; padding: 0 2px; font-size: var(--text-xl); line-height: 1; color: var(--line); cursor: pointer; }
.games-star.is-on { color: var(--accent); }

@media (max-width: 560px) {
    .games-row__main { flex-wrap: wrap; }
    .games-row__image { width: 92px; }
    .games-row .game-status { width: 100%; max-width: none; }
    .games-details { grid-template-columns: 1fr; }
}

/* Playing together: the numbers and the last sessions. */
.games-together-summary { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 14px 16px; }
.games-together-summary__numbers { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--ink-muted); }
.games-together-summary__numbers span { display: inline-flex; align-items: center; gap: 6px; }
.games-together-summary__numbers .icon { color: var(--accent); }
.games-together-summary__numbers strong { color: var(--ink); font-size: 1.2rem; }
.games-together-sessions { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.games-together-sessions li { display: flex; align-items: center; gap: 10px; }
.games-together-sessions img { height: 32px; aspect-ratio: 460 / 215; border-radius: 6px; object-fit: cover; flex: none; }
.games-together-sessions__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.games-together-sessions__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.games-together-sessions__text small { color: var(--ink-muted); }
.games-together-sessions__who { display: flex; gap: 2px; flex: none; }

/* Wish list: prices and who wishes for it. */
.game-card__link { display: block; }
.game-card--sale { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.games-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.games-price strong { font-size: 1.05rem; }
.games-price__discount { padding: 1px 7px; border-radius: 6px; background: #4c6b22; color: #beee11; font-weight: 700; font-size: var(--text-sm); }
.games-price__before { color: var(--ink-muted); font-size: var(--text-sm); }
.games-wishers { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.games-wishers small { color: var(--ink-muted); }

/* News of the games being played. */
.games-news { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.games-news__item { display: flex; gap: 14px; padding: 12px; }
.games-news__image { width: 160px; aspect-ratio: 460 / 215; border-radius: var(--radius-sm); object-fit: cover; flex: none; align-self: flex-start; }
.games-news__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.games-news__text small { color: var(--ink-muted); }
.games-news__text a { color: var(--ink); text-decoration: none; }
.games-news__text a:hover { color: var(--accent); }
.games-news__text p { margin: 0; color: var(--ink-muted); font-size: 0.88rem; line-height: 1.45; }

@media (max-width: 560px) {
    .games-news__item { flex-direction: column; }
    .games-news__image { width: 100%; }
}

.games-owners { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.games-owners li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.games-owners small { color: var(--ink-muted); }

/* Start page: who's playing right now. */
.now-gaming { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.now-gaming__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.88rem;
    text-decoration: none;
}
.now-gaming__item:hover { border-color: var(--accent); }
.now-gaming__item--together { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.now-gaming__item .avatar + .avatar { margin-left: -8px; }
.now-gaming__item small { color: var(--ink-muted); }
.now-gaming__image { height: 26px; aspect-ratio: 460 / 215; border-radius: var(--radius-pill) 6px 6px 99px; object-fit: cover; }

/* Statistics: the games tab. */
.game-stats__cover {
    flex: none;
    width: 64px;
    aspect-ratio: 460 / 215;
    border-radius: 6px;
    object-fit: cover;
    background: var(--surface-2);
}
.game-stats__cover.game-image--none { font-size: 1rem; }
.game-stats__split { margin-top: 16px; }
.game-stats__facts { margin-top: 14px; }
.game-stats__numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.game-stats__numbers li { display: flex; flex-direction: column; min-width: 7rem; }
.game-stats__numbers strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; }
.game-stats__numbers span { color: var(--ink-muted); font-size: 0.8rem; }
.game-lifetime__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; }
.game-lifetime__total strong { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.1; }
.game-lifetime__total span { color: var(--accent); font-size: 1.05rem; font-weight: 600; }
.game-lifetime__facts { margin-bottom: 0; }
.game-stats__rarity { flex: none; margin-left: auto; color: var(--accent); font-weight: 700; font-size: 0.84rem; }

/* The list from "want" to finished: one bar per status, as wide as its share. */
.game-funnel { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.game-funnel__step {
    --tone: var(--accent);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    font-size: 0.88rem;
    overflow: hidden;
    isolation: isolate;
}
.game-funnel__step::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--share);
    background: color-mix(in srgb, var(--tone) 30%, transparent);
    z-index: -1;
}
.game-funnel__step strong { font-family: var(--font-display); font-size: 1.05rem; }
.game-funnel__step--want { --tone: color-mix(in srgb, var(--accent) 55%, var(--ink-muted)); }
.game-funnel__step--finished { --tone: #30a46c; }
.game-funnel__step--dropped { --tone: var(--ink-muted); }

/* The shelf of shame: never-played games as small pictures. */
.game-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.game-shelf li { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 0.78rem; }
.game-shelf li > span:not(.game-shelf__wanted) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); }
.game-shelf__image {
    width: 100%;
    aspect-ratio: 460 / 215;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-2);
    filter: grayscale(0.6);
}
.game-shelf li:hover .game-shelf__image { filter: none; }
.game-shelf__wanted {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
}
.steam-achievements { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steam-achievements li { display: flex; align-items: center; gap: 10px; }
.steam-achievements img { width: 32px; height: 32px; border-radius: 6px; flex: none; }
.steam-achievements li > .icon { font-size: var(--text-xl); color: var(--accent); flex: none; }
.steam-achievements span { display: flex; flex-direction: column; min-width: 0; }
.steam-achievements small { color: var(--ink-muted); }

/* Wrapped: the games card. */
.wrapped__card--games { --w1: #101a3a; --w2: #4f5bd5; --w3: #b9c2ff; }

/* ---------- Wuthering Waves: players, news, builds, the build editor ---------- */

.wuwa-players { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 16px; margin-bottom: 16px; }
.wuwa-players__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wuwa-players__avatars { display: inline-flex; gap: 4px; }
.wuwa-players__me { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.wuwa-players .toggle { gap: 12px; }
.wuwa-page .chips { margin-bottom: 14px; }
.wuwa-news__tag { display: inline-block; margin-right: 4px; padding: 0 7px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--ink); font-size: 0.72rem; font-weight: 600; }
.wuwa-news__image { aspect-ratio: 16 / 9; }
.wuwa-more { margin: 14px auto 0; display: flex; }

.wuwa-filters { margin-bottom: 16px; justify-content: flex-end; }
.wuwa-filters .primary-button svg { width: 16px; height: 16px; }
.wuwa-builds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.wuwa-build { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.wuwa-build__head { display: flex; align-items: center; gap: 12px; }
.wuwa-build__portrait { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface); border: 2px solid var(--line); }
.wuwa-build__portrait--empty { display: grid; place-items: center; color: var(--ink-muted); }
.wuwa-build__portrait--empty svg { width: 24px; height: 24px; }
.wuwa-rarity-5 { border-color: #d9a443; }
.wuwa-rarity-4 { border-color: #9a6fd8; }
.wuwa-build__title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wuwa-build__title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wuwa-build__title small { color: var(--ink-muted); }
.wuwa-build__sequence { margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--surface); color: var(--ink); font-weight: 600; }
.wuwa-build__player { display: inline-flex; }
.wuwa-build__parts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 0.9rem; }
.wuwa-build__parts dt { color: var(--ink-muted); font-size: 0.8rem; align-self: center; }
.wuwa-build__parts dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.wuwa-build__parts dd img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: var(--surface); flex: none; }
.wuwa-build__stats { flex-wrap: wrap; }
.wuwa-build__stats span { padding: 1px 8px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 0.8rem; white-space: nowrap; }
.wuwa-build__stats b { color: var(--ink-muted); font-weight: 600; margin-right: 2px; }
.wuwa-build__note { margin: 0; color: var(--ink-muted); font-size: 0.88rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.wuwa-build__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; font-size: 0.82rem; color: var(--ink-muted); }
.wuwa-build__foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.wuwa-build__foot a svg { width: 14px; height: 14px; flex: none; }
.wuwa-build__others { display: inline-flex; align-items: center; gap: 4px; }

.wuwa-editor__form { display: flex; flex-direction: column; gap: 12px; }
.wuwa-editor__row { display: flex; flex-wrap: wrap; gap: 10px; }
.wuwa-editor select { width: 100%; min-width: 0; }
.wuwa-editor select:focus { outline: none; border-color: var(--accent); }
.wuwa-editor__bonuses { margin: -4px 0 0; padding: 8px 10px; list-style: none; border-radius: var(--radius-md); background: var(--surface); font-size: 0.82rem; color: var(--ink-muted); display: flex; flex-direction: column; gap: 4px; }
.wuwa-editor__bonuses strong { color: var(--ink); margin-right: 4px; }
.wuwa-editor__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.wuwa-editor__stats legend { padding: 0 6px; color: var(--ink-muted); font-size: 0.8rem; font-weight: 600; }
.wuwa-editor__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wuwa-editor__actions .primary-button { margin-left: auto; }
@media (min-width: 721px) {
    .sheet.wuwa-editor { top: 50%; bottom: auto; transform: translate(-50%, -50%); border-bottom: 1px solid var(--line); border-radius: var(--radius-xl); animation: shani-fade 0.2s ease; }
}

/* ---------- Esports: the schedule, match rows, tables and brackets, the start page section ---------- */

.esports-tabs { overflow-x: auto; scrollbar-width: none; }
.esports-tabs__live { background: var(--danger); color: #fff; }
.esports-filters { margin-bottom: var(--space-4); }
.esports-settings { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); margin-bottom: var(--space-4); }
.esports-settings h2 { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--text-lg); }
.esports-settings__teams { display: flex; flex-direction: column; gap: var(--space-2); }
.esports-settings__teams .chip .esports-logo { width: 18px; height: 18px; }
.esports-settings__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3) var(--space-6); }
.esports-settings__notify { min-width: 220px; }
.esports-settings .toggle { gap: var(--space-3); }
.esports-settings .toggle input { flex: none; }

.esports-live { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--danger); color: #fff; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.esports-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: esports-pulse 1.6s ease-in-out infinite; }
@keyframes esports-pulse { 50% { opacity: 0.3; } }

.esports-schedule { display: grid; gap: var(--space-6); }
.esports-block__title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.esports-day { margin: var(--space-4) 0 var(--space-2); color: var(--ink-muted); font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.esports-block__title + .esports-day { margin-top: var(--space-2); }

.esports-list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }

/* A match: when | teams and score | league, round, best of; the watch buttons under it while live. */
.esports-match {
    display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; grid-template-areas: "when teams meta" "when watch watch";
    align-items: center; column-gap: var(--space-3); row-gap: var(--space-1);
    padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
}
.esports-match.is-live { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }
.esports-match.is-favourite { box-shadow: inset 3px 0 0 var(--accent); }
.esports-match__when { grid-area: when; display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; font-weight: 600; }
.esports-match__when small { color: var(--ink-muted); font-size: var(--text-xs); font-weight: 400; }
.esports-match__teams { grid-area: teams; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.esports-match__score { display: inline-flex; justify-content: center; gap: 4px; min-width: 3.2rem; font-size: var(--text-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.esports-match__score .muted { font-size: var(--text-sm); font-weight: 400; }
.esports-match__dash { color: var(--ink-muted); }
.esports-match__reveal { padding: 0 var(--space-2); }
.esports-match__meta { grid-area: meta; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 8px; color: var(--ink-muted); font-size: var(--text-xs); text-align: right; }
.esports-match__league { color: var(--ink); font-weight: 600; }
.esports-match__watch { grid-area: watch; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: var(--space-1); }
.esports-match__watch .chip { text-decoration: none; }

.esports-team { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.esports-team--home { flex-direction: row-reverse; justify-self: end; text-align: right; }
.esports-team--away { justify-self: start; }
.esports-team__code { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esports-team__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esports-team__name + .esports-team__code { color: var(--ink-muted); font-size: var(--text-xs); font-weight: 600; }
.esports-team__star { flex: none; color: var(--accent); font-size: 0.8em; }
.esports-team.is-loser { opacity: 0.55; }
.esports-team.is-winner .esports-team__code { color: var(--accent); }

.esports-logo { flex: none; width: 28px; height: 28px; object-fit: contain; }
.esports-logo--blank { display: inline-grid; place-items: center; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink-muted); font-size: 0.6rem; font-weight: 700; }

/* Leagues: tournament picker, stages with a table beside their matches, brackets with rounds side by side. */
.esports-tournament-bar { margin-bottom: var(--space-4); }
.esports-tournament-bar select { width: auto; min-width: 220px; }
.esports-stages { display: grid; gap: var(--space-4); }
.esports-stage { padding: var(--space-4); min-width: 0; }
.esports-stage__title { margin: 0 0 var(--space-3); font-size: var(--text-lg); }
.esports-stage__body { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.esports-stage__body > :only-child { grid-column: 1 / -1; }

.esports-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.esports-table th { padding: var(--space-1) var(--space-2); color: var(--ink-muted); font-size: var(--text-xs); font-weight: 600; text-align: left; }
.esports-table td { padding: var(--space-1) var(--space-2); border-top: 1px solid var(--line); }
.esports-table .esports-team { max-width: 100%; }
.esports-table .esports-logo { width: 24px; height: 24px; }
.esports-table__rank { width: 2rem; color: var(--ink-muted); }
.esports-table th.esports-table__num, .esports-table td.esports-table__num { width: 2.5rem; text-align: right; }
.esports-table tr.is-favourite td { background: color-mix(in srgb, var(--accent) 10%, transparent); }

.esports-rounds { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.esports-round summary { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) 0; cursor: pointer; font-weight: 600; }
.esports-round summary small { margin-left: auto; font-weight: 400; }
.esports-round .esports-list { padding: var(--space-1) 0 var(--space-2); }

.esports-bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-2); }
.esports-bracket__round { display: flex; flex-direction: column; gap: var(--space-2); }
.esports-bracket__round h3 { margin: 0; color: var(--ink-muted); font-size: var(--text-sm); font-weight: 600; }
.esports-bracket__round .esports-list { flex: 1; justify-content: space-around; }
.esports-bracket .esports-match,
.esports-list--compact .esports-match { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when meta" "teams teams" "watch watch"; }
.esports-bracket .esports-match__when,
.esports-list--compact .esports-match__when { flex-direction: row; align-items: baseline; gap: var(--space-2); }
.esports-bracket .esports-match__when small,
.esports-list--compact .esports-match__when small { order: -1; }

/* Start page: the compact rows. */
.esports-list--compact .esports-match { padding: var(--space-2); }
.esports-list--compact .esports-logo { width: 24px; height: 24px; }
.esports-list--compact .esports-match__score { font-size: var(--text-md); }

@media (max-width: 900px) {
    .esports-stage__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .esports-match { grid-template-columns: 3.6rem minmax(0, 1fr); grid-template-areas: "when teams" "when meta" "watch watch"; }
    .esports-match__meta { justify-content: center; text-align: center; }
    .esports-logo { width: 24px; height: 24px; }
    .esports-table .esports-team__name { display: none; }
    .esports-table .esports-team__name + .esports-team__code { color: var(--ink); font-size: inherit; }
}
@media (min-width: 1700px) {
    .esports-schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .esports-block--live { grid-column: 1 / -1; }
}
