:root {
  color-scheme: dark;
  --bg: #101918;
  --surface: #15211f;
  --text: #f1eee5;
  --muted: #a2aaa3;
  --gold: #e4c28a;
  --line: #2b3832;
  --green: #214d3e;
  --red: #cf7672;
  --font: "DM Sans", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
button {
  transition:
    background 0.16s,
    transform 0.16s,
    opacity 0.16s;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 102px;
  padding: 0 max(5.5vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 19px;
  letter-spacing: 2.7px;
  font-weight: 550;
  line-height: 1.25;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-top: 7px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #927a50;
  border-radius: 50%;
  color: var(--gold);
  font-size: 30px;
  line-height: 1;
}
nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
}
nav button {
  background: none;
  border: 0;
  padding: 12px 0;
  color: var(--muted);
}
nav button span {
  margin-left: 8px;
}
.nav-current {
  height: 102px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--gold);
}
.practice-badge {
  border: 1px solid #44513e;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #cecea9;
  font-weight: 600;
}
.practice-badge span {
  font-size: 17px;
  margin-right: 5px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 40px 5.5vw 0;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--gold);
}
h1 {
  font: 500 clamp(26px, 3vw, 41px)/1.25 var(--serif);
  margin: 10px 0 0;
  letter-spacing: -1px;
}
.mobile-only {
  display: none;
}
.text-button {
  background: none;
  border: 0;
  padding: 7px 0;
  font-size: 14px;
  color: #d2d7cb;
}
.text-button span {
  margin-left: 10px;
}
.history-button {
  margin-bottom: 3px;
}
.history-button > span {
  margin: 0 7px 0 0;
  font-size: 20px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 28px;
  align-items: start;
}
.game-shell {
  border: 1px solid #3a4b3c;
  border-radius: 15px;
  overflow: hidden;
  background: #152320;
  box-shadow: 0 20px 50px #0002;
}
.table-topline {
  height: 52px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #d7d9c7;
  background: #172921;
}
.small-spade {
  color: var(--gold);
  font-size: 20px;
  margin-right: 9px;
}
.muted {
  color: #929e91;
}
.felt {
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 30%,
    #2d5d46 0%,
    #214b38 47%,
    #183c2c 100%
  );
}
.felt:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.085;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.5' filter='url(%23n)'/%3E%3C/svg%3E");
}
.table-border {
  position: absolute;
  inset: 20px 30px;
  border: 1px solid #bdba6d30;
  border-radius: 160px 160px 100px 100px;
  pointer-events: none;
}
.table-border:after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #bdba6d13;
  border-radius: inherit;
}
.hand-area {
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 95%;
  position: absolute;
}
.dealer-area {
  top: 27px;
}
.player-area {
  bottom: 33px;
}
.hand-label {
  font-size: 10px;
  letter-spacing: 2.4px;
  color: #d0d7bd;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 25px;
}
.score {
  display: inline-grid;
  place-items: center;
  letter-spacing: 0;
  min-width: 26px;
  padding: 0 6px;
  height: 23px;
  border-radius: 5px;
  background: #122c2380;
  font-size: 12px;
  color: #e8e6ce;
}
.cards {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  padding: 6px 6px 0;
  max-width: 100%;
}
.card {
  width: 72px;
  height: 102px;
  border-radius: 7px;
  background: #f4f1e8;
  color: #1b2b25;
  box-shadow:
    0 3px 2px #0002,
    0 9px 15px #0002;
  position: relative;
  flex-shrink: 0;
  border: 1px solid #fff8;
  margin: 0 4px;
  font-family: Georgia, serif;
  transform: rotate(var(--rotation, 0deg));
  user-select: none;
}
.card-back {
  background: #132c29;
  border: 4px solid #dedbcc;
  outline: 1px solid #c7c3b4;
  box-shadow: 0 5px 10px #0003;
}
.card-back:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #b8a87970;
  background:
    repeating-linear-gradient(45deg, transparent 0 5px, #a9946818 5px 6px),
    repeating-linear-gradient(-45deg, transparent 0 5px, #a9946818 5px 6px);
}
.card-back span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c2ad7c;
  font-size: 34px;
}
.card:nth-child(1) {
  --rotation: -5deg;
}
.card:nth-child(2) {
  --rotation: 5deg;
}
.card-slot {
  background: #14332625;
  border: 1px dashed #adc29b40;
  box-shadow: none;
  color: #99ac7730;
  display: grid;
  place-items: center;
  font-size: 39px;
}
.table-lettering {
  position: absolute;
  top: 171px;
  text-align: center;
  z-index: 1;
  color: #cad09255;
}
.table-lettering > div {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: 6px;
  line-height: 1.25;
}
.table-lettering > span {
  display: block;
  font-size: 10px;
  letter-spacing: 3.5px;
  margin: 7px 0;
}
.table-lettering small {
  font-size: 8px;
  letter-spacing: 2px;
  display: block;
}
.round-message {
  position: absolute;
  top: 253px;
  z-index: 3;
  text-align: center;
  padding: 0 15px;
  width: 100%;
}
.round-message > span {
  display: block;
  font: 500 21px/1.25 var(--serif);
  color: #ececdb;
}
.round-message > small {
  display: block;
  font-size: 12px;
  color: #c1cdba;
  margin-top: 5px;
}
.round-message.win > span {
  color: #f4d994;
}
.round-message.lose > span {
  color: #f2c1b5;
}
.table-bottomline {
  position: absolute;
  bottom: 15px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  color: #a0b49383;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.control-deck {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 23px 25px 19px;
  min-height: 129px;
  border-top: 1px solid #66885c22;
}
.bet-controls {
  flex: 1;
  min-width: 0;
}
.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #b1b9a7;
  margin-bottom: 12px;
}
.control-label span {
  font-size: 11px;
  letter-spacing: 0;
  color: #7f9385;
}
.bet-row {
  display: flex;
  gap: 18px;
  align-items: center;
}
.bet-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #485347;
  border-radius: 5px;
  height: 43px;
  flex-shrink: 0;
}
.bet-stepper button {
  border: 0;
  background: none;
  width: 29px;
  height: 40px;
  color: #b4bfae;
  font-size: 19px;
}
.bet-stepper output {
  min-width: 42px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chips {
  display: flex;
  gap: 9px;
}
.chip {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  position: relative;
  border: 3px dashed #bec4aa9c;
  outline: 1px solid #bcc7b335;
  outline-offset: 2px;
  font-size: 11px;
  font-weight: 700;
  background: #526661;
  color: #f4f0dc;
  padding: 0;
  box-shadow: 0 2px 3px #0008;
}
.chip-25 {
  background: #845449;
}
.chip-50 {
  background: #56757c;
}
.chip-100 {
  background: #777143;
}
.chip-250 {
  background: #615272;
}
.chip.selected {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  transform: translateY(-3px);
  box-shadow:
    0 0 0 5px #d2b47711,
    0 5px 9px #0005;
}
.main-actions {
  width: 170px;
  flex-shrink: 0;
  align-self: flex-end;
}
.primary-button,
.secondary-button {
  min-height: 47px;
  border-radius: 5px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.primary-button {
  background: var(--gold);
  color: #25281d;
  border: 1px solid var(--gold);
}
.primary-button:not(:disabled):hover {
  background: #f0d29f;
}
.secondary-button {
  background: #21342b;
  border: 1px solid #4c6251;
  color: #e1e8d8;
}
.secondary-button:not(:disabled):hover {
  background: #304d3d;
}
.main-actions .primary-button {
  width: 100%;
}
.primary-button > span {
  font-size: 18px;
}
.keyboard-hint {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #8c9e90;
  margin-top: 8px;
}
kbd {
  font: inherit;
  border: 1px solid #63766455;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 10px;
}
.play-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.play-actions button {
  flex: 1;
  min-height: 53px;
}
.play-actions kbd {
  opacity: 0.65;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.balance-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(130deg, #1e2e26, #18241f);
}
.balance-panel .eyebrow {
  display: flex;
  justify-content: space-between;
  color: #aeb7a6;
}
.balance-panel .eyebrow span {
  font-size: 19px;
  color: #b99e6e;
}
.balance-number {
  font: 500 49px/1.1 var(--serif);
  letter-spacing: -1.5px;
  margin: 19px 0 10px;
  font-variant-numeric: tabular-nums;
}
.balance-panel p {
  font-size: 12px;
  color: #9ba794;
  margin: 0;
}
.balance-divider {
  height: 1px;
  background: #364532;
  margin: 25px 0 18px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 12px;
  color: #a5b19f;
}
.stat-row strong {
  font-size: 14px;
  font-weight: 500;
  color: #e7e8d9;
  font-variant-numeric: tabular-nums;
}
.stat-row strong.positive {
  color: #b6d5a3;
}
.stat-row strong.negative {
  color: #e3aaa1;
}
.reset-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  background: none;
  border: 1px solid #3b4b39;
  border-radius: 5px;
  padding: 11px 8px;
  font-size: 12px;
  color: #b7c2ac;
}
.reset-button:not(:disabled):hover {
  background: #293a2c;
}
.table-notes {
  padding: 6px 13px 0;
}
.table-notes .eyebrow {
  font-size: 10px;
  color: #8e9e8a;
}
.table-notes h2 {
  font: 500 28px/1.25 var(--serif);
  margin: 15px 0;
}
.table-notes p {
  font-size: 13px;
  color: #9fac99;
  line-height: 1.7;
  margin-bottom: 19px;
}
.rule-line {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #29392d;
  font-size: 12px;
  color: #a1af9c;
}
.rule-line span:last-child {
  color: #d6d9c6;
}
.table-notes .text-button {
  margin-top: 10px;
  font-size: 12px;
  color: #c5b995;
}
.session-clock {
  padding: 4px 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.session-clock > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #849780;
}
.session-clock time {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  letter-spacing: 0;
  color: #b1bea6;
  font-variant-numeric: tabular-nums;
}
.session-clock button {
  font-size: 11px;
  border: 0;
  background: none;
  color: #b1bea6;
  padding: 10px 0;
}
.session-clock button span {
  margin-left: 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: #82927e;
  padding: 27px 0 24px;
}
footer > span:first-child {
  color: #a9b39f;
}
footer > span:first-child span {
  font-size: 18px;
  vertical-align: -1px;
  margin-right: 7px;
}
.card.red {
  color: #ad403d;
}
.card-corner {
  position: absolute;
  left: 6px;
  top: 5px;
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1px;
}
.card-corner small {
  font-size: 14px;
}
.card-corner.bottom {
  top: auto;
  left: auto;
  right: 6px;
  bottom: 5px;
  transform: rotate(180deg);
}
.card-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 35px;
}
.card.dealt {
  animation: card-in 0.3s ease-out both;
}
.cards.many .card {
  margin-left: -12px;
}
.cards.many .card:first-child {
  margin-left: 0;
}
.cards.crowded .card {
  margin-left: -27px;
}
.cards.crowded .card:first-child {
  margin-left: 0;
}
@keyframes card-in {
  from {
    opacity: 0;
    translate: 16px -18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
dialog {
  background: #17251f;
  color: var(--text);
  border: 1px solid #546049;
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  box-shadow: 0 30px 90px #0008;
}
dialog::backdrop {
  background: #06110eda;
  backdrop-filter: blur(6px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}
.dialog-header h2,
dialog > h2 {
  font: 500 29px/1.25 var(--serif);
  margin: 8px 0 0;
}
.close-button {
  width: 38px;
  height: 38px;
  border: 1px solid #45553c;
  border-radius: 50%;
  background: none;
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.rules-grid article > span {
  color: var(--gold);
  font: 500 21px var(--serif);
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0;
}
dialog p {
  font-size: 14px;
  line-height: 1.7;
  color: #b9c4b0;
}
.rules-grid p {
  margin: 0;
}
.dialog-footnote {
  border-top: 1px solid #394b35;
  padding-top: 18px;
  margin-top: 24px;
  font-size: 12px !important;
}
.full-width {
  width: 100%;
  margin-top: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}
.empty-history {
  text-align: center;
  padding: 32px 10px;
}
.empty-history > span {
  font-size: 44px;
  color: var(--gold);
}
.empty-history h3 {
  font: 500 26px var(--serif);
}
.history-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #344530;
  align-items: center;
}
.history-index {
  color: #8c9f83;
  font-size: 12px;
}
.history-row strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.history-row small {
  font-size: 12px;
  color: #a4b39b;
}
.history-net {
  font-variant-numeric: tabular-nums;
  color: #cccbb8;
  font-size: 16px;
}
.history-net.positive {
  color: #c3d99d;
}
.history-net.negative {
  color: #e4a59a;
}
#break-dialog {
  text-align: center;
  max-width: 430px;
  padding: 38px 32px;
}
.break-icon {
  font-size: 55px;
  color: var(--gold);
  margin-bottom: 15px;
}
#break-dialog h2 {
  font-size: 34px;
  margin-top: 14px;
}
.locked-bet {
  font-size: 13px;
  color: #c8d3be;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 100px;
}
.locked-bet strong {
  font-size: 24px;
  font-weight: 500;
  color: var(--gold);
}
@media (min-width: 1450px) {
  main {
    padding-left: 60px;
    padding-right: 60px;
  }
  .felt {
    height: 520px;
  }
  .table-lettering {
    top: 190px;
  }
  .round-message {
    top: 278px;
  }
  .player-area {
    bottom: 43px;
  }
  .dealer-area {
    top: 38px;
  }
  .cards {
    min-height: 117px;
  }
  .card {
    width: 79px;
    height: 112px;
  }
  .sidebar {
    gap: 29px;
  }
  .balance-panel {
    padding: 28px;
  }
  .table-notes {
    padding-top: 16px;
  }
  .table-notes h2 {
    font-size: 31px;
  }
}
@media (max-width: 1190px) {
  main {
    padding-left: 30px;
    padding-right: 30px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 20px;
  }
  .control-deck {
    gap: 17px;
    padding-left: 18px;
    padding-right: 18px;
    flex-wrap: wrap;
  }
  .main-actions {
    width: 145px;
  }
  .bet-row {
    gap: 12px;
  }
  .chips {
    gap: 8px;
  }
  .chip {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }
  .bet-stepper button {
    width: 23px;
  }
  .bet-stepper output {
    min-width: 35px;
  }
  .balance-panel {
    padding: 21px;
  }
  .control-label span {
    display: none;
  }
  .sidebar {
    gap: 20px;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .chips .chip-250 {
    display: none;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .main-actions {
    width: 130px;
  }
  .control-deck {
    gap: 12px;
  }
  .chip {
    width: 31px;
    height: 31px;
  }
  .chips {
    gap: 7px;
  }
  .balance-panel {
    padding: 18px;
  }
  .table-notes {
    padding-left: 8px;
    padding-right: 8px;
  }
  .session-clock {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 78px;
    padding: 0 22px;
  }
  .brand {
    font-size: 15px;
    letter-spacing: 2px;
    gap: 10px;
  }
  .brand-mark {
    height: 37px;
    width: 37px;
    font-size: 25px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 2.2px;
    margin-top: 5px;
  }
  .practice-badge {
    font-size: 9px;
    padding: 5px 7px;
    letter-spacing: 1px;
  }
  .practice-badge span {
    font-size: 13px;
    margin-right: 2px;
  }
  nav {
    display: none;
  }
  main {
    padding: 25px 20px 0;
  }
  .page-heading {
    margin-bottom: 21px;
    align-items: flex-end;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
  }
  h1 {
    font-size: 29px;
    line-height: 1.24;
    letter-spacing: -0.6px;
    margin-top: 8px;
  }
  .mobile-only {
    display: block;
  }
  .history-button {
    font-size: 0;
    margin: 0 3px 3px 0;
    border: 1px solid #46503c;
    border-radius: 50%;
    width: 36px;
    height: 36px;
  }
  .history-button > span {
    font-size: 23px;
    margin: 0;
    line-height: 20px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 17px;
  }
  .game-shell {
    width: 100%;
    border-radius: 11px;
  }
  .table-topline {
    padding: 0 16px;
    height: 44px;
    font-size: 9px;
    letter-spacing: 1px;
  }
  .small-spade {
    font-size: 17px;
    margin-right: 6px;
  }
  .felt {
    height: 410px;
  }
  .table-border {
    inset: 16px 14px;
    border-radius: 100px 100px 65px 65px;
  }
  .dealer-area {
    top: 24px;
  }
  .cards {
    min-height: 91px;
  }
  .card {
    width: 60px;
    height: 85px;
    border-radius: 5px;
    margin: 0 3px;
  }
  .card-back {
    border-width: 3px;
  }
  .card-back span {
    font-size: 29px;
  }
  .hand-label {
    font-size: 9px;
    letter-spacing: 1.7px;
    min-height: 24px;
  }
  .score {
    font-size: 11px;
    height: 21px;
    min-width: 24px;
  }
  .table-lettering {
    top: 153px;
  }
  .table-lettering > div {
    font-size: 23px;
    letter-spacing: 4px;
  }
  .table-lettering > span {
    font-size: 9px;
    margin: 5px 0;
    letter-spacing: 2.8px;
  }
  .table-lettering small {
    font-size: 7px;
    letter-spacing: 1.6px;
  }
  .round-message {
    top: 221px;
  }
  .round-message > span {
    font-size: 20px;
  }
  .round-message > small {
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
  }
  .player-area {
    bottom: 28px;
  }
  .table-bottomline {
    font-size: 8px;
    bottom: 10px;
    left: 17px;
    right: 17px;
  }
  .control-deck {
    padding: 17px 16px 16px;
    gap: 16px;
    min-height: 145px;
  }
  .bet-controls {
    flex-basis: 100%;
  }
  .control-label {
    font-size: 9px;
    margin-bottom: 11px;
  }
  .control-label span {
    display: block;
    font-size: 10px;
  }
  .bet-row {
    justify-content: space-between;
    gap: 10px;
  }
  .bet-stepper {
    height: 39px;
  }
  .bet-stepper button {
    height: 37px;
    width: 25px;
  }
  .bet-stepper output {
    min-width: 34px;
    font-size: 16px;
  }
  .chips {
    gap: 11px;
  }
  .chip {
    height: 34px;
    width: 34px;
    font-size: 10px;
  }
  .main-actions {
    width: 100%;
    align-self: auto;
  }
  .main-actions .primary-button {
    min-height: 46px;
  }
  .keyboard-hint {
    display: none;
  }
  .play-actions {
    gap: 7px;
  }
  .play-actions button {
    padding: 12px 10px;
    min-height: 49px;
  }
  .play-actions kbd {
    display: none;
  }
  .locked-bet {
    width: 100%;
    justify-content: space-between;
  }
  .sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .balance-panel {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 15px;
  }
  .balance-panel .eyebrow {
    grid-column: 1;
    font-size: 9px;
    justify-content: flex-start;
    gap: 9px;
  }
  .balance-panel .eyebrow span {
    font-size: 14px;
  }
  .balance-number {
    grid-column: 1;
    font-size: 34px;
    margin: 5px 0 0;
    letter-spacing: -0.5px;
  }
  .balance-panel p,
  .balance-divider {
    display: none;
  }
  .stat-row {
    grid-column: 2;
    font-size: 11px;
    gap: 25px;
    margin: 4px 0;
  }
  .stat-row:nth-of-type(3) {
    grid-row: 1;
  }
  .stat-row:nth-of-type(4) {
    grid-row: 2;
  }
  .reset-button {
    grid-column: 1/-1;
    margin-top: 14px;
    font-size: 11px;
    padding: 8px;
  }
  .table-notes {
    display: none;
  }
  .session-clock {
    padding: 0 3px;
    align-items: center;
  }
  .session-clock > span {
    font-size: 9px;
  }
  .session-clock time {
    display: inline;
    font-size: 11px;
    margin-left: 8px;
  }
  .session-clock button {
    font-size: 11px;
    padding: 5px 0;
  }
  footer {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
    padding: 18px 0 22px;
    font-size: 10px;
  }
  footer > span:first-child {
    font-size: 11px;
  }
  .card-corner {
    left: 5px;
    top: 4px;
    font-size: 16px;
  }
  .card-corner small {
    font-size: 11px;
  }
  .card-corner.bottom {
    right: 5px;
    bottom: 4px;
  }
  .card-center {
    font-size: 28px;
  }
  .cards.many .card {
    margin-left: -10px;
  }
  .cards.crowded .card {
    margin-left: -30px;
  }
  dialog {
    padding: 24px 22px;
  }
  .dialog-header {
    gap: 12px;
    margin-bottom: 20px;
  }
  .dialog-header h2 {
    font-size: 25px;
  }
  .rules-grid {
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .rules-grid article {
    padding-left: 32px;
    position: relative;
  }
  .rules-grid article > span {
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 18px;
  }
  .rules-grid h3 {
    margin: 0 0 5px;
  }
  .rules-grid p {
    font-size: 13px;
  }
  .dialog-actions {
    flex-direction: column;
  }
  .dialog-actions button {
    width: 100%;
  }
}
@media (max-width: 370px) {
  main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-header {
    padding: 0 14px;
  }
  .chips {
    gap: 8px;
  }
  .chip {
    width: 31px;
    height: 31px;
  }
  .bet-stepper button {
    width: 23px;
  }
  .bet-stepper output {
    min-width: 31px;
  }
  h1 {
    font-size: 27px;
  }
  .felt {
    height: 395px;
  }
  .round-message {
    top: 211px;
  }
  .table-lettering {
    top: 144px;
  }
  .player-area {
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
/* Readable labels and generous touch controls across screen sizes. */
.brand small {
  font-size: 12px;
  letter-spacing: 1.8px;
}
.practice-badge {
  font-size: 12px;
}
.practice-badge .badge-mode {
  font-size: inherit;
  margin: 0;
}
.eyebrow,
.table-notes .eyebrow {
  font-size: 12px;
}
.table-topline {
  font-size: 12px;
  letter-spacing: 1px;
}
.hand-label {
  font-size: 12px;
  letter-spacing: 1.6px;
}
.score {
  font-size: 14px;
  min-height: 25px;
}
.round-message > small {
  font-size: 14px;
}
.control-label {
  font-size: 12px;
}
.control-label span {
  font-size: 12px;
}
.chip {
  font-size: 12px;
}
.chip-500,
.mobile-wallet {
  display: none;
}
.balance-panel p,
.stat-row,
.reset-button,
.table-notes p,
.rule-line,
.table-notes .text-button {
  font-size: 14px;
}
.keyboard-hint {
  font-size: 12px;
}
.session-clock > span {
  font-size: 12px;
  letter-spacing: 0.4px;
}
.session-clock time,
.session-clock button {
  font-size: 12px;
}
.table-bottomline {
  font-size: 12px;
  letter-spacing: 0.6px;
}
.table-notes h2 {
  margin: 13px 0;
}
.table-notes p {
  line-height: 1.6;
  margin-bottom: 15px;
}
footer {
  font-size: 12px;
}
.history-row small,
.history-index,
.dialog-footnote {
  font-size: 12px;
}
.locked-bet {
  flex-shrink: 0;
  font-size: 12px;
}
.play-actions {
  min-width: 0;
  flex: 1;
}
.table-topline .muted {
  color: #b3bfaa;
}
@media (min-width: 761px) and (max-height: 850px) {
  .site-header,
  .nav-current {
    height: 78px;
  }
  main {
    padding-top: 22px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 32px;
    margin-top: 7px;
  }
  .table-topline {
    height: 44px;
  }
  .felt {
    height: 356px;
  }
  .dealer-area {
    top: 17px;
  }
  .player-area {
    bottom: 28px;
  }
  .cards {
    min-height: 96px;
  }
  .card {
    width: 63px;
    height: 89px;
  }
  .table-lettering {
    display: none;
  }
  .round-message {
    top: 164px;
  }
  .control-deck {
    min-height: 117px;
    padding-top: 18px;
    padding-bottom: 15px;
  }
  .table-bottomline {
    bottom: 10px;
    font-size: 10px;
  }
  .sidebar {
    gap: 16px;
  }
  .balance-panel {
    padding: 21px;
  }
  .balance-number {
    font-size: 43px;
    margin: 14px 0 8px;
  }
  .balance-divider {
    margin: 17px 0 12px;
  }
  .reset-button {
    margin-top: 16px;
    padding: 9px 5px;
  }
  .table-notes {
    padding-top: 0;
  }
  .table-notes h2 {
    font-size: 25px;
    margin: 10px 0;
  }
  .table-notes p {
    font-size: 14px;
    margin: 10px 0;
  }
  .rule-line {
    padding: 6px 0;
  }
  .session-clock {
    padding-top: 0;
  }
  .card-center {
    font-size: 30px;
  }
  .card-corner {
    font-size: 17px;
  }
  .card-corner small {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 70px;
    gap: 12px;
  }
  .brand {
    font-size: 14px;
    letter-spacing: 1.8px;
    gap: 8px;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .practice-badge {
    font-size: 11px;
    letter-spacing: 0.6px;
  }
  .badge-mode {
    display: none;
  }
  main {
    padding-top: 21px;
  }
  .page-heading {
    margin-bottom: 19px;
  }
  h1 {
    font-size: 26px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.3px;
  }
  .table-topline {
    font-size: 11px;
    letter-spacing: 0.7px;
  }
  .desktop-limits {
    display: none;
  }
  .mobile-wallet {
    display: inline;
    font-size: 14px;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }
  .mobile-wallet .muted {
    font-size: 12px;
  }
  .felt {
    height: 397px;
  }
  .dealer-area {
    top: 20px;
  }
  .table-lettering {
    top: 147px;
  }
  .table-lettering small {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .round-message {
    top: 214px;
  }
  .round-message > small {
    font-size: 12px;
  }
  .round-message > span {
    font-size: 20px;
  }
  .hand-label {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .score {
    font-size: 13px;
  }
  .player-area {
    bottom: 24px;
  }
  .table-bottomline {
    font-size: 10px;
    bottom: 8px;
  }
  .control-deck {
    padding: 15px 15px 16px;
    gap: 14px;
  }
  .control-label {
    font-size: 12px;
  }
  .control-label span {
    font-size: 12px;
  }
  .bet-stepper {
    display: none;
  }
  .bet-row,
  .chips {
    width: 100%;
  }
  .chips {
    display: flex;
    gap: 7px;
    justify-content: space-between;
    padding: 0 1px;
  }
  .chip,
  .chip-500 {
    display: block;
    width: 42px;
    height: 42px;
    font-size: 12px;
  }
  .main-actions .primary-button {
    min-height: 46px;
  }
  .balance-panel .eyebrow {
    font-size: 12px;
  }
  .stat-row {
    font-size: 12px;
  }
  .reset-button {
    font-size: 14px;
    min-height: 44px;
  }
  .session-clock > span,
  .session-clock time,
  .session-clock button {
    font-size: 12px;
  }
  .session-clock button {
    min-height: 44px;
  }
  footer {
    font-size: 12px;
  }
  footer > span:first-child {
    font-size: 12px;
  }
  .rules-grid p {
    font-size: 14px;
  }
  .history-button {
    font-size: 0;
    min-width: 42px;
    min-height: 42px;
  }
  .locked-bet {
    width: 100%;
  }
  .play-actions {
    flex-basis: 100%;
  }
  .play-actions button {
    min-height: 49px;
  }
  .brand small {
    white-space: nowrap;
  }
}
@media (max-width: 370px) {
  .brand {
    font-size: 13px;
  }
  .brand small {
    font-size: 9px;
  }
  .practice-badge {
    font-size: 10px;
  }
  .chip,
  .chip-500 {
    width: 37px;
    height: 40px;
  }
  .chips {
    gap: 5px;
  }
  .control-deck {
    padding-left: 13px;
    padding-right: 13px;
  }
  .table-topline {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 10px;
  }
  .table-topline .small-spade {
    margin-right: 3px;
  }
  .control-label span {
    font-size: 11px;
  }
  .felt {
    height: 397px;
  }
  .table-lettering {
    top: 147px;
  }
  .round-message {
    top: 214px;
  }
}

@media (max-width: 370px) {
  .round-message > span {
    font-size: 17px;
  }
  .round-message > small {
    font-size: 12px;
  }
  .round-message {
    padding: 0 12px;
  }
}

.heading-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.mobile-rules-button {
  display: none;
}
@media (max-width: 760px) {
  .mobile-rules-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #46503c;
    border-radius: 50%;
    background: transparent;
    font-size: 19px;
    color: #d2d7cb;
    margin-bottom: 3px;
  }
  .history-button {
    margin-right: 0;
  }
}
.chip-50 {
  background: #4b6870;
}
.chip-100 {
  background: #69633a;
}
