.cg-capital,
.cg-total,
.cg-chance {
  min-inline-size: 0;
  color: #294435;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}
.cg-capital {
  display: grid;
  gap: 6px;
  text-align: start;
}
.cg-total,
.cg-chance {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.2;
}
.cg-total > span,
.cg-chance > span {
  color: #566358;
  font-size: 12px;
  font-weight: 500;
}
.cg-total b,
.cg-chance b,
.cg-value,
.cg-debt-track b {
  font-weight: 700;
  white-space: nowrap;
}
.cg-total b {
  font: 700 16px/1.1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.cg-chance b {
  font-size: 13px;
}
.player-row {
  padding-block: 14px;
  column-gap: 12px;
  cursor: pointer;
}
.player-row > .token {
  width: 37px;
  height: 34px;
}
.player-row .player-name {
  gap: 6px;
}
.player-row > .cg-standing .cg-total b {
  line-height: 1;
}
.player-row > .cg-standing {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 5px;
  position: relative;
  min-width: 0;
}
.cg-standing .cg-total {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1px 5px;
}
.cg-standing .cg-total > span {
  font-size: 12px;
}
.cg-standing > .cash-delta {
  position: absolute;
  inset-block-end: 100%;
  inset-inline-end: 0;
  background: #f6f5eb;
  border-radius: 3px;
  padding-inline: 3px;
  white-space: nowrap;
  z-index: 1;
}
.player-row > .cg-capital {
  grid-column: 1 / -1;
  grid-row: 3;
}
.cg-compact.cg-capital {
  margin-top: 10px;
  gap: 7px;
}
.player-open {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: start;
  min-width: 0;
  max-width: 100%;
}
.player-open strong {
  display: block;
}
.mini-assets {
  gap: 4px;
}
.mini-deed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: none;
  min-inline-size: 20px;
  min-block-size: 20px;
  padding: 1px 4px 2px;
  border-radius: 4px;
  font: 750 11px/1 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}
.mini-deed.complete {
  min-inline-size: 31px;
}
.mini-deed b {
  font: inherit;
}
.mini-deed svg {
  flex: none;
  stroke-width: 2.6;
}
.cg-bar,
.cg-mortgage {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: start;
  color: inherit;
  cursor: help;
  line-height: 1;
  border-radius: 6px;
}
.cg-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.cg-segment {
  display: flex;
  flex-basis: 0;
  min-inline-size: max-content;
}
.cg-value,
.cg-debt-track b {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cg-value {
  flex: 1;
  padding: 5px 6px;
  border-radius: 4px;
  background: var(--fill);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
}
.cg-value svg,
.cg-legend svg,
.cg-debt-track svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.cg-legend {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 8;
  bottom: calc(100% + 5px);
  left: 0;
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px 10px;
  flex-wrap: wrap;
  padding: 7px 9px;
  border: 1px solid #c0cbbd;
  border-radius: 8px;
  background: #fffef8;
  box-shadow: 0 3px 12px #263c2e23;
  color: #324c3b;
  font: 600 12px/1.35 var(--sans);
}
.cg-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}
@media (hover: hover) {
  [data-asset-scale]:hover > .cg-legend {
    visibility: visible;
  }
}
[data-asset-scale]:is(:focus-visible, [data-revealed]) > .cg-legend {
  visibility: visible;
}
.cg-cash {
  --fill: #cee2cb;
  --ink: #244e38;
}
.cg-land {
  --fill: #ead5ad;
  --ink: #64461d;
}
.cg-buildings {
  --fill: #e8c3b2;
  --ink: #733f2d;
}
.cg-mortgage {
  display: flex;
  align-items: center;
}
.cg-debt-track {
  flex: 1;
  display: flex;
  min-inline-size: max-content;
  align-items: stretch;
  background: #e9e4d9;
  border-radius: 3px;
}
.cg-debt-track b {
  box-sizing: border-box;
  min-inline-size: max-content;
  padding: 1px 6px;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #dbc5b7 0 4px, #e4d0c2 4px 8px);
  color: #634336;
  text-align: center;
  font: 650 12px/1.25 var(--sans);
  font-variant-numeric: tabular-nums;
}
.cg-capital.cg-detailed {
  margin: 14px 0 19px;
  gap: 12px;
}
.cg-detailed .cg-total {
  justify-content: space-between;
}
.cg-detailed .cg-total > span {
  font: 600 15px var(--sans);
}
.cg-detailed .cg-total b {
  font-size: 21px;
}
.cg-detailed .cg-value {
  padding-block: 5px;
  font-size: 14px;
}
.cg-chance.cg-detailed {
  gap: 8px;
}
.cg-chance.cg-detailed > span,
.cg-chance.cg-detailed b {
  font-size: 14px;
}
@media (forced-colors: active) {
  .cg-value,
  .cg-debt-track,
  .cg-debt-track b {
    outline: 1px solid CanvasText;
    outline-offset: -1px;
  }
}

button.cg-total {
  position: relative;
  justify-self: start;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: inherit;
  cursor: help;
  text-align: start;
}
.cg-standing button.cg-total {
  justify-self: end;
}
.cg-total .cg-legend {
  max-width: min(250px, 65vw);
  text-align: start;
  color: #233f2e;
  white-space: normal;
}
.cg-standing .cg-total .cg-legend {
  left: auto;
  right: 0;
}
.cg-detailed .cg-total .cg-legend {
  bottom: auto;
  top: calc(100% + 5px);
}
