:root {
  --z-size-warn: 44;
}
.size-warn {
  position: fixed;
  top: 6px;
  left: 50%;
  z-index: var(--z-size-warn);
  width: max-content;
  max-width: min(440px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  transform: translateX(-50%);
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.6);
  background: rgba(36, 26, 6, 0.94);
  color: #fff4c2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
:root.vp-side .size-warn {
  left: 8px;
  max-width: calc(100vw - var(--side-w) - 28px);
  transform: none;
}
.size-warn[hidden] {
  display: none;
}
.size-warn svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: #facc15;
}
.size-warn span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.size-warn strong {
  font: 800 13px/1.2 var(--display);
}
.size-warn small {
  font-size: 12px;
  line-height: 1.3;
}

:root.vp-compact {
  --tool: 36px;
}
:root.vp-side {
  --tool: 32px;
  --side-w: clamp(248px, 30vw, 320px);
  --rail-h: calc(var(--tool) + 6px);
  --tbar-h: 70px;
}
:root.vp-side.vp-tiny {
  --side-w: 232px;
}
:root.vp-compact .shell .tool {
  width: var(--tool);
  height: var(--tool);
  border-radius: 10px;
}
:root.vp-compact .shell .tool svg {
  width: 17px;
  height: 17px;
}
:root.vp-compact .shell .stage .wide-tool {
  display: none;
}

:root.vp-side .shell:not(.lobby-shell) {
  grid-template-columns: minmax(0, 1fr) var(--side-w);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: 'stage bar';
  column-gap: 6px;
}
:root.vp-side .shell.seated {
  --bar-h: 0px;
}
:root.vp-side .shell .controls {
  justify-content: flex-end;
  justify-content: safe flex-end;
  overflow-y: auto;
  margin-top: var(--rail-h);
}
:root.vp-side .shell:has(.stage.tour .tbar) .controls {
  margin-top: calc(var(--rail-h) + var(--tbar-h));
}
:root.vp-side .shell .stage,
:root.vp-side .shell .stage.tour {
  padding-left: 0;
  padding-top: 0;
}
:root.vp-stack .shell .stage {
  padding-top: calc(var(--tool) + 8px);
}
:root.vp-stack .shell .stage.tour {
  padding-top: 50px;
}
:root.vp-side .shell .stage .corner {
  flex-direction: row;
  gap: 4px;
}
:root.vp-side .shell .stage .corner.tl {
  top: 0;
  bottom: auto;
  left: calc(100% + 6px);
  right: auto;
}
:root.vp-side .shell .stage .corner.tr {
  top: 0;
  bottom: auto;
  left: auto;
  right: calc(-6px - var(--side-w));
}
@media (max-width: 999px) {
  :root.vp-side .shell:has(.corner.tr > :nth-child(4)),
  :root.vp-side .shell:has(.corner.tl > :nth-child(5)):has(.corner.tr > :nth-child(3)) {
    --rail-h: calc(var(--tool) * 2 + 10px);
  }
  :root.vp-side .shell:has(.corner.tr > :nth-child(4)) .stage .corner.tr,
  :root.vp-side .shell:has(.corner.tl > :nth-child(5)):has(.corner.tr > :nth-child(3)) .stage .corner.tr {
    top: calc(var(--tool) + 4px);
  }
}
:root.vp-side .shell .stage .tbar {
  top: var(--rail-h);
  left: calc(100% + 6px);
  width: var(--side-w);
  max-width: none;
  transform: none;
}
:root.vp-side .shell .stage .tb-main {
  width: 100%;
  min-height: 34px;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 6px;
  row-gap: 0;
  padding: 3px 8px;
  white-space: normal;
  line-height: 1.25;
  font-size: 11.5px;
}

:root.vp-compact .controls .panel {
  gap: 5px;
  padding: 6px 8px;
}
:root.vp-compact .abar .sizes {
  gap: 4px;
}
:root.vp-compact .abar .sizes button {
  min-height: 30px;
  padding: 0 2px;
  font-size: 12px;
}
:root.vp-compact .abar .sizer {
  grid-template-columns: 30px minmax(0, 1fr) 30px 76px;
  gap: 4px;
}
:root.vp-compact .abar .stepb,
:root.vp-compact .abar .amt {
  height: 30px;
}
:root.vp-compact .abar .amt {
  font-size: 13px;
}
:root.vp-compact .abar .act {
  min-height: 48px;
  padding: 3px 4px;
  font-size: 12px;
  line-height: 1.1;
}
:root.vp-compact .abar .act .act-t {
  white-space: normal;
  text-align: center;
}
:root.vp-compact .abar .act small {
  font-size: 13px;
}
:root.vp-compact .abar .row {
  min-height: 0;
  flex-wrap: wrap;
  column-gap: 6px;
  row-gap: 0;
}
:root.vp-compact .abar .title {
  min-width: max-content;
  font-size: 12px;
}
:root.vp-compact .abar .hint {
  font-size: 11px;
}
@container bar (max-width: 279px) {
  :root.vp-compact .abar .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :root.vp-compact .abar .actions > .act:nth-child(3) {
    grid-column: 1 / -1;
  }
}

:root.vp-side .table9.wide {
  --hplate-w: max(calc(var(--av) * 2.5), 124px);
  --plate-w: max(calc(var(--av) * 2.05), 96px);
}
:root.vp-side .table9.wide.short {
  --rmin: 1.05;
}
:root.vp-compact .table9.short .pod.me {
  translate: 0 -3cqh;
}
.table9.wide.short.mini {
  --av: 34px;
  --cw: 19px;
  --hcw: 32px;
  --plate-w: 78px;
  --hplate-w: 104px;
  --bw: 26px;
  width: min(calc(100cqw - 16px), calc(100cqh * var(--r)));
}
.table9.mini .pot {
  padding: 2px 4px;
}
.table9.mini .pot strong {
  font-size: 17px;
}
.table9.mini .bet {
  height: 17px;
  padding: 0 4px 0 2px;
  font-size: 10px;
}
.table9.mini .bet i {
  width: 12px;
  height: 12px;
}
.table9.mini .felttag {
  max-width: 40cqw;
}
.table9.mini .pod .plate {
  padding: 3px;
}
.table9.mini .pod .stack {
  font-size: 10.5px;
  letter-spacing: -0.01em;
}
.table9.mini .winb {
  --u: 8.5px;
  --wb-max: 66cqw;
}
:root.vp-compact .table9.short .pod.me .tag {
  top: auto;
  bottom: calc(100% + 2px);
  right: calc(50% + var(--hcw) * 0.95 + 4px);
  max-width: 76px;
  transform: none;
}
:root.vp-compact .table9.short .pod.me:has(.mini.h4) .tag {
  right: calc(50% + var(--hcw) * 1.32 + 4px);
}
:root.vp-compact .table9.short .pod.me:has(.mini.h5) .tag,
:root.vp-compact .table9.short .pod.me:has(.mini.h6) .tag {
  right: calc(50% + var(--hcw) * 1.45 + 4px);
}
:root.vp-compact .table9.short.mini .pod.me .tag,
:root.vp-compact .table9.short.mini .pod.me:has(.mini.big) .tag {
  bottom: calc(100% + var(--hcw) * 0.5);
  left: 50%;
  right: auto;
  max-width: 150px;
  transform: translateX(-50%);
}
