/* New tables share the club shell; material colors belong to the game pieces. */
.club-game {
  --cb-line: #aab9cf;
  --cb-ink: #192b48;
  color: var(--cb-ink);
}
.cb-preview {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background: #e4ecf7;
}
.cb-preview .game-library-icon {
  width: 88px;
  height: 88px;
}
.cb-preview strong {
  font-size: 1.2rem;
}
.cb-preview span,
.cb-help {
  color: #435773;
  font-size: 0.85rem;
  line-height: 1.9;
}
.cb-help {
  margin: 18px 0;
}
.cb-player-notes,
.cb-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.cb-player-notes span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  margin-inline-end: 12px;
  font-size: 0.85rem;
}
.cb-player-notes i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.cb-tools button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #98abc5;
  background: #fff;
  color: #233d63;
  border-radius: 7px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.cb-tools button[aria-pressed="true"] {
  background: #233d63;
  color: #fff;
  outline: 2px solid #f5a14a;
  outline-offset: 2px;
}
.cb-tools svg {
  width: 45px;
  height: 45px;
}
.club-game button:focus-visible {
  outline: 3px solid #d8781e;
  outline-offset: 3px;
}
.club-game .st-controls {
  margin-top: 24px;
}
.club-game .st-controls .st-action {
  margin: 4px;
  min-height: 44px;
}
.club-game .st-map-button.selected {
  outline: 3px solid #e48c32;
  outline-offset: 1px;
}
.cb-quoridor {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 7px;
  padding: 12px;
  max-width: 530px;
  aspect-ratio: 1;
  margin: auto;
  background: #ab7950;
  border: 8px solid #68452d;
  border-radius: 12px;
}
.cb-quoridor .cb-q-cell {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  background: #ead7b3;
  border-radius: 3px;
  display: grid;
  place-items: center;
  border: 0;
}
.cb-q-cell.legal > span {
  width: 25%;
  height: 25%;
  border: 2px solid #3d5a7a;
  border-radius: 50%;
  background: #f7fbff;
}
.cb-pawn {
  width: 58%;
  height: 70%;
  background: var(--pawn);
  border-radius: 46% 46% 22% 22%;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  box-shadow: 0 3px 3px #38281744;
  border: 2px solid #ffffffbb;
}
.cb-pawn b {
  font-size: 0.8rem;
}
.cb-wall-layer {
  position: absolute;
  inset: 12px;
  pointer-events: none;
}
.cb-wall,
.cb-wall-target {
  position: absolute;
  display: block;
  border-radius: 3px;
  padding: 0;
  min-width: 0;
  min-height: 0;
}
.cb-wall.horizontal,
.cb-wall-target.horizontal {
  left: calc(var(--c) * 11.33%);
  top: calc(var(--r) * 11.33% + 10.3%);
  width: 21.5%;
  height: 5px;
}
.cb-wall.vertical,
.cb-wall-target.vertical {
  left: calc(var(--c) * 11.33% + 10.3%);
  top: calc(var(--r) * 11.33%);
  height: 21.5%;
  width: 5px;
}
.cb-wall {
  background: var(--pawn);
  z-index: 3;
  box-shadow: 0 2px 3px #38281777;
}
.cb-wall-target {
  pointer-events: auto;
  background: #fff6;
  cursor: pointer;
  border: 1px solid #694c38;
  z-index: 2;
}
.cb-wall-target:hover,
.cb-wall-target.selected {
  background: #f5a14a;
  outline: 2px solid #192b48;
}
.cb-hive-reserves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cb-hive-reserves strong {
  font-size: 0.85rem;
}
.cb-hive-reserves > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.club-game .cb-reserve {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  min-width: 58px;
  font-size: 0.72rem;
  background: #f2e8cf;
  color: #3d3022;
  border: 1px solid #a89b7e;
}
.cb-reserve.other-player {
  pointer-events: none;
  opacity: 0.65;
}
.cb-insect {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cb-hive-scroll {
  overflow: auto;
  background: #dce5ef;
  border: 1px solid #b3c3d7;
  border-radius: 10px;
  margin: 18px 0;
  padding: 16px;
}
.cb-hive-field {
  position: relative;
  margin: auto;
  min-width: 250px;
}
.cb-hex-slot {
  position: absolute;
  width: 58px;
  height: 58px;
}
.club-game .cb-hex {
  width: 58px;
  height: 58px;
  min-width: 0;
  min-height: 0;
  padding: 4px;
  background: #b5c7dc;
  color: #334f70;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
}
.cb-hex.occupied {
  background: var(--pawn);
  color: #fff;
}
.cb-hex span {
  font-size: 0.65rem;
  line-height: 1;
}
.cb-hex.legal {
  box-shadow: inset 0 0 0 5px #e7a44c;
}
.cb-hex.selected,
.cb-hex:focus-visible {
  background: #f1a343 !important;
  color: #172945 !important;
}
.cb-hex .cb-insect {
  height: 33px;
}
.cb-hex:not(.occupied):not(.legal) {
  opacity: 0.45;
}
.cb-blokus-scroll {
  overflow-x: auto;
  padding: 4px;
}
.cb-blokus-board {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  width: 100%;
  min-width: 420px;
  max-width: 640px;
  margin: auto;
  border: 5px solid #21385b;
  background: #7387a5;
  gap: 1px;
}
.club-game .cb-blokus-cell {
  background: var(--cell);
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  position: relative;
  font-size: 0.65rem;
  color: #192b48;
}
.cb-blokus-cell.legal:after {
  content: "";
  position: absolute;
  inset: 34%;
  background: #345e94;
  border-radius: 50%;
}
.cb-blokus-cell.ghost {
  opacity: 0.65;
}
.cb-pieces {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.club-game .cb-piece {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #233d63;
  min-width: 0;
  padding: 8px;
}
.cb-piece svg {
  height: 46px;
  width: 100%;
  max-width: 65px;
}
.cb-piece span {
  font-size: 0.7rem;
}
.cb-mancala {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  gap: 12px;
  padding: 22px 14px;
  border: 8px solid #7d5033;
  border-radius: 70px;
  background: #bb8859;
  box-shadow: inset 0 3px 7px #50321e66;
  margin: 28px 0;
}
.cb-pit-rows {
  display: grid;
  gap: 20px;
}
.cb-pit-rows > div {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}
.club-game .cb-pit,
.cb-store {
  position: relative;
  isolation: isolate;
  background: #71482e;
  color: #fff3da;
  border-radius: 50%;
  border: 2px solid #d3a777;
  min-height: 74px;
  min-width: 0;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 3px 5px #35231777;
}
.club-game .cb-pit.legal {
  outline: 2px solid #fff1c9;
  outline-offset: 2px;
}
.cb-pit.last-path {
  border-color: #ffd77e;
}
.cb-pit b,
.cb-store b {
  z-index: 2;
  background: #49311be8;
  border-radius: 20px;
  min-width: 22px;
  text-align: center;
  font-size: 0.85rem;
}
.cb-seeds {
  position: absolute;
  inset: 4px;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
}
.cb-seeds i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 14px;
  border-radius: 55% 45% 50% 35%;
  background: var(--seed);
  box-shadow: 1px 2px 2px #29170e88;
}
.cb-store {
  border-radius: 36px;
  flex-direction: column;
  gap: 20px;
  min-height: 160px;
}
.cb-store > span:last-child {
  font-size: 0.67rem;
  text-align: center;
  max-width: 100%;
  line-height: 1.8;
}
.cb-policy-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.cb-policy-track {
  padding: 14px 0;
  border-block: 2px solid #2c67ab;
}
.cb-policy-track.fascist {
  border-color: #b94c49;
}
.cb-policy-track > div {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}
.cb-policy-track > div > span {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 1px dashed #849bb8;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}
.cb-policy-track.liberal .enacted {
  background: #285d99;
  color: #fff;
  border-style: solid;
}
.cb-policy-track.fascist .enacted {
  background: #a43f3e;
  color: #fff;
  border-style: solid;
}
.cb-election {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}
.cb-election i {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #7a8fa9;
  font-style: normal;
  border-radius: 50%;
  font-size: 0.8rem;
}
.cb-election .filled {
  background: #c48231;
  color: #172a45;
}
.cb-election small {
  color: #435773;
}
.cb-council {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.club-game .cb-council-seat {
  border: 1px solid #b4c2d5;
  border-radius: 8px;
  background: #e4ebf5;
  color: #192b48;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  min-width: 0;
}
.cb-seat-number {
  border: 1px solid #8aa1c1;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.cb-council-seat.eligible {
  background: #fff;
  border: 2px solid #3a67a4;
}
.cb-council-seat.eliminated {
  opacity: 0.65;
  text-decoration: line-through;
}
.cb-council-seat small {
  font-size: 0.72rem;
  min-height: 18px;
}
.cb-council-seat strong {
  overflow-wrap: anywhere;
}
.cb-ballot {
  margin: 20px 0;
}
.club-game .cb-vote {
  margin-inline-end: 10px;
  padding: 12px 22px;
  background: #fff;
  color: #243f65;
  border: 2px solid #406ba4;
  border-radius: 7px;
}
.cb-private {
  margin: 24px 0;
  padding: 16px;
  background: #1d3150;
  color: #f5f8fc;
  border-radius: 8px;
}
.cb-private summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 28px;
}
.cb-private p,
.cb-private li {
  font-size: 0.88rem;
  line-height: 1.9;
}
.cb-policy-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cb-policy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  min-width: 82px;
  padding: 12px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  border: 3px double #ffffff88;
}
.cb-policy.liberal {
  background: #285d99;
}
.cb-policy.fascist {
  background: #a43f3e;
}
.club-game .cb-policy-choice {
  padding: 5px;
  background: #fff;
  border: 1px solid #8ba0bc;
  border-radius: 7px;
}
.cb-government-history {
  margin: 24px 0;
  font-size: 0.85rem;
}
.cb-government-history summary {
  cursor: pointer;
}
.cb-government-history .cb-policy {
  min-height: 0;
  min-width: 0;
  padding: 3px 8px;
  font-size: 0.75rem;
}
.cb-legislation {
  margin: 20px 0;
}
@media (max-width: 600px) {
  .cb-policy-tracks {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cb-council {
    grid-template-columns: repeat(2, 1fr);
  }
  .cb-hive-reserves {
    grid-template-columns: 1fr;
  }
  .cb-pieces {
    grid-template-columns: repeat(4, 1fr);
  }
  .cb-mancala {
    grid-template-columns: 38px 1fr 38px;
    gap: 6px;
    padding: 16px 6px;
    border-width: 5px;
    border-radius: 35px;
  }
  .cb-pit-rows > div {
    gap: 4px;
  }
  .club-game .cb-pit {
    min-height: 42px;
  }
  .cb-store {
    min-height: 108px;
  }
  .cb-store > span:last-child {
    font-size: 0.55rem;
  }
  .cb-pit-rows {
    gap: 14px;
  }
  .cb-seeds i {
    width: 6px;
    height: 9px;
  }
  .cb-quoridor {
    gap: 5px;
    padding: 8px;
    border-width: 5px;
  }
  .cb-wall-layer {
    inset: 8px;
  }
  .cb-pawn b {
    font-size: 0.65rem;
  }
  .cb-help {
    font-size: 0.78rem;
  }
  .cb-tools {
    gap: 8px;
  }
  .cb-policy-track > div > span {
    min-height: 42px;
  }
  .cb-council-seat {
    padding: 8px !important;
  }
}

.cb-wall-options {
  margin-top: 18px;
  font-size: 0.85rem;
}
.cb-wall-options summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.cb-wall-options > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}
.cb-wall-options .st-action {
  min-height: 44px;
  padding: 8px;
}
.cb-wall-target:before {
  content: "";
  position: absolute;
  inset: -4px;
}
.cb-policy-track > div > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 2px;
}
.cb-policy-track small {
  font-size: 0.65rem;
  line-height: 1.5;
  text-align: center;
}
.cb-blokus-scroll:focus-visible {
  outline: 3px solid #d8781e;
  outline-offset: 2px;
}
