/* Fablepaws Pets / Collection (handoff 2026-10-17): wood-and-gold panels over the forest background. */
.pets2 { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; isolation: isolate; }
.p2-bg { position: absolute; inset: 0; z-index: -2; background: #1d2a14 center 35% / cover no-repeat; }
.p2-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 20, 28, .55), rgba(8, 20, 28, .1) 22%, rgba(10, 16, 8, .35) 55%, rgba(8, 12, 6, .9)); }
.p2-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 max(12px, env(safe-area-inset-right)) 14px max(12px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.p2-scroll::-webkit-scrollbar { display: none; }
.p2-scroll > * { flex-shrink: 0; }

/* title plaque with a paw medallion */
.pt-plaque { position: relative; align-self: center; display: flex; flex-direction: column; align-items: center; margin-top: 18px; padding: 10px 34px 8px; border-radius: 14px;
  background: linear-gradient(180deg, #7a4c22, #4a2b12); border: 3px solid #c58b2c; box-shadow: inset 0 2px 0 rgba(255, 220, 160, .3), 0 5px 12px rgba(0, 0, 0, .55); }
.pt-plaque h1 { font: 28px/1 'Lilita One', var(--display); color: var(--gold1); text-shadow: 0 2px 0 #3a1a06, 0 0 8px rgba(0, 0, 0, .4); letter-spacing: .02em; }
.pt-plaque .paw { position: absolute; top: -18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #3a1a06;
  background: radial-gradient(circle at 50% 35%, #ffe7a3, #f5b335 60%, #b86b10); border: 2px solid #5c3208; }
.c2-count { margin-top: 4px; padding: 2px 12px; border-radius: 10px; font: 14px/1.2 'Lilita One', var(--display); color: #fff3d6; background: rgba(0, 0, 0, .45); border: 1px solid #8a5a2e; }

/* Pets: showcase */
.p2-show { position: relative; display: flex; align-items: flex-end; justify-content: center; height: min(36dvh, 330px); }
.p2-art { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.p2-full { height: 100%; width: auto; max-width: 78vw; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .55)); }
.p2-full.ph { display: grid; place-items: end center; font-size: min(26dvh, 220px); line-height: 1; }
.p2-arrow { position: absolute; top: 45%; translate: 0 -50%; width: 46px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; color: #3a1a06;
  background: linear-gradient(180deg, var(--gold1), var(--gold4)); border: 2px solid #5c3208; box-shadow: 0 4px 8px rgba(0, 0, 0, .5); }
.p2-arrow .i { stroke-width: 3; }
.p2-arrow.prev { left: 0; } .p2-arrow.next { right: 0; }
.p2-arrow:disabled { opacity: .35; filter: grayscale(.7); }
.p2-name { align-self: center; margin-top: -6px; padding: 6px 26px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, #7a4c22, #4a2b12); border: 2px solid #c58b2c; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.p2-name h2 { font: 24px/1.05 'Lilita One', var(--display); color: #fff3d6; text-shadow: 0 2px 0 #3a1a06; }
.p2-name small { font-size: 12px; color: #f6dfb0; }

/* Pets: stats, tabs, skills (one parchment-and-wood panel) */
.p2-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(70, 42, 20, .95), rgba(40, 24, 10, .96)); border: 2px solid #c58b2c; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.p2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.p2-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid #6b4a20; }
.p2-stat .i { font-size: 18px; } .p2-stat.hp .i { color: #ff6b6b; } .p2-stat.attack .i { color: #ffa940; } .p2-stat.speed .i { color: #69c0ff; } .p2-stat.energy .i { color: #3ec4ff; }
.p2-stat b { font: 17px/1 'Lilita One', var(--display); color: #fff3d6; }
.p2-stat small { font-size: 10px; color: var(--t2); text-align: center; }
.p2-tabs { display: flex; gap: 6px; }
.p2-tabs span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 11px; font: 16px/1 'Lilita One', var(--display); }
.p2-tabs .on { color: #3a1a06; background: linear-gradient(180deg, var(--gold1), var(--gold4)); border: 2px solid #5c3208; }
.p2-skills { display: flex; gap: 8px; }
.p2-sk { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #5a3a1a, #2a170a); border: 2px solid #6b4a20; }
.p2-sk .ab-art { width: 48px; height: 48px; object-fit: contain; }
.p2-sk.on { border-color: var(--gold1); box-shadow: 0 0 0 2px rgba(255, 209, 102, .4), 0 0 14px rgba(255, 209, 102, .5); }
.ps-detail { padding: 10px 12px; border-radius: 14px; color: #3a2410; background: linear-gradient(180deg, #f8e7c4, #e2c08a); border: 2px solid #8a5a2e; }
.psd-head { display: flex; align-items: center; gap: 8px; }
.psd-head .ab-art { width: 30px; height: 30px; object-fit: contain; }
.psd-head b { font: 18px/1.1 'Lilita One', var(--display); color: #4a2408; }
.ps-detail p { margin: 6px 0 8px; font-size: 13px; line-height: 1.35; }
.psd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.psd-tags span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 9px; font-size: 11px; font-weight: 700; background: rgba(74, 36, 8, .12); color: #4a2408; }
.psd-tags .i { font-size: 12px; }
.psd-tags .mode.adv { background: #2f7d4f; color: #fff; } .psd-tags .mode.duel { background: #6b3fa0; color: #fff; }
.p2-note { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 11px; color: var(--t3); text-align: center; }

/* Collection: filters and grid */
.c2-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.c2-filters::-webkit-scrollbar { display: none; }
.c2-f { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 64px; height: 42px; padding: 0 10px; border-radius: 12px;
  font: 14px/1 'Lilita One', var(--display); color: #f6dfb0; background: linear-gradient(180deg, #6b4423, #3d2412); border: 2px solid #8a5a2e; }
.c2-f .i { font-size: 16px; }
.c2-f.ico { flex: 0 0 46px; min-width: 46px; padding: 0; }
.c2-f.on { color: #3a1a06; background: linear-gradient(180deg, var(--gold1), var(--gold4)); border-color: #5c3208; }
.c2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.c2-card { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 6px 8px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, #7a4c22, #3d2412); border: 2px solid #c58b2c; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.c2-card:active { transform: scale(.97); }
.c2-pic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #3b5a66, #0d1d22); }
.c2-pic.raccoon { background: radial-gradient(circle at 50% 38%, #f6c35c 0%, #c4572a 48%, #3b140a 100%); }
.c2-pic.frog { background: radial-gradient(circle at 50% 38%, #b7eb8f 0%, #3f7d2a 50%, #10260a 100%); }
.c2-pic.owl { background: radial-gradient(circle at 50% 38%, #91caff 0%, #2f54eb 50%, #0b1a4a 100%); }
.c2-img { width: 100%; height: 100%; object-fit: cover; }
.c2-img.ph { display: grid; place-items: center; font-size: 56px; line-height: 1; }
.c2-card b { font: 15px/1.1 'Lilita One', var(--display); color: #fff3d6; }
.c2-card small { font-size: 11px; color: #f6dfb0; }
.c2-card.sel { border-color: var(--gold1); box-shadow: 0 0 0 2px rgba(255, 209, 102, .45), 0 0 16px rgba(255, 209, 102, .5); }
/* locked: a dark silhouette with a lock */
.c2-card.locked { background: linear-gradient(180deg, #2b3640, #141b21); border-color: #4a5a66; }
.c2-card.locked .c2-pic { background: radial-gradient(circle at 50% 40%, #2a3a48, #0b1218); }
.c2-card.locked .c2-img { filter: brightness(0) saturate(0) opacity(.75); }
.c2-card.locked b { color: #c7d2da; } .c2-card.locked small { color: #8aa0ae; }
.c2-lock { position: absolute; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; color: #e8edf0; background: rgba(0, 0, 0, .55); border: 1px solid #8aa0ae; }
.c2-empty { grid-column: 1 / -1; text-align: center; color: var(--t2); padding: 20px 0; }

@media (max-height: 700px) {
  .pt-plaque { margin-top: 14px; padding: 7px 28px 6px; } .pt-plaque h1 { font-size: 24px; }
  .p2-show { height: min(30dvh, 230px); }
  .p2-sk { width: 56px; height: 56px; } .p2-sk .ab-art { width: 42px; height: 42px; }
}

/* ---------------------------------------------------------------- Pet Details (handoff 2026-10-19)
   Teal panels with gold trim, cream text, green primary action. Built in CSS (no UI art): the reference sheet is a guide only. */
.pd { --pd-panel: linear-gradient(180deg, rgba(20, 62, 66, .96), rgba(9, 36, 40, .97)); --pd-gold: #d8a840; --pd-cream: #fff3d6; }
.pd .p2-scroll { gap: 8px; }
.pd-name { position: relative; align-self: center; display: flex; flex-direction: column; align-items: center; margin-top: 16px; padding: 8px 40px 18px; border-radius: 16px;
  background: var(--pd-panel); border: 3px solid var(--pd-gold); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), 0 5px 12px rgba(0, 0, 0, .55); }
.pd-name h1 { font: 28px/1 'Lilita One', var(--display); color: var(--pd-cream); text-shadow: 0 2px 0 #062022; letter-spacing: .01em; }
.pd-name .paw { position: absolute; top: -17px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: #3a1a06;
  background: radial-gradient(circle at 50% 35%, #ffe7a3, #f5b335 60%, #b86b10); border: 2px solid #5c3208; }
.pd-rarity { position: absolute; bottom: -14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 16px; border-radius: 10px; white-space: nowrap;
  font: 16px/1 'Lilita One', var(--display); color: #ffe7c0; border: 2px solid var(--pd-gold); box-shadow: 0 3px 6px rgba(0, 0, 0, .45); }
.pd-rarity .i { font-size: 14px; color: #ffd76a; }
.pd-rarity.rare { background: linear-gradient(180deg, #d0352b, #8e1712); }
.pd-rarity.epic { background: linear-gradient(180deg, #9a4fd8, #5a1f94); }
.pd-rarity.legendary { background: linear-gradient(180deg, #f39a22, #b45a08); }

/* showcase: the pet on a podium, the stats panel on the right */
.pd-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(128px, 40%); align-items: end; grid-template-rows: minmax(0, 1fr); gap: 6px; margin-top: 10px; height: min(34dvh, 300px); }
.pd-stage { position: relative; align-self: stretch; min-height: 0; overflow: visible; display: flex; align-items: flex-end; justify-content: center; }
.pd-podium { position: absolute; left: 50%; translate: -50% 0; bottom: 0; width: 116%; pointer-events: none; }
.pd-podium.art { height: auto; }
.pd-podium.css { height: 22%; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #b9a98a, #7d6e57 55%, #4a3f30 75%, rgba(40, 30, 20, 0) 76%);
  box-shadow: 0 6px 0 -1px #5a4c39, 0 12px 14px rgba(0, 0, 0, .45); }
.pd-podium.css::after { content: ""; position: absolute; left: 50%; top: 18%; translate: -50% 0; width: 22%; aspect-ratio: 1.6; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #e3c37a, #a8812f 70%); opacity: .8; }
.pd-full { position: relative; height: 82%; width: auto; max-width: 100%; margin-bottom: 19%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); }
.pd-full.ph { display: grid; place-items: end center; font-size: min(24dvh, 200px); line-height: 1; }
.pd-arrow { position: absolute; top: 45%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: #ffd76a;
  background: var(--pd-panel); border: 2px solid var(--pd-gold); box-shadow: 0 3px 8px rgba(0, 0, 0, .5); }
.pd-arrow.prev { left: 0; } .pd-arrow.next { right: 0; }

.pd-stats { display: flex; flex-direction: column; gap: 6px; align-self: center; padding: 10px; border-radius: 16px; background: var(--pd-panel);
  border: 2px solid var(--pd-gold); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); color: var(--pd-cream); }
.pd-role { align-self: center; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 10px; font: 15px/1 'Lilita One', var(--display);
  color: #ffe7c0; background: linear-gradient(180deg, #a3301f, #6b150c); border: 2px solid var(--pd-gold); }
.pd-role .i { font-size: 15px; color: #ffd76a; }
.pd-lv { font: 24px/1 'Lilita One', var(--display); color: var(--pd-cream); }
.pd-xp { position: relative; height: 20px; border-radius: 10px; background: #061a1c; border: 1px solid #3c6c6c; display: grid; place-items: center; overflow: hidden; }
.pd-xp i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(180deg, #7be36b, #2f9a3a); }
.pd-rule { height: 1px; margin: 2px 0; background: linear-gradient(90deg, transparent, var(--pd-gold), transparent); opacity: .7; }
.pd-stat { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; font-size: 14px; color: #d9efe9; }
.pd-stat .i { font-size: 19px; } .pd-stat.hp .i { color: #ff5b5b; } .pd-stat.attack .i { color: #ffb84a; } .pd-stat.defense .i { color: #58a6ff; }
.pd-stat b { font: 18px/1 'Lilita One', var(--display); color: var(--pd-cream); }
.pd-soon { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #9fc4c0; }
.pd-soon .i { font-size: 11px; }

/* tabs and the tab panel */
.pd-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pd-tab { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 14px 14px 8px 8px; font: 17px/1 'Lilita One', var(--display);
  color: #d9efe9; background: var(--pd-panel); border: 2px solid #3f7472; }
.pd-tab .i { font-size: 17px; }
.pd-tab.on { color: #4a2408; background: linear-gradient(180deg, #ffe58a, #f2b630); border-color: #9a6416; box-shadow: 0 0 10px rgba(255, 209, 102, .45); }
.pd-tab.on .i { color: #b8460e; }
.pd-panel { padding: 10px; border-radius: 16px; background: var(--pd-panel); border: 2px solid var(--pd-gold); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); color: var(--pd-cream); }

.pd-skills { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.pd-active, .pd-passive { border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid #3f7472; }
.pd-active { display: flex; gap: 8px; padding: 8px; }
.pd-passive { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; text-align: center; }
.pd-ic { position: relative; flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; border: 2px solid var(--pd-gold);
  background: radial-gradient(circle at 50% 40%, #2a5f86, #0c2433); }
.pd-ic.big { width: 64px; height: 64px; background: radial-gradient(circle at 50% 40%, #b8401c, #4a0f06); }
.pd-ic .ab-art { width: 86%; height: 86%; object-fit: contain; }
.pd-svg { font-size: 26px; color: #8ee3ff; }
.pd-passive:nth-child(3) .pd-ic { background: radial-gradient(circle at 50% 40%, #b8821c, #4a2c06); } .pd-passive:nth-child(3) .pd-svg { color: #ffd76a; }
.pd-lv1 { position: absolute; bottom: -9px; left: 50%; translate: -50% 0; padding: 1px 6px; border-radius: 7px; font-size: 10px; font-weight: 800; white-space: nowrap; color: var(--pd-cream); background: #0b2629; border: 1px solid var(--pd-gold); }
.pd-txt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.pd-skills b { font: 15px/1.05 'Lilita One', var(--display); color: var(--pd-cream); }
.pd-tag { padding: 1px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.pd-tag.active { color: #ffe7a3; background: #5a3a12; border: 1px solid #a8812f; }
.pd-tag.passive { color: #cfe7ff; background: #1d3f63; border: 1px solid #3f6f9e; }
.pd-skills p { margin: 0; font-size: 12px; line-height: 1.3; color: #cfe4df; }
.pd-cost { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #8ee3ff; }

.pd-info { display: grid; gap: 2px; margin: 0; }
.pd-info div { display: grid; grid-template-columns: 20px minmax(84px, auto) 1fr; align-items: center; gap: 6px; padding: 3px 2px; border-bottom: 1px solid rgba(63, 116, 114, .5); font-size: 12.5px; }
.pd-info div:last-child { border-bottom: 0; }
.pd-info .i { font-size: 16px; color: #ffd76a; }
.pd-info dt { color: #9fc4c0; } .pd-info dd { margin: 0; color: var(--pd-cream); font-weight: 700; text-align: right; }
.pd-story p { margin: 0; padding: 2px 4px; font-size: 14px; line-height: 1.45; color: #e6f2ee; }
.pd-story .pd-none { color: #9fc4c0; text-align: center; }

/* Upgrade row: the button is disabled until upgrades exist */
.pd-up { display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.pd-upgrade { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 16px;
  font: 22px/1 'Lilita One', var(--display); color: #fff; text-shadow: 0 2px 0 #1d5a12; background: linear-gradient(180deg, #7fdc4f, #2f9a2a); border: 3px solid #d8a840;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 5px 12px rgba(0, 0, 0, .5); }
.pd-upgrade:disabled { opacity: 1; filter: saturate(.7) brightness(.92); cursor: default; }
.pd-upgrade .up { display: grid; place-items: center; font-size: 22px; rotate: -90deg; color: #d9ffb8; }
.pd-upgrade .up .i { stroke-width: 3.5; }
.pd-price { display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-left: -12px; padding: 0 14px 0 22px; border-radius: 0 12px 12px 0; background: var(--pd-panel); border: 2px solid var(--pd-gold); color: #ffd76a; }
.pd-price > .i { font-size: 20px; }

@media (max-width: 370px) {
  .pd-skills { grid-template-columns: 1fr 1fr; } .pd-active { grid-column: 1 / -1; }
  .pd-show { grid-template-columns: minmax(0, 1fr) 132px; }
}
@media (max-height: 700px) {
  .pd-name { margin-top: 14px; padding: 6px 32px 16px; } .pd-name h1 { font-size: 24px; }
  .pd-show { height: min(36dvh, 250px); }
}
/* a delivered skill icon (assets/art/skill-*.png) is a round medallion with its own gold frame: no second frame around it */
.pd-skills .pd-ic:has(.own) { border: 0; background: none; }
.pd-ic .ab-art.own { width: 100%; height: 100%; }
