/* Zadania Oli: pastelowo, miękko, z jednorożcem. */

:root {
  --bg: #fff8f2;
  --card: #ffffff;
  --ink: #4a3552;
  --ink-soft: #8a7591;
  --line: #f3e6e0;
  --peach: #ffb08a;
  --peach-soft: #ffe3d4;
  --coral: #ff8f88;
  --coral-soft: #ffe1df;
  --butter: #ffd88a;
  --butter-soft: #fff1d1;
  --mint: #8fdcbf;
  --mint-soft: #ddf6ec;
  --lav: #b79cf2;
  --lav-soft: #eee6ff;
  --plum: #4a3268;
  --radius: 22px;
  --shadow: 0 10px 28px -14px rgba(122, 72, 96, .35);
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(18px + env(safe-area-inset-top)) 20px 22px;
  background: linear-gradient(165deg, #ffd9c7 0%, #ffcfdc 52%, #e4d8ff 100%);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 18px 40px -26px rgba(186, 104, 132, .55);
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  animation: drift 28s linear infinite;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.cloud.c1 { width: 90px; height: 26px; top: 86px; left: -10%; }
.cloud.c1::before { width: 40px; height: 40px; top: -20px; left: 16px; }
.cloud.c1::after { width: 30px; height: 30px; top: -13px; left: 46px; }
.cloud.c2 { width: 70px; height: 20px; top: 150px; left: 60%; animation-duration: 38s; animation-delay: -12s; opacity: .8; }
.cloud.c2::before { width: 30px; height: 30px; top: -15px; left: 12px; }
.cloud.c2::after { width: 24px; height: 24px; top: -10px; left: 36px; }
.cloud.c3 { width: 54px; height: 16px; top: 60px; left: 40%; animation-duration: 46s; animation-delay: -30s; opacity: .7; }
.cloud.c3::before { width: 24px; height: 24px; top: -12px; left: 10px; }
.cloud.c3::after { width: 18px; height: 18px; top: -8px; left: 28px; }
@keyframes drift { from { transform: translateX(-120px); } to { transform: translateX(110vw); } }

.spark { position: absolute; color: #fff; font-size: 16px; animation: twinkle 3s ease-in-out infinite; text-shadow: 0 0 8px rgba(255,255,255,.9); }
.spark.s1 { top: 70px; right: 22%; }
.spark.s2 { top: 130px; left: 12%; animation-delay: -1s; font-size: 12px; }
.spark.s3 { top: 200px; right: 10%; animation-delay: -2s; font-size: 11px; }
.spark.s4 { top: 46px; left: 52%; animation-delay: -.5s; font-size: 10px; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }

.rainbow {
  position: absolute; width: 280px; left: 50%; top: 92px;
  transform: translateX(-62%) scale(.6); opacity: 0;
  transition: opacity .5s, transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.app.party .rainbow { opacity: .9; transform: translateX(-62%) scale(1); }

.topbar { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hello { margin: 0; font-weight: 700; color: #9a6a7f; font-size: 15px; }
.title { margin: 2px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: .2px; }
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 19px; color: #fff;
  background: var(--c); border: 3px solid #fff; box-shadow: var(--shadow);
}

.stage { position: relative; height: 170px; margin-top: 4px; }
.uni-wrap {
  position: absolute; left: -6px; bottom: 0; z-index: 1;
  width: 186px; height: 170px; padding: 0; border: 0; background: none;
}
.uni { width: 100%; height: 100%; overflow: visible; }

.bubble {
  z-index: 2;
  position: absolute; top: 6px; left: 168px; right: 0;
  padding: 12px 14px;
  background: #fff;
  border-radius: 20px 20px 20px 6px;
  font-weight: 700; font-size: 15px; line-height: 1.35;
  box-shadow: var(--shadow);
  animation: pop .45s cubic-bezier(.3, 1.6, .5, 1);
}
.bubble.again { animation: none; }
@keyframes pop { from { transform: scale(.6) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.progress { position: relative; margin-top: 4px; }
.progress-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.65); overflow: hidden; }
.progress-bar span {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb3c7, #ffd59a, #fff0a3, #a8e6cf, #a9d4ff, #c9b5f5);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
  transition: width .7s cubic-bezier(.3, 1.3, .5, 1);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.progress p { margin: 7px 2px 0; font-size: 13px; font-weight: 800; color: #9a6a7f; }

/* ---------- Jednorożec: animacje ---------- */
.uni-all { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.uni-shadow { transform-box: fill-box; transform-origin: center; animation: shadow 3.2s ease-in-out infinite; }
@keyframes shadow { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.86); opacity: .25; } }
.uni-tail { transform-box: fill-box; transform-origin: 90% 10%; animation: wag 1.6s ease-in-out infinite; }
@keyframes wag { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(9deg); } }
.uni-mane { transform-box: fill-box; transform-origin: 80% 20%; animation: sway 2.4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg) translateX(-1px); } }
.uni-head { transform-box: fill-box; transform-origin: 20% 90%; animation: nod 6s ease-in-out infinite; }
@keyframes nod { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-6deg); } 92% { transform: rotate(3deg); } }
.uni-eye-open { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.uni-horn-g { animation: hornglow 2.5s ease-in-out infinite; }
@keyframes hornglow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 214, 120, 0)); } 50% { filter: drop-shadow(0 0 6px rgba(255, 214, 120, .95)); } }
.uni-eye-happy { display: none; }

.uni-wrap.happy .uni-eye-open { display: none; }
.uni-wrap.happy .uni-eye-happy { display: inline; }
.uni-wrap.happy .uni-all { animation: jump .9s cubic-bezier(.3, 1.4, .5, 1) 2; }
@keyframes jump {
  0% { transform: translateY(0) scale(1, 1); }
  15% { transform: translateY(2px) scale(1.06, .92); }
  45% { transform: translateY(-34px) rotate(-6deg) scale(.98, 1.04); }
  70% { transform: translateY(0) scale(1.05, .94); }
  100% { transform: translateY(0) scale(1, 1); }
}
.uni-wrap.happy .uni-tail { animation-duration: .35s; }
.uni-wrap.sad .uni-all { animation-duration: 5s; }
.uni-wrap.sad .uni-head { animation: none; transform: rotate(8deg); }
.uni-wrap.sad .uni-mouth { d: path("M168 104 Q176 99 184 104"); }
.uni-wrap:active .uni-all { animation: squish .3s ease; }
@keyframes squish { 50% { transform: scale(1.06, .9); } }

/* ---------- Filtry ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 18px 20px 6px;
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(var(--bg) 78%, rgba(255, 248, 242, 0));
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 999px; border: 0;
  background: #fff; font-weight: 800; font-size: 14px; color: var(--ink-soft);
  box-shadow: 0 4px 14px -10px rgba(122, 72, 96, .6);
  transition: background .2s, color .2s, transform .15s;
}
.chip b { font-weight: 800; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--peach-soft); color: #c26a45; }
.chip.on { background: var(--plum); color: #fff; }
.chip.on b { background: rgba(255, 255, 255, .2); color: #fff; }
.chip:active { transform: scale(.95); }

/* ---------- Lista ---------- */
.list { padding: 6px 20px 0; }
.group { margin-top: 18px; }
.group-h {
  display: flex; align-items: center; gap: 8px;
  margin: 0 4px 10px; font-family: var(--font-head); font-weight: 600; font-size: 18px;
}
.group-h small { font-family: var(--font); font-size: 13px; font-weight: 800; color: var(--ink-soft); }

.task {
  --tone: var(--butter); --tone-soft: var(--butter-soft);
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 12px; margin-bottom: 10px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: rise .35s ease both;
  transition: transform .2s, opacity .3s;
}
.task.p-pilne { --tone: var(--coral); --tone-soft: var(--coral-soft); }
.task.p-wazne { --tone: var(--peach); --tone-soft: var(--peach-soft); }
.task.p-luz { --tone: var(--mint); --tone-soft: var(--mint-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.task-pill {
  flex: none; align-self: stretch;
  width: 8px; border-radius: 99px; background: var(--tone);
}
.task-body { flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; }
.task-title { display: block; font-weight: 800; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.task-note { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-soft); white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: var(--tone-soft); color: #8b5a4c;
}
.tag.due-late { background: #ffd6d6; color: #c04848; }
.tag.due-today { background: #fff0c2; color: #9a6b12; }
.tag.who { background: #f4effa; color: #6d5a80; }
.tag.who i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

.check {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--tone); background: #fff;
  display: grid; place-items: center; padding: 0;
  transition: background .2s, transform .15s;
}
.check svg { opacity: 0; transform: scale(.4); transition: .25s cubic-bezier(.3, 1.6, .5, 1); }
.check:active { transform: scale(.88); }
.task.done .check { background: var(--tone); }
.task.done .check svg { opacity: 1; transform: scale(1); }
.task.done .task-title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--ink-soft); }
.task.done { opacity: .7; box-shadow: none; background: rgba(255, 255, 255, .6); }
.task.leaving { transform: translateX(30px) scale(.96); opacity: 0; }

.empty {
  margin: 34px 10px; padding: 26px 20px; text-align: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.empty big { display: block; font-size: 40px; margin-bottom: 6px; }
.empty p { margin: 0; font-weight: 700; color: var(--ink-soft); }

.more-done {
  display: block; margin: 16px auto 0; padding: 10px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft); font-weight: 800; font-size: 14px;
}

/* ---------- Przycisk dodawania ---------- */
.fab {
  position: fixed; z-index: 20;
  left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 66px; height: 66px; border-radius: 50%; border: 5px solid #fff;
  background: linear-gradient(145deg, #ffb08a, #ff8fa3);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(255, 128, 128, .8);
  transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.fab:hover { transform: translateX(-50%) scale(1.06) rotate(90deg); }
.fab:active { transform: translateX(-50%) scale(.92); }

/* ---------- Arkusz dodawania/edycji ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(74, 50, 104, .28); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 31; left: 50%; bottom: 0;
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  transform: translateX(-50%);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  background: #fffaf6; border-radius: 30px 30px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(74, 50, 104, .4);
  animation: slide .35s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes slide { from { transform: translate(-50%, 100%); } }
.sheet[hidden], .sheet-backdrop[hidden] { display: none; }
.sheet-handle { width: 44px; height: 5px; border-radius: 9px; background: #ead8d0; margin: 0 auto 10px; }
.sheet h2 { margin: 0 0 14px; font-family: var(--font-head); font-weight: 700; font-size: 24px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin: 0 2px 7px; font-size: 13px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .6px; }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.field input[type="text"], .field textarea {
  width: 100%; padding: 14px 16px; border: 2px solid transparent; border-radius: 18px;
  background: #fff; font: inherit; font-weight: 700; color: var(--ink);
  box-shadow: 0 4px 16px -12px rgba(122, 72, 96, .6);
  outline: none; transition: border-color .2s;
  resize: vertical;
}
.field input[type="text"]:focus, .field textarea:focus { border-color: var(--peach); }
.field ::placeholder { color: #c6b5bd; font-weight: 600; }

.prio-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prio-pick button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 4px; border-radius: 18px; border: 2px solid transparent;
  background: #fff; font-weight: 800; font-size: 13.5px;
  box-shadow: 0 4px 16px -12px rgba(122, 72, 96, .6);
  transition: .2s;
}
.prio-pick i { font-style: normal; font-size: 22px; }
.prio-pick button[data-p="pilne"].on { background: var(--coral-soft); border-color: var(--coral); }
.prio-pick button[data-p="wazne"].on { background: var(--peach-soft); border-color: var(--peach); }
.prio-pick button[data-p="luz"].on { background: var(--mint-soft); border-color: var(--mint); }

.due-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.due-pick button, .due-custom {
  position: relative; padding: 9px 14px; border-radius: 999px; border: 2px solid transparent;
  background: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 16px -12px rgba(122, 72, 96, .6);
  cursor: pointer; transition: .2s;
}
.due-pick .on { background: var(--lav-soft); border-color: var(--lav); }
.due-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }

.sheet-actions { display: flex; gap: 10px; margin-top: 6px; }
.btn-main, .btn-ghost { padding: 15px 20px; border-radius: 18px; border: 0; font-weight: 800; font-size: 16px; }
.btn-main { flex: 1; color: #fff; background: linear-gradient(145deg, #ffb08a, #ff8fa3); box-shadow: 0 10px 24px -12px rgba(255, 128, 128, .9); }
.btn-ghost { background: #f5ebe6; color: var(--ink-soft); }
#fDelete { color: #c04848; background: #ffe5e5; }
#fDelete.sure { background: #e05b5b; color: #fff; }

/* ---------- Konfetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i {
  position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--rot)); } }

/* ---------- Ekran bez dostępu ---------- */
.locked { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(165deg, #ffd9c7, #ffcfdc 52%, #e4d8ff); }
.locked-card { max-width: 380px; padding: 28px 24px; text-align: center; background: #fff; border-radius: 30px; box-shadow: var(--shadow); }
.locked-uni { width: 180px; height: 160px; margin: 0 auto; }
.locked h1 { font-family: var(--font-head); font-size: 24px; margin: 6px 0 8px; }
.locked p { margin: 0; color: var(--ink-soft); font-weight: 600; }

@media (min-width: 600px) {
  .app { padding-top: 20px; }
  .hero { border-radius: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Grywalizacja: brokat, przystanki, nastroje, akcesoria
   ========================================================= */

/* Pasek statystyk w nagłówku */
.stats {
  position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; max-width: 100%; overflow: hidden;
  margin: 12px 0 0; padding: 6px 8px 6px 6px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(4px);
  font-size: 13px; font-weight: 800; color: var(--ink); text-align: left;
  box-shadow: 0 6px 18px -14px rgba(122, 72, 96, .8);
  transition: transform .15s;
}
.stats:active { transform: scale(.97); }
.stat { padding: 4px 10px; border-radius: 999px; background: #fff; white-space: nowrap; }
.stat b { font-weight: 800; }
.stat-level { background: var(--plum); color: #fff; }
.stat-go { margin-left: auto; padding: 0 6px; font-size: 20px; line-height: 1; color: var(--ink-soft); }
.stat.bump { animation: bump .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 40% { transform: scale(1.25); background: #fff4b8; } }

.stage { height: 160px; }
.uni-wrap { height: 160px; width: 176px; }
.bubble { left: 160px; top: 0; }

/* Grzywa: kulki dostają kolor wraz z postępem dnia */
.uni-mane circle, .uni-tail circle { transition: fill .6s ease; }
.uni-mane circle.lit, .uni-tail circle.lit { animation: litpop .6s cubic-bezier(.3, 1.8, .5, 1); transform-box: fill-box; transform-origin: center; }
@keyframes litpop { 40% { transform: scale(1.35); } }

/* Nastroje */
.uni-eye-sleepy { display: none; }
.uni-wrap.sleepy .uni-eye-open, .uni-wrap.sleepy .uni-eye-happy { display: none; }
.uni-wrap.sleepy .uni-eye-sleepy { display: inline; }
.uni-wrap.sleepy .uni-all { animation-duration: 5.5s; }
.uni-wrap.sleepy .uni-horn-g { animation: none; }
.zzz { position: absolute; left: 150px; top: 6px; z-index: 3; display: none; font-family: var(--font-head); font-weight: 700; color: #8a75b8; pointer-events: none; }
.zzz i { position: absolute; font-style: normal; opacity: 0; animation: zzz 3s ease-in infinite; }
.zzz i:nth-child(1) { font-size: 13px; }
.zzz i:nth-child(2) { font-size: 17px; animation-delay: 1s; }
.zzz i:nth-child(3) { font-size: 22px; animation-delay: 2s; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 20px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -26px); } }
.stage.sleepy .zzz { display: block; }
.stage.sleepy .bubble { left: 176px; }

.uni-wrap.perk .uni-all { animation: perk .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes perk { 40% { transform: translateY(-12px) scale(.98, 1.03); } }
.uni-wrap.perk .uni-eye-open { display: none; }
.uni-wrap.perk .uni-eye-happy { display: inline; }

/* Cel dnia osiągnięty: róg świeci mocniej, wokół iskry */
.uni-wrap.glow .uni-horn-g { animation: hornglow2 1.6s ease-in-out infinite; }
@keyframes hornglow2 { 0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 214, 120, .8)); } 50% { filter: drop-shadow(0 0 12px rgba(255, 214, 120, 1)); } }
.uni-wrap.glow::after {
  content: "✦  ✧   ✦"; position: absolute; left: 10px; top: 18px; width: 160px; letter-spacing: 18px;
  color: #fff; font-size: 16px; text-shadow: 0 0 8px #fff7c2; animation: twinkle 2s ease-in-out infinite;
}

/* Akcesoria: ukryte, dopóki nie są założone (klasy wear-* na <body>) */
.acc { display: none; }
body.wear-kokardka .acc-kokardka,
body.wear-okulary .acc-okulary,
body.wear-wianek .acc-wianek,
body.wear-szalik .acc-szalik,
body.wear-peleryna .acc-peleryna,
body.wear-korona .acc-korona,
body.wear-skrzydla .acc-skrzydla { display: inline; }
.wing { transform-box: fill-box; transform-origin: 95% 85%; animation: flap 1.4s ease-in-out infinite; }
@keyframes flap { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }
.acc-szalik path:nth-child(3) { transform-box: fill-box; transform-origin: 50% 0; animation: wag 2.2s ease-in-out infinite; }

/* Tła do odblokowania */
.sun, .stars { position: absolute; display: none; }
body.wear-zachod .hero { background: linear-gradient(170deg, #ffd1a6 0%, #ffb8b0 50%, #f6c0de 100%); }
body.wear-zachod .sun {
  display: block; width: 110px; height: 110px; right: -20px; top: 110px; border-radius: 50%;
  background: radial-gradient(circle, #fff3c4 0 45%, #ffe1a1 46% 60%, rgba(255, 225, 161, 0) 61%);
  animation: twinkle 6s ease-in-out infinite;
}
body.wear-noc .hero { background: linear-gradient(165deg, #c4bdf2 0%, #a9a2e3 55%, #d2b9ec 100%); }
body.wear-noc .hello { color: #5b4a86; }
body.wear-noc .progress p { color: #5b4a86; }
body.wear-noc .stars {
  display: block; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 58% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 40%, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 88% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 48%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 6% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 94% 66%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite;
}
body.wear-legenda .hero {
  background: linear-gradient(120deg, #ffd9c7, #ffcfe6, #e4d8ff, #d4f3ff, #dcf8e8, #fff1c9, #ffd9c7);
  background-size: 400% 400%; animation: aurora 14s ease infinite;
}
@keyframes aurora { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
body.wear-legenda .rainbow { opacity: .35; transform: translateX(-62%) scale(1); }

/* Unoszące się +3 ✨ */
.floats { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.floats span {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #e0789a;
  text-shadow: 0 2px 0 #fff, 0 0 12px #fff;
  animation: floatup 1.3s ease-out forwards;
}
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -80%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }

/* Arkusz ścieżki */
.path-sheet { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.path-head { display: flex; align-items: center; gap: 12px; }
.path-uni { flex: none; width: 128px; height: 116px; }
.path-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-soft); }
.path-head h2 { margin: 2px 0 2px; }
.path-points { margin: 0; font-weight: 800; color: #c26a45; }
.path-next { margin: 8px 0 12px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 4px 16px -12px rgba(122, 72, 96, .6); font-weight: 700; font-size: 14px; }
.path-next .bar { height: 10px; margin-top: 8px; border-radius: 99px; background: #f6ece8; overflow: hidden; }
.path-next .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb3c7, #ffd59a, #a8e6cf, #c9b5f5); }
.path-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.path-rules span { padding: 5px 10px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); }
.path-rules b { color: #c26a45; }
.path-goal { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--lav-soft); }
.path-goal small { display: block; font-weight: 700; color: var(--ink-soft); }
.goal-pick { display: flex; gap: 6px; }
.goal-pick button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-weight: 800; }
.goal-pick button.on { background: var(--plum); color: #fff; }

.path { position: relative; list-style: none; margin: 18px 0 8px; padding: 0; }
.path::before {
  content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 0;
  border-left: 4px dotted #e8d7ef; transform: translateX(-50%);
}
.stop { position: relative; display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; gap: 10px; margin-bottom: 14px; }
.stop-node {
  grid-column: 2; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  background: #f3edf3; border: 4px solid #fff; box-shadow: var(--shadow); position: relative; z-index: 1;
  filter: grayscale(1); opacity: .65;
}
.stop-card { padding: 10px 12px; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px -12px rgba(122, 72, 96, .6); font-size: 13.5px; }
.stop:nth-child(odd) .stop-card { grid-column: 1; grid-row: 1; text-align: right; }
.stop:nth-child(even) .stop-card { grid-column: 3; grid-row: 1; }
.stop-card b { display: block; font-size: 14.5px; }
.stop-card small { display: block; color: var(--ink-soft); font-weight: 700; }
.stop.is-locked .stop-card { opacity: .6; }
.stop.open .stop-node { filter: none; opacity: 1; background: linear-gradient(145deg, #ffe3d4, #ffd6e4, #e9e0ff); }
.stop.next .stop-node { filter: none; opacity: 1; background: #fff; border-color: #ffd59a; animation: nextpulse 1.8s ease-in-out infinite; }
@keyframes nextpulse { 50% { box-shadow: 0 0 0 8px rgba(255, 213, 154, .35); } }
.stop.start .stop-node { filter: none; opacity: 1; background: var(--mint-soft); }
.wear-btn { margin-top: 6px; padding: 5px 12px; border-radius: 999px; border: 0; background: var(--peach-soft); font-weight: 800; font-size: 12.5px; color: #b2603e; }
.wear-btn.on { background: var(--plum); color: #fff; }
.path-close { width: 100%; margin-top: 8px; }

/* Okno odblokowania */
.unlock { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(74, 50, 104, .35); backdrop-filter: blur(4px); animation: fade .25s; }
.unlock[hidden] { display: none; }
.unlock-card { width: 100%; max-width: 340px; padding: 24px 22px 20px; text-align: center; background: linear-gradient(170deg, #fff, #fff6f0); border-radius: 30px; box-shadow: 0 30px 60px -20px rgba(74, 50, 104, .5); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.unlock-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #e0789a; }
.unlock-uni { width: 190px; height: 172px; margin: 4px auto 0; }
.unlock-uni .uni-all { animation: jump .9s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.unlock h2 { margin: 6px 0 6px; font-family: var(--font-head); font-size: 26px; }
.unlock p { margin: 0 0 16px; color: var(--ink-soft); font-weight: 700; }
.unlock .btn-main { width: 100%; }
.floats .spark-bit { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; animation: burst .7s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }

/* =========================================================
   Sklepik
   ========================================================= */
.stats-row { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.stats-row .stats { flex: 1; min-width: 0; margin: 0; }
.shop-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: linear-gradient(145deg, #ffb08a, #ff8fa3); color: #fff;
  font-size: 18px; font-weight: 800; box-shadow: 0 8px 18px -10px rgba(255, 128, 128, .9);
  transition: transform .15s;
}
.shop-btn span { font-size: 14px; }
.shop-btn:active { transform: scale(.94); }
.shop-btn.can-buy { animation: wiggle 2.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-8deg); } 95% { transform: rotate(8deg); } }
@media (max-width: 400px) { .shop-btn span { display: none; } .shop-btn { width: 44px; padding: 0; justify-content: center; } }

.path-shop { width: 100%; margin-top: 4px; }
.shop-hint { margin: 10px 2px 4px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.shop-group { margin-top: 16px; }
.shop-group h3 { margin: 0 2px 8px; font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.item {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 12px 10px 10px; border-radius: 20px; background: #fff; border: 2px solid transparent;
  box-shadow: 0 4px 16px -12px rgba(122, 72, 96, .6); cursor: pointer; transition: border-color .2s, transform .15s;
}
.item:active { transform: scale(.97); }
.item.trying { border-color: var(--lav); background: var(--lav-soft); }
.item.worn { border-color: var(--mint); }
.item-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: linear-gradient(145deg, #ffe3d4, #ffd6e4, #e9e0ff); }
.item b { font-size: 14px; line-height: 1.2; }
.item small { font-size: 12px; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }
.item .buy {
  margin-top: 4px; width: 100%; padding: 8px 6px; border: 0; border-radius: 14px;
  background: linear-gradient(145deg, #ffb08a, #ff8fa3); color: #fff; font-weight: 800; font-size: 13px;
}
.item .buy[disabled] { background: #f3e9e6; color: #b6a2a8; cursor: default; }
.item .buy.own { background: var(--peach-soft); color: #b2603e; }
.item .buy.own.on { background: var(--plum); color: #fff; }
.item .tag-new { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 99px; background: #fff4b8; font-size: 11px; font-weight: 800; color: #9a6b12; }

/* Nowe dodatki */
body.wear-muszka .acc-muszka,
body.wear-skarpetki .acc-skarpetki,
body.wear-przeciwsloneczne .acc-przeciwsloneczne,
body.wear-perly .acc-perly,
body.wear-sluchawki .acc-sluchawki,
body.wear-czapka .acc-czapka,
body.wear-gwiazdki .acc-gwiazdki,
body.wear-serduszka .acc-serduszka,
body.wear-kotek .acc-kotek,
body.wear-kaczuszka .acc-kaczuszka,
body.wear-chmurka .acc-chmurka { display: inline; }

.pet { transform-box: fill-box; transform-origin: 50% 100%; animation: pethop 2.8s ease-in-out infinite; }
@keyframes pethop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-9px) scale(.97, 1.04); } 80% { transform: translateY(0) scale(1.04, .96); } }
.uni-wrap.happy .pet { animation: pethop .7s ease-in-out 3; }
.pet-float { animation: petfloat 4s ease-in-out infinite; }
@keyframes petfloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -6px); } }
.fx path { transform-box: fill-box; transform-origin: center; animation: fxfloat 3.2s ease-in-out infinite; }
.fx .fx2 { animation-delay: -.8s; } .fx .fx3 { animation-delay: -1.6s; } .fx .fx4 { animation-delay: -2.4s; }
@keyframes fxfloat { 0%, 100% { transform: translateY(0) scale(.85); opacity: .5; } 50% { transform: translateY(-10px) scale(1.1); opacity: 1; } }

body.wear-laka .hero { background: linear-gradient(175deg, #dcf6ff 0%, #e6f8ec 55%, #c9efd8 100%); }
body.wear-laka .hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -40px; height: 120px; pointer-events: none;
  background: radial-gradient(ellipse at 30% 0%, #b5e8c8 0 55%, transparent 56%), radial-gradient(ellipse at 80% 10%, #a6e0bd 0 50%, transparent 51%);
}
body.wear-laka .hero > * { position: relative; z-index: 1; }
body.wear-laka .hero > .hero-sky { position: absolute; z-index: 0; }
body.wear-cukierki .hero {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .45) 0 18px, rgba(255, 255, 255, 0) 18px 36px),
    linear-gradient(165deg, #ffd1e3 0%, #ffe0c9 50%, #e2d6ff 100%);
}

/* Wylogowanie */
.logout-uni .uni-all { animation: bob 3.2s ease-in-out infinite; }
.logout-uni .uni-head { animation: none; transform: rotate(8deg); }
.logout-uni .uni-mouth { d: path("M168 104 Q176 99 184 104"); }
a.btn-main { display: block; text-align: center; text-decoration: none; }
.unlock .sheet-actions { margin-top: 0; }
.unlock .sheet-actions .btn-main { flex: 1; width: auto; }

/* Progi planu dnia na pasku */
.progress-track { position: relative; margin-right: 10px; }
.mk {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 13px; background: #fff; box-shadow: 0 3px 10px -4px rgba(122, 72, 96, .6);
  filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s;
}
.mk.got { filter: none; opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
.mk[hidden] { display: none; }
.progress p { margin-top: 10px; }
