/* ===== PROTOTYPE hub — 4 big "okienka" (care-first) + small secondary buttons ===== */
body.world-zamek .proto .hub-btn { font-family: 'Baloo 2', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
body.world-zamek .proto .hub-btn::before, body.world-zamek .proto .hub-btn::after { content: none; }

/* —— main tile: an arched castle window in a gold frame, ribbon label on the sill —— */
body.world-zamek .proto .pmain { position: fixed; z-index: 4; pointer-events: none; }
body.world-zamek .proto .hub-btn.pt {
  --tw: 190px; --g1: #FFF6F4; --g2: #F6C9CC; --ink: #3E1650; --rb1: #8E4FC0; --rb2: #5A2370; --rbd: #3A1248;
  pointer-events: auto; position: relative; display: block; width: var(--tw); height: calc(var(--tw) * 1.06);
  margin: 0; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important;
  cursor: pointer; transform: none; min-width: 0; min-height: 0;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), filter .18s ease;
  animation: ptIn .5s cubic-bezier(.3, 1.5, .5, 1) calc(var(--pi, 0) * .07s) both;
  filter: drop-shadow(0 10px 14px rgba(58, 18, 72, .28));
}
@keyframes ptIn { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
body.world-zamek .proto .hub-btn.pt:active { transform: translateY(3px) scale(.97); }
@media (hover: hover) { body.world-zamek .proto .hub-btn.pt:hover { transform: translateY(-4px); } }
.pt-arch {
  position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--tw) * .13);
  border-radius: 50% 50% 18px 18px / 38% 38% 18px 18px; box-sizing: border-box;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--g1), var(--g2));
  border: 4px solid #F2CF6E;
  box-shadow: 0 0 0 2.5px #9C6A1E, inset 0 0 0 3px rgba(255, 255, 255, .75), inset 0 -10px 18px rgba(90, 35, 112, .12), 0 5px 0 2px #7A4E14;
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
/* gold finial on the arch top */
.pt-arch::before {
  content: ''; position: absolute; left: 50%; top: -11px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF6C8, #F2C64E 45%, #A8701C); box-shadow: 0 1px 2px rgba(80, 40, 0, .45);
}
.pt-glow { display: none; }
.pt-arch img {
  position: relative; width: 66%; height: 66%; object-fit: contain; margin-top: -6%;
  filter: drop-shadow(0 5px 4px rgba(60, 25, 70, .28)); transition: transform .22s cubic-bezier(.3, 1.6, .5, 1);
}
@media (hover: hover) { .hub-btn.pt:hover .pt-arch img { transform: scale(1.08) rotate(-3deg); } }
.pt-rib {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 86%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; padding: 3px 8px 5px; border-radius: 14px;
  background: linear-gradient(180deg, var(--rb1), var(--rb2)); border: 2px solid #F2CF6E; box-shadow: 0 3px 0 var(--rbd), 0 6px 10px rgba(40, 10, 50, .25);
}
.pt-lab { font-weight: 800; font-size: calc(var(--tw) * .118); line-height: 1.05; color: #FFF3D6; white-space: nowrap; letter-spacing: .01em; text-shadow: 0 1.5px 0 rgba(40, 10, 50, .55); }
.pt-sub { font-weight: 700; font-size: calc(var(--tw) * .068); line-height: 1.1; color: #F4DDF8; white-space: nowrap; opacity: .95; }
.pt--rose  { --g1: #FFF7F3 !important; --g2: #F7C6C9 !important; }
.pt--plum  { --g1: #FBF3FF !important; --g2: #DCC2F1 !important; }
.pt--sky   { --g1: #F3FBFF !important; --g2: #BFE0F6 !important; }
.pt--night { --g1: #7A68C9 !important; --g2: #3A2C7E !important; }
.pt--night .pt-arch { background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 240, 190, .55), rgba(255, 240, 190, 0) 70%), linear-gradient(180deg, var(--g1), var(--g2)); }
.pt--rose .pt-rib { --rb1: #E5566F; --rb2: #A82648; --rbd: #6E1430; }
.pt--sky  .pt-rib { --rb1: #4C9BD8; --rb2: #2A62A8; --rbd: #163C70; }
.pt--night .pt-rib { --rb1: #5B4AB4; --rb2: #33246F; --rbd: #1C1240; }
/* Nakarm comes first: a soft gold breathing halo around the frame (not under the hero) */
.pt--rose .pt-arch { animation: ptCall 2.4s ease-in-out infinite; }
@keyframes ptCall { 0%, 100% { box-shadow: 0 0 0 2.5px #9C6A1E, inset 0 0 0 3px rgba(255,255,255,.75), inset 0 -10px 18px rgba(90,35,112,.12), 0 5px 0 2px #7A4E14, 0 0 0 0 rgba(255, 214, 102, 0); }
  50% { box-shadow: 0 0 0 2.5px #9C6A1E, inset 0 0 0 3px rgba(255,255,255,.75), inset 0 -10px 18px rgba(90,35,112,.12), 0 5px 0 2px #7A4E14, 0 0 0 8px rgba(255, 214, 102, .45); } }

.pt-sub { font-size: calc(var(--tw) * .074); }
body.world-zamek .proto .hub-btn.pt { max-width: none; }

/* ===== the 4 windows: two each side of the hero ===== */
body.world-zamek .proto--A .pmain {
  inset: calc(var(--tb, 90px) + 14px) max(18px, 2.6vw) 18px; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr 1fr;
  align-items: center; row-gap: 16px;
}
body.world-zamek .proto--A .hub-btn.pt { --tw: clamp(140px, min(16.5vw, 25vh), 200px); }
body.world-zamek .proto--A .hub-btn.pt:nth-child(1) { grid-area: 1 / 1; }
body.world-zamek .proto--A .hub-btn.pt:nth-child(2) { grid-area: 1 / 3; }
body.world-zamek .proto--A .hub-btn.pt:nth-child(3) { grid-area: 2 / 1; }
body.world-zamek .proto--A .hub-btn.pt:nth-child(4) { grid-area: 2 / 3; }
body.world-zamek .proto--A1 .pmain { top: calc(var(--tb, 90px) + 84px); }
@media (orientation: portrait) {
  body.world-zamek .proto--A .pmain { inset: auto max(16px, 3vw) auto; top: 24vh; row-gap: 5vh; grid-template-rows: auto auto; align-content: start; }
  body.world-zamek .proto--A1 .pmain { top: 24vh; }
  body.world-zamek .proto--A .hub-btn.pt { --tw: clamp(130px, 23vw, 200px); }
}

/* ===== Misje + Garderoba: clear icon + label buttons ===== */
body.world-zamek .proto .hub-btn.ps {
  position: fixed; z-index: 6; display: flex; flex-direction: row; align-items: center; gap: 8px;
  width: auto; max-width: none; height: 62px; margin: 0; padding: 0 18px 0 6px; min-width: 0; min-height: 0; box-sizing: border-box;
  border-radius: 31px !important; cursor: pointer;
  background: linear-gradient(180deg, #FFFCF3, #F3E2BC) !important; border: 2.5px solid #D9B25A !important;
  box-shadow: 0 0 0 1.5px #9C6A1E, 0 4px 0 1.5px #7A4E14, 0 9px 16px rgba(58, 18, 72, .28), inset 0 1px 0 #fff !important;
  color: #3E1650; transform: none; transition: transform .16s cubic-bezier(.3, 1.6, .5, 1);
}
body.world-zamek .proto .hub-btn.ps:active { transform: translateY(2px) scale(.96); }
.ps-ico { width: 50px; height: 50px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, #fff, #F6E3B0); box-shadow: inset 0 0 0 2px #E2BE6A; }
.ps-ico img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 1px rgba(60, 25, 70, .25)); }
.ps-txt { display: flex; flex-direction: column; align-items: flex-start; }
.ps-lab { font-weight: 800; font-size: 1.22rem; line-height: 1; white-space: nowrap; color: #4A1A63; }
.ps-sub { font-weight: 700; font-size: .78rem; line-height: 1.1; white-space: nowrap; color: #8A6334; margin-top: 2px; }
.ps-new { display: none; position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(#FF6B7E, #D8264A); border: 2.5px solid #fff; color: #fff; font: 800 .95rem/21px 'Baloo 2', system-ui, sans-serif; text-align: center;
  box-shadow: 0 2px 4px rgba(120, 10, 40, .35); animation: h22dot 1.8s ease-in-out infinite; }
.has-news .ps-new { display: block; }
/* wardrobe: a little purple accent so it reads as the "dress-up" door */
body.world-zamek .proto .hub-btn.ps--gold .ps-ico { background: radial-gradient(circle at 40% 35%, #fff, #E9D6F7); box-shadow: inset 0 0 0 2px #C9A0E6; }

/* A1: Misje top-left under the bar · Garderoba centred on the path under the hero */
body.world-zamek .proto--A1 .pmis { left: max(18px, 2.6vw); top: calc(var(--tb, 90px) + 12px); }
body.world-zamek .proto--A1 .pwar { left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
body.world-zamek .proto--A1 .pwar:active { transform: translateX(-50%) translateY(2px) scale(.96); }
@media (orientation: portrait) { body.world-zamek .proto--A1 .pmis { left: max(16px, 3vw); } }

/* A2: Misje as a hanging sign centred under the bar · Garderoba stands on the grass at the hero's side */
body.world-zamek .proto--A2 .pmis {
  left: 50%; transform: translateX(-50%); top: calc(var(--tb, 90px) + 14px); height: 58px; border-radius: 14px 14px 22px 22px !important; padding: 0 20px 0 6px;
}
body.world-zamek .proto--A2 .pmis::before, body.world-zamek .proto--A2 .pmis::after {
  content: '' !important; position: absolute; top: -16px; width: 3px; height: 16px; background: linear-gradient(#C9A14A, #8A5A1C); border-radius: 2px;
}
body.world-zamek .proto--A2 .pmis::before { left: 22%; } body.world-zamek .proto--A2 .pmis::after { right: 22%; }
body.world-zamek .proto--A2 .pmis:active { transform: translateX(-50%) translateY(2px) scale(.96); }
body.world-zamek .proto--A2 .pwar { flex-direction: column !important; height: auto; padding: 8px 12px 8px; gap: 2px; border-radius: 22px 22px 16px 16px !important; }
body.world-zamek .proto--A2 .pwar .ps-ico { width: 64px; height: 64px; }
body.world-zamek .proto--A2 .pwar .ps-ico img { width: 56px; height: 56px; }
body.world-zamek .proto--A2 .pwar .ps-txt { align-items: center; }

/* ===== name: a premium ribbon ABOVE the head ===== */
body.world-zamek .proto .hub22-pet .hub-pet-name.pname {
  position: absolute !important; left: 0; transform: translateX(-50%); margin: 0 !important; z-index: 4;
  padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; min-width: 0;
}
.pname-t {
  position: relative; display: block; padding: 4px 26px 6px; white-space: nowrap;
  font: 800 1.3rem/1.1 'Baloo 2', system-ui, sans-serif; color: #FFF6DC; letter-spacing: .02em; text-shadow: 0 1.5px 0 rgba(40, 10, 50, .55);
  background: linear-gradient(180deg, #9C5BD0, #5E2780); border: 2.5px solid #F2CF6E; border-radius: 12px;
  box-shadow: 0 0 0 1.5px #8A5A1C, 0 4px 0 1px #3A1248, 0 8px 14px rgba(40, 10, 50, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
/* ribbon tails */
.pname-t::before, .pname-t::after {
  content: ''; position: absolute; top: 10px; width: 18px; height: 22px; z-index: -1;
  background: linear-gradient(180deg, #7A3FA6, #4A1A63); border: 2px solid #D9B25A;
}
.pname-t::before { left: -12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); border-right: 0; }
.pname-t::after { right: -12px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); border-left: 0; }
/* tiny gold star on top of the plaque */
.pname::before { content: '★' !important; position: absolute; left: 50%; top: -13px; transform: translateX(-50%); font-size: 18px; line-height: 1; color: #FFD45C;
  text-shadow: 0 0 1px #8A5A1C, 0 1px 0 #8A5A1C, 0 0 6px rgba(255, 220, 120, .9); z-index: 2; }

/* (r2 top bar replaced by the r4 mirrored top bar at the end of this file) */
body.world-zamek .proto--A2 .hub-btn.ps.pwar { height: 116px; width: 128px; justify-content: center; padding: 6px 8px 8px; }
body.world-zamek .proto--A2 .pmis::before, body.world-zamek .proto--A2 .pmis::after { z-index: 1; display: block !important; }
.pname-t::before, .pname-t::after { top: 12px; width: 20px; height: 24px; }
.pname-t::before { left: -15px; } .pname-t::after { right: -15px; }

/* ===== r3 · P1/P2/P3: painted objects standing in the scene (no window, frame or pill) ===== */
body:has(.proto--P) .sky { background-position: var(--pbgx, 50%) 100% !important; }
body.world-zamek .proto--P .hub-btn.pobj {
  position: fixed !important; z-index: 4; width: var(--ow, 120px) !important; height: var(--oh, 150px) !important; max-width: none !important; min-width: 0 !important;
  margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  display: block !important; overflow: visible !important; transform: none; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); -webkit-tap-highlight-color: transparent;
}
body.world-zamek .proto--P .hub-btn.pobj::before, body.world-zamek .proto--P .hub-btn.pobj::after { display: none !important; }
body.world-zamek .proto--P .hub-btn.pobj:active { transform: translateY(2px) scale(.96); }
@media (hover: hover) { body.world-zamek .proto--P .hub-btn.pobj:hover .pobj-art img { transform: translateY(-3px); } }
.pobj-art { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
/* soft contact shadow on the grass (an ellipse of shade, not a pedestal) */
.pobj-art::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -3%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 30, 20, .32), rgba(40, 30, 20, 0)); z-index: -1; }
.pobj-art img { position: relative; height: 100%; width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(50, 25, 50, .28)); transition: transform .22s cubic-bezier(.3, 1.6, .5, 1); }
.pobj--war .pobj-art img { height: 100%; }
.pobj-lab {
  position: absolute; left: 50%; top: calc(100% - var(--lov, 12px)); transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 800 1.12rem/1 'Baloo 2', system-ui, sans-serif; color: #5A2378; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  padding: 5px 16px 6px; border-radius: 11px; background: linear-gradient(180deg, #FFFBEF, #F4E2B8); border: 2px solid #D4AE5A;
  box-shadow: 0 3px 0 #A97E34, 0 6px 10px rgba(40, 10, 50, .25), inset 0 1px 0 #fff;
}
/* the red "!" sits on the board's top-right post */
.pobj--mis .ps-new { top: 4%; right: calc(50% - var(--oh) * 383 / 480 / 2 - 8px); width: 28px; height: 28px; font-size: 1rem; line-height: 23px; pointer-events: none; }
/* P3: the board hangs from the bar on two little gold chains */
body.world-zamek .proto--P3 .pobj--mis .pobj-art::before {
  content: ''; position: absolute; top: -20px; left: 22%; right: 22%; height: 24px; z-index: -1;
  background: linear-gradient(90deg, transparent 0 0, #B8892E 0 3px, transparent 3px calc(100% - 3px), #B8892E calc(100% - 3px));
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 4px, rgba(0,0,0,.45) 4px 6px); mask: repeating-linear-gradient(180deg, #000 0 4px, rgba(0,0,0,.45) 4px 6px);
}

/* ===== r4 · mirrored top bar: [Zamek][Dźwięk] · name + meters · [Monety][Rodzic] =====
   side columns have one fixed width, so the centre column (name row + meters) sits exactly on W/2 */
body.world-zamek .topbar.tb4 {
  --tb-main: 72px; --tb-pill: 108px; --tb-gap: 10px; --tb-side: calc(var(--tb-main) + var(--tb-gap) + var(--tb-pill));
  display: grid !important; grid-template-columns: var(--tb-side) minmax(0, 1fr) var(--tb-side) !important; grid-template-areas: "l pet r" "l meters r";
  align-items: center; column-gap: 16px; row-gap: 5px; height: auto !important; min-height: 0 !important; padding: 7px 16px 9px !important;
}
body.world-zamek .topbar.tb4:not(.topbar--care) { grid-template-areas: "l pet r"; }
body.world-zamek .topbar.tb4 .tb-center { display: contents !important; }
body.world-zamek .topbar.tb4 .tb-side { display: flex !important; align-items: center; gap: var(--tb-gap) !important; width: var(--tb-side); margin: 0 !important; padding: 0 !important; }
body.world-zamek .topbar.tb4 .tb-side--l { grid-area: l; justify-content: flex-start; }
body.world-zamek .topbar.tb4 .tb-side--r { grid-area: r; justify-content: flex-end; }
/* outer pair: Zamek ⟷ Rodzic — identical box, icon box and label */
body.world-zamek .topbar.tb4 .tb-main {
  appearance: none; flex: 0 0 var(--tb-main); width: var(--tb-main) !important; height: 70px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px !important; background: none; border: 0; opacity: 1 !important;
}
body.world-zamek .topbar.tb4 .tb-main-ico { position: relative; width: 48px !important; height: 48px !important; display: grid !important; place-items: center; flex: 0 0 48px; }
body.world-zamek .topbar.tb4 .tb-main-ico img { max-width: 48px !important; max-height: 48px !important; width: auto !important; height: auto !important; object-fit: contain; }
body.world-zamek .topbar.tb4 .tb-home-castle .tb-main-ico img { height: 48px !important; }
body.world-zamek .topbar.tb4 .tb-lock .tb-main-ico img { height: 40px !important; }
body.world-zamek .topbar.tb4 .tb-main-lab {
  display: block !important; margin: 0 !important; font: 800 .86rem/1 'Baloo 2', system-ui, sans-serif !important; letter-spacing: .04em !important;
  color: #5A2370 !important; text-shadow: 0 0 2px #FFF8EA, 0 1px 0 #FFF8EA !important; height: 14px; white-space: nowrap;
}
/* inner pair: Dźwięk ⟷ Monety — identical cream-and-gold pill */
body.world-zamek .topbar.tb4 .tb-pill {
  appearance: none; flex: 0 0 var(--tb-pill); width: var(--tb-pill) !important; height: 52px !important; margin: 0 !important; padding: 0 !important; border-radius: 26px !important;
  display: flex !important; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box;
  background: linear-gradient(180deg, #FFFDF4 0%, #F7E3A8 100%) !important; border: 2.5px solid #C99A3C !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .75), 0 3px 0 #A8741E, 0 5px 8px rgba(74, 31, 92, .16) !important; transform: none;
}
body.world-zamek .topbar.tb4 .tb-pill:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .75), 0 1px 0 #A8741E !important; }
body.world-zamek .topbar.tb4 .tb-snd svg { width: 32px !important; height: 32px !important; }
body.world-zamek .topbar.tb4 .tb-purse-coin { width: 38px !important; height: 38px !important; margin: 0 !important; }
body.world-zamek .topbar.tb4 .tb-purse-n { margin: 0 !important; padding: 0 !important; min-width: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important;
  font: 800 1.3rem/1 'Baloo 2', system-ui, sans-serif !important; color: #4A1F5C !important; }
/* centre: name row on the axis */
body.world-zamek .topbar.tb4 .tb-pet-row { grid-area: pet; justify-self: center; display: inline-flex !important; align-items: center; gap: 14px !important; max-width: 100%; }
body.world-zamek .topbar.tb4 .tb-pet { font: 800 1.35rem/1.1 'Baloo 2', system-ui, sans-serif !important; }
body.world-zamek .topbar.tb4 .tb-prog21 { display: inline-flex !important; align-items: center; gap: 6px; }
body.world-zamek .topbar.tb4 .tb-prog21 img { height: 26px !important; width: auto; }
body.world-zamek .topbar.tb4 .tb-prog21-t { font-size: .98rem !important; }
body.world-zamek .topbar.tb4 .tb-prog21 .tb-prog-track { width: 90px !important; height: 12px !important; border-radius: 7px !important; }
/* four meters: identical chips — same width, gap, icon box, label and bar baselines */
body.world-zamek .topbar.tb4 .tb-meters { grid-area: meters; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px !important; width: 100% !important; max-width: 760px; justify-self: center; margin: 0 !important; padding: 0 !important; }
body.world-zamek .topbar.tb4 .tb-meter {
  --m1: #FFB648; --m2: #F2741C; --mt: #FFE8CC; --mi: #B2500C;
  display: grid !important; grid-template-columns: 40px minmax(0, 1fr) !important; grid-template-rows: 16px 13px !important; column-gap: 8px !important; row-gap: 5px !important; align-content: center; align-items: center;
  height: 50px !important; box-sizing: border-box; padding: 0 12px 0 6px !important; border-radius: 16px !important; min-width: 0; margin: 0 !important; width: auto !important;
  background: linear-gradient(180deg, #FFFFFF, var(--mt)) !important; border: 1.5px solid color-mix(in srgb, var(--m2) 45%, white) !important; box-shadow: 0 2px 0 color-mix(in srgb, var(--m2) 30%, #E9D9B8) !important;
}
body.world-zamek .topbar.tb4 .tb-meter[data-meter="clean"]  { --m1: #6CCBFF; --m2: #2A86E0; --mt: #DDF1FF; --mi: #165FA8; }
body.world-zamek .topbar.tb4 .tb-meter[data-meter="fun"]    { --m1: #FF8CC6; --m2: #E0458E; --mt: #FFE0EF; --mi: #A8235F; }
body.world-zamek .topbar.tb4 .tb-meter[data-meter="energy"] { --m1: #B79BFF; --m2: #6B48D6; --mt: #EAE2FF; --mi: #4A2EA8; }
body.world-zamek .topbar.tb4 .tb-meter .tb-meter-ico { grid-row: 1 / 3; grid-column: 1; width: 40px !important; height: 40px !important; display: block !important; margin: 0 !important; padding: 0 !important; align-self: center; }
body.world-zamek .topbar.tb4 .tb-meter .tb-meter-ico img { display: block; width: 40px !important; height: 40px !important; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(60, 25, 70, .25)); }
body.world-zamek .topbar.tb4 .tb-meter .tb-meter-lab { grid-row: 1; grid-column: 2; display: block !important; font: 800 .95rem/16px 'Baloo 2', system-ui, sans-serif !important; height: 16px; color: var(--mi) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 !important; text-align: left; }
body.world-zamek .topbar.tb4 .tb-meter .tb-meter-track {
  grid-row: 2; grid-column: 2; display: block !important; width: 100% !important; height: 13px !important; border-radius: 8px !important; overflow: hidden; margin: 0 !important;
  background: rgba(255, 255, 255, .9) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--m2) 40%, white), inset 0 2px 3px rgba(0, 0, 0, .08) !important; border: 0 !important;
}
body.world-zamek .topbar.tb4 .tb-meter .tb-meter-fill { display: block; height: 100% !important; border-radius: 8px !important; background: linear-gradient(180deg, color-mix(in srgb, var(--m1) 70%, white), var(--m1) 45%, var(--m2)) !important; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12) !important; }
body.world-zamek .topbar.tb4 .tb-meter.low { animation: tbLow4 1.6s ease-in-out infinite; }
@keyframes tbLow4 { 50% { box-shadow: 0 2px 0 color-mix(in srgb, var(--m2) 30%, #E9D9B8), 0 0 0 3px color-mix(in srgb, var(--m2) 35%, transparent); } }
@media (orientation: portrait) {
  body.world-zamek .topbar.tb4 { --tb-main: 64px; --tb-pill: 96px; --tb-gap: 8px; grid-template-areas: "l pet r" "meters meters meters"; column-gap: 12px; row-gap: 8px; padding: 7px 12px 10px !important; }
  body.world-zamek .topbar.tb4 .tb-meters { gap: 8px !important; max-width: none; }
  body.world-zamek .topbar.tb4 .tb-meter { padding: 0 10px 0 5px !important; column-gap: 6px !important; }
  body.world-zamek .topbar.tb4 .tb-pet-row { flex-direction: column; gap: 2px !important; }
}

/* ===== r4 · M1/M2: one premium Misje object (golden scroll lectern) on the axis ===== */
body.world-zamek .proto--M .pobj--mis2 .ps-new { top: calc(var(--oh) * .12); right: calc(var(--ow) * .1 - 12px); width: 30px; height: 30px; font-size: 1.05rem; line-height: 25px; }
body.world-zamek .proto--M2 .pobj--mis2 .pobj-art::after { opacity: .7; }

/* ===== r4 · Garderoba lives in the bedroom: painted wardrobe against the left wall, knight steps aside ===== */
.bedroom15 .bed-art {
  --wh: calc(var(--ah) * .56); --ww: calc(var(--wh) * 308 / 520);
  --wc: max(13.5%, calc((var(--aw) - 100cqw) / 2 + 18px + var(--ww) / 2));   /* never clipped by the visible left edge */
}
.bedroom15 .bed-war {
  position: absolute; z-index: 5; left: var(--wc); bottom: 13.5%; width: var(--ww); height: var(--wh); transform: translateX(-50%);
  appearance: none; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), filter 1s ease; --lov: 14px;
}
.bedroom15 .bed-war:active { transform: translateX(-50%) translateY(2px) scale(.97); }
@media (hover: hover) { .bedroom15 .bed-war:hover .pobj-art img { transform: translateY(-3px); } }
.bedroom15 .bed-war .pobj-art::after { left: 6%; right: 6%; bottom: -2%; height: 6%; }
.bedroom15 .bed-war .pobj-art img { filter: drop-shadow(0 6px 8px rgba(40, 15, 40, .35)); }
.bedroom15.is-asleep .bed-war { filter: brightness(.7) saturate(.85); }
.bedroom15 .bedroom-pet-zone { left: 51%; }   /* r5: big wardrobe owns the left wall; the hero stands on the rug in front of the bed foot, clear of wardrobe and candle */
@media (orientation: portrait) {
  .bedroom15 .bed-art { --wh: calc(var(--ah) * .142); --wc: max(12.5%, calc((var(--aw) - 100cqw) * .15 * -1 + 18px + var(--ww) / 2)); }
  .bedroom15 .bed-war { bottom: 10.6%; }
  .bedroom15 .bedroom-pet-zone { left: 60%; }
}

/* ===== r5 · N1–N3: round-3 board back + a mirrored decoration; knight big on the path ===== */
body.world-zamek .proto--N .pdeco { position: fixed; z-index: 3; width: var(--ow); height: var(--oh); pointer-events: none; }
body.world-zamek .proto--N .pobj--n .ps-new { right: calc(var(--ow) * .02 - 10px); }
body.world-zamek .proto--N .pobj--hang .ps-new { top: calc(var(--oh) * .27); right: calc(var(--ow) * .0 - 8px); }
body.world-zamek .proto--N3 .pobj-art::after { display: none; }              /* hanging: no ground shadow */
body.world-zamek .proto--N3 .hub-btn.pobj, body.world-zamek .proto--N3 .pdeco { z-index: 2; }   /* chains tuck under the bar */
body.world-zamek .proto--N3 .pobj-art img { filter: drop-shadow(0 8px 8px rgba(50, 25, 50, .3)); transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  body.world-zamek .proto--N3 .pobj-art img { animation: r5sway 5s ease-in-out infinite; }
  body.world-zamek .proto--N3 .pdeco .pobj-art img { animation-delay: -2.5s; }
}
@keyframes r5sway { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }

/* ═══ r5 (Sara): premium Misje panel — kid-clear: 1) today's 3 tasks, 2) 14-day gift road ═══ */
.qb-overlay--r5 { padding: 184px 16px 14px; align-items: start; background: radial-gradient(ellipse at 50% 55%, rgba(60, 20, 80, .45), rgba(30, 8, 44, .72)); }
.qb-card.r5b {
  width: min(1080px, 100%); max-height: calc(100dvh - 196px); overflow: visible; box-sizing: border-box;
  padding: 34px 26px 20px; border-radius: 30px; font-family: 'Baloo 2', system-ui, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #FFFDF6 0%, #FBF0D8 55%, #F1DDB4 100%);
  border: 4px solid #C99A3C;
  box-shadow: inset 0 0 0 4px #FFF6DE, inset 0 0 0 7px rgba(201,154,60,.45), 0 7px 0 #8E6420, 0 28px 60px rgba(20,6,30,.55);
}
.r5b-title { position: absolute; left: 50%; top: 0; transform: translate(-50%, -58%); z-index: 3; pointer-events: none; }
.r5b-title span {
  display: block; font-size: 1.9rem; line-height: 1; font-weight: 800; color: #FFF3D6; letter-spacing: .04em;
  padding: .42rem 2.6rem .5rem; border-radius: 14px; text-shadow: 0 2px 0 rgba(40,10,50,.55);
  background: linear-gradient(180deg, #9A5BCC, #5A2370);
  box-shadow: inset 0 0 0 2px #F0CE72, inset 0 0 0 4px rgba(90,35,112,.6), 0 4px 0 #3A1248, 0 10px 16px rgba(58,18,72,.3);
}
.qb-card.r5b .qb-close { right: 14px; top: 14px; width: 46px; height: 46px; }
.qb-card.r5b .qb-close svg { width: 22px; height: 22px; }
.r5b-sec h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .55rem; font-size: 1.35rem; line-height: 1.1; font-weight: 800; color: #5A2370; }
.r5b-sec h3 em { font-style: normal; font-weight: 700; font-size: .78em; color: #A8741E; }
.r5b-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  font-size: 1.2rem; color: #4A1F5C; background: linear-gradient(180deg, #FFF2BE, #F2C24E 60%, #D29A2C); border: 2px solid #A8741E; box-shadow: 0 2px 0 #8E6420;
}
.r5b-sec--w { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(201,154,60,.55); }
/* 1 — task cards */
.r5b-ms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.r5b-m {
  position: relative; display: grid; grid-template-rows: 78px auto 1fr auto; justify-items: center; gap: 8px;
  padding: 12px 14px 14px; border-radius: 22px; text-align: center; min-height: 208px; box-sizing: border-box;
  background: linear-gradient(180deg, #FFFFFF, #FFF6E2); border: 3px solid #E2C584; box-shadow: 0 4px 0 #C9A35C, 0 8px 16px rgba(120,70,20,.14);
}
.r5b-m-ico { position: relative; width: 78px; height: 78px; }
.r5b-m-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(60,25,70,.25)); }
.r5b-m-t { font-size: 1.12rem; line-height: 1.15; font-weight: 800; color: #4A1F5C; align-self: center; }
.r5b-bar { position: relative; display: block; width: 100%; height: 22px; border-radius: 999px; background: #EADBC0; box-shadow: inset 0 2px 3px rgba(90,50,20,.3); overflow: hidden; align-self: end; }
.r5b-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(180deg, #FFE68A, #F2B93A); box-shadow: inset 0 -3px 0 rgba(160,100,20,.25); }
.r5b-bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: .88rem; line-height: 22px; font-weight: 800; color: #6A4A2E; }
.r5b-pay { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .8rem .14rem; border-radius: 999px; font-size: 1.15rem; font-weight: 800; color: #8A5A12; background: #FFF0C2; border: 2px solid #E9C46A; }
.r5b-pay .ci, .r5b-claim .ci, .r5b-dayclaim .ci { height: 1.35em; }
.r5b-claim { font-size: 1.05rem; padding: .34rem 1rem .4rem; animation: cplayBreath 1.6s ease-in-out infinite; }
.r5b-m.is-done { border-color: #F2C24E; background: linear-gradient(180deg, #FFFDF0, #FFEDB0); box-shadow: 0 0 0 3px rgba(242,194,78,.45), 0 4px 0 #C9A35C; }
.r5b-m.is-done .r5b-bar i { background: linear-gradient(180deg, #B6E77F, #5DAF34); }
.r5b-m.is-claimed { opacity: .78; }
.r5b-got { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .8rem .16rem; border-radius: 999px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #9BDA6A, #4E9A2A); box-shadow: 0 2px 0 #2E6A1E; }
.r5b-got svg { width: 16px; height: 16px; }
/* 2 — 14-day gift road */
.r5b-road { position: relative; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 7px; padding-top: 12px; }
.r5b-road::before { content: ''; position: absolute; left: 3%; right: 3%; top: calc(12px + 46px); height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, #E2C584 0 10px, transparent 10px 16px); z-index: 0; }
.r5b-day {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  height: 92px; padding: 5px 2px 6px; box-sizing: border-box; border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF, #F6E8C9); border: 2px solid #E2C584; box-shadow: 0 3px 0 #C9A35C;
}
.r5b-day-n { font-size: .82rem; line-height: 1; font-weight: 800; color: #8A6A54; }
.r5b-day-art { position: relative; width: 40px; height: 40px; }
.r5b-day-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(120,70,10,.3)); }
.r5b-day-art .r5b-coin { inset: 5px; width: 30px; height: 30px; }
.r5b-day-c { font-size: .86rem; line-height: 1; font-weight: 800; color: #A8741E; }
.r5b-day.is-prize { background: linear-gradient(180deg, #FFF8DA, #FFE39A); border-color: #D9A93A; box-shadow: 0 3px 0 #A8741E, inset 0 0 0 2px rgba(255,255,255,.7); }
.r5b-day.is-prize .r5b-day-art { width: 46px; height: 46px; margin-top: -3px; }
.r5b-day.is-past { background: linear-gradient(180deg, #F3EEFB, #E2D4F2); border-color: #B990DC; box-shadow: 0 3px 0 #9A72BE; }
.r5b-day.is-past .r5b-day-art img { filter: saturate(.6) opacity(.7); }
.r5b-day-ok { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #9BDA6A, #4E9A2A); border: 2px solid #fff; }
.r5b-day-ok svg { width: 12px; height: 12px; }
.r5b-day.is-now {
  transform: scale(1.12); z-index: 2; border: 3px solid #F2C24E;
  background: linear-gradient(180deg, #FFFBE6, #FFE7A0);
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 6px rgba(242,194,78,.6), 0 4px 0 #A8741E, 0 0 22px rgba(255,210,110,.9);
}
.r5b-today-tag { margin-top: -15px; padding: 1px 8px 2px; border-radius: 8px; font-size: .72rem; line-height: 1.1; font-weight: 800; letter-spacing: .05em; color: #fff; background: linear-gradient(180deg, #E0565B, #B32D3A); box-shadow: 0 2px 0 #7E1A26; }
.r5b-foot { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 16px; min-height: 58px; }
.r5b-dayclaim { font-size: 1.3rem; padding: .5rem 1.6rem .58rem; animation: cplayBreath 1.6s ease-in-out infinite; }
.r5b-dayclaim b { margin-left: .1rem; }
.r5b-back { font-size: 1.1rem; font-weight: 800; color: #4E9A2A; }
.r5b-next { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 16px; background: #FFF6DE; border: 2px dashed #D9A93A; }
.r5b-next img { width: 46px; height: 46px; object-fit: contain; }
.r5b-next > span { display: flex; flex-direction: column; font-size: .92rem; line-height: 1.15; font-weight: 700; color: #7A5A44; }
.r5b-next b { font-size: 1.05rem; color: #9A5A12; }

/* r5 (Sara: no pointing hands) — tutorial: glowing frame only, bigger premium card */
.tut19-hand { display: none !important; }
.tut19-ring { border-radius: 26px; box-shadow: 0 0 0 4px #FFE27A, 0 0 0 8px rgba(255,255,255,.55), 0 0 0 9999px rgba(36,12,52,.6), 0 0 30px 10px rgba(255,226,122,.95); animation: r5ring 1.4s ease-in-out infinite; }
@keyframes r5ring { 50% { box-shadow: 0 0 0 5px #FFE27A, 0 0 0 12px rgba(255,255,255,.35), 0 0 0 9999px rgba(36,12,52,.6), 0 0 42px 14px rgba(255,226,122,1); } }
.tut19-card { width: min(92vw, 600px); padding: 14px 22px 16px; border: 4px solid #C99A3C; border-radius: 26px;
  background: radial-gradient(ellipse at 50% 0%, #FFFDF6, #F8EBD0); box-shadow: inset 0 0 0 3px #FFF6DE, 0 6px 0 #8E6420, 0 18px 36px rgba(20,6,30,.5); }
.tut19-n { font-size: .95rem; padding: .05rem .8rem; background: linear-gradient(180deg, #9A5BCC, #5A2370); color: #FFF3D6; }
.tut19-t { font-size: clamp(1.25rem, 4.4vh, 1.7rem); margin: .35rem 0 .7rem; }
/* r5: day tick sits on top-centre so the enlarged "DZIŚ" tile never hides it */
.r5b-day-ok { right: auto; left: 50%; top: -9px; transform: translateX(-50%); }

/* ═══ r6 (Sara): decluttered hub — Misje up high. T1 owl messenger · T2 tower banner · T3 scroll tab under the bar ═══ */
body.world-zamek .proto--T .pobj-art::after { display: none; }                 /* nothing stands on the grass: no ground shade */
body.world-zamek .proto--T .hub-btn.pobj { z-index: 5; }
body.world-zamek .proto--T1 .pobj-art img { filter: drop-shadow(0 10px 10px rgba(50, 25, 70, .28)); }
body.world-zamek .proto--T1 .pobj--T1 .ps-new { top: 30%; right: 4%; }
body.world-zamek .proto--T2 .pobj-art { align-items: flex-start; }
body.world-zamek .proto--T2 .pobj-art img { transform-origin: 50% 0; filter: drop-shadow(0 8px 8px rgba(50, 25, 50, .32)); }
body.world-zamek .proto--T2 .pobj--T2 .ps-new { top: 14%; right: -6px; }
body.world-zamek .proto--T2 .pobj--T2 .pobj-lab { top: calc(100% + 4px); }
@media (prefers-reduced-motion: no-preference) {
  body.world-zamek .proto--T1 .pobj-art { animation: r6bob 3.2s ease-in-out infinite; }
  body.world-zamek .proto--T2 .pobj-art img { animation: r5sway 5s ease-in-out infinite; }
}
@keyframes r6bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
/* T3: a tab hanging from the bar's lower edge — same cream + gold as the bar */
body.world-zamek .proto--T3 .hub-btn.pobj.pobj--T3 {
  width: auto !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 10px; padding: 4px 22px 6px 14px !important; box-sizing: border-box;
  background: linear-gradient(180deg, #FFFBEF, #F4E2B8) !important; border: 2px solid #D4AE5A !important; border-top: 0 !important;
  border-radius: 0 0 20px 20px !important; box-shadow: 0 4px 0 #A97E34, 0 10px 16px rgba(40, 10, 50, .22), inset 0 1px 0 #fff !important;
}
body.world-zamek .proto--T3 .pobj--T3 .pobj-art { position: relative; inset: auto; width: 70px; height: 52px; flex: 0 0 auto; align-items: center; }
body.world-zamek .proto--T3 .pobj--T3 .pobj-art img { height: 100%; width: 100%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(60, 30, 10, .25)); }
body.world-zamek .proto--T3 .pobj--T3 .pobj-lab { position: static; transform: none; padding: 0; border: 0; background: none; box-shadow: none; font-size: 1.55rem; color: #5A2378; }
body.world-zamek .proto--T3 .pobj--T3 .ps-new { top: 4px; right: -12px; }
body.world-zamek .proto--T3 .pobj--T3 .pobj-art .ps-new { display: none; }
body.world-zamek .proto--T3 .pobj--T3.has-news::after { content: '!' !important; display: block !important; position: absolute; top: 6px; right: -13px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(#FF6B7E, #D8264A); border: 2.5px solid #fff; color: #fff; font: 800 .95rem/21px 'Baloo 2', system-ui, sans-serif; text-align: center; box-shadow: 0 2px 4px rgba(120, 10, 40, .35); }
body:has(.proto--T2) .sky { background-size: var(--pbgw, cover) auto !important; }

/* ═══ v23 — rainbow bathroom items: Sklepik button (bottom-left, mirrors Wróć), shop card, owned items in the room ═══ */
.tut19-hand, .pr-hand-img, .tw-hand, .v17-coach { display: none !important; }   /* Sara: no pointing hands anywhere */
.lz-deco { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.lz-it { position: absolute; width: auto; transform: translate(-50%, -100%); filter: drop-shadow(0 5px 5px rgba(60, 30, 40, .28)); }
.lz-it--statek { animation: lzFloat 3.4s ease-in-out infinite; }
@keyframes lzFloat { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -4px; rotate: 2deg; } }
@media (prefers-reduced-motion: reduce) { .lz-it--statek { animation: none; } }
.bt16 .bt-prop.is-lz img { filter: drop-shadow(0 6px 5px rgba(60,30,40,.3)) drop-shadow(0 0 8px rgba(255, 240, 180, .8)); }
.lz-shopbtn {
  position: fixed; z-index: 70; appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  left: max(10px, env(safe-area-inset-left, 0px)); bottom: max(8px, env(safe-area-inset-bottom, 0px));
  width: 74px; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
  font-family: var(--font); touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .12s ease;
}
.lz-shopbtn:active { transform: translateY(3px) scale(.95); }
.lz-shopbtn-art { display: block; height: 42px; line-height: 0; }
.lz-shopbtn-art img { height: 44px; width: auto; filter: drop-shadow(0 2px 0 rgba(58, 18, 72, .35)) drop-shadow(0 5px 6px rgba(58, 18, 72, .25)); }
.lz-shopbtn-lab {
  font-size: .76rem; font-weight: 800; line-height: 1; letter-spacing: .03em; color: #3E1650;
  padding: 3px 9px 4px; border-radius: 8px; background: linear-gradient(#FFFBF1, #F4E3BF); border: 1.5px solid #C9A14A;
  box-shadow: 0 1px 0 rgba(110, 74, 22, .35), 0 3px 6px rgba(58, 18, 72, .18);
}
.lz-ov {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 96px 16px 14px; box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 55%, rgba(60, 20, 80, .45), rgba(30, 8, 44, .72)); animation: lzIn .22s ease both;
}
@keyframes lzIn { from { opacity: 0; } to { opacity: 1; } }
.lz-card {
  position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 116px); box-sizing: border-box; display: flex; flex-direction: column;
  padding: 40px 22px 20px; border-radius: 30px; font-family: 'Baloo 2', system-ui, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #FFFDF6 0%, #FBF0D8 55%, #F1DDB4 100%); border: 4px solid #C99A3C;
  box-shadow: inset 0 0 0 4px #FFF6DE, inset 0 0 0 7px rgba(201,154,60,.45), 0 7px 0 #8E6420, 0 28px 60px rgba(20,6,30,.55);
}
.lz-head { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.lz-ribbon {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -58%); white-space: nowrap; pointer-events: none;
  font-size: 1.9rem; line-height: 1; font-weight: 800; color: #FFF3D6; letter-spacing: .04em;
  padding: .42rem 2.4rem .5rem; border-radius: 14px; text-shadow: 0 2px 0 rgba(40,10,50,.55);
  background: linear-gradient(180deg, #9A5BCC, #5A2370);
  box-shadow: inset 0 0 0 2px #F0CE72, inset 0 0 0 4px rgba(90,35,112,.6), 0 4px 0 #3A1248, 0 10px 16px rgba(58,18,72,.3);
}
.lz-card .lz-x { position: absolute; right: 14px; top: 14px; width: 46px; height: 46px; }
.lz-card .lz-x svg { width: 22px; height: 22px; }
.lz-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; overflow-y: auto; padding: 4px 4px 8px; }
.lz-tile {
  appearance: none; font-family: inherit; cursor: pointer; position: relative;
  display: grid; grid-template-rows: 96px 1fr auto; justify-items: center; gap: 6px; padding: 10px 8px 12px; min-height: 196px; box-sizing: border-box;
  border-radius: 20px; text-align: center; background: linear-gradient(180deg, #FFFFFF, #FFF6E2); border: 3px solid #E2C584;
  box-shadow: 0 4px 0 #C9A35C, 0 8px 16px rgba(120,70,20,.14); transition: transform .12s ease; -webkit-tap-highlight-color: transparent;
}
.lz-tile:active { transform: translateY(3px) scale(.97); }
.lz-tile-art { display: grid; place-items: center; width: 100%; height: 96px; }
.lz-tile-art img { max-width: 92px; max-height: 92px; width: auto; height: auto; filter: drop-shadow(0 3px 3px rgba(60,25,70,.25)); }
.lz-tile-name { font-size: .95rem; line-height: 1.12; font-weight: 800; color: #4A1F5C; align-self: center; }
.lz-tile-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 84px; padding: 4px 14px;
  border-radius: 999px; font-size: 1.1rem; font-weight: 800; color: #4A1F5C;
  background: linear-gradient(180deg, #FFF2BE, #F2C24E 60%, #D29A2C); border: 2px solid #A8741E; box-shadow: 0 3px 0 #8E6420;
}
.lz-tile-buy .ci { width: 22px; height: 22px; }
.lz-tile.is-own { border-color: #7CC37A; background: linear-gradient(180deg, #FFFFFF, #EEF8E6); box-shadow: 0 4px 0 #5FA35C, 0 8px 16px rgba(40,90,30,.14); }
.lz-tile.is-own .lz-tile-buy { background: linear-gradient(180deg, #E6F7D9, #9ED68E); border-color: #4E9A49; box-shadow: 0 3px 0 #3E7E3A; color: #234A20; }
.lz-ok { font-weight: 900; }
.lz-tile.is-poor .lz-tile-buy { filter: saturate(.55); opacity: .8; }
.lz-tile.is-no { animation: lzNo .4s ease; }
@keyframes lzNo { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
@media (max-width: 900px) and (orientation: portrait) {
  .lz-ov { padding-top: 226px; align-items: start; }
  .lz-card { max-height: calc(100dvh - 240px); }
  .lz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lz-tile:last-child { grid-column: 2; }
}
@media (max-width: 560px) {
  .lz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lz-tile:last-child { grid-column: auto; }
  .lz-ribbon { font-size: 1.4rem; padding: .4rem 1.4rem .45rem; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .lz-ov { padding-top: 70px; }
  .lz-card { max-height: calc(100dvh - 80px); padding-top: 32px; }
  .lz-tile { grid-template-rows: 64px 1fr auto; min-height: 150px; }
  .lz-tile-art { height: 64px; } .lz-tile-art img { max-height: 62px; max-width: 70px; }
}
@media (orientation: portrait) {
  .bt16 .bt-hint { left: 92px !important; right: 92px !important; }   /* v23: symmetric — Sklepik (left) mirrors Wróć (right) */
}
