:root {
  color-scheme: dark;
  --felt-deep: #053627;
  --felt: #074530;
  --felt-light: #0b5138;
  --cream: #f4eee1;
  --muted: #adc2b5;
  --line: rgba(230, 218, 180, .2);
  --gold-soft: #d8c68d;
  --shadow: rgba(0, 24, 17, .48);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: var(--felt-deep);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--felt-deep);
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; }

button, [role="button"] { touch-action: manipulation; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(102px, .9fr) minmax(78px, .62fr) minmax(126px, 1.15fr) auto auto;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  padding: max(18px, env(safe-area-inset-top)) 18px max(17px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 41%, rgba(25, 108, 72, .3) 0, rgba(8, 70, 48, .08) 48%, rgba(1, 34, 24, .26) 100%),
    repeating-linear-gradient(117deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(23deg, rgba(0, 0, 0, .018) 0 1px, transparent 1px 5px),
    repeating-radial-gradient(ellipse at 43% 37%, rgba(255, 255, 255, .006) 0 1px, rgba(0, 0, 0, .006) 1px 2px, transparent 2px 5px),
    var(--felt);
}

.table::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 28%;
  left: 50%;
  width: min(1020px, 132vw);
  height: min(620px, 75vh);
  border: 1px solid rgba(224, 208, 164, .07);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.table::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .012) 0 1px, transparent 1.5px) 0 0 / 9px 9px;
  box-shadow: inset 0 0 120px rgba(0, 25, 18, .34);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.table__header,
.seat,
.table__center,
.control-dock,
.site-footer {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.table__header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.wordmark {
  margin: 0;
  color: #f2ecdd;
  font: 500 17px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: .005em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .15);
}

.wordmark span { font-style: italic; font-weight: 400; }

.bankroll {
  position: relative;
  display: grid;
  justify-items: end;
}

.balance {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 112px;
  min-height: 31px;
  padding: 0;
  gap: 7px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: right;
  cursor: pointer;
}

.balance__icon {
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
}

.balance strong {
  display: block;
  overflow: hidden;
  color: #f5efdf;
  font: 500 19px/1.25 Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-pl {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  min-height: 14px;
  margin: -1px 0 0;
  gap: 5px;
  color: rgba(174, 195, 182, .64);
  font-size: 9.5px;
  line-height: 1.2;
}

.session-pl span { font-weight: 550; }

.session-pl strong {
  color: rgba(231, 231, 216, .78);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.session-pl strong.is-positive { color: #8fcaa1; }
.session-pl strong.is-negative { color: #dfa39a; }

.balance:focus-visible,
.bankroll-menu button:focus-visible,
.chip:focus-visible,
.betting-circle:focus-visible,
.action-button:focus-visible,
.deal-button:focus-visible,
.text-action:focus-visible {
  outline: 2px solid rgba(244, 232, 190, .84);
  outline-offset: 4px;
}

.bankroll-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 172px;
  padding: 12px;
  border: 1px solid rgba(231, 222, 193, .16);
  border-radius: 10px;
  background: rgba(4, 47, 33, .96);
  box-shadow: 0 18px 44px rgba(0, 22, 15, .42);
  backdrop-filter: blur(15px);
  transform-origin: top right;
  animation: menu-in 150ms cubic-bezier(.2, .8, .2, 1) both;
}

.bankroll-menu p {
  margin: 0 0 7px;
  color: #a8beb0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.bankroll-menu__options { display: grid; }

.bankroll-menu__options button,
.bankroll-menu__reset {
  min-height: 34px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  color: #eee8dc;
  background: transparent;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}

.bankroll-menu__options button.is-selected { background: rgba(255, 255, 255, .07); }

.bankroll-menu__options button.is-selected::after {
  content: "•";
  float: right;
  color: var(--gold-soft);
}

.bankroll-menu__reset {
  width: 100%;
  min-height: 32px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  border-radius: 0;
  color: #aebfb4;
  font-size: 11px;
}

.seat {
  position: relative;
  display: grid;
  place-content: center;
  min-height: 0;
  text-align: center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.seat__heading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 25px;
  margin-bottom: 4px;
}

.seat__heading span {
  margin: 0;
  color: rgba(244, 238, 222, .88);
  font: 750 18px/1 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.seat__heading span:empty { visibility: hidden; }

.hand {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 94px;
  gap: 8px;
}

.hand > .playing-card:nth-child(n + 5) { margin-left: -29px; }

.playing-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(64px, 17.4vw, 80px);
  aspect-ratio: 5 / 7;
  border-radius: 7px;
  perspective: 700px;
  filter: drop-shadow(0 8px 7px rgba(0, 24, 17, .3)) drop-shadow(0 1px 1px rgba(0, 12, 8, .2));
  transform-origin: center center;
}

.card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 390ms cubic-bezier(.24, .68, .24, 1);
}

.playing-card.is-face-down .card__inner { transform: rotateY(180deg); }

.card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(72, 58, 39, .16);
  border-radius: 7px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card__front {
  display: grid;
  place-items: center;
  color: #171815;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .66), transparent 42%),
    #f4eee1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), inset 0 0 16px rgba(85, 67, 40, .042);
}

.playing-card.is-red .card__front { color: #a52d30; }

.card__corner {
  position: absolute;
  top: 6px;
  left: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  line-height: .78;
}

.card__corner strong {
  font-size: clamp(23px, 6.5vw, 30px);
  font-weight: 700;
  letter-spacing: -.06em;
}

.card__corner i {
  margin-top: 4px;
  font-size: clamp(16px, 4.6vw, 20px);
  font-style: normal;
}

.card__corner--bottom {
  top: auto;
  right: 7px;
  bottom: 7px;
  left: auto;
  transform: rotate(180deg);
}

.card__suit {
  padding-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 7.2vw, 35px);
  opacity: .93;
}

.card__back {
  display: grid;
  place-items: center;
  padding: 5px;
  background: #efe6d5;
  transform: rotateY(180deg);
}

.card-back__pattern {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 2px solid #8a3034;
  border-radius: 4px;
  background-color: #8a3034;
  background-image:
    linear-gradient(45deg, transparent 43%, rgba(244, 224, 196, .78) 44% 48%, transparent 49% 93%, rgba(244, 224, 196, .78) 94%),
    linear-gradient(-45deg, transparent 43%, rgba(244, 224, 196, .78) 44% 48%, transparent 49% 93%, rgba(244, 224, 196, .78) 94%);
  background-size: 10px 10px;
  box-shadow: inset 0 0 0 2px #f0dfc7, inset 0 0 0 4px #8a3034, inset 0 0 0 5px rgba(240, 223, 199, .78);
}

.card-back__pattern::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(245, 224, 195, .76);
  background:
    linear-gradient(45deg, transparent 46%, rgba(244, 224, 196, .28) 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(244, 224, 196, .28) 47% 53%, transparent 54%);
  background-size: 8px 8px;
  box-shadow: 0 0 0 2px #8a3034, 0 0 0 3px rgba(245, 224, 195, .48);
}

.card-back__pattern::after {
  content: "◆";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 29px;
  aspect-ratio: 1;
  border: 1px solid rgba(245, 224, 195, .88);
  color: #f0ddc3;
  background: #8a3034;
  font-size: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 3px #8a3034, 0 0 0 4px rgba(245, 224, 195, .72);
}

.playing-card.is-flipping { animation: card-flip-lift 390ms cubic-bezier(.24, .68, .24, 1); }

.table__center {
  position: relative;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 0;
}

.result {
  min-height: 30px;
  margin: 0 0 1px;
  color: #f3eddf;
  font: 850 clamp(22px, 5.8vw, 30px)/1 Inter, sans-serif;
  letter-spacing: -.025em;
  opacity: 0;
  transform: translateY(4px) scale(.98);
  transition: opacity 180ms ease, color 180ms ease, transform 240ms cubic-bezier(.2, .8, .2, 1);
}

.result.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.result.is-win { color: #dcebd8; }
.result.is-loss { color: #f0c4bc; }
.result.is-push { color: #e3d8b8; }
.result.is-leaving { opacity: 0; transform: translateY(-4px) scale(.985); }
.result.is-guidance { color: #b8cabe; font: 500 11px/1.2 Inter, sans-serif; letter-spacing: .02em; }

.betting-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(230, 218, 180, .3);
  border-radius: 50%;
  color: inherit;
  background: rgba(0, 0, 0, .025);
  box-shadow: inset 0 0 18px rgba(0, 24, 17, .1);
  cursor: pointer;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.betting-circle:disabled { cursor: default; }

.betting-circle__hint {
  width: 78px;
  color: rgba(238, 225, 190, .9);
  line-height: 1;
  text-align: center;
  transition: opacity 120ms ease;
}

.betting-circle__hint b {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
}

.betting-circle.has-bet .betting-circle__hint { opacity: 0; }

.betting-circle > strong {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  min-width: 110px;
  color: rgba(247, 241, 227, .94);
  font: 800 15px/1.2 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  transform: translateX(-50%);
}

.bet-stack,
.payout-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wager-chip {
  --wager-chip: #315e72;
  --wager-edge: #203f4e;
  isolation: isolate;
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 43px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: white;
  background: repeating-conic-gradient(var(--wager-chip) 0 14deg, rgba(245, 235, 214, .88) 14deg 20deg, var(--wager-chip) 20deg 45deg);
  box-shadow: 0 2px 0 var(--wager-edge), 0 5px 8px rgba(0, 23, 16, .32), inset 0 0 0 3px rgba(255, 255, 255, .13), inset 0 0 0 5px rgba(0, 0, 0, .08);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: -.015em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
}

.wager-chip.is-pending { opacity: 0; }

.wager-chip::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px;
  border: 1px dashed rgba(255, 255, 255, .58);
  border-radius: 50%;
  background: var(--wager-chip);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .13);
}

.chip-tone--ivory { --wager-chip: #e0d4bd; --wager-edge: #aa9e86; color: #1e201d; text-shadow: none; }
.chip-tone--blue { --wager-chip: #315f76; --wager-edge: #1f4253; }
.chip-tone--red { --wager-chip: #89353a; --wager-edge: #5c2528; }
.chip-tone--umber { --wager-chip: #80583a; --wager-edge: #583c28; }
.chip-tone--black { --wager-chip: #222924; --wager-edge: #111612; }

.player-hands {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 115px;
  gap: clamp(5px, 3vw, 22px);
}

.empty-hand { width: 1px; height: 107px; }

.player-hand {
  min-width: 0;
  padding: 4px 5px 2px;
  transition: opacity 180ms ease;
}

.player-hand.is-loss { opacity: .67; }

.player-hand__meta {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin: 3px 0 0;
  gap: 5px;
  color: #a9bdb1;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.player-hand__score {
  color: rgba(242, 235, 219, .74);
  font: 650 11px/1 Georgia, "Times New Roman", serif;
}

.player-hands:has(.player-hand:nth-child(2)) .playing-card { width: clamp(51px, 14.4vw, 67px); }
.player-hands:has(.player-hand:nth-child(3)) { gap: 2px; }
.player-hands:has(.player-hand:nth-child(3)) .playing-card { width: clamp(42px, 10.7vw, 55px); }
.player-hands:has(.player-hand:nth-child(2)) .hand { gap: 3px; }
.player-hands:has(.player-hand:nth-child(3)) .hand .playing-card + .playing-card { margin-left: -13px; }

.control-dock {
  z-index: 9;
  align-self: end;
  min-height: 135px;
}

.betting-controls { min-height: 135px; }

.chip-rack {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 62px;
  padding-top: 4px;
  gap: clamp(5px, 2.3vw, 13px);
}

.chip {
  --chip: #e0d4bd;
  --chip-edge: #aa9e86;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(46px, 13vw, 60px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #1d211e;
  background: repeating-conic-gradient(var(--chip) 0 13deg, #f0e8d8 13deg 19deg, var(--chip) 19deg 43deg);
  box-shadow: 0 4px 0 var(--chip-edge), 0 8px 13px rgba(0, 22, 15, .32), inset 0 0 0 4px rgba(255, 255, 255, .18), inset 0 0 0 6px rgba(0, 0, 0, .06);
  cursor: pointer;
  transition: filter 170ms ease, opacity 150ms ease, transform 180ms cubic-bezier(.2, .85, .25, 1), box-shadow 180ms ease;
}

.chip::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(255, 255, 255, .62);
  border-radius: 50%;
  background: var(--chip);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, .16);
}

.chip::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(0, 0, 0, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}

.chip span {
  position: relative;
  z-index: 1;
  max-width: 38px;
  overflow: hidden;
  font-size: clamp(9px, 2.65vw, 11.5px);
  font-weight: 850;
  letter-spacing: -.025em;
  text-overflow: clip;
  white-space: nowrap;
}

.chip:active:not(:disabled) { filter: brightness(.96); transform: translateY(1px) scale(.94); box-shadow: 0 2px 0 var(--chip-edge), 0 5px 8px rgba(0, 22, 15, .27); }
.chip:disabled { opacity: .26; cursor: default; filter: saturate(.55); }

.chip.is-selected:not(:disabled) {
  filter: brightness(1.08) saturate(1.04);
  transform: translateY(-4px) scale(1.035);
  box-shadow: 0 5px 0 var(--chip-edge), 0 11px 18px rgba(0, 20, 14, .38), inset 0 0 0 4px rgba(255, 255, 255, .2), inset 0 0 0 6px rgba(0, 0, 0, .06);
}

.chip--blue { --chip: #315f76; --chip-edge: #1f4253; color: #fff; }
.chip--red { --chip: #89353a; --chip-edge: #5c2528; color: #fff; }
.chip--umber { --chip: #80583a; --chip-edge: #583c28; color: #fff; }
.chip--black { --chip: #222924; --chip-edge: #111612; color: #fff; }

.chip-flight {
  position: fixed !important;
  z-index: 80;
  margin: 0;
  pointer-events: none;
  will-change: transform;
}

.betting-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  margin-top: 21px;
  padding-top: 2px;
  gap: 12px;
}

.deal-button,
.action-button {
  min-width: 94px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #153125;
  background: #e9d7aa;
  box-shadow: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: transform 120ms cubic-bezier(.2, .8, .2, 1), filter 140ms ease;
}

.deal-button {
  min-width: 116px;
  color: #171a16;
  background: #f2c84b;
}

.action-button span {
  display: inline-block;
  margin-right: 3px;
  font-size: 13px;
  line-height: 1;
  vertical-align: -1px;
}

.action-button--hit {
  color: #fffaf1;
  background: #16875b;
}

.action-button--hit span { font-size: 16px; }

.action-button--stand {
  color: #fff8f3;
  background: #b8443b;
}

.deal-button:active,
.action-button:active { filter: brightness(.94); transform: translateY(1px) scale(.97); }

.text-action {
  min-width: 52px;
  min-height: 42px;
  padding: 0 5px;
  border: 0;
  color: #b7c8bd;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.game-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 78px;
  gap: 8px;
  animation: controls-in 190ms ease both;
}

.action-button {
  min-width: clamp(70px, 21vw, 105px);
  padding-inline: 12px;
  font-size: 13px;
}

.action-button--quiet {
  color: #eee9dc;
  background: #215a44;
}

.table.is-round-transition .seat,
.table.is-round-transition .betting-circle {
  opacity: 0;
  transform: translateY(-4px);
}

.site-footer {
  align-self: end;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 24px;
  gap: 5px 12px;
  color: rgba(174, 195, 182, .57);
  font-size: 9px;
  letter-spacing: .055em;
  text-align: center;
}

.site-footer__identity { margin: 0; }
.site-footer__identity span { padding-inline: 3px; }

.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 11px;
}

.site-footer a {
  color: rgba(205, 216, 207, .72);
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-footer a:focus-visible,
.info-header a:focus-visible,
.info-content a:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgba(244, 232, 190, .84);
  outline-offset: 3px;
}

.info-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  color: #e9e6da;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(19, 91, 61, .22), transparent 52%),
    var(--felt-deep);
}

.info-header,
.info-content,
.info-page > .site-footer {
  width: min(100%, 720px);
  margin-inline: auto;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}

.info-wordmark { text-decoration: none; }

.back-link {
  color: rgba(207, 220, 211, .76);
  font-size: 12px;
  text-decoration: none;
  text-underline-offset: 4px;
}

.info-content {
  align-self: start;
  margin-top: clamp(54px, 9vw, 96px);
  padding-bottom: 24px;
}

.info-page--short .info-content { max-width: 610px; }

.info-content h1 {
  margin: 0 0 30px;
  color: #f4eee1;
  font: 500 clamp(34px, 6vw, 46px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.info-content h2 {
  margin: 44px 0 13px;
  color: #eee9dc;
  font: 650 21px/1.2 Inter, sans-serif;
  letter-spacing: -.018em;
}

.info-content h3 {
  margin: 27px 0 8px;
  color: #dedbcc;
  font: 700 16px/1.25 Inter, sans-serif;
}

.info-content p,
.info-content li {
  color: #c5d0c8;
  font-size: 16px;
  line-height: 1.72;
}

.info-content p { margin: 0 0 19px; }
.info-content ul,
.info-content ol { margin: 0 0 22px; padding-left: 24px; }
.info-content li + li { margin-top: 7px; }

.info-content a {
  color: #dfcf9d;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.info-lede { color: #d7ddd6 !important; font-size: 17px !important; }
.play-link { display: inline-block; margin-top: 3px; }

.last-updated {
  margin-top: -16px !important;
  color: rgba(181, 200, 188, .7) !important;
  font-size: 12px !important;
}

.info-page > .site-footer { padding-top: 54px; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes controls-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-flip-lift {
  0%, 100% { filter: drop-shadow(0 8px 7px rgba(0, 24, 17, .3)) drop-shadow(0 1px 1px rgba(0, 12, 8, .2)); transform: translateY(0) scale(1); }
  50% { filter: drop-shadow(0 13px 10px rgba(0, 20, 14, .35)); transform: translateY(-2px) scale(1.015); }
}

@media (hover: hover) {
  .chip:hover:not(:disabled):not(:active):not(.is-selected) { filter: brightness(1.06); transform: translateY(-2px) scale(1.015); }
  .chip.is-selected:hover:not(:disabled):not(:active) { filter: brightness(1.12) saturate(1.04); transform: translateY(-4px) scale(1.045); }
  .deal-button:hover:not(:active),
  .action-button:hover:not(:active) { filter: brightness(1.07); transform: translateY(-1px); }
  .bankroll-menu__options button:hover { background: rgba(255, 255, 255, .07); }
  .site-footer a:hover,
  .back-link:hover { color: #ece6d7; text-decoration: underline; }
}

@media (max-width: 359px) {
  .table { padding-inline: 12px; }
  .chip-rack { gap: 4px; }
  .chip { width: 45px; }
  .chip span { font-size: 8.5px; }
  .action-button { min-width: 66px; padding-inline: 8px; }
  .game-actions { gap: 5px; }
  .site-footer { gap: 4px 9px; }
  .site-footer__nav { column-gap: 9px; }
}

@media (min-width: 720px) {
  .table {
    grid-template-rows: auto minmax(145px, .95fr) minmax(108px, .62fr) minmax(168px, 1.1fr) auto auto;
    padding: max(27px, env(safe-area-inset-top)) 42px max(21px, env(safe-area-inset-bottom));
  }

  .wordmark { font-size: 19px; }
  .balance strong { font-size: 21px; }
  .hand { min-height: 118px; gap: 11px; }
  .playing-card { width: 86px; border-radius: 8px; }
  .card__face { border-radius: 8px; }
  .card__corner strong { font-size: 30px; }
  .card__corner i { font-size: 20px; }
  .card__suit { font-size: 36px; }
  .betting-circle { width: 106px; }
  .wager-chip { bottom: 29px; width: 47px; }
  .player-hands { min-height: 148px; }
  .empty-hand { height: 124px; }
  .control-dock { min-height: 142px; }
  .chip-rack { min-height: 67px; gap: 14px; }
  .chip { width: 61px; }
  .chip span { font-size: 11px; }
  .betting-actions { min-height: 54px; margin-top: 22px; }
  .game-actions { min-height: 92px; }
  .site-footer { font-size: 10px; }
}

@media (min-width: 1100px) and (min-height: 760px) {
  .table { grid-template-rows: auto minmax(165px, 1fr) minmax(120px, .62fr) minmax(185px, 1.12fr) auto auto; }
  .playing-card { width: 94px; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .table {
    grid-template-rows: auto minmax(88px, 1fr) minmax(58px, .6fr) minmax(98px, 1fr) auto auto;
    padding-top: max(11px, env(safe-area-inset-top));
  }
  .playing-card { width: 58px; }
  .hand { min-height: 81px; }
  .player-hands { min-height: 88px; }
  .empty-hand { height: 78px; }
  .control-dock, .betting-controls { min-height: 83px; }
  .chip-rack { min-height: 50px; }
  .chip { width: 43px; }
  .betting-actions { min-height: 36px; margin-top: 7px; padding-top: 0; }
  .deal-button, .action-button { min-height: 38px; }
  .game-actions { min-height: 56px; }
  .site-footer { padding-top: 6px; }
}

@media (max-width: 560px) {
  .info-page { padding-inline: 18px; }
  .info-header { align-items: center; }
  .back-link { font-size: 11px; }
  .info-content { margin-top: 52px; }
  .info-content h1 { margin-bottom: 25px; }
  .info-content h2 { margin-top: 38px; }
  .info-content p,
  .info-content li { font-size: 15.5px; line-height: 1.68; }
  .info-page > .site-footer { padding-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
