@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap");
:root {
  color-scheme: dark;
  --bg: #0c1412;
  --panel: #141f1b;
  --line: #ffffff12;
  --gold: #dabe84;
  --muted: #9daea4;
  --text: #f0efe7;
  --green: #1c4637;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px "DM Sans",
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 5px;
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover:not(:disabled) {
  background: #ffffff0d;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 5%;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; width: 190px; height: auto; }
nav {
  display: flex;
  gap: 38px;
  align-items: center;
  color: var(--muted);
}
.nav-active {
  color: var(--gold);
}
.text-button {
  border: 0;
  color: var(--muted);
  padding: 10px;
}
.text-button span {
  margin-left: 9px;
}
.demo-tag {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--gold);
  border: 1px solid #dabe843a;
  padding: 10px 13px;
  border-radius: 3px;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 38px 5% 20px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 14px;
}
h1 {
  font:
    38px Georgia,
    serif;
  margin: 0;
  letter-spacing: -0.6px;
}
h1 i {
  color: #b6c7b9;
  font-weight: 400;
}
.intro-note {
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  text-align: right;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 24px;
}
.table-panel {
  border: 1px solid #af986d33;
  border-radius: 12px;
  overflow: hidden;
  background: #101c17;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.table-top {
  display: flex;
  justify-content: space-between;
  padding: 20px 26px;
  letter-spacing: 2px;
  font-size: 10px;
  color: #bcc8bd;
}
.table-top b {
  color: var(--gold);
  margin-left: 9px;
}
.divider {
  color: #56685b;
  margin: 0 12px;
}
.felt {
  position: relative;
  min-height: 443px;
  flex: 1;
  background: radial-gradient(
    ellipse at 50% 35%,
    #245a45 0%,
    #163f30 54%,
    #112e24 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 15px 18px;
  isolation: isolate;
  overflow: hidden;
}
.felt:after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  z-index: -1;
  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='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.8' filter='url(%23n)'/%3E%3C/svg%3E");
}
.table-ring {
  position: absolute;
  inset: 25px 25px 21px;
  border: 1px solid #bca87529;
  border-radius: 35% 35% 42% 42%;
  z-index: -1;
}
.seat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
  color: #d3e0d3;
  margin: 0 0 13px;
}
.score {
  display: inline-block;
  background: #102d23;
  border: 1px solid #9cb59a30;
  border-radius: 4px;
  padding: 3px 7px;
  margin-left: 7px;
  color: var(--gold);
  letter-spacing: 0;
}
.cards {
  display: flex;
  justify-content: center;
  min-height: 101px;
  padding-right: 12px;
}
.card {
  width: 72px;
  height: 102px;
  flex-shrink: 0;
  border-radius: 5px;
  background: #f7f4e9;
  color: #1b2f26;
  box-shadow: 1px 5px 9px #0005;
  padding: 6px 8px;
  position: relative;
  margin-right: -12px;

  font-family: Georgia, serif;
}
.card:nth-child(even) {
  transform: rotate(4deg) translateY(3px);
}
.card.red {
  color: #a83237;
}
.card .corner {
  font-size: 19px;
  line-height: 1;
  display: block;
}
.card .corner small {
  display: block;
  font-size: 17px;
  margin-top: 3px;
}
.card .suit {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-size: 31px;
}
.card .bottom {
  position: absolute;
  bottom: 6px;
  right: 8px;
  transform: rotate(180deg);
}
.card.back {
  background: repeating-linear-gradient(
    45deg,
    #173a31 0,
    #173a31 3px,
    #1d4438 3px,
    #1d4438 5px
  );
  border: 5px solid #dfdac9;
  outline: 1px solid #9eae9e;
  outline-offset: -9px;
  display: grid;
  place-items: center;
  font-size: 35px;
  color: #cbb780;
}
.table-wordmark {
  text-align: center;
  margin: 25px 0 10px;
  color: #d7c58c60;
}
.table-wordmark img { display: block; width: 220px; height: auto; margin: 0 auto 8px; opacity: .68; }
.table-wordmark small {
  font-size: 8px;
  letter-spacing: 3px;
}
.table-message {
  font:
    italic 16px Georgia,
    serif;
  color: #e1d3af;
  min-height: 22px;
  margin: 6px 0 16px;
}
.player-zone {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  min-height: 126px;
  align-items: center;
}
.empty-hand {
  text-align: center;
  color: #a8bead;
  font-size: 12px;
}
.empty-hand > span {
  font:
    48px Georgia,
    serif;
  color: #8cad8b80;
}
.empty-hand p {
  margin: 8px 0;
}
.hand {
  padding: 5px 12px 8px;
  border-bottom: 2px solid transparent;
  border-radius: 4px;
  min-width: 120px;
}
.hand.active {
  border-color: var(--gold);
  background: #ffffff05;
}
.hand .seat-label {
  margin: 10px 0 0;
}
.hand-result {
  margin: 7px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--gold);
}
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  gap: 16px;
  min-height: 98px;
}
.status-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
#round-status strong {
  font-size: 13px;
  font-weight: 400;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions button {
  padding: 13px 17px;
  min-width: 65px;
  background: #1f3329;
}
.actions .primary {
  background: var(--gold);
  border: 0;
  color: #16251c;
  padding: 15px 29px;
  font-weight: 700;
}
.primary span {
  margin-left: 25px;
}
.actions .primary:hover {
  background: #e8cfa0;
}
aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 25px;
  background: linear-gradient(130deg, #19271f, #141f1b);
}
.balance {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 20px 0 18px;
}
.balance > span:first-child {
  font:
    38px "Manrope",
    sans-serif;
  letter-spacing: -1px;
}
.currency {
  color: var(--gold);
  font-size: 13px;
}
.currency small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
  margin-top: 5px;
}
.session-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.session-row span:last-child {
  color: #d5e3d5;
}
.line {
  height: 1px;
  background: var(--line);
  margin: 21px 0;
}
.bet-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.bet-heading span {
  font-size: 11px;
  color: var(--muted);
}
.bet-input {
  display: flex;
  align-items: center;
  background: #0f1a14;
  border: 1px solid #c9b68130;
  border-radius: 5px;
  padding: 5px;
}
.bet-input button {
  border: 0;
  font-size: 23px;
  width: 29px;
  height: 35px;
}
.bet-input input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--text);
  text-align: center;
  font-size: 20px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.bet-input input::-webkit-inner-spin-button {
  appearance: none;
}
.bet-input > span {
  font-size: 10px;
  color: var(--muted);
  margin-right: 8px;
}
.bet-note {
  color: var(--muted);
  font-size: 11px;
  min-height: 16px;
  text-align: center;
  margin: 14px 0;
}
.reset-button {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  width: 100%;
  padding-top: 17px;
  font-size: 12px;
  color: #c4cfc5;
}
.strategy {
  flex: 1;
  padding: 22px 25px;
}
.strategy-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.strategy-heading .eyebrow {
  font-size: 9px;
  margin: 0;
  letter-spacing: 1.5px;
}
.toggle {
  display: inline-flex;
  cursor: pointer;
  position: relative;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.toggle > span:not(.sr-only) {
  width: 28px;
  height: 16px;
  background: #526158;
  border-radius: 20px;
  pointer-events: none;
}
.toggle > span:not(.sr-only):after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 3px;
  background: #e9e5d5;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + span {
  background: #86754d;
}
.toggle input:checked + span:after {
  transform: translateX(12px);
}
.toggle input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.strategy-icon {
  font-size: 29px;
  color: var(--gold);
  margin-top: 18px;
}
h2 {
  font:
    23px Georgia,
    serif;
  margin: 8px 0 12px;
}
.strategy p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.strategy-footer {
  font-size: 10px;
  color: #a7b6a9;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}
.session-strip {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 22px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.session-strip .eyebrow {
  font-size: 9px;
  display: block;
  margin: 0 0 6px;
}
.session-strip strong {
  font-size: 12px;
  font-weight: 400;
}
.history {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.history > span {
  font-size: 12px;
  color: var(--muted);
}
.history .result-pill {
  padding: 6px 9px;
  border: 1px solid #b9d9bc25;
  border-radius: 4px;
}
.result-pill.win {
  color: #b6d2b5;
}
.result-pill.loss {
  color: #cfa098;
}
.session-decoration {
  font-size: 22px;
  letter-spacing: 9px;
  color: #62786b;
}
.session-decoration span {
  color: #896f63;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 0 0;
  color: #83968a;
  font-size: 10px;
  line-height: 1.8;
}
footer b {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1px;
}
dialog {
  color: var(--text);
  background: #15251d;
  border: 1px solid #c7ae7860;
  border-radius: 12px;
  max-width: 570px;
  width: calc(100% - 32px);
  padding: 30px;
  max-height: 85vh;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-top button {
  font-size: 26px;
  border: 0;
}
.dialog-top p {
  margin: 0;
}
dialog p,
dialog li {
  font-size: 14px;
  color: #bbc9bf;
  line-height: 1.7;
}
dialog li {
  margin-bottom: 10px;
}
dialog ul {
  padding-left: 20px;
}
dialog a {
  color: var(--gold);
}
.dialog-demo {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.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;
}
@keyframes deal {
  from {
    opacity: 0;
    translate: 0 -15px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1400px) {
  .felt {
    min-height: 490px;
  }
  .card {
    width: 80px;
    height: 112px;
  }
  .table-wordmark {
    margin-top: 32px;
  }
}
@media (max-width: 1050px) {
  header {
    padding: 0 4%;
    height: 85px;
  }
  nav {
    gap: 10px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
  }
  main {
    padding: 28px 4%;
  }
  .panel {
    padding: 20px;
  }
  .table-top {
    padding: 17px;
    font-size: 9px;
    letter-spacing: 1px;
  }
  .action-bar {
    padding: 18px;
    flex-wrap: wrap;
  }
  .actions button {
    padding: 12px 14px;
  }
  h1 {
    font-size: 32px;
  }
  .intro-note {
    display: none;
  }
}
@media (max-width: 760px) {
  header {
    height: 78px;
    gap: 10px;
  }
  .brand img { width: 142px; }
  nav .nav-active {
    display: none;
  }
  .demo-tag {
    font-size: 8px;
    padding: 8px;
    letter-spacing: 1px;
  }
  .text-button {
    font-size: 12px;
    padding: 5px;
  }
  .text-button span {
    display: none;
  }
  main {
    padding: 25px 4%;
  }
  .intro {
    margin-bottom: 22px;
  }
  .intro .eyebrow {
    font-size: 9px;
  }
  h1 {
    font-size: 29px;
    line-height: 1.2;
  }
  h1 i {
    display: block;
    margin-top: 4px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .felt {
    min-height: 408px;
  }
  .table-top {
    font-size: 8px;
    padding: 15px 13px;
  }
  .divider {
    margin: 0 5px;
  }
  .table-wordmark img { width: 190px; }
  .table-ring {
    inset: 22px 13px;
  }
  .action-bar {
    padding: 16px;
    gap: 15px;
  }
  .actions {
    margin-left: auto;
    gap: 6px;
  }
  .actions button {
    min-width: 53px;
    padding: 12px;
  }
  .actions .primary {
    padding: 14px 22px;
  }
  #round-status strong {
    font-size: 12px;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .panel {
    padding: 20px 16px;
  }
  .balance {
    flex-wrap: wrap;
    gap: 6px;
  }
  .balance > span:first-child {
    font-size: 30px;
  }
  .currency {
    font-size: 10px;
  }
  .balance .currency small {
    font-size: 7px;
  }
  .strategy-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .bet-heading span {
    font-size: 9px;
  }
  .session-strip {
    gap: 16px;
  }
  .session-decoration {
    display: none;
  }
  footer {
    flex-direction: column;
    gap: 4px;
  }
  .history {
    gap: 5px;
  }
  .hand {
    padding: 5px 7px;
  }
  .player-zone {
    gap: 12px;
  }
  .card {
    width: 64px;
    height: 92px;
  }
  .table-message {
    font-size: 14px;
  }
}
@media (max-width: 430px) {
  aside {
    grid-template-columns: 1fr;
  }
  .bankroll {
    padding: 22px;
  }
  .balance {
    margin: 16px 0;
  }
  .balance > span:first-child {
    font-size: 38px;
  }
  .strategy {
    padding: 22px;
  }
  .strategy-icon {
    float: left;
    margin: 10px 15px 0 0;
  }
  .strategy h2 {
    font-size: 22px;
  }
  .strategy-footer {
    clear: both;
  }
  .bet-heading span {
    font-size: 11px;
  }
  .strategy-heading .eyebrow {
    font-size: 10px;
  }
  .chips button {
    font-size: 14px;
  }
  .table-top {
    letter-spacing: 0.7px;
  }
  .status-label {
    font-size: 8px;
  }
  .actions .primary {
    padding: 14px 17px;
  }
  .primary span {
    margin-left: 10px;
  }
  .demo-tag {
    display: none;
  }
  header:after {
    content: "DEMO ONLY";
    font-size: 9px;
    color: var(--gold);
    border: 1px solid #dabe8440;
    padding: 7px;
  }
  .table-wordmark {
    margin: 20px 0 8px;
  }
  .session-strip {
    align-items: flex-start;
  }
  .history > span {
    font-size: 11px;
  }
  .actions:has(button[data-action]:not([hidden])) {
    margin: 0;
    width: 100%;
  }
  .actions:has(button[data-action]:not([hidden])) button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.actions button.recommended {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px #dabe8433;
  color: var(--gold);
}
/* Keep everyday labels comfortably legible while reserving fine type for metadata. */
.bet-heading,
.reset-button,
.session-row,
.chips button,
.strategy p {
  font-size: 14px;
}
.bet-note,
.strategy-footer,
.hand-result,
footer {
  font-size: 12px;
}
.strategy-heading .eyebrow {
  font-size: 10px;
}
.seat-label {
  font-size: 12px;
}
.history > span,
.session-strip strong {
  font-size: 14px;
}

.hand {
  max-width: 100%;
}
.hand .cards {
  display: grid;
  grid-template-columns: repeat(var(--card-count, 2), minmax(0, 60px));
  max-width: 100%;
}
@media (max-width: 760px) {
  .hand .cards {
    grid-template-columns: repeat(var(--card-count, 2), minmax(0, 52px));
  }
}

.sound-button {
  color: var(--gold);
  padding: 10px 14px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 14px;
}
.sound-button[aria-pressed="true"] {
  border-color: var(--gold);
  background: #dabe8410;
}
.card.card-arrive {
  animation: card-slide 380ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
.card.card-reveal {
  animation: card-turn 340ms ease-out both;
}
@keyframes card-slide {
  from {
    opacity: 0;
    translate: 60px -65px;
    rotate: -12deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}
@keyframes card-turn {
  from {
    opacity: 0.3;
    scale: 0.05 1;
  }
  to {
    opacity: 1;
    scale: 1 1;
  }
}
@media (max-width: 760px) {
  header {
    flex-wrap: wrap;
    height: auto;
    min-height: 78px;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .sound-button {
    padding: 8px;
    font-size: 12px;
  }
  header:after {
    display: none;
  }
  .demo-tag {
    display: block;
  }
  header nav {
    margin-left: auto;
  }
}

/* Physical chip-shaped controls, with numeric labels in addition to color. */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 22px -6px 18px;
}
.chips .casino-chip {
  --chip-color: #245f9c;
  --chip-edge: #aad0ed;
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--chip-edge);
  border-radius: 50%;
  color: #fff;
  background: repeating-conic-gradient(
    from 8deg,
    var(--chip-edge) 0deg 13deg,
    var(--chip-color) 13deg 45deg
  );
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--chip-color), #000 50%),
    0 6px 9px #0008;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    opacity 0.18s;
}
.chips .chip-red {
  --chip-color: #9c3544;
  --chip-edge: #f3c3bc;
}
.chips .chip-green {
  --chip-color: #24644c;
  --chip-edge: #b9e0bb;
}
.chips .chip-black {
  --chip-color: #282b32;
  --chip-edge: #c9cbd3;
}
.chips .chip-purple {
  --chip-color: #69418b;
  --chip-edge: #e3c5f1;
}
.casino-chip span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--chip-color);
  border: 1px dashed var(--chip-edge);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 2px #0008;
}
.chips .casino-chip.selected {
  transform: translateY(-5px);
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--chip-color), #000 50%),
    0 8px 12px #0009,
    0 0 16px #dabe8425;
}
.chips .casino-chip:hover:not(:disabled) {
  transform: translateY(-5px);
  background: repeating-conic-gradient(
    from 8deg,
    var(--chip-edge) 0deg 13deg,
    var(--chip-color) 13deg 45deg
  );
}
.chips .casino-chip:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 var(--chip-color),
    0 2px 4px #0007;
}
.chips .casino-chip:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
.chips .casino-chip:disabled {
  opacity: 0.4;
}

.table-wordmark .felt-rule {
  display: block;
  margin: 14px 0 2px;
  color: #d8c99f;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.6px;
  line-height: 1.6;
}
@media (max-width: 430px) {
  .table-wordmark .felt-rule {
    letter-spacing: 1px;
  }
}
.table-wagers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  min-height: 112px;
  margin-top: 16px;
  position: relative;
}
.bet-spot {
  border: 1px solid #dabe8460;
  border-radius: 50%;
  min-width: 174px;
  min-height: 108px;
  padding: 18px 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: #0b201520;
}
.bet-spot:hover:not(:disabled) {
  background: #dabe840b;
  border-color: var(--gold);
}
.wager-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #d8c99f;
  display: block;
  text-align: center;
}
.wager-seat {
  min-width: 125px;
  text-align: center;
}
.wager-stacks {
  display: flex;
  gap: 20px;
  justify-content: center;
  min-height: 70px;
  align-items: center;
  margin-top: 15px;
}
.felt-stack {
  position: relative;
  width: 48px;
  height: 46px;
  flex-shrink: 0;
}
.felt-chip {
  --chip: #245f9c;
  position: absolute;
  left: 0;
  bottom: calc(var(--i) * 3px);
  width: 44px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 4px dashed #dedbca;
  outline: 1px solid var(--chip);
  background: var(--chip);
  color: #fff;
  font:
    700 12px "DM Sans",
    sans-serif;
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--chip), #000 50%),
    0 5px 8px #0004;
}
.felt-chip.red {
  --chip: #9c3544;
}
.felt-chip.green {
  --chip: #24644c;
}
.felt-chip.black {
  --chip: #282b32;
}
.felt-chip.purple {
  --chip: #69418b;
}
.felt-chip.ivory {
  --chip: #a89978;
  color: #15251d;
}
.stack-amount {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #eee3c7;
  white-space: nowrap;
}
.empty-bet {
  font-size: 26px;
  color: var(--gold);
}
.payout-label {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-top: 5px;
  display: block;
}
.wager-outcome {
  color: #c4d2c5;
  font:
    italic 16px Georgia,
    serif;
}
.wager-outcome.won {
  color: #ead19b;
}
.flying-chip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
}
.flying-chip .stack-amount {
  display: none;
}
.chips-paid {
  animation: payout-arrive 950ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
.chips-lost {
  animation: dealer-collect 1050ms ease-in both;
}
.chips-returned {
  animation: player-collect 720ms ease-in both;
}
.chips-gone {
  visibility: hidden;
}
.win-flourish {
  position: absolute;
  inset: 30% 0 auto;
  text-align: center;
  color: var(--gold);
  font-size: 80px;
  opacity: 0;
  pointer-events: none;
}
.celebrating .win-flourish {
  animation: win-bloom 1200ms ease-out both;
}
.celebrating .table-ring {
  animation: felt-glow 1200ms ease-out both;
}
.celebrating .hand {
  box-shadow: 0 0 22px #dabe8415;
}
@keyframes payout-arrive {
  from {
    transform: translate(var(--dealer-x, 35px), var(--dealer-y, -230px))
      rotate(-15deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  to {
    transform: translate(0, 0) rotate(0);
    opacity: 1;
  }
}
@keyframes dealer-collect {
  0%,
  20% {
    transform: translate(0, 0);
    opacity: 1;
  }
  to {
    transform: translate(var(--dealer-x, 25px), var(--dealer-y, -260px))
      scale(0.6);
    opacity: 0;
  }
}
@keyframes player-collect {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(95px) scale(0.85);
    opacity: 0;
  }
}
@keyframes win-bloom {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  30% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}
@keyframes felt-glow {
  35% {
    border-color: #f4d489;
    box-shadow:
      0 0 35px #dabe8440,
      inset 0 0 35px #dabe8420;
  }
}
@media (max-width: 430px) {
  .table-wagers {
    gap: 15px;
  }
  .wager-seat {
    min-width: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chips-lost,
  .chips-returned {
    opacity: 0.4;
  }
}

/* Hourly tournaments share the original felt, brass and ink palette. */
.tournament-bar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:28px; padding:24px 28px; margin:0 0 24px; background:linear-gradient(115deg,#19372f,#102720);border:1px solid #a98d514d;border-radius:12px; }
.tournament-bar p {margin:6px 0;color:#c1cec5;font-size:14px;}
.tournament-bar strong {font-size:18px;color:#f5ecd7;}
.tournament-clock {display:flex;flex-direction:column;align-items:center;gap:4px;padding:0 30px;border-inline:1px solid #c1a26733;}
.tournament-clock strong {font-size:36px;letter-spacing:2px;font-variant-numeric:tabular-nums;}
.tournament-clock>span:last-child {font-size:14px;color:#c1cec5;}
.tournament-entry {justify-self:end;display:flex;flex-direction:column;gap:12px;}
.tournament-entry .primary {padding:14px 20px;}
.mode-switch {display:flex;border:1px solid #ba9e6555;border-radius:7px;overflow:hidden;}
.mode-switch button {flex:1;padding:9px 16px;background:transparent;color:#c1cec5;border:0;border-radius:0;font-size:14px;cursor:pointer;}
.mode-switch button[aria-pressed=true] {background:#c6ab7326;color:#f4d99c;}
.room-notice {display:flex;align-items:center;gap:12px;color:#ecb790;font-size:14px;}
.room-notice p:empty {display:none;}
.tournament-results {display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin-top:24px;}
.tournament-results .panel {padding:28px;min-width:0;}
.tournament-results h2 {font-family:Georgia,serif;font-weight:400;font-size:28px;margin:8px 0;}
.board-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;}
#your-rank {font-size:14px;color:#d8bd80;white-space:nowrap;}
.board-caption,.empty-board {font-size:14px;color:#aab9b0;line-height:1.6;}
.leader-row {display:grid;grid-template-columns:52px minmax(100px,1fr) 72px 60px;gap:10px;padding:13px 6px;border-bottom:1px solid #ffffff10;font-size:14px;}
.leader-row span:nth-child(n+3) {text-align:right;font-variant-numeric:tabular-nums;}
.leader-row.is-you {background:#d5bc7920;color:#ffe3a5;}
.board-labels {color:#aab9b0;font-size:13px;}
.winner-item {display:flex;flex-direction:column;gap:7px;padding:18px 0;border-bottom:1px solid #ffffff10;}
.winner-item span {font-size:14px;color:#aab9b0;}
.winner-item strong {color:#e8ce90;font-weight:500;overflow-wrap:anywhere;line-height:1.5;}
.tournament-rules {margin-top:24px;padding:24px 28px;}
.tournament-rules p:not(.eyebrow) {font-size:14px;line-height:1.7;color:#b5c1b9;max-width:1100px;}
button:focus-visible,a:focus-visible {outline:2px solid #efcf84;outline-offset:4px;}
button:disabled {cursor:not-allowed;}
[hidden] {display:none!important;}
@media(max-width:850px){.tournament-bar{grid-template-columns:1fr auto;padding:20px;gap:20px;}.tournament-entry{grid-column:1/-1;justify-self:stretch;flex-direction:row;align-items:center;justify-content:space-between;}.tournament-clock{padding:0 0 0 16px;border-right:0;}.tournament-results{grid-template-columns:1fr;}}
@media(max-width:520px){.tournament-bar{gap:12px;}.tournament-bar strong{font-size:15px;}.tournament-clock strong{font-size:29px;}.tournament-entry{flex-direction:column;align-items:stretch;}.tournament-results .panel{padding:20px 14px;}.leader-row{grid-template-columns:38px minmax(90px,1fr) 62px 46px;gap:6px;font-size:13px;}.board-heading{align-items:flex-start;flex-direction:column;}.demo-tag{display:none;}}

#account-dialog{max-height:85vh;overflow-y:auto;width:min(92vw,520px)}
#account-dialog label{display:block;font-size:16px;margin:18px 0 8px}
#account-dialog input{width:100%;padding:13px;background:#0c1412;border:1px solid #9daea4;border-radius:6px;color:#f0efe7;font-size:16px}
#account-dialog form button{width:100%;margin-top:14px;padding:13px}
#account-dialog .account-privacy{font-size:14px;line-height:1.6;color:#aab9b0}
#account-message{color:#ebce93;font-size:14px;line-height:1.6}
.account-result{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid #ffffff18;padding-bottom:12px;font-size:14px}
.account-result strong{font-weight:500;color:#ebce93}.account-actions{display:flex;flex-wrap:wrap;gap:20px;margin-top:24px}
