:root {
  color-scheme: dark;
  --gold: #e3c27a;
  --ink: #f4efe6;
  --muted: #b7ab9a;
  --panel: #16120f;
  --line: rgba(227, 194, 122, 0.45);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
html, body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--app-h, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background:
    linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.25)),
    repeating-linear-gradient(90deg, #14110e 0 16px, #2a241c 16px 20px);
  color: var(--ink);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
#app { height: 100%; }
.screen { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.top {
  position: relative;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  min-height: 96px;
}
.brand { min-height: 86px; }
.brand h1 {
  margin: 0;
  padding-right: 124px;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.28;
}
.screen:not(.table-screen) .top {
  min-height: 0;
  padding-top: calc(6px + env(safe-area-inset-top));
  padding-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
}
.screen:not(.table-screen) .brand {
  min-height: 0;
  text-align: left;
  min-width: 0;
  grid-column: 1;
}
.screen:not(.table-screen) .brand h1 {
  padding: 0;
  font-size: clamp(15px, 4.6vw, 20px);
  line-height: 1.15;
  text-align: left;
}
.screen:not(.table-screen) .tools {
  position: static;
  top: auto;
  right: auto;
  grid-column: 2;
}
.nav { display: flex; gap: 16px; margin-top: 16px; }
.screen:not(.table-screen) .nav { justify-content: flex-start; margin-top: 8px; }
.nav button, .curtain button {
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}
.nav button.on, .curtain button.on { color: var(--gold); }
.tools {
  position: absolute;
  right: 8px;
  top: calc(6px + env(safe-area-inset-top));
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.tool-row { display: flex; align-items: center; gap: 8px; position: relative; }
.chips {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  font-family: sans-serif;
}
.table-screen .top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "menu clock tools" "bar bar bar";
  align-items: center;
  column-gap: 4px;
  row-gap: 6px;
  min-height: 0;
  padding:
    calc(4px + env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    6px
    max(8px, env(safe-area-inset-left));
}
.table-screen .side-menu { grid-area: menu; min-width: 0; gap: clamp(2px, 0.8vw, 6px); }
.table-screen .clock { grid-area: clock; margin: 0; font-size: clamp(15px, 4.4vw, 20px); }
.table-screen .tools {
  position: relative;
  top: auto;
  right: auto;
  grid-area: tools;
  z-index: 8;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.table-screen .tool-row { gap: clamp(4px, 1vw, 8px); }
.table-screen .speaker { width: clamp(28px, 7.4vw, 36px); height: clamp(28px, 7.4vw, 36px); flex: 0 0 auto; }
.table-screen .speaker svg { width: 16px; height: 16px; }
.table-screen .rivet { position: absolute; right: -2px; bottom: -4px; width: 12px; height: 12px; }
@media (max-width: 360px) {
  .table-screen .side-menu button { font-size: 10px; padding: 4px 4px; }
  .table-screen .speaker { width: 26px; height: 26px; }
  .table-screen .clock { font-size: 15px; }
}
.table-screen .chips { margin-top: 0; font-size: clamp(11px, 3.2vw, 14px); color: #f0e2c4; }
.chips .online-count {
  font-style: normal;
  font-weight: 600;
  color: #cbb892;
  white-space: nowrap;
}
.table-screen .chips .online-count { color: #d8c49a; }
.table-screen .side-menu button {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #1a1612;
  border-color: #6a5c4c;
  font-size: clamp(11px, 3vw, 13px);
  padding: 5px clamp(5px, 1.4vw, 8px);
}
.table-screen .turn-line {
  position: static;
  grid-area: bar;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: #4a1612;
  box-shadow: none;
}
.table-screen .turn-line span { background: #e10c0c; border-radius: 999px; }
.table-screen .chat-pop { top: calc(100% + 6px); }
.side-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4px;
  z-index: 5;
  min-width: 0;
}
.side-menu button {
  background: #1b1612;
  border: 1px solid rgba(227, 194, 122, 0.55);
  border-radius: 8px;
  color: #f4efe6;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 4px 5px;
  line-height: 1.1;
  white-space: nowrap;
}
.side-menu .back { color: var(--gold); }
.table-screen .side-menu.table-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 6px;
  width: min(100%, 220px);
}
.table-screen .leave-stack,
.table-screen .cash-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  width: 100%;
}
.table-screen .leave-bar,
.table-screen .cash-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
}
.table-screen .leave-bar { background: #4a1612; }
.table-screen .cash-bar { background: #164a28; }
.table-screen .leave-bar span,
.table-screen .cash-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
}
.table-screen .leave-bar span { background: #e10c0c; }
.table-screen .cash-bar span { background: #2f9a52; }
.table-screen .leave-btn,
.table-screen .cash-btn {
  width: 100%;
  min-height: 34px;
  border-radius: 8px !important;
  font-size: clamp(11px, 3vw, 13px) !important;
  padding: 5px 6px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}
.table-screen .leave-btn {
  background: #5a1212 !important;
  border-color: #c42828 !important;
  color: #ffe8e8 !important;
}
.table-screen .cash-btn {
  background: #146335 !important;
  border-color: #2f9a52 !important;
  color: #e8ffe8 !important;
}
.table-screen .leave-btn.locked {
  opacity: 0.45;
  pointer-events: none;
}
.table-screen .brand {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center end;
  padding: 0;
}
.clock {
  font-family: sans-serif;
  font-size: 18px;
  margin-left: 2px;
  font-weight: 800;
  line-height: 1;
  color: #ff2a1a;
  font-variant-numeric: tabular-nums;
}
.speaker, .rivet, .menu-btn, .peek {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20, 16, 12, 0.88);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.rivet { width: 18px; height: 18px; border-radius: 50%; padding: 0; opacity: 0.55; }
.peek { width: 36px; height: 28px; border-radius: 10px; }
.music-menu {
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 20;
  width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: #1b1612;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  display: grid;
  gap: 4px;
}
.music-menu button {
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
}
.music-menu button.on, .music-menu button:hover { background: rgba(227, 194, 122, 0.12); color: var(--gold); }
.curtain {
  display: flex;
  gap: 18px;
  padding: 4px 14px 8px;
}
.hall, .sheet {
  flex: 1;
  min-height: 0;
  padding: 8px 12px 18px;
  overflow: auto;
}
.hall { display: flex; flex-direction: column; padding-top: 12px; }
.hall:has(.games) { justify-content: flex-start; padding-top: 0; padding-bottom: 0; }
.hall:has(.games)::before,
.hall:has(.games)::after { content: ""; flex: 1 1 0; }
.hall:has(.games)::before { flex-grow: 0.28; }
.games, .grid3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.games {
  margin-top: 0;
  flex: 8 1 0;
  min-height: 0;
  width: 100%;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.games .tile { aspect-ratio: auto; height: auto; }
.desks { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.desk {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}
.desk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.desk .plate {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  min-width: 46%;
  padding: 5px 12px 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f0ddb0 0%, #c49a55 42%, #8d642e 100%);
  color: #2a1c0c;
  text-align: center;
  box-shadow: 0 2px 0 #5a3e1c, inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.desk .plate b, .desk .plate i {
  display: block;
  font-style: normal;
  font-family: sans-serif;
  line-height: 1.2;
}
.desk .plate b { font-size: 15px; font-weight: 800; }
.desk .plate i { font-size: 13px; font-weight: 700; }
.tile {
  position: relative;
  background: #1a120c;
  border: 0;
  border-radius: 18px;
  padding: 0;
  min-height: 0;
  aspect-ratio: 4 / 3.05;
  overflow: hidden;
  display: block;
  text-align: left;
}
.tile strong { display: block; width: 100%; font-size: 14px; line-height: 1.15; font-weight: 700; color: #f6f1e6; }
.tile .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(8, 5, 3, 0.88) 58%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tile .line { display: block; white-space: nowrap; }
.tile.note .scene { object-position: center 22%; }
.tile.bw .scene { filter: grayscale(1) contrast(1.1); }
.tile.note .cap,
.tile.soon.blood .cap {
  padding: 28px 10px 8px;
  background: linear-gradient(transparent, rgba(8, 5, 3, 0.92) 62%);
  align-items: center;
  text-align: center;
}
.tile.note strong,
.tile.blood strong {
  font-size: clamp(15px, 3.8vw, 19px);
  line-height: 1.2;
  color: #ff1a1a;
  text-shadow: 0 0 8px rgba(120, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.9);
}
.tile.note { cursor: pointer; }
.tile.note .line,
.tile.blood .line { white-space: normal; }
.tile.soon.blood em { display: none; }
.debt {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}
.debt-card {
  width: min(340px, 100%);
  padding: 16px 16px 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #1b140f;
  text-align: center;
}
.debt-face {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid var(--gold);
  filter: grayscale(1) contrast(1.08);
  animation: nod 1.1s ease-in-out infinite;
}
.debt-say {
  position: relative;
  height: 28px;
  margin: 10px 0 0;
  color: #f6f1e6;
  font-family: sans-serif;
  font-weight: 800;
}
.debt-say span {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  animation: say 4.8s linear infinite;
}
.debt-say span:nth-child(2) { animation-delay: 1.6s; }
.debt-say span:nth-child(3) { animation-delay: 3.2s; }
.debt-sum {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: sans-serif;
  font-size: 28px;
}
.lane {
  position: relative;
  height: 62px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 14px;
  background: #2a2118;
  container-type: inline-size;
}
.bill {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 1;
  width: 52px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2f9a52, #146335);
  color: #f4efe6;
  font-style: normal;
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  animation: ferry 1.7s ease-in-out infinite;
}
.bill.b2 { animation-delay: 0.28s; }
.bill.b3 { animation-delay: 0.56s; }
.pocket {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: 74px;
  height: 46px;
  border-radius: 8px;
  background: #5a3d28;
  color: #f3e2bc;
  font-family: sans-serif;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.debt-note {
  margin: 0 0 12px;
  color: #d9c7a4;
  font-family: sans-serif;
  font-size: 14px;
}
@keyframes nod {
  50% { transform: rotate(5deg) translateY(3px); }
}
@keyframes say {
  0%, 26% { opacity: 1; }
  33%, 100% { opacity: 0; }
}
@keyframes ferry {
  0% { transform: translateX(8px); }
  42% { transform: translateX(calc(100cqi - 92px)); }
  58% { transform: translateX(calc(100cqi - 92px)); }
  100% { transform: translateX(8px); }
}
.tile .mark { font-style: normal; margin-left: 2px; font-size: 13px; }
.tile .shoe {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid #e7d3a4;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.tile.soon .cap { background: linear-gradient(transparent, rgba(12, 8, 5, 0.55) 70%); }
.tile.soon:not(.blood) strong { color: #f3eadc; }
.tile.soon em { font-style: normal; font-family: sans-serif; font-size: 12px; font-weight: 700; color: #d9c7a4; }
.scene { width: 100%; height: 100%; object-fit: cover; display: block; }
.art.holdem {
  background: radial-gradient(ellipse at 50% 60%, #1e8a46, #0b3d22 70%);
}
.art.blackjack {
  background: linear-gradient(#3a2414, #1a120c 40%, #0e6a38 40%, #084428);
}
.mini-card {
  position: absolute;
  width: 28px;
  height: 40px;
  background: #f7f3ea;
  color: #1a1a1a;
  border-radius: 4px;
  font-size: 12px;
  display: grid;
  place-items: center;
  font-family: sans-serif;
}
.mini-card.red { color: #b42318; }
.grid3 { grid-template-columns: 1fr 1fr 1fr; }
.grid3 .tile { min-height: 120px; align-items: flex-start; }
.table-screen { background: #120c09; }
.room {
  height: 22px;
  min-height: 0;
  flex: 0 0 22px;
  position: relative;
  background: linear-gradient(#4a2a22, #1a0d0a 70%);
  overflow: hidden;
}
.lamp {
  position: absolute;
  top: 6px;
  width: 54px;
  height: 8px;
  border-radius: 8px;
  background: #f0d59a;
  box-shadow: 0 10px 18px rgba(240, 190, 90, 0.45);
}
.sofa {
  position: absolute;
  bottom: 0;
  width: 28%;
  height: 46%;
  background: #7a1d24;
  border-radius: 8px 8px 0 0;
}
.felt-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  padding: 0 max(2px, env(safe-area-inset-right)) 2px max(2px, env(safe-area-inset-left));
}
.table-screen { background: #100c0a; }
.felt {
  position: relative;
  flex: 1;
  min-height: 0;
  container-type: size;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  padding: 8px 8px 2px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, #23924c 0%, #0d5c32 58%, #06341c 100%);
  border: 12px solid #6a4324;
  box-shadow: inset 0 0 0 3px #d7b56a, inset 0 0 40px rgba(0,0,0,.35);
}
.felt .ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid rgba(227, 194, 122, 0.45);
  pointer-events: none;
}
.felt.holdem {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url('/tiles/felt-holdem.jpg?v=40') center / 100% 100% no-repeat;
  display: block;
}
.felt.holdem .ring { display: none; }
.felt.holdem .center {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  width: min(420px, 92%);
  grid-row: auto;
  z-index: 2;
  pointer-events: none;
}
.felt.holdem .center .meta { display: none; }
.felt.holdem .center .pot,
.felt.holdem .center .sub {
  color: #f7f3ea;
  font-family: sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.felt.holdem .center .pot,
.felt.holdem .center .sub {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.felt.holdem .center .pot { font-size: clamp(13px, 4cqw, 17px); font-weight: 700; }
.felt.holdem .center .sub { font-size: clamp(11px, 3.3cqw, 14px); }
.felt.holdem .seat:not(.me):not(.empty) {
  transform: translate(-50%, -50%);
  width: clamp(84px, 26cqw, 118px);
  max-width: 30cqw;
}
.felt.holdem .seat.empty { width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 50%; }
.felt.holdem .seat.me {
  position: absolute;
  left: 50%;
  bottom: 1%;
  top: auto;
  transform: translate(-50%, 0);
  width: clamp(112px, 36cqw, 156px);
  max-width: 48%;
  margin: 0;
  grid-row: auto;
}
.felt.holdem .seat.rim { top: 12%; }
.felt.holdem .plaque {
  position: relative;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.felt.holdem .seat.me .plaque { width: auto; }
.felt.holdem .plaque em { color: #f6f1e6; font-family: sans-serif; }
.felt.holdem .seat .face {
  width: clamp(36px, 11cqw, 44px);
  height: clamp(36px, 11cqw, 44px);
}
.felt.holdem .seat .avatar,
.felt.holdem .seat .mark {
  position: static;
  transform: none;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 2px solid #120e0b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.felt.holdem .seat:not(.me) .hand {
  position: absolute;
  margin: 0;
  z-index: 4;
  gap: 2px;
}
.felt.holdem .seat.rim .hand,
.felt.holdem .seat.high.mid .hand {
  left: 50%;
  right: auto;
  top: auto;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
}
.felt.holdem .seat.high.left .hand,
.felt.holdem .seat.low.left .hand {
  left: auto;
  right: calc(100% + 2px);
  top: 42%;
  bottom: auto;
  transform: translateY(-50%);
}
.felt.holdem .seat.high.right .hand,
.felt.holdem .seat.low.right .hand {
  left: calc(100% + 2px);
  right: auto;
  top: 42%;
  bottom: auto;
  transform: translateY(-50%);
}
.felt.holdem .seat:not(.me) .card {
  width: clamp(14px, 4.4cqw, 22px);
  height: auto;
  aspect-ratio: 5 / 7;
  padding: 0;
  border-radius: 3px;
}
.felt.holdem .seat.me .card,
.felt.holdem .board .card {
  width: 48px !important;
  height: 68px !important;
  max-width: none !important;
  min-width: 48px !important;
  aspect-ratio: auto !important;
  padding: 4px 5px !important;
  border-radius: 6px;
  background: #fffefb;
  flex: 0 0 auto !important;
}
.felt.holdem .seat.me .card b,
.felt.holdem .board .card b { font-size: 18px !important; line-height: 1; }
.felt.holdem .seat.me .card span,
.felt.holdem .board .card span { font-size: 16px !important; }
.felt.holdem .seat.me .hand { margin-bottom: 18px; }
.felt.holdem .seat.me .dealer {
  left: -30px;
  top: 22px;
  z-index: 6;
}
.felt.holdem .seat:not(.me) .dealer {
  left: auto;
  right: -4px;
  top: -12px;
  z-index: 6;
}
.felt.holdem .seat.me .combo {
  align-self: flex-end;
  margin: 0 0 8px 4px;
  background: rgba(16, 12, 8, 0.72);
  color: #f4efe6;
}
.felt.holdem .board {
  margin-top: 4px;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
}
.felt.blackjack {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url('/tiles/felt-blackjack.jpg?v=56') center / 100% 100% no-repeat;
  display: block;
}
.felt.blackjack .ring { display: none; }
.felt.blackjack .center {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(220px, 64%);
  grid-row: auto;
}
.felt.blackjack .center .meta { display: none; }
.felt.blackjack .center .pot,
.felt.blackjack .center .sub {
  color: #e7d3a4;
  font-family: sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.felt.blackjack .center .pot { font-size: clamp(12px, 3.8cqw, 16px); font-weight: 700; }
.felt.blackjack .center .sub { font-size: clamp(11px, 3.2cqw, 13px); }
.felt.blackjack .seat {
  position: absolute;
  width: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}
.felt.blackjack .seat.me {
  position: absolute;
  grid-row: auto;
  width: auto;
  max-width: none;
  margin: 0;
  transform: translate(-50%, -50%);
}
.felt.blackjack .seat.empty {
  width: 44px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid #f0e2c0;
  background: linear-gradient(90deg, #b7a78e 0%, #f7f3ea 28%, #e4d9c8 62%, #a89880 100%);
  color: #3a3228;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 8px rgba(0, 0, 0, 0.4);
}
.felt.blackjack .seat.empty b {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  font-family: sans-serif;
  font-size: 15px;
  font-weight: 800;
}
.felt.blackjack .pile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.felt.blackjack .pile i {
  width: 22px;
  height: 10px;
  margin-top: -3px;
  border-radius: 11px;
  background: linear-gradient(#fff, #d7d0c4);
  border: 1px solid #8d8478;
}
.felt.blackjack .pile i.red { background: linear-gradient(#ef5d52, #9a221c); border-color: #6d1612; }
.felt.blackjack .bj-left .pile { left: calc(100% - 6px); top: 28px; }
.felt.blackjack .bj-right .pile { right: calc(100% - 6px); top: 28px; }
.felt.blackjack .bj-top .pile { left: 50%; top: calc(100% - 4px); transform: translateX(-50%); }
.felt.blackjack .bj-bottom .pile { left: 50%; bottom: calc(100% - 4px); transform: translateX(-50%); }
.felt.blackjack .bj-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.felt.blackjack .bj-box .face {
  width: 34px;
  height: 34px;
}
.felt.blackjack .bj-box .avatar,
.felt.blackjack .bj-box .mark {
  position: static;
  transform: none;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 2px solid #120e0b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.felt.blackjack .bj-box em {
  font-style: normal;
  font-family: sans-serif;
  font-size: 12px;
  line-height: 1.15;
  color: #f6f1e6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.felt.blackjack .bj-plate {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  width: 42px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f3ecdf, #b7ad9e);
  color: #3a3228;
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
  display: grid;
  place-items: center;
}
.felt.blackjack .hand { position: absolute; margin: 0; z-index: 3; }
.felt.blackjack .bj-left .hand { left: calc(100% + 18px); top: -6px; }
.felt.blackjack .bj-right .hand { right: calc(100% + 18px); top: -6px; }
.felt.blackjack .bj-top .hand { left: 50%; top: calc(100% + 28px); transform: translateX(-50%); }
.felt.blackjack .bj-bottom .hand { left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); }
.felt.blackjack .card {
  width: clamp(20px, 6cqw, 26px);
  height: auto;
  aspect-ratio: 5 / 7;
  padding: 2px;
}
.felt.blackjack .card b { font-size: clamp(10px, 3cqw, 12px); }
.felt.blackjack .card span { font-size: clamp(9px, 2.8cqw, 11px); }
.felt.blackjack .seat.me .card {
  width: clamp(30px, 10cqw, 42px);
  height: auto;
  aspect-ratio: 8 / 11;
}
.felt.blackjack .seat.me .card b { font-size: clamp(12px, 4cqw, 16px); }
.felt.blackjack .seat.me .card span { font-size: clamp(11px, 3.5cqw, 14px); }
.felt.blackjack .bj-box {
  min-width: clamp(78px, 24cqw, 96px);
  max-width: 34cqw;
}
.felt.blackjack .bj-box span b {
  max-width: 16cqw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.felt.blackjack .bj-box.wait {
  border-style: dashed;
  border-color: var(--gold);
}
.felt.blackjack .bj-box .wait {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}
.center {
  position: relative;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  text-align: center;
  width: min(176px, 70%);
  margin: 0;
  z-index: 2;
}
.center .meta, .center .sub { margin: 0 0 2px; color: #d7ecdf; font-size: 12px; font-family: sans-serif; }
.center .pot { margin: 0 0 2px; color: var(--gold); font-size: 16px; }
@container (max-height: 460px) {
  .center .meta { display: none; }
}
.board { display: flex; gap: 3px; justify-content: center; }
.banner {
  margin: 2px 8px 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold);
  font-size: 13px;
  font-family: sans-serif;
}
.table-screen .banner {
  margin-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
}
.banner .win {
  display: flex;
  gap: 4px;
  min-width: 0;
}
.banner .win i {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}
.banner .win b { flex: 0 0 auto; font-weight: 650; }
.turn-line {
  align-self: stretch;
  height: 8px;
  margin: 3px 4px 0 23px;
  border-radius: 8px;
  background: rgba(227, 194, 122, 0.28);
  box-shadow: 0 0 0 1px rgba(227, 194, 122, 0.35);
  overflow: hidden;
  pointer-events: none;
}
.turn-line span {
  display: block;
  height: 100%;
  width: 0;
  background: #f0d48a;
  border-radius: 8px;
  transition: width 0.45s linear;
}
.seat { position: absolute; transform: translate(-50%, -50%); text-align: center; z-index: 3; width: 84px; max-width: 84px; }
.seat.me {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  grid-row: 2;
  transform: none;
  z-index: 4;
  width: 116px;
  max-width: 42%;
  margin: 0 0 2px;
}
.seat.rim { top: 8px; transform: translate(-50%, 0); }
.seat.high.mid { transform: translate(-50%, -100%); }
.seat.high.left { transform: translate(0, -100%); }
.seat.high.right { transform: translate(-100%, -100%); }
.seat.low.left { transform: translate(0, 0); }
.seat.low.right { transform: translate(-100%, 0); }
.turn { margin: 0; text-align: center; color: var(--gold); font-family: sans-serif; font-size: 13px; }
.seat.empty {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  background: rgba(0,0,0,.25);
  font-size: 16px;
}
.plaque.wait { border: 0; }
.plaque .wait { color: var(--gold); font-size: 11px; font-weight: 700; }
.act-tag,
.win-tag {
  display: block;
  margin: 0 0 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(18, 12, 8, 0.82);
  border: 1px solid rgba(240, 212, 138, 0.55);
  color: #f6e7c2;
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}
.win-tag {
  border-color: rgba(255, 214, 90, 0.75);
  color: #ffe9a8;
  background: rgba(40, 24, 8, 0.9);
}
.felt.blackjack .bj-box .act-tag,
.felt.blackjack .bj-box .win-tag { margin: 0 auto 3px; }
.face-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.plaque.beside .hand.felt-hand,
.bj-box.beside .hand.felt-hand {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0;
  display: flex;
  gap: 2px;
  z-index: 5;
}
.seat.inplay .hand.felt-hand .card {
  width: 28px;
  height: 40px;
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.seat.inplay.me .hand.felt-hand .card {
  width: 34px;
  height: 48px;
  font-size: 12px;
}
.seat.inplay .hand.felt-hand .card.back {
  border: 1px solid #5a1418;
}
.plaque {
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.seat.me .plaque,
.felt.holdem .seat.me .plaque {
  width: auto;
  padding: 0;
  overflow: visible;
}
.plaque em {
  display: block;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gold);
  font-family: sans-serif;
  font-size: 11px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.seat.me .plaque em { font-size: 13px; }
.face {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.seat:not(.me) .face { width: 32px; height: 32px; }
.seat:not(.me) .mark, .seat:not(.me) .avatar { width: 100%; height: 100%; font-size: 12px; margin: 0; }
.mark, .avatar {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a241c;
  font-size: 13px;
  object-fit: cover;
  border: 2px solid #120e0b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.nick-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 8;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(12, 10, 8, 0.94);
  border: 1px solid rgba(227, 194, 122, 0.45);
  color: #f6f1e6;
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
.mark.big, .avatar.big { width: 72px; height: 72px; font-size: 28px; margin: 0; }
.who { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.who b { font-size: 22px; }
.who span { color: var(--gold); font-family: sans-serif; }
.fancy {
  background: linear-gradient(90deg, #ffe08a, #fff6, #e24b3a, #ffe08a);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 2.4s linear infinite;
}
@keyframes shine { to { background-position: 220% 0; } }
.muted { color: var(--muted); font-size: 13px; line-height: 1.4; }
.rates p { margin: 4px 0; }
.dealer {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4efe6;
  color: #1a1a1a;
  font-size: 11px;
  display: grid;
  place-items: center;
  font-family: sans-serif;
}
.hand { display: flex; align-items: flex-end; justify-content: center; gap: 3px; margin-bottom: 2px; overflow: visible; }
.seat:not(.me) .combo { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
.combo {
  margin-left: 4px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(8, 6, 4, 0.82);
  color: var(--gold);
  font-size: 12px;
  font-family: sans-serif;
  white-space: nowrap;
}
.card {
  width: 48px;
  height: 68px;
  border-radius: 6px;
  background: #fbf7ef;
  color: #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 5px;
  font-family: sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,.28);
  flex: 0 0 auto;
}
.card b { font-size: 18px; line-height: 1; }
.card span { font-size: 16px; }
.card.red { color: #c51616; }
.card.back {
  background: repeating-linear-gradient(135deg, #d24a42 0 3px, #8d1d22 3px 6px);
  border: 1px solid #f0d7a4;
}
.card.sm { width: 32px; height: 44px; padding: 2px 3px; }
.card.sm b { font-size: 13px; }
.card.sm span { font-size: 11px; }
.board .card {
  width: 48px;
  height: 68px;
  max-width: none;
  aspect-ratio: auto;
  padding: 4px 5px;
  flex: 0 0 auto;
}
.board .card b { font-size: 18px; }
.board .card span { font-size: 16px; }
.seat.me .hand { min-height: 0; }
@container (max-height: 520px) {
  .felt { padding-top: 8px; }
  .card { width: 40px; height: 56px; padding: 3px 4px; }
  .card b { font-size: 16px; }
  .card span { font-size: 14px; }
  .card.sm { width: 26px; height: 36px; }
  .card.sm b { font-size: 11px; }
  .card.sm span { font-size: 10px; }
  .felt.holdem .seat.me .card,
  .felt.holdem .board .card {
    width: 40px !important;
    height: 56px !important;
    min-width: 40px !important;
  }
  .felt.holdem .seat.me .card b,
  .felt.holdem .board .card b { font-size: 16px !important; }
  .felt.holdem .seat.me .card span,
  .felt.holdem .board .card span { font-size: 14px !important; }
  .seat:not(.me) { width: 72px; max-width: 72px; }
  .plaque, .seat:not(.me) .plaque { width: 72px; }
  .seat.me { width: 108px; }
}
@container (max-height: 430px) and (min-width: 520px) {
  .felt.holdem .center { top: 26%; }
  .felt.holdem .seat.me { bottom: 0; }
  .felt.holdem .seat.me .hand { margin-bottom: 6px; }
  .felt.holdem .seat.me .card,
  .felt.holdem .board .card {
    width: 40px !important;
    height: 56px !important;
    min-width: 40px !important;
  }
  .felt.holdem .seat:not(.me) .card { width: 14px; }
}
@container (min-height: 560px) and (min-width: 300px) {
  .felt.holdem .seat.me .card,
  .felt.holdem .board .card {
    width: 48px !important;
    height: 68px !important;
    min-width: 48px !important;
  }
  .felt.holdem .seat.me .card b,
  .felt.holdem .board .card b { font-size: 18px !important; }
  .felt.holdem .seat.me .card span,
  .felt.holdem .board .card span { font-size: 16px !important; }
}
.card.fly { animation: fly 0.45s ease-out; }
@keyframes fly {
  from { transform: translateY(-24px) rotate(-8deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.dock {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  padding:
    12px
    max(10px, env(safe-area-inset-right))
    calc(8px + env(safe-area-inset-bottom))
    max(10px, env(safe-area-inset-left));
  display: grid;
  gap: 8px;
  background: #0c0907;
}
.mic-btn {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 42px;
  color: #fff4d6;
  background: rgba(48, 28, 14, 0.95);
  border: 1px solid #c9a35a;
  box-shadow: 0 0 0 1px rgba(255, 200, 80, 0.35);
}
.mic-btn .mic-label {
  font-family: sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.mic-btn.on {
  color: #fff;
  background: linear-gradient(180deg, #ff4d4d 0%, #c41818 100%);
  border-color: #8a1010;
  box-shadow: 0 0 0 2px rgba(255, 70, 70, 0.55);
}
.table-screen .mic-btn { width: auto; padding: 0 6px; }
.chat-pop {
  position: absolute;
  top: 54px;
  right: 0;
  z-index: 25;
  width: min(240px, 70vw);
  max-height: min(230px, 40vh);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(8, 6, 4, 0.55);
  border: 1px solid rgba(227, 194, 122, 0.4);
  color: #f7f1e6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.chat-log {
  min-height: 72px;
  max-height: 150px;
  overflow: auto;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: #f7f1e6;
  padding: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.chat-log .quiet { color: #efe6d4; }
.chat-log b { color: #ffe08a; font-weight: 700; }
.chat-pop .chat-form input { background: rgba(18, 14, 10, 0.78); color: #fff; }
.chat-form { display: flex; gap: 6px; }
.sheet label { display: block; margin: 10px 0 4px; font-family: sans-serif; font-size: 15px; }
.sheet label input { width: 100%; margin-top: 6px; }
.chat-form input, .bet-box input, .sheet input, .gate input {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #4a3d2e;
  background: #1a1511;
  padding: 0 12px;
  font-size: 16px;
  font-family: sans-serif;
}
.chat-form button, .actions button, .primary, .sheet button.wide {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #5a4a34;
  background: #241c16;
  font-family: sans-serif;
  font-size: 15px;
}
.actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.actions button, .bet-go {
  height: clamp(42px, 6.4vh, 48px);
  min-width: 0;
  padding: 0 6px;
  border-radius: 12px;
  border: 1px solid #9a9084;
  background: linear-gradient(180deg, #f8f4ee 0%, #ddd4c8 46%, #b7aea0 100%);
  color: #2a241c;
  font-family: sans-serif;
  font-size: clamp(14px, 4.2vw, 18px);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 0 #6a6158;
}
.actions button.locked, .bet-go.locked { opacity: 0.45; }
.actions .fold {
  background: linear-gradient(180deg, #f8f4ee 0%, #ddd4c8 46%, #b7aea0 100%);
  border-color: #9a9084;
  color: #2a241c;
}
.bet-row {
  display: grid;
  grid-template-columns: minmax(44px, 64px) 34px minmax(0, 1fr) 34px minmax(68px, 100px);
  gap: clamp(3px, 1.2vw, 6px);
  align-items: center;
}
.bet-step {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #9a9084;
  background: linear-gradient(180deg, #f8f4ee 0%, #ddd4c8 46%, #b7aea0 100%);
  color: #2a241c;
  font-family: sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 0 #6a6158;
}
.slider {
  height: 28px;
  display: flex;
  align-items: center;
  touch-action: none;
  cursor: pointer;
  user-select: none;
}
.slider-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #3a2a22;
}
.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: #ff1a1a;
}
.slider-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff1a1a;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.bet-go {
  height: 48px;
  border-radius: 12px;
  border: 1px solid #9a9084;
  background: linear-gradient(180deg, #f8f4ee 0%, #ddd4c8 46%, #b7aea0 100%);
  color: #2a241c;
  font-family: sans-serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 0 #6a6158;
}
.primary { width: 100%; background: #3a2c18; color: var(--gold); }
.file {
  position: relative;
  display: block;
  margin: 8px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #241c14;
  text-align: center;
  overflow: hidden;
}
.file input { position: absolute; inset: 0; opacity: 0; }
.sheet h2, .gate h2 { font-size: 22px; margin: 6px 0 12px; }
.gate, .sheet { padding: 18px 16px; }
.choice { display: grid; gap: 8px; }
.till-hall {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.till-lead { margin: 0; color: var(--muted); line-height: 1.45; padding: 0 2px; }
.till-games {
  flex: 1 1 auto;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: 0;
}
.till-games .tile { aspect-ratio: 1 / 1; height: auto; }
.till-games .tile .cap {
  padding: 28px 10px 12px;
  background: linear-gradient(transparent, rgba(6, 4, 2, 0.9) 55%);
  align-items: center;
  text-align: center;
}
.till-games .tile strong {
  font-size: clamp(16px, 4.4vw, 22px);
  line-height: 1.15;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  white-space: normal;
}
.till-games .tile .line { white-space: normal; }
.tile.till-green strong { color: #6fde8a; }
.tile.till-red strong { color: #ff7b7b; }
.till-play-link { margin-top: auto; }
.till-sub, .till-hint { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.till-hint { color: var(--ink); font-weight: 600; }
.till-sheet-flow {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--app-h, 100dvh) - 110px);
  gap: 10px;
}
.till-amount-box {
  display: grid;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(227, 194, 122, 0.28);
  background: rgba(18, 14, 10, 0.72);
}
.till-amount-line {
  margin: 4px 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  font-size: 15px;
}
.till-amount-line b { color: var(--gold); font-size: 18px; }
.till-back-wrap {
  margin-top: auto;
  padding-top: 18px;
}
.req-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}
.req-value {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #120e0a;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.35;
  word-break: break-all;
  white-space: pre-wrap;
}
.copy-btn {
  white-space: nowrap;
  min-width: 108px;
  background: #3a2c18;
  color: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}
.copy-btn:disabled { opacity: 0.45; }
.till-notes {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
}
.till-notes p { margin: 4px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 420px) {
  .req-row { grid-template-columns: 1fr; }
  .copy-btn { width: 100%; }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #3a2414;
  border: 1px solid var(--gold);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 30;
  font-family: sans-serif;
}
.splash {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(240, 214, 154, 0.28), transparent 42%),
    linear-gradient(180deg, #2a211c 0%, #120e0c 46%, #070605 100%);
}
.lamp-rig { position: absolute; top: 0; left: 50%; width: 8px; height: 92px; transform-origin: top center; animation: swing 2.8s ease-in-out infinite; }
.lamp-rig i { display: block; width: 2px; height: 54px; margin: 0 auto; background: #6a5a40; }
.lamp-rig b { display: block; width: 18px; height: 14px; margin-left: -5px; border-radius: 0 0 8px 8px; background: #f0d59a; box-shadow: 0 18px 40px 12px rgba(240, 190, 90, 0.35); }
.poster { position: relative; z-index: 5; animation: rise 0.7s ease-out both; }
.eyebrow {
  margin: 0;
  color: #b7ab9a;
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.mug { position: relative; width: 168px; height: 176px; margin: 10px auto 0; }
.mug svg { width: 150px; height: 158px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)); }
.deal { position: absolute; left: 50%; bottom: 8px; display: flex; gap: 8px; transform: translateX(-50%) rotate(-6deg); }
.splash .card { width: 42px; height: 58px; }
.splash .card b { font-size: 16px; }
.splash h1 {
  margin: 8px 0 0;
  font-size: 34px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #000;
}
.splash .tag { margin: 4px 0 0; color: var(--gold); letter-spacing: 0.12em; font-size: 15px; }
.stamp {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 10px;
  border: 3px solid #e10600;
  border-radius: 8px;
  color: #e10600;
  font-family: sans-serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  animation: slam 0.45s cubic-bezier(.2,1.4,.4,1) 0.85s both;
}
.bars {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
}
.bars i {
  width: 14px;
  height: 100%;
  background: linear-gradient(90deg, #2a2a2a, #d5d5d5 42%, #6e6e6e 58%, #111);
  transform: translateY(-110%);
  animation: gate 0.55s cubic-bezier(.2,.8,.2,1) 0.35s forwards;
  box-shadow: 3px 0 0 rgba(0,0,0,.35);
}
.bars i:nth-child(odd) { animation-delay: 0.48s; }
.fine {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 5;
  margin: 0;
  color: #b7ab9a;
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  animation: rise 0.6s ease 1.15s both;
}
@keyframes swing { 50% { transform: rotate(7deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes gate { to { transform: translateY(0); } }
@keyframes slam { from { opacity: 0; transform: rotate(-18deg) scale(1.6); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@media (max-height: 700px) {
  .dock { padding-top: 6px; gap: 6px; }
  .table-screen .top { row-gap: 4px; }
}
@media (max-height: 560px) {
  .dock { padding-top: 4px; gap: 4px; }
  .actions button, .bet-go { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lamp-rig, .poster, .stamp, .bars i, .fine, .card.fly, .bill, .debt-face, .debt-say span { animation: none; }
  .bars i, .stamp, .poster, .fine { transform: none; opacity: 1; }
  .stamp { transform: rotate(-8deg); }
}
.admin-shot { max-width: 120px; display: block; }
.film-list { display: grid; gap: 6px; margin: 8px 0 14px; }
.film-list button { text-align: left; line-height: 1.3; }
.replay { margin: 8px 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.replay .cap { margin: 0 0 6px; }
.replay-board, .replay .hand { display: flex; gap: 3px; justify-content: center; }
.replay .card { width: 28px; height: 40px; padding: 2px; }
.replay .card b { font-size: 12px; }
.replay .card span { font-size: 11px; }
.replay-seats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.replay-seats .out { opacity: 0.45; }
.replay-seats b, .replay-seats em { display: block; font-style: normal; font-size: 12px; }
@media (max-width: 720px) {
  .games { grid-template-columns: 1fr 1fr; }
}
html.fit-narrow .screen:not(.table-screen) .brand h1 {
  font-size: 17px;
  padding-right: 118px;
}
html[data-fit="tiny"] .screen:not(.table-screen) .brand h1 {
  font-size: 15px;
  padding-right: 132px;
  line-height: 1.2;
}
html[data-fit="tiny"] .tools { max-width: 42vw; }
html[data-fit="tiny"] .chips {
  font-size: 11px;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.fit-narrow .chips { font-size: 12px; }
html.fit-narrow .tile strong { font-size: 12px; }
html.fit-narrow .table-screen .side-menu button {
  font-size: 10px;
  padding: 4px 5px;
}
html.fit-short .felt.holdem .center { top: 36%; width: min(420px, 96%); }
html.fit-short .felt.holdem .seat.me .hand { margin-bottom: 8px; }
html.fit-short .felt.holdem .seat.me .card,
html.fit-short .felt.holdem .board .card {
  width: 44px !important;
  height: 62px !important;
  min-width: 44px !important;
}
html.fit-short .felt.holdem .seat.me .card b,
html.fit-short .felt.holdem .board .card b { font-size: 16px !important; }
html.fit-short .felt.holdem .seat.me .card span,
html.fit-short .felt.holdem .board .card span { font-size: 14px !important; }
html.fit-short .dock { padding-top: 4px; gap: 4px; }
html.fit-short .actions button, html.fit-short .bet-go { height: 38px; font-size: 13px; }
html[data-fit="tiny"] .felt.holdem .seat:not(.me):not(.empty) {
  width: clamp(72px, 28cqw, 96px);
}
html[data-fit="tiny"] .felt.holdem .plaque b { font-size: 10px; }
html[data-fit="tiny"] .felt.holdem .plaque em { font-size: 10px; }
html[data-fit="tiny"] .felt.holdem .seat:not(.me) .card { width: clamp(12px, 4cqw, 18px); }
html[data-fit="landscape"] .felt.holdem .center { top: 42%; width: min(420px, 88%); }
html[data-fit="landscape"] .felt.holdem .seat.me { bottom: 0; width: clamp(100px, 28cqh, 140px); }
html[data-fit="landscape"] .felt.holdem .seat.me .card,
html[data-fit="landscape"] .felt.holdem .board .card {
  width: 40px !important;
  height: 56px !important;
  min-width: 40px !important;
}
html[data-fit="landscape"] .banner { display: none; }
html[data-fit="tablet"] .felt.holdem .center,
html[data-fit="desktop"] .felt.holdem .center {
  top: 32%;
  width: min(460px, 80%);
}
html[data-fit="tablet"] .felt.holdem .seat.me .card,
html[data-fit="desktop"] .felt.holdem .seat.me .card,
html[data-fit="tablet"] .felt.holdem .board .card,
html[data-fit="desktop"] .felt.holdem .board .card {
  width: 52px !important;
  height: 72px !important;
  min-width: 52px !important;
}
html[data-fit="tablet"] .felt.holdem .seat.me .card b,
html[data-fit="desktop"] .felt.holdem .seat.me .card b,
html[data-fit="tablet"] .felt.holdem .board .card b,
html[data-fit="desktop"] .felt.holdem .board .card b {
  font-size: 20px !important;
}
html[data-fit="tablet"] .felt.holdem .seat.me .card span,
html[data-fit="desktop"] .felt.holdem .seat.me .card span,
html[data-fit="tablet"] .felt.holdem .board .card span,
html[data-fit="desktop"] .felt.holdem .board .card span {
  font-size: 17px !important;
}
.felt.holdem .plaque b,
.felt.holdem .plaque em {
  max-width: 100%;
}
.felt.blackjack .bj-box span {
  min-width: 0;
}
@media (max-width: 360px) {
  .games { gap: 8px; }
  .hall:has(.games) { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 900px) {
  .games { max-width: 720px; margin: 0 auto; }
}
