/* =====================================================================
   Rdzeń v4: Randkomat, „Kto wie więcej?”, lista marzeń, kapsuła czasu (listy),
   rozliczenia, przegląd propozycji, ustawienia widoczności.
   ===================================================================== */
body[data-world="randki"] { --a1: #ff5d8f; --a2: #ff9f6b; }
.hand { font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive; }

/* ---------- pasek: 6 albo 7 pozycji ---------- */
.bottom-nav { grid-template-columns: repeat(var(--cols, 6), 1fr); }
.bottom-nav .pill { width: calc((100% - 12px) / var(--cols, 6)); }
.bottom-nav.seven a { font-size: 10px; letter-spacing: -.01em; }
.bottom-nav.seven a svg { width: 21px; height: 21px; }
.bottom-nav.seven .nav-create { font-size: 10px; }
.bottom-nav.seven .nav-create span { width: 50px; height: 50px; border-radius: 18px; }

/* ---------- talia kart do przesuwania ---------- */
.swipe-deck { position: relative; height: min(62vh, 470px); margin: 6px auto 0; width: 100%; max-width: 400px; touch-action: none; }
.sw-card { position: absolute; inset: 0; border-radius: 28px; transform: translateY(calc(var(--k) * 12px)) scale(calc(1 - var(--k) * .045)); transition: transform .3s var(--spring), opacity .25s; z-index: calc(10 - var(--k)); user-select: none; -webkit-user-select: none; cursor: grab; }
.sw-card[data-i="2"] { opacity: .6; }
.sw-card.dragging { transition: none; cursor: grabbing; }
.sw-card.fly { transition: transform .32s ease-in, opacity .32s; opacity: 0; pointer-events: none; }
.sw-card.fly.like { transform: translate(140%, -10%) rotate(24deg) !important; }
.sw-card.fly.nope { transform: translate(-140%, -10%) rotate(-24deg) !important; }
.sw-card.fly.super { transform: translate(0, -140%) scale(.9) !important; }
.sw-stamp { position: absolute; z-index: 5; top: 26px; padding: 6px 14px; border: 4px solid; border-radius: 14px; font: 900 26px var(--display); letter-spacing: .04em; pointer-events: none; opacity: 0; }
.sw-stamp.like { left: 22px; color: #4ee6a6; transform: rotate(-14deg); opacity: var(--like, 0); }
.sw-stamp.nope { right: 22px; color: #ff6b81; transform: rotate(14deg); opacity: var(--nope, 0); }
.sw-stamp.super { left: 50%; top: auto; bottom: 34px; transform: translateX(-50%) rotate(-6deg); color: #ffd166; opacity: var(--super, 0); }
.dt-btns { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; }
.dt-b { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--solid); font-size: 26px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 26px -12px #000; transition: transform .18s var(--spring); color: var(--text); }
.dt-b:active { transform: scale(.88); }
.dt-b.nope { color: #ff6b81; border-color: rgba(255, 107, 129, .5); }
.dt-b.like { color: #4ee6a6; border-color: rgba(78, 230, 166, .5); width: 70px; height: 70px; font-size: 30px; }
.dt-b.super { color: #ffd166; border-color: rgba(255, 209, 102, .5); width: 52px; height: 52px; font-size: 22px; }
.dt-b.undo { width: 44px; height: 44px; font-size: 20px; color: var(--muted); }
.dt-hint { text-align: center; font-size: 12.5px; margin-top: 10px; }

/* ---------- Randkomat ---------- */
.dt-hero { text-align: center; padding: 22px 18px 18px; background: linear-gradient(160deg, rgba(255, 93, 143, .22), rgba(255, 159, 107, .08)); }
.dt-hero h2 { font-size: 26px; }
.dt-hero p { margin: 6px auto 12px; max-width: 360px; font-size: 14px; }
.dt-hero-cards { position: relative; height: 70px; margin-bottom: 6px; }
.dt-hero-cards span { position: absolute; left: 50%; top: 4px; width: 46px; height: 62px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; background: #fff; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .6); animation: dtFan 3.4s var(--ease) infinite alternate; }
.dt-hero-cards span:nth-child(1) { --r: -16deg; --x: -60px; }
.dt-hero-cards span:nth-child(2) { --r: 0deg; --x: -23px; z-index: 2; }
.dt-hero-cards span:nth-child(3) { --r: 16deg; --x: 14px; }
@keyframes dtFan { from { transform: translateX(-23px) rotate(0); } to { transform: translateX(var(--x)) rotate(var(--r)); } }
.dt-stats { display: flex; justify-content: center; gap: 18px; font-size: 12.5px; color: var(--muted); }
.dt-stats b { display: block; font: 800 20px var(--display); color: var(--text); }
.dt-decks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dt-deck { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 150px; padding: 14px; border-radius: 22px; text-decoration: none; color: #fff; background: linear-gradient(150deg, var(--g1), var(--g2)); overflow: hidden; box-shadow: 0 16px 30px -18px var(--g1); transition: transform .2s var(--spring); }
.dt-deck:active { transform: scale(.96); }
.dt-deck .di { font-size: 34px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.dt-deck b { font: 800 17px/1.1 var(--display); margin-top: 6px; }
.dt-deck small { font-size: 12px; opacity: .85; }
.dt-deck .dl { margin-top: auto; padding-top: 8px; font-size: 11.5px; font-weight: 800; opacity: .9; }
.dt-deck .dw { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 99px; background: rgba(0, 0, 0, .3); font-size: 12px; font-weight: 800; }
.dt-matches { display: grid; gap: 10px; }
.dt-match { display: flex; gap: 12px; padding: 14px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 93, 143, .2), rgba(255, 159, 107, .08)); border: 1px solid rgba(255, 93, 143, .35); }
.dt-match.super { border-color: rgba(255, 209, 102, .55); box-shadow: 0 0 0 1px rgba(255, 209, 102, .2), 0 12px 30px -16px #ffd166; }
.dt-match .mi { font-size: 38px; line-height: 1; }
.dt-match .mb { flex: 1; min-width: 0; }
.dt-match .mb small { display: block; color: var(--muted); font-size: 13px; margin: 2px 0 6px; }
.dt-match .wa { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-tags span { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, .22); color: var(--muted); }
.dt-tags span:empty { display: none; }
.dt-play { display: flex; flex-direction: column; align-items: center; }
.dt-card { position: absolute; inset: 0; border-radius: 28px; padding: 26px 22px; display: flex; flex-direction: column; justify-content: flex-end; color: #1a0a1f; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .55), transparent 60%), linear-gradient(165deg, var(--g1), var(--g2)); box-shadow: 0 30px 60px -30px #000, inset 0 0 0 1px rgba(255, 255, 255, .25); }
.dt-card .dt-emoji { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); font-size: 110px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .3)); }
.dt-card h3 { font-size: 30px; line-height: 1.05; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.dt-card p { margin: 8px 0 12px; font-size: 15px; color: rgba(255, 255, 255, .92); }
.dt-card .dt-tags span { background: rgba(255, 255, 255, .25); color: #fff; }
.dt-super, .dt-custom { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; background: rgba(26, 10, 31, .55); color: #ffd166; font: 800 12.5px var(--sans); backdrop-filter: blur(6px); }
.dt-custom { left: auto; right: 16px; padding: 4px 10px; color: #fff; }
.dt-empty { width: 100%; }
.dt-matchsheet { text-align: center; }
.dt-matchfx { padding: 10px 4px 4px; }
.dt-matchfx h2 { font-size: 40px; background: linear-gradient(135deg, #ff5d8f, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pop .6s var(--spring) both; }
.dt-mheads { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 10px; }
.dt-mheads .head-ico { animation: dtSlideL .7s var(--spring) both; border: 3px solid #fff; }
.dt-mheads .head-ico:last-child { animation-name: dtSlideR; }
.dt-heart { font-size: 40px; animation: pop .6s .35s var(--spring) both; }
@keyframes dtSlideL { from { transform: translateX(-80px) rotate(-20deg); opacity: 0; } }
@keyframes dtSlideR { from { transform: translateX(80px) rotate(20deg); opacity: 0; } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.dt-mcard { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 22px; margin: 4px 0 8px; border-radius: 20px; background: var(--card-2); }
.dt-mcard span { font-size: 46px; }
.dt-mcard small { color: var(--gold); font-weight: 700; }
.dt-matchfx.super .dt-mcard { box-shadow: 0 0 0 2px #ffd166; }

/* ---------- „Kto wie więcej?” ---------- */
.tv { display: flex; flex-direction: column; gap: 12px; padding-bottom: 120px; }
.tv .btn.primary .faint { color: inherit; opacity: .6; }
.tv-score { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tv-p { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.tv-p.me { border-color: color-mix(in srgb, var(--pc) 55%, transparent); background: color-mix(in srgb, var(--pc) 12%, transparent); }
.tv-p .nm { font-size: 12.5px; font-weight: 800; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-num { font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.tv-streak { position: absolute; top: -8px; right: 10px; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: #ff7a3d; color: #1a0a1f; }
.tv-score .stake { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap; }
.tv-team { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 22px; background: linear-gradient(135deg, rgba(70, 198, 242, .18), rgba(139, 108, 255, .14)); border: 1px solid var(--line-2); }
.tv-team small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.tv-heads { display: flex; }
.tv-heads .head-ico + .head-ico { margin-left: -10px; }
.tv-lives { font-size: 20px; letter-spacing: 2px; }
.tv-lives span { filter: grayscale(1) opacity(.3); transition: filter .4s; }
.tv-lives span.on { filter: none; }
.tv-limit { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tv-q { --cc: #8b6cff; padding: 18px 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 26%, transparent), var(--card)); border-color: color-mix(in srgb, var(--cc) 40%, transparent); }
.tv-qmeta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tv-cat { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--cc) 30%, rgba(0, 0, 0, .25)); }
.tv-lvl { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.tv-lvl i { font-style: normal; opacity: .22; }
.tv-timer { --p: 100; position: relative; margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; }
.tv-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.tv-timer circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 4; }
.tv-timer circle.v { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset .2s linear, stroke .3s; }
.tv-timer b { font: 800 16px var(--display); font-variant-numeric: tabular-nums; }
.tv-timer.hurry circle.v { stroke: var(--bad); }
.tv-timer.hurry b { color: var(--bad); animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.15); } }
.tv-text { font: 700 21px/1.3 var(--display); letter-spacing: -.01em; }
.tv-lead { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23, 11, 34, .7); backdrop-filter: blur(6px); border-radius: inherit; }
.tv-lead b { font: 800 64px var(--display); animation: pop .5s var(--spring) both; }
.tv-answers { display: grid; gap: 8px; transition: filter .3s, opacity .3s; }
.tv-answers.waiting { filter: blur(6px); opacity: .5; pointer-events: none; }
.tv-ans { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; min-height: 56px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 700 15.5px/1.25 var(--sans); cursor: pointer; transition: transform .15s var(--spring), background .25s, border-color .25s, opacity .25s; }
.tv-ans:active:not(:disabled) { transform: scale(.97); }
.tv-ans:disabled { cursor: default; }
.tv-ans .l { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 800 14px var(--display); background: rgba(255, 255, 255, .1); }
.tv-ans .t { flex: 1; }
.tv-ans .marks { display: flex; gap: 2px; }
.tv-ans .mk .head-ico { box-shadow: 0 0 0 2px var(--pc, #fff); }
.tv-ans.picked { border-color: var(--a2); background: color-mix(in srgb, var(--a2) 20%, transparent); }
.tv-ans.gone { opacity: .18; text-decoration: line-through; }
.tv-ans.right { border-color: var(--ok); background: rgba(78, 230, 166, .2); animation: rightPop .5s var(--spring); }
.tv-ans.right .l { background: var(--ok); color: #062a1b; }
.tv-ans.wrong { border-color: var(--bad); background: rgba(255, 107, 129, .18); animation: shake .4s; }
.tv-ans.wrong .l { background: var(--bad); color: #fff; }
.tv-ans.sm { min-height: 44px; padding: 8px 10px; font-size: 14px; border-radius: 14px; }
.tv-ans.sm .l { width: 26px; height: 26px; font-size: 12.5px; border-radius: 8px; }
@keyframes rightPop { 40% { transform: scale(1.04); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.tv-lifelines { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.ll { display: grid; justify-items: center; gap: 0; padding: 8px 4px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--solid); color: var(--text); cursor: pointer; transition: transform .15s var(--spring), opacity .2s; }
.ll b { font: 800 17px var(--display); }
.ll small { font-size: 11px; color: var(--muted); font-weight: 700; }
.ll:active:not(:disabled) { transform: scale(.94); }
.ll:disabled { opacity: .35; cursor: default; }
.ll.on { border-color: var(--gold); box-shadow: 0 0 18px -6px var(--gold); opacity: 1; }
.tv-status { display: grid; gap: 6px; justify-items: center; font-size: 13.5px; color: var(--muted); text-align: center; }
.tv-status > span { display: inline-flex; align-items: center; gap: 8px; }
.tv-frozen { color: #8fe3ff; font-weight: 800; animation: pop .4s var(--spring); }
.tv-reveal { display: grid; gap: 10px; }
.tv-verdict { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-weight: 800; padding: 10px; border-radius: 16px; background: var(--card); }
.tv-verdict span b { color: var(--ok); }
.tv-fact { padding: 12px 14px; border-radius: 18px; background: rgba(255, 209, 102, .1); border: 1px solid rgba(255, 209, 102, .3); animation: pop .5s .2s var(--spring) both; }
.tv-fact b { color: var(--gold); font-size: 13px; }
.tv-fact p { margin: 4px 0 0; font-size: 14.5px; }
.tv-lobby, .tv-final { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 22px 16px; }
.tv-big { font-size: 64px; line-height: 1; animation: bob 3s ease-in-out infinite; }
.tv-ready { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--faint); }
.tv-ready span { display: inline-flex; align-items: center; gap: 6px; opacity: .55; }
.tv-ready span.on { opacity: 1; color: var(--ok); font-weight: 800; }
.tv-fin { display: flex; gap: 22px; justify-content: center; }
.tv-fin-p { display: grid; justify-items: center; gap: 2px; }
.tv-fin-p .head-ico { box-shadow: 0 0 0 3px var(--pc); }
.tv-fin-p b { font: 800 34px var(--display); }
.tv-fin-p small { font-size: 11.5px; color: var(--muted); max-width: 120px; }
.tv-hist { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 360px; }
.tv-hist span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }
.tv-hist .ok { background: rgba(78, 230, 166, .22); }
.tv-hist .bad { background: rgba(255, 107, 129, .18); }
.tv-cats .chip small { opacity: .6; }
.tv-daily { --cc: #8b6cff; background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 20%, transparent), var(--card)); }
.tv-dq { display: block; font: 700 17px/1.3 var(--display); margin-bottom: 10px; }
.tv-dans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tv-dres { margin: 10px 0 0; font-weight: 800; }
.tv-dx { margin: 4px 0 0; font-size: 13px; }
.game-card.featured { min-height: 200px; }
.game-card.featured::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 10%, rgba(255, 255, 255, .35), transparent 70%); pointer-events: none; }

/* ---------- lista marzeń ---------- */
.dr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 140px; padding: 14px; border-radius: 22px; text-align: left; border: 1px solid var(--line); color: var(--text); cursor: pointer; overflow: hidden;
  background: linear-gradient(160deg, rgba(199, 155, 255, .22), rgba(255, 143, 171, .08)); transition: transform .2s var(--spring); font: inherit; }
.dr-card:active { transform: scale(.97); }
.dr-card.done { background: linear-gradient(160deg, rgba(255, 209, 102, .26), rgba(255, 143, 171, .1)); border-color: rgba(255, 209, 102, .35); }
.dr-cover { position: absolute; inset: 0; background: var(--cover) center/cover; opacity: .55; }
.dr-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 11, 34, .95), transparent 70%); }
.dr-emoji { position: absolute; top: 10px; left: 12px; font-size: 34px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.dr-body { position: relative; display: grid; gap: 2px; }
.dr-body b { font: 700 15px/1.2 var(--display); }
.dr-body small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.dr-ideas { display: grid; gap: 6px; }
.dr-idea { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.dr-idea span { font-size: 22px; }
.dr-idea b { flex: 1; font-weight: 700; font-size: 14.5px; }
.dr-idea i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #1a0a1f; font-weight: 800; }
.dr-hero { height: 140px; margin: 0 0 12px; border-radius: 22px; display: grid; place-items: center; font-size: 72px; background: var(--cover, linear-gradient(135deg, rgba(199, 155, 255, .35), rgba(255, 143, 171, .2))) center/cover; }
.dr-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.dr-strip::-webkit-scrollbar { display: none; }
.dr-mini { position: relative; flex: none; width: 128px; height: 150px; scroll-snap-align: start; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: #fff; overflow: hidden;
  background: linear-gradient(to top, rgba(23, 11, 34, .92), rgba(23, 11, 34, .1) 70%), var(--cover, linear-gradient(150deg, #ffd166, #ff8fab)) center/cover; border: 1px solid rgba(255, 209, 102, .35); }
.dr-mini span { position: absolute; top: 10px; left: 12px; font-size: 30px; }
.dr-mini b { font: 700 13.5px/1.2 var(--display); }
.dr-mini small { font-size: 11px; opacity: .8; }
.dr-empty { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; border: 1px dashed rgba(255, 209, 102, .4); text-decoration: none; color: var(--text); background: rgba(255, 209, 102, .06); }
.dr-empty > span:first-child { font-size: 28px; }
.dr-empty b { display: block; font-size: 14.5px; }
.dr-empty small { color: var(--muted); font-size: 12.5px; }
.dr-empty i { margin-left: auto; font-style: normal; font-size: 22px; color: var(--faint); }

/* ---------- kapsuła czasu: papier i koperty ---------- */
.paper-cream { --paper: #fbf3e2; --paper2: #f3e6c9; --ink-l: #2a2140; --rule: rgba(80, 110, 170, .18); }
.paper-rose { --paper: #fdeef0; --paper2: #f7d9df; --ink-l: #4a1d2c; --rule: rgba(200, 80, 110, .16); }
.paper-blue { --paper: #eef4fc; --paper2: #d9e6f7; --ink-l: #1d2a4a; --rule: rgba(60, 100, 180, .18); }
.paper-kraft { --paper: #e7d8bf; --paper2: #d6c19e; --ink-l: #3a2a17; --rule: rgba(90, 60, 30, .16); }
.paper-night { --paper: #1f2347; --paper2: #171a38; --ink-l: #f3eaff; --rule: rgba(255, 255, 255, .1); }
.lt-paper { position: relative; color: var(--ink-l); background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .5), transparent 50%), linear-gradient(170deg, var(--paper), var(--paper2)); border-radius: 6px 6px 18px 6px; padding: 26px 22px 30px; box-shadow: 0 30px 60px -30px #000, 0 2px 0 rgba(0, 0, 0, .06), inset 0 0 40px rgba(120, 90, 40, .08); margin-bottom: 16px; transition: background .4s; }
.lt-paper::before { content: ''; position: absolute; top: 0; right: 0; border-width: 0 22px 22px 0; border-style: solid; border-color: var(--ink) var(--ink) var(--paper2) var(--paper2); border-radius: 0 0 0 6px; box-shadow: -2px 2px 4px rgba(0, 0, 0, .12); }
.lt-head { text-align: right; font-size: 21px; margin-bottom: 14px; }
.lt-to { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.lt-body { white-space: pre-wrap; font-size: 23px; line-height: 34px; min-height: 204px; background: repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule) 33px 34px); }
.lt-sign { display: flex; justify-content: flex-end; margin-top: 10px; min-height: 60px; }
.lt-sign img { max-height: 90px; max-width: 65%; }
.paper-night .lt-sign img { filter: invert(1) hue-rotate(180deg); }
.lt-sign .hand { font-size: 30px; }
.lt-wax { position: absolute; left: 18px; bottom: -14px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: radial-gradient(circle at 35% 30%, #e0465f, #9e1530 70%); box-shadow: 0 6px 14px rgba(120, 10, 30, .5), inset 0 -3px 6px rgba(0, 0, 0, .3), inset 0 3px 4px rgba(255, 255, 255, .25); }
.lt-editor .lt-paper input, .lt-editor .lt-paper textarea { font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive !important; color: var(--ink-l) !important; background: transparent !important; border: 0 !important; border-bottom: 1.5px dashed color-mix(in srgb, var(--ink-l) 30%, transparent) !important; border-radius: 0 !important; padding: 0 2px !important; box-shadow: none !important; outline: none; min-height: 0 !important; width: auto; color-scheme: light; }
.lt-editor .paper-night input, .lt-editor .paper-night textarea { color-scheme: dark; }
.lt-editor .lt-paper textarea.lt-body { border-bottom: 0 !important; }
.lt-editor .lt-head input { font-size: 21px !important; max-width: 46%; text-align: right; }
.lt-editor .lt-head input[type=date] { max-width: 44%; text-align: left; }
.lt-editor .lt-to input { font-size: 28px !important; font-weight: 700; width: 100% !important; }
.lt-editor textarea.lt-body { display: block; width: 100% !important; resize: none; font-size: 23px !important; line-height: 34px; padding: 0 !important; }
.lt-editor input::placeholder, .lt-editor textarea::placeholder { color: color-mix(in srgb, var(--ink-l) 40%, transparent); }
.lt-signbox { position: relative; margin: 14px 0 0 auto; width: 70%; height: 110px; }
.lt-signbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 1; }
.lt-signline { position: absolute; left: 0; right: 0; bottom: 18px; border-top: 1.5px solid color-mix(in srgb, var(--ink-l) 35%, transparent); padding-top: 2px; text-align: center; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--ink-l) 45%, transparent); }
.lt-signbox .link { position: absolute; right: 0; top: -6px; z-index: 2; font-size: 12px; color: color-mix(in srgb, var(--ink-l) 60%, transparent); }
.lt-editor .lt-settings input[type=date] { font-family: var(--sans); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; width: 100%; }
.lt-swatches, .lt-seals { display: flex; gap: 8px; flex-wrap: wrap; }
.lt-sw { width: 38px; height: 38px; border-radius: 12px; border: 2px solid transparent; background: linear-gradient(160deg, var(--paper), var(--paper2)); cursor: pointer; }
.lt-sw.on { border-color: var(--a2); transform: scale(1.08); }
.lt-sealbtn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: radial-gradient(circle at 35% 30%, #e0465f, #9e1530 70%); font-size: 18px; cursor: pointer; }
.lt-sealbtn.on { border-color: #fff; transform: scale(1.1); }
.lt-editor.sealing .lt-paper { animation: ltFold 1.4s var(--ease) forwards; transform-origin: top center; }
.lt-editor.sealing .lt-settings { opacity: 0; transition: opacity .3s; }
@keyframes ltFold { 40% { transform: perspective(800px) rotateX(60deg) scale(.7); } 100% { transform: perspective(800px) rotateX(85deg) translateY(-200px) scale(.2); opacity: 0; } }
.lt-envelopes { display: grid; gap: 14px; }
.lt-env { position: relative; display: block; width: 100%; aspect-ratio: 1.75; border: 0; padding: 0; cursor: pointer; border-radius: 14px; color: var(--ink-l); font: inherit; text-align: left; overflow: hidden;
  background: linear-gradient(170deg, var(--paper), var(--paper2)); box-shadow: 0 22px 40px -22px #000; transition: transform .25s var(--spring); }
.lt-env:active { transform: scale(.98); }
.lt-env .lt-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; background: linear-gradient(180deg, var(--paper2), color-mix(in srgb, var(--paper2) 85%, #000)); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .15)); }
.lt-env::after { content: ''; position: absolute; inset: auto 0 0; height: 60%; background: linear-gradient(0deg, color-mix(in srgb, var(--paper2) 92%, #000), transparent); clip-path: polygon(0 100%, 50% 18%, 100% 100%); opacity: .5; }
.lt-env .lt-seal { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: radial-gradient(circle at 35% 30%, #e0465f, #9e1530 70%); box-shadow: 0 6px 12px rgba(120, 10, 30, .45), inset 0 -3px 6px rgba(0, 0, 0, .3); }
.lt-stamp { position: absolute; right: 12px; top: 10px; z-index: 2; display: grid; justify-items: center; padding: 6px 8px; border: 2px dashed color-mix(in srgb, var(--ink-l) 40%, transparent); border-radius: 6px; transform: rotate(6deg); font-family: var(--sans); background: color-mix(in srgb, var(--paper) 80%, #fff); }
.lt-stamp small { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.lt-stamp b { font-size: 12px; }
.lt-addr { position: absolute; left: 16px; bottom: 30px; z-index: 2; display: grid; }
.lt-addr small { font-size: 18px; opacity: .75; }
.lt-addr b { font-size: 24px; }
.lt-count { position: absolute; left: 16px; bottom: 10px; z-index: 2; font: 800 11.5px var(--sans); opacity: .75; }
.lt-open { position: absolute; right: 12px; bottom: 10px; z-index: 3; }
.lt-env.ready { animation: ltGlow 2s ease-in-out infinite; }
@keyframes ltGlow { 50% { box-shadow: 0 0 0 3px rgba(255, 209, 102, .6), 0 22px 40px -22px #000; } }
.lt-env.wiggle { animation: ltWiggle .5s; }
@keyframes ltWiggle { 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.lt-archive { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-mini { position: relative; display: grid; gap: 2px; text-align: left; padding: 14px 12px 12px; border-radius: 6px 6px 14px 6px; border: 0; cursor: pointer; color: var(--ink-l); background: linear-gradient(170deg, var(--paper), var(--paper2)); box-shadow: 0 14px 26px -16px #000; font: inherit; min-height: 150px; }
.lt-mini b { font-size: 20px; line-height: 1.1; }
.lt-mini small { font: 700 11px var(--sans); opacity: .65; }
.lt-mini-body { font-size: 17px; line-height: 1.2; opacity: .85; margin-top: 4px; }
.lt-mini-seal { position: absolute; right: 8px; top: -8px; font-size: 18px; }
.lt-read .lt-paper { margin-top: 6px; }
.lt-read.appear .lt-paper { animation: ltRise .8s var(--spring) both; }
@keyframes ltRise { from { transform: translateY(60px) scale(.9); opacity: 0; } }
.lt-opening { display: grid; justify-items: center; gap: 18px; padding-top: 12vh; }
.lt-env3d { position: relative; width: 260px; height: 160px; border-radius: 12px; background: linear-gradient(170deg, var(--paper), var(--paper2)); box-shadow: 0 30px 60px -20px #000; perspective: 600px; }
.lt-env3d .lt-flap { position: absolute; inset: 0 0 auto; height: 60%; background: linear-gradient(180deg, var(--paper2), color-mix(in srgb, var(--paper2) 80%, #000)); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .7s .3s var(--ease); z-index: 3; }
.lt-env3d .lt-seal { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); z-index: 4; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: radial-gradient(circle at 35% 30%, #e0465f, #9e1530 70%); transition: transform .4s var(--ease), opacity .4s; }
.lt-env3d .lt-sheet { position: absolute; left: 14px; right: 14px; top: 10px; height: 130px; background: var(--paper); border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); z-index: 1; transition: transform .8s 1s var(--spring); background-image: repeating-linear-gradient(to bottom, transparent 0 15px, var(--rule) 15px 16px); }
.lt-opening.go .lt-seal { transform: translate(-50%, -50%) scale(1.4) rotate(20deg); opacity: 0; }
.lt-opening.go .lt-flap { transform: rotateX(180deg); z-index: 0; }
.lt-opening.go .lt-sheet { transform: translateY(-120px); }
.lt-hub { position: absolute; right: 0; top: 0; z-index: 3; display: grid; justify-items: center; gap: 0; text-decoration: none; color: var(--text); padding: 6px 8px; border-radius: 16px; background: rgba(28, 15, 41, .6); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.lt-hub-env { font-size: 26px; line-height: 1; }
.lt-hub b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; background: var(--bad); font-size: 11px; padding: 0 5px; }
.lt-hub small { font-size: 10px; font-weight: 800; color: var(--muted); }
.lt-hub.ready { animation: ltGlow 2s ease-in-out infinite; }
.lt-hub.ready small { color: var(--gold); }
.pair-hero { position: relative; }

/* ---------- rozliczenia ---------- */
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-card { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.st-card.me { background: linear-gradient(160deg, rgba(123, 211, 137, .16), var(--card)); border-color: rgba(123, 211, 137, .35); }
.st-who { display: flex; align-items: center; gap: 8px; }
.st-due small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.st-due b { font: 800 26px var(--display); }
.st-rows { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.st-rows b { color: var(--text); }
.st-ok { margin: 0; color: var(--ok); font-weight: 800; font-size: 13px; }
.st-card .btn { min-height: 42px; font-size: 13.5px; padding: 0 10px; }

/* ---------- przegląd propozycji ---------- */
.rv-entry { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-bottom: 10px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--a1) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 22%, transparent), color-mix(in srgb, var(--a2) 10%, transparent)); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.rv-cards { position: relative; width: 50px; height: 50px; flex: none; }
.rv-cards i { position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 22px; background: var(--solid-2); border: 1px solid var(--line-2); }
.rv-cards i:nth-child(1) { transform: rotate(-10deg) translateX(-4px); }
.rv-cards i:nth-child(2) { transform: rotate(6deg) translateX(4px); }
.rv-cards i:nth-child(3) { transform: rotate(0); background: var(--solid); }
.rv-txt { flex: 1; min-width: 0; display: grid; }
.rv-txt b { font-size: 14.5px; line-height: 1.25; }
.rv-txt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv { display: flex; flex-direction: column; align-items: center; }
.rv-lead { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.rv-stack { height: min(56vh, 430px); }
.rv-card { position: absolute; inset: 0; border-radius: 28px; padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text); overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--a2) 30%, transparent), transparent 60%), linear-gradient(170deg, var(--solid-2), var(--solid)); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px #000; }
.rv-kick { font-size: 13px; font-weight: 800; color: var(--muted); }
.rv-card h3 { font-size: 26px; line-height: 1.1; }
.rv-card p { margin: 0; color: var(--muted); font-size: 15px; }
.rv-perks { display: grid; gap: 6px; margin-top: auto; }
.rv-perks span { padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 13.5px; font-weight: 700; }
.rv-more { align-self: flex-start; margin-top: 6px; }
.rv-done { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 30px 10px; width: 100%; }

/* ---------- ustawienia widoczności ---------- */
.pf-group { display: grid; gap: 2px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.pf-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); cursor: pointer; }
.pf-group .pf-row { border-radius: 0; }
.pf-row:not(.pf-group .pf-row) { border-radius: 18px; border: 1px solid var(--line); }
.pf-i { font-size: 20px; width: 28px; text-align: center; }
.pf-t { flex: 1; display: grid; }
.pf-t b { font-size: 14.5px; }
.pf-t small { font-size: 12px; color: var(--faint); }
.love-box { background: linear-gradient(160deg, rgba(255, 209, 102, .12), var(--card)); border-color: rgba(255, 209, 102, .3); }
.love-box .sec-head { margin-top: 0; }

@media (max-width: 370px) {
  .dt-decks, .dr-list, .lt-archive, .st-grid { grid-template-columns: 1fr; }
  .tv-dans { grid-template-columns: 1fr; }
}

/* ---------- marka Just💓Us ---------- */
.ju-wm { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.ju-heart { height: .86em; width: auto; margin: 0 .05em 0 .07em; overflow: visible; }
.ju-heart .ju-core { transform-origin: 256px 262px; animation: juBeat 1.6s ease-in-out infinite; }
.ju-heart .ju-beat { animation: juRing 1.6s ease-in-out infinite; }
@keyframes juBeat { 0%, 60%, 100% { transform: scale(1); } 12% { transform: scale(1.1); } 24% { transform: scale(.97); } 36% { transform: scale(1.06); } }
@keyframes juRing { 0%, 60%, 100% { opacity: .55; } 14%, 38% { opacity: 1; } }
.auth .brand .ju-wm { font-size: 34px; }
.boot { display: flex; flex-direction: column; gap: 14px; place-items: center; justify-content: center; align-items: center; }
.boot img { width: 96px; height: auto; animation: juPulse 1.6s ease-in-out infinite; }
.boot b { font: 800 30px var(--display); letter-spacing: -.03em; color: var(--text); }
@keyframes juPulse { 0%, 60%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(.96); } 36% { transform: scale(1.06); } }
.auth-switch { margin-top: 18px; text-align: center; color: var(--muted); }
.auth-switch button { border: 0; background: none; color: var(--a2); font: 800 15px var(--sans); cursor: pointer; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.auth-mail { font-size: 64px; line-height: 1; margin: 6px 0 10px; animation: juPulse 2s ease-in-out infinite; }
.auth .callout { margin: 14px 0; }
