.strategy-game {
  --st-ink: #244d3c;
  --st-paper: #f5efdf;
  --st-line: #cfc6b1;
  color: #263f34;
  min-width: 0;
}
.strategy-game button {
  font: inherit;
  cursor: pointer;
}
.strategy-game button:disabled {
  cursor: default;
}
.strategy-game button:focus-visible,
.strategy-game input:focus-visible,
.st-land-scroll:focus-visible {
  outline: 3px solid #ba7536;
  outline-offset: 3px;
}
.st-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
  font-size: 0.82rem;
}
.st-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.st-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.st-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}
.st-section-title h3 {
  font-size: 1.03rem;
  margin: 0;
}
.st-section-title > span {
  font-size: 0.76rem;
  color: #586456;
}
.st-map {
  position: relative;
  direction: ltr;
  width: 100%;
  isolation: isolate;
}
.st-map > svg {
  display: block;
  width: 100%;
  height: auto;
}
.st-map svg text {
  font-family: Vazirmatn, sans-serif;
  text-anchor: middle;
  fill: #324d3c;
  font-size: 2.25px;
}
.st-map-button {
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  color: inherit;
  position: relative;
}
.st-map > .st-map-button {
  position: absolute;
  transform: translate(-50%, -50%);
}
.st-map-button.selected {
  outline: 3px solid #b47932;
  outline-offset: 2px;
  z-index: 5;
}
.st-controls {
  border-top: 1px solid var(--st-line);
  margin-top: 28px;
  padding-top: 3px;
}
.st-controls-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.st-controls-heading p,
.st-map-caption {
  font-size: 0.8rem;
  line-height: 1.9;
  color: #5c6657;
}
.st-controls-heading p {
  margin: 0 0 12px;
}
.st-action {
  border: 1px solid #b8c9bc;
  background: #f5f5eb;
  color: #244d3c;
  padding: 10px 14px;
  border-radius: 6px;
  line-height: 1.7;
  text-align: right;
  font-size: 0.85rem;
}
.st-action:hover:not(:disabled) {
  background: #e6eee0;
  border-color: #52765b;
}
.st-action:disabled {
  opacity: 0.5;
}
.st-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 18px;
  max-height: 290px;
  overflow: auto;
}
.st-action-group {
  border-top: 1px solid #ded8ca;
}
.st-action-group summary {
  padding: 12px 2px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
}
.st-action-group summary span {
  font-size: 0.72rem;
  font-weight: 400;
  color: #606956;
  margin-inline-start: 12px;
}
.st-search {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  margin: 8px 0 14px;
}
.st-search input {
  min-width: 0;
  width: min(340px, 70%);
  padding: 9px 12px;
  border: 1px solid #b7c2b0;
  border-radius: 5px;
  background: #fffdf5;
  font: inherit;
}
.st-turn-note,
.st-finish {
  padding: 18px 0;
  margin-top: 20px;
  border-top: 1px solid #d4d9c9;
  font-weight: 600;
}
.st-empty {
  font-size: 0.85rem;
  color: #616a5b;
}
.st-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.st-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
}
.st-chip > i,
.st-gem-card-head > i {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
  background: var(--gem);
  clip-path: polygon(50% 0, 90% 25%, 100% 67%, 50% 100%, 0 67%, 10% 25%);
  box-shadow: inset 2px 3px 0 #ffffff45;
}
.st-chip > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.st-chip b {
  font-size: 1rem;
}
.st-resource-bank,
.st-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.78rem;
  border-top: 1px solid #ded7c6;
  padding: 14px 0;
  margin-top: 18px;
}
.st-event {
  background: #eee4c9;
  padding: 14px 18px;
  line-height: 1.9;
  font-size: 0.87rem;
  border-radius: 5px;
}
.st-private-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}
.st-private-cards > span {
  padding: 10px;
  background: #eee9d9;
  border: 1px solid #d4c8ad;
}
.st-preview {
  height: 228px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: #ece8d8;
  overflow: hidden;
}
.st-preview > svg {
  width: 220px;
  height: 125px;
  flex: none;
}
.st-preview > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.st-preview strong {
  font-size: 1.2rem;
  color: #31523e;
}
.st-preview span {
  font-size: 0.78rem;
  color: #596651;
}
.st-preview-tiles {
  display: grid;
  grid-template-columns: repeat(5, 21px);
  gap: 4px;
  transform: rotate(-9deg);
  margin: 9px;
}
.st-preview-tiles i {
  height: 21px;
  background: var(--tile);
  box-shadow: inset 2px 2px 0 #fff5;
  border-radius: 2px;
}
.st-preview-gems {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  height: 120px;
  align-items: center;
}
.st-preview-gems i {
  width: 35px;
  height: 43px;
  background: var(--gem);
  clip-path: polygon(50% 0, 93% 30%, 90% 75%, 50% 100%, 10% 75%, 7% 30%);
  transform: translateY(var(--rise));
}
/* Forty readable property spaces around the city. */
.st-city-board {
  display: grid;
  grid-template-columns: 1.4fr repeat(9, 1fr) 1.4fr;
  grid-template-rows: 1.4fr repeat(9, 1fr) 1.4fr;
  aspect-ratio: 1;
  background: #ede7d3;
  border: 2px solid #746d50;
  gap: 1px;
}
.st-estate {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f8f1dc;
  border-top: 6px solid var(--estate);
  outline: 1px solid #b9af93;
}
.st-estate > .st-map-button {
  height: 100%;
  width: 100%;
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1px;
  line-height: 1.25;
}
.st-estate-name {
  font-size: clamp(6px, 0.8vw, 10px);
}
.st-estate small {
  font-size: 8px;
}
.st-owner {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  font-size: 8px;
  font-style: normal;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.st-houses,
.st-mortgage {
  font-size: 7px;
  line-height: 1;
}
.st-estate-pawns {
  position: absolute;
  bottom: -3px;
  right: 0;
  left: 0;
  display: flex;
  gap: 1px;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.st-estate-pawns i {
  width: 16px;
  height: 19px;
  clip-path: polygon(
    30% 0,
    70% 0,
    80% 30%,
    70% 40%,
    100% 100%,
    0 100%,
    30% 40%,
    20% 30%
  );
  font-size: 9px;
  color: white;
  font-style: normal;
  text-align: center;
}
.st-city-center {
  grid-area: 2 / 2 / 11 / 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  background: #e7e6cd;
}
.st-city-center > svg {
  width: 32%;
  max-width: 150px;
}
.st-city-center h2 {
  font-size: clamp(1rem, 3vw, 2.4rem);
  margin: 12px 0 2px;
}
.st-city-center p {
  font-size: clamp(0.6rem, 1.1vw, 0.9rem);
  margin: 3px 0 12px;
}
.st-city-center small {
  font-size: clamp(0.5rem, 0.9vw, 0.8rem);
}
.st-dice {
  display: flex;
  gap: 8px;
  margin: 4px 0 12px;
}
.st-dice span,
.st-battle-roll b {
  display: inline-grid;
  place-items: center;
  background: #fff9e8;
  border: 1px solid #b9ac8d;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  box-shadow: 1px 3px 5px #5b583817;
}
.st-player-ledger {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}
.st-player-ledger > div {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 4px 8px;
  border-bottom: 1px solid #dfd9c6;
  padding: 10px 0;
  font-size: 0.85rem;
}
.st-seat-dot {
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 11px;
}
.st-player-ledger small {
  grid-column: 2 / 4;
  font-size: 0.7rem;
}
/* The island and its buildable intersections. */
.st-island-map {
  background: #dbe9e1;
  border-radius: 12px;
}
.st-island-map .st-number {
  font-size: 2.4px;
  fill: #3e4232;
  font-weight: bold;
}
.st-island-map .st-number.hot {
  fill: #9b392d;
}
.st-island-map .st-terrain-label {
  font-size: 1.8px;
  fill: #183f2b;
  paint-order: stroke;
  stroke: #ffffff77;
  stroke-width: 0.18px;
}
.st-vertex {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
}
.st-vertex.available {
  background: #fffcdfed;
  color: #315c3c;
  border: 1px solid #78936b;
  font-size: 16px;
}
.st-building {
  width: 18px;
  height: 18px;
  background: var(--owner);
  clip-path: polygon(0 35%, 50% 0, 100% 35%, 100% 100%, 0 100%);
  filter: drop-shadow(1px 2px 1px #0004);
}
.st-building.city {
  width: 23px;
  clip-path: polygon(0 0, 25% 0, 25% 35%, 50% 15%, 100% 45%, 100% 100%, 0 100%);
}
.st-road-target {
  width: 27px;
  height: 10px;
  border: 2px dashed #234b33;
  background: #f7ecc8b0;
  border-radius: 3px;
  z-index: 2;
}
.st-hex-target {
  width: 28px;
  height: 28px;
  background: #fffae5;
  border: 1px solid #836f3c;
  border-radius: 50%;
  font-size: 11px;
  z-index: 2;
}
/* Gem trading table. */
.st-nobles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.st-noble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid #caba98;
  background: #eee6d4;
  min-width: 86px;
  border-radius: 5px;
  font-size: 0.72rem;
}
.st-noble svg {
  width: 35px;
  height: 26px;
}
.st-gem-market {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.st-gem-tier {
  display: grid;
  grid-template-columns: 26px repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.st-tier-label {
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  color: #54644e;
  text-align: center;
}
.st-gem-card {
  border: 1px solid #c7bda6;
  background: #fffaf0;
  border-radius: 7px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-align: right;
  min-width: 0;
  box-shadow: 0 3px 6px #594c2810;
}
.st-gem-card.tier-2 {
  background: #e9e9dc;
}
.st-gem-card.tier-3 {
  background: #e2e7dc;
}
.st-gem-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.st-gem-card-head b {
  font-size: 1.2rem;
}
.st-gem-card-head small {
  font-size: 0.63rem;
  font-weight: 400;
}
.st-gem-card > strong {
  font-size: 0.69rem;
  font-weight: 500;
}
.st-card-cost {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 21px;
}
.st-card-cost > span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  background: var(--cost);
  border: 1px solid #0003;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 2px #0009;
}
.st-card-cost > span[style*="#e8e2d4"] {
  color: #334238;
  text-shadow: none;
}
.st-reserved {
  display: flex;
  gap: 10px;
}
.st-reserved > .st-gem-card {
  width: 140px;
}
.st-card-empty {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  border: 1px dashed #c4c2ac;
}
/* Schematic territory map, legible at narrow sizes. */
.st-risk-map {
  background: #f1eddf;
  border: 1px solid #d7ceba;
  border-radius: 8px;
}
.st-risk-map svg text {
  font-size: 2px;
  fill: #666747;
}
.st-territory {
  width: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.15;
}
.st-territory > b {
  font-size: clamp(10px, 1vw, 15px);
  min-width: 25px;
  height: 25px;
  color: white;
  border: 2px solid #fff7d9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 4px #0002;
}
.st-territory > span {
  font-size: clamp(6px, 0.72vw, 10px);
  background: #f6f0e3e8;
  padding: 1px 3px;
  border-radius: 2px;
  white-space: nowrap;
}
.st-battle-roll {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.st-battle-roll b {
  margin: 3px;
  width: 28px;
  height: 28px;
  font-size: 16px;
}
/* Railway map, train market and private destination tickets. */
.st-rail-map {
  background: #e4e9dc;
  border-radius: 8px;
}
.st-rail-map svg text {
  font-size: 2.4px;
  font-weight: 650;
  paint-order: stroke;
  stroke: #faf4e3;
  stroke-width: 0.6px;
}
.st-route {
  width: 21px;
  height: 21px;
  background: #fff9e2;
  border: 1px solid #8f815e;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 1px 2px #715d2920;
}
.st-train-market {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.st-train-button {
  padding: 0;
  border: 0;
  background: transparent;
}
.st-train-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  background: var(--train);
  color: #fffaf0;
  aspect-ratio: 0.74;
  border: 4px solid #fff9e9;
  border-radius: 7px;
  outline: 1px solid #c0b599;
  box-shadow: 0 3px 6px #5a4a2820;
}
.st-train-card svg {
  width: 85%;
  height: 75%;
}
.st-train-card > span {
  font-size: 0.65rem;
  background: #263f34d9;
  padding: 1px 4px;
  border-radius: 2px;
}
.st-train-back {
  justify-content: center;
  background: #456956;
  border: 4px double #d8c794;
  font-size: 0.8rem;
  text-align: center;
}
.st-tickets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.st-ticket {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f3e8cc;
  padding: 14px;
  border: 1px dashed #b09a66;
  border-radius: 7px;
}
.st-ticket strong {
  font-size: 0.87rem;
}
.st-ticket b,
.st-ticket small {
  font-size: 0.73rem;
}
.st-ticket > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.st-ticket button {
  font-size: 0.75rem;
  padding: 5px 10px;
}
/* A growing landscape built with authored SVG tiles. */
.st-land-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 15px 0 20px;
}
.st-current-tile {
  width: 90px;
  height: 90px;
  box-shadow: 0 3px 8px #3c4a3020;
  flex: none;
}
.st-land-toolbar h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}
.st-land-toolbar p {
  margin: 4px 0 8px;
  font-size: 0.8rem;
}
.st-rotations {
  display: flex;
  gap: 5px;
  direction: ltr;
}
.st-rotations button {
  font-size: 0.75rem;
  border: 1px solid #aaa88d;
  background: #faf3df;
  padding: 5px 9px;
  border-radius: 4px;
}
.st-rotations button.selected {
  background: #315e43;
  color: white;
}
.st-land-scroll {
  max-height: 640px;
  overflow: auto;
  direction: ltr;
  background: #e4e9d9;
  padding: 18px;
  border: 1px solid #cad0b8;
  scrollbar-color: #688266 #e4e9d9;
}
.st-land-grid {
  display: grid;
  gap: 3px;
  justify-content: safe center;
  min-width: max-content;
  width: max-content;
  margin: auto;
}
.st-land-tile {
  position: relative;
}
.st-land-tile svg {
  display: block;
  width: 100%;
  height: 100%;
}
.st-land-place {
  border: 1px dashed #81916e;
  background: #ffffff44;
  font-size: 13px;
  opacity: 0.45;
}
.st-land-place.available {
  opacity: 1;
  background: #fff7dc88;
  color: #315336;
}
.st-meeple {
  position: absolute;
  width: 19px;
  height: 24px;
  background: var(--owner);
  transform: translate(-50%, -50%);
  clip-path: polygon(
    35% 0,
    65% 0,
    72% 24%,
    100% 43%,
    86% 58%,
    70% 45%,
    83% 100%,
    53% 100%,
    50% 76%,
    47% 100%,
    17% 100%,
    30% 45%,
    14% 58%,
    0 43%,
    28% 24%
  );
  filter: drop-shadow(0 2px 2px #0004);
}
/* Azul's physical tile language. */
.st-factories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.st-factory {
  width: 100px;
  min-height: 100px;
  border-radius: 50%;
  background: #e6ddc8;
  border: 1px solid #beb293;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.st-factory > small {
  font-size: 9px;
  line-height: 1.3;
  color: #5a614b;
  margin-bottom: 4px;
}
.st-factory > div {
  display: grid;
  grid-template-columns: repeat(2, 24px);
  gap: 4px;
  justify-content: center;
}
.st-factory-empty {
  font-size: 0.7rem;
  grid-column: span 2;
}
.st-tile-button {
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.st-azul-tile {
  display: block;
  width: 25px;
  height: 25px;
  flex: none;
  background: var(--tile);
  border: 1px solid #0002;
  border-radius: 3px;
  box-shadow:
    inset 3px 3px 0 #ffffff30,
    1px 2px 2px #0002;
  position: relative;
}
.st-azul-tile:after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #ffffff8a;
  transform: rotate(45deg);
}
.st-azul-tile.empty {
  background: #c6bfaa;
  box-shadow: inset 0 1px 2px #0002;
  border-color: #b5ad98;
}
.st-azul-tile.empty:after {
  display: none;
}
.st-azul-tile.ghost {
  opacity: 0.2;
  box-shadow: none;
}
.st-azul-center {
  background: #eee9d9;
  border: 1px dashed #c9bd9f;
  padding: 14px;
  margin: 18px 0;
  text-align: center;
  border-radius: 40px;
}
.st-azul-center > strong {
  font-size: 0.8rem;
}
.st-azul-center > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.75rem;
}
.st-azul-player {
  display: flex;
  gap: 30px;
  justify-content: center;
  background: #eae3cf;
  padding: 20px;
  border: 1px solid #ccbea0;
  border-radius: 8px;
}
.st-patterns {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}
.st-pattern {
  display: flex;
  gap: 6px;
  border: 1px solid transparent;
  padding: 2px;
  background: transparent;
}
.st-pattern:not(:disabled) {
  outline: 1px dashed #4f7c59;
}
.st-pattern:disabled {
  opacity: 1;
}
.st-wall {
  display: grid;
  grid-template-columns: repeat(5, 25px);
  gap: 6px;
  padding: 3px;
}
.st-azul-floor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  gap: 10px;
  padding: 15px 0;
}
/* Two civilizations face a shared pyramid. */
.st-military {
  background: #eee7d3;
  padding: 15px 20px;
  border: 1px solid #cfc2a3;
  border-radius: 6px;
}
.st-military > strong {
  font-size: 0.85rem;
}
.st-military > small {
  font-size: 0.7rem;
  display: block;
  margin-top: 10px;
}
.st-military-track {
  display: flex;
  margin-top: 10px;
  gap: 2px;
}
.st-military-track > span {
  flex: 1;
  height: 24px;
  background: #f9f2df;
  border: 1px solid #c7bba0;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.st-military-track > span:nth-child(-n + 4),
.st-military-track > span:nth-last-child(-n + 4) {
  background: #d9b19a;
}
.st-military-track .occupied i {
  width: 14px;
  height: 20px;
  background: #a34636;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.st-duel-pyramid {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  grid-template-rows: repeat(8, 38px);
  padding: 12px 0 20px;
  isolation: isolate;
}
.st-pyramid-slot {
  min-width: 0;
  position: relative;
  pointer-events: none;
}
.st-pyramid-slot > .st-map-button {
  width: 100%;
  height: 100%;
  pointer-events: auto;
}
.st-pyramid-slot.open {
  z-index: 3;
}
.st-pyramid-slot:not(.open) .st-duel-card {
  filter: saturate(0.65);
}
.st-duel-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  background: #f6edd5;
  border: 1px solid #c3b391;
  border-radius: 5px;
  text-align: right;
  color: #344734;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 3px 5px #59451e17;
  direction: rtl;
}
.st-duel-card strong {
  font-size: 0.84rem;
  line-height: 1.6;
}
.st-duel-card.small {
  padding: 7px;
  gap: 3px;
}
.st-duel-card.small strong {
  font-size: 0.64rem;
  line-height: 1.4;
}
.st-duel-kind {
  font-size: 0.65rem;
  color: #fff;
  padding: 2px 5px;
  margin: -12px -12px 0;
  background: #806b49;
}
.st-duel-card.small .st-duel-kind {
  font-size: 8px;
  margin: -7px -7px 0;
  line-height: 1.6;
}
.kind-raw .st-duel-kind {
  background: #8b6448;
}
.kind-manufactured .st-duel-kind {
  background: #6d7770;
}
.kind-civilian .st-duel-kind {
  background: #3e7298;
}
.kind-scientific .st-duel-kind {
  background: #46794d;
}
.kind-commercial .st-duel-kind {
  background: #8e731c;
}
.kind-military .st-duel-kind {
  background: #ad4b3b;
}
.kind-guild .st-duel-kind {
  background: #805a83;
}
.kind-progress .st-duel-kind {
  background: #527b4d;
}
.st-duel-benefit {
  font-size: 0.71rem;
}
.small .st-duel-benefit {
  font-size: 8px;
}
.st-duel-cost {
  font-size: 0.68rem;
  color: #635c47;
  line-height: 1.9;
}
.st-duel-back {
  height: 100%;
  width: 100%;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #b39a69 0 2px, #c9b580 2px 6px);
  border: 3px double #796541;
  border-radius: 5px;
  font-size: 0.7rem;
  color: #433d2c;
  box-shadow: 0 3px 5px #59451e17;
}
.st-wonder-draft {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.st-duel-option {
  padding: 0;
  border: 0;
  background: transparent;
}
.st-duel-option:disabled {
  opacity: 1;
}
.st-duel-option:not(:disabled) {
  outline: 2px solid #527b4d;
  outline-offset: 2px;
  border-radius: 5px;
}
.st-progress-market {
  display: flex;
  gap: 8px;
}
.st-progress-market > button {
  flex: 1;
  min-width: 0;
}
.st-owned-wonders {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.st-owned-wonders > div {
  position: relative;
  min-width: 0;
}
.st-owned-wonders > div.built {
  outline: 2px solid #63825a;
  outline-offset: 1px;
  border-radius: 5px;
}
.st-owned-wonders small {
  display: block;
  font-size: 0.63rem;
  padding: 5px;
  color: #536747;
}
.st-city-collection {
  margin: 15px 0 25px;
  font-size: 0.8rem;
}
.st-city-collection summary {
  cursor: pointer;
  padding: 10px 0;
}
.st-city-collection > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 600px) {
  .st-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 22px;
  }
  .st-controls-heading {
    flex-direction: column;
    gap: 0;
  }
  .st-controls-heading p {
    font-size: 0.75rem;
  }
  .st-action {
    font-size: 0.76rem;
    padding: 8px 10px;
  }
  .st-actions {
    max-height: 260px;
  }
  .st-city-board {
    margin: 0 -3px;
  }
  .st-estate {
    border-top-width: 4px;
  }
  .st-estate-name {
    font-size: 6px;
  }
  .st-estate small {
    font-size: 6px;
  }
  .st-owner {
    width: 9px;
    height: 9px;
    font-size: 6px;
  }
  .st-houses,
  .st-mortgage {
    font-size: 5px;
  }
  .st-estate-pawns i {
    width: 11px;
    height: 13px;
    font-size: 7px;
  }
  .st-city-center {
    padding: 5px;
  }
  .st-city-center h2 {
    margin-top: 5px;
  }
  .st-dice span {
    width: 25px;
    height: 25px;
    font-size: 17px;
  }
  .st-player-ledger {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .st-vertex {
    width: 18px;
    height: 18px;
    font-size: 12px;
  }
  .st-building {
    width: 14px;
    height: 14px;
  }
  .st-building.city {
    width: 18px;
  }
  .st-road-target {
    width: 18px;
    height: 7px;
    border-width: 1px;
  }
  .st-hex-target {
    width: 20px;
    height: 20px;
  }
  .st-nobles {
    gap: 6px;
  }
  .st-noble {
    min-width: 70px;
    padding: 6px;
    font-size: 0.63rem;
  }
  .st-gem-tier {
    grid-template-columns: 15px repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .st-gem-card {
    padding: 6px;
    gap: 7px;
    border-radius: 4px;
  }
  .st-gem-card-head b {
    font-size: 0.9rem;
  }
  .st-gem-card-head small {
    display: none;
  }
  .st-gem-card-head > i {
    width: 20px;
    height: 20px;
  }
  .st-gem-card > strong {
    font-size: 8px;
  }
  .st-card-cost {
    gap: 2px;
    min-height: 16px;
  }
  .st-card-cost > span {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  .st-chip {
    font-size: 0.68rem;
    gap: 6px;
  }
  .st-chip > i {
    width: 21px;
    height: 23px;
  }
  .st-chips {
    gap: 12px;
  }
  .st-territory > b {
    min-width: 19px;
    height: 19px;
    font-size: 9px;
    border-width: 1px;
  }
  .st-territory > span {
    font-size: 5px;
    padding: 1px;
  }
  .st-route {
    width: 16px;
    height: 16px;
    font-size: 8px;
  }
  .st-train-market {
    gap: 5px;
  }
  .st-train-card {
    border-width: 2px;
    border-radius: 4px;
  }
  .st-train-card > span {
    font-size: 6px;
    padding: 0 2px;
  }
  .st-train-back {
    font-size: 9px;
  }
  .st-tickets {
    grid-template-columns: 1fr;
  }
  .st-factory {
    width: 78px;
    min-height: 78px;
    padding: 6px;
  }
  .st-factories {
    gap: 7px;
  }
  .st-factory > div {
    grid-template-columns: repeat(2, 20px);
    gap: 3px;
  }
  .st-factory .st-azul-tile {
    width: 20px;
    height: 20px;
  }
  .st-azul-player {
    gap: 14px;
    padding: 14px 7px;
  }
  .st-pattern {
    gap: 3px;
  }
  .st-pattern .st-azul-tile,
  .st-wall .st-azul-tile {
    width: 21px;
    height: 21px;
  }
  .st-wall {
    grid-template-columns: repeat(5, 21px);
    gap: 3px;
  }
  .st-patterns {
    gap: 3px;
  }
  .st-azul-tile:after {
    inset: 5px;
  }
  .st-azul-center {
    border-radius: 20px;
  }
  .st-duel-pyramid {
    grid-template-rows: repeat(8, 31px);
  }
  .st-duel-card.small {
    padding: 4px;
    gap: 2px;
  }
  .st-duel-card.small .st-duel-kind {
    margin: -4px -4px 0;
    font-size: 6px;
  }
  .st-duel-card.small strong {
    font-size: 7px;
  }
  .small .st-duel-benefit {
    font-size: 6px;
  }
  .st-duel-card strong {
    font-size: 0.75rem;
  }
  .st-progress-market {
    gap: 5px;
  }
  .st-owned-wonders {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-military {
    padding: 12px;
  }
  .st-military-track > span {
    height: 20px;
  }
  .st-military-track .occupied i {
    width: 10px;
    height: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .st-map-button,
  .st-action {
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease;
  }
}

.st-selection-detail {
  margin-top: 22px;
  padding: 18px;
  background: #eee8d5;
  border: 1px solid #d1c2a2;
  border-radius: 6px;
}
.st-selection-detail h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.st-selection-detail p {
  font-size: 0.83rem;
  line-height: 1.9;
  margin: 7px 0;
}
.st-selection-detail > .st-duel-card {
  max-width: 360px;
}
.st-duel-rule {
  font-size: 0.74rem;
  line-height: 1.9;
}
.st-rent-table {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.st-rent-table > span {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  min-width: 46px;
  gap: 5px;
}
.st-opponents {
  margin-top: 24px;
  border-top: 1px solid #d5ceba;
  padding-top: 14px;
}
.st-opponents summary {
  font-size: 0.85rem;
  cursor: pointer;
}
.st-opponents h4 {
  font-size: 0.85rem;
  margin: 18px 0 12px;
}
.st-opponents .st-azul-player {
  margin-top: 10px;
}
.st-ports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
}
.st-ports p {
  font-size: 0.73rem;
  line-height: 1.9;
}
.st-phase-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.st-phase-cards > .st-duel-option {
  width: 180px;
}
.st-island-map .st-port-label {
  font-size: 1.8px;
}
.st-city-scroll {
  overflow-x: auto;
  scrollbar-color: #688266 #ede7d3;
}
@media (max-width: 600px) {
  .st-city-board {
    min-width: 570px;
    margin: 0;
  }
  .st-estate-name {
    font-size: 9px;
  }
  .st-estate small {
    font-size: 8px;
  }
  .st-city-center h2 {
    font-size: 1.65rem;
  }
  .st-city-center p {
    font-size: 0.8rem;
  }
  .st-city-center small {
    font-size: 0.7rem;
  }
  .st-ports {
    grid-template-columns: 1fr;
  }
}

.st-duel-inspect {
  display: block;
  width: 100%;
  height: 100%;
  text-align: inherit;
}
.st-duel-inspect:focus-visible {
  outline: 3px solid #ba7536;
  outline-offset: 2px;
}
.st-duel-production,
.st-duel-rule {
  font-size: 0.8rem;
  line-height: 1.9;
}
.st-return {
  display: block;
  margin-top: 14px;
}
.st-selection-detail:focus {
  outline: 2px solid #52765b;
  outline-offset: 3px;
}
.st-selection-detail .st-duel-card {
  height: auto;
  overflow: visible;
}
.st-selection-detail .st-duel-card strong {
  font-size: 1rem;
}
