.match-page {
    --game-header-h: 78px;
    --home-color: var(--at-team-home-fallback);
    --away-color: var(--at-team-away-fallback);
    --fx-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6.2c0 5 3.4 9.3 8 10.8 4.6-1.5 8-5.8 8-10.8V5Z'/%3E%3C/svg%3E");
}

:root body.match-page:not(.home-page):not(.admin-dashboard-page) {
    background: var(--at-bg-wash) no-repeat !important;
    background-color: var(--at-bg) !important;
}

body.match-page::before {
    display: none !important;
}

.match-page .ico {
    width: 18px;
    height: 18px;
    flex: none;
}

.ico-substitution .ico-in,
.ico-subIn {
    color: var(--fx-win);
}

.ico-substitution .ico-out,
.ico-subOut,
.ico-ownGoal,
.ico-penaltyMissed .ico-miss {
    color: var(--fx-loss);
}

.game-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.game-root {
    width: min(1180px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    padding: 24px 0 48px;
    color: var(--fx-text);
    font-size: 14px;
}

.game-root :is(button, a, [tabindex]):focus-visible {
    outline: 2px solid var(--fx-focus);
    outline-offset: 2px;
}

.game-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--fx-text-2);
    font: 700 12px/1.4 Cairo, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.game-link:hover {
    color: var(--fx-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.game-crest,
.game-mini-crest,
.game-flow-crest {
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
}

.game-crest img,
.game-mini-crest img,
.game-flow-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-mini-crest,
.game-flow-crest {
    --crest-size: 20px;
    width: 20px;
    height: 20px;
}

html:not([data-theme="light"]) .match-page :is(.game-crest, .game-mini-crest, .game-flow-crest) img {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .22));
}

:is(.game-crest, .game-mini-crest, .game-flow-crest):is(.is-empty, .is-broken)::before {
    content: "";
    position: absolute;
    inset: 0 6%;
    background: hsl(var(--crest-h, 210) 45% 35%);
    -webkit-mask: var(--fx-shield) center / contain no-repeat;
    mask: var(--fx-shield) center / contain no-repeat;
}

:is(.game-crest, .game-mini-crest, .game-flow-crest):is(.is-empty, .is-broken)::after {
    content: attr(data-initial);
    position: relative;
    color: #ffffff;
    font-size: calc(var(--crest-size, 20px) * .42);
    font-weight: 800;
    line-height: 1;
    transform: translateY(-6%);
}

html[data-theme="light"] .match-page :is(.game-crest, .game-mini-crest, .game-flow-crest):is(.is-empty, .is-broken)::before,
html[data-visual-theme="light"] .match-page :is(.game-crest, .game-mini-crest, .game-flow-crest):is(.is-empty, .is-broken)::before {
    background: hsl(var(--crest-h, 210) 40% 70%);
}

html[data-theme="light"] .match-page :is(.game-crest, .game-mini-crest, .game-flow-crest):is(.is-empty, .is-broken)::after,
html[data-visual-theme="light"] .match-page :is(.game-crest, .game-mini-crest, .game-flow-crest):is(.is-empty, .is-broken)::after {
    color: var(--at-text-1);
}

:is(.game-crest, .game-mini-crest, .game-flow-crest).is-broken img {
    display: none;
}

.game-avatar {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--fx-score-bg);
    box-shadow: inset 0 0 0 1px var(--fx-line);
}

.game-avatar.is-small {
    width: 28px;
    height: 28px;
}

.game-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.game-avatar:is(.is-empty, .is-broken)::before {
    content: attr(data-fallback);
    color: var(--fx-text-2);
    font-size: 12px;
    font-weight: 800;
}

.game-avatar.is-broken img {
    display: none;
}

.game-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--fx-line);
    border-radius: 16px;
    background: var(--fx-surface);
}

.game-hero:not(.is-loading)::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 3px;
    background: linear-gradient(to left, var(--home-color) 50%, var(--away-color) 50%);
}

.game-hero-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fx-line);
}

.game-comp {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--fx-text);
    text-decoration: none;
}

a.game-comp:hover .game-comp-name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.game-comp-logo {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 5px;
    overflow: hidden;
    border-radius: 9px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(16, 34, 57, .08);
}

.game-comp-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.game-comp-logo.is-zoom img {
    transform: scale(1.7);
}

.game-comp-logo:is(.is-empty, .is-broken) {
    background: var(--fx-score-bg);
    color: var(--fx-muted);
}

.game-comp-logo.is-broken img {
    display: none;
}

.game-comp-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.game-comp-name {
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-comp-sub {
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
}

.game-share {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--fx-text);
    font: 600 13px/1 Cairo, sans-serif;
    cursor: pointer;
}

.game-share::after,
.game-follow::after {
    content: "";
    position: absolute;
    inset: -4px;
}

.game-share .ico {
    width: 16px;
    height: 16px;
}

.game-share:hover {
    background: var(--fx-surface-2);
}

.game-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 40px 32px 32px;
}

.game-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-align: center;
}

.game-side.is-home {
    --side-color: var(--home-color);
}

.game-side.is-away {
    --side-color: var(--away-color);
}

.game-side::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 50%;
    width: 240px;
    height: 220px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--side-color) 14%, transparent), transparent);
    transform: translateX(-50%);
    pointer-events: none;
}

.game-side > * {
    position: relative;
}

.game-crest {
    --crest-size: 96px;
    width: 96px;
    height: 96px;
}

.game-team-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
}

.game-team-name {
    display: -webkit-box;
    max-inline-size: 14ch;
    overflow: hidden;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    text-wrap: balance;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.game-red {
    display: inline-flex;
    flex: none;
    align-items: center;
    color: var(--fx-text-2);
    font-size: 13px;
    font-weight: 800;
}

.game-red .ico {
    width: 22px;
    height: 22px;
    margin-inline: -5px -4px;
}

.game-follow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 18px;
    background: transparent;
    color: var(--fx-text-2);
    font: 600 13px/1 Cairo, sans-serif;
    cursor: pointer;
}

.game-follow .ico {
    width: 16px;
    height: 16px;
}

.game-follow:hover {
    color: var(--fx-text);
    border-color: var(--fx-text-2);
}

.game-follow[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--fx-star) 55%, transparent);
    color: var(--fx-text);
}

.game-follow[aria-pressed="true"] .ico {
    color: var(--fx-star);
    fill: currentColor;
}

.game-scorers {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    color: var(--fx-text-2);
    font-size: 13px;
    font-weight: 600;
}

.game-scorers li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.game-scorers .ico {
    width: 14px;
    height: 14px;
    color: var(--fx-muted);
}

.game-scorers li:is(.is-red, .is-secondYellow) .ico {
    width: 16px;
    height: 16px;
}

.game-scorer-minutes {
    color: var(--fx-muted);
    font-variant-numeric: tabular-nums;
}

.game-scorer-note {
    font-size: 12px;
}

.game-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding-top: 4px;
}

.game-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 15px;
    background: var(--fx-score-bg);
    color: var(--fx-text-2);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.game-status.is-live {
    background: var(--fx-live-soft);
    color: var(--fx-live);
}

.game-status-label {
    font-weight: 700;
}

.game-status-minute {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.game-status.is-break {
    background: var(--at-warning-soft);
    color: var(--fx-warning);
}

.game-status.is-warning {
    color: var(--fx-warning);
}

.game-live-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.game-live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: game-pulse 1.6s var(--at-ease-out) infinite;
}

.game-score {
    display: flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.game-score-digits {
    display: flex;
    align-items: center;
    gap: 24px;
}

.game-goal {
    display: inline-block;
    min-width: .6em;
    overflow: hidden;
    text-align: center;
}

.game-goal > span {
    display: inline-block;
}

.game-goal.is-rolling > span {
    animation: game-roll var(--at-dur-3) var(--at-ease-out);
}

.game-score-sep {
    width: 8px;
    height: 3px;
    border-radius: 2px;
    background: var(--at-text-4);
}

.game-score.is-goal {
    animation: game-goal-flash var(--at-dur-4) var(--at-ease-out) both;
}

.game-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-top: 10px;
}

.game-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.game-ring circle {
    fill: none;
    stroke-width: 4;
}

.game-ring-track {
    stroke: var(--fx-line-strong);
}

.game-ring-fill {
    stroke: var(--fx-live);
    stroke-linecap: round;
    stroke-dasharray: 100;
    transition: stroke-dashoffset .6s var(--at-ease-out);
}

.game-ring-label {
    position: relative;
    color: var(--fx-live);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.game-ring.is-break .game-ring-fill {
    stroke: var(--at-warning);
}

.game-ring.is-break .game-ring-label {
    color: var(--at-warning);
    font-size: 11px;
}

.game-ring.is-extra .game-ring-fill {
    stroke: var(--at-info);
}

.game-ring.is-extra .game-ring-label {
    color: var(--at-info);
}

.game-live-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fx-live);
    font-size: 12px;
    font-weight: 700;
}

.game-live-label.is-break {
    color: var(--at-warning);
}

.game:not(.has-drawn) .game-ring-fill {
    animation: game-ring-draw 1100ms var(--at-ease-out) 150ms both;
}

.game-side {
    position: relative;
}

.game-side.is-celebrating .game-crest {
    animation: game-crest-pop 900ms var(--at-ease-out) both;
}

.game-burst {
    position: absolute;
    top: -8px;
    inset-inline: 0;
    width: 104px;
    height: 104px;
    margin-inline: auto;
    border: 3px solid var(--burst, var(--fx-live));
    border-radius: 50%;
    pointer-events: none;
    animation: game-burst 900ms ease-out both;
}

@keyframes game-ring-draw {
    from { stroke-dashoffset: 100; }
}

@keyframes game-crest-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.2) rotate(-4deg); }
    60% { transform: scale(.96); }
    100% { transform: scale(1); }
}

@keyframes game-burst {
    from { opacity: .9; transform: scale(.6); }
    to { opacity: 0; transform: scale(2.2); }
}

.game-kickoff {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.game-kickoff-time {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.game-kickoff-period {
    margin-inline-start: 6px;
    color: var(--fx-text-2);
    font-size: .55em;
    font-weight: 600;
}

.game-countdown {
    color: var(--fx-text-2);
    font-size: 14px;
    font-weight: 600;
}

.game-phases {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.game-phases span,
.game-phase-link,
.game-pair,
.game-event-score,
.game-period-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.game-phases .game-phase-total {
    color: var(--fx-text);
    font-weight: 800;
}

.game-phase-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--fx-line-strong);
    text-underline-offset: 3px;
}

.game-phase-link:hover {
    color: var(--fx-text);
}

.game-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--fx-line);
    list-style: none;
    color: var(--fx-text-2);
    font-size: 13px;
    font-weight: 400;
}

.game-facts li {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.game-fact-icon .ico {
    width: 14px;
    height: 14px;
    color: var(--fx-muted);
}

.game-fact-strong {
    color: var(--fx-text);
    font-weight: 600;
}

.game-fact-muted {
    color: var(--fx-muted);
}

.game-mini {
    position: fixed;
    inset-inline: 0;
    top: var(--game-header-h, 0px);
    z-index: 9000;
    height: 52px;
    border-bottom: 1px solid var(--fx-line);
    background: var(--at-surface-1);
    box-shadow: var(--at-shadow-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform var(--at-dur-2) var(--at-ease-out), opacity var(--at-dur-2) var(--at-ease-out), visibility 0s linear var(--at-dur-2);
}

.game.has-mini .game-mini {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.game-mini-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
}

.game-mini-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
}

.game-mini-team.is-home {
    justify-content: flex-end;
}

.game-mini-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-mini-score {
    display: flex;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.game-mini-score.is-time {
    font-size: 15px;
}

.game-mini-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 13px;
    background: var(--fx-score-bg);
    color: var(--fx-text-2);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.game-mini-status.is-live {
    background: var(--fx-live-soft);
    color: var(--fx-live);
}

.game-flow {
    container: game-flow / inline-size;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px 8px;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    background: var(--fx-surface);
}

.game-flow[hidden] {
    display: none;
}

.game-flow-teams,
.game-flow-track {
    display: grid;
    grid-template-rows: 36px 48px 36px 18px;
}

.game-flow-teams {
    align-items: center;
}

.game-flow:has(.game-flow-track:not(.has-momentum)) :is(.game-flow-teams, .game-flow-track) {
    grid-template-rows: 36px 16px 36px 18px;
}

.game-flow-teams > :last-child {
    grid-row: 3;
}

.game-flow-track {
    position: relative;
    min-width: 0;
    margin-inline-end: 12px;
}

.game-flow-lane,
.game-flow-axis,
.game-flow-ticks {
    position: relative;
}

.game-momentum {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.game-momentum .is-home {
    fill: color-mix(in srgb, var(--home-color) 35%, transparent);
}

.game-momentum .is-away {
    fill: color-mix(in srgb, var(--away-color) 35%, transparent);
}

.game-flow-line {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 2px;
    border-radius: 1px;
    background: var(--fx-line-strong);
    transform: translateY(-50%);
}

.game-flow-progress {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: var(--progress);
    height: 100%;
    border-radius: 1px;
    background: var(--fx-text-2);
}

.game-flow-half {
    position: absolute;
    inset-inline-start: var(--at);
    top: 50%;
    width: 2px;
    height: 10px;
    background: var(--fx-surface);
    transform: translate(50%, -50%);
}

.game-flow-tick {
    position: absolute;
    inset-inline-start: var(--at);
    top: 2px;
    color: var(--fx-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    transform: translateX(50%);
    font-variant-numeric: tabular-nums;
}

.game-flow-tick:first-child {
    transform: none;
}

.game-flow-tick:last-child {
    transform: translateX(100%);
}

.game-flow-mark {
    position: absolute;
    inset-inline-start: var(--at);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--fx-line-strong);
    border-radius: 50%;
    background: var(--fx-surface-2);
    color: var(--fx-text);
    transform: translateX(50%);
    cursor: pointer;
}

.game-flow-lane.is-home .game-flow-mark {
    bottom: calc(4px + var(--level, 0) * 11px);
}

.game-flow-lane.is-away .game-flow-mark {
    top: calc(4px + var(--level, 0) * 11px);
}

.game-flow-mark .ico {
    width: 14px;
    height: 14px;
}

.game-flow-mark:is(.is-goal, .is-penaltyGoal) {
    border-color: transparent;
    background: var(--fx-text);
    color: var(--fx-surface);
}

.game-flow-mark:is(.is-sub, .is-yellow) {
    width: 18px;
    height: 18px;
    background: var(--fx-surface);
}

.game-flow-mark:is(.is-sub, .is-yellow) .ico {
    width: 12px;
    height: 12px;
}

.game-flow-mark:hover,
.game-flow-mark:focus-visible {
    z-index: 3;
}

.game-flow-tip {
    position: absolute;
    bottom: calc(100% + 6px);
    inset-inline-start: 50%;
    z-index: 4;
    display: none;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--fx-text);
    color: var(--fx-surface);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transform: translateX(50%);
    pointer-events: none;
}

.game-flow-lane.is-away .game-flow-tip {
    top: calc(100% + 6px);
    bottom: auto;
}

.game-flow-mark:hover .game-flow-tip,
.game-flow-mark:focus-visible .game-flow-tip {
    display: block;
}

@container game-flow (max-width: 560px) {
    .game-flow-lane.is-home .game-flow-mark {
        bottom: calc(4px + var(--level-narrow, 0) * 11px);
    }

    .game-flow-lane.is-away .game-flow-mark {
        top: calc(4px + var(--level-narrow, 0) * 11px);
    }
}

@keyframes game-roll {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes game-goal-flash {
    0% { background: var(--at-accent-fill); color: #ffffff; }
    100% { background: var(--fx-live-soft); color: var(--fx-live); }
}

.game-tabs-bar {
    position: sticky;
    top: var(--game-header-h);
    z-index: 20;
    margin: 16px 0;
    border-bottom: 1px solid var(--fx-line);
    background: var(--at-bg);
    transition: top var(--at-dur-2) var(--at-ease-out);
}

.game.has-mini .game-tabs-bar {
    top: calc(var(--game-header-h) + 52px);
}

.game-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.game-tabs::-webkit-scrollbar {
    display: none;
}

.game-tab {
    position: relative;
    flex: none;
    height: 48px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--fx-text-2);
    font: 600 15px/1 Cairo, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.game-tab:hover {
    color: var(--fx-text);
}

.game-tab[aria-selected="true"] {
    color: var(--fx-text);
    font-weight: 800;
}

.game-tabs {
    position: relative;
}

.game-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--fx-accent);
    transform-origin: 0 0;
    opacity: 0;
    pointer-events: none;
}

.game-tabs.has-indicator .game-tab-indicator {
    opacity: 1;
}

.game-tab-indicator.is-ready {
    transition: transform 320ms var(--at-ease-out);
}

.game-tabs.has-indicator .game-tab[aria-selected="true"]::after {
    display: none;
}

.game:not(.has-drawn) .game-momentum {
    animation: game-momentum-draw 1200ms var(--at-ease-out) 200ms both;
}

@keyframes game-momentum-draw {
    from { clip-path: inset(0 0 0 100%); }
    to { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
    .game-tab-indicator.is-ready {
        transition: none;
    }

    .game:not(.has-drawn) .game-momentum {
        animation: none;
    }
}

.game-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--fx-accent);
}

.game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--fx-text);
    font: 600 14px/1 Cairo, sans-serif;
    cursor: pointer;
}

.game-button:hover {
    background: var(--fx-surface-2);
}

.game-button.is-small {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.game-error-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.game-card.is-quiet {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 16px;
}

.game-card.is-quiet .ico {
    width: 18px;
    height: 18px;
    color: var(--fx-muted);
}

.game-quiet-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    min-width: 0;
    color: var(--fx-muted);
    font-size: 13px;
}

.match-page .game-quiet-text strong {
    color: var(--fx-text);
    font-size: 14px;
    font-weight: 800;
}

.game-root .game-tab:focus-visible {
    outline-offset: -4px;
}

.game-panel[hidden] {
    display: none;
}

.game-root .game-panel:focus-visible {
    outline: none;
}

.game-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    background: var(--fx-surface);
}

.game-card + .game-card,
.game-empty + .game-card {
    margin-top: 12px;
}

.game-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.match-page .game-card-head h2,
.match-page .game-stat-group h2,
.match-page .game-news-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
}

.match-page .game-card-note {
    margin: 0;
    color: var(--fx-muted);
    font-size: 13px;
    line-height: 1.7;
}

.game-empty,
.game-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 40px 24px;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    background: var(--fx-surface);
    text-align: center;
}

.game-empty .ico,
.game-error .ico {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
    color: var(--fx-muted);
}

.game-empty-title {
    color: var(--fx-text);
    font-size: 15px;
    font-weight: 800;
}

.game-empty-text {
    max-width: 420px;
    color: var(--fx-muted);
    font-size: 13px;
    line-height: 1.7;
}

.game-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.game-column > .game-card + .game-card {
    margin-top: 12px;
}

.game-minute {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: var(--fx-surface-2);
    box-shadow: inset 0 0 0 1px var(--fx-line-strong);
    color: var(--fx-text);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.game-minute .ico {
    width: 14px;
    height: 14px;
}

.game-event-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fx-score-bg);
    color: var(--fx-text-2);
}

.game-event-icon .ico {
    width: 16px;
    height: 16px;
}

.is-goal > .game-event-icon,
.is-goal .game-event-icon,
.is-penaltyGoal .game-event-icon {
    background: var(--fx-text);
    color: var(--fx-surface);
}

.game-event-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.game-event-main {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--fx-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-event-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-sub-in,
.game-sub-out {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.game-sub-in .ico,
.game-sub-out .ico {
    width: 14px;
    height: 14px;
}

.game-event-score {
    flex: none;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--fx-text);
    color: var(--fx-surface);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.game-event-crest {
    display: none;
}

.game-moments {
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-moment {
    display: grid;
    grid-template-columns: 48px 28px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--fx-line);
}

.game-moment:first-child {
    border-top: 0;
    padding-top: 0;
}

.game-moment .game-event-score:empty {
    display: none;
}

.game-events-card {
    padding-top: 12px;
}

.game-events-card,
.game-stats {
    max-width: 880px;
    margin-inline: auto;
}

.game-events-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fx-line);
    font-size: 13px;
    font-weight: 800;
}

.game-events-vs {
    flex: 1;
}

.game-timeline {
    position: relative;
    margin: 0;
    padding: 4px 0 0;
    list-style: none;
}

.game-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--fx-line-strong);
}

.game-events-card {
    container: game-events / inline-size;
}

.game-event {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: center;
    min-height: 44px;
    padding: 2px 0;
}

.game-event:is(.is-goal, .is-penaltyGoal, .is-ownGoal, .is-red, .is-secondYellow) {
    min-height: 56px;
}

.game-event:not(:is(.is-goal, .is-penaltyGoal, .is-ownGoal, .is-red, .is-secondYellow)) .game-event-icon {
    background: transparent;
}

.game-event:is(.is-red, .is-secondYellow) .game-event-icon {
    background: color-mix(in srgb, var(--at-card-red) 16%, transparent);
}

.game-event.is-var .game-event-body {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    background: color-mix(in srgb, var(--fx-warning) 8%, transparent);
    box-shadow: inset -3px 0 0 var(--fx-warning);
}

.game-event.is-var .game-event-main {
    font-size: 14px;
}

.game-event .game-minute {
    position: relative;
    z-index: 1;
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
}

.game-event-body {
    display: flex;
    grid-row: 1;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background-color .3s ease;
}

.game-event.is-home .game-event-body {
    grid-column: 1;
    flex-direction: row-reverse;
    justify-self: end;
    text-align: end;
}

.game-event.is-home .game-event-main,
.game-event.is-home .game-event-sub {
    justify-content: flex-end;
}

.game-event.is-away .game-event-body {
    grid-column: 3;
    justify-self: start;
}

.game-event.is-highlight .game-event-body {
    background: var(--fx-live-soft);
}

.game-period {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.game-period > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border: 1px solid var(--fx-line-strong);
    border-radius: 14px;
    background: var(--fx-surface-2);
    color: var(--fx-text-2);
    font-size: 12px;
    font-weight: 800;
}

.game-period-score {
    color: var(--fx-muted);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.game-period-score::before {
    content: "·";
    margin-inline-end: 4px;
}

.game-period.is-label > span {
    padding: 0 10px;
    border: 0;
    background: var(--fx-surface);
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
}

@container game-events (max-width: 480px) {
    .game-timeline::before,
    .game-events-head {
        display: none;
    }

    .game-event {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 8px;
        padding: 4px 0;
        border-top: 1px solid var(--fx-line);
    }

    .game-event .game-minute {
        grid-column: 1;
        justify-self: start;
        min-width: 44px;
    }

    .game-event.is-home .game-event-body,
    .game-event.is-away .game-event-body {
        grid-column: 2;
        flex-direction: row;
        justify-self: stretch;
        padding: 6px 10px;
        text-align: start;
        border-radius: 0;
    }

    .game-event.is-home .game-event-body {
        box-shadow: inset -3px 0 0 var(--home-color);
    }

    .game-event.is-away .game-event-body {
        box-shadow: inset -3px 0 0 var(--away-color);
    }

    .game-event.is-var .game-event-body {
        box-shadow: inset -3px 0 0 var(--fx-warning);
    }

    .game-event.is-home .game-event-main,
    .game-event.is-home .game-event-sub {
        justify-content: flex-start;
    }

    .game-event-text {
        flex: 1;
    }

    .game-event-crest {
        display: inline-grid;
        width: 16px;
        height: 16px;
        --crest-size: 16px;
    }
}

.game-stat-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-stat {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    grid-template-areas:
        "home label away"
        "bars bars bars";
    row-gap: 6px;
    align-items: center;
    padding: 8px 0;
}

.game-stat-value {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.game-stat-value.is-home {
    grid-area: home;
    justify-self: start;
}

.game-stat-value.is-away {
    grid-area: away;
    justify-self: end;
}

.game-stat-value bdi {
    display: inline-block;
    min-width: 40px;
    padding: 1px 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-align: center;
}

.game-stat.is-home-lead .game-stat-value.is-home bdi {
    background: var(--home-color);
    color: var(--home-ink, #ffffff);
}

.game-stat.is-away-lead .game-stat-value.is-away bdi {
    background: var(--away-color);
    color: var(--away-ink, #ffffff);
}

.game-stat.is-outline.is-home-lead .game-stat-value.is-home bdi {
    border-color: var(--home-color);
    background: transparent;
    color: var(--fx-text);
}

.game-stat.is-outline.is-away-lead .game-stat-value.is-away bdi {
    border-color: var(--away-color);
    background: transparent;
    color: var(--fx-text);
}

.game-stat-label {
    grid-area: label;
    color: var(--fx-text-2);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.game-stat-bars {
    display: grid;
    grid-area: bars;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.game-stat-bar {
    display: flex;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--fx-score-bg);
}

.game-stat-bar.is-home {
    justify-content: flex-end;
}

.game-stat-bar i {
    display: block;
    width: var(--share);
    border-radius: 3px;
}

.game-stat-bar.is-home i {
    background: var(--home-color);
}

.game-stat-bar.is-away i {
    background: var(--away-color);
}

.game-stat.is-home-lead .game-stat-bar.is-away i,
.game-stat.is-away-lead .game-stat-bar.is-home i {
    background: var(--fx-line-strong);
}

.game-possession {
    margin-bottom: 8px;
}

.game-possession-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--fx-text-2);
    font-size: 13px;
    font-weight: 600;
}

.game-possession-head .is-home,
.game-possession-head .is-away {
    color: var(--fx-text);
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.game-possession-bar {
    display: flex;
    gap: 3px;
    height: 12px;
}

.game-possession-bar span {
    border-radius: 6px;
}

.game-possession-bar .is-home {
    flex: 0 0 calc(var(--share) - 1.5px);
    background: var(--home-color);
}

.game-possession-bar .is-away {
    flex: 1;
    background: var(--away-color);
}

.game-stats-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fx-line);
}

.game-stats-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.game-stat-group {
    padding: 0 0 12px;
}

.game-stat-group + .game-stat-group {
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--fx-line);
}

.match-page .game-stat-group h2 {
    margin-bottom: 6px;
    color: var(--fx-text);
    font-size: 14px;
    font-weight: 800;
}

.game-form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.game-form-team {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-form-chips {
    display: inline-flex;
    gap: 3px;
}

.game-form-chip {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--fx-draw);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.game-reason {
    align-self: flex-start;
    margin-top: 2px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.game-reason.is-injury {
    background: color-mix(in srgb, var(--at-danger) 14%, transparent);
    color: var(--at-danger);
}

.game-reason.is-ban {
    background: var(--at-warning-soft);
    color: var(--fx-warning);
}

.game-reason.is-doubt {
    background: var(--fx-score-bg);
    color: var(--fx-muted);
}

.game-form-chip.is-w {
    background: var(--fx-win);
}

.game-form-chip.is-l {
    background: var(--fx-loss);
}

.game-form-chip.is-latest {
    box-shadow: 0 3px 0 -1px var(--fx-text);
}

.game-absences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.game-absences-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.game-absences-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-absences-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.game-person {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.game-person-name {
    overflow: hidden;
    color: var(--fx-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-person-sub {
    overflow: hidden;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-info {
    margin: 0;
}

.game-info > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid var(--fx-line);
}

.game-info > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.game-info dt {
    flex: none;
    color: var(--fx-muted);
    font-size: 13px;
    font-weight: 600;
}

.game-info dd {
    margin: 0;
    color: var(--fx-text);
    font-size: 13px;
    font-weight: 700;
    text-align: end;
}

.game-sheet {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    align-items: end;
    justify-items: center;
}

.game-sheet[hidden] {
    display: none;
}

.game-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 15, .6);
}

.game-sheet-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    padding: 16px 20px 24px;
    border-radius: 16px 16px 0 0;
    background: var(--at-surface-3);
    box-shadow: var(--at-shadow-3);
    color: var(--fx-text);
    animation: game-sheet-in var(--at-dur-3) var(--at-ease-out);
}

html.game-sheet-open {
    overflow: hidden;
}

@keyframes game-sheet-in {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (min-width: 768px) {
    .game-sheet {
        align-items: center;
    }

    .game-sheet-panel {
        border-radius: 16px;
    }
}

.game-h2h-summary {
    margin-bottom: 16px;
}

.game-h2h-counts {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 12px;
    margin-bottom: 10px;
}

.game-h2h-counts > span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 700;
}

.game-h2h-counts b {
    color: var(--fx-text);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.game-h2h-counts .is-draw {
    flex-direction: column;
    align-items: center;
}

.game-h2h-counts .is-away {
    justify-content: flex-end;
}

.game-h2h-bar {
    display: flex;
    gap: 3px;
    height: 8px;
}

.game-h2h-bar span {
    border-radius: 4px;
}

.game-h2h-bar .is-home {
    background: var(--home-color);
}

.game-h2h-bar .is-draw {
    background: var(--fx-draw);
}

.game-h2h-bar .is-away {
    background: var(--away-color);
}

.game-h2h-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-h2h-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 72px minmax(0, 1fr) 140px;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-top: 1px solid var(--fx-line);
    color: var(--fx-text);
    text-decoration: none;
}

.game-h2h-row:hover {
    background: var(--fx-hover);
}

.game-h2h-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
}

.game-h2h-comp {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-h2h-comp img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.game-h2h-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
}

.game-h2h-team > span:not(.game-mini-crest) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-h2h-team.is-home {
    justify-content: flex-end;
}

.game-h2h-team.is-winner {
    font-weight: 800;
}

.game-h2h-team.is-loser {
    color: var(--fx-muted);
}

.game-h2h-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 30px;
    border-radius: 8px;
    background: var(--fx-score-bg);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.match-page .game-table-title {
    margin: 12px 0 6px;
    color: var(--fx-muted);
    font-size: 13px;
    font-weight: 800;
}

.game-table-wrap {
    overflow-x: auto;
}

.game-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.game-table th {
    height: 36px;
    padding: 0 8px;
    border-bottom: 1px solid var(--fx-line);
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.game-table td {
    height: 44px;
    padding: 0 8px;
    border-bottom: 1px solid var(--fx-line);
    color: var(--fx-text-2);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.game-table tr > :first-child {
    width: 40px;
}

.game-table tr > :nth-child(2) {
    text-align: start;
}

.game-table-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--fx-text);
    font-weight: 700;
    white-space: nowrap;
}

.game-table-points {
    color: var(--fx-text);
    font-size: 15px;
    font-weight: 800 !important;
}

.game-h2h-result {
    justify-self: end;
}

.game:not(.has-home-kit) .game-table-row.is-home td,
.game:not(.has-away-kit) .game-table-row.is-away td {
    background: color-mix(in srgb, var(--fx-text) 6%, transparent) !important;
}

.game:not(.has-home-kit) .game-table-row.is-home td:first-child,
.game:not(.has-away-kit) .game-table-row.is-away td:first-child {
    box-shadow: inset -3px 0 0 var(--fx-text-2);
}

.game-table-row.is-home td {
    background: color-mix(in srgb, var(--home-color) 13%, transparent);
}

.game-table-row.is-away td {
    background: color-mix(in srgb, var(--away-color) 13%, transparent);
}

.game-table-row.is-home td:first-child {
    box-shadow: inset -3px 0 0 var(--home-color);
}

.game-table-row.is-away td:first-child {
    box-shadow: inset -3px 0 0 var(--away-color);
}

html[data-theme="light"] .match-page .game-table td,
html[data-visual-theme="light"] .match-page .game-table td {
    border-color: var(--fx-line) !important;
    background: transparent !important;
    color: var(--fx-text-2) !important;
}

html[data-theme="light"] .match-page .game-table td.game-table-points,
html[data-visual-theme="light"] .match-page .game-table td.game-table-points {
    color: var(--fx-text) !important;
}

html[data-theme="light"] .match-page .game.has-home-kit .game-table-row.is-home td,
html[data-visual-theme="light"] .match-page .game.has-home-kit .game-table-row.is-home td {
    background: color-mix(in srgb, var(--home-color) 10%, transparent) !important;
}

html[data-theme="light"] .match-page .game.has-away-kit .game-table-row.is-away td,
html[data-visual-theme="light"] .match-page .game.has-away-kit .game-table-row.is-away td {
    background: color-mix(in srgb, var(--away-color) 10%, transparent) !important;
}

.game-news-group + .game-news-group {
    margin-top: 20px;
}

.match-page .game-news-title {
    margin-bottom: 10px;
}

.game-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.game-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    background: var(--fx-surface);
    color: var(--fx-text);
    text-decoration: none;
}

.game-news-card:hover {
    border-color: var(--fx-line-strong);
}

.game-news-thumb {
    aspect-ratio: 16 / 9;
    background: var(--fx-score-bg);
}

.game-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-news-thumb.is-broken img {
    display: none;
}

.game-news-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.game-news-section {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 700;
}

.game-news-flag {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--fx-live);
    color: #ffffff;
    font-size: 11px;
}

.game-news-headline {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.game-news-date {
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
}

.match-page .game-updated {
    margin: 20px 0 0;
    color: var(--fx-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.game-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 10000;
    max-width: calc(100% - 32px);
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--fx-text);
    color: var(--fx-surface);
    font-size: 13px;
    font-weight: 700;
    transform: translateX(-50%);
    box-shadow: var(--at-shadow-2);
}

.game-toast.is-goal {
    top: calc(var(--game-header-h, 0px) + 12px);
    bottom: auto;
    background: var(--at-accent-fill);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    animation: game-toast-in var(--at-dur-3) var(--at-ease-out);
}

.game-toast[hidden] {
    display: none;
}

.match-page .game-updated.is-stale {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--at-warning-soft);
    color: var(--fx-text);
}

.game-updated.is-stale .ico {
    width: 16px;
    height: 16px;
    color: var(--fx-warning);
}

.game.is-loading .game-hero {
    padding-bottom: 16px;
}

.game-hero.is-loading .game-board {
    align-items: center;
}

.game-skeleton-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.game-shimmer {
    display: block;
    border-radius: 10px;
    background: var(--at-skeleton) linear-gradient(90deg, transparent 25%, var(--at-skeleton-shine) 50%, transparent 75%) 0 0 / 300% 100% no-repeat;
    animation: game-shimmer 1.2s linear infinite;
}

.game-shimmer.is-bar {
    height: 36px;
    margin: 12px 16px 0;
}

.game-shimmer.is-crest {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

.game-shimmer.is-line {
    width: 120px;
    height: 18px;
}

.game-shimmer.is-score {
    width: 180px;
    height: 72px;
}

.game-shimmer.is-facts {
    width: 60%;
    height: 14px;
    margin: 0 auto;
}

.game-skeleton-tabs {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--fx-line);
}

.game-shimmer.is-tab {
    width: 72px;
    height: 18px;
}

.game-shimmer.is-card {
    height: 260px;
    border-radius: 12px;
}

@keyframes game-pulse {
    0% { opacity: .6; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.6); }
}

@keyframes game-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@keyframes game-toast-in {
    from { transform: translate(-50%, -16px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .game-live-dot::after,
    .game-score.is-goal,
    .game-goal.is-rolling > span,
    .game-toast.is-goal,
    .game-sheet-panel,
    .game-shimmer {
        animation: none;
    }

    .game-score.is-goal {
        background: var(--at-accent-fill);
        color: #ffffff;
    }

    .game-score,
    .game-event-body,
    .game-mini,
    .game-tabs-bar {
        transition: none;
    }
}

@media (max-width: 1019px) {
    .game-summary {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .game-column {
        display: contents;
    }

    .game-column > .game-card + .game-card {
        margin-top: 0;
    }

    .game-card.is-moments { order: 1; }
    .game-card.is-stats { order: 2; }
    .game-card.is-form { order: 3; }
    .game-card.is-absences { order: 4; }
    .game-card.is-info { order: 5; }

    .game-h2h-row {
        grid-template-columns: 120px minmax(0, 1fr) 64px minmax(0, 1fr) 32px;
    }

    .game-table .is-form {
        display: none;
    }
}

@media (max-width: 767px) {
    .game-root {
        width: 100%;
        padding: 12px 12px 32px;
    }

    .game-hero {
        border-radius: 12px;
    }

    .game-hero-bar {
        padding: 10px 12px;
    }

    .game-comp-logo {
        width: 32px;
        height: 32px;
    }

    .game-comp-name {
        font-size: 14px;
    }

    .game-share span {
        display: none;
    }

    .game-share {
        width: 36px;
        padding: 0;
        justify-content: center;
    }

    .game-board {
        gap: 8px;
        padding: 24px 10px 16px;
    }

    .game-side::before {
        top: -24px;
        width: 150px;
        height: 150px;
    }

    .game-crest {
        --crest-size: 64px;
        width: 64px;
        height: 64px;
    }

    .game-team-name {
        font-size: 16px;
    }

    .game-center {
        min-width: 0;
        gap: 8px;
        padding-top: 4px;
    }

    .game-score {
        padding: 2px 8px;
        font-size: 48px;
    }

    .game-score-digits {
        gap: 14px;
    }

    .game-kickoff-time {
        font-size: 32px;
    }

    .game-status {
        height: 28px;
        padding: 0 10px;
    }

    .game-status-minute {
        font-size: 14px;
    }

    .game-phases {
        font-size: 12px;
    }

    .game-follow {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .game-follow::after {
        inset: -6px;
    }

    .game-scorers {
        font-size: 12px;
    }

    .game-scorers li {
        flex-wrap: wrap;
        gap: 2px 4px;
    }


    .game-facts {
        justify-content: flex-start;
        gap: 6px 16px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .game-fact.is-referee {
        display: none;
    }

    .game-flow {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 8px;
        padding: 10px 10px 6px;
    }

    .game-tabs-bar {
        margin: 12px -12px;
        padding: 0 4px;
    }

    .game-tabs {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px);
        mask-image: linear-gradient(to right, transparent 0, #000 24px);
    }

    .game-tab {
        height: 46px;
        padding: 0 12px;
        font-size: 14px;
    }

    .game-tabs {
    position: relative;
}

.game-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--fx-accent);
    transform-origin: 0 0;
    opacity: 0;
    pointer-events: none;
}

.game-tabs.has-indicator .game-tab-indicator {
    opacity: 1;
}

.game-tab-indicator.is-ready {
    transition: transform 320ms var(--at-ease-out);
}

.game-tabs.has-indicator .game-tab[aria-selected="true"]::after {
    display: none;
}

.game:not(.has-drawn) .game-momentum {
    animation: game-momentum-draw 1200ms var(--at-ease-out) 200ms both;
}

@keyframes game-momentum-draw {
    from { clip-path: inset(0 0 0 100%); }
    to { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
    .game-tab-indicator.is-ready {
        transition: none;
    }

    .game:not(.has-drawn) .game-momentum {
        animation: none;
    }
}

.game-tab[aria-selected="true"]::after {
        inset-inline: 10px;
    }

    .game-card {
        padding: 12px;
    }

    .game-moment {
        grid-template-columns: 44px 26px minmax(0, 1fr) auto 18px;
        gap: 8px;
    }

    .game-event-main {
        font-size: 13px;
    }

    .game-event-sub {
        font-size: 12px;
    }

    .game-minute {
        min-width: 42px;
        font-size: 12px;
    }

    .game-absences {
        grid-template-columns: 1fr;
    }

    .game-h2h-row {
        grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
        grid-template-areas:
            "meta meta result"
            "home score away";
        row-gap: 6px;
    }

    .game-h2h-meta {
        flex-direction: row;
        gap: 12px;
        grid-area: meta;
    }

    .game-h2h-result {
        grid-area: result;
    }

    .game-h2h-team.is-home {
        grid-area: home;
    }

    .game-h2h-team.is-away {
        grid-area: away;
    }

    .game-h2h-score {
        grid-area: score;
    }

    .game-h2h-team {
        font-size: 13px;
    }

    .game-table .is-wide {
        display: none;
    }

    .game-table th,
    .game-table td {
        padding: 0 5px;
    }

    .game-news {
        grid-template-columns: 1fr;
    }

    .game-mini-inner {
        gap: 8px;
        width: calc(100% - 24px);
    }

    .game-mini-team {
        font-size: 13px;
    }

    .game-shimmer.is-crest {
        width: 64px;
        height: 64px;
    }

    .game-shimmer.is-line {
        width: 72px;
    }

    .game-shimmer.is-score {
        width: 110px;
        height: 48px;
    }
}
