/* ARISAN — Halftone Table stage (index hero). See assets/halftone-table.js. */
.ix-ht { position: relative; width: 100%; max-width: 700px; margin: 0 auto; aspect-ratio: 1.12 / 1; max-height: calc(100vh - 290px); min-height: 320px; }
.ix-ht[hidden] { display: none !important; }
.ht-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.ht-canvas.is-drag { cursor: grabbing; }
.ht-layer { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s cubic-bezier(.22,1,.36,1); }
.ht-layer.is-on { opacity: 1; }
.ht-seat {
  position: absolute; left: 0; top: 0; pointer-events: auto; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--dusk); background: var(--paper-3); color: var(--ink); font: 600 13px/1 var(--f-display);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: border-color .3s, background .3s, color .3s, box-shadow .3s;
}
.ht-seat::after { content: ""; position: absolute; inset: -8px; } /* 46px hit area */
.ht-seat[data-st="turn"] { border-color: var(--clay); background: var(--clay); color: #fff; box-shadow: 0 0 0 5px rgba(196,80,47,.18); }
.ht-seat[data-st="paid"] { border-color: var(--pine); color: var(--pine); }
.ht-seat[data-st="def"] { border-color: #8a7f74; color: #8a7f74; text-decoration: line-through; }
.ht-pot {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 12px 9px; border-radius: 12px; background: rgba(31,26,21,.88); color: var(--paper);
  box-shadow: 0 10px 24px -14px rgba(31,26,21,.8); white-space: nowrap;
}
.ht-pot-r { font: 500 11px/1 var(--f-mono); opacity: .72; }
.ht-pot-v { font: 500 22px/1.05 var(--f-display); font-variant-numeric: tabular-nums; color: var(--brass-light); }
.ht-pot-t { font: 500 11px/1 var(--f-mono); opacity: .82; }
.ht-pot.is-urgent .ht-pot-t { color: #ff9a7a; opacity: 1; }
.ht-bubble {
  position: absolute; left: 0; top: 0; max-width: min(240px, 62%); width: max-content; padding: 8px 12px; border-radius: 12px 12px 12px 4px;
  background: #fff; color: var(--ink); font: 500 13px/1.35 var(--f-text); border: 1px solid var(--line);
  box-shadow: 0 10px 26px -14px rgba(31,26,21,.7);
  opacity: 0; translate: 0 6px; pointer-events: none; z-index: 5;
  transition: opacity .25s cubic-bezier(.22,1,.36,1), translate .35s cubic-bezier(.22,1,.36,1);
}
.ht-bubble.show { opacity: 1; translate: 0 0; }
.ht-bubble[data-side="r"] { border-radius: 4px 12px 12px 12px; }
.ht-bubble[data-side="l"] { border-radius: 12px 4px 12px 12px; }
.ht-lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ht-lead line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; }
.ht-lead circle { fill: var(--paper-3); stroke: var(--ink); stroke-width: 1.5; }
.ht-bubble.is-center { background: var(--ink); color: var(--paper); border-color: var(--ink); border-radius: 12px; }
/* with the dotted table on stage, the SVG plan hides its drawing but keeps status, controls and legend */
.is-under-ht .table-stage, .is-under-ht .tw-head { display: none !important; }
.rd-ht, .app-ht { margin: 0 auto 4px; max-width: 620px; }
@media (max-width: 760px) {
  .ix-ht { aspect-ratio: 1 / 1; max-height: none; min-height: 0; }
  .ht-seat { width: 28px; height: 28px; font-size: 12px; }
  .ht-pot-v { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .ht-layer, .ht-bubble { transition: none; } }
.ht-seat[data-st="empty"] { border-style: dashed; border-color: var(--line); color: var(--ink-2); }
.ht-seat.is-you { width: auto; padding: 0 9px; border-radius: 15px; font: 600 11px/1 var(--f-mono); outline: 2px solid var(--clay); outline-offset: 2px; }
