:root {
  color-scheme: dark;
  --bg: #101d2d;
  --paper: #f5eedc;
  --muted: #9caec0;
  --copper: #d39a77;
  --gold: #edd19a;
  --line: #9eacc126;
  --felt: #1c3956;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 15%, #29486543, transparent 65%), var(--bg);
  color: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 0 36px 28px;
}
.masthead {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.brand i {
  font-style: normal;
  margin: 0 11px;
  color: var(--copper);
}
.quiet {
  color: #b3c0c8;
  background: none;
  border: 0;
  font-size: 12px;
  padding: 12px 0 12px 16px;
}
.quiet span {
  border: 1px solid #bbc9cd50;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-left: 8px;
}
.introduction {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 31px 0 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--copper);
  margin: 0 0 8px;
}
h1 {
  font:
    normal 76px/1 Georgia,
    serif;
  letter-spacing: -0.06em;
  margin: 0;
}
h1 span {
  color: var(--copper);
}
.intro-note {
  padding: 0 3px 4px 15px;
}
.intro-note > span {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--copper);
}
.intro-note p {
  font:
    19px/1.5 Georgia,
    serif;
  margin: 7px 0 0;
  color: #d5dcca;
}
.game {
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #101f30;
  overflow: hidden;
  box-shadow: 0 20px 70px #07121d7a;
}
.round-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 25px;
  border-bottom: 1px solid #acbcd317;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
}
.practice {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--copper);
}
#deal-number {
  margin-left: auto;
}
.round-bar button {
  border: 1px solid #b1bfc431;
  color: #cbd7d9;
  background: #243c501f;
  border-radius: 6px;
  font-size: 11px;
  padding: 7px 14px;
  min-height: 34px;
}
.table {
  position: relative;
  min-height: 574px;
  padding: 23px 20px 25px;
  margin: 23px 27px;
  background:
    radial-gradient(ellipse at 50% 45%, #2b4e6a9c, transparent 75%), var(--felt);
  border: 1px solid #a4c1c342;
  border-radius: 44% / 25%;
  box-shadow:
    inset 0 0 0 7px #0d273c,
    inset 0 0 0 8px #8398993b,
    inset 0 0 50px #091d3244;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.seat {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.seat-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 135px;
}
.seat-info b {
  font-size: 13px;
  font-weight: 700;
  display: block;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #b8c9ba50;
  background: #162f48;
  color: #d8decb;
  font:
    18px Georgia,
    serif;
  box-shadow: 0 3px 7px #07162455;
}
.avatar.you {
  background: #efd7b5;
  color: #283c47;
  border: 0;
}
.seat-tag {
  font-size: 7px;
  letter-spacing: 0.13em;
  color: #9fbac2;
  margin-left: 7px;
  font-weight: 400;
}
.stack {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #a9c1c5;
  margin-top: 2px;
}
.stack strong {
  font-size: 13px;
  color: #ecdec7;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stack > span {
  margin-left: 5px;
  font-size: 8px;
  letter-spacing: 0.02em;
}
.mini-chip {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--copper);
  border: 2px dashed #664d43;
  border-radius: 50%;
}
.hand {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.card {
  width: 74px;
  height: 106px;
  border-radius: 7px;
  box-shadow: 0 5px 9px #06152355;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.card svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.card.winning {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  transform: translateY(-4px);
  box-shadow: 0 0 20px #efd19b42;
}
.opponent .card {
  width: 48px;
  height: 68px;
  border-radius: 5px;
}
.opponent .hand {
  gap: 5px;
}
.opponent {
  gap: 7px;
}
.opponent .seat-info {
  position: absolute;
  right: calc(100% + 21px);
  top: 12px;
}
.seat-action {
  font-size: 10px;
  color: #9fbac2;
  line-height: 1.2;
  min-height: 12px;
}
.opponent .seat-action {
  font-size: 9px;
  margin-top: 1px;
}
.pot-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0 17px;
}
.pot-area > div {
  display: flex;
  flex-direction: column;
}
.pot-area span:not(.chip-stack) {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #bfd0cb;
}
.pot-area strong {
  font:
    32px/1.1 Georgia,
    serif;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.chip-stack {
  position: relative;
  width: 37px;
  height: 32px;
  display: block;
  margin-top: 10px;
}
.chip-stack i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 16px;
  border: 3px dashed #f5d5af;
  background: #bc825e;
  border-radius: 50%;
  box-shadow: 0 3px 0 #795547;
}
.chip-stack i:nth-child(2) {
  bottom: 8px;
  left: 2px;
}
.chip-stack i:nth-child(3) {
  bottom: 16px;
  left: 0;
}
.board {
  display: flex;
  gap: 10px;
  min-height: 119px;
  align-items: center;
  justify-content: center;
}
.board .card {
  width: 81px;
  height: 116px;
}
.card.empty {
  border: 1px solid #a0b9bd29;
  box-shadow: none;
  background: #102b421a;
  display: grid;
  place-items: center;
  color: #bad4d21b;
  font:
    29px Georgia,
    serif;
}
.street-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 17px 0 21px;
  color: #91a9b6;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.street-track i {
  height: 1px;
  width: 24px;
  background: #b3c1c02e;
}
.street-track [aria-current="step"] {
  color: var(--gold);
  font-weight: 800;
}
.street-track .done {
  color: #d0d9ce;
}
.human {
  gap: 9px;
}
.human .hand {
  gap: 10px;
}
.human .card {
  width: 71px;
  height: 102px;
}
.human .seat-info {
  position: absolute;
  left: calc(100% + 22px);
  bottom: 26px;
  min-width: 155px;
}
.hand-name {
  display: block;
  color: #a9c2be;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 3px;
  max-width: 125px;
}
.table-stamp {
  position: absolute;
  right: 10%;
  top: 130px;
  border: 1px solid #c5c7a322;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  display: grid;
  align-content: center;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #adc1be70;
}
.table-stamp b {
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.action-tray {
  padding: 0 27px 24px;
}
.action-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.action-heading p {
  margin: 0;
  font-size: 13px;
  color: #d9e1d9;
}
.action-heading > span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #829cab;
  white-space: nowrap;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr;
  gap: 11px;
}
.actions button {
  border-radius: 8px;
  border: 1px solid #b2bfd42c;
  padding: 13px 20px;
  font-size: 13px;
  min-height: 49px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.actions .fold {
  background: #27405229;
  color: #c1b7b0;
}
.actions .primary {
  background: var(--gold);
  color: #23374a;
  border: 0;
  font-weight: 800;
  box-shadow: 0 3px 0 #8d7357;
}
.actions .raise {
  background: #81553d24;
  border-color: #bc8b695c;
  color: #e3b793;
}
.actions button:not(:disabled):hover {
  filter: brightness(1.12);
}
kbd {
  font:
    9px "Avenir Next",
    Avenir,
    sans-serif;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  opacity: 0.6;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  margin-left: 8px;
}
.actions button:disabled {
  opacity: 0.4;
  box-shadow: none;
}
.deal-log {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 19px 0 0;
  color: #a3b8bf;
  font-size: 10px;
  min-height: 20px;
}
.deal-log span {
  padding: 4px 8px;
  background: #8aa6b70b;
  border-radius: 3px;
}
.table-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 19px 0 29px;
  font-size: 11px;
  color: #c3cfc9;
}
.table-caption p {
  margin: 0;
}
.table-caption span {
  font-size: 10px;
  color: #93a7b3;
  white-space: nowrap;
}
.result {
  padding: 25px 28px;
  margin-top: 22px;
  background: #25435a55;
  border: 1px solid #cfb59360;
  border-radius: 13px;
}
.result .result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.result h2 {
  font:
    32px/1.15 Georgia,
    serif;
  color: var(--gold);
  margin: 0 0 7px;
}
.result p {
  font-size: 12px;
  line-height: 1.6;
  color: #bdcfc9;
  margin: 0;
}
.result button {
  border: 0;
  border-radius: 7px;
  background: var(--gold);
  color: #21364b;
  font-size: 12px;
  font-weight: 700;
  padding: 13px 20px;
  white-space: nowrap;
}
.best-hand {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.best-hand > span {
  font-size: 10px;
  width: 145px;
  line-height: 1.7;
  color: #c2d1c9;
}
.best-hand .card {
  width: 54px;
  height: 77px;
  border-radius: 4px;
  box-shadow: none;
}
.best-hand .card.winning {
  outline-width: 1px;
  outline-offset: 1px;
  transform: none;
}
details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
summary {
  font-size: 12px;
  cursor: pointer;
  padding: 20px 1px;
  font-weight: 700;
}
summary span {
  float: right;
  color: #839dac;
  font-size: 10px;
  font-weight: 400;
  margin: 1px 7px;
}
.rules-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 37px;
  padding: 0 1px 20px;
  color: #a9bdc6;
  font-size: 12px;
  line-height: 1.85;
}
.rules-copy h2 {
  font:
    21px Georgia,
    serif;
  color: var(--paper);
}
.rules-copy strong {
  color: #d6ddce;
}
.rules-copy a {
  color: var(--copper);
  text-underline-offset: 3px;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #7b96a6;
  letter-spacing: 0.16em;
  padding-top: 22px;
}
footer span {
  font-size: 10px;
  letter-spacing: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--copper);
  color: var(--bg);
}
@media (max-width: 760px) {
  main {
    padding: 0 22px 26px;
  }
  .table {
    margin: 18px 17px;
    min-height: 550px;
    border-radius: 35% / 18%;
  }
  .opponent .seat-info {
    right: calc(100% + 15px);
    min-width: 130px;
  }
  .table-stamp {
    right: 9%;
    top: 116px;
  }
  .human .seat-info {
    left: calc(100% + 16px);
    min-width: 120px;
  }
  .board {
    gap: 8px;
  }
  .board .card {
    width: 69px;
    height: 99px;
  }
  .action-tray {
    padding: 0 22px 23px;
  }
  .table-caption {
    display: block;
  }
  .table-caption span {
    display: block;
    margin-top: 7px;
  }
  .actions button {
    padding: 13px 15px;
  }
  .round-bar {
    padding: 14px 22px;
  }
  .card.winning {
    outline-width: 2px;
  }
  .best-hand > span {
    width: 120px;
  }
}
@media (max-width: 520px) {
  main {
    padding: 0 14px 22px;
  }
  .masthead {
    height: 63px;
  }
  .brand {
    font-size: 10px;
  }
  .quiet {
    font-size: 11px;
  }
  .introduction {
    padding: 27px 1px 25px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.14em;
  }
  h1 {
    font-size: 58px;
  }
  .intro-note > span {
    font-size: 7px;
    letter-spacing: 0.1em;
  }
  .intro-note p {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 5px;
  }
  .intro-note {
    padding-bottom: 2px;
  }
  .game {
    border-radius: 15px;
  }
  .round-bar {
    padding: 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .practice {
    font-size: 7px;
    letter-spacing: 0.09em;
  }
  #deal-number {
    font-size: 8px;
    letter-spacing: 0;
  }
  .round-bar button {
    padding: 7px 9px;
    font-size: 10px;
    min-height: 34px;
  }
  .table {
    padding: 18px 10px 19px;
    margin: 12px 10px 18px;
    border-radius: 40px;
    min-height: 493px;
    box-shadow:
      inset 0 0 0 4px #0d273c,
      inset 0 0 0 5px #8398993b,
      inset 0 0 30px #091d3244;
  }
  .opponent .seat-info {
    position: static;
    min-width: 0;
    gap: 7px;
  }
  .opponent {
    gap: 7px;
  }
  .opponent .avatar {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }
  .seat-info b {
    font-size: 11px;
  }
  .seat-tag {
    font-size: 6px;
  }
  .stack {
    margin-top: 0;
    font-size: 9px;
    gap: 4px;
  }
  .stack strong {
    font-size: 11px;
  }
  .stack > span {
    font-size: 7px;
  }
  .mini-chip {
    width: 9px;
    height: 9px;
  }
  .opponent .card {
    width: 42px;
    height: 60px;
  }
  .opponent .seat-action {
    font-size: 8px;
  }
  .pot-area {
    margin: 12px 0 14px;
    gap: 11px;
  }
  .pot-area strong {
    font-size: 27px;
  }
  .pot-area span:not(.chip-stack) {
    font-size: 7px;
  }
  .chip-stack {
    transform: scale(0.85);
    transform-origin: right center;
  }
  .board {
    gap: 6px;
    min-height: 81px;
    width: 100%;
  }
  .board .card {
    width: calc((100% - 24px) / 5);
    height: auto;
    aspect-ratio: 70/100;
    max-width: 59px;
    border-radius: 5px;
  }
  .card.empty {
    font-size: 23px;
  }
  .street-track {
    gap: 8px;
    font-size: 7px;
    margin: 14px 0 17px;
  }
  .street-track i {
    width: 13px;
  }
  .human .card {
    width: 59px;
    height: 84px;
    border-radius: 5px;
  }
  .human .hand {
    gap: 9px;
  }
  .human .seat-info {
    position: static;
    min-width: 0;
    gap: 7px;
  }
  .human {
    gap: 8px;
  }
  .human .avatar {
    width: 27px;
    height: 27px;
    font-size: 15px;
  }
  .hand-name {
    display: inline-block;
    font-size: 8px;
    margin: 0 0 0 5px;
  }
  .human .seat-action {
    font-size: 8px;
  }
  .table-stamp {
    display: none;
  }
  .action-tray {
    padding: 0 13px 19px;
  }
  .action-heading {
    display: block;
    margin-bottom: 12px;
  }
  .action-heading p {
    font-size: 12px;
    min-height: 18px;
  }
  .action-heading > span {
    font-size: 8px;
    display: block;
    margin-top: 3px;
  }
  .actions {
    gap: 7px;
    grid-template-columns: 0.8fr 1.3fr 1.2fr;
  }
  .actions button {
    font-size: 11px;
    padding: 12px 10px;
    min-height: 45px;
    border-radius: 6px;
    justify-content: center;
  }
  kbd {
    display: none;
  }
  .table-caption {
    font-size: 10px;
    line-height: 1.8;
    margin-top: 15px;
    margin-bottom: 25px;
  }
  .table-caption span {
    font-size: 9px;
  }
  .deal-log {
    font-size: 9px;
    margin-top: 14px;
    gap: 4px;
  }
  .deal-log span {
    padding: 3px 6px;
  }
  .result {
    margin-top: 15px;
    padding: 21px 18px;
  }
  .result .result-heading {
    display: block;
  }
  .result h2 {
    font-size: 27px;
  }
  .result p {
    font-size: 11px;
  }
  .result button {
    width: 100%;
    margin-top: 15px;
    padding: 11px;
  }
  .best-hand {
    gap: 5px;
    flex-wrap: wrap;
  }
  .best-hand > span {
    width: 100%;
    font-size: 9px;
    margin-bottom: 5px;
  }
  .best-hand .card {
    width: 54px;
    height: 77px;
  }
  .rules-copy {
    display: block;
    font-size: 11px;
    line-height: 1.8;
  }
  .rules-copy h2 {
    font-size: 20px;
  }
  summary {
    font-size: 11px;
    padding: 18px 1px;
  }
  summary span {
    font-size: 9px;
    margin-right: 2px;
  }
  footer {
    font-size: 6px;
    letter-spacing: 0.09em;
    gap: 15px;
  }
  footer span {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.opponent.revealed .card {
  width: 54px;
  height: 77px;
}
