/* The published Clubs phone control band, adapted only for Nations actions. */
#game-frame .n-live-new {
  --type-micro: 11px;
  --type-caption: 12px;
  --type-body: 14px;
  --type-section: 16px;
  --type-number: 24px;
  --type-score: 32px;
  --weight-button: 700;
  --brand-cobalt: #2147a8;
  font-family: Manrope, Arial, sans-serif;
  font-size: var(--type-body);
  line-height: 1.45;
}

@media (min-width: 601px) {
  html:not(.n-display-wide) #game-frame.n-frame:not(:fullscreen) {
    width: min(100%, 430px);
    height: min(932px, calc(100svh - 100px));
    min-height: 0;
  }
  html:not(.n-display-wide) .n-site { height: 56px; max-width: 430px; }
  html.n-display-wide #game-frame.n-frame:not(:fullscreen) {
    width: calc(100% - 40px);
    height: min(1040px, calc(100svh - 100px));
    min-height: 0;
  }
  html.n-display-wide .n-site { height: 56px; width: calc(100% - 40px); max-width: none; padding-inline: 0; }
}

#game-frame #n-shell .n-live-new {
  display: grid;
  grid-template-columns: minmax(124px, .9fr) minmax(0, 1.1fr);
  grid-template-areas: 'score score' 'ground ground' 'feed feed' 'batters batters' 'bowler controls' 'play play';
  grid-template-rows: 105px minmax(0, 1fr) auto auto auto auto;
  height: 100%; min-height: 0; max-height: 100%; overflow: hidden;
}
#game-frame #n-shell .n-live-new[data-console='full'] {
  grid-template-columns: minmax(112px, .72fr) minmax(0, 1.28fr);
}
#game-frame #n-shell .n-live-new > .n-live-scoreboard { grid-area: score; }
#game-frame #n-shell .n-live-new > .n-live-ground { grid-area: ground; min-height: 0; }
#game-frame #n-shell .n-live-new > .n-live-feed-new { grid-area: feed; align-self: stretch; }
#game-frame #n-shell .n-live-new .n-live-contestants,
#game-frame #n-shell .n-live-new .n-live-dock { display: contents; }
#game-frame #n-shell .n-live-new .n-live-batting-pair { grid-area: batters; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
#game-frame #n-shell .n-live-new .n-live-bowler-card { grid-area: bowler; }
#game-frame #n-shell .n-live-new .n-live-console { grid-area: controls; }
#game-frame #n-shell .n-live-new .n-live-delivery-actions { grid-area: play; }

#game-frame #n-shell .n-live-new .n-live-scoreboard {
  height: 105px; min-height: 105px; padding: 5px 8px;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-rows: 30px 14px 20px 20px;
  column-gap: 8px; row-gap: 3px; font-size: var(--type-body);
}
#game-frame .n-live-new .n-live-score-main,
#game-frame .n-live-new .n-live-over-line { max-width: none; }
#game-frame .n-live-new .n-live-team { font-size: var(--type-caption); font-weight: 700; line-height: 14px; }
#game-frame .n-live-new .n-live-total { font-size: var(--type-score); line-height: 30px; letter-spacing: -1px; }
#game-frame .n-live-new .n-live-total > span { font-size: var(--type-number); }
#game-frame .n-live-new .n-live-over-line { gap: 8px; }
#game-frame .n-live-new .n-live-over-line > b { font-size: var(--type-body); line-height: 14px; }
#game-frame .n-live-new .n-live-over-line small { font-size: var(--type-caption) !important; }
#game-frame .n-live-new .n-live-phase { font-size: var(--type-caption); line-height: 14px; }
#game-frame .n-live-new .n-live-equation { line-height: 20px; }
#game-frame .n-live-new .n-live-equation > strong,
#game-frame .n-live-new .n-live-equation > span { font-size: var(--type-body); }
#game-frame .n-live-new .n-live-rates { gap: 16px; font-size: var(--type-caption); line-height: 18px; }
#game-frame .n-live-new .n-live-rates b { font-size: var(--type-body); line-height: 18px; color: var(--gold); }
#game-frame #n-shell .n-live-new .n-live-pause { padding: 0; height: 44px; border-radius: 2px; box-shadow: 0 2px 0 var(--brand-shadow); }
#game-frame .n-live-new .n-live-pause-icon { width: 15px; height: 18px; border-inline-width: 5px; }

#game-frame #n-shell .n-live-new .n-live-feed-new { padding: 6px 8px; gap: 3px; }
#game-frame .n-live-new .n-live-over-feed { display: grid; grid-template-columns: auto minmax(0, 1fr) 54px; gap: 6px; font-size: var(--type-caption); line-height: 1.2; min-height: 36px; align-items: center; }
#game-frame .n-live-new .n-live-over-feed > strong { min-width: 0; padding-top: 0; }
#game-frame .n-live-new .n-live-over-feed > strong > small { font-size: var(--type-caption) !important; line-height: 1.2; margin-top: 4px; }
#game-frame .n-live-new .n-live-deliveries { gap: 6px; height: 36px; padding: 0 0 4px; overflow-y: hidden; }
#game-frame .n-live-new .n-live-ball { flex: 0 0 28px; min-width: 28px; width: 28px; height: 28px; font-size: var(--type-caption); line-height: 1; }
#game-frame .n-live-new .n-live-ball.is-extra { flex-basis: auto; width: auto; min-width: 30px; padding-inline: 4px; }
#game-frame .n-live-new .n-live-ledger,
#game-frame .n-live-new .n-live-ledger small { font-size: var(--type-micro) !important; line-height: 14px; }
#game-frame .n-live-new .n-live-commentary { height: 36px; min-height: 36px; max-height: 36px; margin-top: 4px !important; font-size: var(--type-body); line-height: 18px; }

#game-frame #n-shell .n-live-new .n-live-batting-pair { gap: 0; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
#game-frame #n-shell .n-live-new .n-live-player-card { display: block; position: relative; align-content: initial; min-width: 0; border-bottom: 2px solid transparent; background: var(--navy); }
#game-frame #n-shell .n-live-new .n-live-player-card.is-striker { box-shadow: none; }
#game-frame #n-shell .n-live-new .n-live-batting-pair > .n-live-player-card:first-child { border-right: 1px solid var(--edge); }
#game-frame #n-shell .n-live-new .n-live-player-button { min-height: 48px !important; height: auto; padding: 8px; gap: 8px; line-height: 1.45; }
#game-frame #n-shell .n-live-new .n-live-player-button .pixel-portrait { width: 32px; height: 39px; flex: 0 0 32px; }
#game-frame .n-live-new .n-live-player-copy { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
#game-frame .n-live-new .n-live-player-copy > strong { font-family: Manrope, Arial, sans-serif; font-weight: 700; font-size: var(--type-section); line-height: 1.2; }
#game-frame .n-live-new .n-live-player-copy > span { align-items: baseline; gap: 8px; font-size: var(--type-body); line-height: 1.25; }
#game-frame .n-live-new .n-live-player-copy > span > b { font-size: var(--type-body); line-height: 1.25; }
#game-frame .n-live-new .n-live-player-copy > span > small { font-size: var(--type-caption) !important; }
#game-frame .n-live-new .n-live-player-copy > strong > small { font-size: var(--type-micro) !important; line-height: 1.25; }
#game-frame .n-live-new .n-live-player-metrics { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 24px; padding: 0 8px 8px; gap: 6px; font-size: var(--type-micro); line-height: 1.45; }
#game-frame .n-live-new .n-live-player-metrics :is(.n-live-settled,.n-live-form,.n-live-recent) { font-size: var(--type-micro); line-height: 1.45; }
#game-frame .n-live-new .n-live-settled meter { display: none; }
#game-frame .n-live-new .n-live-recent small { font-size: var(--type-micro) !important; }
#game-frame .n-live-new .n-live-recent b { font-size: var(--type-micro); }
#game-frame .n-live-new .n-live-form svg { width: 28px; height: 7px; }
#game-frame #n-shell .n-live-new .n-live-bowler-card { display: grid; align-content: center; height: 96px; min-height: 96px; border-right: 1px solid var(--edge); padding-block: 0; }
#game-frame #n-shell .n-live-new[data-console='full'] .n-live-bowler-card { display: grid; align-content: center; height: 116px; min-height: 116px; }
#game-frame #n-shell .n-live-new .n-live-bowler-card .n-live-player-button { height: auto; min-height: 0 !important; padding: 5px; gap: 5px; background: var(--night); }
#game-frame .n-live-new .n-live-bowler-card .n-live-player-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
#game-frame .n-live-new .n-live-bowler-card .n-live-player-copy > strong { width: 100%; padding-right: 0; white-space: normal; overflow: visible; text-overflow: clip; font-size: var(--type-section); }
#game-frame .n-live-new .n-live-bowler-card .n-live-player-copy > span { position: static; flex: none; font-size: var(--type-body); white-space: nowrap; }
#game-frame .n-live-new .n-live-bowler-card .n-live-player-copy > strong > small { display: block; }
#game-frame .n-live-new .n-live-bowler-card .n-live-player-metrics { min-height: 0; padding-left: 5px; }

#game-frame .n-live-new .n-live-aggression { display: grid; gap: 4px; padding: 0 8px 8px; }
#game-frame .n-live-new .n-live-aggression > span { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; font-size: var(--type-micro); color: var(--dim); }
#game-frame .n-live-new .n-live-aggression > span > b { color: var(--cream); font-size: var(--type-micro); font-weight: var(--weight-button); }
#game-frame .n-live-new .n-live-aggression > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
#game-frame #n-shell .n-live-new .n-live-aggression .game-button { min-height: 28px; min-width: 0; height: 28px; padding: 0; background: var(--panel); border: 1px solid var(--edge); color: var(--cream); font-size: var(--type-caption); line-height: 1.45; font-weight: 500; }

#game-frame #n-shell .n-live-new .n-live-console { display: flex; flex-direction: column; gap: 0; height: 96px; min-height: 96px; padding: 4px; background: var(--night); min-width: 0; }
#game-frame #n-shell .n-live-new[data-console='full'] .n-live-console { height: 116px; min-height: 116px; padding: 2px; }
#game-frame .n-live-new .n-live-style { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 0 0 28px; width: 100%; min-width: 0; gap: 4px; margin: 0; justify-self: stretch; }
#game-frame #n-shell .n-live-new .n-live-style > .game-button { min-height: 28px; height: 28px; padding: 1px 6px; border: 1px solid var(--edge); border-radius: 0; background: var(--navy); color: var(--cream); font-size: var(--type-caption); line-height: 1.45; font-weight: 500; }
#game-frame .n-live-new .n-live-console-controls { display: grid; flex: 1; align-items: center; gap: 0; min-width: 0; }
#game-frame .n-live-new .n-live-quick-plans { gap: 4px; align-items: center; }
#game-frame #n-shell .n-live-new .n-live-quick-plans > .game-button { min-height: 48px; padding: 6px 4px; font-size: var(--type-caption); line-height: 16px; border-color: #71829e; border-radius: 2px; background: var(--navy); color: #f8f3df; }
#game-frame .n-live-new .n-live-console-full { display: grid; gap: 6px; align-content: start; padding-top: 4px; min-width: 0; }
#game-frame #n-shell .n-live-new .n-live-strike-preference { width: 100%; min-width: 0; height: 28px; min-height: 28px; padding: 4px 6px; border: 1px solid var(--edge); border-radius: 0; background: var(--navy); color: var(--cream); font-size: var(--type-caption); font-weight: 500; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#game-frame #n-shell .n-live-new .n-live-strike-preference[aria-pressed='true'] { color: var(--night) !important; background: var(--gold) !important; border-color: var(--gold) !important; }
#game-frame .n-live-new .n-live-running-intent { display: grid; gap: 4px; min-width: 0; }
#game-frame .n-live-new .n-live-running-intent > span { color: var(--dim); font-size: var(--type-micro); line-height: 14px; }
#game-frame .n-live-new .n-live-running-intent > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
#game-frame #n-shell .n-live-new .n-live-running-intent .game-button { min-height: 28px; min-width: 0; padding: 0 3px; border: 1px solid var(--edge); border-radius: 0; background: var(--navy); color: var(--cream); font-size: var(--type-caption); line-height: 1.45; font-weight: 500; }
#game-frame .n-live-new .n-live-console-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 4px; height: 28px; font-size: var(--type-micro); }
#game-frame .n-live-new .n-live-console-row > div { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 2px; }
#game-frame #n-shell .n-live-new .n-live-console-row .game-button { min-height: 28px; height: 28px; min-width: 0; padding: 0; font-size: var(--type-caption); line-height: 1.45; white-space: nowrap; border: 1px solid var(--edge); border-radius: 0; background: var(--navy); color: var(--cream); font-weight: 500; }
#game-frame #n-shell .n-live-new :is(.n-live-style,.n-live-aggression,.n-live-console-row,.n-live-running-intent) [aria-pressed='true'] { background: var(--brand-cobalt) !important; color: var(--cream) !important; border-color: var(--edge) !important; box-shadow: inset 0 -2px var(--gold) !important; }
#game-frame #n-shell .n-live-new .n-live-quick-plans > [aria-pressed='true'] { background: var(--brand-cobalt) !important; color: #f8f3df !important; border-color: var(--gold) !important; box-shadow: inset 0 -3px var(--gold) !important; }
#game-frame .n-live-new .n-live-legacy-console { margin: 0; padding: 4px; font-size: var(--type-caption); line-height: 16px; }

#game-frame #n-shell .n-live-new .n-live-delivery-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; border-top: 1px solid var(--edge); background: var(--navy); }
#game-frame #n-shell .n-live-new .n-live-delivery-actions > .game-button { width: 100%; min-width: 0; min-height: 40px; height: 40px; padding: 6px 3px; font-size: var(--type-caption); line-height: 1.3; border-radius: 3px; background: var(--brand-cobalt); color: var(--cream); }
#game-frame #n-shell .n-live-new .n-live-delivery-actions > [data-action='over'],
#game-frame #n-shell .n-live-new .n-live-delivery-actions > .n-live-stop,
#game-frame #n-shell .n-live-new .n-live-delivery-actions > [data-action='review-decision'] { background: var(--gold); color: var(--night); border-color: var(--gold); }
#game-frame .n-live-new .n-live-delivery-actions > .game-button:only-child { grid-column: 1/-1; }

@container game (max-width: 360px) {
  #game-frame #n-shell .n-live-new[data-console='full'] .n-live-bowler-card .pixel-portrait { display: none; }
  #game-frame #n-shell .n-live-new .n-live-console-row .game-button { font-size: var(--type-micro); }
  #game-frame .n-live-new .n-live-equation > span { font-size: var(--type-caption); }
  #game-frame .n-live-new .n-live-over-line { gap: 5px; }
}

/* Wide retains a field workspace beside its existing management console. */
@container game (min-width: 701px) {
  #game-frame #n-shell .n-live-new,
  #game-frame #n-shell .n-live-new[data-console='full'] {
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: 105px minmax(0, 1fr) auto;
    grid-template-areas: 'score score' 'ground side' 'ground controls';
  }
  #game-frame #n-shell .n-live-new .n-live-contestants { display: grid; grid-column: 2; grid-row: 2; align-self: end; grid-template-columns: minmax(0, 1fr); padding: 0; }
  #game-frame #n-shell .n-live-new .n-live-batting-pair { grid-area: auto; grid-template-columns: minmax(0, 1fr); }
  #game-frame #n-shell .n-live-new .n-live-batting-pair > .n-live-player-card:first-child { border-right: 0; }
  #game-frame #n-shell .n-live-new .n-live-bowler-card { grid-area: auto; height: auto; min-height: 64px; border: 0; }
  #game-frame #n-shell .n-live-new[data-console='full'] .n-live-bowler-card { min-height: 64px; height: auto; }
  #game-frame #n-shell .n-live-new .n-live-bowler-card .n-live-player-copy { flex-direction: row; align-items: center; }
  #game-frame #n-shell .n-live-new .n-live-bowler-card .n-live-player-copy > strong { font-size: var(--type-body); }
  #game-frame #n-shell .n-live-new > .n-live-feed-new { grid-area: side; align-self: start; }
  #game-frame #n-shell .n-live-new .n-live-dock { display: grid; grid-area: controls; gap: 0; padding: 0; }
  #game-frame #n-shell .n-live-new .n-live-console,
  #game-frame #n-shell .n-live-new .n-live-delivery-actions { grid-area: auto; }
  #game-frame .n-live-new .n-live-match-context { display: none; }
  #game-frame .n-live-new .n-live-conditions { font-size: var(--type-caption) !important; }
}

@media (max-height: 600px) {
  #game-frame #n-shell.n-live-mode #n-app { overflow-y: auto; }
  #game-frame #n-shell .n-live-new { min-height: 660px; height: 660px; max-height: none; }
  #game-frame .n-live-new .n-live-player-metrics { display: flex; }
  #game-frame .n-live-new .n-live-delivery-actions { position: sticky; bottom: 0; z-index: 4; }
}
