/* «Кресло в зале» (0.50, club-seat.js): an element of its own (.seat) lies BEHIND a face, the face's box grown by the
   place's margin; its drawing (the face = 0…100) is the chair around it. Taps go through it. No animation at all: a
   still look — during a film, with reduced motion or not. Nothing here takes room: the strip's layout and scroll stay
   as they are without seats. */
.seat { position: absolute; display: block; pointer-events: none; }
.seat-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }

/* The participants strip (clubShop.personAttr / nameAfter — and the shop's chips built with them, pills like it): a
   chip with a seat is its own stacking context, so the seat (z −1) lies over the chip's background and under all the
   rest of it — the face and its frame, the speaking ring, the name, the badge, the accessory, the pet, the sync dot.
   On a computer the chip's 22-px face sits 3 px in (style.css .person): the seat takes the chip's left end, 30 × 30,
   the chair round the face — its top on the chip's top, its arms the chip's height. */
.person[data-seat], .club-chip[data-seat] { isolation: isolate; }
.club-chip[data-seat] { position: relative; } /* (.person is already) */
.person > .seat, .club-chip > .seat { z-index: -1; }
.person > .seat-p, .club-chip > .seat-p { left: -1px; top: calc(50% - 15px); width: 30px; height: 30px; }
.person > .seat-m, .club-chip > .seat-m { display: none; }
/* On a phone the chip is the face (38 px, a 2-px edge, stacked 10 px over the next): the seat is the chip's box and
   shows only outside its circle — the back's top and the arms in the four corners, between the neighbours like a
   cinema's row; where the next face tucks under, its circle stays clear (the next face reads in front of the seat). */
@media (max-width: 760px) {
  .person > .seat-p { display: none; }
  .person > .seat-m {
    display: block; left: -2px; top: -2px; width: calc(100% + 4px); height: calc(100% + 4px);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 19px, #000 19.6px);
    mask-image: radial-gradient(circle at 50% 50%, transparent 19px, #000 19.6px);
  }
  .person:not(:last-child) > .seat-m {
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 19px, #000 19.6px), radial-gradient(circle at 47px 19px, transparent 19px, #000 19.6px);
    -webkit-mask-composite: source-in;
    mask-image: radial-gradient(circle at 50% 50%, transparent 19px, #000 19.6px), radial-gradient(circle at 47px 19px, transparent 19px, #000 19.6px);
    mask-composite: intersect;
  }
}

/* The mini-profile: behind its 56-px face (the first thing in its head), 12 px round it — clear of the name. */
.pp-head:has(> .seat) { position: relative; }
.pp-head > .seat-pp { left: -12px; top: calc(50% - 40px); width: 80px; height: 80px; }

/* The shop: one's own face in each seat (the options), how the hall sees one (the chip), the tile's picture. The box
   is the face's; the seat lies behind it, the face over it. */
.seat-box { position: relative; display: inline-block; flex: none; width: var(--fs); height: var(--fs); vertical-align: middle; }
.seat-box > .club-face { display: block; margin: 0; }
.seat-box > .seat-me { width: var(--fs); height: var(--fs); }
.seat-box-o > .seat { left: -9px; top: -9px; width: calc(100% + 18px); height: calc(100% + 18px); }
.seat-box-c > .seat { left: -4px; top: -4px; width: calc(100% + 8px); height: calc(100% + 8px); }
.seat-box-t > .seat { left: -8px; top: -8px; width: calc(100% + 16px); height: calc(100% + 16px); }
.seat-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.seat-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 104px; padding: 18px 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.seat-opt:hover:not(:disabled) { background: var(--line); }
.seat-opt.on { border-color: var(--accent); background: rgba(229, 160, 13, .12); }
.seat-opt:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.seat-opt:disabled { cursor: default; }
.seat-opt .club-face[data-club-frame] { border-width: 3px; }
.seat-opt-n { line-height: 1.2; text-align: center; }
.seat-opt-now { position: absolute; top: 4px; right: 6px; color: var(--ok); font-size: 10.5px; font-weight: 700; }
.seat-ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-style: normal; font-weight: 700; font-size: calc(var(--fs, 20px) * .36); }
.seat-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 2px 10px; color: var(--muted); font-size: 12.5px; }
.seat-chip { position: relative; isolation: isolate; padding-top: 3px; padding-bottom: 3px; }
.club-tile-pv .seat-box { margin: 2px 0; }
@media (max-width: 380px) { .seat-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
