/* Casual career is the main path. Detailed match controls remain an explicit choice. */
.play-style {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 14px;
  background: var(--ui-surface, #172c36);
  border-bottom: 1px solid var(--edge);
  font-size: var(--type-caption);
  flex: 0 0 auto;
}
.play-style .game-button {
  min-height: 36px;
  background: transparent;
  font-size: var(--type-caption);
  padding: 5px 10px;
  flex-shrink: 0;
}
.play-style + .match-screen {
  height: calc(100% - 47px);
}
.title-actions [data-action='new-career'],
.title-actions [data-action='career'] {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}
.title-actions:has([data-action='career']) [data-action='new-career'],
.title-actions [data-action='quick-play'] {
  background: transparent;
  color: var(--cream);
  border-color: var(--edge);
}
.career-start-options {
  border: 0;
  margin: 15px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.career-start-options legend {
  font-weight: 700;
  margin-bottom: 8px;
}
.career-start-options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--edge);
  padding: 12px;
  border-radius: 4px;
}
.career-start-options input {
  min-height: 0;
  flex: 0 0 auto;
  margin-top: 4px;
}
.career-start-options strong,
.career-start-options span {
  display: block;
}
.career-start-options span {
  font-size: var(--type-body);
  color: var(--dim);
}
.season-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 100%;
  padding: 30px;
  text-align: center;
}
.season-welcome h2 {
  font-size: var(--type-score);
  line-height: 1.2;
}
.season-welcome > p {
  max-width: 500px;
  color: var(--dim);
  font-size: var(--type-body);
}
.welcome-core {
  display: flex;
  gap: 22px;
}
.welcome-core > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  max-width: 115px;
}
.welcome-core strong {
  font-size: var(--type-caption);
}
.season-welcome [data-action='assemble-season'] {
  background: var(--gold);
  color: var(--night);
  min-height: 52px;
}
#game-shell .is-casual .dugout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow: auto;
}
.casual-contestants {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.casual-player {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.casual-player .pixel-portrait {
  flex: 0 0 auto;
  width: 36px;
  height: 43px;
}
.casual-player strong {
  display: block;
  font-size: var(--type-caption);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.casual-player span {
  display: block;
  font-size: var(--type-caption);
  color: var(--dim);
}
.casual-phase {
  font-size: var(--type-name);
  font-weight: 700;
  color: var(--gold);
}
.casual-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  flex: 0 0 auto;
}
.casual-plans .game-button {
  min-width: 0;
  padding: 9px 5px;
  min-height: 50px;
  font-size: var(--type-caption);
  line-height: 1.35;
}
.casual-plans [aria-pressed='true'] {
  background: #a4d3b4;
  color: #162b32;
  border-color: #c5e2cd;
}
.casual-plan-hint {
  font-size: var(--type-caption);
  line-height: 1.5;
  color: var(--dim);
  min-height: 36px;
}
.casual-play-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}
.casual-play-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}
.playback-speed-cycle {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 56px;
  padding: 6px 10px;
}
.casual-play-controls > .playback-speed-cycle {
  grid-column: 2;
}
.playback-speed-cycle small {
  font-size: var(--type-micro);
  font-weight: var(--weight-label);
}
.casual-play-footer [data-action='moment'] {
  background: var(--gold);
  color: var(--night);
  min-height: 50px;
  font-size: var(--type-section);
}
.casual-play-footer > p {
  font-size: var(--type-caption);
  color: var(--dim);
  line-height: 1.5;
}
.moment-review {
  border-left: 3px solid var(--mint);
  padding-left: 10px;
  font-size: var(--type-caption);
}
.moment-review strong {
  display: block;
  color: var(--mint);
  font-size: var(--type-section);
}
.moment-review p {
  color: var(--dim);
  margin-top: 3px;
}
.innings-standout {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
}
.innings-standout strong,
.innings-standout span {
  display: block;
}
.innings-standout span {
  font-size: var(--type-caption);
  color: var(--dim);
}
.innings-standout strong {
  font-size: var(--type-name);
}
.innings-standout p {
  font-size: var(--type-body);
}
.is-casual .field-toolbar .field-summary p {
  font-size: var(--type-caption);
}
@container game (max-width:700px) {
  .play-style {
    padding: 3px 10px;
    gap: 8px;
    font-size: var(--type-caption);
  }
  .play-style .game-button {
    font-size: var(--type-caption);
    min-height: 36px;
    padding: 5px 7px;
  }
  .season-welcome {
    padding: 20px 16px;
    justify-content: flex-start;
  }
  .season-welcome h2 {
    font-size: var(--type-number);
  }
  .welcome-core {
    gap: 14px;
  }
  .welcome-core .pixel-portrait {
    width: 58px;
    height: 70px;
  }
  .season-welcome > .game-button {
    width: 100%;
  }
  .is-casual .match-arena {
    flex: 1;
    min-height: 0;
  }
  .is-casual .stadium-wrap {
    min-height: 150px;
  }
  .is-casual .field-toolbar {
    min-height: 42px;
    padding: 4px 10px;
  }
  .is-casual .match-commentary {
    min-height: 42px;
  }
  .is-casual .match-commentary p {
    max-height: 32px;
    overflow: auto;
  }
  .is-casual .field-toolbar .game-button {
    min-height: 36px;
  }
  .is-casual .field-summary strong {
    font-size: var(--type-caption);
  }
  .is-casual .pitch-label > small {
    display: none;
  }
  .play-style + .match-screen.is-casual {
    height: auto;
    min-height: calc(100% - 43px);
  }
  .is-casual .stop-over:not([hidden]) {
    position: fixed;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    left: 22px;
    right: 22px;
    z-index: 20;
    min-height: 46px;
    background: #68453d;
    color: #fff1df;
  }
  #game-shell .is-casual .dugout {
    padding: 9px 10px;
    gap: 7px;
    overflow: visible;
    border-top: 1px solid var(--edge);
  }
  .casual-contestants {
    gap: 10px;
  }
  .casual-phase {
    font-size: var(--type-section);
  }
  .casual-plans .game-button {
    min-height: 46px;
  }
  .casual-plan-hint {
    min-height: 0;
    font-size: var(--type-caption);
  }
  .casual-play-footer {
    gap: 4px;
  }
  .casual-play-footer [data-action='moment'] {
    min-height: 48px;
  }
  .casual-play-footer > p {
    font-size: var(--type-caption);
  }
  .moment-review {
    font-size: var(--type-caption);
  }
  .moment-review strong {
    font-size: var(--type-body);
  }
  .is-casual {
    height: auto;
    min-height: 100%;
  }
  .is-casual .stadium-column {
    min-height: 234px;
    flex: 1 0 234px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .moment-review {
    animation: none;
  }
}
/* Keep next-ball controls visible above the scrollable players and tactics. */
@container game (min-width:701px) {
  .dugout > .bowl-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
  #game-shell .is-casual .casual-play-footer {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 2;
    margin-top: 0;
    padding-bottom: 6px;
    background: var(--navy);
  }
}
