/* games/poker/frontend/lobby.css — sảnh Poker (bổ sung cho main.css) */
.pk-lobby {
  max-width: 1100px;
}
.pk-disclaimer {
  margin-bottom: 14px;
}
.pk-balance {
  font-size: 30px;
  font-weight: 800;
  margin: 4px 0;
}
.pk-create {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  align-items: end;
}
.pk-create label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.pk-create label.check {
  flex-direction: row;
  align-items: center;
}
.pk-wallet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 14px;
  font-weight: 700;
}
.chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffcf4a 0 40%, #d0202f 41% 60%, #fff 61% 70%, #d0202f 71%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.pk-pos {
  color: var(--ok);
  font-weight: 700;
}
.pk-neg {
  color: var(--danger);
  font-weight: 700;
}
@media (max-width: 600px) {
  .pk-create {
    grid-template-columns: 1fr;
  }
  /* Điện thoại: trang cao đúng 1 màn hình, chỉ danh sách bàn cuộn */
  html:has(body.pk-lobby-page) {
    height: 100%;
    overflow: hidden;
  }
  body.pk-lobby-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.pk-lobby-page .site-header {
    flex: none;
    min-height: var(--top-h);
    padding: 2px 6px;
    gap: 4px;
  }
  body.pk-lobby-page .brand,
  body.pk-lobby-page .site-footer,
  body.pk-lobby-page #userMenu {
    display: none !important;
  }
  body.pk-lobby-page .site-header .m-only {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
  }
  .pk-wallet {
    min-height: 36px;
    font-size: 15px;
  }
  .pk-wallet .unit {
    display: none; /* "phỉnh": biểu tượng phỉnh đã nói rõ */
  }
  body.pk-lobby-page .pk-lobby {
    flex: 1;
    min-height: 0;
    padding: 6px 10px calc(8px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
  }
  body.pk-phone #content:not(.hidden) {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  body.pk-phone .pk-disclaimer,
  body.pk-phone .grid-2 {
    display: none;
  }
  body.pk-phone .ui-sheet .pk-disclaimer {
    display: flex;
    margin: 0 0 8px;
  }
  .ui-sheet .card {
    border: 0;
    box-shadow: none;
    padding: 0 0 8px;
    margin: 0;
  }
  .ui-sheet .card h2 {
    display: none;
  }
  .pk-toolbar.m-only {
    display: flex !important;
    gap: 8px;
    align-items: center;
  }
  .pk-toolbar #joinForm {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .pk-toolbar #joinCode {
    flex: 1;
    min-width: 0;
    min-height: 42px;
  }
  .pk-toolbar button {
    min-height: 42px;
    white-space: nowrap;
  }
  body.pk-phone .pk-tables {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 10px;
  }
  body.pk-phone .pk-tables h2 {
    font-size: 15px;
    margin: 0 0 6px;
  }
  body.pk-phone .pk-tables .table-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  /* Mỗi bàn 1 dòng: mức cược · ghế · máy · Vào */
  body.pk-phone table.data th:nth-child(2),
  body.pk-phone table.data td:nth-child(2) {
    display: none;
  }
  body.pk-phone table.data td,
  body.pk-phone table.data th {
    padding: 6px 6px;
  }
  body.pk-phone table.data .btn {
    min-height: 40px;
    padding: 6px 12px;
  }
  .ui-sheet .pk-create label:not(.check) {
    display: none; /* thay bằng chip phía trên */
  }
  .ui-sheet .pk-create label.check {
    display: none;
  }
  .ui-sheet .pk-create button[type='submit'] {
    min-height: 48px;
    margin-top: 6px;
  }
}
