/* «Карточка питомца» 0.68 (n139j, public/club-pet-popup.js): a tap on any pet → one popup with all of it and every action.
   The card's own blocks inside (.cpp-*, .cpg, .cpd, .pdr-taste) keep their styles from club-pet-profile.css & co. */
.ppop { position: fixed; inset: 0; z-index: 2600; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s ease; }
.ppop.on { opacity: 1; }
.ppop-sheet { position: relative; width: 100%; max-width: 440px; max-height: 86vh; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding: 18px 18px 16px; border-radius: 18px; border: 1px solid var(--line, rgba(255, 255, 255, .12));
  background: linear-gradient(180deg, var(--panel-2, #23232e), var(--panel, #1b1b24)); box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  transform: translateY(10px) scale(.98); transition: transform .18s ease; outline: none; }
.ppop.on .ppop-sheet { transform: none; }
.ppop-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line, rgba(255, 255, 255, .12));
  background: rgba(0, 0, 0, .35); color: var(--muted, #aab); font-size: 20px; line-height: 1; cursor: pointer; }
.ppop-x:focus-visible, .ppop-a:focus-visible, .ppop-p:focus-visible, .ppop-see:focus-visible, .ppop-walk:focus-visible { outline: 2px solid var(--accent, #ffd23f); outline-offset: 2px; }
.ppop-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; margin-bottom: 12px; }
.ppop-port.cpp-port { width: 84px; height: 84px; position: relative; }
.ppop-port.cpp-port > .cpet { width: 84px; height: 84px; }
.ppop-id { min-width: 0; }
.ppop-name { font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.ppop-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13px; color: var(--muted, #aab); }
.ppop-lv { font-weight: 700; color: var(--accent, #ffd23f); }
.ppop-where[data-resting="1"] { color: #c9b48a; }
.ppop-heart { position: absolute; bottom: 55%; font-size: 15px; pointer-events: none; animation: ppop-heart 1.3s ease-out forwards; }
@keyframes ppop-heart { from { opacity: 0; transform: translateY(6px) scale(.7); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-34px) scale(1.1); } }

.ppop-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 4px 0 8px; }
.ppop-a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; min-height: 44px;
  padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line, rgba(255, 255, 255, .12)); background: rgba(255, 255, 255, .05);
  color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ppop-a:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.ppop-a[aria-expanded="true"] { border-color: var(--accent, #ffd23f); }
.ppop-a:disabled { opacity: .55; cursor: default; }
.ppop-a-i { grid-row: 1 / span 2; font-size: 18px; }
.ppop-a-t { font-weight: 600; line-height: 1.2; }
.ppop-a-n { grid-column: 2; font-size: 11px; color: var(--muted, #aab); line-height: 1.2; }
.ppop-a-main { grid-column: 1 / -1; justify-content: center; }
.ppop-panel { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; margin: 0 0 8px; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.ppop-panel[hidden] { display: none; }
.ppop-p { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px; border-radius: 10px;
  border: 1px solid var(--line, rgba(255, 255, 255, .12)); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.ppop-p small { color: var(--muted, #aab); }
.ppop-p .trk-ico { width: 24px; height: 24px; }
.ppop-fav { border-color: #e8b64c; }
.ppop-fav-t { font-size: 11px; color: #e8b64c; }
.ppop-pet { cursor: default; padding: 4px; gap: 4px; width: 100%; justify-content: space-between; }
.ppop-see, .ppop-walk { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.ppop-see .cpet { width: 34px; height: 34px; }
.ppop-walk { padding: 4px 10px; background: rgba(255, 255, 255, .1); font-size: 12px; }
.ppop-dm { display: flex; align-items: center; gap: 6px; margin: 2px 0 10px; font-size: 13px; color: var(--muted, #aab); cursor: pointer; }
.ppop-dream { margin: 0 0 8px; font-size: 13px; color: var(--muted, #aab); }
.ppop-dream[hidden] { display: none; }
.ppop-dream-in { display: inline-flex; gap: 6px; vertical-align: middle; }
.ppop-dream-it img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
/* the card's blocks inside: no card frame of their own */
.ppop-box.cpet-card { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.ppop-box .cpd-all { margin-top: 6px; border: 0; background: none; color: var(--accent, #ffd23f); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 0; }
.ppop-box .cpp-rel[data-u] { cursor: pointer; }

/* a phone: a bottom sheet */
@media (max-width: 560px) {
  .ppop { align-items: flex-end; padding: 0; }
  .ppop-sheet { max-width: none; max-height: 88vh; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 16px 14px calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
  .ppop-sheet::before { content: ''; display: block; width: 40px; height: 4px; margin: -6px auto 10px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
  .ppop-acts { grid-template-columns: repeat(2, 1fr); }
  .ppop-port.cpp-port, .ppop-port.cpp-port > .cpet { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .ppop, .ppop-sheet { transition: none; }
  .ppop-heart { animation: none; opacity: 0; }
}

/* Secondary actions remain available without overwhelming the care screen. */
.ppop-group { grid-column:1/-1; border:1px solid var(--line); border-radius:12px; min-width:0; }
.ppop-group > summary { min-height:44px; box-sizing:border-box; padding:12px; font-size:13px; font-weight:600; cursor:pointer; }
.ppop-group > summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:10px; }
.ppop-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:0 8px 8px; }
.ppop-group .ppop-panel { margin:0 8px 8px; }
.ppop-group .ppop-dm { margin:0 10px 8px; min-height:44px; }
.ppop-see, .ppop-walk, .ppop-x { min-height:44px; }
.ppop-x { width:44px; }

.ppop-acts > .ppop-panel { grid-column:1/-1; }

.ppop-wait { color:var(--muted); font-size:12px; padding:6px 0; }
.ppop-wait[hidden] { display:none; }

/* 0.73.2 n148: what the profile's pet card said now lives here — its line (coat, medal, things, lines) and the DM hint */
.ppop-box > .cpet-ppl.ppop-ppl { margin: 0 0 2px; font-size: 13px; color: var(--muted, #aab); }
.ppop-box > .outfit-ppl { margin: 0 0 4px; }
.ppop-dm-hint { margin: -4px 10px 8px 34px; font-size: 11.5px; color: var(--muted, #aab); opacity: .85; }
