@font-face {
  font-family: Manrope;
  src: url('./assets/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #202a54;
  --navy: #28366c;
  --panel: #2e3e77;
  --active: #384eaa;
  --edge: #7487b3;
  --cream: #f5f1e4;
  --dim: #bdc9e7;
  --gold: #ffe269;
  --mint: #8ed4bd;
  --red: #ffc1b3;
  font-family: Manrope, Arial, sans-serif;
  background: #211c25;
  color: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 12px;
  min-height: 100dvh;
  background: #211c25;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button {
  border-radius: 0;
}
#game-shell {
  width: min(560px, 100%);
  height: calc(100dvh - 24px);
  max-height: 940px;
  margin: 0 auto;
  border: 2px solid var(--edge);
  background: var(--navy);
  overflow: hidden;
}
.match-layout {
  height: 100%;
  display: grid;
  grid-template-rows: 86px minmax(180px, 1fr) 57px 51px 220px;
  overflow: hidden;
}
.match-scoreboard {
  background: var(--night);
  position: relative;
  padding: 6px 10px;
  border-bottom: 1px solid var(--edge);
}
#score-header {
  padding-right: 54px;
}
.score-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: 34px;
}
.score-team-name {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-score {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.live-score span {
  font-size: 25px;
  color: var(--gold);
}
.score-overline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1.2;
}
.score-overline > strong {
  white-space: nowrap;
}
.score-overline small {
  font-size: 11px;
  color: var(--dim);
}
.powerplay {
  font-size: 11px;
  color: var(--gold);
  font-weight: 800;
}
.over-progress {
  display: flex;
  gap: 2px;
  flex: 1;
}
.over-progress i {
  height: 8px;
  border: 1px solid var(--edge);
  flex: 1;
  background: transparent;
}
.over-progress i.done {
  background: var(--gold);
  border-color: var(--gold);
}
.over-progress i.current {
  outline: 1px solid white;
  outline-offset: 1px;
}
.score-context {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--dim);
  margin-top: 6px;
  gap: 8px;
}
.score-context #innings-label {
  font-weight: 800;
  color: var(--cream);
}
#pause-button {
  position: absolute;
  right: 9px;
  top: 8px;
  width: 46px;
  height: 47px;
  border: 1px solid var(--edge);
  background: var(--panel);
  color: white;
  font-size: 29px;
  font-weight: 800;
}
.ground-wrap {
  position: relative;
  background: #31513e;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 0;
}
.ground-wrap > canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
  position: absolute;
  inset: 0;
}
.ground-label {
  position: absolute;
  top: 8px;
  left: 9px;
  background: #142d3ce8;
  border: 1px solid #c3cbab;
  padding: 5px 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  z-index: 2;
}
.ground-label b {
  font-size: 18px;
  margin-left: 8px;
}
.field-tool {
  position: absolute;
  background: var(--night);
  border: 1px solid var(--edge);
  height: 47px;
  min-width: 44px;
  display: grid;
  place-items: center;
  padding: 3px 7px;
  font-size: 21px;
  z-index: 2;
  color: white;
  line-height: 1;
}
.field-tool span {
  font-size: 10px;
  font-weight: 800;
}
.score-tool {
  right: 8px;
  top: 8px;
}
.help-tool {
  bottom: 8px;
  left: 8px;
}
.venue-board {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #e8ddae;
  background: #233e32;
  padding: 2px 7px;
  white-space: nowrap;
  color: #fff6d2;
  z-index: 2;
}
.match-commentary {
  padding: 5px 9px;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: var(--panel);
  overflow: hidden;
}
.ball-strip {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 24px;
  font-size: 10px;
}
.ball-strip > #over-label {
  font-weight: 800;
  white-space: nowrap;
}
.recent-balls {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
}
.ball-chip {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  min-width: 23px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: #314879;
  color: white;
}
.ball-chip.boundary {
  background: #68a8c0;
  color: #142d3d;
}
.ball-chip.wicket {
  background: #df8c7c;
  color: #391f2b;
}
#physical-count {
  font-size: 8px;
  color: var(--dim);
  margin-left: auto;
  white-space: nowrap;
}
#ground-caption {
  font-size: 12px;
  line-height: 18px;
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}
.live-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--edge);
  background: #24325e;
  min-width: 0;
  overflow: hidden;
}
.live-player canvas {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.player-copy {
  min-width: 0;
  flex: 1;
}
.player-copy > strong {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-copy > small {
  font-size: 9px;
  color: var(--dim);
  display: block;
}
.player-live-stats {
  text-align: center;
  min-width: 58px;
}
.player-live-stats > strong {
  font-size: 19px;
  color: var(--gold);
  line-height: 1;
}
.player-live-stats > small {
  display: block;
  font-size: 8px;
  color: var(--dim);
}
#opponent-info {
  font-size: 10px;
  color: var(--dim);
  max-width: 110px;
  border-left: 1px solid var(--edge);
  padding-left: 8px;
  line-height: 1.4;
}
#opponent-info strong {
  display: block;
  color: var(--cream);
  font-size: 11px;
}
.action-card {
  background: var(--panel);
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.action-card > div {
  height: 100%;
}
.action-content {
  padding: 8px 9px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}
.action-heading {
  display: none;
}
.control-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0;
}
.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 2px;
}
.control-label span {
  color: var(--dim);
  font-size: 9px;
  font-weight: 500;
}
.segmented {
  display: flex;
  gap: 5px;
}
.segment {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  background: var(--active);
  border: 1px solid var(--edge);
  font-size: 12px;
  padding: 6px 4px;
  font-weight: 700;
}
.segment.selected {
  background: var(--gold);
  color: #18204c;
  border-color: #fff0b0;
}
.action-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 5px;
}
.action-bottom > p {
  display: none;
}
.button {
  border: 1px solid var(--edge);
  min-height: 46px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.2;
}
.button.primary {
  background: var(--gold);
  color: #152043;
  border-color: #ffe991;
}
.button.primary:hover {
  background: #ffe995;
}
.button.secondary {
  background: var(--active);
  color: var(--cream);
}
.button.danger {
  background: #a9454d;
  border-color: #e39a9a;
  color: white;
}
.action-bottom > .button {
  flex: 1;
}
.action-bottom > .primary {
  flex: 1.5;
}
.button span {
  font-size: 17px;
}
.delegation-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 11px;
  min-height: 32px;
  padding: 3px 5px;
}
.delegation-actions .text-button {
  font-size: 10px;
  min-height: 25px;
}
.pitch-controls {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 10px;
  margin: 0;
  flex: 1;
  min-height: 0;
}
.target-dot {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid #fff4c0;
  border-radius: 50%;
  background: #b13a37;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px #50242888;
  pointer-events: none;
}
.action-visual {
  position: absolute;
  inset: 0;
  background: #31513e;
  touch-action: none;
  user-select: none;
  z-index: 4;
  display: grid;
  place-items: center;
}
.action-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}
.executing .ground-label,
.executing .field-tool,
.executing .venue-board {
  display: none;
}
.timer-wrap {
  padding: 0;
}
.timer-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--dim);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 3px;
}
.timer-labels span:nth-child(2) {
  color: var(--gold);
}
.timing-track {
  height: 24px;
  border: 1px solid var(--edge);
  background: #172447;
  position: relative;
  overflow: hidden;
}
.timing-zone {
  position: absolute;
  height: 100%;
  width: 16%;
  left: 42%;
  background: #648d6b;
}
.timing-ideal {
  position: absolute;
  top: 0;
  height: 100%;
  width: 3px;
  background: #fff8c4;
  left: 50%;
}
.timing-cursor {
  position: absolute;
  top: 0;
  height: 100%;
  width: 6px;
  background: var(--gold);
  left: 0;
  box-shadow: 0 0 0 1px #202038;
}
.execution-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  order: 5;
  margin-top: auto;
}
.execution-controls .primary {
  flex: 1;
  min-height: 52px;
  font-size: 17px;
  text-transform: uppercase;
}
.execution-controls small {
  display: none;
}
.execution-hint {
  font-size: 11px !important;
  color: var(--dim);
  line-height: 1.4;
  max-height: 32px;
  overflow: hidden;
  order: 4;
}
.result-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.evidence-chip {
  font-size: 10px;
  padding: 5px 7px;
  background: var(--night);
  border: 1px solid var(--edge);
}
.action-content:has(#next-ball):before {
  content: 'BALL COMPLETE';
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
}
.action-content:has(#next-ball) .execution-hint {
  font-size: 12px !important;
  line-height: 1.5;
  max-height: 55px;
  margin-top: 6px;
}
.simulation-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  gap: 8px;
}
.simulation-card .eyebrow {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
}
.simulation-card h2 {
  font-size: 19px;
  line-height: 1.2;
}
.simulation-card p {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.5;
}
.simulation-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.simulation-actions > button {
  flex: 1;
}
.secondary-page {
  height: 100%;
  overflow: auto;
  padding: 12px;
  background: var(--navy);
}
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.page-nav h2 {
  font-size: 17px;
}
.secondary-page > p {
  font-size: 13px;
  line-height: 1.6;
  margin: 15px 0;
  color: var(--dim);
}
.settings-section {
  border: 1px solid var(--edge);
  padding: 12px;
  margin-bottom: 12px;
  background: var(--panel);
}
.settings-section h3 {
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 9px;
}
.settings-section p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
  margin: 8px 0;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  margin: 14px 0;
}
.toggle-row small {
  display: block;
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}
.toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--gold);
}
.note-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.note-stats b {
  color: var(--gold);
}
.chapter-list {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 12px;
}
.chapter-list li {
  display: flex;
  gap: 10px;
  margin: 8px 0;
}
.chapter-check {
  margin-left: auto;
  color: var(--gold);
}
.scorecard-team {
  font-size: 17px;
  margin: 22px 0 12px;
}
.scorecard-team strong {
  color: var(--gold);
}
.scorecard-team small {
  font-size: 12px;
  color: var(--dim);
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th,
td {
  padding: 9px 5px;
  border-bottom: 1px solid var(--edge);
}
th {
  font-size: 10px;
  color: var(--gold);
}
td:not(:first-child),
th:not(:first-child) {
  text-align: right;
}
td small {
  display: block;
  font-size: 9px;
  color: var(--dim);
  margin-top: 3px;
}
.you-row {
  background: #384b89;
}
.muted-small {
  font-size: 10px;
  color: var(--dim);
  line-height: 1.6;
  margin-top: 5px;
}
.delivery-log {
  font-size: 11px;
  line-height: 1.8;
  color: var(--dim);
  max-height: 330px;
  overflow: auto;
}
.pause-overlay,
.setup-overlay {
  position: fixed;
  inset: 0;
  background: #13172de8;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
}
.pause-dialog {
  width: 380px;
  max-width: 100%;
  background: var(--navy);
  padding: 24px;
  border: 2px solid var(--edge);
  text-align: center;
  box-shadow: 6px 6px 0 #101627;
}
.eyebrow {
  font-size: 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.7px;
}
.pause-dialog h2 {
  font-size: 28px;
  margin: 16px 0;
}
.pause-dialog p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
  margin-bottom: 20px;
}
.pause-dialog .primary {
  width: 100%;
}
.pause-dialog .text-button {
  margin-top: 12px;
  font-size: 12px;
}
.setup-overlay {
  z-index: 25;
  background: #211c25;
  display: block;
}
.setup-dialog {
  width: 520px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--navy);
  padding: 22px;
  border: 2px solid var(--edge);
  box-shadow: 5px 5px 0 #14192e;
}
.setup-dialog > .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
}
.setup-dialog h2 {
  font-size: 29px;
  line-height: 1.12;
  margin: 16px 0 12px;
  letter-spacing: -0.5px;
}
.setup-dialog > p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--dim);
  margin-bottom: 18px;
}
.setup-dialog > .control-label {
  margin-top: 15px;
  font-size: 11px;
}
.setup-dialog > .control-label span {
  font-size: 9px;
}
.name-input {
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--edge);
  background: var(--night);
  padding: 10px 12px;
  color: var(--cream);
  font-size: 15px;
}
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}
.role-card {
  position: relative;
  text-align: left;
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 13px;
  min-height: 112px;
}
.role-card.selected {
  background: var(--active);
  border: 2px solid var(--gold);
  padding: 12px;
}
.role-card strong {
  display: block;
  font-size: 17px;
  color: var(--cream);
  margin-bottom: 7px;
  padding-right: 8px;
}
.role-card.selected strong {
  color: var(--gold);
}
.role-card small {
  display: block;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.5;
}
.role-mark {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 13px;
  color: var(--gold);
}
.setup-dialog > .setup-explainer {
  font-size: 11px;
  line-height: 1.6;
  background: var(--night);
  padding: 10px;
  border: 1px solid var(--edge);
  margin-bottom: 14px;
}
.setup-dialog > .setup-error {
  color: var(--red);
  margin: 8px 0;
}
.setup-dialog > .primary {
  width: 100%;
}
.setup-dialog > .text-button {
  display: block;
  margin: 12px auto 0;
}
.setup-footnote {
  font-size: 9px;
  color: var(--dim);
  display: block;
  text-align: center;
  line-height: 1.5;
  margin-top: 14px;
}
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 15px;
  max-width: 94%;
  border: 1px solid var(--gold);
  background: #172447;
  color: var(--cream);
  font-size: 12px;
  z-index: 30;
}
.save-error {
  color: var(--red);
}
@media (max-width: 620px) {
  body {
    padding: 0;
  }
  #game-shell {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-width: 1px;
  }
  .match-layout {
    grid-template-rows: 82px minmax(180px, 1fr) 55px 49px 220px;
  }
  .setup-overlay {
    padding: 12px;
  }
  .setup-dialog {
    padding: 18px;
  }
  .setup-dialog h2 {
    font-size: 26px;
  }
  .role-card {
    min-height: 115px;
  }
  .role-card strong {
    font-size: 16px;
  }
  .role-card small {
    font-size: 10px;
  }
  .setup-dialog > .control-label span {
    font-size: 8px;
  }
  #opponent-info {
    max-width: 100px;
    font-size: 9px;
  }
  .player-copy > strong {
    font-size: 12px;
  }
  .score-team-name {
    font-size: 12px;
  }
  .live-score {
    font-size: 30px;
  }
  .powerplay {
    font-size: 10px;
  }
  .score-context {
    font-size: 10px;
  }
}
@media (max-height: 700px) {
  .match-layout {
    grid-template-rows: 76px minmax(180px, 1fr) 49px 43px 210px;
  }
  .live-player canvas {
    width: 31px;
    height: 31px;
  }
  .ground-label {
    font-size: 10px;
    padding: 3px 6px;
  }
  .ground-label b {
    font-size: 15px;
  }
  .score-context {
    margin-top: 4px;
    font-size: 9px;
  }
  .match-scoreboard {
    padding-top: 4px;
  }
  .live-score {
    font-size: 28px;
  }
  .score-topline {
    height: 31px;
  }
  .score-overline {
    font-size: 11px;
  }
  #pause-button {
    height: 43px;
    top: 6px;
  }
  .action-content {
    padding: 6px 8px;
    gap: 4px;
  }
  .segment {
    min-height: 38px;
  }
  .button {
    min-height: 43px;
  }
  .execution-controls .primary {
    min-height: 48px;
  }
  .setup-overlay {
    padding: 8px;
  }
  .setup-dialog {
    padding: 14px;
  }
  .setup-dialog h2 {
    font-size: 24px;
    margin: 12px 0 8px;
  }
  .setup-dialog > p {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .role-card {
    min-height: 101px;
    padding: 10px;
  }
  .role-card.selected {
    padding: 9px;
  }
  .role-grid {
    margin: 9px 0 12px;
  }
  .setup-footnote {
    font-size: 8px;
    margin-top: 10px;
  }
  .setup-dialog > .setup-explainer {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .name-input {
    min-height: 41px;
  }
  .setup-dialog > .control-label {
    margin-top: 10px;
  }
}
@media (max-height: 520px) and (min-width: 620px) {
  #game-shell {
    width: min(900px, 100%);
    height: calc(100dvh - 16px);
  }
  body {
    padding: 8px;
  }
  .match-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 75px minmax(180px, 1fr) 49px;
  }
  .match-scoreboard {
    grid-column: 1/-1;
  }
  .ground-wrap {
    grid-column: 1;
    grid-row: 2/4;
  }
  .live-player {
    grid-column: 2;
    grid-row: 3;
  }
  .match-commentary {
    grid-column: 2;
    grid-row: 1;
    display: none;
  }
  .action-card {
    grid-column: 2;
    grid-row: 2;
  }
  .setup-dialog {
    margin: auto;
  }
  .action-content {
    padding: 8px;
  }
  .ground-label {
    font-size: 10px;
  }
  .score-context {
    font-size: 10px;
  }
}
.action-bottom {
  order: 5;
}
.delegation-actions {
  order: 2;
  margin-top: auto;
}
.delegation-actions .text-button {
  min-height: 38px;
  font-size: 10px;
}
.pause-overlay {
  grid-template-columns: minmax(0, 1fr);
}
.pause-dialog {
  width: min(380px, 100%);
  min-width: 0;
  justify-self: center;
}
#pause-button {
  font-size: 0;
}
#pause-button:before {
  content: '';
  position: absolute;
  left: 13px;
  top: 11px;
  width: 6px;
  height: 23px;
  background: var(--cream);
  box-shadow: 12px 0 0 var(--cream);
}
@media (max-height: 700px) {
  .setup-dialog > p:first-of-type {
    display: none;
  }
  .setup-dialog h2 {
    font-size: 24px;
    margin: 10px 0;
  }
  .setup-dialog .role-card {
    min-height: 91px;
  }
  .setup-dialog .role-card small {
    line-height: 1.4;
  }
  .setup-dialog > .setup-explainer {
    padding: 8px;
    margin-bottom: 8px;
  }
  .setup-footnote {
    margin-top: 9px;
  }
}
.speed-tool {
  left: 8px;
  top: 8px;
  font-size: 16px;
  font-weight: 800;
}
.ground-label {
  left: 61px;
}
.toast {
  pointer-events: none;
  top: 90px;
  bottom: auto;
}
/* The field is the controller; the dock contains choices and a short gesture cue. */
.match-layout.touch-playing {
  grid-template-rows: 82px minmax(180px, 1fr) 55px 49px 158px;
}
.match-layout.button-playing {
  grid-template-rows: 82px minmax(180px, 1fr) 55px 49px 260px;
}
.touch-dock {
  height: 100%;
  padding: 9px 10px 5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.touch-instruction strong {
  display: block;
  color: var(--gold);
  font-size: 17px;
  line-height: 1.3;
}
.touch-instruction p {
  color: var(--cream);
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
}
.touch-dock .segment {
  min-height: 42px;
}
.touch-dock .segment:disabled {
  opacity: 1;
  cursor: default;
}
.touch-dock .segment:disabled:not(.selected) {
  color: var(--dim);
  background: var(--night);
}
.touch-tools {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.touch-tools .text-button {
  min-height: 32px;
  font-size: 11px;
}
.button-aim {
  display: flex;
  gap: 5px;
}
.button-playing .touch-instruction p {
  display: none;
}
.button-playing .timing-track {
  flex-shrink: 0;
  height: 18px;
}
.button-playing #execute {
  min-height: 44px;
}
.button-playing .touch-tools {
  margin-top: 0;
}
.action-visual {
  background: repeating-linear-gradient(90deg, #31513e 0 10%, #365840 10% 20%);
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: crosshair;
}
@media (max-height: 700px) {
  .match-layout.touch-playing {
    grid-template-rows: 76px minmax(180px, 1fr) 49px 43px 158px;
  }
  .match-layout.button-playing {
    grid-template-rows: 76px minmax(180px, 1fr) 49px 43px 260px;
  }
  .touch-dock {
    padding-top: 7px;
    gap: 5px;
  }
  .touch-instruction strong {
    font-size: 16px;
  }
}
@media (max-height: 520px) and (min-width: 620px) {
  .match-layout.touch-playing,
  .match-layout.button-playing {
    grid-template-rows: 75px minmax(180px, 1fr) 49px;
  }
}
.shot-readout {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--edge);
  font-size: 13px;
}
.shot-readout strong {
  color: var(--gold);
}
.shot-readout span {
  color: var(--cream);
  font-size: 12px;
}
.action-content:has(.shot-readout):before {
  display: none;
}
