/* ==========================================================================
   v15 — castle polish: missions board, narrator button, new bedroom, wardrobe
   tabs, treats pantry, paged playroom + 4 new games, parent panel.
   Loaded LAST (after rooms.css). Never restyles .castle-back.
   ========================================================================== */

/* —— hover / press juice (pointer devices only for hover) ——————————————— */
.tb-home-castle { position: relative; flex-direction: column; height: auto; min-height: 48px; gap: 0; }
.tb-home-lab {
  display: block; margin-top: -4px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; line-height: 1;
  color: #5A2370; text-shadow: 0 0 2px #FFF8EA, 0 0 4px #FFF8EA, 0 1px 0 #FFF8EA;
  pointer-events: none;
}
.tb-home-castle img { height: 36px; transition: transform .18s cubic-bezier(.3,1.6,.5,1), filter .18s ease; }
.tb-purse-coin, .tb-lock-ico img { transition: transform .18s cubic-bezier(.3,1.6,.5,1), filter .18s ease; }
.tb-lock { transition: opacity .15s ease, transform .14s ease; }
.tb-lock:active { transform: translateY(2px) scale(.94); }
body.world-zamek .hub-btn.cplq .cplq-win img,
.pr-card .cplq-win img { transition: transform .22s cubic-bezier(.3,1.6,.5,1), filter .22s ease; }
body.world-zamek .hub-btn.cplq:active { transform: translateY(3px) scale(.97); box-shadow: 0 2px 0 #6E4A16, 0 5px 10px rgba(74,31,92,.25); }
@media (hover: hover) {
  .tb-home-castle:hover img { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 6px rgba(255, 226, 122, .9)) drop-shadow(0 2px 0 rgba(142,100,32,.55)); }
  .tb-purse:hover .tb-purse-coin { transform: rotate(-14deg) scale(1.12); filter: drop-shadow(0 0 6px rgba(255, 226, 122, .95)) drop-shadow(0 2px 0 rgba(142,100,32,.6)); }
  .tb-lock:hover { opacity: 1; }
  .tb-lock:hover .tb-lock-ico img { transform: rotate(-8deg) scale(1.12); }
  body.world-zamek .hub-btn.cplq:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #6E4A16, 0 16px 24px rgba(74, 31, 92, .32), 0 0 0 3px rgba(255, 226, 122, .55); }
  body.world-zamek .hub-btn.cplq:hover .cplq-win img { transform: scale(1.1) rotate(-3deg); filter: drop-shadow(0 0 8px rgba(255, 236, 160, .95)); }
  body.world-zamek .hub-btn.cplq:active { transform: translateY(2px) scale(.97); }
  body.world-zamek .hub-btn.cplay:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.05); }
}

/* —— narrator replay button —————————————————————————————————————— */
.castle-speak {
  appearance: none; border: 0; padding: 0; cursor: pointer; flex: 0 0 auto;
  width: 46px; height: 46px; display: grid; place-items: center; position: relative;
  background: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .15s cubic-bezier(.3,1.6,.5,1);
}
.castle-speak::before {
  content: ""; position: absolute; inset: 2px; z-index: 0; border-radius: 30% 30% 46% 46% / 26% 26% 60% 60%;
  background: linear-gradient(180deg, #FFFDF4, #F3DFAE);
  box-shadow: inset 0 0 0 2.5px #C99A3C, inset 0 0 0 4px #FFF6DE, 0 3px 0 #8E6420, 0 6px 10px rgba(74,31,92,.25);
}
.castle-speak svg { position: relative; z-index: 1; width: 62%; height: 62%; margin-top: -6%; }
.castle-speak:active { transform: translateY(2px) scale(.92); }
.castle-speak.is-talk svg { animation: spkTalk .5s ease-in-out infinite alternate; }
@keyframes spkTalk { to { transform: scale(1.12); } }
@media (hover: hover) { .castle-speak:hover { transform: translateY(-2px) scale(1.07); } }
body.is-muted .castle-speak { opacity: .5; }

/* ==========================================================================
   Hub — quest board (Misje)
   ========================================================================== */
body.world-zamek .hub-board {
  position: absolute; z-index: 6; left: calc(50% + 92px); bottom: 96px;
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  width: 82px; display: flex; flex-direction: column; align-items: center; gap: 0;
  font-family: var(--font); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .16s cubic-bezier(.3,1.6,.5,1);
  animation: boardSway 4.6s ease-in-out infinite; transform-origin: 50% 0;
}
.hub-board img { width: 100%; height: auto; display: block; pointer-events: none; filter: drop-shadow(0 5px 5px rgba(60,25,70,.3)); }
.hub-board-lab {
  margin-top: -14px; position: relative; z-index: 2;
  font-size: .85rem; font-weight: 800; color: #FFF3D6; line-height: 1.05; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(40,10,50,.5);
  padding: .08rem .6rem .12rem; border-radius: 8px;
  background: linear-gradient(180deg, #8E4FC0, #5A2370);
  box-shadow: inset 0 0 0 1.5px #E9C46A, 0 2px 0 #3A1248;
}
.hub-board-new {
  position: absolute; right: -10px; top: -8px; z-index: 3;
  font-size: .74rem; font-weight: 800; color: #fff; white-space: nowrap;
  padding: .1rem .45rem .14rem; border-radius: 999px;
  background: linear-gradient(180deg, #FF7FA8, #D23A6E);
  box-shadow: inset 0 0 0 1.5px #FFE0EA, 0 2px 0 #8E1E44, 0 4px 8px rgba(140,30,70,.35);
  transform: rotate(10deg) scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.hub-board.has-news .hub-board-new { transform: rotate(10deg) scale(1); animation: newPulse 1.6s ease-in-out infinite; }
.hub-board.has-news img { filter: drop-shadow(0 0 8px rgba(255, 226, 122, .9)) drop-shadow(0 5px 5px rgba(60,25,70,.3)); }
@keyframes newPulse { 50% { transform: rotate(10deg) scale(1.14); } }
@keyframes boardSway { 0%,100% { rotate: -1.5deg; } 50% { rotate: 1.5deg; } }
.hub-board:active { transform: translateY(2px) scale(.94); }
@media (hover: hover) { .hub-board:hover { transform: translateY(-3px) scale(1.06); } }
@media (orientation: landscape) and (max-height: 500px) {
  body.world-zamek .hub-board { width: 70px; bottom: 82px; left: calc(50% + 82px); }
  .hub-board-lab { font-size: .76rem; }
}
@media (orientation: portrait) {
  body.world-zamek .hub-screen .hub-board { left: .2rem; right: auto; bottom: .5rem; width: 74px; }
}

/* overlay */
.qb-overlay {
  position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 1.6rem .6rem .6rem;
  background: rgba(46, 16, 58, .55); animation: fadeIn .22s ease;
}
.qb-overlay.is-out { opacity: 0; transition: opacity .2s ease; }
.qb-card {
  position: relative; width: min(760px, 100%); max-height: calc(100dvh - 2.4rem); overflow: auto;
  background: linear-gradient(180deg, #FFFBF1 0%, #F4E4C6 100%);
  border: 3px solid #C99A3C; border-radius: 24px;
  box-shadow: inset 0 0 0 3px #FFF6DE, inset 0 0 0 5px rgba(201,154,60,.4), 0 6px 0 #8E6420, 0 24px 48px rgba(30,10,50,.45);
  padding: 1.5rem .9rem .8rem; color: #4A1F5C;
  animation: pop .4s cubic-bezier(.3,1.6,.5,1);
}
.qb-title { position: sticky; top: -1.5rem; z-index: 3; display: flex; justify-content: center; margin: -1.5rem 0 .4rem; padding-top: .3rem; pointer-events: none; }
.qb-title span {
  font-size: 1.15rem; font-weight: 800; color: #FFF3D6; letter-spacing: .03em; text-shadow: 0 1px 0 rgba(40,10,50,.55);
  padding: .2rem 1.3rem .24rem; border-radius: 10px; background: linear-gradient(180deg, #8E4FC0, #5A2370);
  box-shadow: inset 0 0 0 1.5px #E9C46A, 0 3px 0 #3A1248, 0 6px 10px rgba(58,18,72,.25);
}
.qb-close {
  position: absolute; right: .5rem; top: .5rem; z-index: 4; width: 38px; height: 38px; border-radius: 50%;
  appearance: none; cursor: pointer; display: grid; place-items: center; padding: 0;
  background: linear-gradient(180deg, #FFFDF4, #F1DDB8); border: 2.5px solid #C99A3C; box-shadow: 0 3px 0 #8E6420;
}
.qb-close svg { width: 18px; height: 18px; }
.qb-close:active { transform: translateY(2px); box-shadow: 0 1px 0 #8E6420; }
.qb-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: .8rem; }
.qb-sec h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 800; color: #5A2370; }
.qb-sec h3 em { font-style: normal; color: #A8741E; font-size: .86em; }
.qb-m {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: .5rem;
  padding: .4rem .5rem; margin-bottom: .4rem; border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF, #FFF4DC); border: 2px solid #E2C584; box-shadow: 0 2px 0 #C9A35C;
}
.qb-m-ico { width: 46px; height: 46px; position: relative; }
.qb-m-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(60,25,70,.25)); }
.qb-m-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.qb-m-txt b { font-size: .92rem; line-height: 1.15; }
.qb-m-txt small { font-size: .74rem; font-weight: 800; color: #8A6A54; }
.qb-bar { display: block; height: 9px; border-radius: 999px; background: #EADBC0; box-shadow: inset 0 1px 2px rgba(90,50,20,.3); overflow: hidden; }
.qb-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #CFA2F0, #F6CB52); transition: width .5s ease; }
.qb-m.is-done { border-color: #F2C24E; background: linear-gradient(180deg, #FFFDF0, #FFF0BE); box-shadow: 0 0 0 2px rgba(242,194,78,.4), 0 2px 0 #C9A35C; }
.qb-m.is-claimed { opacity: .72; }
.qb-reward { display: inline-flex; align-items: center; gap: .2rem; font-weight: 800; color: #A8741E; font-size: 1rem; }
.qb-reward .ci { height: 1.4em; }
.qb-claim { font-size: .9rem; padding: .32rem .7rem .36rem; animation: cplayBreath 1.6s ease-in-out infinite; }
.qb-got { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #9BDA6A, #4E9A2A); border: 2px solid #fff; box-shadow: 0 2px 0 #2E6A1E; }
.qb-got svg { width: 16px; height: 16px; }
.qb-week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.qb-day {
  appearance: none; font-family: var(--font); position: relative; cursor: default;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .1rem;
  padding: .3rem .1rem .3rem; min-height: 78px; border-radius: 14px; color: #4A1F5C;
  background: linear-gradient(180deg, #FFFFFF, #F6E8C9); border: 2px solid #E2C584; box-shadow: 0 2px 0 #C9A35C;
}
.qb-day-n { font-size: .7rem; font-weight: 800; color: #8A6A54; }
.qb-day-coin { width: 30px; height: 30px; object-fit: contain; }
.qb-day-c { font-size: .82rem; font-weight: 800; color: #A8741E; }
.qb-day.is-past { background: linear-gradient(180deg, #F3EEFB, #E2D4F2); border-color: #B990DC; }
.qb-day.is-past .qb-day-coin { filter: grayscale(.4) opacity(.6); }
.qb-day-ok { position: absolute; right: -5px; top: -5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #9BDA6A, #4E9A2A); border: 2px solid #fff; }
.qb-day-ok svg { width: 12px; height: 12px; }
.qb-day.is-now {
  cursor: pointer; border-color: #F2C24E; background: linear-gradient(180deg, #FFFBE6, #FFE7A0);
  box-shadow: 0 0 0 3px rgba(242,194,78,.55), 0 3px 0 #A8741E, 0 0 18px rgba(255, 210, 110, .7);
  animation: dayGlow 1.4s ease-in-out infinite;
}
.qb-day.is-now .qb-day-coin { animation: purseCoin 1.4s ease-in-out infinite; }
@keyframes dayGlow { 50% { transform: translateY(-3px); } }
.qb-day--7 { grid-column: span 1; }
.qb-chest { position: relative; width: 48px; height: 38px; }
.qb-chest img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.qb-chest .qb-chest-crown { width: 58%; left: 21%; bottom: 62%; filter: drop-shadow(0 0 5px rgba(255,236,160,.95)); animation: fruitBob 1.6s ease-in-out infinite; }
.qb-note { margin: .5rem 0 0; font-size: .8rem; font-weight: 700; color: #7A5A44; text-align: center; }
@media (orientation: portrait) {
  .qb-cols { grid-template-columns: 1fr; }
  .qb-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .qb-card { padding: 1.3rem .7rem .6rem; }
  .qb-m { padding: .28rem .4rem; margin-bottom: .3rem; grid-template-columns: 38px minmax(0,1fr) auto; }
  .qb-m-ico { width: 38px; height: 38px; }
  .qb-m-txt b { font-size: .84rem; }
  .qb-day { min-height: 66px; }
  .qb-day-coin { width: 24px; height: 24px; }
}

/* ==========================================================================
   Kitchen — stocked pantry + shop
   ========================================================================== */
.pantry-fruit { width: 22%; height: 13%; }
.pantry-n {
  position: absolute; right: -8%; bottom: -6%; z-index: 2; pointer-events: none;
  font-size: .72rem; font-weight: 800; line-height: 1; color: #FFF3D6;
  padding: .1rem .3rem .12rem; border-radius: 999px;
  background: linear-gradient(180deg, #8E4FC0, #5A2370); box-shadow: inset 0 0 0 1.2px #E9C46A, 0 1px 0 #3A1248;
}
.pantry-fruit.is-treat img { filter: drop-shadow(0 0 4px rgba(255, 236, 160, .9)) drop-shadow(0 3px 2px rgba(60, 30, 20, .4)); }
.pantry-empty {
  position: absolute; left: 18%; right: 18%; top: 36%; z-index: 2; text-align: center;
  display: flex; flex-direction: column; gap: .2rem; padding: .5rem .3rem; border-radius: 12px;
  background: rgba(255, 250, 238, .92); border: 2px solid #C99A3C; color: #4A1F5C;
  opacity: 0; transition: opacity .3s ease .4s;
}
.pantry[data-open="true"] .pantry-empty { opacity: 1; }
.pantry-empty b { font-size: 1rem; }
.pantry-empty span { font-size: .74rem; font-weight: 700; color: #7A5A44; line-height: 1.15; }
.kitchen-shop {
  position: absolute; z-index: 8; right: .3rem; top: .2rem;
  appearance: none; cursor: pointer; font-family: var(--font);
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  width: 84px; padding: .4rem .2rem .35rem; color: #4A1F5C;
  border: 3px solid transparent; border-radius: 50% 50% 14px 14px / 34px 34px 14px 14px;
  background:
    linear-gradient(180deg, #FFF8DE 0%, #F7DC92 100%) padding-box,
    linear-gradient(180deg, #FFEFB8 0%, #E0B04A 45%, #9C6C1E 100%) border-box;
  box-shadow: 0 4px 0 #6E4A16, 0 9px 14px rgba(74, 31, 92, .28);
  transition: transform .14s ease, box-shadow .14s ease;
}
.kitchen-shop .cplq-win { width: 54px; height: 46px; position: relative; display: block; }
.kitchen-shop .cplq-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(60,25,70,.25)); animation: fruitBob 2.4s ease-in-out infinite; }
.kitchen-shop .cplq-lab { font-size: .8rem; font-weight: 800; line-height: 1; }
.kitchen-shop:active { transform: translateY(3px); box-shadow: 0 1px 0 #6E4A16; }
@media (hover: hover) { .kitchen-shop:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #6E4A16, 0 14px 20px rgba(74,31,92,.3), 0 0 0 3px rgba(255,226,122,.5); } }
@media (orientation: portrait) { .kitchen-shop { top: .4rem; right: .4rem; } }

/* treat reactions */
.treat-fire {
  position: fixed; z-index: 9990; width: 120px; height: 50px; margin: -25px 0 0 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 50%, #FFF4B0 0 10%, transparent 22%),
    radial-gradient(ellipse 48% 42% at 40% 50%, #FFE27A 0 30%, #FFA43A 58%, rgba(255,110,40,0) 100%),
    radial-gradient(ellipse 30% 30% at 78% 46%, rgba(255,150,60,.8), transparent 100%);
  filter: blur(.5px); transform-origin: 0 50%;
  animation: treatFire 1.4s ease-out forwards;
}
@keyframes treatFire {
  0% { transform: scale(.1, .3); opacity: 0; }
  18% { transform: scale(1, 1); opacity: 1; }
  60% { transform: scale(1.25, 1.15) translateX(14px); opacity: .9; }
  100% { transform: scale(1.5, .8) translate(40px, -24px); opacity: 0; }
}
.fx-hiccup { animation: fxHiccup .4s cubic-bezier(.3,1.6,.5,1) !important; }
@keyframes fxHiccup { 0%,100% { transform: none; } 35% { transform: translateY(-14%) scale(.96, 1.06); } 60% { transform: translateY(2%) scale(1.04, .96); } }
.fx-float { animation: fxFloat 2.4s ease-in-out !important; }
@keyframes fxFloat { 0%,100% { transform: none; } 25% { transform: translateY(-22%) rotate(-4deg); } 55% { transform: translateY(-28%) rotate(4deg); } 80% { transform: translateY(-12%) rotate(-2deg); } }
.fx-wobble { animation: fxWobble 1.5s ease !important; transform-origin: 50% 92%; }
@keyframes fxWobble {
  0%,100% { transform: none; } 12% { transform: scale(1.08, .9); } 26% { transform: scale(.92, 1.08) skewX(5deg); }
  40% { transform: scale(1.05, .95) skewX(-5deg); } 55% { transform: scale(.97, 1.03) skewX(3deg); } 72% { transform: scale(1.02, .98) skewX(-2deg); }
}
.treat-crown {
  position: absolute; left: 33%; top: 3%; width: 30%; height: auto; z-index: 12; pointer-events: none; rotate: -6deg;
  filter: drop-shadow(0 0 8px rgba(255,236,160,.95));
  animation: crownIn 2.6s cubic-bezier(.3,1.5,.5,1) forwards;
}
@keyframes crownIn { 0% { transform: translateY(-120%) scale(.4); opacity: 0; } 18% { transform: none; opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20%); } }

/* ==========================================================================
   SYPIALNIA v15 — painted room with canopy bed; candle on the nightstand
   ========================================================================== */
body.room-bedroom .sky { display: none !important; }
.bedroom15 { position: static; }
.bed-scene { position: fixed; inset: 0; z-index: 0; container-type: size; overflow: hidden; pointer-events: none; background: #2A1638; }
.bed-art {
  --aw: max(100cqw, 177.78cqh); --ah: calc(var(--aw) * .5625);
  position: absolute; width: var(--aw); height: var(--ah);
  left: calc((100cqw - var(--aw)) / 2); top: calc((100cqh - var(--ah)) * .75);
  pointer-events: none;
}
.bed-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; transition: filter 1s ease; }
.bed-art .bed-bg--P, .bed-art .bed-cover--P { display: none; }
.bed-hit {
  position: absolute; left: 43%; top: 38%; width: 33%; height: 56%; z-index: 2;
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer; pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.bedroom15 .bed-sleeper { left: 48.59%; top: 43.33%; width: 22.03%; z-index: 3; }
.bed-cover { position: absolute; z-index: 4; pointer-events: none; user-select: none; display: block; transition: filter 1s ease; }
.bed-cover--L { left: 45.23%; top: 59.58%; width: 28.75%; height: 40.42%; }
.bedroom15 .bed-zzz { left: 56%; top: 34%; width: 12%; height: 8%; z-index: 6; }
.bedroom15 .bedroom-pet-zone {
  --ph: calc(var(--ah) * .34);
  position: absolute; z-index: 5; left: 25%; bottom: calc(10% - var(--ph) * .09);
  margin: 0; transform: translateX(-50%); pointer-events: auto;
}
.bedroom15 .bedroom-pet { height: var(--ph); }
.bedroom15.is-asleep .bedroom-pet-zone { opacity: 0; transform: translateX(-50%) translateX(40%) scale(.85); pointer-events: none; }
/* candle stands on the nightstand top */
.bedroom15 .bed-candle {
  position: absolute; z-index: 5; width: 5.5%; left: 40.3%; bottom: 36.6%; transform: translateX(-50%);
  padding: 0; margin: 0; pointer-events: auto;
}
.bedroom15 .bed-candle img { width: 100%; height: auto; }
.bedroom15 .bed-flame { left: 42%; top: 0; width: 20.7%; height: 37.6%; }
.bedroom15 .bed-candle-glow { left: 42%; top: 0; width: 360%; height: auto; aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%); animation: glowPulse15 2.4s ease-in-out infinite; }
@keyframes glowPulse15 { 0%,100% { transform: translate(-50%, -50%) scale(1); opacity: .9; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } }
.bedroom15 .bed-smoke { left: 42%; top: 0; }
.bedroom15:not(.is-asleep) .bed-candle::after { bottom: -6%; height: 8%; }
.bedroom15.is-asleep .bed-bg, .bedroom15.is-asleep .bed-cover { filter: brightness(.8) saturate(.9); }
.bedroom15 .bed-night { z-index: 1; background: radial-gradient(40% 40% at 60% 55%, rgba(120, 130, 255, .1), transparent 70%), linear-gradient(180deg, rgba(16, 10, 52, .58), rgba(28, 12, 58, .52)); }
.bedroom15.is-asleep .bed-night { pointer-events: none; }
.bedroom15.is-asleep .bed-scene { z-index: 1; }
.bedroom15 .bedroom-stage { display: flex; justify-content: flex-end; align-items: flex-end; pointer-events: none; }
.bedroom15 .bedroom-stage > * { pointer-events: auto; }
body.room-bedroom .topbar { position: relative; z-index: 5; }
.bedroom15 .bedroom-hint { z-index: 6; }
body.is-night .bedroom15 .bed-art::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(30% 34% at 59% 60%, rgba(180, 190, 255, .14), transparent 70%);
}
@media (orientation: portrait) {
  .bed-art { --aw: max(100cqw, 56.25cqh); --ah: calc(var(--aw) * 1.7778); left: calc((100cqw - var(--aw)) * .15); }
  .bed-art .bed-bg--L, .bed-art .bed-cover--L { display: none; }
  .bed-art .bed-bg--P, .bed-art .bed-cover--P { display: block; }
  .bed-cover--P { left: 21.39%; top: 59.61%; width: 62.92%; height: 26.88%; }
  .bedroom15 .bed-sleeper { left: 40.28%; top: 50.62%; width: 39.17%; }
  .bed-hit { left: 18%; top: 44%; width: 68%; height: 44%; }
  .bedroom15 .bed-zzz { left: 56%; top: 46%; width: 20%; height: 5%; }
  .bedroom15 .bedroom-pet-zone { --ph: calc(var(--ah) * .19); left: 60%; bottom: calc(9% - var(--ph) * .09); }
  .bedroom15 .bed-candle { width: 8%; left: 9.2%; bottom: 41.9%; }
  .bedroom15 .bedroom-stage { display: flex; }
}

/* ==========================================================================
   GARDEROBA v15 — tabs · category chips · scroll grid; pet by the mirror
   ========================================================================== */
.wardrobe-stage {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  grid-template-areas: "panel pet back";
  align-items: end;
}
.wd-pet-zone { margin-bottom: 0; justify-self: center; align-self: end; transform: translateX(14%); }
.wardrobe-pet { height: min(60vh, 250px); }
.wd-panel { align-self: stretch; display: flex; flex-direction: column; min-height: 0; max-width: 430px; padding: .5rem .5rem .45rem; margin: 0; }
.wd-tabs { display: flex; gap: .35rem; margin: 0 0 .35rem; }
.wd-tab {
  flex: 1 1 0; appearance: none; cursor: pointer; font-family: var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .28rem .4rem .3rem; border-radius: 12px; font-size: .95rem; font-weight: 800;
  color: #6B4A5C; background: linear-gradient(180deg, #FFF8EA, #EBD6AE); border: 2px solid #D2B06A; box-shadow: 0 3px 0 #A8803A;
  transition: transform .12s ease, box-shadow .12s ease;
}
.wd-tab img { width: 26px; height: 26px; object-fit: contain; }
.wd-tab.is-on { color: #FFF3D6; text-shadow: 0 1px 0 rgba(40,10,50,.5); background: linear-gradient(180deg, #A465D6, #5A2370); border-color: #E9C46A; box-shadow: 0 3px 0 #3A1248, 0 0 0 2px rgba(233,196,106,.4); }
.wd-tab:active { transform: translateY(2px); box-shadow: 0 1px 0 #A8803A; }
.wd-cats { display: flex; gap: .3rem; margin-bottom: .35rem; overflow-x: auto; scrollbar-width: none; }
.wd-cats::-webkit-scrollbar { display: none; }
.wd-cat {
  flex: 1 0 auto; appearance: none; cursor: pointer; font-family: var(--font);
  display: inline-flex; align-items: center; gap: .2rem; justify-content: center;
  padding: .16rem .45rem .18rem .25rem; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap;
  color: #6B4A5C; background: #FFF9EC; border: 1.5px solid #D8B66A; box-shadow: 0 2px 0 #C9A35C;
}
.wd-cat img { width: 22px; height: 22px; object-fit: contain; }
.wd-cat.is-on { background: linear-gradient(180deg, #FFF2BE, #F2C24E); color: #4A1F5C; border-color: #A8741E; box-shadow: 0 2px 0 #8E6420, 0 0 0 2px rgba(242,194,78,.45); }
.wd-cats-note { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; color: #7A5A44; text-align: center; }
.wd-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .3rem .25rem .3rem; margin: 0 -.2rem; scrollbar-width: thin; scrollbar-color: #C99A3C transparent; }
.wd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.wd-item { aspect-ratio: 1 / 1.05; border-radius: 14px; }
.wd-item.is-locked .wd-item-art img { filter: saturate(.75) drop-shadow(0 3px 2px rgba(60,25,70,.2)); }
.wd-item.is-special { background: radial-gradient(ellipse 80% 60% at 50% 40%, #FFFFFF 0%, #FFF8D4 60%, #F7E29A 100%); border-color: #E9C46A; }
.wd-tag--special { color: #FFF3D6; background: linear-gradient(180deg, #F2A24E, #C9662A); box-shadow: inset 0 0 0 1.5px #FFE0A0; padding-left: .45rem; font-size: .7rem; }
.wd-have {
  position: absolute; left: -5px; top: -5px; z-index: 2; min-width: 26px; padding: .1rem .3rem .12rem; border-radius: 999px;
  font-size: .76rem; font-weight: 800; color: #FFF3D6; text-align: center;
  background: linear-gradient(180deg, #8E4FC0, #5A2370); box-shadow: inset 0 0 0 1.5px #E9C46A, 0 2px 0 #3A1248;
}
.wd-item--treat .wd-have:empty { display: none; }
.wd-action { min-height: 44px; margin-top: .35rem; flex: 0 0 auto; }
.wd-note--gold { color: #A8741E; }
@media (hover: hover) {
  .wd-item:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #B98A3E, 0 10px 14px rgba(74,31,92,.16); }
  .wd-item:hover .wd-item-art img { transform: scale(1.06); }
  .wd-tab:hover, .wd-cat:hover { filter: brightness(1.05); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .wd-panel { max-width: 440px; padding: .4rem .45rem .35rem; }
  .wd-tab { font-size: .86rem; padding: .18rem .35rem .2rem; }
  .wd-tab img { width: 22px; height: 22px; }
  .wd-cat { font-size: .68rem; }
  .wd-cat img { width: 18px; height: 18px; }
  .wd-grid { gap: .38rem; }
  .wd-item { aspect-ratio: 1 / .98; }
  .wardrobe-pet { height: min(62vh, 230px); }
  .wd-action { min-height: 38px; margin-top: .25rem; }
}
@media (orientation: portrait) {
  body.room-wardrobe .sky { background-size: auto 100% !important; background-position: 87% 100% !important; }
  .wardrobe-stage {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "panel panel" "pet back";
    align-items: end;
  }
  .wd-panel { max-width: 480px; width: 100%; margin: 0 auto; }
  .wd-pet-zone { padding-left: 0; transform: translateX(22%); margin-bottom: 0; }
  .wardrobe-pet { height: min(25vh, 230px); }
  .wd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   Pokój zabaw — paged menu
   ========================================================================== */
.pr-menu { grid-template-columns: minmax(170px, .7fr) minmax(0, 2fr); padding-right: 4.4rem; }
.pr-book { position: relative; min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; grid-template-rows: auto auto; align-items: center; gap: .3rem .2rem; align-self: center; }
.pr-pages { overflow: hidden; min-width: 0; padding: 1.3rem .2rem .7rem; margin: -1.3rem 0 -.5rem; }
.pr-track { display: flex; transition: transform .45s cubic-bezier(.3,1.1,.4,1); touch-action: pan-y; }
.pr-page.pr-games { flex: 0 0 100%; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; align-items: stretch; }
body.world-zamek .hub-btn.cplq.pr-card { max-width: 150px; width: 100%; animation: cardIn .45s cubic-bezier(.3,1.5,.5,1) calc(var(--ci, 0) * .07s) both; }
@keyframes cardIn { from { transform: translateY(18px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.pr-card .cplq-win { width: 92px; height: 86px; position: relative; }
.pr-card .cplq-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pr-card .cplq-lab { white-space: normal; text-align: center; line-height: 1.05; }
.pr-card-lvl { display: flex; gap: 4px; justify-content: center; margin-top: .1rem; }
.pr-card-lvl i { width: 9px; height: 9px; border-radius: 50%; background: #EADBC0; box-shadow: inset 0 0 0 1.5px #C99A3C; display: block; }
.pr-card-lvl i.is-on { background: radial-gradient(circle at 35% 30%, #FFF6C8 0 20%, #F2C24E 50%, #C98A1E 100%); box-shadow: 0 0 0 1px #8E6420; }
.pr-card:nth-child(n) .cplq-win img { animation: none; }
.pr-card:hover .cplq-win img { animation: none; }
.pr-arrow {
  appearance: none; cursor: pointer; padding: 0; width: 34px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(180deg, #FFFBF1, #F1DDB8); border: 2.5px solid #C99A3C; box-shadow: 0 3px 0 #8E6420;
  transition: transform .12s ease, opacity .2s ease;
}
.pr-arrow svg { width: 18px; height: 18px; }
.pr-arrow--prev svg { transform: scaleX(-1); }
.pr-arrow:active { transform: translateY(2px); box-shadow: 0 1px 0 #8E6420; }
.pr-arrow[disabled], .pr-arrow.is-off { opacity: .3; pointer-events: none; }
.pr-pdots { grid-column: 1 / -1; display: flex; justify-content: center; gap: .45rem; }
.pr-pdots button { appearance: none; border: 0; padding: 0; cursor: pointer; width: 12px; height: 12px; border-radius: 50%; background: rgba(255,250,238,.9); box-shadow: inset 0 0 0 2px #C99A3C, 0 1px 0 #8E6420; transition: transform .2s ease, width .2s ease; }
.pr-pdots button.is-on { width: 26px; border-radius: 999px; background: linear-gradient(180deg, #A465D6, #5A2370); box-shadow: inset 0 0 0 1.5px #E9C46A; }
@media (hover: hover) { .pr-arrow:hover { transform: translateY(-2px); filter: brightness(1.05); } }
@media (orientation: landscape) and (max-height: 500px) {
  .pr-card .cplq-win { width: 76px; height: 68px; }
  body.world-zamek .hub-btn.cplq.pr-card { padding: .5rem .3rem .45rem; }
  .pr-card .cplq-lab { font-size: .84rem; }
  .pr-card-sub { font-size: .66rem; }
}
@media (orientation: portrait) {
  .pr-menu { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding: .2rem .1rem 5.2rem; align-items: center; }
  .pr-book { order: -1; align-self: center; }
  .pr-host { align-self: end; padding: 0 .4rem; }
  .pr-host { flex-direction: row; align-items: flex-end; gap: .4rem; justify-content: center; }
  .pr-host .pr-bubble { max-width: 200px; font-size: .88rem; }
  .pr-host .pr-bubble::after { left: auto; right: -10px; bottom: 30%; transform: rotate(-45deg); }
  .playroom-pet { height: min(20vh, 170px); }
  .pr-page.pr-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .6rem; justify-items: center; }
  body.world-zamek .hub-btn.cplq.pr-card { max-width: 150px; }
  .pr-card .cplq-win { width: 86px; height: 76px; }
  .pr-card .cplq-lab { font-size: .86rem; }
  .pr-book { grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .pr-arrow { width: 30px; height: 44px; }
}

/* —— game HUD v15 —— */
.pr-hud { grid-template-areas: "dots plaque right"; }
.pr-hud-r { grid-area: right; justify-self: end; display: flex; align-items: center; gap: .4rem; margin-top: .15rem; }
.pr-hud-r .pr-streak { margin-top: 0; }
.pr-q.is-new { animation: qIn .35s cubic-bezier(.3,1.5,.5,1); }
@keyframes qIn { from { transform: scale(.85); opacity: .3; } }
.pr-intro-ico { display: block; width: 70px; height: 62px; object-fit: contain; margin: -2.4rem auto .2rem; filter: drop-shadow(0 4px 4px rgba(60,25,70,.3)); animation: fruitBob 1.8s ease-in-out infinite; }
.pr-say--riddle { font-size: 1.05rem; }
@media (orientation: portrait) {
  .pr-hud { grid-template-columns: 1fr auto; grid-template-areas: "dots right" "plaque plaque"; }
}
.pr-end-medal { display: block; width: 64px; height: auto; margin: -3rem auto .1rem; filter: drop-shadow(0 6px 6px rgba(60,25,70,.35)); animation: medalIn .8s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes medalIn { 0% { transform: translateY(-40px) rotate(-30deg) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pr-end-card { margin-top: 2rem; }

/* ==========================================================================
   (b) Owoce — big baskets, drag pile, hand hint
   ========================================================================== */
.pr-field--fruit { gap: .6rem 1.6rem; padding-right: 220px; align-items: flex-end; }
.pr-pile {
  width: 130px; height: 118px; cursor: grab; touch-action: none; margin-bottom: .2rem;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.pr-pile::before { display: none; }
.pr-pile:active { cursor: grabbing; }
.pr-pile-base { position: absolute !important; left: 0; bottom: 0; width: 100% !important; height: auto !important; z-index: 1; filter: drop-shadow(0 6px 5px rgba(60,30,20,.3)) !important; }
.pr-pile-heap { position: absolute; left: 10%; right: 10%; bottom: 46%; height: 50%; z-index: 2; pointer-events: none; }
.pr-pile-heap img { position: absolute; width: 38%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(60,30,20,.35)); }
.pr-pile-heap img:nth-child(1) { left: 0; bottom: 0; }
.pr-pile-heap img:nth-child(2) { left: 31%; bottom: 4%; }
.pr-pile-heap img:nth-child(3) { left: 62%; bottom: 0; }
.pr-pile-heap img:nth-child(4) { left: 14%; bottom: 36%; }
.pr-pile-heap img:nth-child(5) { left: 46%; bottom: 38%; }
.pr-pile-heap img:nth-child(6) { left: 30%; bottom: 66%; }
.pr-pile-heap img:nth-child(7) { display: none; }
.pr-pile-lab {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  font-size: .76rem; font-weight: 800; color: #FFF3D6; padding: .06rem .55rem .1rem; border-radius: 8px;
  background: linear-gradient(180deg, #8E4FC0, #5A2370); box-shadow: inset 0 0 0 1.5px #E9C46A, 0 2px 0 #3A1248;
  pointer-events: none;
}
.pr-pile img:not(.pr-pile-base) { position: absolute; }
.pr-pile.is-drag .pr-pile-heap { transform: scale(.96); }
.pr-field.is-ask .pr-pile { opacity: .35; pointer-events: none; }
.pr-basket { width: clamp(112px, 15vw, 150px); --bpad: 60px; }
.pr-basket-glow {
  position: absolute; left: -8%; right: -8%; bottom: -4%; height: 70%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 226, 122, .85), rgba(255, 226, 122, 0) 70%);
  opacity: 0; transition: opacity .2s ease;
}
.pr-basket.is-target .pr-basket-glow { opacity: 1; animation: glowPulse2 1s ease-in-out infinite; }
.pr-basket.is-target { transform: translateY(-4px) scale(1.06); }
.pr-basket.is-target .pr-basket-img { filter: drop-shadow(0 0 10px rgba(255, 226, 122, 1)) drop-shadow(0 6px 5px rgba(60,30,20,.3)); }
.pr-basket-fruits img { width: 30%; }
.pr-basket-n {
  right: 50%; transform: translateX(50%); bottom: -12px; height: 32px; padding: 0 10px; font-size: 1.15rem; font-weight: 800;
  background: linear-gradient(180deg, #FFFDF4, #F3DFAE); color: #7A5A44; box-shadow: inset 0 0 0 2px #C99A3C, 0 2px 0 #8E6420;
}
.pr-basket-n b { color: #5A2370; font-size: 1.25em; margin-right: 1px; }
.pr-basket.is-full .pr-basket-n b { color: #fff; }
.pr-basket.is-full .pr-basket-n { color: #E8FFD8; }
.castle-ghost.pr-fruit-ghost { width: 70px; height: 70px; }
.pr-medal { width: 72px; height: 72px; font-size: 1.9rem; }
.pr-hand {
  position: absolute; z-index: 25; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
  animation: handMove 2.6s ease-in-out .2s infinite; transition: opacity .3s ease;
}
.pr-hand.is-hide { opacity: 0; animation-play-state: paused; }
.pr-hand-img { position: absolute; left: -16px; top: -6px; width: 62px; height: auto; filter: drop-shadow(0 6px 6px rgba(60,25,70,.35)); }
.pr-hand-fruit { position: absolute; left: -24px; top: -30px; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(60,30,20,.35)); animation: handFruit 2.6s ease-in-out .2s infinite; }
@keyframes handMove {
  0% { transform: translate(var(--x0), var(--y0)) scale(1); opacity: 0; }
  10% { transform: translate(var(--x0), var(--y0)) scale(1); opacity: 1; }
  20% { transform: translate(var(--x0), var(--y0)) scale(.9); }
  65% { transform: translate(var(--x1), var(--y1)) scale(.9); opacity: 1; }
  75% { transform: translate(var(--x1), var(--y1)) scale(1); opacity: 1; }
  92%, 100% { transform: translate(var(--x1), var(--y1)) scale(1); opacity: 0; }
}
@keyframes handFruit { 0%, 15% { opacity: 0; transform: scale(.6); } 22%, 68% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; transform: translateY(18px) scale(.6); } }
@media (orientation: landscape) and (max-height: 500px) {
  .pr-field--fruit { padding-right: 200px; gap: .4rem 1.1rem; }
  .pr-pile { width: 108px; height: 98px; }
  .pr-basket { width: clamp(96px, 13vw, 128px); --bpad: 46px; }
  .pr-baskets { gap: .5rem; }
  .pr-baskets--4 .pr-basket, .pr-baskets--5 .pr-basket { width: clamp(82px, 11vw, 110px); }
  .pr-medal { width: 62px; height: 62px; font-size: 1.6rem; }
}
@media (orientation: portrait) {
  .pr-field--fruit { padding: .3rem .1rem 175px; align-content: center; gap: 1rem .6rem; }
  .pr-baskets { max-width: 360px; gap: 1.1rem .8rem; }
  .pr-basket { width: 128px; }
  .pr-baskets--4 .pr-basket, .pr-baskets--5 .pr-basket, .pr-baskets--6 .pr-basket { width: 104px; }
  .pr-pile { order: 2; }
}

/* ==========================================================================
   (c) Smocze jajka — story: eggs arrive / crack, babies fly away
   ========================================================================== */
.pr-field--egg { padding-right: 220px; gap: .6rem; }
.pr-nest { padding: .7rem 1.4rem .8rem; gap: 8px; }
.pr-egg { width: 40px; height: 52px; }
.pr-egg-row { gap: 16px; }
.pr-five { gap: 4px; }
.pr-nest.is-tight .pr-egg { width: 32px; height: 42px; }
.pr-egg-w { position: absolute; inset: 0; display: block; transform-origin: 50% 90%; }
.pr-egg-w img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 1px rgba(90,50,20,.35)); }
.pr-egg-half { opacity: 0; transition: transform .9s cubic-bezier(.3,.6,.4,1), opacity .9s ease; }
.pr-egg-half--t { clip-path: polygon(0 0, 100% 0, 100% 46%, 86% 54%, 72% 44%, 58% 55%, 44% 44%, 30% 55%, 16% 45%, 0 53%); }
.pr-egg-half--b { clip-path: polygon(0 53%, 16% 45%, 30% 55%, 44% 44%, 58% 55%, 72% 44%, 86% 54%, 100% 46%, 100% 100%, 0 100%); }
.pr-egg.is-new .pr-egg-w img { filter: hue-rotate(230deg) saturate(1.2) drop-shadow(0 2px 1px rgba(90,50,20,.35)); }
.pr-egg.is-new { animation: none; }
.pr-egg.is-wait { visibility: hidden; }
.pr-egg.is-new:not(.is-wait) { visibility: visible; animation: eggDrop .55s cubic-bezier(.3,1.5,.5,1) both; }
.pr-egg.is-shake .pr-egg-w { animation: eggShake .45s ease-in-out infinite; }
@keyframes eggShake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-11deg); } 75% { transform: rotate(11deg); } }
.pr-egg.is-hatched { animation: none; }
.pr-egg.is-hatched::after { display: none; }
.pr-egg.is-hatched .pr-egg-full { opacity: 0; }
.pr-egg.is-hatched .pr-egg-half { opacity: 1; }
.pr-egg.is-hatched .pr-egg-half--t { transform: translate(18%, -42%) rotate(28deg); opacity: 0; transition-delay: .05s; }
.pr-egg.is-hatched .pr-egg-half--b { opacity: .45; filter: grayscale(.5) drop-shadow(0 2px 1px rgba(90,50,20,.3)); }
.pr-baby {
  position: absolute; z-index: 22; width: 74px; height: auto; margin: -37px 0 0 -37px; pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(60,25,70,.3));
  animation: babyFly 2.3s cubic-bezier(.35,.1,.5,1) forwards;
}
@keyframes babyFly {
  0% { transform: translateY(10px) scale(.2); opacity: 0; }
  14% { transform: translateY(-14px) scale(1.05); opacity: 1; }
  28% { transform: translateY(-24px) scale(1) rotate(-6deg); }
  100% { transform: translate(var(--fx, 80px), -62vh) scale(.7) rotate(14deg); opacity: 0; }
}
.pr-eq--story { display: inline-flex; align-items: center; gap: .22em; min-height: 1.15em; }
.pr-eqp { display: inline-block; }
.pr-eqp.is-in { animation: eqIn .55s cubic-bezier(.3,1.7,.5,1) both; color: #B8306A; }
@keyframes eqIn { from { transform: scale(2.2) translateY(-20%); opacity: 0; } to { transform: none; opacity: 1; } }
.pr-eqp.is-q { color: #B8306A; animation: qPulse 1.3s ease-in-out infinite; }
.pr-eggbtn { width: 84px; height: 106px; }
.pr-eggbtn span { font-size: 1.9rem; }
@media (hover: hover) { .pr-eggbtn:hover, .pr-medal:hover { transform: translateY(-3px) scale(1.05); } }
@media (orientation: landscape) and (max-height: 500px) {
  .pr-field--egg { padding-right: 200px; gap: .4rem; }
  .pr-egg { width: 32px; height: 42px; }
  .pr-nest.is-tight .pr-egg { width: 26px; height: 34px; }
  .pr-nest { padding: .45rem 1rem .55rem; }
  .pr-eggbtn { width: 66px; height: 84px; }
  .pr-eggbtn span { font-size: 1.55rem; }
  .pr-baby { width: 60px; margin: -30px 0 0 -30px; }
}
@media (orientation: portrait) {
  .pr-field--egg { padding: .4rem .1rem 175px; }
  .pr-egg { width: 40px; height: 52px; }
  .pr-nest.is-tight .pr-egg { width: 32px; height: 42px; }
  .pr-egg-row { gap: 10px; }
}

/* ==========================================================================
   (d) Przysmaki — dividing cookies onto plates
   ========================================================================== */
.pr-field--treats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: .5rem 1.4rem; padding: .3rem 220px .4rem 0; }
.tr-jar { position: relative; width: 120px; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; flex: 0 0 auto; }
.tr-jar-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 6px rgba(60,25,70,.3)); transition: transform .2s ease; }
.tr-jar.is-tap .tr-jar-img { animation: jarTap .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes jarTap { 40% { transform: scale(1.1, .92) rotate(-5deg); } }
.tr-jar-n { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); pointer-events: none; }
.tr-jar-n b { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 999px; font-size: 1.35rem; font-weight: 800; color: #4A1F5C; background: rgba(255,253,244,.94); box-shadow: inset 0 0 0 2.5px #C99A3C, 0 2px 0 #8E6420; }
.tr-jar-lab { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); white-space: nowrap; font-size: .76rem; font-weight: 800; color: #FFF3D6; padding: .06rem .55rem .1rem; border-radius: 8px; background: linear-gradient(180deg, #8E4FC0, #5A2370); box-shadow: inset 0 0 0 1.5px #E9C46A, 0 2px 0 #3A1248; animation: cplayBreath 1.8s ease-in-out infinite; }
.tr-jar.is-empty { opacity: .45; pointer-events: none; }
.tr-jar.is-empty .tr-jar-lab { display: none; }
.tr-plates { display: flex; flex-wrap: wrap; gap: .6rem .7rem; justify-content: center; max-width: 470px; }
.tr-plate { position: relative; width: 104px; height: 74px; animation: plateIn .4s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes plateIn { from { transform: translateY(16px) scale(.7); opacity: 0; } }
.tr-plate-img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; filter: drop-shadow(0 4px 4px rgba(60,25,70,.25)); }
.tr-cookies { position: absolute; left: 10%; right: 10%; bottom: 34%; display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 0 1px; pointer-events: none; }
.tr-cookies img { width: 24px; height: 24px; object-fit: contain; margin-top: -8px; filter: drop-shadow(0 2px 1px rgba(60,30,20,.3)); animation: fruitDrop .3s cubic-bezier(.3,1.6,.5,1) both; }
.tr-plate-n { position: absolute; right: -4px; bottom: -2px; min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; font-size: .95rem; font-weight: 800; color: #FFF3D6; background: linear-gradient(180deg, #8E4FC0, #5A2370); box-shadow: inset 0 0 0 1.5px #E9C46A, 0 2px 0 #3A1248; }
.tr-plate.is-bump { animation: streakBump .4s cubic-bezier(.3,1.6,.5,1); }
.tr-plate.is-cheer { animation: petHop .7s cubic-bezier(.3,.8,.4,1); }
.pr-field--treats .pr-choices { flex: 0 0 100%; }
.pr-field--treats.is-ask .tr-jar { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  .pr-field--treats { padding-right: 200px; gap: .35rem 1rem; }
  .tr-jar { width: 96px; }
  .tr-plate { width: 86px; height: 60px; }
  .tr-cookies img { width: 20px; height: 20px; }
}
@media (orientation: portrait) {
  .pr-field--treats { padding: .3rem .1rem 175px; }
  .tr-plates { max-width: 360px; }
  .tr-plate { width: 96px; height: 68px; }
}

/* ==========================================================================
   (e) Pary — memory cards
   ========================================================================== */
.pr-field--pairs { display: flex; align-items: center; justify-content: center; padding: .3rem 220px .3rem 0; }
.pp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; width: min(100%, 440px); }
.pp-card { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; aspect-ratio: 1 / 1; perspective: 600px; -webkit-tap-highlight-color: transparent; animation: cardIn .4s cubic-bezier(.3,1.5,.5,1) calc(var(--i, 0) * .04s) both; }
.pp-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3,1.3,.5,1); }
.pp-card.is-up .pp-in, .pp-card.is-match .pp-in { transform: rotateY(180deg); }
.pp-back, .pp-face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.pp-back { background: linear-gradient(160deg, #A465D6, #5A2370); border: 3px solid #E9C46A; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25), 0 4px 0 #3A1248, 0 8px 12px rgba(58,18,72,.25); }
.pp-back img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(20,5,30,.4)); }
.pp-face { transform: rotateY(180deg); background: linear-gradient(180deg, #FFFDF6, #F4E4C6); border: 3px solid #C99A3C; box-shadow: inset 0 0 0 2px #FFF6DE, 0 4px 0 #8E6420; color: #4A1F5C; }
.pp-face b { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.pp-face--ex b { font-size: 1.15rem; color: #5A2370; white-space: nowrap; }
.pp-card.is-match .pp-face { background: linear-gradient(180deg, #F4FFE8, #D9F2C2); border-color: #7DBA52; box-shadow: 0 0 0 3px rgba(155,218,106,.5), 0 4px 0 #4E8A2A; }
.pp-card.is-match { animation: goodPop .6s cubic-bezier(.3,1.6,.5,1); cursor: default; }
@media (hover: hover) { .pp-card:not(.is-up):not(.is-match):hover .pp-in { transform: translateY(-3px) rotateY(-8deg); } }
@media (orientation: landscape) and (max-height: 500px) {
  .pr-field--pairs { padding-right: 200px; }
  .pp-grid { width: auto; height: 100%; max-height: 270px; aspect-ratio: 4 / 3; gap: .4rem; }
  .pp-face b { font-size: 1.35rem; }
  .pp-face--ex b { font-size: 1rem; }
}
@media (orientation: portrait) {
  .pr-field--pairs { padding: .3rem .2rem 175px; }
  .pp-grid { width: min(100%, 360px); }
}

/* ==========================================================================
   (f) Sztafeta — times-table tower climb
   ========================================================================== */
.pr-game--relay .pr-dragon { display: none; }
.pr-field--relay { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem; padding: .3rem 5rem .2rem 1rem; }
.rl-left { display: flex; flex-direction: column; align-items: center; gap: .9rem; align-self: center; }
.rl-timer { position: relative; width: min(320px, 100%); height: 16px; border-radius: 999px; background: #EADBC0; box-shadow: inset 0 1px 3px rgba(90,50,20,.35), 0 0 0 2px #C99A3C, 0 3px 0 #8E6420; }
.rl-timer i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFE27A, #F2A24E); transform-origin: 0 50%; }
.rl-timer.is-run i { animation: rlTime 4s linear forwards; }
.rl-timer.is-out i { background: linear-gradient(90deg, #D8C8B0, #CBB89A); }
.rl-timer img { position: absolute; right: -14px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); filter: drop-shadow(0 2px 1px rgba(60,30,20,.3)); transition: opacity .3s ease, filter .3s ease; }
.rl-timer.is-out img { filter: grayscale(1) opacity(.5); }
@keyframes rlTime { to { transform: scaleX(0); } }
.rl-choices.pr-choices { display: flex; gap: 1rem; }
.rl-btn.pr-medal { width: 82px; height: 82px; font-size: 2.1rem; }
.rl-tower { position: relative; height: min(100%, 300px); aspect-ratio: 172 / 260; align-self: end; }
.rl-tower-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 8px 8px rgba(60,25,70,.3)); }
.rl-cup { position: absolute; left: 50%; top: -8%; width: 40%; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 0 6px rgba(255,236,160,.8)); animation: fruitBob 2s ease-in-out infinite; }
.rl-cup.is-win { animation: goodPop .8s cubic-bezier(.3,1.6,.5,1) 2; filter: drop-shadow(0 0 16px rgba(255,236,160,1)); }
.rl-pet { --st: 0; position: absolute; left: -38%; bottom: calc(2% + var(--st) * 70%); z-index: 3; line-height: 0; transition: bottom .7s cubic-bezier(.3,1.4,.5,1); }
.rl-pet .rl-pet-img { height: min(22vh, 96px); }
.rl-pet.is-fly .pet-sprite { animation: petHop .7s cubic-bezier(.3,.8,.4,1); }
@media (orientation: landscape) and (max-height: 500px) {
  .rl-btn.pr-medal { width: 70px; height: 70px; font-size: 1.8rem; }
  .rl-tower { height: min(100%, 230px); }
  .rl-pet .rl-pet-img { height: 78px; }
}
@media (orientation: portrait) {
  .pr-field--relay { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: .6rem .3rem 5.4rem; justify-items: center; }
  .rl-left { order: 0; }
  .rl-tower { height: min(100%, 320px); }
  .rl-choices.pr-choices { gap: .6rem; }
}

/* ==========================================================================
   (g) Skarbiec — gold bars (10) and coins (1)
   ========================================================================== */
.pr-field--vault { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: .5rem 1.4rem; padding: .3rem 220px .3rem 0; }
.vt-src { display: flex; flex-direction: column; gap: .6rem; }
.vt-add {
  appearance: none; cursor: pointer; font-family: var(--font); position: relative;
  width: 96px; height: 74px; border-radius: 16px; padding: .2rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #FFFDF6, #F4E4C6); border: 3px solid #C99A3C; box-shadow: 0 4px 0 #8E6420, 0 8px 12px rgba(74,31,92,.2);
  transition: transform .12s ease;
}
.vt-add img { height: 40px; width: auto; filter: drop-shadow(0 2px 2px rgba(60,30,20,.3)); }
.vt-add--o img { height: 34px; }
.vt-add span { font-size: 1rem; font-weight: 800; color: #4A1F5C; line-height: 1; }
.vt-add:active { transform: translateY(3px); box-shadow: 0 1px 0 #8E6420; }
@media (hover: hover) { .vt-add:hover { transform: translateY(-2px); } }
.vt-chest { position: relative; width: 250px; }
.vt-chest-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 8px rgba(60,25,70,.3)); }
.vt-in { position: absolute; left: 12%; right: 12%; top: 6%; height: 46%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.vt-in .vg-t, .vt-in .vg-o { display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 1px 2px; }
.vt-piece { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; line-height: 0; animation: fruitDrop .3s cubic-bezier(.3,1.6,.5,1) both; }
.vt-in .vg-t .vt-piece img { height: 22px; width: auto; }
.vt-in .vg-o .vt-piece img { height: 20px; width: auto; }
.vt-piece:active { transform: scale(.85); }
.vt-sum { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); }
.vt-sum b { display: grid; place-items: center; min-width: 54px; height: 38px; padding: 0 8px; border-radius: 12px; font-size: 1.5rem; font-weight: 800; color: #FFE27A; background: linear-gradient(180deg, #8E4FC0, #5A2370); box-shadow: inset 0 0 0 2px #E9C46A, 0 3px 0 #3A1248; }
.vt-chest.is-win .vt-chest-img { filter: drop-shadow(0 0 18px rgba(255, 226, 122, 1)) drop-shadow(0 8px 8px rgba(60,25,70,.3)); animation: goodPop .7s cubic-bezier(.3,1.6,.5,1); }
.vs-show { display: flex; align-items: center; gap: .6rem; flex: 0 0 100%; justify-content: center; }
.vs-grp { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .4rem .6rem .35rem; border-radius: 16px; background: rgba(255,250,238,.88); border: 2.5px solid #C99A3C; box-shadow: 0 3px 0 #8E6420; animation: plateIn .45s cubic-bezier(.3,1.5,.5,1) both; }
.vs-grp > b { font-size: 1.3rem; font-weight: 800; color: #4A1F5C; line-height: 1; }
.vs-grp.is-out { background: rgba(255,238,238,.9); border-color: #D99AA8; box-shadow: 0 3px 0 #B76A80; }
.vs-grp.is-out .vg img { opacity: .75; }
.vs-op { font-size: 2.4rem; font-weight: 800; color: #C98A1E; -webkit-text-stroke: 2px #5A2370; paint-order: stroke fill; }
.vg { display: flex; align-items: flex-end; gap: .3rem; }
.vg-t { display: grid; grid-template-columns: repeat(3, auto); gap: 2px; }
.vg-o { display: grid; grid-template-columns: repeat(5, auto); gap: 1px; }
.vg-t img { height: 22px; width: auto; display: block; }
.vg-o img { height: 20px; width: auto; display: block; }
.pr-field--vault .pr-choices { flex: 0 0 100%; }
@media (orientation: landscape) and (max-height: 500px) {
  .pr-field--vault { padding-right: 200px; gap: .3rem 1rem; }
  .vt-chest { width: 210px; }
  .vt-add { width: 84px; height: 62px; }
  .vt-add img { height: 32px; }
  .vg-t img { height: 18px; } .vg-o img { height: 16px; }
}
@media (orientation: portrait) {
  .pr-field--vault { padding: .3rem .1rem 175px; }
  .vt-src { flex-direction: row; order: 2; }
  .vs-show { flex-wrap: wrap; }
}

/* ==========================================================================
   (h) Zagadki — story problems on a parchment page
   ========================================================================== */
.pr-field--riddles { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: .3rem 220px .3rem 0; }
.rd-scroll {
  position: relative; min-width: min(100%, 300px); max-width: 100%; padding: .6rem 1.2rem .7rem 3rem; border-radius: 18px;
  background: linear-gradient(180deg, #FFFDF6, #F3E2BF); border: 3px solid #C99A3C;
  box-shadow: inset 0 0 0 2px #FFF6DE, 0 4px 0 #8E6420, 0 10px 16px rgba(74,31,92,.2);
}
.rd-scroll-img { position: absolute; left: -20px; top: -18px; width: 58px; height: auto; transform: rotate(-10deg); filter: drop-shadow(0 4px 4px rgba(60,25,70,.3)); }
.rd-art { display: flex; justify-content: center; }
.rd-cmp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .6rem; align-items: center; }
.rd-who { font-size: .86rem; font-weight: 800; color: #5A2370; text-align: right; white-space: nowrap; }
.rd-row { display: flex; flex-wrap: wrap; gap: 2px; max-width: 360px; }
.rd-row img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 1px rgba(60,30,20,.3)); animation: fruitDrop .3s cubic-bezier(.3,1.6,.5,1) calc(var(--k, 0) * .03s) both; }
.rd-big { display: flex; align-items: center; gap: .4rem; font-size: 2rem; font-weight: 800; color: #4A1F5C; }
.rd-big small { font-size: .8em; color: #C98A1E; }
.rd-box { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.3em; border-radius: 10px; border: 3px dashed #B8306A; color: #B8306A; animation: qPulse 1.3s ease-in-out infinite; }
.rd-plates { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; max-width: 440px; }
.rd-plate { position: relative; width: 84px; height: 62px; }
.rd-plate-img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.rd-row--pile { position: absolute; left: 8%; right: 8%; bottom: 34%; justify-content: center; gap: 0; }
.rd-row--pile img { width: 22px; height: 22px; margin-top: -8px; }
.rd-share { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.rd-friends { display: flex; gap: .3rem; }
.rd-friends img { width: 44px; height: auto; filter: drop-shadow(0 3px 3px rgba(60,25,70,.25)); animation: fruitBob 2s ease-in-out infinite; }
.rd-friends img:nth-child(2n) { animation-delay: -.7s; }
@media (orientation: landscape) and (max-height: 500px) {
  .pr-field--riddles { padding-right: 200px; gap: .4rem; }
  .rd-scroll { padding: .4rem .9rem .5rem 2.4rem; }
  .rd-row img { width: 22px; height: 22px; }
  .rd-big { font-size: 1.6rem; }
  .rd-friends img { width: 36px; }
  .rd-plate { width: 70px; height: 52px; }
}
@media (orientation: portrait) {
  .pr-field--riddles { padding: .6rem .3rem 175px; }
  .rd-row { max-width: 250px; }
}

/* ==========================================================================
   Kącik rodzica — castle panel
   ========================================================================== */
.parent-castle { padding: .3rem .5rem .6rem; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
body:has(.parent-castle) #app { max-width: 1040px; height: 100dvh; }
.pc-card {
  position: relative; width: min(980px, 100%); margin: .3rem auto 0; color: #4A1F5C;
  background: linear-gradient(180deg, #FFFBF1 0%, #F4E4C6 100%);
  border: 3px solid #C99A3C; border-radius: 22px;
  box-shadow: inset 0 0 0 3px #FFF6DE, inset 0 0 0 5px rgba(201,154,60,.4), 0 5px 0 #8E6420, 0 18px 36px rgba(30,10,50,.3);
  padding: .7rem .9rem .8rem;
}
.pc-title { margin: 0; font-size: 1.4rem; text-align: center; color: #4A1F5C; }
.pc-sub { margin: 0 0 .5rem; text-align: center; font-size: .82rem; font-weight: 700; color: #8A6A54; }
.pc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; }
.pc-sec h2, .pc-sec h3 { margin: 0 0 .35rem; font-size: 1rem; color: #5A2370; }
.pc-time { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .5rem; }
.pc-time > div { display: flex; flex-direction: column; align-items: center; padding: .35rem .3rem; border-radius: 14px; background: #FFFFFF; border: 2px solid #E2C584; box-shadow: 0 2px 0 #C9A35C; }
.pc-time small { font-size: .72rem; font-weight: 800; color: #8A6A54; }
.pc-time b { font-size: 1.5rem; line-height: 1.1; color: #5A2370; }
.pc-time em { font-style: normal; font-size: .72rem; font-weight: 700; color: #A8741E; }
.pc-skill { display: grid; grid-template-columns: 34px minmax(0, 1fr) 42px; gap: .45rem; align-items: center; padding: .25rem 0; border-bottom: 1px dashed rgba(201,154,60,.45); }
.pc-sym { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; color: #FFF3D6; background: linear-gradient(180deg, #A465D6, #5A2370); box-shadow: inset 0 0 0 1.5px #E9C46A; }
.pc-skill-t { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.pc-skill-t b { font-size: .86rem; line-height: 1.1; }
.pc-skill-t small { font-size: .7rem; font-weight: 700; color: #8A6A54; }
.pc-bar { display: block; height: 8px; border-radius: 999px; background: #EADBC0; overflow: hidden; box-shadow: inset 0 1px 2px rgba(90,50,20,.3); }
.pc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #CFA2F0, #F6CB52); }
.pc-pct { font-size: .9rem; font-weight: 800; color: #5A2370; text-align: right; }
.pc-togs { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }
.pc-tog {
  flex: 1 1 0; appearance: none; cursor: pointer; font-family: var(--font); display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  padding: .35rem .5rem; border-radius: 12px; background: #fff; border: 2px solid #E2C584; box-shadow: 0 2px 0 #C9A35C; color: #4A1F5C; font-weight: 800; font-size: .84rem;
}
.pc-sw { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #D8CBB4; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); transition: background .2s ease; flex: 0 0 auto; }
.pc-sw i { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s ease; }
.pc-tog.is-on .pc-sw { background: linear-gradient(180deg, #A465D6, #5A2370); }
.pc-tog.is-on .pc-sw i { transform: translateX(16px); }
.pc-grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 2px; max-width: 360px; margin: 0 auto; }
.pc-gh { display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #8A6A54; aspect-ratio: 1; }
.pc-c { display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; font-size: .62rem; color: #fff; }
.pc-c--0 { background: #EFE5D2; box-shadow: inset 0 0 0 1px #DCCBA8; }
.pc-c--1 { background: #E2CBF3; box-shadow: inset 0 0 0 1px #B990DC; }
.pc-c--2 { background: linear-gradient(180deg, #F7D46A, #D9A23A); box-shadow: inset 0 0 0 1px #A8741E; text-shadow: 0 1px 0 rgba(110,74,22,.6); }
.pc-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem .4rem; margin: .4rem 0; font-size: .7rem; font-weight: 700; color: #7A5A44; }
.pc-legend .pc-c { width: 14px; height: 14px; display: inline-grid; }
.pc-lvls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .5rem; }
.pc-lv { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 800; white-space: nowrap; overflow: hidden; }
.pc-lv img { width: 26px; height: 26px; object-fit: contain; }
.pc-lv b { color: #C98A1E; letter-spacing: 1px; font-size: .7rem; }
.pc-btns { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .7rem; }
@media (orientation: portrait) { .pc-cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pet grounding — feet on the painted floor
   ========================================================================== */
@media (orientation: portrait) {
  body.room-bathroom .sky { background-size: auto 100% !important; background-position: 50% 100% !important; }
}

/* v15 · Łazienka grounding (landscape): stand on the tiled floor */
@media (orientation: landscape) {
  body.world-zamek .bathroom-pet-zone { align-self: end; padding-bottom: 0; }
  body.world-zamek .bathroom-pet { height: min(46vh, 172px); }
  body.world-zamek .bathroom-pet-zone .hub-pet-name { margin-top: -6px; }
}
/* paged menu: keep the neighbour page fully hidden */
.pr-pages { padding-left: 0; padding-right: 0; }
.pr-page.pr-games { padding: 0 .25rem; box-sizing: border-box; }
/* fruit: counters on one line, room below, pile leaves during the question */
.pr-basket-n { white-space: nowrap; display: inline-flex; align-items: baseline; justify-content: center; line-height: 32px; min-width: 46px; box-sizing: border-box; }
.pr-basket-n b { line-height: 1; }
.pr-field--fruit.is-ask .pr-pile { display: none; }
@media (orientation: landscape) { .pr-field--fruit { padding-bottom: 22px; } }
/* treats: bigger plates & cookies */
.tr-plate { width: 132px; height: 92px; }
.tr-cookies img { width: 30px; height: 30px; margin-top: -10px; }
.tr-plate-n { min-width: 30px; height: 30px; font-size: 1.05rem; }
.tr-plates { max-width: 560px; }
@media (orientation: landscape) and (max-height: 500px) {
  .tr-plate { width: 118px; height: 80px; }
  .tr-cookies img { width: 27px; height: 27px; }
}
@media (orientation: portrait) {
  .tr-plates { max-width: 370px; gap: .9rem .7rem; }
  .tr-plate { width: 112px; height: 80px; }
  .tr-cookies img { width: 27px; height: 27px; }
}
/* riddles: answers sit under the scroll, no overflow under the plaque */
.pr-field--riddles .pr-choices { flex: 0 0 auto; height: auto; min-height: 0; }
.pr-field--riddles { justify-content: center; overflow: visible; }
