[hidden] {
  display: none !important;
}

.portal-view {
  position: relative;
  z-index: 2;
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px 36px;
}

.portal-brand-row,
.lobby-topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(232, 190, 101, 0.2);
}

.portal-tag {
  padding: 7px 12px;
  color: rgba(255, 235, 184, 0.67);
  border: 1px solid rgba(225, 188, 107, 0.24);
  border-radius: 999px;
  background: rgba(4, 14, 12, 0.42);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 82px);
  padding: clamp(30px, 5vw, 74px) 0;
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 5vw, 74px);
}

.auth-preview {
  position: relative;
  min-height: 620px;
  padding: clamp(32px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(228, 190, 108, 0.25);
  border-radius: 26px;
  background:
    linear-gradient(105deg, rgba(5, 18, 15, 0.94), rgba(8, 29, 22, 0.68) 54%, rgba(9, 24, 18, 0.32)),
    url("assets/legacy/table/VIEW_BACK.bmp") 58% 57% / 122% auto no-repeat;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 247, 217, 0.08);
}

.auth-preview::after {
  position: absolute;
  right: -7%;
  bottom: -20%;
  width: 63%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(248, 217, 146, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 36px rgba(248, 217, 146, 0.025),
    0 0 0 72px rgba(248, 217, 146, 0.018);
}

.auth-preview > * {
  position: relative;
  z-index: 1;
}

.auth-preview h1 {
  max-width: 640px;
  margin: 18px 0;
  color: #fff1cc;
  font-family: var(--display);
  font-size: clamp(42px, 5.3vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.52);
}

.auth-preview h1 em {
  color: #e9b85d;
  font-style: normal;
}

.auth-preview > p {
  max-width: 500px;
  color: rgba(244, 232, 200, 0.7);
  font-size: 13px;
  line-height: 1.8;
}

.auth-feature-row {
  display: flex;
  margin-top: 34px;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-feature-row > span {
  min-width: 112px;
  padding: 11px 14px;
  color: rgba(255, 241, 205, 0.67);
  border: 1px solid rgba(235, 198, 118, 0.24);
  border-radius: 12px;
  background: rgba(4, 20, 15, 0.56);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.auth-feature-row b {
  display: block;
  margin-bottom: 3px;
  color: #fff2cd;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
}

.auth-card {
  position: relative;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(230, 192, 110, 0.32);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(27, 57, 48, 0.98), rgba(7, 20, 17, 0.99));
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.5),
    inset 0 1px rgba(255, 245, 214, 0.08);
}

.auth-card::before {
  position: absolute;
  top: 0;
  right: 13%;
  left: 13%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 228, 157, 0.62), transparent);
}

.auth-card-head h2 {
  margin: 8px 0 7px;
  color: #fff2cf;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
}

.auth-card-head p {
  margin: 0 0 22px;
  color: rgba(230, 215, 179, 0.58);
  font-size: 10px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: rgba(245, 228, 189, 0.75);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: #fff5dc;
  border: 1px solid rgba(198, 181, 135, 0.24);
  border-radius: 8px;
  outline: none;
  background: rgba(3, 15, 12, 0.52);
  font: inherit;
  font-size: 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auth-form input:focus {
  border-color: rgba(104, 220, 204, 0.68);
  box-shadow: 0 0 0 3px rgba(75, 197, 181, 0.1);
}

.auth-form input::placeholder {
  color: rgba(220, 207, 175, 0.32);
}

.auth-links {
  display: flex;
  color: rgba(223, 209, 175, 0.51);
  font-size: 9px;
}

.auth-links--between {
  align-items: center;
  justify-content: space-between;
}

.auth-links button,
.auth-text-button {
  padding: 0;
  color: #89ddd0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}

.auth-text-button {
  justify-self: center;
  color: rgba(239, 207, 137, 0.7);
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 3px;
  font-size: 11px;
}

.auth-note {
  padding: 10px 12px;
  color: rgba(216, 240, 229, 0.7);
  border: 1px solid rgba(99, 199, 181, 0.2);
  border-radius: 8px;
  background: rgba(25, 99, 82, 0.16);
  font-size: 9px;
  line-height: 1.5;
}

.auth-message {
  min-height: 18px;
  margin-top: 14px;
  color: rgba(225, 212, 179, 0.7);
  font-size: 9px;
  text-align: center;
}

.auth-message--error {
  color: #ffb3a7;
}

.auth-message--success {
  color: #9be3bd;
}

.lobby-topbar {
  min-height: 76px;
}

.lobby-account {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lobby-account > div {
  display: grid;
  gap: 2px;
}

.lobby-account span {
  color: rgba(224, 209, 175, 0.48);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.lobby-account strong {
  color: #fff1c9;
  font-size: 12px;
}

.lobby-balance {
  min-width: 120px;
  padding-left: 20px;
  border-left: 1px solid rgba(225, 193, 121, 0.2);
}

.lobby-balance strong {
  color: #f0bd57;
  font-family: var(--display);
  font-size: 18px;
}

.portal-recharge-button {
  min-height: 36px;
  padding: 0 15px;
  font-size: 9px;
}

.lobby-main {
  padding: clamp(30px, 4vw, 58px) 0 20px;
}

.lobby-hero {
  display: flex;
  padding-bottom: 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(222, 188, 112, 0.14);
}

.lobby-hero h1 {
  margin: 9px 0 8px;
  color: #fff0c9;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.lobby-hero p {
  margin: 0;
  color: rgba(226, 215, 186, 0.56);
  font-size: 10px;
}

.lobby-summary {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(223, 189, 116, 0.21);
  border-radius: 12px;
  background: rgba(6, 20, 16, 0.58);
}

.lobby-summary > div {
  min-width: 104px;
  padding: 12px 16px;
  text-align: center;
}

.lobby-summary > div + div {
  border-left: 1px solid rgba(223, 189, 116, 0.15);
}

.lobby-summary strong,
.lobby-summary span {
  display: block;
}

.lobby-summary strong {
  color: #f1c46c;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
}

.lobby-summary span {
  margin-top: 2px;
  color: rgba(224, 211, 177, 0.48);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.lobby-policy {
  margin: 12px 0 0;
  color: rgba(194, 222, 208, 0.52);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.lobby-tables {
  padding-top: 28px;
}

.lobby-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.lobby-section-head h2 {
  margin: 4px 0 0;
  color: #fff0c9;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
}

.lobby-refresh-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(204, 231, 216, 0.56);
  font-size: 8px;
}

.lobby-refresh-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5cd393;
  box-shadow: 0 0 9px rgba(78, 222, 143, 0.64);
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lobby-table-card {
  overflow: hidden;
  border: 1px solid rgba(213, 180, 109, 0.26);
  border-radius: 17px;
  background:
    linear-gradient(155deg, rgba(22, 45, 38, 0.97), rgba(7, 19, 16, 0.99));
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 244, 210, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.lobby-table-card:hover {
  border-color: rgba(248, 211, 133, 0.55);
  transform: translateY(-3px);
}

.lobby-table-card.is-locked {
  border-color: rgba(220, 176, 108, 0.16);
}

.lobby-table-card.is-locked .lobby-table-visual {
  filter: grayscale(0.55) brightness(0.68);
}

.lobby-table-card.is-locked .lobby-table-foot .btn:disabled {
  color: rgba(242, 228, 194, 0.52);
  border-color: rgba(203, 186, 145, 0.2);
  background: rgba(21, 41, 34, 0.72);
  box-shadow: none;
  cursor: not-allowed;
}

.lobby-table-visual {
  position: relative;
  height: 132px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 15, 12, 0.08), rgba(3, 14, 11, 0.45)),
    url("assets/legacy/table/Table.png") 50% 46% / 185% auto no-repeat,
    #102c23;
}

.lobby-table-card--blue .lobby-table-visual {
  filter: hue-rotate(0deg) saturate(0.95);
}

.lobby-table-card--emerald .lobby-table-visual {
  filter: hue-rotate(18deg) saturate(1.12);
}

.lobby-table-card--midnight .lobby-table-visual {
  filter: hue-rotate(175deg) saturate(0.7) brightness(0.72);
}

.lobby-table-card--rosewood .lobby-table-visual {
  filter: hue-rotate(300deg) saturate(0.75) brightness(0.85);
}

.lobby-table-card--jade .lobby-table-visual {
  filter: hue-rotate(38deg) saturate(1.2);
}

.lobby-table-card--pearl .lobby-table-visual {
  filter: grayscale(0.18) brightness(1.08);
}

.table-status-dot {
  position: absolute;
  top: 12px;
  left: 13px;
  display: flex;
  padding: 5px 8px;
  align-items: center;
  gap: 5px;
  color: #d4ffe4;
  border: 1px solid rgba(102, 224, 152, 0.34);
  border-radius: 999px;
  background: rgba(5, 33, 22, 0.78);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.table-status-dot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #61df9a;
}

.table-stakes-ribbon {
  position: absolute;
  top: 11px;
  right: 12px;
  display: grid;
  min-width: 112px;
  padding: 7px 12px 8px;
  color: #fff0c2;
  border: 1px solid rgba(255, 221, 143, 0.55);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(20, 52, 40, 0.94), rgba(5, 22, 16, 0.96));
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.4),
    inset 0 1px rgba(255, 244, 210, 0.12);
  text-align: right;
}

.table-stakes-ribbon small {
  color: rgba(244, 226, 184, 0.6);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.table-stakes-ribbon strong {
  color: #ffe2a0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.table-mini-label {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: rgba(255, 244, 212, 0.45);
  font-size: 6px;
  letter-spacing: 0.16em;
}

.lobby-table-copy {
  padding: 15px 16px 16px;
}

.lobby-table-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lobby-table-title h3 {
  margin: 3px 0 0;
  color: #fff0c9;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
}

.lobby-table-title > strong {
  display: grid;
  color: #efc26c;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 0.9;
  text-align: right;
}

.lobby-table-title > strong small {
  color: rgba(229, 214, 178, 0.45);
  font-family: var(--body);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.lobby-table-copy > p {
  margin: 7px 0 10px;
  color: rgba(229, 219, 192, 0.5);
  font-size: 8px;
}

.table-seat-meter {
  display: flex;
  gap: 4px;
}

.table-seat-meter i {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: #54c78b;
  box-shadow: 0 0 6px rgba(73, 211, 133, 0.26);
}

.table-seat-meter i.is-occupied {
  background: rgba(213, 188, 130, 0.2);
  box-shadow: none;
}

.lobby-table-foot {
  display: flex;
  margin-top: 15px;
  align-items: center;
  gap: 12px;
  color: rgba(225, 213, 180, 0.48);
  font-size: 7px;
}

.lobby-table-foot .btn {
  min-height: 34px;
  margin-left: auto;
  padding: 0 16px;
  font-size: 9px;
}

.lobby-table-foot .table-buyin {
  color: rgba(239, 226, 193, 0.64);
}

.lobby-table-foot .table-buyin b {
  color: #f2c66b;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
}

.seat-dialog {
  width: min(920px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff1cc;
  border: 1px solid rgba(238, 201, 123, 0.42);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(24, 57, 47, 0.99), rgba(6, 20, 16, 0.99));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.72);
}

.seat-dialog::backdrop {
  background: rgba(0, 8, 6, 0.78);
  backdrop-filter: blur(6px);
}

.seat-dialog-head {
  display: flex;
  padding: 22px 25px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(223, 191, 119, 0.18);
}

.seat-dialog-head h2 {
  margin: 5px 0 3px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
}

.seat-dialog-head p {
  margin: 0;
  color: rgba(229, 216, 181, 0.58);
  font-size: 9px;
}

.seat-dialog-stakes {
  display: flex;
  margin-top: 12px;
  gap: 9px;
}

.seat-dialog-stakes > span {
  display: flex;
  min-width: 116px;
  padding: 7px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(234, 198, 119, 0.35);
  border-radius: 8px;
  background: rgba(4, 24, 17, 0.56);
}

.seat-dialog-stakes small {
  color: rgba(232, 217, 181, 0.56);
  font-size: 7px;
}

.seat-dialog-stakes strong {
  color: #ffe1a0;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}

.seat-dialog-body {
  display: grid;
  padding: 22px 25px 25px;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
}

.seat-map-shell {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(229, 193, 114, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at center, rgba(53, 151, 107, 0.2), transparent 64%),
    #1a110b url("assets/legacy/table/VIEW_BACK.bmp") center / 100% 100% no-repeat;
}

.seat-map-felt {
  position: absolute;
  inset: 18% 10%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(232, 191, 107, 0.6);
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(50, 167, 113, 0.34), transparent 68%),
    rgba(16, 83, 57, 0.75);
  box-shadow:
    inset 0 0 38px rgba(0, 0, 0, 0.28),
    0 7px 20px rgba(0, 0, 0, 0.36);
}

.seat-map-felt span {
  color: rgba(240, 224, 183, 0.13);
  font-family: var(--display);
  font-size: 30px;
  line-height: 0.82;
  text-align: center;
}

.seat-map {
  position: absolute;
  inset: 0;
}

.seat-map-seat {
  position: absolute;
  top: var(--seat-y);
  left: var(--seat-x);
  display: grid;
  width: 65px;
  min-height: 44px;
  padding: 5px 6px;
  place-items: center;
  color: #f8ebc8;
  border: 1px solid rgba(239, 210, 145, 0.38);
  border-radius: 8px;
  background: linear-gradient(145deg, #20372f, #0c1c18);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.42);
  font: inherit;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.seat-map-seat span {
  color: #e9ba5d;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1;
}

.seat-map-seat small {
  max-width: 54px;
  overflow: hidden;
  color: rgba(237, 226, 196, 0.62);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-map-seat:hover:not(:disabled) {
  border-color: #f4cf78;
  background: linear-gradient(145deg, #306b55, #12372b);
  transform: translate(-50%, -50%) scale(1.05);
}

.seat-map-seat.is-occupied {
  opacity: 0.5;
  cursor: not-allowed;
  filter: saturate(0.5);
}

.seat-map-seat.is-selected {
  color: #173025;
  border-color: #fff2c4;
  background: linear-gradient(145deg, #ffe4a1, #c99339);
  box-shadow:
    0 0 0 4px rgba(249, 211, 117, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(1.08);
}

.seat-map-seat.is-selected span,
.seat-map-seat.is-selected small {
  color: #1b2e25;
}

.seat-choice-summary {
  padding: 18px;
  border: 1px solid rgba(225, 191, 115, 0.2);
  border-radius: 14px;
  background: rgba(4, 17, 13, 0.48);
}

.seat-choice-summary h3 {
  margin: 8px 0;
  color: #fff1ca;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
}

.seat-choice-summary > p {
  min-height: 56px;
  margin: 0 0 18px;
  color: rgba(231, 218, 184, 0.55);
  font-size: 9px;
  line-height: 1.7;
}

.seat-legend {
  display: grid;
  margin-bottom: 22px;
  gap: 8px;
  color: rgba(231, 220, 193, 0.6);
  font-size: 8px;
}

.seat-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot--free {
  background: #55cf92;
}

.legend-dot--occupied {
  background: #655e4e;
}

.legend-dot--selected {
  background: #f1c66d;
}

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: 1fr 400px;
    gap: 24px;
  }

  .auth-preview {
    min-height: 560px;
  }

  .table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .portal-view {
    padding: 0 12px 24px;
  }

  .portal-tag {
    display: none;
  }

  .auth-layout {
    padding: 20px 0 30px;
    grid-template-columns: 1fr;
  }

  .auth-preview {
    min-height: 310px;
    padding: 28px 24px;
  }

  .auth-preview h1 {
    font-size: clamp(36px, 11vw, 58px);
  }

  .auth-preview > p,
  .auth-feature-row {
    max-width: 70%;
  }

  .lobby-topbar {
    align-items: flex-start;
    padding: 15px 0;
    flex-direction: column;
  }

  .lobby-account {
    width: 100%;
    justify-content: space-between;
  }

  .lobby-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .lobby-summary {
    width: 100%;
  }

  .lobby-summary > div {
    min-width: 0;
    flex: 1;
  }

  .table-grid {
    grid-template-columns: 1fr;
  }

  .seat-dialog-body {
    grid-template-columns: 1fr;
  }

  .seat-map-shell {
    min-height: 390px;
  }

  .seat-choice-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 18px;
  }

  .seat-choice-summary .eyebrow,
  .seat-choice-summary h3,
  .seat-choice-summary > p {
    grid-column: 1;
  }

  .seat-legend {
    grid-column: 2;
    grid-row: 1 / 4;
    margin: 0;
  }

  .seat-choice-summary .btn {
    grid-column: 1 / -1;
  }
}

.recharge-dialog {
  width: min(780px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff1cc;
  border: 1px solid rgba(238, 201, 123, 0.42);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(24, 57, 47, 0.99), rgba(6, 20, 16, 0.99));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.72);
}

.recharge-dialog::backdrop {
  background: rgba(0, 8, 6, 0.78);
  backdrop-filter: blur(6px);
}

.recharge-dialog-head {
  display: flex;
  padding: 22px 25px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(223, 191, 119, 0.18);
}

.recharge-dialog-head h2 {
  margin: 5px 0 3px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 500;
}

.recharge-dialog-head p {
  margin: 0;
  color: rgba(229, 216, 181, 0.58);
  font-size: 9px;
}

.recharge-dialog-body {
  display: grid;
  padding: 23px 25px 25px;
  grid-template-columns: minmax(0, 1fr) 238px;
  gap: 22px;
}

.recharge-packages {
  display: grid;
  gap: 10px;
}

.recharge-package {
  position: relative;
  display: grid;
  min-height: 104px;
  padding: 16px 18px;
  color: #fff0c6;
  border: 1px solid rgba(222, 188, 115, 0.25);
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(27, 57, 48, 0.92), rgba(8, 25, 20, 0.94));
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.recharge-package:hover {
  border-color: rgba(246, 210, 128, 0.62);
  transform: translateX(3px);
}

.recharge-package > strong {
  color: #f1c469;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
}

.recharge-package > b {
  color: #fff0c8;
  font-size: 13px;
  font-weight: 500;
}

.recharge-package > small {
  color: rgba(229, 214, 178, 0.45);
  font-size: 8px;
}

.recharge-package-tag {
  position: absolute;
  top: 10px;
  right: 11px;
  padding: 4px 7px;
  color: rgba(229, 245, 236, 0.72);
  border: 1px solid rgba(103, 208, 165, 0.28);
  border-radius: 999px;
  background: rgba(27, 112, 79, 0.24);
  font-size: 7px;
}

.recharge-package--featured {
  border-color: rgba(244, 201, 108, 0.56);
  background:
    radial-gradient(circle at 90% 10%, rgba(239, 188, 74, 0.16), transparent 35%),
    linear-gradient(120deg, rgba(45, 67, 41, 0.96), rgba(13, 31, 22, 0.96));
}

.recharge-package.is-selected {
  border-color: #ffe4a1;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 218, 128, 0.2), transparent 38%),
    linear-gradient(120deg, rgba(36, 109, 78, 0.96), rgba(10, 50, 36, 0.97));
  box-shadow:
    0 0 0 2px rgba(255, 218, 126, 0.15),
    0 10px 24px rgba(0, 0, 0, 0.3);
}

.recharge-summary {
  padding: 18px;
  border: 1px solid rgba(225, 191, 115, 0.2);
  border-radius: 13px;
  background: rgba(4, 17, 13, 0.48);
}

.recharge-summary > div:not(.recharge-message) {
  display: flex;
  padding: 9px 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(223, 191, 119, 0.13);
}

.recharge-summary span {
  color: rgba(228, 215, 181, 0.52);
  font-size: 8px;
}

.recharge-summary strong {
  color: #ffe2a2;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
}

.recharge-summary > p {
  min-height: 56px;
  margin: 13px 0;
  color: rgba(223, 214, 188, 0.42);
  font-size: 8px;
  line-height: 1.6;
}

.recharge-consent {
  display: flex;
  margin: 0 0 10px;
  align-items: flex-start;
  gap: 7px;
  color: rgba(223, 214, 188, 0.58);
  font-size: 8px;
  line-height: 1.5;
  cursor: pointer;
}

.recharge-consent input {
  margin: 1px 0 0;
  accent-color: #e7b553;
}

.recharge-message {
  min-height: 24px;
  color: #9ee2bc;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.recharge-message.is-error {
  color: #ffb3a7;
}

@media (max-width: 520px) {
  .lobby-account {
    gap: 10px;
  }

  .lobby-balance {
    min-width: 88px;
    padding-left: 10px;
  }

  .lobby-account .btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 8px;
  }

  .auth-preview > p,
  .auth-feature-row {
    max-width: 100%;
  }

  .auth-feature-row > span {
    min-width: 93px;
    padding: 9px 11px;
  }

  .seat-dialog-head {
    padding: 18px;
  }

  .seat-dialog-body {
    padding: 16px;
  }

  .seat-map-shell {
    min-height: 350px;
  }

  .seat-map-seat {
    width: 52px;
    min-height: 38px;
    padding: 3px;
  }

  .recharge-dialog-head {
    padding: 18px;
  }

  .recharge-dialog-body {
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .recharge-package {
    min-height: 90px;
    padding: 13px 14px;
  }

  .table-stakes-ribbon {
    min-width: 104px;
  }

  .seat-dialog-stakes {
    flex-wrap: wrap;
  }
}

/* Mobile game orientation and compact landscape table. */
.rotate-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(41, 119, 89, 0.35), transparent 42%),
    rgba(3, 14, 11, 0.96);
  backdrop-filter: blur(10px);
}

.rotate-overlay[hidden] {
  display: none;
}

body.orientation-gate-open {
  overflow: hidden;
}

.rotate-overlay-card {
  display: grid;
  width: min(360px, 100%);
  padding: 28px 24px 22px;
  place-items: center;
  gap: 10px;
  color: #f5ecd5;
  border: 1px solid rgba(235, 197, 116, 0.42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(217, 183, 98, 0.14), transparent 42%),
    linear-gradient(160deg, #123b2c, #071b15);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px rgba(255, 241, 202, 0.08);
  text-align: center;
}

.rotate-overlay-card h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rotate-overlay-card p {
  margin: 0 0 8px;
  color: rgba(235, 226, 199, 0.72);
  font-size: 12px;
  line-height: 1.7;
}

.rotate-phone {
  position: relative;
  width: 42px;
  height: 68px;
  margin-bottom: 4px;
  border: 2px solid #e6c77f;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(225, 190, 105, 0.2);
  animation: rotatePhoneHint 2.1s ease-in-out infinite;
}

.rotate-phone::after {
  position: absolute;
  right: 15px;
  bottom: 4px;
  left: 15px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: #e6c77f;
}

.rotate-phone span {
  position: absolute;
  top: 7px;
  right: 5px;
  left: 5px;
  height: 44px;
  border-radius: 3px;
  background: rgba(80, 164, 119, 0.35);
}

.rotate-overlay-card .btn {
  width: 100%;
  min-height: 46px;
}

.rotate-overlay-skip {
  padding: 8px 14px;
  color: rgba(238, 224, 193, 0.62);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

@keyframes rotatePhoneHint {
  0%,
  22%,
  100% {
    transform: rotate(0deg);
  }
  45%,
  76% {
    transform: rotate(90deg);
  }
}

@media (orientation: landscape) and (max-width: 1000px) and (max-height: 600px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: 0 6px 6px;
  }

  .topbar {
    min-height: 46px;
    height: 46px;
    padding: 3px 0;
    gap: 8px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 13px;
    line-height: 1;
  }

  .brand-copy small {
    display: none;
  }

  .top-actions .btn-quiet {
    min-height: 31px;
    padding: 0 10px;
    font-size: 9px;
  }

  .game-layout {
    display: block;
    height: calc(100dvh - 46px);
    min-height: 0;
    overflow: hidden;
    padding-top: 4px;
  }

  .table-stage {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 9px;
  }

  .table-wrap {
    position: relative;
    min-height: 0;
    flex: 1;
  }

  .table-rim {
    inset: 7% 5.5% 5%;
    border-width: 7px;
    border-radius: 50% / 44%;
  }

  .poker-table {
    inset: 10% 7.2% 7.5%;
    border-width: 3px;
    border-radius: 50% / 45%;
  }

  .board-cluster {
    top: 38%;
    width: 58%;
  }

  .hand-meta {
    margin-bottom: 2px;
  }

  .hand-number,
  .phase-pill {
    font-size: 7px;
  }

  .pot-display {
    min-height: 32px;
    padding: 3px 10px;
  }

  .community {
    min-height: 60px;
    gap: 4px;
    margin-top: 5px;
  }

  .community .playing-card {
    width: 43px;
    height: 60px;
    border-radius: 4px;
  }

  .street-copy {
    margin-top: 3px;
    font-size: 7px;
  }

  .seat {
    width: 76px;
  }

  .seat--hero {
    width: 96px;
  }

  .seat--empty {
    width: 64px;
    min-height: 28px;
    padding: 3px;
    font-size: 7px;
  }

  .player-panel,
  .seat--hero .player-panel {
    min-height: 34px;
    padding: 3px 5px;
    gap: 4px;
    border-radius: 12px;
  }

  .avatar-shell {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .avatar {
    font-size: 14px;
  }

  .seat--hero .avatar-shell {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .player-name,
  .seat--hero .player-name {
    font-size: 7px;
  }

  .player-stack,
  .player-status {
    font-size: 6px;
  }

  .position-badge {
    min-height: 14px;
    padding: 1px 4px;
    font-size: 6px;
  }

  .seat-cards {
    gap: 2px;
  }

  .seat-cards .playing-card {
    width: 24px;
    height: 34px;
  }

  .seat--hero .seat-cards .playing-card {
    width: 28px;
    height: 40px;
  }

  .chip-stack-value {
    padding: 1px 4px;
    font-size: 6px;
  }

  .table-chip {
    width: 12px;
    height: 12px;
  }

  .action-dock {
    min-height: 69px;
    flex: 0 0 69px;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 5px 8px;
  }

  .action-context {
    min-width: 128px;
    gap: 6px;
  }

  .action-context small {
    font-size: 6px;
  }

  .action-context strong {
    font-size: 9px;
  }

  .hero-mini-hand {
    min-width: 50px;
    padding-left: 5px;
  }

  .hero-mini-hand .playing-card {
    width: 23px;
    height: 33px;
  }

  .action-clock {
    width: 42px;
    height: 42px;
  }

  .action-clock strong {
    font-size: 18px;
  }

  .action-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .raise-control {
    width: 128px;
    height: 38px;
    padding: 4px 6px;
    gap: 4px;
  }

  .raise-step-button {
    width: 25px;
    height: 30px;
    flex-basis: 25px;
    font-size: 15px;
  }

  .raise-line {
    margin: 0;
    font-size: 7px;
  }

  .raise-line strong {
    font-size: 10px;
  }

  .raise-control input[type="range"] {
    height: 12px;
  }

  .action-btn,
  .btn-allin {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 8px;
  }

  .start-button {
    min-width: 84px;
    min-height: 38px;
    font-size: 9px;
  }

  .side-panel {
    display: none;
  }
}
