.online-app {
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 168, 124, 0.18), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(246, 196, 83, 0.1), transparent 30%),
    linear-gradient(180deg, #06281f 0%, #03150f 100%);
}

.online-topbar {
  gap: 10px;
}

.online-user-chip {
  max-width: 110px;
}

.online-user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(3, 18, 13, 0.22), rgba(2, 12, 9, 0.72)),
    url("../assets/bg-computer.png") center / cover no-repeat;
}

.online-screen #loginScreen {
  display: flex;
}

.online-card,
.lobby-shell,
.room-shell {
  width: min(620px, 100%);
  border-radius: 22px;
  border: 1.5px solid rgba(246, 196, 83, 0.46);
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 196, 83, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(10, 70, 54, 0.97), rgba(4, 34, 26, 0.97));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.online-card {
  width: min(390px, 100%);
  padding: 30px 26px 24px;
  text-align: center;
}

.online-kicker {
  color: #f6c453;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
}

.online-card h1,
.lobby-head h1,
.room-head h1 {
  margin: 9px 0 7px;
  color: #fff4d3;
  font-family: KaiTi, STKaiti, serif;
  font-size: clamp(28px, 6vw, 38px);
  letter-spacing: 3px;
}

.online-card p,
.lobby-head p,
.room-head p {
  margin: 0 0 20px;
  color: rgba(255, 241, 205, 0.66);
  font-size: 12px;
}

.online-card input {
  width: 100%;
  height: 46px;
  margin-bottom: 12px;
  padding: 0 15px;
  border-radius: 13px;
  border: 1px solid rgba(255, 230, 160, 0.32);
  background: rgba(0, 0, 0, 0.28);
  color: #fff6dc;
  font-size: 15px;
  outline: none;
}

.online-card input:focus {
  border-color: rgba(255, 215, 106, 0.8);
  box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.14);
}

.online-msg {
  min-height: 18px;
  margin-top: 12px;
  color: #ffb1a4;
  font-size: 11px;
  line-height: 1.4;
}

.online-link {
  display: inline-block;
  margin-top: 13px;
  color: rgba(255, 238, 194, 0.52);
  font-size: 11px;
  text-decoration: none;
}

.online-link:hover {
  color: #ffe8a8;
}

.lobby-shell,
.room-shell {
  padding: 22px;
}

.lobby-head,
.room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 230, 160, 0.14);
}

.lobby-head h1,
.room-head h1 {
  font-size: clamp(25px, 5vw, 34px);
}

.lobby-head-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.room-list {
  display: grid;
  gap: 9px;
  max-height: min(52vh, 430px);
  overflow-y: auto;
  padding: 14px 2px;
}

.room-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 230, 160, 0.15);
  background: rgba(0, 0, 0, 0.18);
}

.room-row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.room-row-name {
  color: #ffe8a8;
  font-size: 14px;
  font-weight: 900;
}

.room-row-meta {
  margin-top: 4px;
  color: rgba(255, 238, 194, 0.52);
  font-size: 10px;
}

.room-row-players {
  display: flex;
  gap: 4px;
  margin-top: 7px;
}

.room-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 230, 160, 0.16);
  color: rgba(255, 238, 194, 0.4);
  font-size: 9px;
}

.room-dot.filled {
  background: rgba(24, 180, 135, 0.36);
  border-color: rgba(124, 224, 180, 0.55);
  color: #d7fff0;
  font-weight: 800;
}

.room-dot.ready {
  background: rgba(246, 196, 83, 0.3);
  border-color: rgba(255, 215, 106, 0.65);
  color: #ffe8a8;
}

.room-status {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 238, 194, 0.68);
  font-size: 10px;
}

.room-status.playing {
  color: #ffe8a8;
  border: 1px solid rgba(246, 196, 83, 0.36);
}

.room-empty {
  padding: 36px 0;
  text-align: center;
  color: rgba(255, 238, 194, 0.44);
  font-size: 12px;
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}

.room-seat {
  min-height: 125px;
  padding: 13px 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 230, 160, 0.16);
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
}

.room-seat.empty {
  border-style: dashed;
  color: rgba(255, 238, 194, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.room-seat-no {
  color: rgba(255, 238, 194, 0.4);
  font-size: 10px;
  letter-spacing: 2px;
}

.room-seat-name {
  margin: 9px 0 6px;
  color: #fff2d0;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-seat-beans {
  color: rgba(255, 238, 194, 0.55);
  font-size: 10px;
}

.room-seat-state {
  display: inline-flex;
  margin-top: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 238, 194, 0.55);
  font-size: 10px;
}

.room-seat-state.ready {
  background: rgba(24, 180, 135, 0.24);
  color: #9ff3d4;
}

.room-seat-state.offline {
  background: rgba(232, 74, 60, 0.18);
  color: #ffb1a4;
}

.room-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 3px;
}

.online-table {
  display: flex;
}

.online-table .bottom-cards {
  z-index: 12;
}

.online-table .seat-side {
  top: 16%;
}

.online-table .online-controls {
  top: 7px;
}

.online-table .selection-label {
  bottom: calc(100% + 5px);
}

.online-table .hand {
  height: calc(var(--card-h) + 28px);
  padding-top: 20px;
}

.online-table .card {
  user-select: none;
}

@media (max-width: 760px) {
  .online-screen {
    padding: 14px 10px;
    background:
      linear-gradient(180deg, rgba(3, 18, 13, 0.18), rgba(2, 12, 9, 0.7)),
      url("../assets/bg-mobile.png") center / cover no-repeat;
  }

  .online-card {
    padding: 25px 20px 20px;
  }

  .lobby-shell,
  .room-shell {
    padding: 17px 13px;
  }

  .lobby-head,
  .room-head {
    gap: 8px;
  }

  .lobby-head-actions {
    flex-direction: column;
    gap: 6px;
  }

  .lobby-head-actions .game-btn {
    min-width: 0;
    height: 35px;
    padding: 0 10px;
    font-size: 12px;
  }

  .seat-grid {
    gap: 6px;
  }

  .room-seat {
    min-height: 112px;
    padding: 10px 6px;
  }

  .room-seat-name {
    font-size: 12px;
  }

  .room-actions .game-btn {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 10px;
  }

  .online-user-chip {
    display: none;
  }

  .online-table .seat-side {
    top: 21%;
  }

  .online-table .controls {
    width: calc(100% - 12px);
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 8px;
  }

  .online-topbar .brand-title {
    font-size: 13px;
  }

  .online-table .controls {
    gap: 6px;
  }

  .online-table .control-group {
    gap: 6px;
  }

  .online-table .control-group .game-btn {
    min-width: 0;
    padding: 0 11px;
    font-size: 14px;
    letter-spacing: 0;
  }

  .online-table .timer-pill {
    min-width: 42px;
    padding: 0 7px;
    font-size: 12px;
  }
}

.lobby-tip {
  margin-top: 10px;
  color: rgba(255, 238, 194, 0.44);
  font-size: 10px;
  line-height: 1.5;
}

.lobby-shell {
  width: min(1120px, 100%);
}

.table-hall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 9px;
  max-height: min(60vh, 590px);
  overflow-y: auto;
  padding: 14px 2px;
}

.hall-table {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 230, 160, 0.17);
  background: rgba(0, 0, 0, 0.2);
}

.hall-table.playing {
  border-color: rgba(246, 196, 83, 0.32);
  background: rgba(246, 196, 83, 0.06);
}

.hall-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.hall-table-name {
  color: #ffe8a8;
  font-size: 12px;
  font-weight: 900;
}

.hall-table-status {
  color: rgba(255, 238, 194, 0.45);
  font-size: 9px;
}

.hall-table.playing .hall-table-status {
  color: #ffd76a;
}

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

.hall-seat {
  display: flex;
  min-width: 0;
  height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(255, 230, 160, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 238, 194, 0.4);
  font-size: 10px;
  cursor: default;
  font-family: inherit;
}

.hall-seat.empty {
  border-style: dashed;
  color: rgba(255, 238, 194, 0.58);
  cursor: pointer;
}

.hall-seat.empty:not(:disabled):hover {
  border-color: rgba(255, 215, 106, 0.7);
  background: rgba(246, 196, 83, 0.14);
  color: #ffe8a8;
}

.hall-seat:disabled {
  opacity: 0.6;
}

.hall-avatar {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2fbf8d, #0f7958);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.hall-seat-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f8edcd;
  font-size: 9px;
}

.hall-seat-state {
  color: rgba(255, 238, 194, 0.42);
  font-size: 8px;
}

.hall-seat-state.ready {
  color: #8ef0cd;
}

.hall-seat-state.offline {
  color: #ff9b8d;
}

@media (max-width: 760px) {
  .lobby-shell {
    width: 100%;
  }

  .table-hall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    max-height: 62vh;
  }

  .hall-table {
    padding: 8px;
  }

  .hall-seat {
    height: 56px;
  }
}

.hall-seats {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 46px 52px;
  gap: 5px;
}

.hall-seats::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 226, 150, 0.18);
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 236, 170, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(13, 122, 86, 0.7), rgba(4, 51, 38, 0.82));
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.28);
  z-index: 0;
}

.hall-seat {
  position: relative;
  z-index: 1;
  height: 46px;
}

.hall-seat:nth-child(1) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 64%;
  height: 46px;
}

.hall-seat:nth-child(2),
.hall-seat:nth-child(3) {
  align-self: end;
  height: 50px;
}

.hall-seat:nth-child(3) {
  justify-self: end;
  width: 100%;
}

@media (max-width: 760px) {
  .hall-seats {
    grid-template-rows: 42px 48px;
  }

  .hall-seat:nth-child(1) {
    width: 68%;
    height: 42px;
  }

  .hall-seat:nth-child(2),
  .hall-seat:nth-child(3) {
    height: 46px;
  }
}

.hall-table-scene {
  position: relative;
  height: 140px;
  margin-top: 4px;
}

.hall-round-table {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 0;
  display: flex;
  width: 86px;
  height: 86px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 220, 130, 0.32);
  background:
    radial-gradient(circle at 42% 35%, rgba(124, 224, 180, 0.38), transparent 34%),
    radial-gradient(circle at 50% 50%, #0d7a56, #053f2f 72%, #032b21);
  box-shadow:
    inset 0 0 0 2px rgba(3, 35, 27, 0.6),
    inset 0 0 24px rgba(0, 0, 0, 0.44),
    0 8px 18px rgba(0, 0, 0, 0.28);
  color: rgba(255, 238, 180, 0.42);
  font-family: KaiTi, STKaiti, serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
}

.hall-round-table::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 230, 160, 0.2);
}

.hall-seats {
  position: absolute;
  inset: 0;
  display: block;
  grid-template-columns: none;
  grid-template-rows: none;
  gap: 0;
}

.hall-seats::before {
  display: none;
}

.hall-seat,
.hall-seat:nth-child(1),
.hall-seat:nth-child(2),
.hall-seat:nth-child(3) {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 58px;
  height: 50px;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px;
  border-radius: 7px;
  border: 1px solid rgba(255, 230, 160, 0.2);
  background: linear-gradient(180deg, rgba(18, 86, 65, 0.96), rgba(4, 38, 29, 0.96));
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
  font-family: inherit;
  font-size: 10px;
}

.hall-seat:nth-child(1) {
  top: 0;
  left: 50%;
  width: 60px;
  height: 49px;
  transform: translateX(-50%);
}

.hall-seat:nth-child(2) {
  left: 3px;
  bottom: 0;
  width: 58px;
  height: 49px;
}

.hall-seat:nth-child(3) {
  right: 3px;
  bottom: 0;
  width: 58px;
  height: 49px;
}

.hall-seat.empty {
  justify-content: center;
  border-style: dashed;
  border-color: rgba(255, 230, 160, 0.32);
  color: rgba(255, 238, 194, 0.62);
  background: rgba(255, 255, 255, 0.045);
}

.hall-seat.empty:not(:disabled):hover {
  border-color: rgba(255, 215, 106, 0.8);
  background: rgba(246, 196, 83, 0.16);
  color: #ffe8a8;
}

.hall-avatar {
  width: 19px;
  height: 19px;
  font-size: 9px;
}

.hall-seat-name {
  font-size: 8px;
}

.hall-seat-state {
  font-size: 7px;
}

@media (max-width: 760px) {
  .hall-table-scene {
    height: 125px;
  }

  .hall-round-table {
    width: 72px;
    height: 72px;
    font-size: 13px;
  }

  .hall-seat,
  .hall-seat:nth-child(1),
  .hall-seat:nth-child(2),
  .hall-seat:nth-child(3) {
    width: 50px;
    height: 44px;
  }

  .hall-seat:nth-child(2) {
    left: 1px;
  }

  .hall-seat:nth-child(3) {
    right: 1px;
  }
}

.hall-table-scene {
  height: 152px;
}

.hall-desk-img {
  position: absolute;
  left: -2%;
  top: -4%;
  z-index: 0;
  width: 104%;
  height: 112%;
  object-fit: contain;
  object-position: center 45%;
  mix-blend-mode: normal;
  clip-path: inset(0 0 9% 0);
  filter: saturate(1.08) drop-shadow(0 7px 8px rgba(0, 0, 0, 0.34));
  pointer-events: none;
  opacity: 1;
}

.hall-round-table {
  display: none;
}

.hall-seat:nth-child(1) {
  top: 1px;
  width: 56px;
  height: 43px;
}

.hall-seat:nth-child(2),
.hall-seat:nth-child(3) {
  bottom: 7px;
  width: 56px;
  height: 45px;
  background: linear-gradient(180deg, rgba(20, 96, 72, 0.9), rgba(4, 42, 31, 0.92));
}

.hall-seat:nth-child(2) {
  left: 1px;
}

.hall-seat:nth-child(3) {
  right: 1px;
}

.hall-seat.empty {
  background: rgba(4, 45, 33, 0.62);
}

@media (max-width: 760px) {
  .hall-table-scene {
    height: 132px;
  }

  .hall-desk-img {
    left: -3%;
    top: -5%;
    width: 106%;
    height: 114%;
  }

  .hall-seat:nth-child(1),
  .hall-seat:nth-child(2),
  .hall-seat:nth-child(3) {
    width: 50px;
    height: 41px;
  }

  .hall-seat:nth-child(2),
  .hall-seat:nth-child(3) {
    bottom: 6px;
  }
}

.hall-seat:nth-child(2),
.hall-seat:nth-child(3) {
  bottom: 18px;
  width: 48px;
  height: 39px;
}

.hall-seat:nth-child(2) {
  left: 9px;
}

.hall-seat:nth-child(3) {
  right: 9px;
}

@media (max-width: 760px) {
  .hall-seat:nth-child(2),
  .hall-seat:nth-child(3) {
    bottom: 14px;
    width: 43px;
    height: 35px;
  }

  .hall-seat:nth-child(2) {
    left: 6px;
  }

  .hall-seat:nth-child(3) {
    right: 6px;
  }
}

.hall-seat:nth-child(2),
.hall-seat:nth-child(3) {
  bottom: 32px;
}

@media (max-width: 760px) {
  .hall-seat:nth-child(2),
  .hall-seat:nth-child(3) {
    bottom: 26px;
  }
}

.hall-seat:nth-child(2),
.hall-seat:nth-child(3) {
  bottom: 50px;
}

@media (max-width: 760px) {
  .hall-seat:nth-child(2),
  .hall-seat:nth-child(3) {
    bottom: 40px;
  }
}

.hall-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 232, 168, 0.48);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.hall-seat.taken .hall-seat-state {
  display: none;
}

.hall-seat.mine {
  border-color: rgba(255, 215, 106, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 215, 106, 0.28), 0 5px 10px rgba(0, 0, 0, 0.25);
}

.hall-seat.mine .hall-avatar {
  border-color: #ffd76a;
}

.hall-seat.mine .hall-seat-name {
  color: #ffe8a8;
}

.hall-table-scene {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 230, 160, 0.14);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 255, 255, 0.9), transparent 58%),
    linear-gradient(180deg, #fbf6e9, #eee4ce);
}

.hall-desk-img {
  mix-blend-mode: multiply;
  filter: none;
  opacity: 1;
}

.hall-table.seats-4 .hall-seat:nth-child(1) {
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
}

.hall-table.seats-4 .hall-seat:nth-child(2) {
  left: 2px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.hall-table.seats-4 .hall-seat:nth-child(3) {
  right: 2px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.hall-table.seats-4 .hall-seat:nth-child(4) {
  left: 50%;
  bottom: 1px;
  width: 56px;
  height: 40px;
  transform: translateX(-50%);
}

.hall-table.seats-4 .hall-seat:nth-child(1),
.hall-table.seats-4 .hall-seat:nth-child(2),
.hall-table.seats-4 .hall-seat:nth-child(3) {
  width: 48px;
  height: 39px;
}

@media (max-width: 760px) {
  .hall-table.seats-4 .hall-seat:nth-child(4) {
    width: 48px;
    height: 35px;
  }

  .hall-table.seats-4 .hall-seat:nth-child(1),
  .hall-table.seats-4 .hall-seat:nth-child(2),
  .hall-table.seats-4 .hall-seat:nth-child(3) {
    width: 43px;
    height: 35px;
  }
}

.online-home,
.online-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.online-home {
  padding: 0 9px;
}

@media (max-width: 520px) {
  .online-home {
    padding: 0 6px;
    font-size: 11px;
  }
}

.online-seat-top {
  display: none;
  position: absolute;
  top: 98px;
  left: 50%;
  z-index: 15;
  width: 220px;
  transform: translateX(-50%);
}

.online-table.is-four .online-seat-top {
  display: block;
}

.online-seat-top .avatar-wrap {
  flex-direction: row;
  justify-content: center;
  gap: 8px;
}

.online-seat-top .avatar {
  width: 64px;
  height: 102px;
}

.online-seat-top .count-badge {
  top: 16px;
  left: auto;
  right: -2px;
}

@media (max-width: 760px) {
  .online-seat-top {
    top: 86px;
    width: 168px;
  }

  .online-seat-top .avatar {
    width: 54px;
    height: 88px;
  }

  .online-seat-top .seat-name {
    font-size: 13px;
  }

  .online-seat-top .count-badge {
    top: 12px;
    right: -4px;
  }
}

.lobby-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 10px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(255, 230, 160, 0.2);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lobby-tab {
  flex: 1 1 120px;
  min-width: 0;
  height: 38px;
  padding: 0 15px;
  appearance: none;
  border: 1px solid rgba(255, 230, 160, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffe5a8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lobby-tab:hover {
  border-color: rgba(255, 215, 106, 0.45);
  background: rgba(246, 196, 83, 0.12);
  color: #fff4d3;
}

.lobby-tab.active {
  border-color: rgba(255, 247, 209, 0.7);
  background: linear-gradient(180deg, #ffe9a3, #f6c453 62%, #dd8f1c);
  color: #462600;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
}

.lobby-tip {
  margin-bottom: 4px;
}

.table-hall {
  gap: 16px 14px;
}

@media (max-width: 760px) {
  .lobby-tabs {
    gap: 9px;
    padding: 7px;
  }

  .lobby-tab {
    flex-basis: calc(50% - 5px);
    height: 35px;
    padding: 0 8px;
    font-size: 11px;
  }

  .table-hall {
    gap: 13px 10px;
  }
}

.online-screen {
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 18px;
}

#loginScreen {
  align-items: center;
  justify-content: center;
  padding-top: 22px;
}

@media (max-width: 760px) {
  .online-screen {
    padding-top: 10px;
  }

  #loginScreen {
    padding-top: 16px;
  }
}

.online-screen {
  justify-content: center;
}

#loginScreen {
  justify-content: center;
}

.version-switch {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid rgba(255, 230, 160, 0.16);
  background: rgba(0, 0, 0, 0.18);
}

.version-option {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 10px;
  color: #ffe5a8;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.version-option:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff4d3;
}

.version-option.active {
  background: linear-gradient(180deg, #ffe9a3, #f6c453 62%, #dd8f1c);
  color: #462600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.online-app .brand-sub {
  color: rgba(255, 232, 160, 0.72);
}

.lobby-tabs {
  border-radius: 4px;
}

.lobby-tab {
  border-radius: 2px;
}

.private-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 230, 160, 0.14);
  background: rgba(0, 0, 0, 0.14);
}

.private-bar span {
  flex: 1 1 auto;
  color: rgba(255, 238, 194, 0.48);
  font-size: 10px;
  line-height: 1.4;
}

.private-bar .game-btn {
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  font-size: 12px;
  flex: 0 0 auto;
}

.private-card {
  text-align: left;
}

.private-card h1 {
  text-align: center;
}

.private-card p {
  margin: 0 0 10px;
  color: rgba(255, 241, 205, 0.7);
  font-size: 12px;
}

.private-card input {
  margin-bottom: 9px;
}

.private-cancel {
  display: block;
  width: 100%;
  margin-top: 11px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: rgba(255, 238, 194, 0.55);
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}

.private-cancel:hover {
  color: #ffe8a8;
}

@media (max-width: 760px) {
  .private-bar {
    flex-wrap: wrap;
  }

  .private-bar span {
    flex-basis: 100%;
  }

  .private-bar .game-btn {
    flex: 1 1 0;
  }
}

.wallet-pop {
  width: min(380px, calc(100vw - 40px));
}

.wallet-pop .start-sub {
  margin: 0 0 16px;
}

.wallet-pop .game-btn + .game-btn {
  margin-top: 8px;
}
