body {
  overflow: hidden;
}
.page-center {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto;
}
.page-center .welcome {
  margin: 0;
  width: min(100%, 400px);
  max-width: none;
}
.page-center .welcome input {
  width: 100%;
}
.page-center .welcome .cta {
  width: 100%;
}

.shell {
  --bar-h: 0px;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-width: none;
  padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: 'stage' 'bar';
  gap: 6px;
}
.shell.seated {
  --bar-h: 178px;
}
.shell .stage {
  grid-area: stage;
  place-items: center;
}
.shell.lobby-shell {
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: 'top' 'stage';
  overflow-y: auto;
  height: auto;
  min-height: 100dvh;
}
.lobby-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.lobby-top h1 {
  margin: 0;
  font: 800 18px/1.2 var(--display);
}
.lobby-top .sub {
  display: block;
  color: var(--soft);
  font-size: 13px;
}
.lobby-top .grow {
  flex: 1;
  min-width: 0;
}
.controls {
  container: bar / inline-size;
  grid-area: bar;
  min-width: 0;
  min-height: var(--bar-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.controls:empty {
  display: none;
}
.controls .grip {
  display: none;
}
.shell.with-chat {
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: 'stage side' 'bar side';
}
.shell.with-chat .controls {
  grid-area: bar;
}
@media (orientation: landscape) and (max-height: 520px) {
  .shell,
  .shell.with-chat {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 34vw);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: 'stage bar';
  }
  .shell.seated {
    --bar-h: 0px;
  }
  .controls {
    justify-content: flex-end;
    overflow-y: auto;
  }
  .sidechat {
    display: none;
  }
}
@media (min-width: 900px) and (min-height: 560px) {
  .shell {
    position: relative;
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: 'stage';
  }
  .shell.with-chat {
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: 'stage side';
  }
  .shell.seated {
    --bar-h: 0px;
  }
  .controls {
    position: absolute;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 6;
    width: min(420px, calc(100% - 16px));
  }
  .shell.with-chat .controls {
    right: calc(var(--sc) + 24px);
  }
  .controls.moved {
    right: auto;
    bottom: auto;
  }
  .controls .grip {
    position: absolute;
    top: -14px;
    left: 50%;
    z-index: 2;
    width: 44px;
    height: 22px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border-radius: 999px;
    border: 1px solid var(--edge);
    background: rgba(24, 20, 50, 0.95);
    color: var(--soft);
    cursor: grab;
    touch-action: none;
  }
  .controls .grip svg {
    width: 16px;
    height: 16px;
    transform: rotate(90deg);
  }
  .controls.dragging .grip {
    cursor: grabbing;
  }
  .controls.dragging {
    opacity: 0.92;
  }
  .table9.wide {
    --desk-k: 0.9;
    width: min(calc(100cqw * var(--desk-k)), calc(100cqh * var(--r) * var(--desk-k)), calc(1760px * var(--desk-k)));
    height: min(calc(100cqh * var(--desk-k)), calc(100cqw / var(--rmin) * var(--desk-k)), calc(1760px / var(--r) * var(--desk-k)));
    translate: 0 calc(1.25% * (1 / var(--desk-k) - 1));
  }
}
@media (min-width: 1600px) and (min-height: 900px) {
  .controls {
    width: min(540px, 30vw);
  }
  .abar .title {
    font-size: 16px;
  }
  .abar .hint {
    font-size: 14px;
  }
  .abar .sizes button {
    min-height: 44px;
    font-size: 15px;
  }
  .abar .stepb,
  .abar .amt {
    height: 44px;
  }
  .abar .amt {
    font-size: 17px;
  }
  .abar .act {
    min-height: 68px;
    font-size: 16px;
  }
  .abar .act small {
    font-size: 17px;
  }
  .preacts button {
    min-height: 52px;
    font-size: 14px;
  }
}
.wide-only {
  display: none;
}
@media (min-width: 900px) {
  .wide-only {
    display: inline;
  }
}

.corner {
  position: absolute;
  top: 0;
  z-index: 8;
  display: flex;
  gap: 6px;
}
.corner.tl {
  left: 0;
}
.corner.tr {
  right: 0;
}
.tool {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: rgba(12, 11, 24, 0.72);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.15s;
}
.tool svg {
  width: 20px;
  height: 20px;
}
.tool[aria-pressed='false'] {
  color: var(--muted);
}
@media (hover: hover) {
  .tool:hover {
    background: rgba(40, 34, 80, 0.85);
  }
}
.tool .offdot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 2px #0d0b1c;
}
.offline {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(60, 14, 10, 0.9);
  border: 1px solid rgba(255, 154, 128, 0.5);
  color: #ffd2c4;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.lobby-top .offline {
  position: static;
  transform: none;
}

.tbar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  max-width: calc(100% - 196px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tb-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(12, 11, 24, 0.82);
  color: var(--ink);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}
.tb-main b {
  font: 800 12px var(--display);
  color: #fde68a;
}
.tb-main .tclock {
  color: var(--teal);
  font-weight: 700;
}
.tb-main .trank,
.tb-main .tnext {
  color: var(--soft);
}
.table9 .pod .addon {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}
.tflags,
.tchips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.tflag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 11, 24, 0.85);
  border: 1px solid var(--edge);
  font-size: 11px;
  font-weight: 700;
  color: var(--soft);
}
.tflag.warn {
  color: #fdba74;
  border-color: rgba(253, 186, 116, 0.45);
}
.tflag.hot {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.5);
}
.tflag.ok {
  color: var(--teal);
}
.tflag.wait {
  color: #fde68a;
}
.tchip {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.45);
  background: rgba(8, 40, 38, 0.9);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.table9 {
  --av: clamp(34px, 11.5cqw, 60px);
  --cw: calc(var(--av) * 0.56);
  --hav: calc(var(--av) * 1.2);
  --hcw: calc(var(--av) * 1.15);
  --plate-w: calc(var(--av) * 2.3);
  --hplate-w: calc(var(--av) * 2.8);
  --fs: clamp(10.5px, calc(var(--av) * 0.24), 18px);
  --bw: clamp(26px, 9cqw, 46px);
  --mk: clamp(24px, calc(var(--av) * 0.46), 40px);
}
.table9.wide {
  --av: clamp(40px, 4.3cqw, 104px);
  --plate-w: calc(var(--av) * 2.05);
  --hplate-w: calc(var(--av) * 2.5);
  --bw: clamp(30px, 4.4cqw, 104px);
}
.table9 .board .card {
  width: var(--bw);
  height: calc(var(--bw) * 1.4);
  border-radius: calc(var(--bw) * 0.14);
}
.table9 .pot strong {
  font-size: clamp(20px, calc(var(--bw) * 0.7), 64px);
}
.table9 .pot small {
  font-size: clamp(10px, calc(var(--bw) * 0.26), 20px);
}
.table9 .bet {
  height: clamp(20px, calc(var(--av) * 0.42), 40px);
  padding: 0 calc(var(--av) * 0.12) 0 3px;
  font-size: clamp(11px, calc(var(--av) * 0.25), 22px);
}
.table9 .bet i {
  width: clamp(14px, calc(var(--av) * 0.3), 30px);
  height: clamp(14px, calc(var(--av) * 0.3), 30px);
}
.table9 .felttag {
  font-size: clamp(10.5px, calc(var(--bw) * 0.24), 18px);
}
.table9 .pod {
  position: absolute;
  z-index: 4;
  width: var(--av);
  height: var(--av);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}
.table9 .pod.me {
  z-index: 5;
  width: var(--hav);
  height: var(--hav);
}
.table9 .pod .avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-size: calc(var(--av) * 0.32);
  box-shadow:
    0 0 0 2px #0d0b1c,
    0 8px 18px rgba(0, 0, 0, 0.45);
}
.table9 .pod .avatar .timer {
  inset: -4px;
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 3px), #000 calc(50% - 2px));
  mask: radial-gradient(circle, transparent calc(50% - 3px), #000 calc(50% - 2px));
}
.table9 .pod .podbtn {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
}
.table9 .pod .mini {
  position: absolute;
  left: 50%;
  bottom: 46%;
  z-index: 2;
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.table9 .pod .mini .card {
  width: var(--cw);
  height: calc(var(--cw) * 1.4);
  border-radius: calc(var(--cw) * 0.14);
  flex: none;
}
.table9 .pod .mini.h2 .card + .card {
  margin-left: calc(var(--cw) * -0.18);
}
.table9 .pod .mini.h4 .card + .card {
  margin-left: calc(var(--cw) * -0.5);
}
.table9 .pod .mini.h5 .card + .card {
  margin-left: calc(var(--cw) * -0.58);
}
.table9 .pod .mini.h2 .card:first-child {
  transform: rotate(-7deg);
}
.table9 .pod .mini.h2 .card:last-child {
  transform: rotate(7deg);
}
.table9 .pod .mini.h4 .card:nth-child(1),
.table9 .pod .mini.h5 .card:nth-child(1) {
  transform: rotate(-9deg) translateY(2px);
}
.table9 .pod .mini.h4 .card:nth-child(2),
.table9 .pod .mini.h5 .card:nth-child(2) {
  transform: rotate(-3deg);
}
.table9 .pod .mini.h4 .card:nth-child(3) {
  transform: rotate(3deg);
}
.table9 .pod .mini.h4 .card:nth-child(4),
.table9 .pod .mini.h5 .card:nth-child(5) {
  transform: rotate(9deg) translateY(2px);
}
.table9 .pod .mini.h5 .card:nth-child(4) {
  transform: rotate(5deg);
}
.table9 .pod .mini.h5 .card:nth-child(3) {
  transform: rotate(1deg);
}
.table9 .pod.me .mini {
  bottom: 18%;
}
.table9 .pod.me .mini .card {
  width: var(--hcw);
  height: calc(var(--hcw) * 1.4);
  border-radius: calc(var(--hcw) * 0.12);
}
.table9 .pod.me .mini.h2 .card + .card {
  margin-left: calc(var(--hcw) * -0.12);
}
.table9 .pod.me .mini.h4 .card + .card {
  margin-left: calc(var(--hcw) * -0.46);
}
.table9 .pod.me .mini.h5 .card + .card {
  margin-left: calc(var(--hcw) * -0.54);
}
.table9.narrow .pod.me .mini.h5 .card + .card {
  margin-left: calc(var(--hcw) * -0.6);
}
.table9 .pod.me .mini[data-peek] {
  pointer-events: auto;
  cursor: pointer;
}
.table9 .pod .plate {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  z-index: 3;
  width: var(--plate-w);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 3px 6px 3px;
  border-radius: 9px;
  background: rgba(8, 8, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  line-height: 1.15;
}
.table9 .pod.me .plate {
  width: var(--hplate-w);
  top: calc(100% - 8px);
}
.table9 .pod .name {
  max-width: 100%;
  font-size: var(--fs);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.table9 .pod .stack {
  max-width: 100%;
  font: 700 calc(var(--fs) * 1.05) / 1.2 var(--display);
  color: #fde68a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.table9 .pod button.stack {
  padding: 1px 6px;
  margin: 1px 0 0;
  border: 1px dashed rgba(253, 230, 138, 0.35);
  border-radius: 6px;
  background: rgba(253, 230, 138, 0.06);
  cursor: pointer;
  font-size: calc(var(--fs) * 1.15);
}
.table9 .pod .pbar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: calc(var(--p, 0) * 1%);
  background: var(--tc, #22d3ee);
  transition: width 0.2s linear;
}
.table9 .pod.acting .plate {
  border-color: rgba(34, 211, 238, 0.85);
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, 0.35),
    0 0 18px rgba(34, 211, 238, 0.35);
}
.table9 .pod.acting .avatar {
  box-shadow:
    0 0 0 2px #0d0b1c,
    0 0 0 4px rgba(34, 211, 238, 0.65);
}
.table9 .pod.winner .plate {
  border-color: rgba(250, 204, 21, 0.85);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.4);
}
.table9 .pod.folded .avatar,
.table9 .pod.idle .avatar {
  filter: grayscale(0.7) brightness(0.65);
}
.table9 .pod.folded .plate,
.table9 .pod.idle .plate {
  opacity: 0.7;
}
.table9 .pod .tag {
  position: absolute;
  top: calc(100% + var(--fs) * 2.7);
  left: 50%;
  z-index: 4;
  max-width: calc(var(--plate-w) + 8px);
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 999px;
  background: #1e1b3a;
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: var(--violet-soft);
  font-size: calc(var(--fs) * 0.92);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.table9 .pod .tag.out {
  background: #24242e;
  border-color: rgba(255, 255, 255, 0.18);
  color: #c9c8d6;
}
.table9 .pod .tag.win {
  background: #3d2f05;
  border-color: rgba(250, 204, 21, 0.7);
  color: #fde68a;
}
.table9 .pod.allin .tag {
  background: #4a0f12;
  border-color: rgba(255, 90, 54, 0.75);
  color: #ffd2c4;
}
.table9 .pod .away {
  left: auto;
  right: -2px;
  top: auto;
  bottom: 2px;
  z-index: 2;
}
.table9 .pod .vpip {
  position: absolute;
  top: 58%;
  z-index: 3;
  min-width: calc(var(--fs) * 1.8);
  height: calc(var(--fs) * 1.6);
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #23324a;
  border: 1px solid rgba(147, 197, 253, 0.55);
  color: #ffffff;
  font: 800 calc(var(--fs) * 0.92) / 1 var(--text);
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
@media (hover: hover) {
  .table9 .pod .vpip:hover {
    background: #2f4a73;
    border-color: #bfdbfe;
  }
}
.table9 .pod.in-r .vpip {
  right: calc(100% + 1px);
}
.table9 .pod.in-l .vpip {
  left: calc(100% + 1px);
}
.table9 .pod {
  --plate-mid: calc(100% - 3px + var(--fs) * 1.2);
}
.table9 .pod.me {
  --plate-mid: calc(100% - 3px + var(--fs) * 1.45);
}
.table9 .pod .marker {
  position: absolute;
  top: var(--plate-mid);
  z-index: 4;
  height: calc(var(--mk) * 0.82);
  min-width: calc(var(--mk) * 0.82);
  padding: 0 calc(var(--mk) * 0.2);
  display: grid;
  place-items: center;
  border-radius: 999px;
  font: 800 calc(var(--fs) * 0.9) / 1 var(--text);
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 2px #0d0b1c,
    0 4px 10px rgba(0, 0, 0, 0.6);
}
.table9 .pod.in-r .marker {
  left: calc(50% + var(--plate-w) / 2 - 6px);
  transform: translateY(-50%);
}
.table9 .pod.in-l .marker {
  left: calc(50% - var(--plate-w) / 2 + 6px);
  transform: translate(-100%, -50%);
}
.table9 .pod.me.in-r .marker {
  left: calc(50% + var(--hplate-w) / 2 - 6px);
}
.table9 .pod.me.in-l .marker {
  left: calc(50% - var(--hplate-w) / 2 + 6px);
}
.table9 .marker.d {
  width: var(--mk);
  height: var(--mk);
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e9e4d4 70%);
  color: #111114;
  font-size: calc(var(--fs) * 1.05);
  box-shadow:
    0 0 0 2px #0d0b1c,
    inset 0 0 0 2px rgba(17, 17, 20, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.6);
}
.table9 .marker.sb,
.table9 .marker.bb {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #1a1206;
  border: 1.5px solid #fff3c4;
}
.table9.narrow .felttag {
  max-width: 54cqw;
}
.table9 .pod .odds {
  position: absolute;
  bottom: calc(46% + var(--cw) * 1.4 + 2px);
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(8, 8, 16, 0.9);
  border: 1px solid rgba(94, 234, 212, 0.5);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}
.table9 .pod .name.handname {
  color: var(--teal);
}
.table9 .pod.me .odds {
  bottom: auto;
  top: 30%;
  left: auto;
  right: calc(50% + var(--hcw) + 4px);
  transform: none;
}
.table9 .pod.me .vpip {
  z-index: 4;
  top: calc(100% - 8px);
  left: auto;
  right: calc(50% + var(--hplate-w) / 2 - 10px);
  transform: translateY(-50%);
}
.table9 .pod.me .tag {
  top: var(--plate-mid);
  left: auto;
  right: calc(50% + var(--hplate-w) / 2 + 6px);
  transform: translateY(-50%);
}
.table9 .pod.me.in-r .tag {
  right: calc(50% + var(--hplate-w) / 2 + 6px);
}
.table9.wide.short .pod.me .tag {
  transform: translateY(calc(-50% + var(--fs) * 1.2));
}

.table9 .empty9 {
  position: absolute;
  width: var(--av);
  height: var(--av);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(196, 181, 253, 0.45);
  background: rgba(13, 11, 28, 0.6);
  color: var(--violet-soft);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
}
.table9 .center {
  z-index: 2;
}
.table9.short .center {
  top: 53%;
}
.table9.narrow .center {
  top: 53.3%;
}
@container tbl (max-width: 420px) {
  .table9.narrow .board .card {
    width: 26px;
    height: 36px;
  }
}
.stage:has(.table9.narrow) .corner {
  flex-direction: column;
}
.stage:has(.table9.narrow) .wide-tool {
  display: none;
}
@media (max-width: 480px) {
  .tool {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .tool svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-height: 760px) {
  .shell.seated {
    --bar-h: 150px;
  }
  .abar .sizes button {
    min-height: 30px;
  }
  .abar .stepb,
  .abar .amt {
    height: 32px;
  }
  .abar .act {
    min-height: 46px;
  }
  .controls .panel {
    gap: 5px;
    padding: 6px 8px;
  }
}
@container tbl (max-height: 560px) {
  .table9.narrow .pot strong {
    font-size: 20px;
  }
}
@container tbl (max-width: 400px) {
  .table9.n7,
  .table9.n8,
  .table9.n9 {
    --av: 34px;
    --cw: 19px;
    --hcw: 40px;
    --plate-w: 78px;
  }
  .table9.n7 .pod .name,
  .table9.n8 .pod .name,
  .table9.n9 .pod .name {
    font-size: 10.5px;
  }
  .table9.n7 .pod .stack,
  .table9.n8 .pod .stack,
  .table9.n9 .pod .stack {
    font-size: 11px;
  }
}
.table9 .pot {
  pointer-events: auto;
  padding: 2px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.table9 button.pot:focus-visible {
  outline-offset: 0;
}
.table9 .felttag {
  margin-top: 2px;
  max-width: 70cqw;
  font: 700 10.5px/1.2 var(--text);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table9 .bet {
  z-index: 3;
}
.table9 .marker,
.table9 .bet {
  pointer-events: none;
}

.controls .panel {
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(12, 11, 26, 0.92);
  border: 1px solid var(--edge);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.abar .row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}
.abar .title {
  font-size: 13px;
  font-weight: 700;
}
.abar .hint {
  font-size: 12px;
  color: var(--soft);
}
.abar .turnbar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.abar .sizes {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 5px;
}
.abar .sizes button {
  min-height: 34px;
  padding: 0 4px;
  border-radius: 10px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  background: rgba(39, 33, 78, 0.65);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.abar .sizes button[aria-pressed='true'] {
  background: var(--pressed);
  border-color: var(--pressed-edge);
  color: #ffffff;
}
.abar .sizer {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px 92px;
  align-items: center;
  gap: 6px;
}
.abar .stepb {
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: rgba(39, 33, 78, 0.65);
  cursor: pointer;
}
.abar .stepb svg {
  width: 18px;
  height: 18px;
}
.abar input[type='range'] {
  width: 100%;
  accent-color: #a78bfa;
  min-height: 28px;
}
.abar .amt {
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: rgba(6, 5, 16, 0.7);
  color: var(--ink);
  font: 700 14px var(--display);
  text-align: right;
}
.abar .actions {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 6px;
}
.abar .act {
  min-height: 54px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}
.abar .act .act-t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@container bar (max-width: 480px) {
  .abar .act {
    font-size: 12.5px;
  }
  .abar .act .act-l svg,
  .abar .act .act-l kbd {
    display: none;
  }
}
.abar .act .act-l {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.abar .act svg {
  width: 17px;
  height: 17px;
}
.abar .act small {
  font: 800 14px var(--display);
  color: inherit;
}
.abar .act kbd {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .abar .act kbd {
    display: inline-block;
    padding: 0 4px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font: 700 10px var(--text);
    opacity: 0.75;
  }
}
.abar .act.fold {
  background: linear-gradient(180deg, #4b4a5c, #2e2d3c);
}
.abar .act.check,
.abar .act.call {
  background: linear-gradient(180deg, #129a7f, #0b6e5b);
}
.abar .act.raise {
  background: linear-gradient(180deg, #8b3bf0, #5b2ecf);
}
.abar .act[disabled] {
  opacity: 0.55;
  cursor: default;
}
.abar.pre .preacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.preacts button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 6px;
  border-radius: 12px;
  border: 1px solid rgba(196, 181, 253, 0.25);
  background: rgba(39, 33, 78, 0.55);
  color: var(--soft);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.preacts .pre-ic {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 5px;
  border: 1.5px solid rgba(196, 181, 253, 0.5);
}
.preacts .pre-ic svg {
  width: 13px;
  height: 13px;
  opacity: 0;
}
.preacts button[aria-pressed='true'] {
  background: var(--pressed);
  border-color: var(--pressed-edge);
  color: #ffffff;
}
.preacts button[aria-pressed='true'] .pre-ic {
  background: #8b5cf6;
  border-color: #8b5cf6;
}
.preacts button[aria-pressed='true'] .pre-ic svg {
  opacity: 1;
}
.wizlayer {
  grid-area: stage;
  position: relative;
  z-index: var(--z-wizard);
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}
.wizlayer > * {
  pointer-events: auto;
}
.wizard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(440px, calc(100% - 16px));
  max-height: calc(100% - 16px);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(14, 12, 30, 0.97);
  border: 1px solid rgba(196, 181, 253, 0.25);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.wizard.mini {
  top: auto;
  bottom: 8px;
  transform: translateX(-50%);
  width: auto;
  max-height: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.wz-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 12px 6px 16px;
}
.wz-head div {
  flex: 1;
}
.wz-head h2 {
  margin: 0;
  font: 800 16px/1.25 var(--display);
}
.wz-head p {
  margin: 2px 0 0;
  color: var(--soft);
  font-size: 12.5px;
}
.wz-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 14px 6px;
}
.wz-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--edge);
}
.wz-foot .grow {
  flex: 1;
}

.pv {
  position: relative;
  height: 118px;
  margin: 4px 0 6px;
  border-radius: 14px;
  background: var(--sk-room);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pv-rail {
  position: relative;
  width: 84%;
  height: 84%;
  border-radius: 999px;
  background: var(--sk-rail);
  box-shadow:
    0 0 0 2px var(--sk-glow-op, 0) var(--sk-trim),
    0 10px 20px rgba(0, 0, 0, 0.5);
  padding: 7px;
}
.skin-original .pv-rail,
.pv.skin-original .pv-rail {
  box-shadow:
    0 0 0 3px #8b5cf6,
    0 0 18px rgba(139, 92, 246, 0.6);
}
.pv-felt {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--sk-cloth);
  box-shadow:
    0 0 0 2px var(--sk-trim),
    inset 0 0 26px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.pv-pot {
  font: 800 11px var(--display);
  color: var(--sk-pot);
}
.pv-board,
.pv-hole {
  display: flex;
  gap: 3px;
}
.pv-board .card.sm {
  width: 20px;
  height: 28px;
}
.pv-hole {
  position: absolute;
  right: 10%;
  bottom: 8%;
  align-items: flex-end;
}
.pv-hole .card {
  width: 26px;
  height: 36px;
}
.pv-hole .card.sm {
  width: 16px;
  height: 22px;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}
.popt {
  position: relative;
  min-height: 44px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: rgba(30, 26, 60, 0.55);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.popt[aria-checked='true'] {
  background: var(--pressed);
  border-color: var(--pressed-edge);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.35);
}
.popt > span:last-child {
  max-width: 100%;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.popt:focus-visible,
.tool:focus-visible,
.abar button:focus-visible,
.controls .grip:focus-visible,
.reacts button:focus-visible,
.table9 .pot:focus-visible,
.table9 .podbtn:focus-visible,
.table9 .pod .vpip:focus-visible,
.table9 .pod button.stack:focus-visible {
  outline: 2px solid #fde68a;
  outline-offset: 2px;
}
.popt .pdef {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
}
.pv-sw {
  position: relative;
  width: 64px;
  height: 36px;
  border-radius: 999px;
  background: var(--sk-rail);
  padding: 4px;
  display: block;
}
.pv-sw i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--sk-cloth);
  box-shadow: 0 0 0 1.5px var(--sk-trim);
}
.pv-sw.skin-original {
  box-shadow: 0 0 0 2px #8b5cf6;
}
.pv-sw.skin-neon {
  box-shadow: 0 0 10px rgba(164, 107, 255, 0.8);
}
.pv-cards {
  display: flex;
  gap: 2px;
}
.pv-cards .card.sm {
  width: 22px;
  height: 31px;
}
.pgrid.backs .card {
  width: 30px;
  height: 42px;
}
.pgrid.units b {
  font: 800 14px var(--display);
}
.sheetm.prefs-sheet {
  max-width: 520px;
}

.panel.sheet .actions {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 6px;
}

@media (orientation: landscape) and (max-height: 520px) {
  .shell .stage {
    padding-left: 44px;
  }
  .shell .stage .corner {
    flex-direction: column;
    gap: 4px;
  }
  .shell .stage .corner.tl {
    top: 0;
    left: 0;
  }
  .shell .stage .corner.tr {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
  }
  .shell .stage .wide-tool {
    display: none;
  }
  .shell .tool {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .shell .tool svg {
    width: 17px;
    height: 17px;
  }
  .offline {
    top: 4px;
  }
  .table9.wide {
    --hplate-w: max(calc(var(--av) * 2.5), 124px);
    --plate-w: max(calc(var(--av) * 2.05), 96px);
  }
  .controls .panel {
    gap: 5px;
    padding: 6px 8px;
  }
  .abar .sizes {
    gap: 4px;
  }
  .abar .sizes button {
    min-height: 30px;
    padding: 0 2px;
    font-size: 12px;
  }
  .abar .sizer {
    grid-template-columns: 30px minmax(0, 1fr) 30px 76px;
    gap: 4px;
  }
  .abar .stepb,
  .abar .amt {
    height: 30px;
  }
  .abar .amt {
    font-size: 13px;
  }
  .abar .act {
    min-height: 48px;
    padding: 3px 4px;
    font-size: 12px;
    line-height: 1.1;
  }
  .abar .act .act-t {
    white-space: normal;
    text-align: center;
  }
  .abar .act small {
    font-size: 13px;
  }
  .abar .row {
    min-height: 0;
  }
  .abar .title {
    font-size: 12px;
  }
  .abar .hint {
    font-size: 11px;
  }
}
body.chat-guard .controls,
body.chat-guard .hand-tray,
body.chat-guard [data-guard] {
  z-index: var(--z-chat-guard);
}
.table9.narrow.short {
  --av: 34px;
  --cw: 19px;
  --hcw: 40px;
  --plate-w: 78px;
}
.table9.narrow.short .center {
  top: 49%;
}
.table9.narrow.short .pot {
  padding: 2px 4px;
}
.table9.narrow.short .pot strong {
  font-size: 18px;
}
.table9.narrow.short .bet {
  height: 18px;
  font-size: 10px;
}
.table9.narrow.short .pod .plate {
  padding: 3px;
}
.table9.narrow.short .pod .stack {
  font-size: 10.5px;
  letter-spacing: -0.01em;
}
.table9 .pod .name .vb-n {
  justify-content: center;
}
.table9 .pod .name .vbadge {
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.12em;
}
