/* Live offline seating: an isolated, static cousin of the Holdem table. */
[data-live-tables][hidden] { display:none; }
.home-live { margin:22px 0 26px; }
.home-live-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 4px 12px; }
.home-live-heading h2 { display:flex; align-items:center; gap:8px; margin:0; font-size:17px; letter-spacing:.12em; color:#ecf6ff; }
.home-live-heading h2 i { width:7px; height:7px; border-radius:50%; background:#ef857b; box-shadow:0 0 10px #ef857b44; }
.home-live-heading>span { font-size:12px; color:#92aabe; }
.home-live.is-stale .home-live-heading h2 i { background:#7e93a3; box-shadow:none; }
.live-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px 14px; align-items:start; width:100%; min-height:96px; padding:17px; text-align:left; font:inherit; cursor:pointer; border:1px solid #426781; border-radius:22px; color:#f0f6ff; background:radial-gradient(ellipse at 30% 0,#234a6388,transparent 75%),linear-gradient(155deg,#122130,#09131e 75%); box-shadow:inset 0 1px #b6e9ff18,0 8px 24px #0002; }
.live-entry+.live-entry { margin-top:10px; }
.live-entry-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:17px; font-weight:650; line-height:1.3; overflow-wrap:anywhere; }
.live-entry-count { padding-top:2px; color:#a8d4df; font-size:12px; white-space:nowrap; }
.live-entry-hint { align-self:end; color:#92aabe; font-size:11px; line-height:1.5; }
.live-entry-arrow { justify-self:end; align-self:center; color:#b3e5fa; font-size:25px; line-height:16px; }
.live-entry:active { background-color:#1e3a4f; }
.live-back { display:inline-flex; align-items:center; gap:7px; min-height:44px; margin:4px 0 12px; padding:6px 8px 6px 0; border:0; background:none; color:#b8dced; font:inherit; font-size:15px; cursor:pointer; }
.live-back svg { width:20px; height:20px; fill:currentColor; }
.live-screen-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.live-screen-heading .home-live-heading { margin:0; }
.live-screen-heading .live-back { margin:0; }
.live-detail { padding:15px 10px 16px; border:1px solid #36556b; border-radius:24px; background:radial-gradient(ellipse at 50% 45%,#14344877,transparent 70%),#0d1823; }
.live-detail-heading { padding:0 7px; }
.live-detail-heading h1 { margin:0 0 7px; font-size:21px; line-height:1.25; color:#edf6ff; overflow-wrap:anywhere; }
.live-detail-heading>span { color:#9ec6d5; font-size:13px; }
.live-pager { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:17px 6px 0; }
.live-pager button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #41647b; border-radius:14px; background:#172b3c; color:#d3edfa; font:inherit; font-size:29px; line-height:1; cursor:pointer; }
.live-pager button:disabled { opacity:.3; cursor:default; }
.live-pager>div { display:grid; gap:4px; text-align:center; }
.live-pager strong { font-size:17px; color:#e7f4ff; }
.live-pager span { font-size:11px; color:#91b2c6; }
.live-table-stage { container-type:inline-size; touch-action:pan-y; user-select:none; -webkit-user-select:none; }
.live-table-stage img { pointer-events:none; -webkit-user-drag:none; }
.live-table-dots { display:flex; justify-content:center; flex-wrap:wrap; gap:0; }
.live-table-dots button { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; background:none; cursor:pointer; }
.live-table-dots i { width:6px; height:6px; border-radius:9px; background:#385164; }
.live-table-dots [aria-pressed=true] i { width:18px; background:#83d5f4; }
.live-swipe-hint { margin:0 0 11px; text-align:center; font-size:11px; color:#809caf; }
.live-entry:focus-visible,.live-back:focus-visible,.live-pager button:focus-visible,.live-table-dots button:focus-visible,.live-table-stage:focus-visible { outline:2px solid #b5ecff; outline-offset:3px; }
/* Rendered leather table artwork, with a transparent outer contour. */
.live-table, .live-table.has-bounty { position:relative; height:auto; aspect-ratio:2 / 3; max-width:420px; margin:12px auto 4px; isolation:isolate; }
.live-table-art { position:absolute; left:50%; top:50%; width:132%; height:auto; aspect-ratio:1530 / 780; transform:translate(-50%,-50%) rotate(-90deg); pointer-events:none; }
.live-seat { position:absolute; z-index:2; top:var(--seat-y); left:var(--seat-x); transform:translate(-50%,-50%); width:72px; display:grid; justify-items:center; gap:4px; }
.live-seat-portrait { position:relative; width:40px; height:40px; border:2px solid #62829b; border-radius:50%; background:linear-gradient(145deg,#28465b,#122333); box-shadow:0 3px 8px #0008,0 0 0 3px #0c1823; }
.live-seat-initial { display:grid; place-items:center; position:absolute; inset:0; font-size:18px; font-weight:600; color:#d4eaff; }
.live-seat-portrait img { position:absolute; inset:0; width:100%; height:100%; border-radius:50%; object-fit:cover; }
.live-seat-portrait i { position:absolute; right:-5px; bottom:-2px; min-width:16px; height:16px; padding:0 2px; border-radius:8px; display:grid; place-items:center; font-size:9px; line-height:1; font-style:normal; color:#d2e5f1; background:#122a3a; border:1px solid #60839a; }
.live-seat-bounty { display:block; margin-top:-2px; padding:1px 6px; border-radius:6px; color:#ffd58f; background:#2a1c08e6; box-shadow:0 0 0 1px #ffb54a55; font-size:10px; font-weight:700; line-height:1.25; white-space:nowrap; font-variant-numeric:tabular-nums; }
.live-seat-name { display:block; max-width:100%; padding:3px 5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border-radius:6px; color:#eef7ff; background:#0b1824ed; box-shadow:0 2px 6px #0003; font-size:11px; font-weight:550; line-height:1.2; }
.live-seat.is-empty { visibility:hidden; }
.live-seat.is-me .live-seat-portrait { border-color:#9ae7f5; box-shadow:0 0 0 3px #0c1823,0 0 14px #4ecfff33; }
.live-seat-vacant { display:grid; place-items:center; width:27px; height:27px; border:1px solid #60809555; border-radius:50%; color:#6c8a9c; background:#0d1d29d9; font-size:10px; }
.live-game-footer { padding:4px 6px 0; text-align:center; font-size:11px; color:#7e9bad; line-height:1.5; }
.live-detail.is-stale .live-game-footer { color:#d6bc8c; }
.live-detail.is-stale .live-table { opacity:.65; }
.live-seating-pending { display:grid; gap:8px; justify-items:center; padding:34px 12px; text-align:center; color:#b6cede; }
.live-seating-pending strong { font-size:17px; }.live-seating-pending span { font-size:13px; color:#8faabb; }
@media(max-width:370px) {
  .live-detail { padding-left:8px; padding-right:8px; }
  .live-seat { width:62px; gap:3px; }
  .live-seat-portrait { width:34px; height:34px; }
  .live-seat-name { font-size:10px; padding:3px 4px; }
  .live-seat-bounty { font-size:9px; }
  .live-entry-title { font-size:16px; }
  .live-entry { padding:15px;gap:9px 10px; }
}
@container(min-width:600px) {
  .live-table, .live-table.has-bounty { aspect-ratio:1.7; height:auto; max-width:760px; }
  .live-table-art { width:88%; transform:translate(-50%,-50%); }
  .live-seat { left:var(--seat-wide-x); top:var(--seat-wide-y); width:94px; }
  .live-seat-portrait { width:44px; height:44px; }
  .live-seat-name { font-size:12px; }
}

/* The LIVE view uses the space between the app header and the tab bar. */
.app-shell:has(.view-screen.is-current > .live-screen) {
  display:flex;
  flex-direction:column;
  height:var(--app-height, 100dvh);
  min-height:0;
  padding-bottom:0;
}
.app-shell:has(.view-screen.is-current > .live-screen) > .topbar {
  flex:0 0 auto;
  margin-bottom:4px;
}
.app-shell:has(.view-screen.is-current > .live-screen) > .view-stack {
  flex:1 1 0;
  min-height:0;
}
.view-screen.is-current:has(> .live-screen), .live-screen {
  height:100%;
  min-height:0;
}
.live-screen { display:flex; flex-direction:column; }
.live-screen-heading { flex:0 0 auto; margin-bottom:4px; }
.live-screen > [data-live-tables] { flex:1 1 0; min-height:0; }
.live-screen .live-detail {
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}
.live-screen .live-detail-heading { flex:0 0 auto; padding:0; }
.live-screen .live-detail-heading h1 { margin-bottom:4px; font-size:18px; line-height:1.2; }
.live-screen .live-pager { flex:0 0 auto; margin:8px 0 0; }
.live-screen .live-table-stage {
  container-type:size;
  flex:1 1 0;
  min-height:0;
  display:grid;
  place-items:center;
  margin-top:4px;
}
.live-screen .live-table {
  width:min(100cqw, 66.666cqh);
  height:auto;
  max-width:none;
  aspect-ratio:2 / 3;
  margin:0;
}
.live-screen .live-table-dots, .live-screen .live-swipe-hint, .live-screen .live-game-footer { flex:0 0 auto; }
.live-screen .live-swipe-hint { margin:0 0 2px; }
.live-screen .live-game-footer { padding:2px 0 0; }
@container (max-height:440px) {
  .live-screen .live-seat { width:64px; gap:2px; }
  .live-screen .live-seat-portrait { width:clamp(28px,8cqh,35px); height:clamp(28px,8cqh,35px); }
  .live-screen .live-seat-name { padding:2px 4px; font-size:10px; }
  .live-screen .live-seat-initial { font-size:15px; }
  .live-screen .live-seat-bounty { font-size:9px; padding:0 4px; }
}
@container (min-aspect-ratio:1.15) {
  .live-screen .live-table { width:min(100cqw,170cqh); aspect-ratio:1.7; }
  .live-screen .live-table-art { width:88%; transform:translate(-50%,-50%); }
  .live-screen .live-seat { left:var(--seat-wide-x); top:var(--seat-wide-y); }
}
@media(max-height:700px) {
  .app-shell:has(.view-screen.is-current > .live-screen) { padding-top:max(6px,env(safe-area-inset-top)); }
  .app-shell:has(.view-screen.is-current > .live-screen) > .topbar { margin-bottom:0; }
  .live-screen .live-detail-heading h1 { font-size:16px; }
  .live-screen .live-pager { margin-top:4px; }
  .live-screen .live-pager>div { gap:1px; }
  .live-screen .live-table-dots button { height:24px; }
  .live-screen .live-swipe-hint { font-size:10px; line-height:1.2; }
}
