/* =====================================================================
   Rdzeń v2 — system wyglądu
   Baza: nocny fiolet z ruchomą „zorzą”. Każda zakładka ma własny świat kolorów
   (Dziś — wschód słońca, Razem — żar, Gry — neon, Chwile — zmierzch, Para — różowe złoto),
   dzięki czemu od razu wiadomo, gdzie jesteś.
   Krój: Bricolage Grotesque (tytuły) + Plus Jakarta Sans (tekst).
   ===================================================================== */
:root {
  --ink: #170b22;
  --ink-2: #1f1030;
  --card: rgba(255, 255, 255, .055);
  --card-2: rgba(255, 255, 255, .09);
  --solid: #251536;
  --solid-2: #2f1c44;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --text: #fff6f2;
  --muted: #cdbad3;
  --faint: #9a87a8;
  --ok: #4ee6a6;
  --bad: #ff6b81;
  --gold: #ffd166;
  --her: #ff8fab;
  --him: #6ec1ff;
  --a1: #ff7a8a;
  --a2: #ffb36b;
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-xl: 28px;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 12px;
  --nav: 74px;
  --max: 580px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
body[data-world="dzis"] { --a1: #ff7a8a; --a2: #ffb36b; }
body[data-world="razem"] { --a1: #ff8a3d; --a2: #ff4f7b; }
body[data-world="czat"] { --a1: #ff7a8a; --a2: #b98cff; }
body[data-world="gry"] { --a1: #2fe0c2; --a2: #8b6cff; }
body[data-world="chwile"] { --a1: #9a86ff; --a2: #46c6f2; }
body[data-world="para"] { --a1: #ff8fab; --a2: #ffcf70; }

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--ink); color: var(--text); font: 15.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- tło: zorza w kolorach bieżącej zakładki ---------- */
.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% 120%, #0f0618, var(--ink) 60%); }
.aura i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; transition: background 1s var(--ease); animation: drift 22s ease-in-out infinite alternate; }
.aura i:nth-child(1) { width: 70vmax; height: 70vmax; left: -30vmax; top: -38vmax; background: var(--a1); opacity: .32; }
.aura i:nth-child(2) { width: 55vmax; height: 55vmax; right: -28vmax; top: -10vmax; background: var(--a2); opacity: .24; animation-duration: 28s; }
.aura i:nth-child(3) { width: 40vmax; height: 40vmax; left: 20vmax; bottom: -30vmax; background: #6d3bff; opacity: .2; animation-duration: 34s; }
@keyframes drift { to { transform: translate(6vmax, 5vmax) scale(1.1); } }

.boot { display: grid; place-items: center; min-height: 100dvh; font: 800 44px var(--display); color: var(--muted); }

/* ---------- powłoka ---------- */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 16px calc(var(--nav) + 40px + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 0 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; transition: background .3s, backdrop-filter .3s; }
.topbar.scrolled { background: rgba(23, 11, 34, .72); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.topbar .title { flex: 1; min-width: 0; }
.topbar .eyebrow { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.topbar h1 { font-size: 30px; font-weight: 800; line-height: 1.05; background: linear-gradient(100deg, var(--text) 30%, var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.duo-heads { display: flex; align-items: center; text-decoration: none; position: relative; }
.duo-heads .head { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--solid-2); border: 2px solid var(--ink); }
.duo-heads .head + .head { margin-left: -12px; }
.duo-heads .head svg { width: 100%; height: 100%; }
.duo-heads .dot { position: absolute; right: -2px; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--faint); border: 2px solid var(--ink); transition: background .3s; }
.duo-heads .dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.bottom-nav { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; width: min(calc(100% - 24px), var(--max)); height: 64px; border-radius: 24px; background: rgba(28, 15, 41, .82); backdrop-filter: blur(20px) saturate(1.6); border: 1px solid var(--line-2); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .8); display: grid; grid-template-columns: repeat(6, 1fr); }
.bottom-nav .pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 6); border-radius: 18px; background: linear-gradient(135deg, var(--a1), var(--a2)); opacity: .9; transition: transform .45s var(--spring), background .6s; box-shadow: 0 8px 22px -8px var(--a1); }
.bottom-nav a { position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; transition: color .3s; }
.bottom-nav a.on { color: #1a0a1f; }
.bottom-nav a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.bottom-nav a.on svg { transform: translateY(-1px) scale(1.08); }
.bottom-nav .badge-dot { position: absolute; top: 9px; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--solid); }

/* ---------- przejścia widoków ---------- */
.view { animation: viewIn .45s var(--ease) both; }
.view.from-left { animation-name: viewInL; }
@keyframes viewIn { from { opacity: 0; transform: translateX(22px); } }
@keyframes viewInL { from { opacity: 0; transform: translateX(-22px); } }
.stagger > * { animation: rise .55s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; } .stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; } .stagger > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- typografia sekcji ---------- */
.section { margin-top: 30px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sec-head h2 .n { font: 800 12px var(--sans); background: var(--card-2); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.link { font-size: 13.5px; font-weight: 700; color: var(--a2); background: none; border: 0; cursor: pointer; padding: 4px 0; text-decoration: none; }
.lead { color: var(--muted); margin: 4px 0 16px; max-width: 62ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 13px; }
.grad-text { background: linear-gradient(100deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- przyciski ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 16px; border: 1px solid transparent; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .18s var(--spring), filter .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #1a0a1f; box-shadow: 0 10px 24px -12px var(--a1); }
.btn.ghost { background: transparent; border-color: var(--line-2); }
.btn.soft { background: var(--card-2); }
.btn.ok { background: var(--ok); color: #062a1b; }
.btn.no { background: rgba(255, 107, 129, .14); color: #ffb3bf; border-color: rgba(255, 107, 129, .35); }
.btn.danger { background: transparent; border-color: rgba(255, 107, 129, .5); color: var(--bad); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 16.5px; border-radius: 20px; }
.row-actions { display: flex; gap: 10px; margin-top: 14px; }
.row-actions > .btn { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--text); flex: none; }

/* ---------- formularze ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--faint); }
input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=color]), textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; font-size: 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1.5px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--a2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 20%, transparent); }
input[type=date], input[type=datetime-local], input[type=time] { color-scheme: dark; }
select { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px; background: var(--solid-2); border: 1.5px solid var(--line-2); font-size: 16px; }
select option { background: var(--solid); color: var(--text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 12px; align-items: center; margin: 8px 0 16px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); transition: background .25s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.switch input:checked + i { background: linear-gradient(135deg, var(--a1), var(--a2)); }
.switch input:checked + i::after { transform: translateX(20px); }

/* Pigułki wyboru (zamiast natywnych list) */
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { cursor: pointer; position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 700; color: var(--muted); transition: all .2s var(--ease); background: rgba(0, 0, 0, .15); }
.pill input:checked + span { background: var(--text); color: #1a0a1f; border-color: var(--text); transform: scale(1.03); }
.pill input:focus-visible + span { outline: 2px solid var(--a2); outline-offset: 2px; }
.choice.big .pill span { padding: 12px 16px; border-radius: 16px; }

/* Wybór nagrody / kary */
.rp { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 16px; background: rgba(0, 0, 0, .14); }
.rp-title { font-weight: 800; font-size: 14px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.rp-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rp-types label { cursor: pointer; }
.rp-types input { position: absolute; opacity: 0; }
.rp-types span { display: grid; justify-items: center; gap: 2px; padding: 9px 2px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; transition: all .2s; }
.rp-types span b { font-size: 20px; line-height: 1.1; }
.rp-types input:checked + span { border-color: var(--a2); background: color-mix(in srgb, var(--a2) 16%, transparent); color: var(--text); }
.rp-body { margin-top: 12px; display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font: 700 12.5px var(--sans); padding: 7px 11px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.chip:hover, .chip.on { border-color: var(--a2); color: var(--text); background: color-mix(in srgb, var(--a2) 18%, transparent); }

/* ---------- karty ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; position: relative; overflow: hidden; }
.card + .card { margin-top: 10px; }
.card.tap { cursor: pointer; transition: transform .2s var(--spring), background .2s; }
.card.tap:active { transform: scale(.98); }
.hero { border-radius: var(--r-xl); padding: 22px 20px; position: relative; overflow: hidden; color: #1a0a1f; background: linear-gradient(135deg, var(--g1, var(--a1)), var(--g2, var(--a2))); box-shadow: 0 22px 46px -22px var(--g1, var(--a1)); }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, rgba(255, 255, 255, .35), transparent 60%); pointer-events: none; }
.hero .big-ico { position: absolute; right: -6px; top: -10px; font-size: 96px; opacity: .9; transform: rotate(10deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25)); }
.hero .kicker { font-size: 12.5px; font-weight: 800; opacity: .75; }
.hero h3 { font-size: 24px; font-weight: 800; line-height: 1.1; margin: 4px 0 8px; max-width: 78%; }
.hero p { margin: 0 0 14px; font-size: 14px; opacity: .85; max-width: 90%; position: relative; z-index: 1; }
.hero .btn { position: relative; z-index: 1; }
.hero .btn.dark { background: #1a0a1f; color: #fff; }
.hero .btn.light { background: rgba(255, 255, 255, .55); color: #1a0a1f; }
.hero .status { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, .5); border-radius: 999px; padding: 6px 12px; position: relative; z-index: 1; }

.snap { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.snap::-webkit-scrollbar { display: none; }
.snap > * { scroll-snap-align: center; flex: 0 0 86%; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-2); transition: all .3s; }
.dots i.on { width: 18px; background: var(--a2); }

/* Kafelki (hub) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; border-radius: var(--r-lg); padding: 16px; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--text); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--t) 34%, transparent), color-mix(in srgb, var(--t) 8%, transparent)); transition: transform .25s var(--spring); }
.tile:active { transform: scale(.96); }
.tile .ti { font-size: 34px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.tile b { font-family: var(--display); font-size: 17px; }
.tile small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.tile.wide { grid-column: span 2; min-height: 96px; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }
.tile .count { position: absolute; top: 12px; right: 12px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 8px; }

/* Wiersze listy */
.list { display: grid; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); width: 100%; text-align: left; cursor: pointer; color: inherit; text-decoration: none; transition: transform .2s var(--spring), background .2s; }
.row:active { transform: scale(.985); }
.row .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; flex: none; background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--a1)) 45%, transparent), color-mix(in srgb, var(--c, var(--a1)) 12%, transparent)); }
.row .body { flex: 1; min-width: 0; }
.row .title { font-weight: 800; font-size: 15px; line-height: 1.3; }
.row .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 3px; font-size: 12.5px; color: var(--faint); }
.row.dim { opacity: .55; }
.row.dim .title { text-decoration: line-through; text-decoration-color: var(--line-2); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--card-2); color: var(--muted); }
.badge.gold { background: rgba(255, 209, 102, .16); color: var(--gold); }
.badge.hot { background: color-mix(in srgb, var(--a1) 24%, transparent); color: var(--text); }
.badge.ok { background: rgba(78, 230, 166, .15); color: var(--ok); }
.badge.bad { background: rgba(255, 107, 129, .15); color: #ffa3b1; }
.who { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.who::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--a1), var(--a2)); transition: width .8s var(--ease); }
.money b { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--gold); }

.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 18px; padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1.5px solid var(--line); background: var(--card); padding: 9px 15px; border-radius: 14px; color: var(--muted); font-weight: 800; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: all .25s var(--ease); }
.tab.on { background: var(--text); color: #1a0a1f; border-color: var(--text); }
.tab .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center; }

.empty { text-align: center; padding: 34px 12px; color: var(--muted); }
.empty-icon { font-size: 46px; margin-bottom: 8px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.empty h3 { font-size: 22px; color: var(--text); margin-bottom: 4px; }
.empty p { margin: 0 auto 16px; max-width: 34ch; }
.callout { border-radius: var(--r); padding: 12px 14px; background: color-mix(in srgb, var(--a2) 12%, transparent); border: 1px solid color-mix(in srgb, var(--a2) 30%, transparent); font-size: 14px; color: var(--muted); margin: 12px 0; }
.callout b { color: var(--text); }
.callout.bad { background: rgba(255, 107, 129, .1); border-color: rgba(255, 107, 129, .3); }
.skeleton { height: 80px; border-radius: var(--r); background: linear-gradient(90deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%); background-size: 300% 100%; animation: shimmer 1.3s infinite; }
.skeleton + .skeleton { margin-top: 10px; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- arkusz ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(8, 3, 12, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .25s; }
.sheet-backdrop.in { background: rgba(8, 3, 12, .66); backdrop-filter: blur(4px); }
.sheet-backdrop.out { background: rgba(8, 3, 12, 0); }
.sheet { width: 100%; max-width: var(--max); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--solid); border-radius: 30px 30px 0 0; padding: 8px 18px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .4s var(--ease); border-top: 1px solid var(--line-2); }
.sheet-backdrop.in .sheet { transform: none; }
.sheet-backdrop.out .sheet { transform: translateY(100%); }
.grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 4px auto 16px; }
.sheet-title { font-size: 28px; font-weight: 800; line-height: 1.08; margin: 0 0 8px; }
.sheet .kicker { font-size: 13px; color: var(--faint); font-weight: 700; margin-bottom: 4px; }
.sheet-hero { margin: -8px -18px 16px; padding: 26px 20px 20px; border-radius: 30px 30px 0 0; background: linear-gradient(135deg, var(--g1, var(--a1)), var(--g2, var(--a2))); color: #1a0a1f; position: relative; overflow: hidden; }
.sheet-hero .big-ico { position: absolute; right: 10px; top: 4px; font-size: 76px; opacity: .85; }
.sheet-hero .kicker { color: #1a0a1f; opacity: .7; }
.sheet-hero .sheet-title { max-width: 80%; }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 30px; } .sheet-hero { border-radius: 30px 30px 0 0; } }

/* ---------- powiadomienia na żywo ---------- */
.live-stack { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 80; width: min(calc(100% - 20px), 520px); display: grid; gap: 8px; pointer-events: none; }
.live { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; border-radius: 22px; background: rgba(40, 22, 58, .94); backdrop-filter: blur(18px); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8); animation: liveIn .5s var(--spring) both; }
.live.out { animation: liveOut .3s var(--ease) both; }
@keyframes liveIn { from { opacity: 0; transform: translateY(-30px) scale(.94); } }
@keyframes liveOut { to { opacity: 0; transform: translateY(-20px) scale(.96); } }
.live .lic { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, var(--a1), var(--a2)); overflow: hidden; }
.live .lic svg { width: 100%; height: 100%; }
.live .lt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.live .lt b { display: block; font-size: 12px; color: var(--faint); font-weight: 700; }
.live .la { display: flex; gap: 6px; flex: none; }
.live.invite { flex-wrap: wrap; border-color: var(--a2); box-shadow: 0 0 0 1px var(--a2), 0 24px 50px -16px var(--a1); }
.live.invite .la { width: 100%; }
.live.invite .la .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.live { max-width: 100%; box-sizing: border-box; }
.toasts { position: fixed; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 70; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 460px; padding: 12px 18px; border-radius: 16px; background: #fff3ee; color: #1a0a1f; font-weight: 700; font-size: 14px; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7); animation: toastIn .35s var(--spring); transition: opacity .3s, transform .3s; }
.toast.ok { background: #c9f7e1; }
.toast.bad { background: #ffd3da; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.95); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

/* ---------- logowanie i parowanie ---------- */
.auth { max-width: 440px; margin: 0 auto; padding: calc(36px + env(safe-area-inset-top)) 20px 40px; }
.auth .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth .brand img { width: 52px; height: 52px; border-radius: 16px; }
.auth .brand b { font: 800 30px var(--display); }
.auth h1 { font-size: 44px; font-weight: 800; line-height: 1; margin: 0 0 10px; }
.auth .swap { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.auth .swap button { background: none; border: 0; color: var(--a2); font-weight: 800; cursor: pointer; }
.code { font: 800 46px/1 var(--display); letter-spacing: .06em; text-align: center; padding: 16px 0 6px; }
.code-input { text-transform: uppercase; letter-spacing: .2em; text-align: center; font-weight: 800; }
.invite-card { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 18px; margin: 14px 0; text-align: center; }

/* ---------- postacie ---------- */
.stage { position: relative; height: 290px; display: flex; align-items: flex-end; justify-content: center; gap: 0; margin: 0 -16px; }
.stage::before { content: ''; position: absolute; left: 12%; right: 12%; bottom: 16px; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--a1) 45%, transparent), transparent); }
.stage .char { position: relative; width: 150px; height: 280px; cursor: pointer; }
.stage .char svg { width: 100%; height: 100%; overflow: visible; }
.stage .char .nm { position: absolute; bottom: -2px; left: 0; right: 0; text-align: center; font: 800 13px var(--sans); color: var(--muted); }
.stage .heart { position: absolute; left: 50%; top: 30%; font-size: 28px; animation: heartUp 1.4s var(--ease) forwards; pointer-events: none; }
@keyframes heartUp { from { opacity: 0; transform: translate(-50%, 10px) scale(.5); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.2); } to { opacity: 0; transform: translate(-50%, -90px) scale(1); } }
.av-breathe { animation: breathe 4.2s ease-in-out infinite; transform-origin: 50% 100%; transform-box: fill-box; }
@keyframes breathe { 50% { transform: scaleY(1.012) translateY(-1px); } }
.av-blink { animation: blink 5.5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.av-wave { animation: wave 1s var(--ease) 2; transform-box: fill-box; transform-origin: 50% 8%; }
@keyframes wave { 25% { transform: rotate(-150deg); } 50% { transform: rotate(-125deg); } 75% { transform: rotate(-150deg); } }
.av-hop { animation: hop .7s var(--spring); transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes hop { 40% { transform: translateY(-18px) scaleY(1.03); } }
.stage-actions { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.since { text-align: center; margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.since b { font: 800 26px var(--display); color: var(--text); }

.creator { display: grid; gap: 14px; }
.creator-head { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 6; display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 -16px; padding: 8px 16px 0; background: linear-gradient(180deg, var(--ink) 85%, transparent); }
.creator-stage { height: 220px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; border-radius: var(--r-xl); background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--a1) 40%, transparent), transparent 70%), var(--card); border: 1px solid var(--line); cursor: pointer; }
.creator-stage svg { height: 212px; width: auto; pointer-events: none; }
.creator-side { display: grid; gap: 8px; align-content: start; }
.creator-side .btn { justify-content: flex-start; }
.creator-tabs { grid-column: 1 / -1; }
.creator-tabs .tabs { margin-bottom: 8px; }
.opt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.opt { border: 2px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; padding: 4px 4px 0; display: grid; grid-template-rows: 1fr auto; place-items: center; overflow: hidden; transition: all .2s var(--spring); position: relative; }
.opt svg { width: 100%; aspect-ratio: 1; height: auto; }
.opt.on { border-color: var(--a2); background: color-mix(in srgb, var(--a2) 16%, transparent); transform: scale(1.04); }
.opt small { display: block; width: calc(100% + 8px); margin: 0 -4px; padding: 3px 2px 4px; text-align: center; font-size: 10px; line-height: 1.15; font-weight: 800; color: var(--muted); background: rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt.on small { color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .2s var(--spring); }
.sw.on { border-color: #fff; transform: scale(1.12); }

/* ---------- nawyki ---------- */
.habit { border-radius: var(--r-lg); padding: 14px; background: var(--card); border: 1px solid var(--line); }
.habit + .habit { margin-top: 10px; }
.habit-top { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.habit-top .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; flex: none; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 50%, transparent), color-mix(in srgb, var(--c) 14%, transparent)); }
.habit-top .t { flex: 1; min-width: 0; }
.habit-top .t b { display: block; font-size: 15.5px; }
.habit-top .t small { color: var(--faint); font-size: 12.5px; font-weight: 600; }
.habit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.habit-done { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; font-weight: 800; font-size: 14px; }
.habit-done.done { background: rgba(78, 230, 166, .14); color: var(--ok); }
.habit-done.missed { background: rgba(255, 107, 129, .12); color: #ffa3b1; }
.pips { display: flex; gap: 4px; }
.pips i { width: 10px; height: 10px; border-radius: 3px; background: var(--card-2); }
.pips i.done { background: var(--ok); }
.pips i.missed { background: var(--bad); }
.pips i.partial { background: var(--gold); }
.cal { display: grid; gap: 4px; }
.cal-row { display: grid; grid-template-columns: 70px repeat(var(--n), 1fr); gap: 4px; align-items: center; font-size: 11.5px; color: var(--faint); font-weight: 700; }
.cal-cell { aspect-ratio: 1; border-radius: 8px; background: var(--card); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--faint); border: 1px solid var(--line); }
.cal-cell.done { background: rgba(78, 230, 166, .22); color: var(--ok); border-color: transparent; }
.cal-cell.missed { background: rgba(255, 107, 129, .2); color: var(--bad); border-color: transparent; }
.cal-cell.partial { background: rgba(255, 209, 102, .2); color: var(--gold); }
.cal-cell.future { opacity: .35; }
.cal-cell.today { box-shadow: 0 0 0 2px var(--a2); }
.big-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.big-stat div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px; text-align: center; }
.big-stat b { display: block; font: 800 28px/1 var(--display); }
.big-stat span { font-size: 11.5px; color: var(--faint); font-weight: 700; }
.timeline { display: grid; gap: 10px; }
.tl { display: flex; gap: 10px; font-size: 14px; }
.tl .d { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--card-2); }
.tl .d svg { width: 100%; height: 100%; }
.tl .x { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 9px 12px; }
.tl .x small { display: block; color: var(--faint); font-size: 11.5px; font-weight: 700; }

/* ---------- Start ---------- */
.action-card { border-radius: var(--r-lg); padding: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 22%, transparent), color-mix(in srgb, var(--a2) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--a1) 40%, transparent); display: grid; gap: 10px; animation: rise .5s var(--ease) both, glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 14%, transparent); } }
.action-card .ac-top { display: flex; gap: 12px; align-items: center; }
.action-card .ac-top .ico { font-size: 28px; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; }
.action-card .ac-top b { display: block; font-size: 15px; line-height: 1.3; }
.action-card .ac-top small { color: var(--muted); font-size: 12.5px; }
.action-card + .action-card { margin-top: 10px; }
.core-card { display: flex; gap: 14px; align-items: center; }
.core-card figure { margin: 0; flex: none; }
.core-card svg { width: 136px; height: 136px; overflow: visible; }
.core-card .pillars { flex: 1; display: grid; gap: 6px; }
.pil { display: grid; grid-template-columns: 20px 1fr 28px; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pil .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pil .bar i { display: block; height: 100%; border-radius: 3px; transition: width 1s var(--ease); }
.pil b { color: var(--text); text-align: right; }
.petal { transform-origin: 50% 50%; transform-box: view-box; animation: petalIn .9s var(--spring) both; animation-delay: var(--d); }
@keyframes petalIn { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.core-heart { fill: var(--text); }
.core-num { font: 800 30px var(--display); fill: #1a0a1f; }
.countdown-card { display: flex; gap: 14px; align-items: center; }
.countdown-card .days { font: 800 48px/1 var(--display); min-width: 70px; text-align: center; }
.countdown-card .days small { display: block; font: 700 11px var(--sans); color: var(--faint); }
.feed { display: grid; gap: 4px; }
.feed-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; }
.feed-item .fa { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; background: var(--card-2); display: grid; place-items: center; font-size: 14px; }
.feed-item .fa svg { width: 100%; height: 100%; }
.feed-item time { color: var(--faint); font-size: 11.5px; white-space: nowrap; margin-left: auto; padding-left: 8px; }

/* ---------- Chwile ---------- */
.ev-card { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; text-decoration: none; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--g1), var(--g2)); transition: transform .25s var(--spring); }
.ev-card:active { transform: scale(.98); }
.ev-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 4, 16, .85), rgba(10, 4, 16, .1) 70%); z-index: 1; }
.ev-card > * { position: relative; z-index: 2; }
.ev-card .ev-ico { position: absolute; top: 12px; right: 14px; font-size: 40px; z-index: 2; }
.ev-card .when { display: inline-flex; align-self: flex-start; gap: 6px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); border-radius: 999px; padding: 4px 10px; margin-bottom: 8px; }
.ev-card h3 { font-size: 21px; line-height: 1.15; }
.ev-card .meta { font-size: 12.5px; opacity: .85; margin-top: 2px; }
.ev-card + .ev-card { margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: var(--r); overflow: hidden; }
.gallery button { padding: 0; border: 0; aspect-ratio: 1; cursor: pointer; background: var(--card); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.gallery .add { display: grid; place-items: center; font-size: 30px; color: var(--muted); border: 2px dashed var(--line-2); }
.lightbox { position: fixed; inset: 0; z-index: 85; background: rgba(5, 2, 8, .95); display: grid; place-items: center; animation: fade .25s; }
.lightbox img { max-width: 96vw; max-height: 82vh; border-radius: 12px; }
.lightbox .cap { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 16px; right: 16px; text-align: center; color: var(--muted); }
.lightbox .x { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; }
@keyframes fade { from { opacity: 0; } }
.stars { display: flex; gap: 4px; }
.stars input { position: absolute; opacity: 0; }
.stars span { font-size: 32px; color: var(--line-2); cursor: pointer; transition: color .15s, transform .2s var(--spring); display: inline-block; }
.stars:has(input:checked) span { color: var(--gold); }
.stars label:has(input:checked) ~ label span { color: var(--line-2); }
.stars label:hover span { transform: scale(1.2); }
.entry { padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.entry + .entry { margin-top: 10px; }
.entry .head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.entry .head .hd { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--card-2); }
.entry .q { font-size: 12px; font-weight: 800; color: var(--a2); margin-top: 10px; }
.entry .a { white-space: pre-wrap; }
.entry.locked .a { filter: blur(6px); user-select: none; }
.comment { margin: 8px 0 0 12px; padding-left: 10px; border-left: 2px solid var(--line-2); font-size: 14px; }

/* ---------- Para ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px; text-align: center; }
.stat b { display: block; font: 800 26px/1.05 var(--display); }
.stat span { font-size: 11.5px; color: var(--faint); font-weight: 700; }
.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.duo .l { text-align: right; font: 800 22px var(--display); color: var(--her); }
.duo .r { font: 800 22px var(--display); color: var(--him); }
.duo .m { color: var(--faint); font-size: 12px; text-align: center; min-width: 110px; font-weight: 700; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ach { padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); }
.ach .i { font-size: 30px; }
.ach b { display: block; margin-top: 6px; font-family: var(--display); }
.ach p { margin: 2px 0 0; font-size: 12.5px; color: var(--faint); }
.ach.off { opacity: .4; filter: grayscale(1); }
.ach.on { border-color: rgba(255, 209, 102, .5); background: linear-gradient(160deg, rgba(255, 209, 102, .18), rgba(255, 209, 102, .03)); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 800; font-size: 14px; text-decoration: none; margin-bottom: 8px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin: 10px 0 4px; }
.bars .wk { flex: 1; display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.bars .wk i { flex: 1; border-radius: 4px 4px 0 0; min-height: 3px; }
.bars-x { display: flex; gap: 6px; font-size: 10.5px; color: var(--faint); }
.bars-x span { flex: 1; text-align: center; }

/* ---------- Gry ---------- */
.game-card { border-radius: var(--r-xl); padding: 20px; position: relative; overflow: hidden; min-height: 170px; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 24px 50px -24px var(--g1); }
.game-card + .game-card { margin-top: 12px; }
.game-card .gi { position: absolute; right: 10px; top: 6px; font-size: 84px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3)); animation: bob 4s ease-in-out infinite; }
.game-card h3 { font-size: 26px; line-height: 1.05; max-width: 70%; }
.game-card p { margin: 6px 0 14px; font-size: 14px; opacity: .88; max-width: 80%; }
.game-card .btn { background: rgba(255, 255, 255, .95); color: #1a0a1f; }
.game-card .btn.ghost { background: rgba(0, 0, 0, .2); color: #fff; border-color: rgba(255, 255, 255, .4); }
.game-card.locked { filter: saturate(.4); opacity: .7; }
.score { display: flex; align-items: center; gap: 16px; font: 800 30px var(--display); }
.score .p { display: grid; justify-items: center; font-size: 12px; font-family: var(--sans); color: var(--muted); }
.score .p .hd { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 3px solid var(--pc); }

@media (min-width: 700px) {
  .topbar h1 { font-size: 36px; }
  .snap > * { flex-basis: 70%; }
}

/* ---------- Para, gry: dodatki ---------- */
.page-h { font-size: 28px; font-weight: 800; margin: 2px 0 14px; }
.stage.small { height: 230px; }
.stage.small .char { width: 120px; height: 222px; }
.pair-hero { padding-top: 4px; }
.score .p { transition: transform .3s var(--spring); }
.score .p.on { transform: scale(1.12); color: var(--text); }
.score .p.on .hd { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 35%, transparent), 0 0 24px var(--pc); }
.score .p .hd svg { width: 100%; height: 100%; }
.emotes { display: flex; gap: 6px; justify-content: center; }
.emote { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 20px; cursor: pointer; transition: transform .2s var(--spring); }
.emote:active { transform: scale(.85); }
.float-emote { position: absolute; bottom: 30%; font-size: 46px; pointer-events: none; animation: floatUp 1.8s var(--ease) forwards; z-index: 5; }
.float-emote.mine { font-size: 34px; opacity: .8; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { transform: translateY(-20px) scale(1.2); opacity: 1; } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }

html, body { overflow-x: clip; }
.sheet-hero .badge { background: rgba(26, 10, 31, .16); color: #1a0a1f; }
.core { margin: 0; display: grid; justify-items: center; }
.core svg { max-width: 100%; height: auto; }
.petal-track { fill: rgba(255, 255, 255, .06); }
.petal-label { font-size: 18px; }
.core-legend { display: none; }
.pillar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.pillar-row b { font: 800 20px var(--display); }
.pillar-row small { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; }
.pillar-row .progress { grid-column: 1 / -1; height: 6px; }

/* =====================================================================
   v3: nawigacja ze „Stwórz”, strony tworzenia, czat, umowy, zakłady, gry, kreator kierunku
   ===================================================================== */

/* ---------- pasek: środkowy „Stwórz” ---------- */
.nav-create { position: relative; z-index: 2; border: 0; background: none; color: var(--text); display: grid; place-items: center; align-content: end; gap: 2px; font: 700 11px var(--sans); cursor: pointer; padding: 0 0 9px; }
.nav-create span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 14px 30px -10px var(--a1), 0 0 0 5px var(--ink); transition: transform .35s var(--spring), border-radius .3s; }
.nav-create svg { width: 28px; height: 28px; stroke: #1a0a1f; stroke-width: 2.6; stroke-linecap: round; fill: none; transition: transform .35s var(--spring); }
body.creating .nav-create span { transform: translateX(-50%) rotate(135deg); border-radius: 50%; }
.nav-create:active span { transform: translateX(-50%) scale(.9); }

.create-bg { position: fixed; inset: 0; z-index: 28; background: rgba(8, 3, 12, 0); transition: background .3s, backdrop-filter .3s; }
.create-bg.in { background: rgba(8, 3, 12, .6); backdrop-filter: blur(6px); }
.create-dock { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 29; width: min(calc(100% - 24px), var(--max)); transform: translate(-50%, 30px) scale(.96); opacity: 0; pointer-events: none; transition: transform .38s var(--spring), opacity .25s; background: rgba(36, 21, 54, .97); border: 1px solid var(--line-2); border-radius: 28px; padding: 12px; box-shadow: 0 30px 70px -20px #000; }
.create-dock.in { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.cd-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: rgba(0, 0, 0, .25); border-radius: 16px; padding: 4px; margin-bottom: 10px; }
.cd-tabs button { border: 0; background: none; color: var(--muted); font: 800 13px var(--sans); padding: 9px 4px; border-radius: 12px; cursor: pointer; transition: all .2s; }
.cd-tabs button.on { background: var(--text); color: #1a0a1f; }
.cd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 52dvh; overflow-y: auto; }
.cd-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 18px; padding: 12px; cursor: pointer; color: var(--text); font: inherit; background: linear-gradient(150deg, color-mix(in srgb, var(--t) 30%, transparent), color-mix(in srgb, var(--t) 6%, transparent)); animation: rise .35s var(--ease) both; animation-delay: calc(var(--n) * 30ms); transition: transform .2s var(--spring); }
.cd-item:active { transform: scale(.95); }
.cd-item .ti { grid-row: span 2; font-size: 28px; }
.cd-item b { font: 800 15px var(--display); line-height: 1.15; }
.cd-item small { font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.25; }

/* ---------- bąbel czatu ---------- */
.chat-fab { position: fixed; right: max(16px, calc(50% - var(--max) / 2 + 16px)); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 27; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 16px 34px -12px var(--a1); transition: transform .3s var(--spring); }
.chat-fab:active { transform: scale(.9); }
.chat-fab .cf-ava { position: absolute; inset: 4px; border-radius: 50%; overflow: hidden; background: var(--solid-2); }
.chat-fab .cf-ava svg { width: 100%; height: 100%; }
.chat-fab .cf-ico { position: absolute; left: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--solid); border: 2px solid var(--ink); }
.chat-fab b { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bad); color: #fff; font: 800 11.5px/22px var(--sans); border: 2px solid var(--ink); animation: rcPop .35s var(--spring); }
.chat-fab.game { background: linear-gradient(135deg, #2fe0c2, #8b6cff); }
body.creating .chat-fab, body.chat-open .chat-fab { transform: scale(0); }
@keyframes rcPop { from { transform: scale(0); } }
body.chat-open .topbar, body.chat-open .bottom-nav, body.chat-open .aura { display: none; }
.chat-screen { position: fixed; inset: 0; z-index: 40; max-width: var(--max); margin: 0 auto; }
@media (min-width: 620px) { .chat-screen { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.dot-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; margin-left: 2px; }

/* ---------- okna: ✕, strony na pełny ekran ---------- */
.sheet { position: relative; }
.sheet-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); color: var(--text); font-size: 15px; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.sheet-backdrop.as-page { align-items: stretch; }
.sheet.page { max-height: none; height: 100dvh; border-radius: 0; padding: 0; display: flex; flex-direction: column; transform: translateX(100%); border-top: 0; overflow: hidden; background: var(--ink); }
.sheet-backdrop.as-page.in .sheet.page { transform: none; }
.sheet-backdrop.as-page.out .sheet.page { transform: translateX(100%); }
.page-bar { flex: none; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: calc(8px + env(safe-area-inset-top)) 8px 8px; border-bottom: 1px solid var(--line); background: rgba(23, 11, 34, .9); backdrop-filter: blur(14px); }
.page-bar b { text-align: center; font: 800 17px var(--display); }
.page-back { width: 44px; height: 44px; border: 0; background: none; color: var(--text); font-size: 34px; line-height: 1; cursor: pointer; border-radius: 14px; }
.page-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); }
.page-hero { position: relative; overflow: hidden; margin: -16px -16px 18px; padding: 22px 20px 20px; background: linear-gradient(135deg, var(--g1, var(--a1)), var(--g2, var(--a2))); color: #1a0a1f; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 70% at 100% 0%, rgba(255, 255, 255, .35), transparent 60%); pointer-events: none; }
.page-hero .big-ico { position: absolute; right: 8px; top: 2px; font-size: 76px; transform: rotate(8deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25)); }
.page-hero h2 { font-size: 28px; line-height: 1.05; max-width: 76%; position: relative; z-index: 1; }
.page-hero p { margin: 6px 0 0; font-size: 14px; opacity: .85; max-width: 86%; position: relative; z-index: 1; }
.page-hero .kicker { font-size: 12.5px; font-weight: 800; opacity: .7; position: relative; z-index: 1; }
@media (min-width: 700px) { .sheet-backdrop.as-page { align-items: stretch; } .sheet.page { border-radius: 0; } }

/* ---------- przełącznik segmentowy ---------- */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin-bottom: 14px; }
.seg > button, .seg > a { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 800 13.5px var(--sans); padding: 9px 4px; border-radius: 12px; cursor: pointer; text-decoration: none; text-align: center; transition: color .25s; display: flex; align-items: center; justify-content: center; gap: 5px; }
.seg > .on { color: #1a0a1f; }
.seg > i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 3)); border-radius: 12px; background: var(--text); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .4s var(--spring); }
.seg.big { margin: 2px 0 16px; }
.seg.big > a { flex-direction: column; gap: 0; font-size: 12px; padding: 7px 2px; }
.seg.big > a span { font-size: 18px; }
.seg > a b { position: absolute; top: 2px; right: 8%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; }
.chips.sub { margin-bottom: 14px; }
.chips.sub .chip, a.chip { text-decoration: none; }
.chip.big { padding: 9px 13px; font-size: 13.5px; }

/* ---------- wyzwania okresu ---------- */
.spot .seg { --n: 3; }
.spot-hero h3 { max-width: 82%; }
.spot-list { margin: -6px 0 12px; padding-left: 18px; font-size: 13.5px; position: relative; z-index: 1; opacity: .85; }
.spot-steps { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.spot-steps span { font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .35); border-radius: 10px; padding: 6px 9px; }
.spot-steps span.ok { background: rgba(26, 10, 31, .8); color: #fff; }
.secret-card { border-color: rgba(155, 123, 255, .5); }

/* ---------- Dziś: propozycje, czeka na Ciebie ---------- */
.sug-list { display: grid; gap: 10px; }
.sug { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--g1) 34%, transparent), color-mix(in srgb, var(--g2) 18%, transparent)); border: 1px solid color-mix(in srgb, var(--g1) 40%, transparent); transition: opacity .25s, transform .25s; }
.sug.gone { opacity: 0; transform: translateX(40px); }
.sug-ico { font-size: 30px; line-height: 1; flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(0, 0, 0, .25); }
.sug-body { flex: 1; min-width: 0; }
.sug-body b { font: 800 16px/1.25 var(--display); display: block; }
.sug-body p { margin: 3px 0 10px; font-size: 13.5px; color: var(--muted); }
.sug-actions { display: flex; align-items: center; gap: 14px; }
.sug-go { background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; }
.wait-list { display: grid; gap: 8px; }
.wait { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2); }
.wait .ico { font-size: 22px; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 20%, transparent); flex: none; }
.wait .wb { flex: 1; min-width: 0; }
.wait b { display: block; font-size: 14.5px; line-height: 1.3; }
.wait small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.wait .wa { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.duo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo-cards .card + .card { margin-top: 0; }
.duo-cards .card { text-decoration: none; color: inherit; padding: 14px; font: inherit; text-align: left; }
.core-mini { display: grid; gap: 4px; }
.core-mini figure { margin: 0 auto; }
.core-mini svg { width: 96px; height: 96px; overflow: visible; }
.core-mini small { font-size: 12px; color: var(--muted); }
.pils { display: grid; gap: 3px; margin-top: 6px; }
.pils i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--c) var(--w), rgba(255, 255, 255, .08) var(--w)); }
.duo-cards .countdown-card { flex-direction: column; align-items: flex-start; gap: 6px; }
.duo-cards .countdown-card b { font: 800 15px/1.2 var(--display); display: block; }
.duo-cards .countdown-card small { display: block; }

/* ---------- codzienne pytania (umowy) ---------- */
.daily-card { border-radius: var(--r-lg); padding: 14px; border: 1.5px solid color-mix(in srgb, var(--c) 50%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, transparent), transparent); margin-bottom: 10px; }
.dc-top { display: flex; gap: 12px; align-items: center; }
.dc-ico { font-size: 28px; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgba(0, 0, 0, .25); flex: none; }
.dc-top > div { flex: 1; min-width: 0; }
.dc-top b { font: 800 16.5px/1.25 var(--display); display: block; }
.dc-top small { color: var(--faint); font-size: 12px; }
.streak { font: 800 15px var(--display); color: var(--gold); white-space: nowrap; }
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 12px 0; }
.week-dots i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.week-dots i.no { background: var(--ok); }
.week-dots i.yes { background: var(--bad); }
.week-dots i.future { opacity: .35; }
.dc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dc-done { font-weight: 800; font-size: 14px; padding: 10px 12px; border-radius: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.dc-done.ok { background: rgba(78, 230, 166, .14); color: var(--ok); }
.dc-done.bad { background: rgba(255, 107, 129, .12); color: #ffb3bf; }
.dc-yday { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.auto-status { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; margin-top: 10px; text-decoration: none; color: inherit; }
.auto-status > span { font-size: 22px; }
.auto-status > div { flex: 1; min-width: 0; }
.auto-status b { display: block; font-size: 14px; }
.auto-status small { color: var(--faint); font-size: 12px; }
.auto-status.ok { background: rgba(78, 230, 166, .1); border: 1px solid rgba(78, 230, 166, .3); }
.auto-status.warn { background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .35); }
a.auto-status + a.auto-status { margin-top: 8px; }

/* ---------- karty umów ---------- */
.agr-list { display: grid; gap: 10px; }
.agr { position: relative; padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c); }
.agr-top { display: flex; gap: 12px; align-items: center; }
.agr-ico { font-size: 30px; width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); }
.agr-t { flex: 1; min-width: 0; }
.agr-t b { font: 800 16.5px/1.2 var(--display); display: block; }
.agr-t small { color: var(--faint); font-size: 12px; font-weight: 700; }
.agr-count { text-align: center; }
.agr-count b { display: block; font: 800 24px/1 var(--display); }
.agr-count small { font-size: 10.5px; color: var(--faint); font-weight: 700; }
.agr-lines { display: grid; gap: 3px; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.agr-lines .next { color: var(--text); }
.agr .row-actions, .agr > .btn { margin-top: 12px; }
.agr-hist { margin-top: 10px; font-size: 13px; }
.agr-hist summary { cursor: pointer; color: var(--faint); font-weight: 700; }
.agr .end { display: block; margin: 8px 0 0 auto; color: var(--faint); font-size: 12.5px; }
.btn.gold { background: linear-gradient(135deg, #ffd166, #ffb020); color: #1a0a1f; }
.kind-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 18px; }
.kind-pick button { border: 1.5px solid var(--line); background: var(--card); color: var(--muted); border-radius: 14px; padding: 8px 2px; font: 700 10.5px/1.2 var(--sans); cursor: pointer; display: grid; justify-items: center; gap: 2px; transition: all .2s; }
.kind-pick button span { font-size: 22px; }
.kind-pick button.on { border-color: var(--c); color: var(--text); background: color-mix(in srgb, var(--c) 20%, transparent); }
.card.esc { margin-bottom: 16px; }
.chips.pool .chip { font-size: 12px; }
.reveal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(8, 3, 12, 0); transition: background .25s; }
.reveal.in { background: rgba(8, 3, 12, .75); backdrop-filter: blur(6px); }
.reveal-card { width: min(380px, 100%); border-radius: 28px; padding: 24px 20px 20px; text-align: center; background: linear-gradient(160deg, #3a1757, #1d0d2c); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px #000; transform: scale(.85); opacity: 0; transition: transform .45s var(--spring), opacity .25s; }
.reveal.in .reveal-card { transform: none; opacity: 1; }
.reveal-card.love { background: linear-gradient(160deg, #5a3a07, #2a1606); }
.rv-kicker { font-size: 13px; color: var(--muted); font-weight: 700; }
.rv-label { margin-top: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 800; }
.rv-value { font: 800 26px/1.2 var(--display); margin: 8px 0 20px; min-height: 64px; display: grid; place-items: center; }
.rv-value.land { animation: land2 .6s var(--spring); color: var(--gold); }
@keyframes land2 { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } }

/* ---------- zakłady ---------- */
.bet-list { display: grid; gap: 10px; }
.bet { padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.bet.won { border-color: rgba(78, 230, 166, .45); }
.bet.lost { border-color: rgba(255, 107, 129, .4); }
.bet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bet h3 { font-size: 19px; margin: 8px 0 10px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; }
.vs .side { border-radius: 14px; padding: 10px; display: grid; gap: 3px; align-content: start; }
.vs .side.me { background: color-mix(in srgb, var(--her) 16%, transparent); }
.vs .side.them { background: color-mix(in srgb, var(--him) 16%, transparent); }
.vs small { font-size: 11px; color: var(--faint); font-weight: 800; }
.vs b { font-size: 14px; line-height: 1.25; }
.vs span { font-size: 11.5px; color: var(--muted); }
.vs-x { align-self: center; font: 900 14px var(--display); color: var(--faint); }
.bet-score { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 16px 0 0; }
.bet-score span { display: grid; justify-items: center; font-size: 12px; color: var(--faint); font-weight: 700; }
.bet-score b { font: 800 32px/1 var(--display); color: var(--text); }

/* ---------- gry ---------- */
.gc-kick { font-weight: 800; font-size: 12.5px; opacity: .75; }
.gc-score { margin: 12px 0 0 !important; font-size: 13px !important; }
.game-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.game-top .back { margin: 0; }
.ttt, .quiz { position: relative; display: grid; justify-items: center; gap: 14px; }
.score { display: flex; align-items: center; justify-content: center; gap: 16px; font: 800 30px var(--display); }
.score .p { display: grid; justify-items: center; font-size: 12px; font-family: var(--sans); color: var(--muted); transition: transform .3s var(--spring); max-width: 110px; text-align: center; }
.score .p .hd { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 3px solid var(--pc); }
.score .p .hd svg { width: 100%; height: 100%; }
.score .p.on { transform: scale(1.12); color: var(--text); }
.score .p.on .hd { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 35%, transparent), 0 0 24px var(--pc); }
.turn { font-weight: 800; font-size: 16px; padding: 9px 18px; border-radius: 999px; background: var(--card-2); transition: all .3s; }
.turn.mine { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #1a0a1f; animation: glow 1.8s infinite; }
.turn.over { background: color-mix(in srgb, var(--pc) 30%, transparent); }
@keyframes glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--a1) 25%, transparent); } }
.stake { max-width: 100%; }
.ttt-board { --s: min(calc(100vw - 48px), 340px); position: relative; width: var(--s); height: var(--s); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: 28px; background: linear-gradient(160deg, #26124a, #160a2c); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 26px 50px -20px #000; }
.ttt-board .cell { position: relative; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .05); cursor: pointer; padding: 10%; transition: background .2s, transform .2s var(--spring); }
.ttt-board.my-turn .cell:not(:disabled):hover { background: rgba(255, 255, 255, .1); }
.ttt-board .cell:disabled { cursor: default; }
.ttt-board .cell:not(:disabled):active { transform: scale(.94); }
.ttt-board .cell > span { display: block; width: 100%; height: 100%; }
.mk { width: 100%; height: 100%; fill: none; stroke: var(--pc); stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--pc) 60%, transparent)); }
.cell.fresh .mk path, .cell.fresh .mk circle { stroke-dasharray: 180; stroke-dashoffset: 180; animation: draw .45s var(--ease) forwards; }
.cell.fresh .mk path:nth-child(2) { animation-delay: .15s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cell .ghost { opacity: 0; transition: opacity .2s; }
.cell .ghost .mk { stroke: var(--muted); filter: none; }
.ttt-board.my-turn .cell:hover .ghost { opacity: .25; }
.cell.fading { animation: fadeBlink 1.1s ease-in-out infinite; }
@keyframes fadeBlink { 50% { opacity: .3; } }
.cell.win { background: color-mix(in srgb, var(--pc) 22%, transparent); }
.win-line { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; }
.win-line line { stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw .5s .1s var(--ease) forwards; filter: drop-shadow(0 0 8px #fff); }
.emotes { display: flex; gap: 6px; justify-content: center; }
.emote { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 20px; cursor: pointer; transition: transform .2s var(--spring); }
.emote:active { transform: scale(.85); }
.float-emote { position: absolute; bottom: 30%; font-size: 46px; pointer-events: none; animation: floatUp 1.8s var(--ease) forwards; z-index: 5; }
.float-emote.mine { font-size: 34px; opacity: .8; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { transform: translateY(-20px) scale(1.2); opacity: 1; } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }

/* quiz */
.q-progress { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.q-progress i { width: 18px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.q-progress i.ok { background: var(--ok); }
.q-progress i.bad { background: var(--bad); }
.q-progress i.now { background: var(--a2); animation: fadeBlink 1.2s infinite; }
.q-card { width: 100%; border-radius: var(--r-xl); padding: 20px; background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 28%, transparent), rgba(255, 255, 255, .03)); border: 1.5px solid color-mix(in srgb, var(--pc) 45%, transparent); display: grid; gap: 14px; animation: rise .4s var(--ease) both; }
.q-kick { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.q-card h2 { font-size: 25px; line-height: 1.15; }
.q-opts { display: grid; gap: 8px; }
.q-opt { border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, .2); color: var(--text); font: 800 16px var(--sans); padding: 15px; border-radius: 16px; cursor: pointer; text-align: left; transition: all .2s var(--spring); }
.q-opt:active { transform: scale(.97); background: color-mix(in srgb, var(--pc) 25%, transparent); }
.q-answer { display: grid; gap: 10px; }
.q-given { background: rgba(0, 0, 0, .25); border-radius: 16px; padding: 12px 14px; display: grid; }
.q-given small { font-size: 12px; color: var(--faint); font-weight: 700; }
.q-given b { font: 800 19px/1.3 var(--display); }
.q-verdict { display: flex; align-items: center; gap: 12px; justify-content: center; font: 800 26px var(--display); animation: land2 .6s var(--spring); }
.q-verdict span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; }
.q-verdict.yes span { background: var(--ok); color: #062a1b; }
.q-verdict.no span { background: var(--bad); color: #fff; }
.q-wait { width: 100%; text-align: center; padding: 30px 10px; display: grid; gap: 6px; justify-items: center; color: var(--muted); }
.q-wait.small { padding: 12px; }
.q-wait b { color: var(--text); font-size: 16px; }
.q-dots { display: flex; gap: 6px; }
.q-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--a2); animation: rcDot 1s infinite; }
.q-dots i:nth-child(2) { animation-delay: .15s; } .q-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes rcDot { 30% { transform: translateY(-6px); opacity: .5; } }
.q-pick { width: 100%; }
.q-pick h3 { font-size: 21px; margin-bottom: 10px; text-align: center; }
.chips.tpl .chip { text-align: left; }
.q-own { margin-top: 12px; }
.q-own [name=question] { margin-bottom: 4px; }
.opt-row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.opt-row input[type=radio] { width: 22px; height: 22px; accent-color: var(--ok); flex: none; }
.q-final { width: 100%; text-align: center; display: grid; gap: 12px; }
.q-final .big { font-size: 72px; animation: bob 2.5s ease-in-out infinite; }
.q-final .list { text-align: left; }
.q-hist .ico { font-weight: 900; }

/* ---------- galeria i zdjęcia ---------- */
.gal-month { font: 800 14px var(--display); color: var(--muted); margin: 16px 0 8px; text-transform: capitalize; }
.gallery button { position: relative; }
.gallery .tag { position: absolute; right: 4px; bottom: 4px; font-size: 12px; font-style: normal; background: rgba(0, 0, 0, .5); border-radius: 8px; padding: 1px 4px; }
.upload-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.upload-strip img { height: 120px; width: auto; border-radius: 14px; flex: none; }

/* ---------- kreator „Wspólny kierunek” ---------- */
.onb { position: fixed; inset: 0; z-index: 75; background: radial-gradient(120% 80% at 50% -10%, #3a1757, var(--ink) 60%); display: flex; flex-direction: column; opacity: 0; transform: scale(1.03); transition: opacity .35s, transform .35s var(--ease); }
.onb.in { opacity: 1; transform: none; }
.onb-top { flex: none; display: flex; gap: 12px; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 16px 8px; max-width: var(--max); width: 100%; margin: 0 auto; font-size: 12px; color: var(--faint); font-weight: 700; }
.onb-x { border: 0; background: none; color: var(--muted); font: 700 13px var(--sans); cursor: pointer; }
.onb-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.onb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff7a8a, #ffd166); transition: width .5s var(--ease); }
.onb-body { flex: 1; overflow-y: auto; padding: 10px 16px 20px; max-width: var(--max); width: 100%; margin: 0 auto; }
.onb-body.fwd { animation: viewIn .4s var(--ease) both; }
.onb-body.back { animation: viewInL .4s var(--ease) both; }
.onb-body h2 { font-size: 30px; margin: 6px 0 8px; }
.onb-h3 { font-size: 18px; margin: 22px 0 10px; }
.onb-hero { text-align: center; display: grid; justify-items: center; gap: 10px; padding-top: 10px; }
.onb-hero h1 { font-size: 36px; line-height: 1.05; }
.onb-hero p { color: var(--muted); max-width: 40ch; margin: 0; }
.onb-duo { display: flex; justify-content: center; height: 230px; }
.onb-duo svg { height: 230px; width: auto; }
.onb-big { display: grid; justify-items: center; margin: 14px 0; }
.onb-big b { font: 800 64px/1 var(--display); background: linear-gradient(100deg, #ff7a8a, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; }
.onb-big span { color: var(--muted); font-weight: 700; }
.onb-add { display: flex; gap: 8px; margin-top: 10px; }
.onb-add input { min-width: 0; }
.onb-habits, .onb-events, .onb-pacts { display: grid; gap: 8px; }
.onb-habit, .onb-ev { border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); transition: all .2s; }
.onb-habit.on, .onb-ev.on { border-color: #ffd166; background: rgba(255, 209, 102, .1); }
.onb-habit > button, .onb-ev > button { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; border: 0; background: none; color: var(--text); padding: 12px; cursor: pointer; font: inherit; }
.onb-habit > button span, .onb-ev > button span { grid-row: span 2; font-size: 26px; }
.onb-habit > button small { color: var(--faint); font-size: 12px; }
.onb-habit .who { display: flex; gap: 6px; padding: 0 12px 12px 52px; }
.onb-habit .who button { border: 1.5px solid var(--line-2); background: none; color: var(--muted); border-radius: 99px; padding: 6px 14px; font: 700 13px var(--sans); cursor: pointer; }
.onb-habit .who button.on { background: var(--text); color: #1a0a1f; border-color: var(--text); }
.onb-ev { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-right: 10px; }
.onb-ev > button { grid-template-rows: auto; }
.onb-ev > button span { grid-row: auto; }
.onb-ev small { color: var(--faint); font-size: 12px; white-space: nowrap; }
.onb-ev input { max-width: 150px; min-height: 40px !important; padding: 6px 10px !important; }
.onb-pact { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: all .2s; }
.onb-pact > span { font-size: 26px; }
.onb-pact > div { flex: 1; }
.onb-pact small { display: block; color: var(--faint); font-size: 12.5px; }
.onb-pact i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); font-weight: 900; }
.onb-pact.on { border-color: #ffd166; background: rgba(255, 209, 102, .1); }
.onb-pact.on i { background: #ffd166; color: #1a0a1f; }
.onb-sum { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; text-align: left; font-weight: 700; }
.onb-nav { flex: none; display: flex; gap: 10px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); max-width: var(--max); width: 100%; margin: 0 auto; }
.onb-nav .btn { flex: 1; }
.onb-nav .btn.ghost { flex: 0 0 auto; }
