/* Desktop lobby — measurements taken from a 1512×860 viewport screenshot. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #161c36;
  --beige: #c4ba97;
  --red: #a9332b;
  --gold: #e4b43f;
  --panel: rgba(134, 132, 132, 0.374);
  --panel-dim: rgba(100, 100, 103, 0.35);
  --input: rgba(240, 236, 240, 0.21);
  --row-yellow: #fffc54;
  --row-blue: #4a68d9;
  --row-orange: #e99135;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; border: 0; background: none; outline: 0; }
button { cursor: pointer; }
img { display: block; }

.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

.app { position: relative; z-index: 1; width: 100vw; height: 100vh; }

/* ===== Top bar ===== */
.hamburger {
  position: absolute; left: 6px; top: 32px;
  width: 20px; display: flex; flex-direction: column; gap: 5px;
}
.hamburger span { height: 2px; background: #fff; }

.top-item { position: absolute; }

.login {
  right: 477px; top: 10px; width: 70px; height: 57.5px;
  background: linear-gradient(#5bc6f7, #2b667f);
  border-radius: 2px;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 5px;
}
.login img { width: 21px; height: 16px; object-fit: contain; }
.login span { font-size: 14px; line-height: 1; }

.cashier { right: 324px; top: 9px; width: 146px; height: 60px; }

.jackpot {
  right: 176px; top: 9px; width: 144.5px; height: 60px;
  border: 2px solid #f7cc72; border-radius: 3px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px;
}
.jackpot .chev { width: 9px; height: 16px; }
.jackpot .jp-body { text-align: center; line-height: 1.32; }
.jackpot .jp-title { color: #f7cc72; font-size: 13px; }
.jackpot .jp-amount { font-size: 15px; margin-top: 1px; }

.lang {
  right: 105.5px; top: 19px; width: 55.5px; height: 40px;
  background: var(--input); border-radius: 4px;
  display: flex; align-items: center; padding-left: 8.5px; gap: 3px;
}
.lang img { width: 26.5px; height: 30px; object-fit: cover; object-position: center; margin-top: 0; }
.lang .caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #fff; }

.gear { right: 63.5px; top: 25.5px; width: 28px; height: 28.5px; }
.fullscreen { right: 19.5px; top: 28.5px; width: 22px; height: 22px; }

/* ===== Lobby (left column) ===== */
.lobby {
  position: absolute; left: 5px; right: 330px; top: 84px; bottom: 43px;
  display: flex; flex-direction: column;
}

.mode-tabs {
  height: 70px; padding-left: 4px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.mode-tab {
  position: relative; border-radius: 3px;
  background: var(--panel-dim);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 7.5px; font-size: 16px; line-height: 1;
}
.mode-tab.active { background: var(--panel); }
.mode-tab.active::after {
  content: ""; position: absolute; right: 1px; top: 10px; bottom: 6px;
  width: 2px; background: rgba(255, 255, 255, 0.35);
}
.mode-tab .spade { width: 34px; height: 34px; border-radius: 50%; }
.mode-tab .trophy { width: 36px; height: 34.5px; margin-top: 1px; }
.mode-tab span { margin-top: 9px; }

.filter-row {
  height: 36px; margin-top: 8px;
  display: grid; background: var(--panel); border-radius: 2px;
  font-size: 16px;
}
.filter-row + .filter-row { margin-top: 3px; }
.filter-row.three { grid-template-columns: repeat(3, 1fr); }
.filter-row.four { grid-template-columns: repeat(4, 1fr); }
.chip {
  margin: 4px 3.5px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.filter-row.four .chip { margin: 4px 8.6px; }
.chip.active { background: var(--gold); }
.chip .count {
  font-size: 9px; line-height: 12px; padding: 0 3.5px; border-radius: 6px;
  background: #9b9ba3; color: #fff; margin-left: 2px;
  position: relative; top: -6px;
}
.chip.active .count { background: #fff; color: #af3b35; }

.thead, .trow {
  display: grid;
  grid-template-columns: 26.85% 9.52% 15.55% 9.52% 15.55% 9.35% 1fr;
  align-items: center;
}
.thead {
  height: 40px; margin-top: 2px; background: #212121;
  color: #bcbcbc; font-size: 12px;
}
.thead span:nth-child(1) { padding-left: 11.5px; }
.thead span:nth-child(2) { padding-left: 24px; }
.thead span:nth-child(3) { padding-left: 55.5px; }
.thead span:nth-child(4) { padding-left: 32px; }
.thead span:nth-child(5) { padding-left: 68.5px; display: flex; align-items: center; gap: 3px; }
.thead span:nth-child(6) { padding-left: 30.5px; }
.thead .arrow { width: 9px; height: 16px; }

.tbody { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.tbody::-webkit-scrollbar { display: none; }

.trow {
  height: 40px; font-size: 16px; font-style: italic; font-weight: 500;
  text-align: center; white-space: nowrap;
}
.trow .name {
  text-align: left; padding-left: 16.5px; font-weight: 400;
  display: flex; align-items: center;
}
.trow .name img { width: 17px; height: 17px; border-radius: 3px; margin-left: 2.5px; }
.trow .name img:first-of-type { margin-left: 5px; }
.trow .act { text-align: left; padding-left: 58px; }

.r-holdem { background: #000; color: var(--row-yellow); }
.r-omaha  { background: var(--row-blue); color: #fff; }
.r-vip    { background: var(--row-yellow); color: #000; }
.r-omaha6 { background: var(--row-orange); color: #000; }

.btn-play {
  width: 60px; height: 32px; border-radius: 3px;
  background: linear-gradient(#5ac5f5, #2b657e);
  color: #fff; font-size: 17px; font-style: italic; font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.bottom-filters {
  height: 48px; padding-top: 10px;
  display: flex; align-items: flex-start;
}
.field {
  height: 34px; width: 240px; border-radius: 2px;
  background: var(--input);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 9px; font-size: 16px;
}
.field + .field { margin-left: 3px; }
.field input { width: 100%; height: 100%; }
.field input::placeholder { color: #a2a4af; }
.field .caret { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #fff; margin-right: 1px; }

.toggle {
  height: 34px; display: flex; align-items: center; font-size: 16px;
}
.toggle.empty { margin-left: 25px; }
.toggle.full  { margin-left: 43px; }
.toggle.full + .field { margin-left: 31px; }
.switch {
  position: relative; width: 46px; height: 22px; margin-left: 6px;
  border-radius: 11px; background: #c43b33;
  box-shadow: inset 0 0 0 2px #9b2922;
}
.switch::after {
  content: ""; position: absolute; right: 6px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
}

/* ===== Side panel ===== */
.side {
  position: absolute; right: 5px; width: 320px; top: 80px; bottom: 43px;
  display: flex; flex-direction: column;
}
.banner { width: 320px; height: 80px; }

.side-title {
  height: 47px; margin-top: 2px; padding-left: 10.5px;
  background: linear-gradient(#686866, #545454);
  display: flex; align-items: center;
  font-size: 14px; font-weight: 700;
}
.side-head, .side-row {
  display: grid; grid-template-columns: 120px 105px 1fr; align-items: center;
}
.side-head {
  height: 39px; background: #212121; color: #bcbcbc; font-size: 12px;
}
.side-head span:nth-child(1) { padding-left: 12.5px; }
.side-head span:nth-child(2) { padding-left: 12.5px; }
.side-head span:nth-child(3) { padding-left: 24px; }

.side-list { flex: 1; min-height: 0; overflow-y: auto; padding-top: 5px; scrollbar-width: none; }
.side-list::-webkit-scrollbar { display: none; }
.side-row { height: 42px; }
.side-row span:nth-child(1) { padding-left: 12px; font-size: 13px; font-weight: 500; }
.side-row img { width: 22px; height: 17px; margin-left: 33px; }
.side-row span:nth-child(3) { padding-left: 0.5px; font-size: 14px; }

.felt-box { position: relative; height: 224px; background: #0f0f0f; flex-shrink: 0; }
.felt-box svg { position: absolute; inset: 0; }
.buyin {
  position: absolute; left: 90.5px; top: 92.5px; width: 138.5px; height: 18.5px;
  background: rgba(0, 0, 0, 0.32); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; white-space: nowrap;
}
.seat { position: absolute; width: 0; height: 0; }
.seat .avatar {
  position: absolute; left: -21px; top: -21px;
  width: 42px; height: 42px; clip-path: circle(19.5px);
}
.seat .tag {
  position: absolute; top: 21px; left: 50%; transform: translateX(-50%);
  min-width: 58px; height: 21px; padding: 0 4px;
  background: #262132; border: 1px solid #aaaabb; border-radius: 9px;
  font-size: 9.5px; line-height: 9px; text-align: center; white-space: nowrap;
  display: flex; flex-direction: column; justify-content: center;
}
.seat .tag::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: -4px; height: 4px;
  border: 1px solid #aaaabb; border-top: 0; border-radius: 0 0 6px 6px;
}
.seat .tag b { color: #f5dfb3; font-weight: 400; }
.seat .open {
  position: absolute; left: -19.25px; top: -19.25px;
  width: 38.5px; height: 38.5px; border-radius: 50%;
  background: #211d2b; border: 1px solid #8a8794;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 9px; line-height: 10px;
}

.side-actions {
  height: 48px; padding-top: 5px; padding-bottom: 4px;
  display: grid; grid-template-columns: 158px 158px; gap: 4px;
  flex-shrink: 0;
}
.side-actions button { border-radius: 3px; font-size: 16px; }
.btn-side-play { background: var(--gold); }
.btn-side-wait { background: linear-gradient(#70c1d0, #5c8786); color: #e7e3d5; }

/* ===== Status bar ===== */
.statusbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 43px;
  background: #1d1d1d; color: #d6d6d6; font-size: 13px;
}
.statusbar img, .statusbar span { position: absolute; }
.sb-text { top: 13px; line-height: 16px; }
.version {
  left: 0; right: 0; top: 13px; text-align: center; color: #8e8e8e; font-size: 14px; line-height: 16px;
}
.sb-box {
  position: absolute; top: 7px; height: 32px; border-radius: 3px; background: #3f3f3f;
}
.sb-box .num { color: #fff; font-size: 14px; top: 8px; line-height: 16px; }

/* ===== Login modal ===== */
.login-overlay {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.33);
  display: flex; align-items: center; justify-content: center;
}
.login-overlay[hidden], .login-modal [hidden] { display: none; }
.login-modal {
  width: 334px; max-width: calc(100vw - 24px);
  background: #3a3a3a; border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  padding: 0 16px 10px;
}
.lm-head {
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding-left: 2px; font-size: 13px;
}
.lm-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; margin-right: -2px; }

.lm-form, .lm-pending { display: flex; flex-direction: column; }
.lm-input {
  height: 50px; padding: 0 9px; margin-bottom: 12px;
  background: #fff; color: #111; font-size: 16px; border-radius: 1px;
}
.lm-input::placeholder { color: #111; }
.lm-input.invalid { box-shadow: inset 0 0 0 2px #e0463c; }

.lm-row { height: 40px; margin: -6px 0 6px; display: flex; align-items: center; justify-content: space-between; }
.lm-check { display: flex; align-items: center; gap: 12px; font-size: 16px; cursor: pointer; }
.lm-check input { position: absolute; opacity: 0; pointer-events: none; }
.lm-check .box { width: 25px; height: 25px; border: 1.5px solid #ddd; border-radius: 3px; position: relative; }
.lm-check input:checked + .box { background: var(--gold); border-color: var(--gold); }
.lm-check input:checked + .box::after {
  content: ""; position: absolute; left: 7.5px; top: 2.5px; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.lm-check input:focus-visible + .box { box-shadow: 0 0 0 2px #5bc6f7; }
.lm-lang {
  width: 58px; height: 38px; border-radius: 3px; background: #8d8d8d;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.lm-lang img { width: 24px; height: 16px; object-fit: cover; }
.lm-lang .caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #fff; }

.lm-error { color: #ff8a80; font-size: 13px; margin: -4px 0 8px; }

.lm-btn {
  height: 50px; margin-bottom: 8px; border-radius: 2px;
  font-size: 16px; letter-spacing: 0.2px;
}
.lm-btn.gold { background: #e4b43f; }
.lm-btn.blue { background: linear-gradient(#5bc6f7, #2e8bb5); }
.lm-btn:hover { filter: brightness(1.08); }
.lm-btn:disabled { opacity: 0.6; cursor: default; filter: none; }

.lm-pending { align-items: center; text-align: center; padding-top: 6px; }
.lm-pending svg { margin-bottom: 14px; }
.lm-msg { font-size: 16px; line-height: 1.35; margin-bottom: 8px; }
.lm-sub { font-size: 13px; color: #c9c9c9; line-height: 1.4; margin-bottom: 18px; }
.lm-sub b { color: #fff; font-weight: 500; }
.lm-pending .lm-btn { align-self: stretch; }
