/* This header belongs only to the phone match. The pause control owns its full hit area. */
#game-shell .phone-match .match-scoreboard.phone-scoreboard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-rows: 47px 20px;
  align-items: center;
  column-gap: 8px;
  row-gap: 3px;
  min-height: 0;
  height: 81px;
  padding: 5px 8px;
  flex-basis: auto;
  border-bottom: 1px solid var(--edge);
  background: var(--navy);
}
.phone-scoreboard .phone-score-main {
  display: grid;
  grid-template-rows: 30px 14px;
  row-gap: 3px;
  min-width: 0;
}
.phone-scoreboard .phone-score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.phone-scoreboard .phone-score-team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--type-body);
  font-weight: 700;
  line-height: 18px;
  color: var(--cream);
}
.phone-scoreboard .phone-score-value {
  display: block;
  flex: 0 0 auto;
  font:
    800 var(--type-score) / 30px Manrope,
    Arial,
    sans-serif;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  white-space: nowrap;
}
.phone-scoreboard .phone-score-value > span {
  color: var(--gold);
  font-size: var(--type-number);
}
.phone-scoreboard .phone-over-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.phone-scoreboard #overs {
  flex: 0 0 auto;
  font-size: var(--type-body);
  line-height: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}
.phone-scoreboard #overs small {
  font-size: var(--type-caption);
  font-weight: 500;
  color: var(--dim);
}
.phone-scoreboard .phone-over-progress {
  flex: 1;
  min-width: 0;
}
.phone-scoreboard .phone-over-progress > span {
  display: grid;
  grid-template-columns: repeat(var(--innings-overs, 20), minmax(0, 1fr));
  gap: 2px;
  height: 8px;
}
.phone-scoreboard .phone-over-segment {
  position: relative;
  display: block;
  min-width: 0;
  height: 8px;
  background: var(--night);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.phone-scoreboard .phone-over-segment:before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--mint);
}
.phone-scoreboard .phone-over-segment[data-balls='1']:before {
  width: calc(100% / 6);
}
.phone-scoreboard .phone-over-segment[data-balls='2']:before {
  width: calc(100% / 3);
}
.phone-scoreboard .phone-over-segment[data-balls='3']:before {
  width: 50%;
}
.phone-scoreboard .phone-over-segment[data-balls='4']:before {
  width: calc(200% / 3);
}
.phone-scoreboard .phone-over-segment[data-balls='5']:before {
  width: calc(500% / 6);
}
.phone-scoreboard .phone-over-segment[data-balls='6']:before {
  width: 100%;
}
.phone-scoreboard .phone-over-segment.in-powerplay:before {
  background: var(--gold);
}
.phone-scoreboard .phone-over-segment.is-current {
  outline: 1px solid var(--cream);
  outline-offset: 1px;
}
#game-frame .phone-scoreboard .phone-match-pause {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--edge);
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--brand-shadow);
  color: var(--cream);
  background: var(--panel);
}
#game-frame .phone-scoreboard .phone-match-pause:hover {
  background: var(--panel2);
}
.phone-scoreboard .phone-pause-icon {
  display: block;
  width: 15px;
  height: 18px;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
}
.phone-scoreboard .phone-score-context {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 20px;
  font-size: var(--type-body);
}
.phone-scoreboard .phone-powerplay {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: var(--type-caption);
  font-weight: 700;
  line-height: 14px;
}
.phone-scoreboard .phone-score-equation {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
}
.phone-scoreboard #equation {
  min-width: 0;
  font-size: var(--type-body);
  font-weight: 600;
  color: var(--cream);
}
.phone-scoreboard .phone-target-runs {
  font-size: var(--type-section);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.phone-scoreboard #chase-detail {
  flex: 0 0 auto;
  font-size: var(--type-body);
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}
