/* Readable city spaces and physical pieces, scoped to the existing Monopoly table. */
.st-monopoly .mp-turn-desk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 16px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.st-monopoly .mp-location {
  display: flex;
  align-items: center;
  gap: 12px;
}
.st-monopoly .mp-location > div {
  display: grid;
  gap: 4px;
}
.st-monopoly .mp-location span:not(.mp-token),
.st-monopoly .mp-dice-total {
  color: var(--muted);
  font-size: 13px;
}
.st-monopoly .mp-location strong {
  font-size: 20px;
}
.mp-token {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--token);
  background: #fff1d9;
  border: 1px solid #b9af93;
  border-radius: 50%;
  box-shadow: 0 2px 3px #14213b20;
}
.mp-token svg {
  width: 88%;
  height: 88%;
}
.st-monopoly .mp-location > .mp-token {
  width: 48px;
  height: 48px;
}
.st-monopoly .mp-roll {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.st-monopoly .st-dice {
  margin: 0;
  gap: 10px;
  direction: ltr;
}
.st-monopoly .st-dice > .mp-die {
  width: 48px;
  height: 48px;
  color: var(--ink);
  background: #fff9e8;
  border: 1px solid #b9ac8d;
  border-radius: 8px;
  box-shadow: 0 3px 5px #14213b1a;
}
.st-monopoly .mp-die svg {
  width: 90%;
  height: 90%;
  fill: currentColor;
}
.st-monopoly .mp-map-hint {
  display: none;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.st-monopoly .st-city-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--club-blue) var(--paper);
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--line);
}
.st-monopoly .st-city-scroll:focus-visible {
  outline: 3px solid var(--club-blue);
  outline-offset: 3px;
}
.st-monopoly .st-city-board {
  grid-template-columns: 124px repeat(9, minmax(64px, 1fr)) 124px;
  grid-template-rows: 140px repeat(9, 72px) 140px;
  min-width: 834px;
  aspect-ratio: auto;
  margin: 0;
  gap: 1px;
  border: 0;
  background: #b9af93;
}
.st-monopoly .st-estate {
  background: #fff9e8;
  border: 0;
  outline: 0;
  min-width: 0;
  isolation: isolate;
}
.st-monopoly .st-estate > .st-map-button {
  position: relative;
  min-height: 44px;
  padding: 14px 4px 6px;
  gap: 4px;
  justify-content: start;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.st-monopoly .st-estate > .st-map-button:hover {
  background: #e6eeff;
}
.st-monopoly .st-estate > .st-map-button.selected {
  background: #dbe4f1;
  outline: 3px solid var(--club-blue);
  outline-offset: -3px;
}
.st-monopoly .st-estate > .st-map-button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}
.st-monopoly .mp-estate-band {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--estate);
}
.st-monopoly .st-estate-name {
  font-size: 11px;
  font-weight: 750;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.st-monopoly .st-estate .mp-price {
  font-size: 10px;
  color: #52627b;
  line-height: 1.6;
}
.st-monopoly .mp-space-art {
  width: 26px;
  height: 26px;
  flex: none;
  color: #52627b;
}
.st-monopoly .mp-corner .mp-space-art {
  width: 32px;
  height: 32px;
  color: #2859b8;
}
.st-monopoly .mp-corner {
  background: #eaf0f8;
}
.st-monopoly .mp-corner .st-estate-name {
  font-size: 13px;
}
.st-monopoly .mp-owner {
  position: absolute;
  top: 9px;
  left: 2px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  background: var(--owner);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}
.st-monopoly .mp-current > .st-map-button {
  box-shadow: inset 0 0 0 2px var(--club-blue);
}
.st-monopoly .st-estate-pawns {
  left: 4px;
  right: 4px;
  bottom: 3px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  max-width: 78px;
  margin: auto;
}
.st-monopoly .st-estate-pawns .mp-token {
  width: 24px;
  height: 24px;
}
.st-monopoly .mp-left .st-estate-pawns,
.st-monopoly .mp-right .st-estate-pawns {
  left: auto;
  right: 3px;
  top: 13px;
  bottom: auto;
  max-width: 50px;
}
.st-monopoly
  :is(.mp-left, .mp-right):has(.st-estate-pawns:not(:empty))
  > .st-map-button {
  padding-right: 54px;
}
.st-monopoly
  :is(.mp-top, .mp-bottom, .mp-corner):has(.st-estate-pawns:not(:empty))
  > .st-map-button {
  padding-bottom: 28px;
}
.st-monopoly
  :is(.mp-top, .mp-bottom, .mp-corner):has(
    [data-count="4"],
    [data-count="5"],
    [data-count="6"]
  )
  > .st-map-button {
  padding-bottom: 52px;
}
.st-monopoly .mp-corner:has(.st-estate-pawns:not(:empty)) .mp-space-art {
  display: none;
}
.st-monopoly .mp-buildings {
  display: inline-flex;
  gap: 1px;
  color: #28745b;
}
.st-monopoly .mp-buildings svg {
  width: 12px;
  height: 14px;
  fill: #a6ba6c;
}
.st-monopoly .mp-buildings svg:only-child {
  width: 18px;
}
.st-monopoly .mp-mortgage-label {
  font-size: 10px;
  color: #b12d43;
  font-weight: 800;
}
.st-monopoly .mp-mortgaged .mp-estate-band {
  background: #cbd6e5;
}
.st-monopoly .mp-mortgaged .st-estate-name {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.st-monopoly .st-city-center {
  background: #eaf0f8;
  color: var(--ink);
  padding: 24px;
  gap: 12px;
}
.st-monopoly .st-city-center > .mp-city-art {
  width: 85%;
  max-width: 320px;
}
.st-monopoly .st-city-center h2 {
  font-size: 32px;
  margin: 0;
}
.st-monopoly .st-city-center p {
  font-size: 14px;
  margin: 0;
}
.st-monopoly .st-city-center > small {
  font-size: 13px;
  color: var(--muted);
  max-width: 32ch;
}
.st-monopoly .mp-bank {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
}
.st-monopoly .mp-bank span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.st-monopoly .mp-bank svg {
  width: 24px;
  height: 24px;
  color: #28745b;
}
.st-monopoly .mp-center-location {
  display: grid;
  justify-items: center;
  gap: 8px;
  border-block: 1px solid var(--line);
  padding: 16px;
  width: 100%;
}
.st-monopoly .mp-center-location > svg {
  width: 40px;
  height: 40px;
  color: var(--orange);
}
.st-monopoly .mp-center-location > span:not(.mp-token) {
  font-size: 13px;
  color: var(--muted);
}
.st-monopoly .mp-center-location > strong {
  font-size: 20px;
}
.st-monopoly .mp-player-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 4px;
}
.st-monopoly .mp-player-heading h3 {
  font-size: 18px;
  margin: 0;
}
.st-monopoly .mp-player-heading > span {
  font-size: 13px;
  color: var(--muted);
}
.st-monopoly .mp-ledger {
  margin-top: 0;
}
.st-monopoly .mp-ledger > div {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 12px 0;
  border-color: var(--line);
  font-size: 14px;
}
.st-monopoly .mp-ledger strong small {
  grid-column: auto;
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.st-monopoly .mp-ledger > div > span:last-child {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 13px;
}
.st-monopoly .mp-ledger .mp-token {
  grid-row: 1 / 3;
}
.st-monopoly .mp-out strong {
  text-decoration: line-through;
}
.st-monopoly .mp-out .mp-token {
  filter: grayscale(1);
}
.st-monopoly .mp-winner {
  background: #ffdaa4;
}
.st-monopoly .mp-victory {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: #ffdaa4;
  border-radius: 8px;
}
.st-monopoly .mp-victory > svg {
  width: 48px;
  height: 48px;
  color: #ad4c13;
  flex: none;
}
.st-monopoly .mp-victory > div {
  flex: 1;
}
.st-monopoly .mp-victory span:not(.mp-token) {
  font-size: 13px;
  color: var(--ink);
}
.st-monopoly .mp-victory h3 {
  margin: 0;
  font-size: 24px;
}
.st-monopoly .mp-victory p {
  margin: 4px 0 0;
  font-size: 13px;
}
.st-monopoly .mp-deed-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.st-monopoly .mp-deed-heading > svg {
  width: 40px;
  height: 40px;
  color: var(--club-blue);
  flex: none;
}
.st-monopoly .mp-deed-heading > div {
  flex: 1;
  min-width: 0;
}
.st-monopoly .mp-deed-heading p {
  margin: 4px 0;
}
.st-monopoly .st-rent-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.st-monopoly .st-rent-table > span {
  background: var(--surface);
  display: grid;
  gap: 6px;
  padding: 8px;
  font-size: 13px;
}
.st-monopoly .mp-rent-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.st-monopoly .mp-building-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}
.st-monopoly .mp-building-detail .mp-buildings svg {
  width: 24px;
  height: 26px;
}
@media (max-width: 1200px) {
  .st-monopoly .mp-map-hint {
    display: block;
  }
}
@media (max-width: 600px) {
  .st-monopoly .mp-turn-desk {
    gap: 12px;
  }
  .st-monopoly .mp-location strong {
    font-size: 18px;
  }
  .st-monopoly .mp-roll {
    width: 100%;
    justify-content: space-between;
  }
  .st-monopoly .st-rent-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-monopoly .mp-victory {
    flex-wrap: wrap;
    padding: 12px;
  }
  .st-monopoly .mp-victory p {
    max-width: 28ch;
  }
  .st-monopoly .mp-victory > .mp-token {
    display: none;
  }
  .st-monopoly .mp-ledger {
    grid-template-columns: 1fr;
  }
}
/* Side spaces keep their icon beside the name rather than shrinking the text. */
.st-monopoly :is(.mp-left, .mp-right):not(.mp-corner) > .st-map-button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 12px 4px 4px;
  gap: 2px 4px;
  align-content: center;
}
.st-monopoly :is(.mp-left, .mp-right):not(.mp-corner) .st-estate-name,
.st-monopoly :is(.mp-left, .mp-right):not(.mp-corner) .mp-price {
  grid-column: 1 / -1;
}
.st-monopoly :is(.mp-left, .mp-right):not(.mp-corner) .mp-space-art {
  grid-row: 1 / 3;
  grid-column: 1;
}
.st-monopoly
  :is(.mp-left, .mp-right):not(.mp-corner):has(.mp-space-art)
  :is(.st-estate-name, .mp-price) {
  grid-column: 2;
}
.st-monopoly
  :is(.mp-left, .mp-right):not(.mp-corner):has(.st-estate-pawns:not(:empty))
  > .st-map-button {
  padding-right: 54px;
}
.st-monopoly
  :is(.mp-left, .mp-right):not(.mp-corner):has(.st-estate-pawns:not(:empty))
  .mp-space-art {
  display: none;
}
.st-monopoly
  :is(.mp-left, .mp-right):not(.mp-corner):has(.st-estate-pawns:not(:empty))
  :is(.st-estate-name, .mp-price) {
  grid-column: 1 / -1;
}
.st-monopoly :is(.mp-left, .mp-right):not(.mp-corner) .mp-buildings {
  position: absolute;
  top: 0;
  left: 22px;
  background: #fff9e8;
}
.st-monopoly
  :is(.mp-left, .mp-right)
  .st-estate-pawns:is([data-count="5"], [data-count="6"])
  .mp-token {
  width: 18px;
  height: 18px;
}
.st-monopoly .mp-corner .st-estate-pawns {
  top: auto;
  bottom: 3px;
  left: 4px;
  right: 4px;
  max-width: 78px;
}
.st-monopoly .mp-corner:has(.st-estate-pawns:not(:empty)) > .st-map-button {
  padding-right: 4px;
}
.st-monopoly .mp-corner .st-estate-pawns .mp-token {
  width: 24px;
  height: 24px;
}
.st-monopoly .mp-owner {
  background: #fff9e8;
  color: var(--ink);
  border: 2px solid var(--owner);
}
.st-monopoly :is(.mp-left, .mp-right):has(.mp-owner) .st-estate-name {
  padding-left: 12px;
}

/* Painted assets inherit the approved farm/treasure/race material world. */
.mp-token {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.mp-token svg {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.mp-painted-art {
  display: inline-block;
  flex: none;
  width: 36px;
  height: 36px;
}
.st-monopoly .mp-location > .mp-token {
  width: 64px;
  height: 64px;
}
.st-monopoly .st-estate .mp-space-art {
  width: 48px;
  height: 40px;
}
.st-monopoly .mp-corner .mp-space-art {
  width: 64px;
  height: 64px;
}
.st-monopoly .st-estate:has(.st-estate-pawns:not(:empty)) .mp-space-art {
  display: none;
}
.st-monopoly .st-city-center {
  background: #fdf6e6;
  padding: 16px;
  gap: 8px;
}
.st-monopoly .st-city-center > .mp-city-art {
  width: 100%;
  height: auto;
  max-height: 280px;
  max-width: 520px;
  object-fit: contain;
}
.st-monopoly .st-city-center h2 {
  font-size: 28px;
}
.st-monopoly .mp-bank .mp-painted-art {
  width: 28px;
  height: 28px;
}
.st-monopoly .mp-center-location {
  padding: 12px;
  gap: 4px;
}
.st-monopoly .mp-center-location > .mp-painted-art {
  width: 56px;
  height: 56px;
}
.st-monopoly .mp-ledger > div {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}
.st-monopoly .mp-ledger .mp-token {
  width: 64px;
  height: 64px;
}
.st-monopoly .mp-buildings .mp-painted-art {
  width: 14px;
  height: 16px;
}
.st-monopoly .mp-buildings .mp-painted-art:only-child {
  width: 20px;
  height: 20px;
}
.st-monopoly .mp-building-detail .mp-buildings .mp-painted-art {
  width: 32px;
  height: 36px;
}
.st-monopoly .mp-deed-heading > .mp-painted-art {
  width: 64px;
  height: 64px;
}
.st-monopoly .mp-victory > .mp-painted-art {
  width: 64px;
  height: 72px;
}
.st-monopoly .mp-victory > .mp-token {
  width: 56px;
  height: 56px;
}
.st-monopoly :is(.mp-left, .mp-right):not(.mp-corner) > .st-map-button {
  grid-template-columns: 40px minmax(0, 1fr);
}
.st-monopoly :is(.mp-left, .mp-right):not(.mp-corner) .mp-space-art {
  width: 40px;
  height: 40px;
}
.st-monopoly
  :is(.mp-top, .mp-bottom):not(.mp-corner):has([data-count="3"])
  > .st-map-button {
  padding-bottom: 52px;
}
.st-monopoly .mp-deed-heading .mp-token {
  width: 48px;
  height: 48px;
}

.mp-painted-art svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
}
