/* Illustrated trading material; native semantics carry the actual game. */
.st-splendor .sp-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  vertical-align: middle;
  pointer-events: none;
}
.st-splendor .sp-art > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.st-splendor .sp-art :is(svg, image) {
  pointer-events: none;
}
.st-splendor .sp-guide {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--club-light-blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.st-splendor .sp-guide h3 {
  font-size: 17px;
  margin: 0 0 5px;
}
.st-splendor .sp-guide p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
  max-width: 50ch;
}
.st-splendor .sp-goal {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.st-splendor .sp-goal small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  white-space: normal;
}
.st-splendor .sp-help {
  margin: 12px 0 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  font-size: 13px;
  color: var(--secondary-text);
}
.st-splendor .sp-help summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  align-content: center;
}
.st-splendor .sp-help p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 68ch;
}
.st-splendor .sp-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}
.st-splendor .sp-examples > div > .sp-art {
  display: flex;
  width: 70px;
  height: 70px;
  margin-bottom: 8px;
}
.st-splendor .sp-examples .sp-scene {
  width: 110px;
  height: 70px;
  margin-bottom: 8px;
  border-radius: 5px;
}
.st-splendor .sp-examples strong {
  font-size: 13px;
  color: var(--ink);
}
.st-splendor .sp-wallet {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--status-ground);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 20px;
}
.st-splendor .sp-wallet-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 12px;
}
.st-splendor .sp-wallet-row > strong {
  font-size: 13px;
}
.st-splendor .sp-wallet-row > strong small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.st-splendor .sp-wallet-row > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}
.st-splendor .sp-wallet-row > div > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.st-splendor .sp-wallet-row .sp-art {
  width: 30px;
  height: 32px;
}
.st-splendor .sp-discounts {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.st-splendor .sp-wallet-row .sp-gold-note {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.st-splendor .sp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 24px 0 12px;
}
.st-splendor .sp-section-head h3 {
  font-size: 17px;
  margin: 0;
}
.st-splendor .sp-section-head > span {
  font-size: 12px;
  color: var(--muted);
}
.st-splendor .sp-gem-bank {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.st-splendor .sp-gem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  gap: 4px;
  padding: 8px 4px;
  min-height: 126px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.st-splendor .sp-gem .sp-art {
  width: 58px;
  height: 57px;
}
.st-splendor .sp-gem strong {
  font-size: 12px;
}
.st-splendor .sp-gem > span:not(.sp-art) {
  font-size: 12px;
  color: var(--muted);
}
.st-splendor .sp-gem small {
  font-size: 10px;
  color: var(--secondary-text);
}
.st-splendor .sp-gem.selected {
  background: var(--club-light-blue);
  border-color: var(--club-blue);
  box-shadow: inset 0 0 0 1px var(--club-blue);
}
.st-splendor .sp-gem:disabled {
  cursor: default;
  opacity: 0.65;
}
.st-splendor .sp-gem.selected:disabled {
  opacity: 1;
}
.st-splendor .sp-pick {
  display: block;
  border: 1px solid var(--line);
  background: var(--status-ground);
  border-radius: 7px;
  padding: 12px;
  margin-top: 10px;
  font-size: 13px;
}
.st-splendor .sp-pick > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.st-splendor .sp-pick > small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.st-splendor .sp-tier {
  margin-top: 20px;
}
.st-splendor .sp-tier-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.st-splendor .sp-tier-heading h4 {
  font-size: 14px;
  margin: 0;
}
.st-splendor .sp-tier-heading h4 small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-right: 8px;
}
.st-splendor .sp-blind {
  font-size: 11px;
  min-height: 44px;
  padding: 6px 10px;
}
.st-splendor .sp-card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.st-splendor .sp-card {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: stretch;
  text-align: right;
  transform: none;
  min-width: 0;
  min-height: 235px;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 3px 8px #14213b0d;
}
.st-splendor .sp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 8px;
  background: var(--surface);
  font-size: 11px;
}
.st-splendor .sp-card-head b {
  font-size: 23px;
  line-height: 1.1;
}
.st-splendor .sp-bonus {
  display: flex;
  align-items: center;
  gap: 3px;
}
.st-splendor .sp-bonus .sp-art {
  width: 29px;
  height: 29px;
}
.st-splendor .sp-bonus small {
  font-size: 9px;
  max-width: 4ch;
  line-height: 1.4;
}
.st-splendor .sp-scene {
  display: block;
  overflow: hidden;
  position: relative;
  height: 100px;
  width: 100%;
  background: var(--board-ground);
}
.st-splendor .sp-scene svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.st-splendor .sp-card-name {
  font-size: 11px;
  padding: 6px 8px 0;
  font-weight: 700;
}
.st-splendor .sp-cost-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  padding: 3px 8px 0;
}
.st-splendor .sp-amounts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.st-splendor .sp-amounts > span {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 12px;
  color: var(--ink);
}
.st-splendor .sp-amounts .sp-art {
  width: 24px;
  height: 25px;
}
.st-splendor .sp-card > .sp-amounts {
  padding: 3px 8px 7px;
  min-height: 36px;
}
.st-splendor .sp-card-state {
  display: block;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 5px 8px;
  font-size: 11px;
  color: var(--muted);
  background: var(--status-ground);
}
.st-splendor .sp-card-state.ready {
  color: #1d604a;
  background: #e6f3ec;
  font-weight: 800;
}
.st-splendor .sp-card.sp-buyable {
  border-color: #31765c;
}
.st-splendor .sp-card:hover {
  border-color: var(--club-blue);
}
.st-splendor .sp-card.selected,
.st-splendor .sp-noble.selected {
  outline: 3px solid var(--club-blue);
  outline-offset: 2px;
  z-index: 1;
}
.st-splendor .sp-empty-card {
  display: grid;
  place-items: center;
  min-height: 235px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}
.st-splendor .sp-context.pg-context {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  width: 100%;
  max-height: none;
  overflow: visible;
  box-shadow: none;
  margin: 12px 0 !important;
  background: var(--club-light-blue) !important;
  border-color: var(--club-blue) !important;
}
.st-splendor .sp-context-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.st-splendor .sp-context-top button {
  min-height: 44px;
}
.st-splendor .sp-context-title h3,
.st-splendor .sp-context > h3 {
  font-size: 16px;
  margin: 6px 0;
}
.st-splendor .sp-context-title > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.st-splendor .sp-context-title .sp-art {
  width: 30px;
  height: 30px;
}
.st-splendor .sp-context p {
  font-size: 12px;
  line-height: 1.9;
}
.st-splendor .sp-payment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.st-splendor .sp-payment > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-splendor .sp-payment strong {
  font-size: 12px;
}
.st-splendor .sp-payment .sp-art {
  width: 30px;
  height: 30px;
}
.st-splendor .sp-shortfall strong {
  color: var(--danger);
}
.st-splendor .sp-context .pg-context-actions {
  flex-wrap: wrap;
}
.st-splendor .sp-noble-row {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 4px;
  scrollbar-color: var(--club-blue) var(--club-light-blue);
}
.st-splendor .sp-noble {
  position: relative;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 0 145px;
  max-width: 200px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--status-ground);
  padding: 0 0 8px;
  overflow: hidden;
  text-align: right;
  cursor: pointer;
}
.st-splendor .sp-patron-portrait {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100px;
  background: var(--club-light-blue);
  overflow: hidden;
}
.st-splendor .sp-patron-portrait > .sp-art {
  width: 92px;
  height: 112px;
  align-self: start;
}
.st-splendor .sp-noble-name {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 7px;
  font-size: 11px;
}
.st-splendor .sp-noble-name b {
  font-size: 11px;
  color: var(--secondary-text);
}
.st-splendor .sp-noble > .sp-amounts {
  padding: 3px 7px;
}
.st-splendor .sp-noble > small {
  font-size: 10px;
  color: var(--muted);
  padding: 4px 7px 0;
}
.st-splendor .sp-empty,
.st-splendor .sp-private-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.st-splendor .sp-ledger {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.st-splendor .sp-ledger summary {
  min-height: 44px;
  cursor: pointer;
  align-content: center;
}
.st-splendor .sp-player {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.st-splendor .sp-player > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}
.st-splendor .sp-player strong {
  font-size: 13px;
  color: var(--sp-owner);
}
.st-splendor .sp-player > div > span:not(.sp-amounts),
.st-splendor .sp-player small {
  font-size: 11px;
  color: var(--muted);
}
.st-splendor :is(button, summary):focus-visible {
  outline: 3px solid var(--club-blue);
  outline-offset: 3px;
}
.st-splendor button {
  min-height: 44px;
}
@media (max-width: 760px) {
  .st-splendor .sp-guide {
    display: block;
  }
  .st-splendor .sp-guide h3 {
    font-size: 15px;
  }
  .st-splendor .sp-guide p {
    font-size: 12px;
  }
  .st-splendor .sp-goal {
    display: block;
    font-size: 12px;
    margin-top: 8px;
  }
  .st-splendor .sp-goal small {
    display: inline;
    margin-right: 8px;
    font-size: 10px;
  }
  .st-splendor .sp-examples {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .st-splendor .sp-examples > div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0 12px;
  }
  .st-splendor .sp-examples > div > .sp-art,
  .st-splendor .sp-examples .sp-scene {
    grid-row: 1 / 3;
    width: 70px;
    height: 70px;
  }
  .st-splendor .sp-examples p {
    margin-top: 4px;
  }
  .st-splendor .sp-wallet-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .st-splendor .sp-wallet-row > strong small {
    display: inline;
    margin-right: 6px;
    font-size: 10px;
  }
  .st-splendor .sp-wallet-row .sp-art {
    width: 24px;
    height: 27px;
  }
  .st-splendor .sp-wallet-row > div > span {
    font-size: 14px;
    gap: 2px;
  }
  .st-splendor .sp-section-head {
    display: block;
  }
  .st-splendor .sp-section-head h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  .st-splendor .sp-section-head > span {
    font-size: 11px;
  }
  .st-splendor .sp-gem-bank {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .st-splendor .sp-gem {
    min-height: 116px;
  }
  .st-splendor .sp-gem .sp-art {
    width: 50px;
    height: 50px;
  }
  .st-splendor .sp-tier-heading {
    align-items: start;
  }
  .st-splendor .sp-tier-heading h4 {
    font-size: 13px;
  }
  .st-splendor .sp-tier-heading h4 small {
    display: block;
    margin: 4px 0 0;
    font-size: 11px;
  }
  .st-splendor .sp-blind {
    max-width: 130px;
    line-height: 1.6;
    font-size: 10px;
  }
  .st-splendor .sp-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .st-splendor .sp-card-head {
    padding: 6px;
  }
  .st-splendor .sp-card-head b {
    font-size: 21px;
  }
  .st-splendor .sp-card {
    min-height: 240px;
  }
  .st-splendor .sp-card > .sp-amounts {
    gap: 3px;
  }
  .st-splendor .sp-card > .sp-amounts .sp-art {
    width: 21px;
    height: 23px;
  }
  .st-splendor .sp-payment {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .st-splendor .sp-payment > div {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .st-splendor .sp-payment > div > strong {
    flex: 0 0 95px;
  }
}

.st-splendor .sp-rest-table > summary {
  min-height: 44px;
  align-content: center;
  font-size: 13px;
  color: var(--secondary-text);
  cursor: pointer;
}

.st-splendor .sp-table .text-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--secondary-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.st-splendor .sp-table .text-button:hover {
  background: var(--secondary-hover);
}
