/* Shared Pocket Pavilion career presentation. Canonical source: this Clubs file.
   Sync the identical Nations copy with node tools/sync-pavilion-career.mjs.
   Match controls and pitch layout remain owned by the live-match stylesheets. */
#game-frame {
  --pp-canvas: #102137;
  --pp-surface: #172f43;
  --pp-raised: #223f55;
  --pp-active: #2a5067;
  --pp-edge: #526f85;
  --pp-ink: #f5efdc;
  --pp-muted: #bdd0de;
  --pp-gold: #f3d58d;
  --pp-mint: #a4dfc5;
  --pp-loss: #efb6a5;
  --pp-radius: 5px;
  --pp-gap: 14px;
  --colour-canvas: var(--pp-canvas);
  --colour-surface: var(--pp-surface);
  --colour-raised: var(--pp-raised);
  --colour-active: var(--pp-active);
  --colour-edge: var(--pp-edge);
  --colour-ink: var(--pp-ink);
  --colour-muted: var(--pp-muted);
  --colour-gold: var(--pp-gold);
  --colour-mint: var(--pp-mint);
  --night: var(--pp-canvas);
  --navy: var(--pp-surface);
  --panel: var(--pp-raised);
  --panel2: var(--pp-active);
  --edge: var(--pp-edge);
  --cream: var(--pp-ink);
  --dim: var(--pp-muted);
  --gold: var(--pp-gold);
  --mint: var(--pp-mint);
  --ui-canvas: var(--pp-canvas);
  --ui-surface: var(--pp-surface);
  --ui-raised: var(--pp-raised);
  --ui-active: var(--pp-active);
  --ui-edge: var(--pp-edge);
  --ui-ink: var(--pp-ink);
  --ui-muted: var(--pp-muted);
  --ui-accent: var(--pp-gold);
  color: var(--pp-ink);
}

/* The portfolio surround follows the same light/dark preference in both games. */
#n-view-bar.n-site,
#n-view-bar.n-site .wordmark {
  color: var(--site-ink, #51365f);
}
#n-view-controls .nvs-view-controls {
  border-color: var(--site-line, #d8d0d7);
}
#n-view-controls .nvs-view-controls > .game-button {
  color: var(--site-ink, #51365f);
}
#n-view-controls .nvs-view-controls > [aria-pressed='true'] {
  background: var(--site-ink, #51365f);
  color: var(--paper, #f5f2ed);
}

/* Identical navigation and career identity bands; no live layout overrides. */
#game-frame :is(#game-header, #n-header) .game-topbar {
  background: var(--pp-canvas);
  border-color: var(--pp-edge);
}
#game-frame :is(#game-header, #n-header) .career-strip {
  background: var(--pp-surface);
  border-color: var(--pp-edge);
  color: var(--pp-ink);
}
#game-frame :is(#game-header, #n-header) .game-topbar .game-button {
  color: var(--pp-muted);
}
#game-frame
  :is(#game-header, #n-header)
  .game-topbar
  .audio-toggle[aria-pressed='true']:not(:disabled) {
  color: var(--pp-mint);
}
#game-frame :is(#game-header, #n-header) .game-topbar .game-button:disabled {
  color: var(--pp-muted);
  opacity: 0.5;
  cursor: not-allowed;
}

/* Recorded campaigns and manager evidence share one presentation in both games. */
#game-frame :is(.pp-campaign-dialog, #n-dialog:has(.pp-campaign), #n-dialog:has(.pp-recognition)) {
  position: fixed;
  inset: 10px;
  width: min(1040px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 20px);
  height: max-content;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--pp-canvas);
  color: var(--pp-ink);
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
}
#game-frame
  :is(
    .pp-campaign-dialog-header,
    #n-dialog:has(.pp-campaign) > .n-dialog-header,
    #n-dialog:has(.pp-recognition) > .n-dialog-header
  ) {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--pp-canvas);
  border-bottom: 1px solid var(--pp-edge);
}
#game-frame
  :is(
    .pp-campaign-dialog-header,
    #n-dialog:has(.pp-campaign) > .n-dialog-header,
    #n-dialog:has(.pp-recognition) > .n-dialog-header
  )
  h2 {
  margin: 0;
  color: var(--pp-ink);
  font-size: 20px;
  line-height: 1.3;
}
#game-frame
  :is(
    .pp-campaign-dialog-header,
    #n-dialog:has(.pp-campaign) > .n-dialog-header,
    #n-dialog:has(.pp-recognition) > .n-dialog-header
  )
  .game-button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
  background: var(--pp-raised);
  color: var(--pp-ink);
  font-size: 12px;
}
#game-frame .pp-campaign-dialog > .pp-campaign,
#game-frame #n-dialog:has(.pp-campaign) > .n-dialog-body,
#game-frame #n-dialog:has(.pp-recognition) > .n-dialog-body {
  padding: 16px;
}
#game-frame :is(.pp-campaign, .pp-recognition) {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 14px;
  color: var(--pp-ink);
  font-family: inherit;
}
#game-frame :is(.pp-campaign, .pp-recognition) * {
  box-sizing: border-box;
}
#game-frame :is(.pp-campaign, .pp-recognition) :is(h3, h4, p, dl, ol, ul) {
  margin: 0;
}
#game-frame :is(.pp-campaign, .pp-recognition) :is(h3, h4, strong, p, span, dd) {
  overflow-wrap: anywhere;
}
#game-frame :is(.pp-campaign-header, .pp-campaign-pagination, .pp-recognition-header) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}
#game-frame :is(.pp-campaign-header, .pp-recognition-header) > div {
  min-width: 0;
  flex: 1 1 190px;
}
#game-frame :is(.pp-campaign-header, .pp-recognition-header) h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}
#game-frame :is(.pp-campaign, .pp-recognition) p {
  color: var(--pp-muted);
  font-size: 12px;
  line-height: 1.65;
}
#game-frame :is(.pp-campaign-eyebrow, .pp-recognition-eyebrow) {
  color: var(--pp-mint);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
#game-frame :is(.pp-campaign, .pp-recognition) .game-button,
#game-frame .pp-campaign select {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
  background: var(--pp-raised);
  color: var(--pp-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
}
#game-frame :is(.pp-campaign, .pp-recognition) .game-button.primary {
  background: var(--pp-gold);
  border-color: var(--pp-gold);
  color: var(--pp-canvas);
}
#game-frame :is(.pp-campaign, .pp-recognition) .game-button:disabled {
  background: var(--pp-surface);
  color: var(--pp-muted);
  opacity: 0.5;
  cursor: not-allowed;
}
#game-frame :is(.pp-campaign, .pp-recognition) :is(button, select, [tabindex]):focus-visible {
  outline: 2px solid var(--pp-gold);
  outline-offset: 3px;
}
#game-frame .pp-campaign-filter {
  display: grid;
  gap: 5px;
  color: var(--pp-muted);
  font-size: 11px;
}
#game-frame .pp-campaign-filter select {
  width: 150px;
}
#game-frame :is(.pp-campaign-grid, .pp-recognition-categories) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
#game-frame :is(.pp-campaign-card, .pp-campaign-empty, .pp-recognition-category) {
  display: grid;
  align-content: start;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
}
#game-frame .pp-campaign-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
#game-frame :is(.pp-campaign, .pp-recognition) h4 {
  font-size: 15px;
  line-height: 1.45;
}
#game-frame :is(.pp-campaign-card, .pp-recognition-evidence) .game-button {
  justify-self: start;
  align-self: end;
}
#game-frame .pp-campaign-outcome {
  display: inline-block;
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--pp-gold);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
}
#game-frame .pp-campaign-outcome[data-tone='positive'] {
  color: var(--pp-mint);
}
#game-frame .pp-campaign-outcome[data-tone='negative'] {
  color: var(--pp-loss);
}
#game-frame .pp-campaign-outcome[data-tone='muted'] {
  color: var(--pp-muted);
}
#game-frame .pp-campaign-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
}
#game-frame .pp-campaign-metrics > div {
  padding: 10px;
  background: var(--pp-canvas);
  border: 1px solid var(--pp-edge);
}
#game-frame .pp-campaign-metrics dt {
  color: var(--pp-muted);
  font-size: 10px;
  line-height: 1.5;
}
#game-frame .pp-campaign-metrics dd {
  margin: 5px 0 0;
  color: var(--pp-gold);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}
#game-frame .pp-campaign-coverage {
  padding-left: 10px;
  border-left: 3px solid var(--pp-edge);
}
#game-frame .pp-campaign-pagination {
  align-items: center;
  padding: 10px 0;
  color: var(--pp-muted);
  font-size: 11px;
  line-height: 1.6;
}
#game-frame .pp-campaign-pagination > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#game-frame .pp-campaign-pagination b {
  color: var(--pp-ink);
  font-size: 11px;
}
#game-frame .pp-campaign-standings {
  min-width: 0;
}
#game-frame .pp-campaign-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
}
#game-frame .pp-campaign table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--pp-surface);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  line-height: 1.5;
}
#game-frame .pp-campaign caption {
  padding: 12px;
  background: var(--pp-canvas);
  color: var(--pp-ink);
  font-weight: 800;
  text-align: left;
}
#game-frame .pp-campaign :is(th, td) {
  padding: 11px 9px;
  border-bottom: 1px solid var(--pp-edge);
  text-align: left;
}
#game-frame .pp-campaign thead th {
  background: var(--pp-raised);
  color: var(--pp-muted);
  font-size: 10px;
  white-space: nowrap;
}
#game-frame .pp-campaign abbr {
  text-decoration: none;
}
#game-frame .pp-campaign th[scope='row'] {
  min-width: 150px;
  max-width: 230px;
  color: var(--pp-ink);
}
#game-frame .pp-campaign th[scope='row'] small {
  display: block;
  margin-top: 3px;
  color: var(--pp-mint);
  font-size: 10px;
}
#game-frame .pp-campaign tr.is-user {
  background: var(--pp-active);
}
#game-frame .pp-campaign .is-number {
  text-align: right;
  white-space: nowrap;
}
#game-frame :is(.pp-campaign-matches, .pp-recognition-evidence, .pp-recognition-seasons) {
  display: grid;
  gap: 10px;
  min-width: 0;
}
#game-frame :is(.pp-campaign-matches, .pp-recognition-evidence) ol {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
#game-frame :is(.pp-campaign-matches, .pp-recognition-evidence) li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--pp-edge);
  background: var(--pp-surface);
  border-radius: var(--pp-radius);
}
#game-frame :is(.pp-campaign-matches, .pp-recognition-evidence) li > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 160px;
}
#game-frame :is(.pp-campaign-matches, .pp-recognition-evidence) :is(span, small) {
  font-size: 11px;
  line-height: 1.55;
}
#game-frame :is(.pp-campaign-matches, .pp-recognition-evidence) small {
  color: var(--pp-muted);
}
#game-frame .pp-campaign-notes {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  color: var(--pp-muted);
  font-size: 11px;
  line-height: 1.65;
}
#game-frame .pp-recognition-score {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
}
#game-frame .pp-recognition-score > strong {
  color: var(--pp-gold);
  font-size: 30px;
  line-height: 1.3;
}
#game-frame .pp-recognition-score > strong small {
  color: var(--pp-muted);
  font-size: 13px;
}
#game-frame .pp-recognition :is(progress, meter) {
  width: 100%;
  height: 9px;
  accent-color: var(--pp-mint);
}
#game-frame .pp-recognition-category header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
#game-frame .pp-recognition-category header > strong {
  color: var(--pp-gold);
  font-size: 14px;
  white-space: nowrap;
}
#game-frame .pp-recognition-method {
  min-width: 0;
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
  background: var(--pp-surface);
}
#game-frame .pp-recognition-method > summary {
  min-height: 44px;
  padding: 13px 14px;
  color: var(--pp-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
#game-frame .pp-recognition-method > summary:focus-visible {
  outline: 2px solid var(--pp-gold);
  outline-offset: 3px;
}
#game-frame .pp-recognition-method > div {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}
#game-frame .pp-recognition-seasons ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
#game-frame .pp-recognition-seasons li {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-edge);
  font-size: 11px;
  line-height: 1.5;
}
#game-frame .pp-recognition-seasons li strong {
  color: var(--pp-gold);
}
@media (min-width: 900px) {
  #game-frame :is(.pp-campaign-grid, .pp-recognition-categories) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#game-frame :is(#game-header, #n-header) .career-store {
  background: var(--pp-canvas);
  color: var(--pp-gold);
  border-color: var(--pp-edge);
  border-radius: 4px;
}
#game-frame :is(#game-header, #n-header) .club-label {
  color: var(--pp-ink);
}
#game-frame :is(#game-header, #n-header) .career-progress {
  color: var(--pp-muted);
}
#game-frame :is(#game-header, #n-header) .career-progress b {
  color: var(--pp-gold);
}
#game-frame :is(#navigation, #n-nav) {
  background: var(--pp-canvas);
  border-color: var(--pp-edge);
}
#game-frame :is(#navigation, #n-nav) .game-button {
  --nav-icon-bg: var(--pp-canvas);
  --nav-icon-shade: #91b2be;
  background: transparent;
  color: var(--pp-muted);
  border-radius: 0;
  box-shadow: none;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}
#game-frame :is(#navigation, #n-nav) .game-button[aria-current='page'] {
  --nav-icon-bg: var(--pp-raised);
  --nav-icon-shade: var(--pp-gold);
  background: var(--pp-raised);
  color: var(--pp-gold);
  border-color: var(--pp-gold);
  box-shadow: inset 0 -3px var(--pp-gold);
}

/* Management panels share borders, spacing, headings and readable actions. */
#game-frame :is(.home-card, .nmg-card, .nw-campaign, .nw-format-card, .nw-rule-card) {
  background: var(--pp-surface);
  border-color: var(--pp-edge);
  border-radius: var(--pp-radius);
  padding: 16px;
}
#game-frame :is(.home-next-match, .nmg-fixture-hero) {
  border-top: 3px solid var(--pp-gold);
}
#game-frame :is(.home-card-heading, .nmg-card > header, .nw-section-heading) {
  gap: 12px;
}
#game-frame :is(.home-card-heading h2, .nmg-card h3, .nw-section-heading h3) {
  color: var(--pp-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
#game-frame :is(.home-status, .nmg-eyebrow, .nw-eyebrow) {
  color: var(--pp-muted);
  font-size: 11px;
  line-height: 1.5;
}
#game-frame :is(.home-action-card, .nmg-action-grid > .nmg-action-card) {
  background: var(--pp-surface) !important;
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
}
#game-frame :is(.home-action-card strong, .nmg-action-card strong) {
  color: var(--pp-ink);
  font-size: 14px;
  line-height: 1.35;
}
#game-frame :is(.home-action-card small, .nmg-action-card small) {
  color: var(--pp-muted);
  font-size: 11px !important;
  line-height: 1.5;
}
#game-frame :is(.section-tabs, .squad-roster-tabs, .nmg-tabs, .nw-tabs) {
  border-color: var(--pp-edge);
  border-radius: var(--pp-radius);
}
#game-frame :is(.section-tabs, .squad-roster-tabs, .nmg-tabs, .nw-tabs) > button {
  min-height: 44px;
  color: var(--pp-muted) !important;
  background: var(--pp-surface) !important;
  font-size: 12px;
  line-height: 1.35;
}
#game-frame :is(.section-tabs, .squad-roster-tabs, .nmg-tabs, .nw-tabs) > [aria-pressed='true'] {
  color: var(--pp-gold) !important;
  background: var(--pp-raised) !important;
  border-color: var(--pp-gold);
  box-shadow: inset 0 -3px var(--pp-gold) !important;
}
#game-frame :is(.home-card, .nmg-view, .nw-world, .club-history, .pp-career) .game-button {
  min-height: 44px;
  border-radius: 4px;
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.35;
}
#game-frame :is(.home-card, .nmg-view, .nw-world, .club-history, .pp-career) .game-button.primary {
  background: var(--pp-gold);
  color: var(--pp-canvas);
  border-color: var(--pp-gold);
}
#game-frame :is(.home-card, .nmg-view, .nw-world, .club-history, .pp-career) .game-button:disabled {
  background: var(--pp-canvas);
  color: var(--pp-muted);
  border-color: var(--pp-edge);
  box-shadow: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Archive and record cards use the same palette in either game's sheet. */
#game-frame
  :is(
    #club-history-dialog,
    #n-dialog:has(.n-history-archive),
    #n-dialog[data-record-route='archive']
  ) {
  background: var(--pp-canvas);
  border-color: var(--pp-edge);
  border-radius: 7px;
  color: var(--pp-ink);
}
#game-frame :is(.club-history, .n-history-archive) {
  --history-canvas: var(--pp-canvas);
  --history-surface: var(--pp-surface);
  --history-edge: var(--pp-edge);
  color: var(--pp-ink);
}
#game-frame #n-dialog:has(.n-history-archive) > .n-dialog-header {
  background: var(--pp-canvas);
  border-color: var(--pp-edge);
}
#game-frame
  #n-dialog
  .n-history-archive
  :is(.nw-hero, .nwh-filtered-summary, .nwh-match-card, .nwh-season, .nwh-title),
#game-frame .club-history :is(.ch-hero, .ch-summary, .ch-match-card) {
  background: var(--pp-surface);
  border-color: var(--pp-edge);
  border-radius: var(--pp-radius);
}
#game-frame
  #n-dialog
  .n-history-archive
  :is(.nwh-format-filter .nw-button, .nwh-year-filter select, .nwh-pagination .nw-button),
#game-frame
  .club-history
  :is(.ch-result-filters button, .ch-filterbar select, .ch-pagination button) {
  min-height: 44px;
  background: var(--pp-canvas);
  color: var(--pp-muted);
  border: 1px solid var(--pp-edge);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.35;
}
#game-frame #n-dialog .n-history-archive .nwh-format-filter .nw-button[aria-pressed='true'],
#game-frame .club-history .ch-result-filters button[aria-pressed='true'] {
  background: var(--pp-gold);
  border-color: var(--pp-gold);
  color: var(--pp-canvas);
  font-weight: 800;
}
#game-frame #n-dialog .n-history-archive .nwh-match-card,
#game-frame .club-history .ch-match-card {
  border-top: 3px solid var(--pp-edge);
}
#game-frame #n-dialog .n-history-archive .nwh-match-card.is-win,
#game-frame .club-history .ch-match-card:has(.ch-result[data-result='win']) {
  border-top-color: var(--pp-mint);
}
#game-frame #n-dialog .n-history-archive .nwh-match-card.is-loss,
#game-frame .club-history .ch-match-card:has(.ch-result[data-result='loss']) {
  border-top-color: var(--pp-loss);
}
#game-frame #n-dialog .n-history-archive .nwh-match-card:is(.is-draw, .is-tie),
#game-frame .club-history .ch-match-card:has(.ch-result[data-result='tie']) {
  border-top-color: var(--pp-gold);
}
#game-frame :is(.ch-score-lines, .nwh-recorded-scores) {
  font-variant-numeric: tabular-nums;
}
#game-frame :is(.club-history, .n-history-archive, .n-archive-match) button {
  min-height: 44px;
}
#game-frame #club-history-dialog :is(.scorecard-tabs, .ch-innings-switch) .game-button {
  min-height: 44px;
  border-color: var(--pp-edge);
  border-radius: 4px;
  background: var(--pp-canvas);
  color: var(--pp-muted);
}
#game-frame
  #club-history-dialog
  :is(.scorecard-tabs, .ch-innings-switch)
  .game-button[aria-pressed='true'] {
  background: var(--pp-raised);
  color: var(--pp-gold);
  border-color: var(--pp-gold);
  box-shadow: inset 0 -3px var(--pp-gold);
}
#game-frame #club-history-dialog .scorecard-summary > p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--pp-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* One chapter board and badge vocabulary across Clubs and Nations. */
#game-frame :is(.pp-career-dialog, #n-dialog:has(.pp-career)) {
  position: fixed;
  inset: 10px;
  width: min(1040px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  height: max-content;
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  transform: none;
  background: var(--pp-canvas);
  color: var(--pp-ink);
  border: 1px solid var(--pp-edge);
  border-radius: 7px;
}
#game-frame :is(.pp-career-dialog-header, #n-dialog:has(.pp-career) > .n-dialog-header) {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pp-edge);
  background: var(--pp-canvas);
}
#game-frame .pp-career-dialog-header h2,
#game-frame #n-dialog:has(.pp-career) > .n-dialog-header h2 {
  margin: 0;
  color: var(--pp-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}
#game-frame .pp-career-dialog-header .game-button,
#game-frame #n-dialog:has(.pp-career) > .n-dialog-header .game-button,
#game-frame .pp-career-dialog-actions .game-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--pp-edge);
  border-radius: 4px;
  background: var(--pp-raised);
  color: var(--pp-ink);
  font-size: 12px;
}
#game-frame .pp-career-dialog > .pp-career {
  margin: 16px;
}
#game-frame .pp-career-dialog-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 16px;
}
#game-frame #n-dialog:has(.pp-career) > .n-dialog-body {
  padding: 16px;
}
#game-frame .pp-career {
  display: grid;
  grid-column: 1 / -1;
  gap: var(--pp-gap);
  min-width: 0;
  padding: 18px;
  background: var(--pp-surface);
  border: 1px solid var(--pp-edge);
  border-top: 3px solid var(--pp-gold);
  border-radius: var(--pp-radius);
  color: var(--pp-ink);
  font-family: Manrope, Arial, sans-serif;
  text-align: left;
}
#game-frame .pp-career :is(h3, h4, p, ol, ul) {
  margin: 0;
}
#game-frame .pp-career-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
#game-frame .pp-career-header > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}
#game-frame .pp-career-header p,
#game-frame .pp-career-eyebrow {
  color: var(--pp-mint);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#game-frame .pp-career h3 {
  color: var(--pp-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
#game-frame .pp-career-header :is(small, .pp-career-detail),
#game-frame .pp-career-header > div > span,
#game-frame .pp-career-summary {
  color: var(--pp-muted);
  font-size: 12px;
  line-height: 1.5;
}
#game-frame .pp-career-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
#game-frame .pp-career-match {
  display: grid;
  align-content: center;
  min-height: 32px;
  border: 1px solid var(--pp-edge);
  border-radius: 3px;
  background: var(--pp-canvas);
  color: var(--pp-muted);
  font:
    800 12px/1.4 ui-monospace,
    Consolas,
    monospace;
  text-align: center;
}
#game-frame .pp-career-match[data-result='win'] {
  color: var(--pp-mint);
  border-color: var(--pp-mint);
}
#game-frame .pp-career-match[data-result='loss'] {
  color: var(--pp-loss);
  border-color: var(--pp-loss);
}
#game-frame .pp-career-match:is([data-result='draw'], [data-result='tie']) {
  color: var(--pp-gold);
}
#game-frame .pp-career-match.is-pending {
  border-style: dashed;
}
#game-frame .pp-career-summary > button.pp-career-match {
  min-height: 44px;
  min-width: 0;
  width: 100%;
  padding: 6px;
  cursor: pointer;
}
#game-frame .pp-career-summary > button.pp-career-match:hover {
  background: var(--pp-active);
}
#game-frame .pp-career-match-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--pp-edge);
}
#game-frame .pp-career-match-list > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#game-frame .pp-career-match-list > header > span {
  color: var(--pp-muted);
  font-size: 11px;
}
#game-frame .pp-career-match-list ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}
#game-frame .pp-career-match-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
  background: var(--pp-canvas);
  color: var(--pp-ink);
  text-align: left;
  white-space: normal;
}
#game-frame button.pp-career-match-row:hover {
  background: var(--pp-active);
}
#game-frame .pp-career-match-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#game-frame .pp-career-match-row small {
  display: block;
  margin-top: 4px;
  color: var(--pp-muted);
  font-size: 10px;
  line-height: 1.4;
}
#game-frame .pp-career-match-row .pp-career-match {
  min-width: 32px;
  width: 32px;
  min-height: 32px;
}
#game-frame .pp-career-match-open {
  color: var(--pp-gold);
  font-size: 18px;
}
#game-frame .pp-career-badge {
  display: grid;
  flex: none;
  align-content: center;
  gap: 4px;
  min-width: 62px;
  padding: 10px;
  background: var(--pp-canvas);
  border: 1px solid var(--pp-gold);
  border-radius: 4px;
  color: var(--pp-gold);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#game-frame .pp-career-badge strong {
  font-size: 25px;
  line-height: 1;
}
#game-frame .pp-career-badge small {
  color: var(--pp-muted);
  font-size: 10px;
  font-weight: 600;
}
#game-frame .pp-career-goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 0;
  list-style: none;
}
#game-frame .pp-career-goal {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--pp-edge);
  border-radius: 4px;
  background: var(--pp-canvas);
}
#game-frame .pp-career-goal > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}
#game-frame .pp-career-goal-icon {
  display: grid;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 30px;
  color: var(--pp-gold);
  border: 1px solid var(--pp-edge);
  font:
    800 15px/1 ui-monospace,
    Consolas,
    monospace;
}
#game-frame .pp-career h4 {
  color: var(--pp-ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}
#game-frame .pp-career-goal p {
  color: var(--pp-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}
#game-frame .pp-career-goal progress {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 0;
  background: var(--pp-raised);
  accent-color: var(--pp-gold);
}
#game-frame .pp-career-goal progress::-webkit-progress-bar {
  background: var(--pp-raised);
}
#game-frame .pp-career-goal progress::-webkit-progress-value {
  background: var(--pp-gold);
}
#game-frame .pp-career-goal progress::-moz-progress-bar {
  background: var(--pp-gold);
}
#game-frame .pp-career-goal > small {
  grid-column: 1 / -1;
  color: var(--pp-muted);
  font-size: 11px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
#game-frame .pp-career-goal .pp-career-evidence-note {
  grid-column: 1 / -1;
  font-size: 10px;
}
#game-frame .pp-career-goal .pp-career-evidence {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--pp-edge);
  background: var(--pp-surface);
  color: var(--pp-gold);
  font-size: 11px;
  white-space: normal;
}
#game-frame .pp-career-goal[data-complete='true'] {
  border-color: var(--pp-mint);
  background: #173a3e;
}
#game-frame .pp-career-goal[data-complete='true'] .pp-career-goal-icon {
  color: var(--pp-mint);
  border-color: var(--pp-mint);
}
#game-frame .pp-career-goal[data-complete='true'] progress {
  accent-color: var(--pp-mint);
}
#game-frame .pp-career-goal[data-complete='true'] progress::-webkit-progress-value {
  background: var(--pp-mint);
}
#game-frame .pp-career-goal[data-complete='true'] progress::-moz-progress-bar {
  background: var(--pp-mint);
}
#game-frame .pp-career-chapter-track {
  display: flex;
  gap: 7px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  list-style: none;
}
#game-frame .pp-career-chapter-track > span {
  flex: none;
  padding: 5px;
  color: var(--pp-muted);
  font-size: 11px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
#game-frame .pp-career-chapter-track button {
  display: grid;
  align-content: center;
  gap: 4px;
  flex: none;
  min-width: 72px;
  min-height: 52px;
  padding: 8px 11px;
  border: 1px solid var(--pp-edge);
  border-radius: 4px;
  background: var(--pp-canvas);
  color: var(--pp-muted);
  font:
    700 12px/1.35 Manrope,
    Arial,
    sans-serif;
  text-align: center;
}
#game-frame .pp-career-chapter-track button[aria-pressed='true'] {
  border-color: var(--pp-gold);
  background: var(--pp-raised);
  color: var(--pp-gold);
  box-shadow: inset 0 -3px var(--pp-gold);
}
#game-frame .pp-career-chapter-track button.is-complete {
  border-top: 3px solid var(--pp-mint);
}
#game-frame .pp-career-chapter-track small {
  color: var(--pp-muted);
  font-size: 10px;
  font-weight: 500;
}
#game-frame .pp-career-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--pp-edge);
  padding-top: 12px;
  color: var(--pp-muted);
  font-size: 11px;
  line-height: 1.5;
}
#game-frame .pp-career-footer strong {
  color: var(--pp-gold);
}
#game-frame .pp-career-footer p {
  color: var(--pp-muted);
  font-size: 11px;
  line-height: 1.6;
}
#game-frame .pp-career-footer > button {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--pp-edge);
  background: var(--pp-raised);
  color: var(--pp-gold);
  font-size: 12px;
}
#game-frame .pp-career-empty {
  padding: 16px;
  border: 1px dashed var(--pp-edge);
  color: var(--pp-muted);
  font-size: 12px;
  line-height: 1.6;
}
#game-frame .pp-career--compact {
  padding: 14px;
  gap: 12px;
}
#game-frame .pp-career--compact h3 {
  font-size: 17px;
}

@media (hover: hover) {
  #game-frame :is(.home-action-card, .nmg-action-grid > .nmg-action-card):hover:not(:disabled),
  #game-frame :is(#navigation, #n-nav) .game-button:hover:not(:disabled),
  #game-frame .pp-career-chapter-track button:hover:not(:disabled) {
    background: var(--pp-raised) !important;
    color: var(--pp-ink);
  }
}
#game-frame :is(.pp-career, .club-history, .n-history-archive) :is(button, select):focus-visible {
  outline: 3px solid var(--pp-gold);
  outline-offset: 3px;
}
@container game (max-width: 620px) {
  #game-frame .pp-career-match-list ol {
    grid-template-columns: minmax(0, 1fr);
  }
  #game-frame .pp-career-goals {
    grid-template-columns: minmax(0, 1fr);
  }
  #game-frame .pp-career-goal {
    gap: 9px 11px;
  }
}
/* Full-width archive dialogs may be wider than the phone-sized game frame. */
@media (max-width: 620px) {
  #game-frame .pp-career-match-list ol {
    grid-template-columns: minmax(0, 1fr);
  }
  #game-frame .pp-career-goals {
    grid-template-columns: minmax(0, 1fr);
  }
  #game-frame .pp-career {
    padding: 14px;
  }
  #game-frame .pp-career-header {
    gap: 10px;
  }
  #game-frame .pp-career h3 {
    font-size: 18px;
  }
}
@media (max-width: 360px) {
  #game-frame .pp-career-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  #game-frame .pp-career * {
    scroll-behavior: auto;
  }
}

/* Saved XIs and touring nominations share the same selection workspace. */
#game-frame :is(.pp-selection-dialog, #n-dialog:has(.pp-selection)) {
  width: min(1040px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  margin: auto;
  overflow: auto;
  color: var(--pp-ink);
  background: var(--pp-canvas);
  border: 1px solid var(--pp-edge);
  border-radius: var(--pp-radius);
}
#game-frame :is(.pp-selection-dialog-header, #n-dialog:has(.pp-selection) > .n-dialog-header) {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--pp-canvas);
  border-bottom: 1px solid var(--pp-edge);
}
#game-frame :is(.pp-selection-dialog-header, #n-dialog:has(.pp-selection) > .n-dialog-header) h2 {
  margin: 0;
  color: var(--pp-ink);
  font-size: 20px;
  line-height: 1.3;
}
#game-frame #n-dialog:has(.pp-selection) > .n-dialog-body {
  padding: 0;
}
#game-frame .pp-selection {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 18px;
  color: var(--pp-ink);
  font:
    12px/1.5 Manrope,
    Arial,
    sans-serif;
}
#game-frame .pp-selection :is(h3, h4, p, ol, ul, dl, dd) {
  margin: 0;
}
#game-frame
  :is(
    .pp-selection-heading,
    .pp-selection-editor-heading,
    .pp-selection-entry,
    .pp-selection-list-heading
  ) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
#game-frame :is(.pp-selection-heading, .pp-selection-entry) > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}
#game-frame :is(.pp-selection, .pp-selection-entry) h3 {
  color: var(--pp-ink);
  font-size: 19px;
  line-height: 1.3;
}
#game-frame .pp-selection h4 {
  color: var(--pp-ink);
  font-size: 13px;
  line-height: 1.4;
}
#game-frame
  :is(.pp-selection-heading p, .pp-selection-estimate-note, .pp-selection-list-heading > span) {
  color: var(--pp-muted);
  font-size: 11px;
  line-height: 1.6;
}
#game-frame :is(.pp-selection, .pp-selection-entry) .pp-selection-eyebrow {
  color: var(--pp-mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
#game-frame .pp-selection-entry {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid var(--pp-edge);
  border-left: 3px solid var(--pp-gold);
  border-radius: var(--pp-radius);
  background: var(--pp-surface);
}
#game-frame .pp-selection-entry h3 {
  font-size: 15px;
}
#game-frame .pp-selection-entry > div > span {
  color: var(--pp-muted);
  font-size: 11px;
}
#game-frame .pp-selection-status {
  display: inline-block;
  flex: none;
  padding: 5px 8px;
  border: 1px solid var(--pp-edge);
  border-radius: 3px;
  color: var(--pp-muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
#game-frame .pp-selection-status.is-ready {
  color: var(--pp-mint);
  border-color: var(--pp-mint);
}
#game-frame :is(.pp-selection-status.is-warning, .pp-selection-player-warning) {
  color: var(--pp-loss);
}
#game-frame
  :is(
    .pp-selection-lock,
    .pp-selection-error,
    .pp-selection-notice,
    .pp-selection-issues,
    .pp-selection-confirm
  ) {
  padding: 12px;
  border: 1px solid var(--pp-edge);
  border-radius: 4px;
  background: var(--pp-surface);
  font-size: 12px;
  line-height: 1.5;
}
#game-frame :is(.pp-selection-lock, .pp-selection-error, .pp-selection-issues) {
  color: var(--pp-loss);
  border-left: 3px solid var(--pp-loss);
}
#game-frame .pp-selection-notice {
  color: var(--pp-mint);
  border-left: 3px solid var(--pp-mint);
}
#game-frame .pp-selection-confirm {
  display: grid;
  gap: 12px;
  border-color: var(--pp-gold);
}
#game-frame .pp-selection-issues {
  display: grid;
  gap: 8px;
}
#game-frame .pp-selection-issues ul {
  padding-left: 18px;
}
#game-frame .pp-selection-warnings {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--pp-gold);
  color: var(--pp-gold);
  font-size: 11px;
}
#game-frame .pp-selection-warnings ul {
  padding-left: 18px;
}
#game-frame .pp-selection-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}
#game-frame .pp-selection-tabs button {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 11px 8px;
  color: var(--pp-muted);
  background: var(--pp-surface);
  border: 1px solid var(--pp-edge);
  border-radius: 4px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}
#game-frame .pp-selection-tabs button[aria-pressed='true'] {
  color: var(--pp-gold);
  background: var(--pp-raised);
  border-color: var(--pp-gold);
  box-shadow: inset 0 -3px var(--pp-gold);
}
#game-frame .pp-selection-tabs small {
  color: var(--pp-muted);
  font-size: 10px;
  font-weight: 500;
}
#game-frame .pp-selection-editor {
  display: grid;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--pp-edge);
  background: var(--pp-surface);
  border-radius: var(--pp-radius);
}
#game-frame :is(.pp-selection-comparison, .pp-selection-saved-list, .pp-selection-player-list) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 0;
  list-style: none;
}
#game-frame :is(.pp-selection-estimates, .pp-selection-empty) {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  background: var(--pp-canvas);
  border: 1px solid var(--pp-edge);
}
#game-frame .pp-selection-estimates dl {
  display: grid;
  gap: 8px;
}
#game-frame .pp-selection-estimates dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
#game-frame .pp-selection-estimates dt {
  color: var(--pp-muted);
  font-size: 11px;
}
#game-frame .pp-selection-estimates dd {
  color: var(--pp-gold);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#game-frame .pp-selection-coverage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#game-frame .pp-selection-coverage > div {
  min-width: 0;
  padding: 11px 8px;
  background: var(--pp-canvas);
  border: 1px solid var(--pp-edge);
  text-align: center;
}
#game-frame .pp-selection-coverage dt {
  color: var(--pp-muted);
  font-size: 10px;
}
#game-frame .pp-selection-coverage dd {
  margin-top: 4px;
  color: var(--pp-gold);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#game-frame .pp-selection-saved-player {
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--pp-edge);
  background: var(--pp-canvas);
}
#game-frame .pp-selection-order {
  color: var(--pp-gold);
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#game-frame :is(.pp-selection-player-copy, .pp-selection-save label) {
  display: grid;
  gap: 4px;
  min-width: 0;
}
#game-frame .pp-selection-player-copy strong {
  color: var(--pp-ink);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#game-frame .pp-selection-player-copy :is(small, span) {
  color: var(--pp-muted);
  font-size: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#game-frame .pp-selection-player-copy .pp-selection-player-warning {
  color: var(--pp-loss);
}
#game-frame .pp-selection-missing-portrait {
  display: grid;
  place-items: center;
  width: 34px;
  height: 42px;
  color: var(--pp-muted);
  background: var(--pp-raised);
  font-size: 20px;
}
#game-frame .pp-selection-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
#game-frame .pp-selection-player {
  display: grid;
  grid-template-columns: 24px 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 86px;
  width: 100%;
  padding: 10px;
  color: var(--pp-ink);
  background: var(--pp-surface);
  border: 1px solid var(--pp-edge);
  border-radius: 4px;
  text-align: left;
  white-space: normal;
}
#game-frame .pp-selection-player.is-selected {
  border-color: var(--pp-mint);
  background: #173a3e;
}
#game-frame .pp-selection-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  color: var(--pp-muted);
  border: 1px solid var(--pp-edge);
  font:
    800 17px/1 ui-monospace,
    Consolas,
    monospace;
}
#game-frame .pp-selection-player.is-selected .pp-selection-check {
  color: var(--pp-mint);
  border-color: var(--pp-mint);
}
#game-frame .pp-selection-energy {
  display: grid;
  gap: 4px;
  color: var(--pp-mint);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#game-frame .pp-selection-energy small {
  color: var(--pp-muted);
  font-size: 9px;
  font-weight: 500;
}
#game-frame .pp-selection-energy b {
  font-size: 17px;
}
#game-frame .pp-selection .pp-selection-report {
  display: grid;
  place-items: center;
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  padding: 7px;
  color: var(--pp-gold);
  background: var(--pp-canvas);
  border: 1px solid var(--pp-edge);
}
#game-frame .pp-selection-save {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
#game-frame .pp-selection-save label {
  color: var(--pp-muted);
  font-size: 11px;
}
#game-frame .pp-selection-save input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--pp-edge);
  background: var(--pp-canvas);
  color: var(--pp-ink);
  font:
    700 13px/1.4 Manrope,
    Arial,
    sans-serif;
}
#game-frame .pp-selection-save > p {
  grid-column: 1 / -1;
}
#game-frame .pp-selection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#game-frame .pp-selection-draft-tools:empty {
  display: none;
}
#game-frame :is(.pp-selection, .pp-selection-entry) .game-button,
#game-frame .pp-selection-dialog-header .game-button {
  min-height: 44px;
  font-size: 12px;
  line-height: 1.4;
}
#game-frame .pp-selection :is(button, input):focus-visible {
  outline: 3px solid var(--pp-gold);
  outline-offset: 2px;
}
#game-frame .pp-selection button:disabled,
#game-frame .pp-selection input:disabled {
  cursor: default;
  opacity: 0.55;
}
@container game (max-width: 740px) {
  #game-frame :is(.pp-selection-saved-list, .pp-selection-player-list) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 740px) {
  #game-frame :is(.pp-selection-saved-list, .pp-selection-player-list) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  #game-frame .pp-selection {
    gap: 14px;
    padding: 14px;
  }
  #game-frame .pp-selection-editor {
    padding: 12px;
  }
  #game-frame :is(.pp-selection-heading, .pp-selection-editor-heading, .pp-selection-list-heading) {
    align-items: start;
    flex-wrap: wrap;
    gap: 10px;
  }
  #game-frame .pp-selection-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
  #game-frame .pp-selection-saved-player {
    grid-template-columns: 22px 34px minmax(0, 1fr) 44px;
    gap: 8px;
  }
  #game-frame .pp-selection-saved-player > .pp-selection-status {
    display: none;
  }
  #game-frame .pp-selection-save {
    grid-template-columns: minmax(0, 1fr);
  }
  #game-frame .pp-selection-coverage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #game-frame .pp-selection-player {
    grid-template-columns: 22px 32px minmax(0, 1fr) 32px;
    gap: 7px;
    padding: 9px;
  }
  #game-frame .pp-selection-player .pixel-portrait {
    max-width: 32px;
  }
  #game-frame .pp-selection-entry {
    gap: 10px;
    padding: 12px;
  }
}
