.holdem-game {
  width:min(var(--game-content),calc(100% - 2 * var(--game-gutter)));
  margin:0 auto;
  overflow:hidden;
  border-radius:9px;
  background:var(--game-felt);
  color:var(--paper-light);
}
.holdem-toolbar {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 16px;
  padding:12px clamp(12px,3vw,30px);
  background:var(--game-dark);
  font-size:13px;
}
.holdem-toolbar button {margin-inline-start:auto}
.holdem-table {padding:clamp(12px,3vw,32px);text-align:center}
#holdem-opponents {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  max-width:780px;
  margin:0 auto;
}
.holdem-seat {
  min-width:0;
  padding:10px 5px;
  border:1px solid #fff4;
  border-radius:7px;
  background:#082b254d;
}
.holdem-seat.active {border-color:#f4d495}
.holdem-seat.folded .holdem-cards {opacity:.5}
.holdem-seat h3 {margin:0;font-size:14px;line-height:1.35}
.holdem-seat h3 span {display:block;color:#f4d495;font-size:12px}
.holdem-seat p {margin:3px 0 0;min-height:1.25em;font-size:11px;line-height:1.25}
#holdem-player {width:min(100%,245px);margin:auto}
.holdem-cards {display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px}
.holdem-card,.holdem-back,.holdem-empty {
  display:inline-grid;
  place-items:center;
  width:clamp(34px,5vw,52px);
  flex:none;
  aspect-ratio:5/7;
  border:1px solid #d2c6b4;
  border-radius:5px;
  background:var(--paper-light);
  color:var(--ink);
  font:500 clamp(16px,3vw,25px)/1 var(--serif);
  box-shadow:0 2px 5px #0003;
}
.holdem-card.red {color:#b7473d}
.holdem-back {background:#9c433a;color:var(--paper-light)}
.holdem-empty {background:#082b254d;border:1px dashed #fff5;box-shadow:none}
.holdem-seat:not(#holdem-player .holdem-seat) :is(.holdem-card,.holdem-back) {width:clamp(26px,4vw,39px);font-size:clamp(14px,2vw,19px)}
#holdem-board {margin:18px auto}
#holdem-pot {margin:0 0 5px;font-size:14px;color:#f4d495}
.holdem-actions,.holdem-actions form {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.holdem-actions[hidden],.holdem-actions form[hidden] {display:none}
.holdem-game button,.holdem-game input {
  min-height:40px;
  border:1px solid #fff7;
  border-radius:5px;
  font:600 13px var(--sans);
}
.holdem-game button {padding:6px 12px;background:var(--game-dark);color:inherit;cursor:pointer}
.holdem-game button:hover {border-color:#f4d495}
.holdem-game input {width:88px;background:var(--paper-light);color:var(--ink);padding:5px 7px}
#holdem-amount-label,#holdem-range {font-size:12px}
#holdem-error {margin:0;color:#ffdab7;font-size:12px}
#holdem-error:not(:empty) {margin-top:8px}
#holdem-results {list-style:none;padding:0;font-size:13px}
#holdem-status {min-height:1.45em;margin:14px 0;font-size:14px}
.holdem-history {
  width:min(100%,600px);
  margin:12px auto 0;
  padding:8px;
  border-top:1px solid #fff3;
  text-align:left;
  font-size:12px;
}
.holdem-history summary {cursor:pointer}
.holdem-example {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;text-align:center}
.holdem-diagram-item {display:grid;justify-items:center;gap:6px;font:600 12px var(--sans)}
.holdem-example .holdem-card,.holdem-example .holdem-back {width:clamp(29px,6vw,43px);font-size:clamp(14px,3vw,20px)}
.holdem-badge {display:inline-grid;place-items:center;min-height:34px;padding:5px 7px;border:1px solid #fff7;border-radius:5px;color:var(--paper-light)}
.holdem-game .holdem-subtitle {font-size:12px}
.holdem-reference table {border-collapse:collapse;font-size:14px}
.holdem-reference th,.holdem-reference td {padding:8px;text-align:left;border-bottom:1px solid var(--game-rule)}
.holdem-reference th:first-child {min-width:110px}
.holdem-updated {width:min(var(--game-content),calc(100% - 2 * var(--game-gutter)));margin:0 auto 24px;text-align:right;color:#657168;font-size:12px}
@media(max-width:620px) {
  .holdem-game {width:calc(100% - 12px)}
  .holdem-toolbar button {margin-inline-start:0}
  .holdem-toolbar .holdem-subtitle {flex-basis:100%}
  .holdem-actions form {flex-basis:100%}
}
