.gg-h2h-stat-icon,
.gg-h2h-trend-icon,
.gg-h2h-trend-type-icon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid currentColor;
  background: linear-gradient(145deg,
    color-mix(in srgb, currentColor 18%, transparent),
    color-mix(in srgb, currentColor 5%, transparent));
  box-shadow:
    inset 0 0 14px color-mix(in srgb, currentColor 10%, transparent),
    0 4px 14px rgba(0, 0, 0, .12);
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-icon {
  width: 29px;
  height: 29px;
  border-radius: 9px;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-icon.goals,
body[data-page="match"].match-detail-readable .gg-h2h-stat-icon.btts,
body[data-page="match"].match-detail-readable .gg-h2h-stat-icon.corners,
body[data-page="match"].match-detail-readable .gg-h2h-stat-icon.cards {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .08),
    0 4px 12px color-mix(in srgb, currentColor 12%, transparent);
}

.gg-h2h-trend-icon,
.gg-h2h-trend-type-icon {
  width: 40px;
  height: 40px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .1),
    inset 0 -8px 18px rgba(0, 0, 0, .08),
    0 5px 14px rgba(0, 0, 0, .18);
}

.gg-h2h-trend-icon::after,
.gg-h2h-trend-type-icon::after {
  position: absolute;
  z-index: -1;
  top: -45%;
  left: -25%;
  width: 95%;
  height: 80%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  content: '';
  transform: rotate(-22deg);
}

.gg-h2h-stat-icon .gg-h2h-metric-svg,
.gg-h2h-trend-icon .gg-h2h-metric-svg,
.gg-h2h-trend-type-icon .gg-h2h-metric-svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  stroke-width: 1.85;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-icon .gg-h2h-metric-svg {
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .28));
}

.gg-h2h-metric-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .34));
  user-select: none;
}

.gg-h2h-metric-image.is-corners {
  width: 23px;
  height: 23px;
}

.gg-h2h-metric-image.is-cards {
  width: 21px;
  height: 21px;
}

.gg-h2h-metric-image.is-btts {
  display: block;
  width: 25px;
  height: 21px;
  filter: none;
}

.gg-h2h-metric-image.is-btts > img {
  position: absolute;
  top: 2px;
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .38));
}

.gg-h2h-metric-image.is-btts > img:first-child {
  left: 0;
}

.gg-h2h-metric-image.is-btts > img:last-child {
  right: 0;
}

.gg-h2h-trend-icon .gg-h2h-metric-image:not(.is-btts),
.gg-h2h-trend-type-icon .gg-h2h-metric-image:not(.is-btts) {
  width: 25px;
  height: 25px;
}

body[data-page="match"].match-detail-readable .gg-h2h-trend-icon.shots:not(.target),
body[data-page="match"].match-detail-readable .gg-h2h-trend-type-icon.shots:not(.target) {
  border-color: rgba(103, 211, 255, .34);
  background:
    radial-gradient(circle at 28% 18%, rgba(186, 230, 253, .2), transparent 43%),
    linear-gradient(145deg, rgba(14, 165, 233, .3), rgba(3, 105, 161, .12));
  color: #7dd3fc;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .13),
    inset 0 -10px 20px rgba(2, 132, 199, .08),
    0 5px 14px rgba(3, 105, 161, .2);
}

body[data-page="match"].match-detail-readable .gg-h2h-trend-icon.shots.target,
body[data-page="match"].match-detail-readable .gg-h2h-trend-type-icon.shots.target {
  border-color: rgba(45, 212, 191, .34);
  background:
    radial-gradient(circle at 30% 20%, rgba(153, 246, 228, .2), transparent 44%),
    linear-gradient(145deg, rgba(20, 184, 166, .29), rgba(15, 118, 110, .11));
  color: #5eead4;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .13),
    inset 0 -10px 20px rgba(13, 148, 136, .08),
    0 5px 14px rgba(15, 118, 110, .2);
}

.gg-h2h-trend-icon .gg-h2h-metric-image.is-shots,
.gg-h2h-trend-type-icon .gg-h2h-metric-image.is-shots {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .38));
}

.gg-h2h-trend-icon .gg-h2h-metric-image.is-target,
.gg-h2h-trend-type-icon .gg-h2h-metric-image.is-target {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .38));
}

.gg-h2h-trend-icon .gg-h2h-metric-image.is-btts,
.gg-h2h-trend-type-icon .gg-h2h-metric-image.is-btts {
  width: 30px;
  height: 24px;
}

.gg-h2h-trend-icon .gg-h2h-metric-image.is-btts > img,
.gg-h2h-trend-type-icon .gg-h2h-metric-image.is-btts > img {
  width: 19px;
  height: 19px;
}

.gg-h2h-metric-svg .gg-icon-surface {
  fill: none;
  stroke: #f8fafc;
  stroke-width: 1.3;
}

.gg-h2h-metric-svg .gg-icon-accent {
  fill: #f8fafc;
  stroke: #f8fafc;
}

.gg-h2h-metric-svg .gg-icon-detail {
  fill: none;
  stroke: #f8fafc;
  stroke-width: 1.15;
}

.gg-h2h-metric-svg .gg-icon-team-home {
  fill: none;
  stroke: #f8fafc;
  stroke-width: 1.3;
}

.gg-h2h-metric-svg .gg-icon-team-away {
  fill: none;
  stroke: #f8fafc;
  stroke-width: 1.3;
}

.gg-h2h-metric-svg .gg-icon-ball-mark {
  fill: #f8fafc;
  stroke: none;
}

.gg-h2h-metric-svg .gg-icon-ball-seam {
  fill: none;
  stroke: #f8fafc;
  stroke-width: .85;
  opacity: .92;
}

.gg-h2h-metric-svg .gg-icon-link {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 1.35;
}

.gg-h2h-metric-svg .gg-icon-corner-post,
.gg-h2h-metric-svg .gg-icon-corner-arc {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 1.65;
}

.gg-h2h-metric-svg .gg-icon-corner-flag {
  fill: #f8fafc;
  stroke: #f8fafc;
  stroke-width: 1.2;
}

.gg-h2h-metric-svg .gg-icon-card-yellow {
  fill: #facc15;
  stroke: #fef08a;
  stroke-width: .9;
}

.gg-h2h-metric-svg .gg-icon-card-red {
  fill: #fb7185;
  stroke: #fecdd3;
  stroke-width: .9;
}

.gg-h2h-metric-svg .gg-icon-card-shine {
  fill: none;
  stroke: rgba(255, 255, 255, .82);
  stroke-width: 1.1;
}

body[data-page="match"].match-detail-readable .gg-h2h-meeting-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.55rem;
  margin-top: .05rem;
  padding-top: .34rem;
  border-top: 1px solid rgba(105, 136, 158, .15);
}

body[data-page="match"].match-detail-readable .gg-h2h-meeting-footer > small {
  color: #708799;
  font-size: .56rem;
  font-variant-numeric: tabular-nums;
}

body[data-page="match"].match-detail-readable .gg-h2h-meeting-metrics {
  display: inline-flex;
  align-items: center;
  gap: .26rem;
  flex: 0 0 auto;
  overflow: visible;
  color: inherit;
  font-size: inherit;
}

body[data-page="match"].match-detail-readable .gg-h2h-meeting-metric {
  display: inline-flex;
  align-items: center;
  gap: .18rem;
  min-width: 1.75rem;
  height: 1.22rem;
  padding: 0 .3rem 0 .2rem;
  overflow: visible;
  border: 1px solid rgba(94, 234, 212, .2);
  border-radius: 6px;
  background: rgba(45, 212, 191, .1);
  color: #7cebdc;
  font-size: .58rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

body[data-page="match"].match-detail-readable .gg-h2h-meeting-metric.is-cards {
  border-color: rgba(251, 191, 36, .24);
  background: rgba(251, 191, 36, .1);
  color: #f8c85d;
}

body[data-page="match"].match-detail-readable .gg-h2h-meeting-metric > i {
  display: grid;
  place-items: center;
  width: .82rem;
  height: .82rem;
  flex: 0 0 .82rem;
  font-style: normal;
}

body[data-page="match"].match-detail-readable .gg-h2h-meeting-metric .gg-h2h-metric-image {
  width: .78rem;
  height: .78rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .32));
}

body[data-page="match"].match-detail-readable .gg-h2h-meeting-metric.is-corners .gg-h2h-metric-image {
  width: .82rem;
  height: .82rem;
}

body[data-page="match"].match-detail-readable .gg-h2h-meeting-metric > b {
  color: currentColor;
  font-size: .6rem;
  font-weight: 800;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--h2h-card-accent, #5eead4) 8%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-card::before {
  position: absolute;
  top: 0;
  left: 1rem;
  width: 2.25rem;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: var(--h2h-card-accent, #5eead4);
  box-shadow: 0 0 12px color-mix(in srgb, var(--h2h-card-accent, #5eead4) 40%, transparent);
  content: '';
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-card[data-h2h-stat-kind="goals"] {
  --h2h-card-accent: #8bc5ff;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-card[data-h2h-stat-kind="btts"] {
  --h2h-card-accent: #5eead4;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-card[data-h2h-stat-kind="corners"] {
  --h2h-card-accent: #4de2cf;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-card[data-h2h-stat-kind="cards"] {
  --h2h-card-accent: #facc15;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-card header small {
  color: #b8c7d1;
  font-size: .7rem;
  letter-spacing: -.005em;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-total strong {
  font-size: 1.18rem;
  letter-spacing: -.025em;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-coverage {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: .18rem .42rem;
  border: 1px solid rgba(74, 222, 128, .16);
  border-radius: 999px;
  color: #86efac;
  background: rgba(74, 222, 128, .07);
  font-size: .57rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-coverage.is-partial {
  border-color: rgba(246, 197, 111, .2);
  color: #f6c56f;
  background: rgba(246, 197, 111, .08);
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-card.is-partial-data::before {
  background: #f6c56f;
  box-shadow: 0 0 12px rgba(246, 197, 111, .28);
}

body[data-page="match"].match-detail-readable .gg-h2h-data-coverage-note {
  display: flex;
  align-items: center;
  gap: .42rem;
  width: fit-content;
  max-width: 100%;
  margin: -.1rem 0 .15rem;
  color: #8299aa;
  font-size: .62rem;
  line-height: 1.45;
}

body[data-page="match"].match-detail-readable .gg-h2h-data-coverage-note > span {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 1px solid rgba(246, 197, 111, .28);
  border-radius: 50%;
  color: #f6c56f;
  background: rgba(246, 197, 111, .07);
  font-size: .58rem;
  font-weight: 800;
  font-style: normal;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-team.is-positive strong,
body[data-page="match"].match-detail-readable .gg-h2h-stat-team.is-warning strong,
body[data-page="match"].match-detail-readable .gg-h2h-stat-team.is-danger strong {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 800;
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-team.is-positive strong {
  color: #4ade80;
  background: rgba(74, 222, 128, .09);
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-team.is-positive > i > b {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, .3);
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-team.is-warning strong {
  color: #f6c56f;
  background: rgba(246, 197, 111, .09);
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-team.is-warning > i > b {
  background: #f6c56f;
  box-shadow: 0 0 8px rgba(246, 197, 111, .25);
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-team.is-danger strong {
  color: #fb7185;
  background: rgba(251, 113, 133, .09);
}

body[data-page="match"].match-detail-readable .gg-h2h-stat-team.is-danger > i > b {
  background: #fb7185;
  box-shadow: 0 0 8px rgba(251, 113, 133, .25);
}

.gg-h2h-stat-recent strong {
  min-width: 48px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gg-h2h-stat-recent.is-excellent strong,
.gg-h2h-stat-recent.is-positive strong {
  color: #4ade80;
}

.gg-h2h-stat-recent.is-good strong {
  color: #86efac;
}

.gg-h2h-stat-recent.is-warning strong,
.gg-h2h-stat-recent.is-neutral strong {
  color: #f6c56f;
}

.gg-h2h-stat-recent.is-danger strong {
  color: #fb7185;
}

@media (max-width: 720px) {
  body[data-page="match"].match-detail-readable .gg-h2h-data-coverage-note {
    margin-top: 0;
    padding-inline: .15rem;
    font-size: .6rem;
  }

  body[data-page="match"].match-detail-readable .gg-h2h-stat-icon {
    width: 28px;
    height: 28px;
  }

  body[data-page="match"].match-detail-readable .gg-h2h-stat-icon .gg-h2h-metric-svg {
    width: 20px;
    height: 20px;
  }

  body[data-page="match"].match-detail-readable .gg-h2h-stat-icon .gg-h2h-metric-image:not(.is-btts) {
    width: 20px;
    height: 20px;
  }

  .gg-h2h-trend-icon,
  .gg-h2h-trend-type-icon {
    width: 36px;
    height: 36px;
  }
}
