:root {
  color-scheme: dark;
  --bg: #0b1612;
  --panel: #11221b;
  --panel2: #172c23;
  --muted: #8da599;
  --line: #263b30;
  --cream: #f3eddd;
  --gold: #ddbc7e;
  --green: #bbe5bd;
  --orange: #eaa277;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--cream);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.16s,
    transform 0.16s;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button:hover:not(:disabled) {
  filter: brightness(1.12);
}
a {
  text-decoration: none;
  color: var(--gold);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 48px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -2px;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--gold);
}
h2 {
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  line-height: 1.65;
  color: var(--muted);
}
small {
  font-size: 11px;
  line-height: 1.5;
}
.muted,
.fine {
  color: var(--muted);
}
.fine {
  font-size: 12px;
  line-height: 1.7;
}
.good {
  color: var(--green);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--gold);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.6px;
  white-space: nowrap;
}
.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .serif {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  font-size: 21px;
}
.brand-mark {
  font-size: 27px;
  display: grid;
  place-items: center;
  width: 41px;
  height: 48px;
  border: 1px solid #98845b;
  border-radius: 11px;
  color: var(--gold);
}
.pill {
  border: 1px solid #6c7155;
  background: #cabb7f0a;
  border-radius: 30px;
  padding: 7px 11px;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  color: var(--gold);
}
.primary,
.secondary,
.fold-button,
.call-button {
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 650;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  white-space: nowrap;
}
.primary {
  background: var(--gold);
  color: #222b1e;
}
.secondary {
  background: #ffffff04;
  color: var(--cream);
  border-color: #435247;
}
.small {
  padding: 8px 12px;
  font-size: 12px;
}
.text-button {
  padding: 9px 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 12px;
  display: inline-block;
  text-align: left;
}
.button-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.icon-button {
  border: 0;
  background: none;
  color: #b3c2b8;
  font-size: 11px;
  padding: 6px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
  border-radius: 13px;
  margin: 20px 0;
}
.list-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.panel.list-row {
  padding: 22px;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
input,
select,
textarea {
  background: #091b13;
  border: 1px solid #3d4f42;
  border-radius: 7px;
  padding: 12px;
  color: var(--cream);
  min-width: 0;
  width: 100%;
}
input[type="checkbox"] {
  width: 16px;
  accent-color: var(--gold);
  flex: none;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #b9c6be;
}
form > label {
  margin: 19px 0;
}
.checkbox {
  flex-direction: row;
  align-items: center;
  line-height: 1.6;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
fieldset {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 9px;
  margin: 24px 0;
}
legend {
  color: var(--gold);
  font-size: 12px;
  padding: 0 9px;
}
fieldset > label {
  margin-top: 18px;
}
[hidden] {
  display: none !important;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  min-height: 100vh;
}
.auth-story {
  padding: 55px 9%;
  background:
    radial-gradient(ellipse at 60% 65%, #244d35 0, transparent 65%), #11261b;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "♠";
  position: absolute;
  color: #a6c69403;
  font-size: 700px;
  bottom: -180px;
  right: -80px;
  pointer-events: none;
}
.auth-story h1 {
  font-size: 58px;
  margin: 26px 0;
}
.auth-story small {
  color: #91a38c;
}
.auth-story p {
  font-size: 16px;
}
.hero-cards {
  display: flex;
  margin: 36px 0 45px;
  gap: 4px;
}
.hero-cards .card {
  width: 74px;
  height: 104px;
  font-size: 25px;
  transform: rotate(-10deg);
}
.hero-cards .card:nth-child(2) {
  transform: translateY(-8px);
}
.hero-cards .card:nth-child(3) {
  transform: rotate(10deg);
}
.auth-form {
  align-self: center;
  width: min(380px, 80%);
  margin: 65px auto;
}
.auth-form h2 {
  margin: 30px 0 12px;
}
.auth-form .primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 10px;
}
.auth-form > .text-button {
  margin: 20px 0;
}
.auth-form .fine {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.app-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 34px 22px 22px;
  border-right: 1px solid var(--line);
  background: #0d1a14;
  display: flex;
  flex-direction: column;
}
.sidebar-label {
  color: #73877a;
  letter-spacing: 1.7px;
  font-size: 9px;
  display: block;
  margin: 48px 0 15px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  background: none;
  border: 0;
  padding: 15px 14px;
  border-radius: 8px;
  text-align: left;
  font-size: 12px;
  color: #93a69a;
  margin: 3px 0;
}
.nav-item span {
  font-size: 21px;
}
.nav-item.active {
  background: #263b2b;
  color: var(--gold);
}
.sidebar-clubs .sidebar-label {
  margin-top: 40px;
}
.club-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 9px 0;
  font-size: 11px;
  text-align: left;
  width: 100%;
  color: var(--muted);
}
.club-link.selected {
  color: var(--cream);
}
.club-link span {
  flex: none;
  display: grid;
  place-items: center;
  background: #2a3a2a;
  color: var(--gold);
  width: 27px;
  height: 30px;
  border-radius: 6px;
}
.sidebar-clubs > .text-button {
  display: block;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 70px;
}
.sidebar-bottom p {
  font-size: 10px;
  margin: 12px 0 0;
}
.local-tag {
  font-size: 9px;
  color: #85b191;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.local-tag.reconnecting {
  color: #e7ac72;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
}
.topbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.topbar b {
  font-size: 15px;
  font-weight: 450;
}
.account {
  display: flex;
  align-items: center;
  gap: 20px;
}
.wallet-balance {
  text-align: right;
}
.wallet-balance small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 3px;
}
.wallet-balance strong {
  font-size: 19px;
  font-weight: 550;
}
.wallet-balance strong span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.user-button {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: 1px solid #7f8264;
  background: #293a27;
  color: var(--gold);
  font-size: 12px;
}
.empty-scene {
  max-width: 950px;
  margin: 0 auto;
  min-height: calc(100vh - 100px);
  padding: 65px 55px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 60%, #1b3421 0, transparent 58%);
}
.empty-scene h1 {
  margin: 20px 0;
}
.empty-scene .button-row {
  justify-content: center;
}
.empty-table {
  width: 430px;
  max-width: 100%;
  height: 190px;
  position: relative;
  background: #244a35;
  border: 13px solid #17271b;
  outline: 1px solid #53654b;
  border-radius: 50%;
  box-shadow:
    0 15px 40px #0007,
    inset 0 0 0 2px #b49d602e;
  margin: 32px auto;
}
.empty-table > span {
  display: block;
  font-size: 55px;
  line-height: 135px;
  color: #c0c79b35;
}
.empty-table > div {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.empty-table .card {
  transform: rotate(-8deg);
}
.empty-table .card + .card {
  transform: rotate(8deg);
}
.table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  min-height: calc(100vh - 100px);
}
.game-area {
  min-width: 0;
  padding: 26px 26px 22px;
  background: radial-gradient(ellipse at 50% 38%, #1b3425 0, transparent 68%);
}
.table-toolbar,
.table-tools,
.table-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-toolbar {
  justify-content: space-between;
  min-height: 38px;
}
.mode-label {
  font-size: 11px;
  color: var(--muted);
}
.table-tools {
  font-size: 11px;
}
.referee-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.referee-controls small,
.referee-test-notice {
  color: var(--gold);
  font-size: 12px;
}
.referee-test-notice {
  margin: 10px 0 0;
}
.table-stage {
  position: relative;
  height: 440px;
  width: 100%;
  margin: 40px 0 18px;
}
.felt {
  position: absolute;
  inset: 12% 6% 12%;
  border-radius: 46%;
  background: radial-gradient(
    ellipse at 50% 30%,
    #2f6547 0,
    #244e38 55%,
    #1c3f2e 100%
  );
  border: 14px solid #253723;
  box-shadow:
    0 16px 30px #0006,
    inset 0 0 0 2px #b6ae7133,
    0 0 0 2px #514e34,
    0 0 0 7px #0e2116;
}
.felt:after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 48%;
  border: 1px solid #aabd7c20;
  pointer-events: none;
}
.felt-brand {
  position: absolute;
  top: 14%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 17px;
  color: #d6dcb34f;
  letter-spacing: -0.5px;
  line-height: 1;
}
.felt-brand span {
  font-family: Georgia, serif;
  font-style: italic;
  margin-left: 2px;
}
.center-board {
  position: absolute;
  inset: 28% 12% 12%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.pot-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: #b0c4aa;
}
.pot-value {
  font-size: 26px;
  font-weight: 550;
}
.board-cards {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 4px;
}
.card {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 6px;
  width: 45px;
  height: 63px;
  background: #f5f0df;
  border: 1px solid #d5d1c1;
  color: #24382a;
  border-radius: 6px;
  box-shadow: 0 3px 5px #0003;
  font-size: 18px;
  line-height: 1;
  flex: none;
  font-family: Georgia, serif;
}
.card b {
  font-family: Arial, sans-serif;
  letter-spacing: -1px;
}
.card i {
  font-style: normal;
  align-self: flex-end;
  font-size: 26px;
}
.card.red {
  color: #c95447;
}
.card.back {
  background: repeating-linear-gradient(45deg, #5e6956 0 1px, #374d3c 1px 5px);
  border: 2px solid #d3cbb5;
  align-items: center;
  justify-content: center;
  color: #d7c992;
  font-size: 12px;
}
.card.mini {
  width: 26px;
  height: 36px;
  border-radius: 3px;
  padding: 3px;
  font-size: 11px;
  box-shadow: 0 2px 4px #0005;
}
.card.mini i {
  font-size: 15px;
}
.card-slot {
  display: grid;
  place-items: center;
  width: 45px;
  height: 63px;
  border: 1px solid #bbc79924;
  border-radius: 5px;
  font-size: 19px;
  color: #c1caab20;
}
.blinds {
  font-size: 10px;
  color: #b6c7ad;
}
.pause-label {
  position: absolute;
  bottom: 0;
  background: #102318d9;
  padding: 7px 12px;
  border-radius: 5px;
  color: var(--gold);
  font-size: 10px;
}
.is-paused .felt {
  filter: saturate(0.7);
}
.seat {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.seat-0 {
  left: 50%;
  top: 95%;
}
.seat-1 {
  left: 23%;
  top: 88%;
}
.seat-2 {
  left: 7%;
  top: 67%;
}
.seat-3 {
  left: 7%;
  top: 33%;
}
.seat-4 {
  left: 23%;
  top: 9%;
}
.seat-5 {
  left: 50%;
  top: 4%;
}
.seat-6 {
  left: 77%;
  top: 9%;
}
.seat-7 {
  left: 93%;
  top: 33%;
}
.seat-8 {
  left: 93%;
  top: 67%;
}
.seat-9 {
  left: 77%;
  top: 88%;
}
.avatar {
  position: relative;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  border: 2px solid #5d7053;
  background: linear-gradient(140deg, #3d5641, #25342b);
  color: #d9ddc6;
  display: grid;
  place-items: center;
  font-size: 13px;
  box-shadow: 0 3px 8px #0004;
}
.seat:nth-of-type(3n) .avatar {
  background: linear-gradient(140deg, #726044, #493e31);
}
.seat:nth-of-type(4n) .avatar {
  background: linear-gradient(140deg, #516274, #2a3e48);
}
.dealer {
  position: absolute;
  right: -9px;
  bottom: -2px;
  border-radius: 50%;
  background: #e5d5ab;
  color: #3d4535;
  width: 18px;
  height: 18px;
  font-style: normal;
  font-size: 10px;
  line-height: 18px;
  border: 1px solid #23311f;
}
.seat-info {
  background: #102018ed;
  border: 1px solid #556442;
  box-shadow: 0 4px 10px #0003;
  border-radius: 5px;
  padding: 4px 6px;
  width: 98px;
  text-align: center;
  margin-top: 3px;
}
.seat-info b {
  display: block;
  font-weight: 550;
  font-size: 10px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.seat-info > span {
  font-weight: 600;
  font-size: 12px;
  color: var(--gold);
}
.on-turn .avatar {
  border-color: var(--green);
  box-shadow:
    0 0 0 4px #99d89d22,
    0 0 22px #72c18544;
}
.on-turn .seat-info {
  border-color: var(--green);
}
.my-seat .seat-info {
  background: #354730;
}
.folded .avatar,
.folded .pocket {
  opacity: 0.45;
}
.pocket {
  display: flex;
  margin-top: 4px;
  gap: 2px;
}
.pocket .card + .card {
  margin-left: -3px;
}
.seat-clock {
  position: absolute;
  right: 0;
  top: 10px;
  border-radius: 50%;
  background: var(--green);
  color: #163521;
  padding: 5px;
  font-size: 9px;
  font-weight: 750;
}
.bet-chip {
  position: absolute;
  top: 108%;
  background: #e2c682;
  color: #273821;
  border-radius: 18px;
  white-space: nowrap;
  padding: 3px 7px;
  font-size: 9px;
}
.seat-0 .bet-chip,
.seat-1 .bet-chip,
.seat-9 .bet-chip {
  top: -23px;
}
.empty-seat {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: none;
  color: #77896e;
}
.empty-seat > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px dashed #6a785b;
  border-radius: 50%;
  font-size: 22px;
  background: #18322099;
}
.empty-seat small {
  font-size: 8px;
}
.sitting-out {
  font-size: 8px;
  background: #15251a;
  color: #a4b099;
  margin-top: 2px;
  border-radius: 3px;
  padding: 2px 4px;
}
.hand-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 70px;
  padding: 0 4px;
}
.my-hand {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 66px;
}
.my-hand > span:last-child:not(.card) {
  font-size: 11px;
  color: var(--muted);
  margin-left: 10px;
  max-width: 170px;
}
.proof-badge {
  font-size: 10px;
  color: #829b87;
  display: flex;
  gap: 6px;
  align-items: center;
}
.proof-badge > span {
  font-family: monospace;
  font-size: 9px;
}
.action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 18px;
  min-height: 76px;
  flex-wrap: wrap;
}
.fold-button {
  background: #513d32;
  color: #efc8af;
}
.call-button {
  background: #50684b;
  color: #f1efce;
  min-width: 115px;
}
.action-bar .primary {
  padding: 13px 18px;
}
.action-bar > form {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
}
.raise-input {
  width: 110px;
  min-width: 70px;
}
.raise-input label {
  font-size: 8px;
  margin-bottom: 2px;
}
.raise-input input {
  padding: 8px;
}
.max-bet {
  background: none;
  border: 1px solid #657152;
  border-radius: 5px;
  color: var(--gold);
  padding: 9px 8px;
  font-size: 10px;
}
.seat-options {
  display: flex;
  gap: 17px;
  margin-left: auto;
}
.private-tools {
  font-size: 10px;
  color: #718c79;
  margin-top: 16px;
}
.private-tools > summary {
  cursor: pointer;
}
.private-tools .secondary {
  margin-top: 10px;
  font-size: 11px;
}
.private-tools small {
  display: block;
  margin-top: 8px;
}
.chat-panel {
  border-left: 1px solid var(--line);
  padding: 29px 20px 25px;
  display: flex;
  flex-direction: column;
  max-height: 900px;
  background: #0e1c15;
}
.chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.chat-note {
  font-size: 10px;
  margin: 9px 0 24px;
  color: #78917d;
}
.chat-messages {
  overflow: auto;
  min-height: 200px;
  flex: 1;
  max-height: 520px;
  scrollbar-width: thin;
}
.chat-empty {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 0;
  font-size: 48px;
  color: #4d634c;
}
.chat-empty p {
  font-size: 12px;
  color: #7f917e;
}
.message {
  padding: 12px;
  border: 1px solid #2d3e2b;
  background: #172b1e;
  border-radius: 8px;
  margin-bottom: 12px;
}
.message b {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
}
.message p {
  font-size: 12px;
  color: #c4cec0;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.message time {
  font-size: 8px;
  color: #667d6a;
  display: block;
  text-align: right;
}
.message.mine {
  border-color: #546542;
  background: #243523;
}
.emoji-row {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  padding: 16px 0 10px;
}
.emoji-row button {
  padding: 4px;
  background: none;
  border: 0;
  font-size: 18px;
}
.chat-panel form {
  display: flex;
  align-items: center;
  background: #17251a;
  border: 1px solid #3c4b34;
  border-radius: 8px;
  padding: 6px;
}
.chat-panel input {
  border: 0;
  background: none;
  padding: 8px;
  font-size: 11px;
  min-width: 0;
}
.chat-panel form > button {
  background: #d6bd82;
  border: 0;
  border-radius: 5px;
  color: #2b3724;
  width: 30px;
  height: 30px;
  flex: none;
}
.egg-hint {
  font-size: 9px;
  color: #778c77;
  text-align: center;
  margin-top: 13px;
}
.flying-egg {
  position: fixed;
  z-index: 30;
  font-size: 35px;
  pointer-events: none;
}
#effects {
  pointer-events: none;
}
.egg-hit {
  animation: hit 0.45s ease;
}
@keyframes hit {
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}
.content-page {
  padding: 45px;
  max-width: 1100px;
  margin: auto;
}
.content-page > h1 {
  font-size: 43px;
  margin: 18px 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.page-heading h1 {
  margin: 15px 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.metrics article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--panel);
}
.metrics small {
  display: block;
  color: var(--muted);
  letter-spacing: 1px;
  font-size: 9px;
}
.metrics strong {
  display: block;
  font-size: 28px;
  font-weight: 450;
  margin: 12px 0;
}
.metrics article > span {
  color: var(--muted);
  font-size: 10px;
}
.invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.invitation p {
  font-size: 12px;
}
.invitation code {
  color: var(--gold);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.approve-chips-form {
  display: flex;
  gap: 7px;
  max-width: 370px;
}
.approve-chips-form input {
  width: 100px;
}
.modal {
  border: 1px solid #4f6147;
  border-radius: 16px;
  background: #13251b;
  color: var(--cream);
  padding: 35px;
  width: min(490px, calc(100vw - 30px));
  max-height: 90vh;
  box-shadow: 0 35px 100px #000b;
  scrollbar-width: thin;
}
.modal.wide {
  width: min(690px, calc(100vw - 30px));
}
.modal::backdrop {
  background: #06110cca;
  backdrop-filter: blur(5px);
}
.modal h2 {
  font-size: 27px;
  padding-right: 25px;
}
.modal-close {
  position: absolute;
  right: 17px;
  top: 15px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 25px;
}
.level-row {
  display: grid;
  grid-template-columns: 18px repeat(4, minmax(0, 1fr));
  gap: 9px;
  align-items: end;
  margin: 14px 0;
}
.level-row > b {
  font-size: 10px;
  align-self: center;
  color: var(--muted);
}
.level-row label {
  font-size: 10px;
}
.level-row input {
  padding: 9px;
}
.rebuy-settings {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.rebuy-settings .field-grid {
  margin-top: 20px;
}
.rebuy-settings summary {
  cursor: pointer;
}
.rebuy-settings summary > label {
  display: inline-flex;
}
.replay-board {
  display: flex;
  gap: 5px;
  margin: 25px 0;
}
.replay-players {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.replay-players article {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.replay-players article > div {
  display: flex;
  gap: 3px;
}
.replay-players span {
  font-size: 10px;
  color: var(--muted);
}
.replay-events {
  max-height: 220px;
  overflow: auto;
  line-height: 1.9;
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: min(90vw, 550px);
  padding: 15px 23px;
  border: 1px solid #a49c69;
  background: #233626;
  color: var(--cream);
  border-radius: 9px;
  z-index: 100;
  box-shadow: 0 5px 25px #0005;
  opacity: 0;
  pointer-events: none;
  font-size: 13px;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1550px) {
  .table-stage {
    height: 500px;
  }
  .game-area {
    padding-inline: 45px;
  }
  .table-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .table-stage .felt {
    inset: 10% 7%;
  }
  .hand-bottom {
    margin-top: 60px;
  }
  .card {
    width: 50px;
    height: 70px;
  }
  .card-slot {
    width: 50px;
    height: 70px;
  }
}
@media (max-width: 1190px) {
  .app-shell {
    grid-template-columns: 165px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 14px;
  }
  .table-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
  .game-area {
    padding: 20px;
  }
  .table-stage {
    height: 400px;
  }
  .seat {
    width: 82px;
  }
  .seat-info {
    width: 80px;
  }
  .avatar {
    width: 40px;
    height: 40px;
  }
  .card {
    width: 37px;
    height: 53px;
    font-size: 16px;
  }
  .card i {
    font-size: 22px;
  }
  .card-slot {
    width: 37px;
    height: 53px;
  }
  .table-tools {
    gap: 2px;
  }
  .table-toolbar {
    gap: 5px;
  }
  .mode-label {
    display: none;
  }
  .proof-badge {
    display: none;
  }
  .hand-bottom {
    margin-top: 75px;
  }
  .my-hand > span:last-child:not(.card) {
    max-width: 155px;
  }
  .chat-panel {
    padding: 24px 14px;
  }
}
@media (max-width: 980px) {
  .table-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 420px;
  }
  .chat-messages {
    min-height: 100px;
    max-height: 180px;
  }
  .chat-empty {
    padding: 15px;
    height: 120px;
  }
  .chat-note {
    margin-bottom: 5px;
  }
  .game-area {
    max-width: 850px;
    width: 100%;
    margin: auto;
    padding: 24px 38px;
  }
  .table-stage {
    height: 450px;
  }
  .card {
    width: 45px;
    height: 63px;
  }
  .card-slot {
    width: 45px;
    height: 63px;
  }
  .auth-story h1 {
    font-size: 43px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metrics article {
    padding: 18px;
  }
  .metrics strong {
    font-size: 24px;
  }
  .content-page {
    padding: 30px;
  }
  .list-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 650px) {
  :root {
    font-size: 13px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    padding: 13px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .sidebar .brand {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 14px;
    gap: 7px;
  }
  .brand-mark {
    height: 34px;
    width: 29px;
    font-size: 21px;
    border-radius: 7px;
  }
  .sidebar .brand .serif {
    font-size: 16px;
  }
  .sidebar > .sidebar-label,
  .sidebar-clubs,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: center;
    margin-top: 55px;
  }
  .nav-item {
    padding: 10px;
    justify-content: center;
    font-size: 11px;
    gap: 7px;
    border-radius: 7px 7px 0 0;
    margin: 0;
  }
  .nav-item span {
    font-size: 16px;
  }
  .topbar {
    height: 73px;
    padding: 14px 17px;
  }
  .topbar > div:first-child {
    gap: 6px;
  }
  .topbar b {
    font-size: 12px;
    max-width: 200px;
  }
  .topbar .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .account {
    position: absolute;
    right: 16px;
    top: 17px;
    gap: 10px;
  }
  .wallet-balance strong {
    font-size: 17px;
  }
  .wallet-balance small {
    font-size: 7px;
  }
  .user-button {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }
  .table-layout {
    min-height: 0;
  }
  .game-area {
    padding: 12px 16px 20px;
  }
  .table-toolbar {
    min-height: 30px;
  }
  .pill {
    font-size: 7px;
    padding: 6px 8px;
    letter-spacing: 0.7px;
  }
  .table-tools {
    font-size: 9px;
    gap: 2px;
  }
  .table-tools .icon-button {
    font-size: 9px;
    padding: 5px;
  }
  .table-stage {
    height: 485px;
    margin-top: 29px;
    margin-bottom: 0;
  }
  .felt {
    inset: 8% 11% 5%;
    border-width: 9px;
    border-radius: 45%;
    box-shadow:
      0 12px 20px #0006,
      inset 0 0 0 1px #b6ae7133,
      0 0 0 1px #514e34,
      0 0 0 4px #0e2116;
  }
  .felt:after {
    inset: 9px;
  }
  .felt-brand {
    top: 27%;
    font-size: 15px;
  }
  .center-board {
    inset: 37% 4% 24%;
    gap: 7px;
  }
  .pot-label {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .pot-value {
    font-size: 24px;
  }
  .board-cards {
    gap: 3px;
  }
  .board-cards .card,
  .card-slot {
    width: 30px;
    height: 43px;
    border-radius: 4px;
    padding: 4px;
    font-size: 13px;
  }
  .board-cards .card i {
    font-size: 18px;
  }
  .card-slot {
    font-size: 13px;
  }
  .blinds {
    font-size: 9px;
  }
  .pause-label {
    bottom: -22px;
    font-size: 9px;
  }
  .seat {
    width: 72px;
  }
  .seat-0 {
    left: 50%;
    top: 96%;
  }
  .seat-1 {
    left: 17%;
    top: 83%;
  }
  .seat-2 {
    left: 9%;
    top: 61%;
  }
  .seat-3 {
    left: 9%;
    top: 38%;
  }
  .seat-4 {
    left: 17%;
    top: 15%;
  }
  .seat-5 {
    left: 50%;
    top: 5%;
  }
  .seat-6 {
    left: 83%;
    top: 15%;
  }
  .seat-7 {
    left: 91%;
    top: 38%;
  }
  .seat-8 {
    left: 91%;
    top: 61%;
  }
  .seat-9 {
    left: 83%;
    top: 83%;
  }
  .avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
    border-width: 1px;
  }
  .seat-info {
    width: 67px;
    padding: 4px;
    border-radius: 4px;
    margin-top: 2px;
  }
  .seat-info b {
    font-size: 8px;
  }
  .seat-info > span {
    font-size: 10px;
  }
  .dealer {
    width: 14px;
    height: 14px;
    line-height: 13px;
    font-size: 8px;
    right: -6px;
  }
  .pocket {
    gap: 1px;
    margin-top: 3px;
  }
  .card.mini {
    width: 19px;
    height: 27px;
    font-size: 9px;
    padding: 2px;
    border-radius: 3px;
  }
  .card.mini i {
    font-size: 11px;
  }
  .pocket .card + .card {
    margin-left: -4px;
  }
  .seat-clock {
    right: 0;
    top: 3px;
    font-size: 8px;
    padding: 3px;
  }
  .bet-chip {
    font-size: 8px;
    padding: 2px 5px;
    top: 103%;
  }
  .seat-0 .bet-chip,
  .seat-1 .bet-chip,
  .seat-9 .bet-chip {
    top: -20px;
  }
  .empty-seat > span {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
  .empty-seat small {
    font-size: 7px;
  }
  .hand-bottom {
    margin-top: 59px;
    min-height: 60px;
  }
  .my-hand .card {
    width: 32px;
    height: 46px;
    font-size: 14px;
    padding: 4px;
  }
  .my-hand .card i {
    font-size: 18px;
  }
  .my-hand > span:last-child:not(.card) {
    font-size: 10px;
    max-width: 165px;
    margin-left: 8px;
  }
  .action-bar {
    padding-top: 15px;
    margin-top: 12px;
    gap: 7px;
    position: relative;
    z-index: 3;
  }
  .action-bar .primary,
  .action-bar .fold-button,
  .action-bar .call-button {
    font-size: 12px;
    padding: 12px 14px;
    min-width: 0;
  }
  .fold-button,
  .call-button {
    flex: 1;
  }
  .action-bar > form {
    flex-basis: 100%;
    gap: 8px;
  }
  .raise-input {
    flex: 1;
  }
  .raise-input input {
    padding: 10px;
  }
  .action-bar > form .primary {
    flex: 1;
  }
  .action-bar .max-bet {
    min-height: 40px;
  }
  .seat-options {
    flex-wrap: wrap;
    margin: 0;
    gap: 20px;
  }
  .seat-options .text-button {
    font-size: 10px;
  }
  .action-bar > .muted {
    font-size: 11px;
  }
  .chat-panel {
    padding: 22px 20px;
    max-height: 400px;
  }
  .chat-messages {
    max-height: 180px;
  }
  .chat-messages .message {
    padding: 9px;
  }
  .chat-note {
    font-size: 10px;
  }
  .emoji-row {
    padding: 8px 0;
  }
  .private-tools {
    font-size: 9px;
  }
  .empty-scene {
    padding: 40px 24px;
    min-height: calc(100vh - 170px);
  }
  h1 {
    font-size: 39px;
  }
  .empty-scene h1 {
    font-size: 40px;
  }
  .empty-table {
    height: 155px;
    width: 300px;
    margin: 30px auto 48px;
    border-width: 10px;
  }
  .empty-table > span {
    line-height: 115px;
  }
  .empty-scene .button-row {
    gap: 15px;
  }
  .empty-scene p {
    font-size: 12px;
  }
  .content-page {
    padding: 30px 18px;
  }
  .content-page h1 {
    font-size: 35px;
  }
  .page-heading {
    display: block;
  }
  .page-heading > .primary {
    margin: 15px 0 0;
  }
  .metrics {
    gap: 10px;
  }
  .metrics article {
    padding: 20px;
  }
  .panel {
    padding: 18px;
  }
  .invitation {
    align-items: flex-start;
    flex-direction: column;
  }
  .approve-chips-form {
    width: 100%;
    flex-wrap: wrap;
  }
  .approve-chips-form input {
    flex: 1;
    min-width: 80px;
  }
  .list-row {
    gap: 10px;
  }
  .modal {
    padding: 28px 22px;
    max-height: 92vh;
  }
  .modal h2 {
    font-size: 25px;
  }
  .field-grid {
    gap: 15px 10px;
  }
  fieldset {
    padding: 17px 12px;
  }
  .level-row {
    gap: 5px;
    grid-template-columns: 10px repeat(4, minmax(0, 1fr));
  }
  .level-row input {
    padding: 8px 5px;
  }
  .level-row label {
    font-size: 9px;
  }
  .auth-shell {
    display: block;
  }
  .auth-story {
    padding: 28px 26px 30px;
    min-height: 0;
  }
  .auth-story > div:nth-child(2) {
    margin-top: 48px;
  }
  .auth-story h1 {
    font-size: 37px;
    margin: 18px 0;
  }
  .auth-story p {
    font-size: 12px;
  }
  .auth-story .hero-cards {
    display: none;
  }
  .auth-story small {
    font-size: 9px;
  }
  .auth-form {
    width: auto;
    margin: 0;
    padding: 36px 27px;
  }
  .auth-form h2 {
    font-size: 27px;
    margin-top: 20px;
  }
  .auth-story:after {
    font-size: 350px;
    bottom: -100px;
  }
  .replay .button-row {
    gap: 7px;
  }
  .replay .button-row button {
    font-size: 10px;
    padding: 10px;
  }
  .replay-players {
    gap: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition: none !important;
  }
  .flying-egg {
    display: none;
  }
}

.moving-chips {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
}
.rank-distribution {
  display: flex;
  gap: 8px;
  align-items: end;
  height: 145px;
  padding-top: 16px;
}
.rank-bar {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.rank-bar i {
  display: block;
  margin: 6px auto;
  width: min(24px, 90%);
  background: var(--gold);
  border-radius: 4px 4px 0 0;
  opacity: 0.75;
}
.rank-bar b {
  display: block;
  color: var(--cream);
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.club-select {
  font-size: 11px;
  padding: 4px 24px 4px 6px;
  color: var(--gold);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  max-width: 230px;
  display: block;
  margin-bottom: 5px;
}
.page-heading > .button-row {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.replay .folded {
  opacity: 0.55;
}

@media (max-width: 650px) {
  .mode-label {
    display: block;
    font-size: 10px;
    margin: 5px 0 0;
  }
  .table-toolbar {
    align-items: flex-start;
  }
}
.recovery-banner {
  margin: 0;
  padding: 12px 20px;
  color: #ffe0a3;
  background: #513b20;
  border-bottom: 1px solid #947445;
}
