/* Native game objects inherit the club's fixed identity. */
.pm-preview {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
}
.pm-preview img {
  width: 112px;
  height: 112px;
}
.pm-preview strong {
  font-size: 24px;
}
.pm-preview p {
  margin: 8px 0;
}
.pm-preview span {
  color: var(--muted);
  font-size: 13px;
}
.premium-game {
  min-width: 0;
  color: var(--ink);
}
.pm-guide {
  padding: 22px;
  background: var(--club-light-blue);
  border-radius: 10px;
}
.pm-guide > div:first-child {
  display: flex;
  gap: 16px;
  align-items: center;
}
.pm-guide img {
  flex: 0 0 56px;
}
.pm-guide h3 {
  margin: 0;
  font-size: 22px;
}
.pm-guide p {
  margin: 6px 0 0;
  max-width: 72ch;
}
.pm-edition {
  margin-top: 16px;
  font-size: 13px;
}
.pm-edition summary {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pm-edition p {
  line-height: 2;
  max-width: 75ch;
}
.pm-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pm-action,
.pm-object {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  text-align: right;
  line-height: 1.8;
}
.pm-action:hover:not(:disabled),
.pm-object:hover {
  border-color: var(--club-blue);
  background: var(--club-light-blue);
}
.pm-action:disabled {
  cursor: default;
  opacity: 0.65;
}
.pm-object.selected,
.pm-action.in-hand {
  border: 2px solid var(--club-blue);
  background: var(--club-light-blue);
}
.pm-action:focus-visible,
.pm-object:focus-visible,
.pm-scroll:focus-visible {
  outline: 3px solid var(--club-blue);
  outline-offset: 3px;
}
.pm-quick > .pm-action {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.pm-quick > .pm-action:hover:not(:disabled) {
  background: var(--green-hover);
}
.pm-note {
  color: var(--muted);
}
.pm-summary,
.pm-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 20px 0;
}
.pm-summary span,
.pm-resources span {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.pm-summary strong,
.pm-resources strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.pm-section {
  margin-top: 30px;
}
.pm-section > h4 {
  font-size: 18px;
  margin: 0 0 14px;
}
.pm-section h5 {
  font-size: 15px;
  margin: 0 0 10px;
}
.pm-hand {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}
.pm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 144px;
  min-height: 184px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
  gap: 6px;
}
.pm-card strong {
  font-size: 15px;
}
.pm-card small {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.pm-card-kind {
  font-size: 12px;
  color: var(--secondary-text);
}
.pm-card img {
  height: 64px;
  width: 64px;
}
.pm-secret {
  margin: 22px 0;
  padding: 18px;
  background: var(--club-light-blue);
  border-radius: 8px;
}
.pm-secret p {
  margin: 6px 0 0;
}
.pm-context {
  margin: 22px 0;
  padding: 20px;
  border: 2px solid var(--club-blue);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  scroll-margin: 18px;
}
.pm-context h4 {
  flex-basis: 100%;
  margin: 0 0 4px;
}
.pm-context form,
.pm-alternate form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.pm-context label,
.pm-alternate label {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}
.pm-context select,
.pm-alternate select {
  width: 100%;
  max-width: 100%;
  font: inherit;
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
}
.pm-alternate {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.pm-alternate summary {
  cursor: pointer;
}
.pm-alternate form {
  margin-top: 14px;
}
.pm-people,
.pm-merchants,
.pm-racers,
.pm-chains {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.pm-people article,
.pm-merchants article,
.pm-racers article,
.pm-chains article {
  flex: 1 1 180px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.pm-people p,
.pm-racers p,
.pm-chains p,
.pm-merchants p {
  margin: 6px 0;
  font-size: 13px;
}
.pm-bag {
  position: relative;
  height: 125px;
  width: 130px;
  margin: 12px auto;
}
.pm-bag svg {
  width: 100%;
  height: 100%;
  fill: #d9ab6b;
  stroke: #6f4d2e;
  stroke-width: 2;
}
.pm-bag b {
  position: absolute;
  top: 62px;
  right: 32px;
  font-size: 15px;
}
.pm-bag.active {
  outline: 2px solid var(--club-blue);
  outline-offset: 4px;
  border-radius: 8px;
}
.pm-stock {
  font-size: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pm-evidence .pm-card {
  width: 118px;
  min-height: 156px;
}
.pm-evidence .pm-card img {
  width: 42px;
  height: 42px;
}
.pm-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pm-hints > div {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex: 1 1 135px;
}
.pm-hints span,
.pm-hints strong {
  display: block;
}
.pm-hints span {
  color: var(--muted);
  font-size: 13px;
}
.pm-location-sheet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pm-location-sheet > span {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.pm-location-sheet .pm-action > * {
  display: block;
}
.pm-location-sheet small {
  font-size: 12px;
}
.pm-hp {
  display: flex;
  gap: 4px;
}
.pm-hp i {
  display: block;
  width: 15px;
  height: 15px;
  border: 1px solid var(--danger);
  border-radius: 50%;
}
.pm-hp i.filled {
  background: var(--danger);
}
.pm-eliminated {
  opacity: 0.65;
}
.pm-fields {
  display: flex;
  gap: 18px;
}
.pm-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-height: 180px;
  background: #f0f6ed;
  border: 1px solid #9bad92;
  border-radius: 8px;
  padding: 16px;
}
.pm-field img {
  height: 60px;
  width: 60px;
}
.pm-field > span:first-child {
  font-size: 13px;
}
.pm-market-bean {
  display: grid;
  gap: 8px;
  max-width: 240px;
}
.pm-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overscroll-behavior: contain;
}
.pm-hotel-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  min-width: 780px;
  direction: ltr;
  background: var(--board-ground);
  gap: 3px;
  padding: 8px;
}
.pm-hotel-cell {
  min-width: 0;
  min-height: 64px;
  padding: 5px;
  border-radius: 3px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  justify-content: center;
  text-align: center;
  gap: 2px;
}
.pm-hotel-cell small {
  color: var(--muted);
  font-size: 11px;
}
.pm-hotel-cell span {
  font-size: 10px;
}
.pm-hotel-cell strong {
  font-size: 11px;
}
.pm-hotel-cell.chain-0 {
  background: #c7d9ff;
}
.pm-hotel-cell.chain-1 {
  background: #f5d4bb;
}
.pm-hotel-cell.chain-2 {
  background: #c8e5d7;
}
.pm-hotel-cell.chain-3 {
  background: #dfd0ed;
}
.pm-hotel-cell.chain-4 {
  background: #f5cbd4;
}
.pm-hotel-cell.chain-5 {
  background: #e8ddb5;
}
.pm-hotel-cell.chain-6 {
  background: #bfe1e5;
}
.pm-chains h5 {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pm-chains i,
.pm-racers i {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--player);
  border-radius: 3px;
}
.pm-ledger > p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pm-forest-map,
.pm-brass-map,
.pm-circuit {
  position: relative;
  min-width: 700px;
  height: 570px;
  background: #eef4ec;
  direction: ltr;
}
.pm-forest-map > svg,
.pm-brass-map > svg,
.pm-circuit > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pm-forest-map > svg path {
  stroke: #9aab91;
  stroke-width: 0.7;
  fill: none;
}
.pm-clearing,
.pm-industry-city {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 145px;
  direction: rtl;
}
.pm-clearing-button {
  width: 100%;
  min-height: 116px;
  border-radius: 28px;
  background: #fffdf3;
  padding: 10px;
  font-size: 12px;
}
.pm-armies {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.pm-armies > span {
  border-bottom: 2px solid var(--player);
  font-size: 11px;
}
.pm-clearing-button > small {
  color: var(--muted);
  font-size: 11px;
}
.pm-sites {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.pm-site {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 158px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  font-size: 14px;
}
.pm-site small {
  color: var(--muted);
  font-size: 12px;
}
.pm-site.occupied {
  background: var(--club-light-blue);
}
.pm-brass-map {
  height: 670px;
  background: #edf1f6;
}
.pm-brass-map > svg path {
  stroke-width: 1.1;
  fill: none;
}
.pm-industry-city {
  width: 145px;
}
.pm-city-button {
  width: 100%;
  padding: 8px;
  background: var(--surface);
  font-size: 13px;
}
.pm-city-button > div {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.pm-industry-tile {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 5px;
  border: 1px solid var(--player);
  border-radius: 4px;
  background: var(--surface);
  font-size: 11px;
}
.pm-industry-tile small {
  font-size: 10px;
}
.pm-industry-tile.empty {
  border-color: var(--line);
  color: var(--muted);
}
.pm-circuit {
  background: #edf2e9;
  height: 480px;
}
.pm-road {
  fill: none;
  stroke: #516074;
  stroke-width: 12;
  stroke-linejoin: round;
}
.pm-road-line {
  fill: none;
  stroke: white;
  stroke-width: 0.4;
  stroke-dasharray: 2 2;
}
.pm-track-cell {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  min-height: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  justify-content: center;
  color: white;
}
.pm-track-cell > small {
  font-size: 10px;
  background: #3c4a5f;
  padding: 0 2px;
}
.pm-car {
  width: 19px;
  height: 29px;
  border-radius: 5px;
  background: var(--player);
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
  outline: 2px solid white;
}
.pm-speed-sign {
  position: absolute;
  top: 34px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--danger);
  background: white;
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 15px;
}
.pm-race-center {
  position: absolute;
  left: 36%;
  top: 40%;
  display: grid;
  text-align: center;
  color: var(--ink);
  gap: 6px;
}
.pm-race-center strong {
  font-size: 30px;
}
.pm-race-center span {
  font-size: 14px;
}
.pm-racers i {
  margin-left: 8px;
}
@media (max-width: 900px) {
  .pm-sites {
    grid-template-columns: repeat(3, 1fr);
  }
  .pm-evidence {
    grid-template-columns: 1fr;
  }
  .pm-card {
    width: 132px;
  }
  .pm-location-sheet {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .pm-preview {
    padding: 18px;
    gap: 14px;
  }
  .pm-preview img {
    width: 78px;
    height: 78px;
  }
  .pm-preview strong {
    font-size: 20px;
  }
  .pm-guide {
    padding: 16px;
  }
  .pm-guide h3 {
    font-size: 19px;
  }
  .pm-guide > div:first-child {
    align-items: flex-start;
  }
  .pm-guide .game-library-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .pm-guide p {
    font-size: 14px;
  }
  .pm-quick > .pm-action {
    font-size: 13px;
  }
  .pm-section {
    margin-top: 24px;
  }
  .pm-section > h4 {
    font-size: 16px;
  }
  .pm-card {
    width: calc((100% - 12px) / 2);
    min-height: 170px;
  }
  .pm-card img {
    height: 52px;
    width: 52px;
  }
  .pm-evidence .pm-card {
    width: calc((100% - 12px) / 2);
  }
  .pm-sites {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .pm-site {
    min-height: 162px;
    padding: 10px;
    font-size: 13px;
  }
  .pm-context {
    padding: 14px;
  }
  .pm-context .pm-action {
    width: 100%;
  }
  .pm-context label,
  .pm-alternate label {
    min-width: 0;
    flex-basis: 100%;
  }
  .pm-location-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pm-people article,
  .pm-merchants article,
  .pm-racers article,
  .pm-chains article {
    flex-basis: 140px;
    padding: 12px;
  }
  .pm-fields {
    gap: 10px;
  }
  .pm-field {
    padding: 12px;
    min-width: 0;
    font-size: 13px;
  }
  .pm-summary,
  .pm-resources {
    gap: 10px 18px;
  }
  .pm-summary span,
  .pm-resources span {
    font-size: 13px;
  }
  .pm-ledger > p {
    display: grid;
    gap: 4px;
  }
  .pm-ledger span {
    font-size: 13px;
  }
}
.pm-card-art {
  width: 64px;
  height: 64px;
  flex: none;
}
.pm-evidence .pm-card-art {
  width: 42px;
  height: 42px;
}
.pm-field .pm-card-art {
  width: 60px;
  height: 60px;
}

.premium-game .pm-hotel-cell {
  border: 1px solid var(--line);
}
.premium-game .pm-hotel-cell.in-hand {
  border: 2px solid var(--club-blue);
}
.pm-map-note {
  display: none;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
@media (max-width: 800px) {
  .pm-map-note {
    display: block;
  }
}
