/* v22w B — wardrobe polish: colour labels, medals, 14-day reward ladder, human hero size (playroom + wardrobe) */

/* colour label on wardrobe tiles ("zielona", "złoty" …) */
.wd-item.has-col22 { position: relative; }
.wd-col22 {
  position: absolute; left: 50%; top: 5px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 10px);
  padding: 1px 7px 1px 4px; border-radius: 999px;
  font: 800 .66rem/1.35 'Baloo 2', system-ui, sans-serif; color: #5A2370; white-space: nowrap;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(90,35,112,.22), inset 0 0 0 1.5px rgba(185,144,220,.55);
  pointer-events: none;
}
.wd-col22 i { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 -2px 2px rgba(0,0,0,.18), 0 0 0 1.5px #fff; }
.wd-item.has-col22 .wd-item-art { margin-top: 14px; }

/* 14-day reward ladder (quest board) */
.qb22-week { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: .3rem; }
.qb22-day { min-height: 62px; padding: .2rem .1rem .25rem; gap: 1px; }
.qb22-day .qb-day-n { font-size: .68rem; line-height: 1; }
.qb22-day .qb-day-coin { width: 24px; height: 24px; }
.qb22-day .qb-day-c { font-size: .72rem; line-height: 1; }
.qb22-day--prize {
  background: linear-gradient(180deg, #FFF6D8, #FFE3A0) !important; border-color: #E5A63A !important;
  box-shadow: 0 2px 0 #C98A1E, inset 0 0 0 1.5px rgba(255,255,255,.7);
}
.qb22-day--prize .qb-day-n { color: #9A5A12; }
.qb22-prize { display: block; position: relative; width: 34px; height: 30px; flex: 0 0 auto; }
.qb22-prize img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(120,70,10,.3)); }
.qb22-day--prize.is-now .qb22-prize img { animation: fruitBob 1.4s ease-in-out infinite; }
.qb22-day--prize.is-past .qb22-prize img { filter: saturate(.8) opacity(.85); }
.qb22-note b { color: #9A5A12; }
@media (min-width: 700px) {
  .qb22-day { min-height: 70px; }
  .qb22-prize { width: 42px; height: 38px; }
}

/* princess capelet sits over the shoulders, under hands-held items */
.pet-wear.pet-wear--front { z-index: 3; }

/* hero presence in the wardrobe: bigger mirror-stage hero (knight/princess/Smoczek alike) */
@media (orientation: landscape) and (min-height: 600px) {
  body.room-wardrobe .wardrobe-pet { height: min(44vh, 340px); }
}
@media (orientation: portrait) and (min-height: 760px) {
  body.room-wardrobe .wardrobe-pet { height: min(28vh, 300px); }
}

/* five wardrobe categories (knight: + Medale) stay on one row */
body.world-zamek .wd-cats:has(> .wd-cat:nth-of-type(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.world-zamek .wd-cats:has(> .wd-cat:nth-of-type(5)) .wd-cat { font-size: .62rem; padding-left: 2px; padding-right: 2px; }

/* v22w K — knight layers: helmet/head painted in a 512×560 frame (48px headroom above the 512 body) */
.pet-sprite .pet-kn-head {
  position: absolute; left: 0; top: -9.375%; width: 100%; height: auto;
  z-index: 3; pointer-events: none; max-width: none; animation: none !important; filter: none !important;
}

/* v22c K — rooms: humans are slimmer than Smoczek, so give them the same on-screen presence (feet stay put: origin 50% 91%) */
:is(.bt-pet-zone, .kitchen-pet-zone, .bedroom-pet-zone) .pet-sprite--chlopiec .pet-rig { scale: 1.62; }
:is(.bt-pet-zone, .kitchen-pet-zone, .bedroom-pet-zone) .pet-sprite--ksiezniczka .pet-rig { scale: 1.48; }
/* v22c K — princess arms layer (hands over necklace/medal ribbons): pixel-registered to the body art, no shadow/animation */
.pet-wear.pet-pr-arms { animation: none !important; filter: none !important; transform: none !important; pointer-events: none; }
/* /v22c K */
/* v22c K — games: heroes keep their natural facing (no mirroring, so the knight's sword/shield and the princess never swap sides) */
body.world-zamek .pr-game .pr-dragon, body.world-zamek .pr-game .pr-pet-m { transform: none !important; }
body.world-zamek .pr-dragon.is-cheer .pr-pet-m { animation-name: v22cCheer; }
body.world-zamek .pr-dragon.is-jump .pr-pet-m { animation-name: v22cJump; }
body.world-zamek .pr-dragon.is-think .pr-pet-m { animation-name: v22cThink; }
body.world-zamek .pr-dragon.is-sad .pr-pet-m { animation-name: v22cNudge; }
@keyframes v22cCheer { 40% { transform: translateY(-10px) rotate(4deg); } }
@keyframes v22cJump { 35% { transform: translateY(-26px) scale(1.04, .96); } 70% { transform: translateY(0) scale(1.06, .94); } }
@keyframes v22cThink { 50% { transform: rotate(-4deg) translateX(3px); } }
@keyframes v22cNudge { 30% { transform: translateX(-8px) rotate(5deg); } 60% { transform: translateX(4px); } }
/* /v22c K */
/* v22c K — wardrobe caption: glides to its spot; slimmer when it has to stand beside the hero */
.v17-cap.is-near { transition: opacity .25s ease-out, transform .45s var(--spring, cubic-bezier(.34,1.56,.64,1)), left .22s ease, top .22s ease; }
.v17-cap.is-near.is-side { font-size: .88rem; line-height: 1.22; padding: 8px 11px 10px; border-radius: 16px; }
.v17-cap.is-near.is-side b { font-size: .64rem; }
/* /v22c K */
/* v22c K */ .v17-cap.is-near.is-side.is-slim { font-size: .8rem; line-height: 1.18; padding: 7px 8px 8px; }
/* v22c K */ .v17-cap.is-near.is-top { padding: 6px 14px 7px; } .v17-cap.is-near.is-top b { display: inline; margin: 0 6px 0 0; }
/* v22c K */ .v17-cap.is-near { width: max-content; }
