/* n73 sB «Домик питомца», «Стаж питомца», «Мячик на весь зал» (club-pet-home.js, club-pet-home-ball.js): the shop's
   cards — the pet between its things as in the hall, the tenure's three medals, the three spots, the things' chips; the
   ball's card; the ball's button at the end of the pets' lane. The hall's world draws the things, the medal and the
   ball on its own canvas (club-pet-world.js); only boxes of its own here. */
.phome-stage { display: flex; align-items: flex-end; justify-content: center; height: 108px; margin-top: 10px; padding: 0 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(120% 90% at 50% 100%, rgba(229, 160, 13, 0.1), transparent 70%); overflow: hidden; }
.phome-sc { display: inline-flex; align-items: flex-end; justify-content: center; gap: 4px; max-width: 100%; }
.phome-sc-t { display: block; flex: none; max-width: none; pointer-events: none; }
.phome-sc-p { display: block; flex: none; width: 64px; height: 64px; margin-bottom: -3px; }
.phome-sc-p > .cpet { display: block; width: 64px; height: 64px; }
.phome-tile { display: flex; align-items: flex-end; justify-content: center; width: 116px; height: 70px; padding-bottom: 6px; overflow: hidden; }
.phome-tile .phome-sc-p, .phome-tile .phome-sc-p > .cpet { width: 44px; height: 44px; }
.phome-tile .phome-sc { gap: 2px; }
.phome-ten { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.phome-ten-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; }
.phome-ten-h > span { color: var(--muted); font-size: 12px; }
.phome-mds { display: flex; gap: 14px; margin-top: 8px; }
.phome-md { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; color: var(--muted); font-size: 11px; opacity: 0.55; }
.phome-md.on { color: var(--text); opacity: 1; }
.phome-md > i { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--md-rim); background: radial-gradient(circle at 35% 30%, var(--md-hi) 0 18%, var(--md) 46%); box-shadow: 0 -7px 0 -3px #b5382f; filter: grayscale(0.85); }
.phome-md.on > i { filter: none; }
.phome-md1 { --md: #c9864a; --md-hi: #f0bd8a; --md-rim: #8a5425; }
.phome-md2 { --md: #c9d2dc; --md-hi: #ffffff; --md-rim: #7d8794; }
.phome-md3 { --md: #f3c53a; --md-hi: #fff3a8; --md-rim: #a8770f; }
.phome-md > b { font-weight: 600; }
.phome-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.phome-ten-n { margin-top: 8px; font-size: 12px; }
.phome-ten-how { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.phome-row-h { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.phome-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.phome-slot, .phome-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; min-height: 84px; padding: 6px 3px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.phome-slot { border-style: dashed; }
.phome-slot:hover:not(:disabled), .phome-chip:hover:not(:disabled) { background: var(--line); }
.phome-slot.on, .phome-chip.on { border-color: var(--accent); border-style: solid; background: rgba(229, 160, 13, 0.12); }
.phome-slot:disabled, .phome-chip:disabled { cursor: default; opacity: 0.7; }
.phome-slot:focus-visible, .phome-chip:focus-visible, .pball-throw:focus-visible, .pball-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.phome-slot-a, .phome-ic { display: flex; align-items: flex-end; justify-content: center; width: 56px; height: 38px; }
.phome-th { display: block; width: auto; height: auto; max-width: 56px; max-height: 38px; }
.phome-plus { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 6px; border: 2px dashed var(--muted); border-radius: 50%; color: var(--muted); font-style: normal; font-size: 16px; line-height: 1; opacity: 0.7; }
.phome-slot-n { color: var(--muted); font-size: 11px; line-height: 1.15; }
.phome-slot-w, .phome-nm { max-width: 100%; font-size: 12px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.phome-st { min-height: 13px; color: var(--muted); font-size: 11px; line-height: 1.15; }
.phome-chip.own .phome-st { color: var(--accent); }
.phome-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 6px; }
.phome-left { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.phome-hint { margin-top: 10px; }
.phome-item .club-buy, .pball-item .club-buy { margin-top: 8px; }
.phome-ppl { color: var(--muted); }
/* «Мячик на весь зал»: the card */
.pball-stage { display: flex; align-items: center; justify-content: center; gap: 14px; height: 84px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(120% 90% at 50% 100%, rgba(229, 160, 13, 0.1), transparent 70%); }
.pball-stage img { display: block; width: 44px; height: 44px; }
.pball-have { font-size: 14px; }
.pball-have b { font-size: 20px; }
.pball-note { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.pball-throw { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.pball-throw:hover:not(:disabled) { background: var(--line); }
.pball-throw:disabled { cursor: default; opacity: 0.6; }
.pball-tile { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 116px; height: 70px; padding-bottom: 8px; }
.pball-tile img { display: block; width: 30px; height: 30px; }
.pball-tile .cpet { display: block; width: 44px; height: 44px; }
/* the ball's button at the right end of the pets' lane (inside #pet-world .pw-ui: only while one holds a ball) */
.pball-btn { position: absolute; right: 8px; bottom: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; min-width: 44px; height: 32px; padding: 0 9px 0 6px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14, 17, 23, 0.72); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; pointer-events: auto; }
.pball-btn img { display: block; width: 20px; height: 20px; }
.pball-btn:hover:not(:disabled) { background: var(--line); }
.pball-btn:disabled { cursor: default; opacity: 0.55; }
.pball-btn[hidden] { display: none; }
@media (max-width: 760px) {
  .pball-btn { right: 4px; bottom: 2px; min-width: 44px; height: 44px; border-radius: 22px; }
  .phome-mds { gap: 8px; }
  .phome-stage { height: 100px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pball-btn.pball-go img { animation: pball-spin 0.7s ease-out; }
}
@keyframes pball-spin { from { transform: translateY(0) rotate(0deg); } 40% { transform: translateY(-9px) rotate(200deg); } to { transform: translateY(0) rotate(360deg); } }
