/* «Мир питомцев» (0.48, club-pet-world.js): the hall's pets, big (≈ 62 px; 46 on a phone), in a lane between the header and the stage —
   standing on the stage's top edge under their owners' faces. One canvas (.pw-c, drawn by public/pets/pet-engine.js
   world()) reaches up over the header (a jump, a heart) and never takes a tap; the pets' own buttons (.pw-hit) do (a
   pat), nothing else in the lane does. On a computer the canvas is over the header (under an open «⋯»), on a phone
   under the sticky header (the lane scrolls away with the page). The chips' small pets hide while the world shows. */
.pw { display: none; position: relative; flex: none; height: var(--pw-lane, 34px); pointer-events: none; } /* the pets (≈ 62 px) rise over the header's lower band, clear of the faces */
body.pw-big .pw { display: block; }
.pw-c { position: absolute; left: 0; top: 0; z-index: 101; width: 100%; height: 100%; pointer-events: none; }
.pw.pw-low .pw-c { z-index: 99; }
.pw-ui { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.pw-hit { position: absolute; left: 0; top: 0; width: 40px; height: 44px; padding: 0; border: 0; border-radius: 45% 45% 40% 40%; background: transparent; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.pw-hit[hidden] { display: none; }
.pw-hit:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
/* 0.69 (n66 L2): the chip of the owner whose pet is under the pointer (or the keyboard's focus) */
#participants .person.pw-own { border-color: var(--accent-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-2) 45%, transparent); }
#participants .person.pw-own .av { transform: scale(1.06); }
.pw.pw-calm .pw-hit { pointer-events: none; }
.pw-say { position: absolute; max-width: min(240px, 60vw); padding: 3px 9px; border-radius: 999px; background: rgba(14, 17, 23, .92); border: 1px solid var(--line); color: var(--text); font-size: 12px; line-height: 1.35; white-space: nowrap; pointer-events: none; }
.pw-say-t { display: block; overflow: hidden; text-overflow: ellipsis; }
/* 0.69 (n66 G3): no free place beside its head — under its feet on the stage's edge, a little tail up to it */
.pw-say.pw-say-u { background: rgba(14, 17, 23, .96); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.pw-say.pw-say-u::before { content: ""; position: absolute; left: var(--pw-tx, 50%); top: -5px; width: 8px; height: 8px; margin-left: -4px; background: inherit; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); border-top-left-radius: 2px; } /* 0.51: placed by say() over the head, no transform */
.pw-toss { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; } /* 0.69 (n66 I1): a treat tossed from the giver's pet to the eater */
.pw-toss img { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.pw-says { position: absolute; left: 0; top: 0; z-index: 102; width: 100%; height: 100%; pointer-events: none; overflow: visible; } /* 0.51: the bubbles over the pets' canvas */
.pw.pw-low .pw-says { z-index: 99; }
body.pw-big #participants .cpet, body.pw-hide #participants .cpet { display: none; }
@media (max-width: 760px) {
  .pw { --pw-lane: 44px; } /* the pets (≈ 46 px) stand under the sticky header, their heads clear of it */
  .pw-c { z-index: 99; } /* under the sticky header */
  .pw-says { z-index: 100; } /* over the pets, still under the sticky header's menus */
}

/* «⋯»: «Питомцы в зале: большие · маленькие · скрыть» — three choices in a row, the menu stays open */
.pw-size[hidden] { display: none; }
.pw-size-k { padding: 4px 12px 2px; color: var(--muted); font-size: 12px; }
.pw-size-row { display: flex; gap: 4px; padding: 2px 8px 6px; }
.pw-size-row .mi.pw-seg { flex: 1 1 0; justify-content: center; min-width: 0; padding: 6px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; text-align: center; }
.pw-size-row .mi.pw-seg.on { border-color: var(--accent); color: var(--accent); }

/* «Так в зале» in the shop's pet card: the chip, and under it a small world where one's pet meets a friend */
.cpet-pv.pw-has-mini { flex-wrap: wrap; }
.cpet-pv.pw-has-mini .cpet-chip > .cpet { display: none; }
.pw-mini { display: block; flex: 1 0 100%; height: 92px; border-bottom: 1px solid var(--line); }
.pw-mini-c { display: block; width: min(260px, 100%); height: 100%; pointer-events: none; }
