/* «Фразы питомца» (0.51, club-petsay.js): a pet's speech bubble in the pets' look — cream paper, the pets' ink outline, a
   tail to the pet — on a layer of its own over the world's canvas (.pw-c: over the header on a computer, under the sticky
   header on a phone, under an open «⋯»); it takes no taps. The shop's card: one's pet on a stage saying its pack's lines,
   the six packs; the tile; the profile's word. */
.psay-layer { position: absolute; left: 0; top: 0; z-index: 101; width: 100%; height: 100%; pointer-events: none; }
.pw.pw-low .psay-layer { z-index: 99; }
.psay { position: absolute; left: 0; top: 0; pointer-events: none; }
.psay-b { --psay-ink: #2b1a10; --psay-paper: #fff6e4; position: relative; padding: 3px 10px 4px; border: 2px solid var(--psay-ink); border-radius: 13px; background: var(--psay-paper); color: var(--psay-ink); font-size: 12.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; box-shadow: inset -2px -2px 0 rgba(43, 26, 16, .1), 0 3px 8px rgba(0, 0, 0, .38); transform-origin: 8px 100%; animation: psay-in .28s cubic-bezier(.2, 1.35, .45, 1) both; }
.psay-b.psay-l { transform-origin: calc(100% - 8px) 100%; }
.psay-tx { position: relative; z-index: 1; }
/* the tail: from the bubble's lower corner on the pet's side down towards its mouth (drawn over the border it opens) */
.psay-tl { position: absolute; top: calc(100% - 2.5px); left: -4px; width: 18px; height: 13px; overflow: visible; }
.psay-l .psay-tl { left: auto; right: -4px; transform: scaleX(-1); }
/* 0.69 (n66 G3): no free place beside its head — under its feet on the stage's edge, the tail up to it (its tip at --psay-tx) */
.psay-b.psay-u { transform-origin: var(--psay-tx, 50%) 0; }
.psay-u .psay-tl { top: auto; bottom: calc(100% - 2.5px); left: calc(var(--psay-tx, 50%) - 3px); right: auto; transform: scaleY(-1); }
.psay-tf { fill: var(--psay-paper); }
.psay-ts { fill: none; stroke: var(--psay-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.psay.psay-out .psay-b { animation: psay-out .2s ease-in both; }
.psay-b.psay-still { animation: none; }
@keyframes psay-in { from { opacity: 0; transform: translateY(4px) scale(.84); } to { opacity: 1; transform: none; } }
@keyframes psay-out { to { opacity: 0; transform: translateY(-3px) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .psay-b, .psay.psay-out .psay-b { animation: none; }
  .psay.psay-out { opacity: 0; }
}

/* the shop's card */
.psay-stage { position: relative; height: 150px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(120% 90% at 28% 100%, rgba(183, 153, 255, .12), transparent 70%); overflow: hidden; }
.psay-stage-c { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.psay-sl { position: absolute; inset: 0; pointer-events: none; }
.psay-next { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(14, 17, 23, .62); color: var(--text); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.psay-next:hover { background: var(--line); }
.psay-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 6px; margin-top: 10px; }
.psay-pk { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; min-width: 0; min-height: 54px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.psay-pk-i { grid-row: 1 / 3; font-size: 22px; line-height: 1; text-align: center; }
.psay-pk-n { min-width: 0; padding-right: 44px; font-size: 13px; font-weight: 700; line-height: 1.2; }
.psay-pk-s { min-width: 0; color: var(--muted); font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psay-pk-st { position: absolute; top: 7px; right: 9px; color: var(--accent); font-size: 11px; font-weight: 700; line-height: 1.2; }
.psay-pk.on { border-color: var(--accent); background: rgba(229, 160, 13, .12); }
/* 0.67 «Гардероб»: one's own packs, the one spoken, «Снять», the stage's caption (which pack is heard) */
.psay-pk-n { padding-right: 0; }
.psay-pk-st { position: static; grid-column: 2; justify-self: start; margin-top: 3px; } /* in the flow: «Болельщик» + «Надето» do not fit one line on a phone */
.psay-pk-st .shop-opt-k { margin-top: 0; }
.psay-pk { align-content: center; } /* a row made taller by a neighbour's mark: the name and its sample stay together */
.psay-pk.own:not(.now) { border-color: rgba(62, 207, 122, .45); }
.psay-pk.now { border-color: #3ecf7a; }
.psay-packs > .shop-wd-off { flex-direction: row; gap: 8px; min-width: 0; min-height: 54px; padding: 7px 10px; }
.psay-stage-k { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 72px); padding: 3px 9px; border-radius: 999px; background: rgba(14, 17, 23, .62); color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.psay-pk:hover:not(:disabled) { background: var(--line); }
.psay-pk:disabled { cursor: default; opacity: .7; }
.psay-pk:focus-visible, .psay-next:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.psay-hint { margin-top: 10px; }
.psay-item .club-buy { margin-top: 10px; }

/* the tile: one's pet and a word of its pack */
.psay-tile { position: relative; display: block; width: 120px; height: 62px; }
.psay-tile > .cpet { position: absolute; left: 4px; bottom: 0; }
.psay-tb { position: absolute; left: 50px; top: 4px; max-width: 70px; padding: 1px 6px 2px; border: 1.5px solid #2b1a10; border-radius: 9px; background: #fff6e4; color: #2b1a10; font-size: 10.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psay-tb::after { content: ''; position: absolute; left: -4.5px; bottom: 3px; width: 6px; height: 6px; border-left: 1.5px solid #2b1a10; border-bottom: 1.5px solid #2b1a10; background: #fff6e4; transform: rotate(45deg); }

/* the profile's pet line: its pack */
.psay-ppl { color: var(--muted); }

@media (max-width: 760px) {
  .psay-layer { z-index: 99; } /* under the sticky header, over the world's canvas (.pw-c: 99, before it) */
  .psay-b { padding: 2px 8px 3px; border-radius: 12px; font-size: 12px; }
  .psay-stage { height: 136px; }
  .psay-packs { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
}
