/* Strona FiveHub w stylu strony Duolingo: białe tło, grube fioletowe nagłówki, przyciski 3D wielkimi literami,
   ramki 2px z płaską dolną krawędzią, smok jako ilustracje i nasz panel w ramce tabletu, który sam się animuje. */

:root {
  --violet: #4820dc;
  --violet-hi: #5a33ee;
  --violet-edge: #3114a6;
  --violet-text: #a48cff;
  --lilac: #efeaff;
  --lilac-edge: #ddd3ff;
  --green: #00c301;
  --orange: #ff9600;
  --blue: #1cb0f6;
  --ink: #3c3c3c;
  --ink-2: #777;
  --line: #e5e5e5;
  --bg: #fff;
  --font: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* miejsce na pasek przewijania zawsze zarezerwowane: przy otwarciu modalu (overflow: hidden) strona nie przeskakuje */
html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--ink); font: 600 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.center { text-align: center; }
.fi { display: inline-flex; line-height: 1; }

h1, h2 { font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; }
h2 { font-size: clamp(30px, 4vw, 44px); color: var(--violet); }
.sub { color: var(--ink-2); font-size: 18px; margin-top: 8px; }

/* ---------------------------------------------------------------- logo: znak smoka i napis jak w aplikacji */
.logo { display: inline-flex; align-items: center; gap: 0.22em; color: var(--violet); font: 900 28px/1 var(--font); letter-spacing: -0.02em; }
.logo svg { height: 1.15em; aspect-ratio: 420 / 390; width: auto; fill: currentColor; overflow: visible; }
.logo-white { color: #fff; }

/* ---------------------------------------------------------------- przyciski 3D jak w Duolingo */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 14px; border: 0;
  font: 900 15px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: transform 0.08s, box-shadow 0.08s, background 0.12s, filter 0.12s; }
.btn:active { transform: translateY(4px); box-shadow: none !important; }
.btn:focus-visible { outline: 3px solid var(--violet-text); outline-offset: 3px; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--violet-edge); }
.btn-primary:hover { background: var(--violet-hi); }
.btn-white { background: #fff; color: var(--violet); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-white:hover { background: #f7f7f7; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; border-radius: 12px; }
.btn-lg { height: 54px; padding: 0 32px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- pasek u góry */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { height: 72px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 800; color: var(--ink-2); }
.nav-links a:hover { color: var(--violet); }
.nav-cta { display: flex; gap: 10px; }

/* ---------------------------------------------------------------- pierwszy ekran: na całą wysokość okna pod paskiem, reszta strony dopiero po przewinięciu */
.first { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: flex; flex-direction: column; }
.first .hero { flex: 1; }

/* ---------------------------------------------------------------- hero */
/* hero od góry do dołu, na środku: napis, opis, tablet z panelem, przyciski; tablet dopasowuje się do wysokości okna, żeby całość z paskiem logo mieściła się na pierwszym ekranie */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(14px, 3.5vh, 40px) 0 clamp(18px, 3vh, 34px); }
.hero h1 { font-size: clamp(30px, min(3.6vw, 5.4vh), 48px); color: var(--ink); max-width: 1100px; }
.lead { margin-top: clamp(8px, 1.4vh, 14px); font-size: clamp(16px, 2.2vh, 19px); color: var(--ink-2); max-width: 640px; }
.hero-art { position: relative; margin-top: clamp(40px, 6vh, 56px); width: clamp(300px, calc((100vh - 620px) * 1.55), 860px); width: clamp(300px, calc((100svh - 620px) * 1.55), 860px); max-width: 100%; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(22px, 3.4vh, 34px); }
.hero-cta .btn { min-width: 250px; }
.hero-meta { display: block; margin-top: 10px; color: #afafaf; font-size: 14px; }
/* podpis sceny: biała pigułka na górnej krawędzi tabletu, numer w fioletowym kółku, kropki scen */
.demo-cap { position: absolute; z-index: 4; left: 50%; top: 0; transform: translate(-50%, -80%); display: flex; align-items: center; gap: 10px; max-width: min(560px, 100vw - 40px);
  padding: 7px 14px 7px 7px; border-radius: 999px; background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); white-space: nowrap; }
.demo-cap-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-weight: 900; font-size: 14px; box-shadow: 0 2px 0 var(--violet-edge); }
.demo-cap-t { font-weight: 900; font-size: 15px; color: var(--violet); overflow: hidden; text-overflow: ellipsis; }
.demo-cap.swap .demo-cap-t, .demo-cap.swap .demo-cap-n { animation: cap-in 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px) scale(0.9); } }
.demo-dots { display: flex; gap: 5px; margin-left: 4px; }
.demo-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: width 0.25s, background 0.25s; }
.demo-dots button.on { width: 22px; border-radius: 6px; background: var(--violet); }
.hero-dragon { position: absolute; left: -96px; bottom: -40px; width: 170px; height: 170px; z-index: 3; pointer-events: none; }
.float-coin { position: absolute; z-index: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 24px;
  background: var(--violet); box-shadow: 0 4px 0 var(--violet-edge); animation: bob 4.2s ease-in-out infinite; }
.float-coin.c1 { left: -60px; top: 16%; background: var(--orange); box-shadow: 0 4px 0 #cc7800; }
.float-coin.c2 { right: -58px; top: 22%; animation-delay: -1.4s; }
.float-coin.c3 { right: -40px; bottom: 8%; background: #5865f2; box-shadow: 0 4px 0 #3c45b0; animation-delay: -2.6s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(6deg); } }

/* ---------------------------------------------------------------- pasek z frameworkami: przesuwa się w pętli */
/* pasek „Wspierane przez” na pełnym fiolecie, napisy białe */
.works { background: var(--violet); padding: 30px 20px 34px; }
.works-title { text-align: center; font-size: 15px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet-text); margin-bottom: 18px; }
/* loga stoją w miejscu, na środku; na wąskim ekranie przechodzą do kolejnego rzędu */
.works-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 22px; }
.works-row span { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 15.5px; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
/* loga projektów i firm (pobrane do web/brand/loga): kafelek 40 px z zaokrągleniem; przezroczyste loga na białym z ramką i marginesem */
.wl { flex: none; width: 46px; height: 46px; border-radius: 13px; overflow: hidden; display: grid; place-items: center; background: #fff; }
.wl img { width: 100%; height: 100%; object-fit: cover; }
.wl-pad { border: 2px solid #fff; }
.wl-pad img { object-fit: contain; padding: 3px; }
.wl-discord { background: #5865f2; color: #fff; font-size: 22px; }
.wl-discord .fi { line-height: 1; }

/* ---------------------------------------------------------------- funkcje: na przemian ilustracja i tekst */
#funkcje { padding: 40px 0; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 48px 0; }
.feat.flip .feat-art { order: 2; }
.feat-copy h2 { font-size: clamp(30px, 3.6vw, 42px); }
.feat-copy p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 440px; }
.feat-art { border-radius: 28px; overflow: hidden; background: var(--violet); box-shadow: 0 6px 0 var(--violet-edge); transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1); }
.feat-art:hover { transform: translateY(-6px) rotate(-1deg); }
.feat.flip .feat-art:hover { transform: translateY(-6px) rotate(1deg); }
.feat-art img { width: 100%; height: auto; } /* ilustracja zawsze cała, bez przycinania */
/* kafelek z żywym smokiem, który myśli, i dymkami czatu */
.feat-live { position: relative; aspect-ratio: 16 / 10; background: var(--lilac); box-shadow: 0 6px 0 var(--lilac-edge); }
.feat-dragon { position: absolute; left: 4%; bottom: -4%; width: 58%; height: 100%; }
.mini-chat { position: absolute; right: 6%; top: 12%; width: 50%; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; z-index: 1; }
.mc { padding: 12px 16px; border-radius: 18px; font-weight: 800; font-size: 15px; line-height: 1.4; }
.mc-me { background: var(--violet); color: #fff; border-radius: 18px 18px 6px 18px; box-shadow: 0 3px 0 var(--violet-edge); }
.mc-ai { align-self: flex-start; background: #fff; border: 2px solid var(--line); border-radius: 18px 18px 18px 6px; box-shadow: 0 3px 0 var(--line); display: flex; gap: 5px; min-height: 46px; align-items: center; }
.mc-ai i { width: 9px; height: 9px; border-radius: 50%; background: var(--violet-text); animation: dot 1s infinite ease-in-out; }
.mc-ai i:nth-child(2) { animation-delay: 0.15s; }
.mc-ai i:nth-child(3) { animation-delay: 0.3s; }
.mc-ai.text { display: block; color: var(--ink); }
@keyframes dot { 50% { opacity: 1; transform: translateY(-4px); } 0%, 100% { opacity: 0.4; } }

/* ---------------------------------------------------------------- tablet z panelem */
.tablet { position: relative; z-index: 1; background: #26262d; padding: 14px; border-radius: 30px; box-shadow: 0 8px 0 #18181c; }
.tablet::before { content: ''; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a3a44; }
.screen { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #121214; }
/* ekran wstawia site.js na końcu strony: do tego czasu pusty tablet trzyma miejsce, żeby się nie spłaszczał */
.tablet:empty::after { content: ''; display: block; aspect-ratio: 16 / 10; border-radius: 18px; background: #121214; }
.screen-in { position: absolute; left: 0; top: 0; width: 1000px; height: 625px; transform-origin: 0 0; transform: scale(var(--s, 0.5)); }
.demo { padding: 72px 0; }
.tablet-lg { margin: 36px auto 0; max-width: 920px; }
.demo-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  box-shadow: 0 4px 0 var(--line); font-weight: 900; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: transform 0.08s, color 0.12s; }
.chip:hover { color: var(--violet); }
.chip:active { transform: translateY(4px); box-shadow: none; }
.chip.on { background: var(--lilac); border-color: var(--violet-text); color: var(--violet); box-shadow: 0 4px 0 var(--violet-text); }

/* ---------------------------------------------------------------- animacje do FiveM: studio z aplikacji, gotowe animacje od AI, karta z pobraniem */
.anim-sec { padding: 72px 0 40px; }
.anim-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.anim-head .sub { max-width: 660px; }
.anim-kicker { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 12px; margin-bottom: 16px; border-radius: 999px; background: var(--lilac);
  color: var(--violet); font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 3px 0 var(--lilac-edge); }
.anim-kicker .fi { font-size: 16px; }

/* studio: ciemna karta w barwach panelu (grafit i fiolet), ten sam układ co „Stwórz animację” w aplikacji */
.anim-stage { position: relative; max-width: 960px; margin: 64px auto 0; }
.anim-dragon { position: absolute; left: -132px; bottom: -30px; width: 156px; height: 156px; z-index: 3; pointer-events: none; }
.studio { position: relative; z-index: 1; background: #121214; color: #f2f2f5; border-radius: 28px; padding: 16px; box-shadow: 0 8px 0 #18181c; display: flex; flex-direction: column; gap: 12px; }
.sd-ai { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: linear-gradient(135deg, #5a33ee, #4820dc); box-shadow: 0 4px 0 #3114a6; }
.sd-ai-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); font-size: 20px; color: #fff; }
.sd-prompt { flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; padding: 0 16px; border-radius: 14px; background: #fff; color: #3c3c3c; font-weight: 800; font-size: 16px; overflow: hidden; white-space: nowrap; }
.sd-prompt span { overflow: hidden; text-overflow: ellipsis; }
.sd-caret { flex: none; width: 2px; height: 22px; margin-left: 2px; background: var(--violet); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sd-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; background: #fff; color: var(--violet);
  font-weight: 900; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 4px 0 #3114a6; transition: transform 0.08s, box-shadow 0.08s; }
.sd-go.press { transform: translateY(4px); box-shadow: none; }
.studio.busy .sd-go .fi { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sd-body { display: grid; grid-template-columns: 1fr 220px; gap: 12px; }
/* tło sceny: ta sama fioletowa poświata co w filmach (tools/anim-eval/clips.html), przy krawędziach #0f0f13 */
.sd-scene { position: relative; height: 420px; border-radius: 20px; overflow: hidden; background: radial-gradient(60% 75% at 50% 45%, #241a52, #16132a 55%, #0f0f13); }
/* film z postacią na środku; podłoga z siatką gaśnie na bokach, więc film zlewa się z tłem sceny */
.sd-scene video { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 3 / 4; transform: translateX(-50%); object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  transition: opacity 0.35s, filter 0.35s; }
.studio.busy .sd-scene video { opacity: 0.35; filter: blur(3px); }
.sd-hud { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.sd-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 10px; background: #222228; border: 2px solid #2a2a31; color: #b8b8c4; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.sd-chip.on { background: #4820dc; border-color: #4820dc; color: #fff; }
.sd-busy { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #1b1b20; border: 2px solid #36363f;
  font-weight: 800; font-size: 14.5px; white-space: nowrap; opacity: 0; transform: translate(-50%, -40%) scale(0.92); transition: opacity 0.25s, transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); pointer-events: none; }
.studio.busy .sd-busy { opacity: 1; transform: translate(-50%, -50%); }
.sd-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #36363f; border-top-color: #a48cff; animation: spin 0.8s linear infinite; }
.sd-ok { position: absolute; left: 50%; top: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #00c301; color: #fff;
  box-shadow: 0 3px 0 #009c01; font-weight: 900; font-size: 14px; white-space: nowrap; opacity: 0; transform: translate(-50%, -16px) scale(0.8); transition: opacity 0.25s, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sd-ok .fi { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #00c301; font-size: 12px; }
.studio.done .sd-ok { opacity: 1; transform: translate(-50%, 0); }

.sd-side { display: flex; flex-direction: column; gap: 12px; }
.sd-card { padding: 14px; border-radius: 18px; background: #1b1b20; border: 2px solid #2a2a31; display: flex; flex-direction: column; gap: 6px; }
.sd-card small { font-size: 12px; font-weight: 800; color: #84848f; text-transform: uppercase; letter-spacing: 0.06em; }
.sd-name { font-size: 18px; font-weight: 900; line-height: 1.25; min-height: 1.25em; }
.studio.swap .sd-name { animation: cap-in 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
.sd-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.sd-stats span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: #222228; color: #b8b8c4; font-size: 13px; }
.sd-stats .fi { color: #a48cff; font-size: 13px; }
.sd-stats b { color: #f2f2f5; font-weight: 900; }
.sd-pose { flex: 1; gap: 4px; }
.sd-bone { font-size: 15px; font-weight: 900; color: #a48cff; margin-bottom: 6px; }
.sd-pose label { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 800; color: #b8b8c4; }
/* suwak: pozycja z prawdziwej klatki prawego ramienia (site.js), -180..180 stopni */
.sd-range { position: relative; height: 8px; border-radius: 8px; background: #2a2a31; }
.sd-range i { position: absolute; top: 50%; left: calc(var(--v, 0.5) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 #84848f, 0 0 0 4px rgba(72, 32, 220, 0.55); }
.sd-range::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; right: calc(100% - var(--v, 0.5) * 100%); border-radius: 8px; background: #4820dc; }
.sd-range.neg::before { left: calc(var(--v, 0.5) * 100%); right: 50%; }

/* pokaz z kursorem (site.js): podpis kroku nad studiem, podpowiedź w polu AI, szkielet na postaci, wciśnięcia */
.anim-cap { z-index: 5; }
.sd-ph { min-width: 0; margin-left: 2px; color: #afafaf; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.sd-ph[hidden] { display: none; }
/* szkielet: ten sam kadr co film (3:4 na środku sceny), linie kości i kropki stawów z prawdziwych pozycji (machanie-stawy.json) */
.sd-rig { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 3 / 4; transform: translateX(-50%); pointer-events: none; opacity: 0; }
.studio.rig-on .sd-rig { opacity: 1; transition: opacity 0.4s; }
/* zmiana rozdziału w pokazie: postać, szkielet i romby łagodnie gasną, potem wracają (site.js: fadeOut/fadeIn) */
.sd-scene video { will-change: opacity, transform; }
.studio.fading .sd-scene video { opacity: 0; transform: translateX(-50%) scale(0.97); transition: opacity 0.26s ease, transform 0.26s ease; }
.studio.fading .sd-rig { opacity: 0; transition: opacity 0.2s; }
.studio.fading .sd-key { opacity: 0; transform: rotate(45deg) scale(0.3); transition: opacity 0.2s, transform 0.22s; }
.studio:not(.fading) .sd-scene video { transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.3, 1.3, 0.5, 1), filter 0.35s; }
.sd-rig svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sd-rig line { stroke: rgba(217, 212, 255, 0.55); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 0.25s; }
.sd-rig i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #d9d4ff; box-shadow: 0 0 0 2px rgba(15, 15, 19, 0.65); transition: background 0.25s, box-shadow 0.25s; }
/* staw do kliknięcia: większy, z pulsującym kółkiem, jak podświetlenie w poradniku aplikacji */
.sd-rig i[data-j="rUpper"] { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; box-shadow: 0 0 0 3px #7c5cff; }
.sd-rig i[data-j="rUpper"]::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid #a48cff; animation: joint-pulse 1.4s ease-out infinite; }
@keyframes joint-pulse { from { transform: scale(0.55); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
/* wybrana kość: prawa ręka na fioletowo, wokół stawu kółka obrotu jak gizmo w studiu */
.studio.sel .sd-rig line.arm { stroke: #7c5cff; stroke-width: 3.5; }
.studio.sel .sd-rig i.arm { background: #7c5cff; box-shadow: 0 0 0 2px #fff; }
.studio.sel .sd-rig i[data-j="rUpper"] { background: #7c5cff; box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(124, 92, 255, 0.35); }
.studio.sel .sd-rig i[data-j="rUpper"]::after { inset: -24px; border: 2px solid rgba(255, 200, 0, 0.85); border-radius: 50%; transform: rotateX(68deg); animation: none; opacity: 1; }
.studio.sel .sd-rig i[data-j="rUpper"]::before { content: ''; position: absolute; inset: -24px; border-radius: 50%; border: 2px solid rgba(28, 176, 246, 0.85); transform: rotateY(68deg); }
/* kursor w studiu jak przycisk 3D z Duolingo: gruba, zaokrąglona biała strzałka z fioletową ramką i płaską fioletową krawędzią
   pod spodem; przy kliknięciu i przeciąganiu wierzch zjeżdża na krawędź (wciśnięcie), kółko po kliknięciu w fiolecie */
.studio .sd-cursor { z-index: 20; }

/* okienko z folderem resources (pobranie .ycd) i plik, który do niego wlatuje */
.sd-files { position: absolute; left: 14px; top: 14px; width: min(310px, 100% - 28px); padding: 12px; border-radius: 16px; background: #1b1b20; border: 2px solid #36363f; box-shadow: 0 4px 0 #0b0b0e;
  opacity: 0; transform: translateY(-8px) scale(0.96); transform-origin: 0 0; transition: opacity 0.25s, transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); pointer-events: none; }
.studio.files .sd-files { opacity: 1; transform: none; }
.sd-files-h { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 2px solid #2a2a31; font-size: 13.5px; }
.sd-files-h .fi { color: #ffc800; font-size: 15px; }
.sd-tree { display: grid; gap: 2px; }
.sd-f { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 8px 0 calc(8px + var(--l, 0) * 14px); border-radius: 8px; font-size: 12.5px; font-weight: 800; color: #b8b8c4; white-space: nowrap; overflow: hidden; }
.sd-f .fi { flex: none; font-size: 13px; color: #ffc800; }
.sd-f.sd-doc .fi { color: #84848f; }
.sd-f.l1 { --l: 0; } .sd-f.l2 { --l: 1; } .sd-f.l3 { --l: 2; } .sd-f.l4 { --l: 3; }
.sd-f span { overflow: hidden; text-overflow: ellipsis; }
.sd-new { color: #fff; background: #4820dc; opacity: 0; transform: scale(0.85); transition: opacity 0.2s, transform 0.4s cubic-bezier(0.3, 1.7, 0.5, 1); }
.sd-new .fi { color: #fff; }
.sd-new .fi-br-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #00c301; font-size: 9px; }
.sd-new.in { opacity: 1; transform: none; }
.sd-fly { position: absolute; left: 0; top: 0; z-index: 19; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 10px; background: #4820dc; color: #fff;
  font-size: 12.5px; font-weight: 900; white-space: nowrap; box-shadow: 0 3px 0 #3114a6, 0 10px 24px rgba(0, 0, 0, 0.45); pointer-events: none; }
.sd-fly.go { transition: transform 0.7s cubic-bezier(0.55, 0, 0.3, 1); }
.sd-chip, .sd-play, .sd-ycd { transition: transform 0.08s, box-shadow 0.08s, background 0.2s, border-color 0.2s, color 0.2s; }
.sd-chip.press, .sd-play.press, .sd-ycd.press { transform: translateY(3px); box-shadow: none; }
.sd-chip.press { background: #4820dc; border-color: #4820dc; color: #fff; }
.sd-dia { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 1px; background: #ffc800; transform: rotate(45deg); }
.sd-ycd .fi-br-check { display: none; }
.sd-ycd.ok { background: #00c301; border-color: #00c301; box-shadow: 0 3px 0 #009c01; color: #fff; }
.sd-ycd.ok .fi-br-download { display: none; }
.sd-ycd.ok .fi-br-check { display: inline-flex; }
.sd-row span { transition: color 0.25s; }
.sd-row.sel span { color: #a48cff; }
.sd-row.sel .sd-lane { background: #1e1838; box-shadow: inset 0 0 0 2px #2d2357; }
.sd-pose .sd-bone, .sd-pose label { transition: opacity 0.25s, color 0.25s; }
.sd-pose.off .sd-bone { color: #84848f; }
.sd-pose.off label { opacity: 0.35; }
.sd-range i { transition: transform 0.15s, box-shadow 0.15s; }
.sd-range i.grab { transform: scale(1.2); box-shadow: 0 2px 0 #84848f, 0 0 0 6px rgba(72, 32, 220, 0.75); }

.sd-tl { padding: 12px 14px 14px; border-radius: 20px; background: #1b1b20; border: 2px solid #2a2a31; }
.sd-tl-bar { display: flex; align-items: center; gap: 8px; }
.sd-play { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #4820dc; color: #fff; font-size: 14px; box-shadow: 0 3px 0 #3114a6; }
.sd-frame { min-width: 92px; font-weight: 900; font-size: 14px; color: #f2f2f5; font-variant-numeric: tabular-nums; }
.sd-grow { flex: 1; }
.sd-ycd { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 11px; background: #222228; border: 2px solid #36363f; box-shadow: 0 3px 0 #36363f;
  font-weight: 900; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.sd-tracks { --lab: 104px; position: relative; display: grid; gap: 6px; margin-top: 12px; }
.sd-row { display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; height: 22px; }
.sd-row span { font-size: 12.5px; font-weight: 800; color: #84848f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-lane { position: relative; height: 100%; border-radius: 8px; background: #16161a; }
/* żółte romby klatek kluczowych (te same co w studiu), wskakują po kolei po każdej nowej animacji */
.sd-key { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: #ffc800; border-radius: 2px; transform: rotate(45deg) scale(var(--k, 1)); box-shadow: 0 0 0 2px #16161a; }
.studio.keys .sd-key { animation: key-in 0.4s cubic-bezier(0.3, 1.7, 0.5, 1) backwards; animation-delay: var(--d); }
@keyframes key-in { from { transform: rotate(45deg) scale(0); } }
.sd-head { position: absolute; top: -6px; bottom: -4px; left: calc(var(--lab) + (100% - var(--lab)) * var(--p, 0)); width: 2px; margin-left: -1px; background: #a48cff; pointer-events: none; }
.sd-head::before { content: ''; position: absolute; top: -4px; left: -5px; width: 12px; height: 10px; border-radius: 3px 3px 6px 6px; background: #a48cff; }

/* trzy kroki pod studiem */
.anim-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.anim-step { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 22px; border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); background: #fff; }
.anim-step b { font-size: 18px; font-weight: 900; color: var(--ink); }
.anim-step p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.anim-ic { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 20px; box-shadow: 0 4px 0 var(--violet-edge); }
.an-orange { background: var(--orange); box-shadow: 0 4px 0 #cc7800; }
.an-green { background: var(--green); box-shadow: 0 4px 0 #009c01; }

/* gotowe animacje od AI: karty z filmem */
.anim-gallery { margin-top: 72px; text-align: center; }
.anim-gallery h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; color: var(--violet); line-height: 1.2; }
.anim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; text-align: left; }
.anim-card { display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: inherit; border: 2px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 5px 0 var(--line); overflow: hidden; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1), border-color 0.15s, box-shadow 0.15s; }
.anim-card:hover { transform: translateY(-5px); }
.anim-card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.anim-card:focus-visible { outline: 3px solid var(--violet-text); outline-offset: 3px; }
.anim-card.on { border-color: var(--violet-text); box-shadow: 0 5px 0 var(--violet-text); }
.anim-vid { position: relative; display: block; aspect-ratio: 4 / 5; background: #0f0f13; overflow: hidden; }
.anim-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* pigułka „w studiu” na karcie, której animacja gra teraz w studiu */
.anim-on { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--violet); color: #fff; font-size: 11.5px; font-weight: 900;
  letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 3px 0 var(--violet-edge); opacity: 0; transform: scale(0.8); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
.anim-card.on .anim-on { opacity: 1; transform: none; }
.anim-txt { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.anim-txt b { font-size: 18px; font-weight: 900; color: var(--ink); }
.anim-txt q { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); font-style: italic; }
.anim-txt q::before { content: '„'; }
.anim-txt q::after { content: '”'; }
.anim-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 800; color: #afafaf; }
.anim-meta .fi { font-size: 12px; color: var(--violet-text); }
.anim-meta .fi:nth-of-type(2) { margin-left: 8px; }

/* karta z wezwaniem: pełny fiolet jak boxy Duolingo, smok po prawej wychodzi poza kartę */
.anim-cta { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: 20px; margin-top: 80px; padding: 40px 44px; border-radius: 30px;
  background: linear-gradient(135deg, #5a33ee, #4820dc 60%); color: #fff; box-shadow: 0 8px 0 var(--violet-edge); }
.anim-cta h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; line-height: 1.15; }
.anim-cta p { margin-top: 12px; font-size: 17px; color: rgba(255, 255, 255, 0.85); max-width: 520px; }
.anim-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.anim-cta .btn-white { border-color: #fff; box-shadow: 0 4px 0 var(--violet-edge); }
.btn-ghost-white { background: rgba(255, 255, 255, 0.12); color: #fff; border: 2px solid rgba(255, 255, 255, 0.55); box-shadow: 0 4px 0 var(--violet-edge); }
.btn-ghost-white:hover { background: rgba(255, 255, 255, 0.2); }
.anim-cta-art { position: relative; align-self: stretch; min-height: 220px; }
.anim-cta-dragon { position: absolute; right: -10px; bottom: -64px; width: 260px; height: 260px; pointer-events: none; }
.anim-coin { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; animation: bob 4.2s ease-in-out infinite; }
.anim-coin.k1 { left: 0; top: 4%; background: var(--orange); box-shadow: 0 4px 0 #cc7800; }
.anim-coin.k2 { left: 34%; top: -18%; background: #ffc800; box-shadow: 0 4px 0 #d9a800; animation-delay: -1.4s; }
.anim-coin.k3 { left: 6%; bottom: 8%; width: 44px; height: 44px; font-size: 17px; background: var(--green); box-shadow: 0 4px 0 #009c01; animation-delay: -2.6s; }

@media (max-width: 900px) {
  .anim-dragon { width: 96px; height: 96px; left: auto; right: 6px; bottom: auto; top: -74px; }
  .sd-body { grid-template-columns: 1fr; }
  .sd-side { flex-direction: row; }
  .sd-side .sd-card { flex: 1; }
  .sd-scene { height: 340px; }
  .anim-steps { grid-template-columns: 1fr; }
  .anim-cta { grid-template-columns: 1fr; padding: 32px 26px 26px; }
  .anim-cta-art { min-height: 170px; }
  .anim-cta-dragon { right: 50%; margin-right: -100px; width: 200px; height: 200px; bottom: -40px; }
}
@media (max-width: 520px) {
  .studio { padding: 10px; border-radius: 20px; gap: 10px; }
  .sd-ai { padding: 8px; gap: 8px; border-radius: 16px; }
  .sd-ai-ic { display: none; }
  .sd-prompt { font-size: 14px; padding: 0 12px; }
  .sd-go { padding: 0 12px; }
  .sd-go [data-anim-go-t] { display: none; }
  .sd-scene { height: 300px; }
  .sd-hud, .sd-undo, .sd-ycd > span, .anim-dragon { display: none; }
  .sd-side { flex-direction: column; }
  .sd-keybtn { padding: 0 9px; font-size: 11.5px; }
  .studio .sd-cursor { width: 25px; height: 30px; }
  .sd-tracks { --lab: 78px; }
  .sd-ycd { padding: 0 10px; font-size: 11px; min-width: 0; overflow: hidden; }
  .sd-frame { min-width: 0; font-size: 13px; }
  .anim-cta { grid-template-columns: minmax(0, 1fr); }
  .anim-cta-btns .btn { white-space: normal; height: auto; min-height: 54px; padding: 12px 18px; text-align: center; }
  .anim-grid { gap: 8px; }
  .anim-card { border-radius: 16px; }
  .anim-on { top: 6px; left: 6px; font-size: 9.5px; padding: 3px 7px; }
  .anim-txt { padding: 8px 9px 10px; gap: 2px; }
  .anim-txt q, .anim-meta { display: none; }
  .anim-txt b { font-size: 13px; line-height: 1.25; }
  .anim-cta-btns .btn { width: 100%; }
}

/* ---------------------------------------------------------------- fioletowy pas z kartami */
.band { background: var(--violet); color: #fff; padding: 72px 0; margin: 40px 0; }
.band h2 { color: #fff; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.stat { background: #fff; color: var(--ink); border-radius: 24px; padding: 26px; box-shadow: 0 6px 0 var(--violet-edge); display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 40px; font-weight: 900; color: var(--violet); line-height: 1.1; }
.stat > span:last-child { color: var(--ink-2); font-size: 16px; }
.stat-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 22px; box-shadow: 0 4px 0 var(--violet-edge); margin-bottom: 10px; }
.st-orange { background: var(--orange); box-shadow: 0 4px 0 #cc7800; }
.st-green { background: var(--green); box-shadow: 0 4px 0 #009c01; }

/* ---------------------------------------------------------------- ścieżka kroków */
.path-sec { padding: 72px 0; }
.path { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 96px; }
.path-line { position: absolute; left: 16.6%; right: 16.6%; top: 42px; height: 10px; border-radius: 10px; background: var(--line); }
.path-fill { display: block; height: 100%; width: var(--p, 0%); border-radius: 10px; background: var(--violet); }
.path-dragon { position: absolute; top: -84px; left: calc(16.6% + (66.8% * var(--p01, 0))); width: 104px; height: 104px; margin-left: -52px; z-index: 2; pointer-events: none; transition: transform 0.3s ease-out; }
/* przewijanie w górę: bez odbijania w lustrze (przy obrocie robił się płaski), tylko pochylenie w lewo zamiast w prawo */
.path-dragon.back { transform: rotate(-15deg); }
.path-step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.node { position: relative; z-index: 1; width: 94px; height: 94px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: #e5e5e5; color: #afafaf;
  box-shadow: 0 7px 0 #cecece; transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); margin-bottom: 12px; }
.path-step.lit .node { background: var(--violet); color: #fff; box-shadow: 0 7px 0 var(--violet-edge); transform: scale(1.06); }
.path-step h3 { font-size: 21px; font-weight: 900; }
.path-step p { color: var(--ink-2); font-size: 16px; max-width: 260px; }

/* ---------------------------------------------------------------- cennik */
.pricing { padding: 72px 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; align-items: start; }
.plan { position: relative; border: 2px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 6px 0 var(--line); background: #fff; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 24px; font-weight: 900; }
.price b { font-size: 40px; font-weight: 900; }
.price span { margin-left: 8px; color: var(--ink-2); }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 16px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan .btn { margin-top: auto; }
.plan-pro { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 6px 0 var(--violet-edge); }
.plan-pro .price span { color: rgba(255, 255, 255, 0.75); }
.plan-pro li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234820dc' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
.plan-pro .btn-white { border-color: #fff; box-shadow: 0 4px 0 var(--violet-edge); }
.plan-badge { position: absolute; top: -16px; left: 28px; padding: 6px 14px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 3px 0 #cc7800; }
.note { margin-top: 26px; color: var(--ink-2); font-size: 15px; }

/* ---------------------------------------------------------------- faq */
.faq-sec { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; padding: 72px 0; }
.faq-art { position: sticky; top: 110px; border-radius: 28px; overflow: hidden; background: var(--violet); box-shadow: 0 6px 0 var(--violet-edge); }
.faq-art img { width: 100%; height: auto; }
.faq { display: grid; gap: 14px; margin-top: 28px; }
.faq details { border: 2px solid var(--line); border-radius: 18px; box-shadow: 0 4px 0 var(--line); background: #fff; overflow: hidden; transition: border-color 0.2s; }
.faq details[open]:not(.closing) { border-color: var(--violet-text); box-shadow: 0 4px 0 var(--violet-text); }
.faq details.closing summary .fi { transform: none !important; color: var(--ink-2) !important; }
.faq details.closing p { opacity: 0; transition: opacity 0.15s; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-weight: 900; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .fi { margin-left: auto; font-size: 20px; color: var(--ink-2); transition: transform 0.25s; }
.faq details[open] summary .fi { transform: rotate(180deg); color: var(--violet); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); font-size: 16px; }
.faq details[open]:not(.closing) p { animation: faq-in 0.35s ease-out 0.05s backwards; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------- koniec: wielki napis i przycisk na środku */
.final { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 90px 20px 30px; }
.final h2 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.1; }
.final .btn { min-width: min(320px, 100%); }
.final small { color: #afafaf; font-size: 14px; margin-top: -6px; }

/* ---------------------------------------------------------------- stopka jak na Duolingo: biała misa wcięta w fiolet */
.footer { color: #fff; }
.bowl { position: relative; height: 370px; margin-top: -20px; }
/* fiolet od wysokości 150 px w dół, a na środku misa (SVG 1000 px): dwa mniejsze łuki po bokach i jeden duży na dole, jak u Duolingo */
.bowl::before, .bowl::after { content: ''; position: absolute; top: 150px; bottom: 0; background: var(--violet); width: calc(50% - 499px); }
/* łuki w lewym i prawym rogu: fiolet zaczyna się zaokrąglony przy krawędziach okna, jak dwa mniejsze łuki misy */
.bowl::before { left: 0; border-top-left-radius: min(180px, 100%) 110px; }
.bowl::after { right: 0; border-top-right-radius: min(180px, 100%) 110px; }
.bowl-shape { position: absolute; left: 50%; top: 150px; width: 1000px; height: 220px; margin-left: -500px; fill: var(--violet); }
.bowl-art { position: absolute; left: 50%; top: 0; width: 0; height: 300px; z-index: 1; }
/* rakieta w misie: smok wygląda przez okienko; po wjechaniu na ekran trzęsie się, odpala płomień, startuje i unosi się */
.rocket { position: absolute; left: -85px; top: 22px; width: 170px; height: 330px; }
.rocket-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flame { transform-origin: 85px 262px; transform: scaleY(0.25); }
.bowl.in .flame { animation: flame 0.16s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scaleY(0.85) scaleX(0.95); } to { transform: scaleY(1.12) scaleX(1.04); } }
.rocket-window { position: absolute; left: 51px; top: 100px; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; background: var(--lilac); }
.rocket-dragon { position: absolute; left: -38px; top: -36px; width: 144px; height: 144px; }
.js .rocket { transform: translateY(26px); }
.bowl.in .rocket { animation: launch 1.1s cubic-bezier(0.3, 1.2, 0.5, 1) forwards, hover 3.4s ease-in-out 1.1s infinite; }
@keyframes launch {
  0% { transform: translateY(26px); }
  8%, 24% { transform: translateY(24px) rotate(-2deg); }
  16%, 32% { transform: translateY(26px) rotate(2deg); }
  100% { transform: translateY(-6px); }
}
@keyframes hover { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(-16px); } }
/* monety wyskakują z tabletu na swoje miejsca, potem unoszą się */
.pop { position: absolute; left: -32px; top: 160px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: #fff;
  transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.pop-sm { width: 46px; height: 46px; left: -23px; font-size: 19px; }
.js .pop { transform: translate(0, 40px) scale(0.2); opacity: 0; transition: transform 0.75s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d), opacity 0.3s var(--d); }
.bowl.in .pop { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 1; transition-delay: calc(var(--d) + 350ms); }
/* unosi się całe kółko razem z ikoną; osobne właściwości translate i rotate składają się z transform, który ustawia miejsce monety */
.bowl.in .pop { animation: coin-bob 3.6s ease-in-out infinite; animation-delay: calc(var(--d) * -7); }
@keyframes coin-bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -14px; rotate: 6deg; } }
.pop-gold { background: #ffc800; box-shadow: 0 5px 0 #d9a800; }
.pop-orange { background: var(--orange); box-shadow: 0 5px 0 #cc7800; }
.pop-red { background: #ff4b4b; box-shadow: 0 5px 0 #d33131; }
.pop-violet { background: var(--violet-hi); box-shadow: 0 5px 0 var(--violet-edge); }
.pop-blue { background: #5865f2; box-shadow: 0 5px 0 #3c45b0; }
.pop-green { background: var(--green); box-shadow: 0 5px 0 #009c01; }
/* kolumny linków na fiolecie, wąsko na środku jak u Duolingo */
.foot-cols { background: var(--violet); display: grid; grid-template-columns: repeat(4, minmax(0, 190px)); justify-content: center; gap: 40px; padding: 30px 20px 50px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.foot-col a { color: rgba(255, 255, 255, 0.8); font-weight: 800; font-size: 15px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { background: var(--violet); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; padding: 22px 20px 26px;
  border-top: 2px solid rgba(255, 255, 255, 0.16); font-size: 13.5px; color: rgba(255, 255, 255, 0.7); text-align: center; }
/* wielki napis fivehub na dole stopki (jak u Discorda): jasny liliowy na fiolecie, wjeżdża od dołu */
.foot-word { background: var(--violet); padding: 10px 0 0; overflow: hidden; }
.foot-word svg { display: block; width: min(1200px, 100% - 40px); margin: 0 auto; }
/* wielkie litery jak u Discorda: niższy kadr, bo bez wydłużeń w dół */
.foot-word text { font: 900 250px/1 var(--font); letter-spacing: -0.02em; fill: #e6dfff; }
.js .foot-word svg { transform: translateY(45%); opacity: 0; transition: transform 0.9s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.5s; }
.foot-word.in svg { transform: none; opacity: 1; }
.foot-bottom a:not(.logo):hover { color: #fff; }

/* ---------------------------------------------------------------- wjazd przy przewijaniu */
.js .reveal { opacity: 0; transform: translateY(34px) scale(0.97); transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .feat-copy.reveal { transform: translateX(-34px); }
.js .feat.flip .feat-copy.reveal { transform: translateX(34px); }
.js .feat-copy.reveal.in { transform: none; }

/* ---------------------------------------------------------------- warstwy smoka (anim.js z panelu); sceny smoka mają już position: absolute, więc bez .mascot-stage { position: relative } */
.mascot-layer { position: absolute; inset: 0; visibility: hidden; }
.mascot-layer.on { visibility: visible; }

/* ================================================================ panel w tablecie: ten sam wygląd co aplikacja (grafit i fiolet) */
.app { position: absolute; inset: 0; display: grid; grid-template-columns: 200px 1fr; color: #f2f2f5; font: 600 14px/1.45 var(--font); text-align: left; }
.app .fi { line-height: 1; }
.a-side { background: #0d0d0f; border-right: 2px solid #222228; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.a-logo { display: flex; align-items: center; gap: 5px; color: #7d5cff; font: 900 21px/1 var(--font); padding: 6px 8px 18px; }
.a-logo svg { height: 1.15em; aspect-ratio: 420 / 390; fill: currentColor; }
.a-nav { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 12px; color: #b8b8c4; font-weight: 800; font-size: 13.5px; transition: background 0.2s, color 0.2s; }
.a-nav .fi { font-size: 16px; }
.a-nav.on { background: #4820dc; color: #fff; }
.a-main { display: flex; flex-direction: column; min-width: 0; }
.a-top { height: 52px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 20px; }
.a-search { height: 34px; padding: 0 14px; border-radius: 999px; border: 2px solid #2a2a31; display: flex; align-items: center; gap: 8px; color: #84848f; font-size: 12.5px; font-weight: 800; }
.a-me { height: 38px; padding: 0 12px 0 4px; border-radius: 999px; border: 2px solid #2a2a31; display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 12.5px; }
.a-av { width: 28px; height: 28px; border-radius: 50%; background: #4820dc url(panel/brand/icon-256.png) center / cover; }
.a-me small { display: block; color: #a48cff; font-size: 10px; font-weight: 800; line-height: 1; }
.a-page { position: relative; flex: 1; padding: 6px 24px 20px; overflow: hidden; }
.a-h { font-size: 24px; font-weight: 900; }
.a-sub { color: #84848f; font-size: 13px; margin-bottom: 14px; }
.scene { position: absolute; inset: 6px 24px 20px; opacity: 0; transform: translateX(34px); transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.scene.out { opacity: 0; transform: translateX(-34px); transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.4, 0, 0.6, 1); }
@keyframes a-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.scene.on .a-h { animation: a-in 0.4s cubic-bezier(0.3, 1.3, 0.5, 1) backwards; }
.scene.on .a-sub { animation: a-in 0.4s cubic-bezier(0.3, 1.3, 0.5, 1) 0.03s backwards; }
.scene.on [data-i] { animation: a-in 0.45s cubic-bezier(0.3, 1.35, 0.5, 1) backwards; animation-delay: calc(50ms + var(--i, 0) * 40ms); }
.a-nav { position: relative; transition: background 0.2s, color 0.2s, transform 0.1s; }
.a-nav.press { transform: scale(0.96); background: #2a2a31; color: #fff; }
.a-nav.on .fi { animation: a-pop 0.4s cubic-bezier(0.3, 1.7, 0.5, 1); }
@keyframes a-pop { 45% { transform: scale(1.18); } }
.a-card { border-radius: 18px; background: #1b1b20; border: 2px solid #222228; }
.a-hero { position: relative; height: 128px; border-radius: 20px; background: #4820dc; box-shadow: 0 4px 0 #3114a6; overflow: hidden; padding: 20px 22px; }
.a-hero b { display: block; font-size: 22px; font-weight: 900; color: #fff; max-width: 52%; line-height: 1.2; }
.a-hero span { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.8); font-size: 13px; max-width: 50%; }
.a-hero img { position: absolute; right: 0; top: 0; height: 100%; width: 48%; object-fit: cover; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 12px; background: #4820dc; color: #fff; font-weight: 900; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.04em; box-shadow: 0 3px 0 #3114a6; transition: transform 0.08s, box-shadow 0.08s, background 0.2s; }
.a-btn.press { transform: translateY(3px); box-shadow: none; }
.a-btn.ok { background: #00c301; box-shadow: 0 3px 0 #009c01; animation: a-pop 0.4s cubic-bezier(0.3, 1.7, 0.5, 1); }
/* instalacja: przycisk wypełnia się fioletem jak pasek postępu */
.a-btn.busy { position: relative; overflow: hidden; background: #2a2a31; box-shadow: 0 3px 0 #1b1b20; }
.a-btn.busy span { position: relative; }
.a-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #4820dc; animation: a-fill 0.72s cubic-bezier(0.4, 0, 0.3, 1) forwards; }
@keyframes a-fill { to { width: 100%; } }
.a-step.done .a-coin { animation: a-pop 0.4s cubic-bezier(0.3, 1.7, 0.5, 1); }
.a-dots { display: inline-flex; gap: 4px; padding: 3px 0; }
.a-dots i { width: 7px; height: 7px; border-radius: 50%; background: #a48cff; animation: dot 1s infinite ease-in-out; }
.a-dots i:nth-child(2) { animation-delay: 0.15s; }
.a-dots i:nth-child(3) { animation-delay: 0.3s; }
.a-row { display: flex; gap: 12px; margin-top: 14px; }
.a-pack { flex: 1; padding: 14px; border-radius: 16px; background: #1b1b20; border: 2px solid #2a2a31; box-shadow: 0 3px 0 #2a2a31; transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.a-pack b { display: block; font-weight: 900; font-size: 14px; }
.a-pack small { color: #84848f; font-size: 11.5px; }
.a-pack.on { background: #4820dc; border-color: #4820dc; box-shadow: 0 3px 0 #3114a6; }
.a-pack.on small { color: rgba(255, 255, 255, 0.8); }
.a-coin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: #2a2a31; color: #a48cff; font-size: 15px; }
.a-pack.on .a-coin { background: #fff; color: #4820dc; }
.a-prog { margin-top: 14px; padding: 14px 16px; }
[data-label].swap { display: inline-block; animation: a-in 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
.a-prog-row { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: #b8b8c4; margin-bottom: 8px; }
.a-meter { height: 12px; border-radius: 12px; background: #2a2a31; overflow: hidden; }
.a-meter i { display: block; height: 100%; width: 0; border-radius: 12px; background: #4820dc; box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.22); }
.a-done { position: absolute; inset: 0; display: flex; align-items: center; gap: 18px; padding: 0 0 0 26px; border-radius: 20px; background: #00c301; box-shadow: 0 4px 0 #009c01; overflow: hidden;
  opacity: 0; transform: scale(0.9); transition: opacity 0.3s, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.a-done.on { opacity: 1; transform: none; }
.a-done b { font-size: 28px; font-weight: 900; color: #fff; display: block; }
.a-done span { color: rgba(255, 255, 255, 0.9); font-size: 14px; }
.a-done img { margin-left: auto; height: 100%; }
.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.a-sc { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.a-thumb { height: 74px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; color: #fff; }
.a-sc b { font-weight: 900; font-size: 13.5px; }
.a-pill { align-self: flex-start; height: 20px; padding: 0 8px; border-radius: 999px; background: #2a2a31; color: #b8b8c4; font-size: 10.5px; font-weight: 900; display: inline-flex; align-items: center; }
.a-sc .a-btn { height: 30px; font-size: 11px; }
.a-chat { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 260px; gap: 14px; }
.a-asst { display: flex; flex-direction: column; overflow: hidden; }
.a-asst-head { display: flex; align-items: center; gap: 10px; padding: 12px; background: linear-gradient(135deg, #5a33ee, #4820dc 70%); color: #fff; font-weight: 900; }
.a-asst-head .a-av { box-shadow: 0 0 0 2px #fff; width: 32px; height: 32px; }
.a-msgs { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.a-msg { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.35s; }
.a-msg.on { opacity: 1; transform: none; }
.a-msg.me { align-self: flex-end; background: #4820dc; color: #fff; border-radius: 16px 16px 5px 16px; box-shadow: 0 3px 0 #3114a6; }
.a-msg.ai { background: #222228; border: 2px solid #36363f; color: #b8b8c4; border-radius: 16px 16px 16px 5px; }
.a-msg.ai b { color: #fff; }
.a-input { margin: 0 12px 12px; height: 38px; border-radius: 19px; border: 2px solid #2a2a31; display: flex; align-items: center; padding: 0 6px 0 14px; color: #5c5c66; font-size: 12px; }
.a-input i.send { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: #4820dc; color: #fff; display: grid; place-items: center; font-size: 12px; }
.a-res { align-self: start; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.a-res-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: #b8b8c4; }
.a-res-row i.dot { width: 9px; height: 9px; border-radius: 50%; background: #00c301; }
.a-res-row i.dot.red { background: #ff4b4b; }
.a-an-ai { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: linear-gradient(135deg, #5a33ee, #4820dc); box-shadow: 0 3px 0 #3114a6; }
.a-an-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 16px; }
.a-an-in { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; padding: 0 12px; border-radius: 11px; background: #fff; color: #3c3c3c; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; }
.a-caret { flex: none; width: 2px; height: 17px; margin-left: 1px; background: #4820dc; animation: caret 1s steps(1) infinite; }
.a-an-go { height: 38px; background: #fff; color: #4820dc; box-shadow: 0 3px 0 #3114a6; }
.scene.busy .a-an-go .fi { animation: spin 0.9s linear infinite; }
.a-an-body { display: grid; grid-template-columns: 1fr 200px; gap: 12px; margin-top: 12px; }
.a-an-scene { position: relative; height: 262px; border-radius: 16px; overflow: hidden; background: radial-gradient(60% 75% at 50% 45%, #241a52, #16132a 55%, #0f0f13); }
.a-an-scene video { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 3 / 4; transform: translateX(-50%); object-fit: cover; transition: opacity 0.3s, filter 0.3s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.scene.busy .a-an-scene video { opacity: 0.35; filter: blur(3px); }
.a-an-busy, .a-an-ok { position: absolute; left: 50%; display: flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 900; font-size: 12.5px; white-space: nowrap; opacity: 0; pointer-events: none; }
.a-an-busy { top: 50%; padding: 9px 14px; background: #1b1b20; border: 2px solid #36363f; transform: translate(-50%, -40%) scale(0.92); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1); }
.scene.busy .a-an-busy { opacity: 1; transform: translate(-50%, -50%); }
.a-spin { width: 15px; height: 15px; border-radius: 50%; border: 3px solid #36363f; border-top-color: #a48cff; animation: spin 0.8s linear infinite; }
.a-an-ok { top: 12px; padding: 6px 12px 6px 6px; background: #00c301; color: #fff; box-shadow: 0 3px 0 #009c01; transform: translate(-50%, -12px) scale(0.8); transition: opacity 0.2s, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.a-an-ok .fi { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #00c301; font-size: 10px; }
.scene.done .a-an-ok { opacity: 1; transform: translate(-50%, 0); }
.a-an-side { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.a-an-side small { font-size: 10.5px; font-weight: 800; color: #84848f; text-transform: uppercase; letter-spacing: 0.06em; }
.a-an-side > b { font-size: 16px; font-weight: 900; line-height: 1.25; }
.scene.done .a-an-side > b { animation: a-in 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); }
.a-an-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.a-an-stats span { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: #222228; color: #b8b8c4; font-size: 11.5px; }
.a-an-stats .fi { color: #a48cff; font-size: 11px; }
.a-an-stats b { color: #f2f2f5; font-weight: 900; }
.a-an-ycd { margin-top: auto; height: 32px; font-size: 11px; background: #222228; border: 2px solid #36363f; box-shadow: 0 3px 0 #36363f; }
.a-an-ycd.ok { border-color: #00c301; }
.a-an-tl { position: relative; margin-top: 12px; padding: 10px 12px; display: grid; gap: 5px; }
.a-an-row { position: relative; height: 14px; border-radius: 6px; background: #16161a; }
.a-an-row .k { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 2px; background: #ffc800; transform: rotate(45deg); animation: key-in 0.4s cubic-bezier(0.3, 1.7, 0.5, 1) backwards; animation-delay: var(--d); }
.a-an-head { position: absolute; top: 6px; bottom: 6px; left: calc(12px + (100% - 24px) * var(--p, 0)); width: 2px; margin-left: -1px; background: #a48cff; }
.a-dc { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.a-embed { background: #313338; border-radius: 14px; padding: 14px 16px; color: #dbdee1; font: 500 13px/1.45 system-ui, sans-serif; }
.a-bot { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.a-bot b { color: #fff; }
.a-tag { height: 16px; padding: 0 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; }
.a-em { border-left: 4px solid #00c301; background: #2b2d31; border-radius: 4px; padding: 10px 12px; }
.a-em b { color: #fff; display: block; margin-bottom: 4px; }
.a-em-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; font-size: 12px; }
.a-em-grid span { color: #b5bac1; }
.a-em-grid strong { display: block; color: #fff; font-size: 15px; }
.a-steps { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.a-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #222228; font-weight: 800; font-size: 13px; color: #b8b8c4; transition: background 0.3s, color 0.3s; }
.a-step .a-coin { margin: 0; width: 28px; height: 28px; font-size: 12px; }
.a-step.done { color: #fff; }
.a-step.done .a-coin { background: #00c301; color: #fff; }
/* kursor, który klika w panelu */
.cursor { position: absolute; z-index: 10; left: 0; top: 0; width: 30px; height: 36px; pointer-events: none; transition: transform 0.55s cubic-bezier(0.45, 0, 0.2, 1); }
.cursor svg { width: 100%; height: 100%; overflow: visible; }
.cursor path { stroke-width: 2.4; stroke-linejoin: round; }
.cursor .cur-edge { fill: #3114a6; stroke: #3114a6; transform: translateY(3px); }
.cursor .cur-top { fill: #fff; stroke: #4820dc; transition: transform 0.08s; }
.cursor.click .cur-top { animation: cur-press 0.26s ease-out; }
.cursor.down .cur-top { transform: translateY(2.6px); }
@keyframes cur-press { 30% { transform: translateY(2.6px); } }
.cursor::after { content: ''; position: absolute; left: 5px; top: 4px; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(164, 140, 255, 0.55); transform: scale(0); opacity: 0; }
.cursor.click::after { animation: ripple 0.45s ease-out; }
@keyframes ripple { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------------------------------------------------------------- telefon i tablet */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero, .feat, .faq-sec { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 32px; }
  .hero-dragon { width: 110px; height: 110px; left: -16px; bottom: -36px; }
  .demo-cap-t { font-size: 13px; }
  .demo-dots { display: none; }
  .feat.flip .feat-art { order: 0; }
  .feat { padding: 30px 0; }
  .js .feat-copy.reveal, .js .feat.flip .feat-copy.reveal { transform: translateY(24px); }
  .stats, .plans { grid-template-columns: 1fr; }
  .faq-art { position: static; max-width: 340px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pop { transform: translate(calc(var(--x) * 0.62), var(--y)) rotate(var(--r)); }
  .bowl.in .pop { transform: translate(calc(var(--x) * 0.62), var(--y)) rotate(var(--r)); }
  .path { grid-template-columns: 1fr; gap: 40px; }
  .path-line, .path-dragon { display: none; }
  .path-step .node { background: var(--violet); color: #fff; box-shadow: 0 7px 0 var(--violet-edge); }
}
@media (max-width: 520px) {
  /* telefon: w pasku „Zaloguj się” (panel działa w przeglądarce) i język; „Pobierz” (aplikacja na Windows) zostaje w treści strony */
  .nav-in { gap: 10px; }
  .nav .logo { margin-right: auto; font-size: 24px; }
  .nav-cta .btn-primary { display: none; }
  .nav-cta .btn-sm { padding: 0 14px; }
  .float-coin { display: none; }
  .tablet { padding: 8px; border-radius: 20px; }
  .screen, .tablet:empty::after { border-radius: 13px; }
}

/* bez animacji, gdy system tak każe */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ================================================================ strony prawne: regulamin, prywatność, cookies (czytelny tekst na białym) */
.legal .legal-links a.on { color: var(--violet); }
.doc { max-width: 760px; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); color: var(--violet); }
.doc-date { margin-top: 6px; color: #afafaf; font-size: 14px; font-weight: 800; }
.doc section { margin-top: 40px; }
.doc h2 { display: flex; align-items: baseline; gap: 12px; font-size: 24px; color: var(--ink); }
.doc h2 span { flex: none; color: var(--violet); font-size: 18px; }
.doc ol { margin-top: 12px; padding-left: 24px; display: grid; gap: 10px; color: #4b4b4b; font-size: 16px; }
.doc ol ol { margin-top: 8px; gap: 4px; }
.doc li::marker { color: var(--violet-text); font-weight: 900; }
.doc a { color: var(--violet); font-weight: 800; }
.doc a:hover { color: var(--violet-hi); }
.doc b { color: var(--ink); font-weight: 900; }
.doc-foot { background: var(--violet); color: rgba(255, 255, 255, 0.8); padding: 26px 0; font-size: 14px; }
.doc-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; }
.doc-foot a:hover { color: #fff; }

/* ================================================================ zgoda na cookies: karta w lewym dolnym rogu jak u Duolingo (ramka 2px, krawędź 3D),
   smok zerka zza łap obok ciasteczka, przyciski „Akceptuję” i „Tylko niezbędne” tej samej wielkości */
.cc { position: fixed; left: 20px; bottom: 20px; z-index: 100; width: min(420px, 100% - 40px); transform: translateY(calc(100% + 40px)); transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
.cc.on { transform: none; }
.cc-card { background: #fff; border: 2px solid var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--line), 0 24px 60px rgba(30, 10, 90, 0.18); padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.cc-head { display: flex; gap: 14px; align-items: flex-start; }
.cc-head h3 { font-size: 21px; font-weight: 900; color: var(--violet); }
.cc-head p { margin-top: 4px; color: var(--ink-2); line-height: 1.5; }
.cc-head a { color: var(--violet); font-weight: 800; }
.cc-head a:hover { color: var(--violet-hi); }
.cc-art { position: relative; flex: none; width: 76px; height: 76px; border-radius: 22px; background: var(--lilac); display: grid; place-items: center; overflow: hidden; }
.cc-cookie { font-size: 34px; color: #c98a3c; animation: cookie-wobble 2.6s ease-in-out infinite; }
@keyframes cookie-wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) scale(1.06); } }
.cc-dragon { position: absolute; left: -10px; top: -4px; width: 96px; height: 96px; display: none; }
.cc.has-dragon .cc-dragon { display: block; }
.cc.has-dragon .cc-cookie { position: absolute; right: 2px; bottom: 2px; font-size: 26px; z-index: 1; }
.cc-more { display: grid; gap: 10px; }
.cc-more[hidden] { display: none; }
.cc-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; }
.cc-row span { flex: 1; display: flex; flex-direction: column; }
.cc-row b { font-weight: 900; color: var(--ink); }
.cc-row small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
/* przełącznik jak w aplikacji */
.cc-row input { flex: none; appearance: none; width: 46px; height: 28px; border-radius: 999px; background: #e5e5e5; position: relative; cursor: pointer; transition: background 0.2s; }
.cc-row input::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12); transition: transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1); }
.cc-row input:checked { background: var(--violet); }
.cc-row input:checked::after { transform: translateX(18px); }
.cc-row input:disabled { opacity: 0.55; cursor: default; }
.cc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-btns .btn { height: 46px; padding: 0 10px; font-size: 13px; }
.cc-link { align-self: center; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-2); font: 900 13px var(--font); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.cc-link:hover { color: var(--violet); }
@media (max-width: 520px) {
  .cc { left: 10px; bottom: 10px; width: calc(100% - 20px); }
  .cc-btns { grid-template-columns: 1fr; }
}

/* ================================================================ logowanie i rejestracja jako modal: biała karta na środku, smok nad tytułem,
   pola jak w Duolingo (szare tło, ramka 2px), duży przycisk 3D, przełącznik „Nie masz konta? Załóż konto” */
.au { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.au.on { visibility: visible; }
.au-back { position: absolute; inset: 0; background: rgba(28, 12, 82, 0.55); opacity: 0; transition: opacity 0.25s; }
.au.on .au-back { opacity: 1; }
.au-card { position: relative; width: min(420px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 28px; border: 2px solid var(--line);
  box-shadow: 0 8px 0 var(--line); padding: 74px 28px 24px; text-align: center; opacity: 0; margin-top: 60px; overflow: visible; }
.au.on .au-card { opacity: 1; animation: au-pop 0.55s cubic-bezier(0.3, 1.45, 0.5, 1); }
@keyframes au-pop { 0% { opacity: 0; transform: translateY(60px) scale(0.82) rotate(-2deg); } 60% { opacity: 1; } 100% { transform: none; } }
.au.on .au-dragon { animation: au-dragon 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 0.18s backwards; }
@keyframes au-dragon { from { transform: translateY(70px) scale(0.6); opacity: 0; } }
.au.on .au-card h2 { animation: au-in 0.4s ease-out 0.08s backwards; }
.au.on .au-form > :not([hidden]) { animation: au-in 0.45s cubic-bezier(0.3, 1.3, 0.5, 1) backwards; }
.au.on .au-form > :nth-child(1) { animation-delay: 0.1s; } .au.on .au-form > :nth-child(2) { animation-delay: 0.13s; } .au.on .au-form > :nth-child(3) { animation-delay: 0.16s; }
.au.on .au-form > :nth-child(4) { animation-delay: 0.19s; } .au.on .au-form > :nth-child(5) { animation-delay: 0.22s; } .au.on .au-form > :nth-child(n+6) { animation-delay: 0.25s; }
@keyframes au-in { from { opacity: 0; transform: translateY(14px); } }
/* zamykanie: karta zjeżdża w dół */
.au.out { visibility: visible; }
.au.out .au-back { opacity: 0; }
.au.out .au-card { opacity: 1; animation: au-out 0.25s ease-in forwards; }
@keyframes au-out { to { opacity: 0; transform: translateY(40px) scale(0.92); } }
/* przełączanie logowania i rejestracji: tytuł i pola wjeżdżają od nowa, karta płynnie zmienia wysokość (auth.js) */
.au-card.swap h2, .au-card.swap .au-form > :not([hidden]), .au-card.swap .au-swap { animation: au-swap 0.42s cubic-bezier(0.3, 1.3, 0.5, 1) backwards; }
.au-card.swap .au-form > :nth-child(2) { animation-delay: 0.04s; } .au-card.swap .au-form > :nth-child(3) { animation-delay: 0.08s; } .au-card.swap .au-form > :nth-child(4) { animation-delay: 0.12s; } .au-card.swap .au-form > :nth-child(n+5) { animation-delay: 0.16s; }
@keyframes au-swap { from { opacity: 0; transform: translateX(var(--dir, 24px)); } }
.au-dragon { position: absolute; left: 50%; top: -86px; width: 150px; height: 150px; margin-left: -75px; pointer-events: none; }
.au-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f2f2f2; color: var(--ink-2); display: grid; place-items: center; font-size: 15px; cursor: pointer; }
.au-x:hover { background: #e9e9e9; color: var(--ink); }
.au-card h2 { font-size: 28px; color: var(--ink); }
.au-form { display: grid; gap: 12px; margin-top: 18px; text-align: left; }
.au-field { display: block; }
.au-field[hidden], .au-check[hidden], .au-forgot[hidden] { display: none; }
.au-field > span:first-child { display: block; margin: 0 0 6px 4px; font-size: 13px; font-weight: 900; color: var(--ink-2); }
.au-field input { width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--line); background: #f7f7f7; font: 700 16px var(--font); color: var(--ink); outline: none; transition: border-color 0.15s, background 0.15s; }
.au-field input:focus { border-color: var(--violet-text); background: #fff; }
.au-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer; padding: 2px 4px; }
/* własny checkbox zgody: kliknięcie najpierw wypełnia kwadrat fioletem od środka, potem ptaszek wyskakuje z odbiciem */
.au-check input { flex: none; appearance: none; position: relative; width: 24px; height: 24px; margin: 0; border-radius: 8px; border: 2px solid #d5d5d5; background: #fff; cursor: pointer;
  box-shadow: 0 2px 0 #d5d5d5; transition: border-color 0.2s, box-shadow 0.2s; overflow: hidden; }
.au-check input::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: var(--violet); transform: scale(0); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
.au-check input::after { content: ''; position: absolute; inset: 0; transform: scale(0); opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 17px no-repeat; }
.au-check input:checked { border-color: var(--violet); box-shadow: 0 2px 0 var(--violet-edge); }
.au-check input:checked::before { transform: scale(1.5); border-radius: 0; }
.au-check input:checked::after { animation: check-pop 0.4s cubic-bezier(0.3, 1.8, 0.5, 1) 0.22s forwards; }
.au-check input:focus-visible { outline: 3px solid var(--violet-text); outline-offset: 2px; }
@keyframes check-pop { 0% { transform: scale(0) rotate(-20deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.au-check a, .au-forgot { color: var(--violet); font-weight: 900; }
.au-err { padding: 10px 14px; border-radius: 14px; background: #ffe5e5; color: #c62828; font-weight: 800; font-size: 14px; }
.au-err[hidden] { display: none; }
.au-submit { width: 100%; margin-top: 4px; }
.au-submit:disabled { opacity: 0.8; cursor: default; }
.au-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: au-spin 0.7s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-forgot { justify-self: center; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.au-swap { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line); color: var(--ink-2); font-size: 15px; }
.au-swap button { border: 0; background: none; color: var(--violet); font: 900 15px var(--font); cursor: pointer; }
.au-swap button:hover { color: var(--violet-hi); }
html.au-lock { overflow: hidden; }
/* placeholdery, opis kroku i zielona informacja w modalu logowania; reset hasła w tym samym modalu */
.au-field input::placeholder { color: #b3b3b3; font-weight: 600; }
.au-field input[name="code"] { letter-spacing: 0.4em; font-size: 20px; font-weight: 900; text-align: center; }
.au-field input[name="code"]::placeholder { letter-spacing: 0.4em; }
.au-lead { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.au-lead[hidden] { display: none; }
.au-err.ok { background: #e6f9e6; color: #118a12; }
.au-forgot { border: 0; background: none; cursor: pointer; font-family: var(--font); font-weight: 900; }
.au-forgot:hover { color: var(--violet-hi); }
.au-swap button:disabled { color: #afafaf; cursor: default; text-decoration: none; }
.au-card.swap .au-lead { animation: au-swap 0.42s cubic-bezier(0.3, 1.3, 0.5, 1) backwards; }
/* przycisk pokazania hasła: oko po prawej w polu hasła */
.au-pw { position: relative; display: block; }
.au-pw input { padding-right: 52px; }
.au-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: #a3a3a3; display: grid; place-items: center; font-size: 18px; cursor: pointer; transition: color 0.15s, background 0.15s; }
.au-eye:hover { background: #ececec; color: var(--ink-2); }
.au-eye.on { color: var(--violet); }
.au-eye .fi { animation: eye-pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes eye-pop { from { transform: scale(0.5); } }
/* ikona pobierania w przyciskach „Pobierz”: przy najechaniu lekko podskakuje w dół */
.btn .fi-br-download { font-size: 1.1em; transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.btn:hover .fi-br-download { transform: translateY(2px); }

/* ================================================================ przełącznik języka z flagą: w pasku u góry i w stopce (tam lista otwiera się w górę) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
  color: var(--ink-2); font: 900 13px var(--font); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: color 0.15s; }
.lang-btn:hover { color: var(--violet); }
.lang-btn .fi { font-size: 14px; transition: transform 0.2s; }
.lang.open .lang-btn .fi { transform: rotate(180deg); }
.lang-flag { width: 22px; height: 16px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 180px; padding: 6px; border-radius: 16px; border: 2px solid var(--line); background: #fff;
  box-shadow: 0 5px 0 var(--line), 0 18px 40px rgba(30, 10, 90, 0.14); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.96);
  transform-origin: top right; transition: opacity 0.18s, transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), visibility 0.18s; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { text-decoration: none; }
.lang-menu button, .lang-menu a { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 0; border-radius: 11px; background: none; color: var(--ink); font: 800 15px var(--font); text-align: left; cursor: pointer; }
.lang-menu button:hover, .lang-menu a:hover { background: #f4f4f4; }
.lang-menu button.on, .lang-menu a.on { color: var(--violet); background: var(--lilac); }
.lang-menu button .fi, .lang-menu a .fi { margin-left: auto; font-size: 14px; }
.nav .lang { margin-left: 4px; }
/* stopka: na fiolecie, lista w górę */
.lang-up .lang-btn { background: rgba(255, 255, 255, 0.12); border-color: transparent; color: #fff; box-shadow: none; }
.lang-up .lang-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.2); }
.lang-up .lang-menu { top: auto; bottom: calc(100% + 10px); right: auto; left: 0; transform-origin: bottom left; transform: translateY(8px) scale(0.96); }
.lang-up.open .lang-menu { transform: none; }
@media (max-width: 520px) { .nav .lang-btn span { display: none; } }
html.lang-wait .nav, html.lang-wait main, html.lang-wait .footer { visibility: hidden; } /* polska strona przechodzi na adres innego języka */
html.lang-pending .footer, html.lang-pending .cc { visibility: hidden; } /* strona językowa: stopka i karta cookies czekają na słownik */
/* wybór waluty w cenniku: pigułka z flagą, kodem i symbolem; lista jako biała karta z siatką walut (flaga, kod, nazwa w języku strony) */
.cur { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; font-weight: 800; color: var(--ink-2); font-size: 15px; }
.cur-box { position: relative; }
.cur-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  box-shadow: 0 4px 0 var(--line); font: 900 15px var(--font); color: var(--ink); cursor: pointer; transition: border-color 0.15s, transform 0.08s, box-shadow 0.08s; }
.cur-btn:hover { border-color: var(--violet-text); }
.cur-btn:active { transform: translateY(4px); box-shadow: none; }
.cur-btn .cur-sym { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; background: var(--lilac); color: var(--violet); font-size: 14px; }
.cur-btn .fi { font-size: 14px; color: var(--ink-2); transition: transform 0.2s; }
.cur-box.open .cur-btn { border-color: var(--violet-text); }
.cur-box.open .cur-btn .fi { transform: rotate(180deg); }
.cur-flag { width: 26px; height: 19px; border-radius: 5px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); flex: none; }
.cur-menu { position: absolute; left: 50%; top: calc(100% + 12px); z-index: 40; width: min(460px, 92vw); padding: 10px; border-radius: 20px; border: 2px solid var(--line); background: #fff;
  box-shadow: 0 6px 0 var(--line), 0 24px 50px rgba(30, 10, 90, 0.16); display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(0.97); transform-origin: top center; transition: opacity 0.18s, transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), visibility 0.18s; }
.cur-box.open .cur-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cur-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 2px solid transparent; border-radius: 14px; background: none; cursor: pointer; text-align: left; font-family: var(--font); }
.cur-menu button:hover { background: #f6f6f6; }
.cur-menu button.on { background: var(--lilac); border-color: var(--lilac-edge); }
.cur-menu b { display: block; font-size: 15px; font-weight: 900; color: var(--ink); }
.cur-menu small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.cur-menu button.on b { color: var(--violet); }
.cur-menu .cur-txt { flex: 1; min-width: 0; }
.cur-menu .cur-s { font-size: 13px; font-weight: 900; color: #afafaf; }
.cur-menu button.on .cur-s { color: var(--violet); }
@media (max-width: 520px) { .cur-menu { grid-template-columns: 1fr; max-height: 60vh; overflow-y: auto; } }

/* ================================================================ /upload: strona dla twórców (upload.html, upload.js)
   Na górze fioletowa karta jak w sklepie aplikacji (smok przy komputerze, sklep-smok.jpg, fiolet ciemnieje do koloru ściany obrazka),
   pod nią karta z formularzem w trzech krokach (plik, grafiki, opis) i karta „Twoje zgłoszenia” ze stanem i powodem odrzucenia */
.up-page .grow { flex: 1; }
.up { padding: 32px 0 90px; }
.up-who { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--lilac); color: var(--violet); font-size: 14px; font-weight: 900; }
.up-who[hidden], .up-page .btn[hidden] { display: none; }
.up-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 250px; padding: 32px 36px; border-radius: 28px; color: #fff;
  background: linear-gradient(90deg, var(--violet-hi) 0%, var(--violet) 26%, #3a1bb8 44%, #2c1484 58%, #251168 72%); box-shadow: 0 6px 0 var(--violet-edge); }
.up-hero-txt { position: relative; z-index: 1; max-width: min(520px, 50%); }
.up-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; background: #fff; color: var(--violet); font-size: 13px; font-weight: 900; }
.up-hero h1 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 38px); }
.up-hero p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.up-hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 56%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 45%; pointer-events: none;
  --fade: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.06) 8%, rgba(0, 0, 0, 0.2) 16%, rgba(0, 0, 0, 0.42) 25%, rgba(0, 0, 0, 0.68) 34%, rgba(0, 0, 0, 0.88) 42%, #000 50%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade); }

/* ładowanie i bramki (niezalogowany, konto bez uprawnienia twórcy): biała karta ze smokiem */
.up-state { display: grid; place-items: center; padding: 70px 0; }
.up-state.small { padding: 30px 0; }
.up-state[hidden], .up-gate[hidden], .up-grid[hidden] { display: none; }
.up-spin { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--lilac); border-top-color: var(--violet); animation: au-spin 0.7s linear infinite; }
.up-spin.small { width: 24px; height: 24px; border-width: 3px; }
.up-gate { margin: 34px auto 0; max-width: 560px; padding: 20px 32px 32px; text-align: center; background: #fff; border: 2px solid var(--line); border-radius: 28px; box-shadow: 0 6px 0 var(--line); }
.up-gate-dragon { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.up-gate h2 { font-size: 26px; color: var(--ink); }
.up-gate p { margin: 8px auto 22px; max-width: 420px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* formularz i lista obok siebie */
.up-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 30px; }
.up-card { background: #fff; border: 2px solid var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--line); padding: 26px; }
.up-card h2 { font-size: 24px; color: var(--ink); }
.up-step { margin-top: 24px; }
.up-step + .up-step { padding-top: 22px; border-top: 2px solid var(--line); }
.up-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.up-step-head b { font-size: 17px; font-weight: 900; color: var(--ink); }
.up-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 14px; font-weight: 900; box-shadow: 0 3px 0 var(--violet-edge); }
.up-hint { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.up-hint-tight { margin-top: 6px; }
.up-form .au-field { margin-top: 12px; }
.up-form textarea { display: block; width: 100%; min-height: 150px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: #f7f7f7; font: 700 16px/1.5 var(--font); color: var(--ink); outline: none; resize: vertical; transition: border-color 0.15s, background 0.15s; }
.up-form textarea:focus { border-color: var(--violet-text); background: #fff; }
.up-form .au-field input.up-mono { font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.up-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
.up-form.busy .up-step { opacity: 0.6; pointer-events: none; }

/* pole na ZIP: przerywana ramka, po najechaniu i przeciąganiu liliowe; z wybranym plikiem zwykła ramka z nazwą i rozmiarem */
.up-coin { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--violet); box-shadow: 0 4px 0 var(--violet-edge); }
.up-coin-lilac { background: var(--lilac); color: var(--violet); box-shadow: 0 4px 0 var(--lilac-edge); }
.up-drop { display: block; padding: 26px 20px; border: 2px dashed #d5d5d5; border-radius: 20px; background: #fafafa; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.up-drop:hover, .up-drop.over { border-color: var(--violet-text); background: var(--lilac); }
.up-drop.has { padding: 14px 16px; border-style: solid; border-color: var(--line); background: #fff; box-shadow: 0 4px 0 var(--line); text-align: left; }
.up-drop.has:hover { border-color: var(--violet-text); background: #fff; }
.up-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.up-drop-empty .up-coin { margin-bottom: 8px; background: var(--lilac); color: var(--violet); box-shadow: 0 4px 0 var(--lilac-edge); }
.up-drop-empty b { font-size: 17px; font-weight: 900; color: var(--ink); }
.up-drop-empty small { font-size: 14px; color: var(--ink-2); }
.up-drop-file { display: flex; align-items: center; gap: 14px; }
.up-drop-empty[hidden], .up-drop-file[hidden] { display: none; }
.up-drop-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.up-drop-txt b { font-size: 16px; font-weight: 900; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-drop-txt small { font-size: 13px; color: var(--ink-2); font-weight: 800; }

/* galeria: okładka 16:9 na całą szerokość, zrzuty ekranu po cztery w rzędzie */
.up-media { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.up-img, .up-img-add { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; }
.up-img { background: #f2f2f2 center / cover no-repeat; border: 2px solid var(--line); display: grid; place-items: center; }
.up-img.cover, .up-img-add.cover { grid-column: 1 / -1; border-radius: 18px; }
.up-img-badge, .up-img-act { position: absolute; left: 8px; top: 8px; height: 24px; padding: 0 10px; border-radius: 999px; font: 900 11px/24px var(--font); letter-spacing: 0.04em; text-transform: uppercase; }
.up-img-badge { background: var(--violet); color: #fff; }
.up-img-act { border: 0; background: rgba(255, 255, 255, 0.95); color: var(--violet); cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.up-img:hover .up-img-act { opacity: 1; }
.up-img-x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; color: var(--ink-2); display: grid; place-items: center; font-size: 11px; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.up-img-x:hover { color: #c62828; }
.up-img-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed #d5d5d5; background: #fafafa; cursor: pointer; font: 900 12px var(--font); color: var(--ink-2); padding: 6px; text-align: center; line-height: 1.2; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.up-img-add:hover { border-color: var(--violet-text); background: var(--lilac); color: var(--violet); }
.up-img-add .up-coin { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; box-shadow: 0 3px 0 var(--lilac-edge); }
.up-img-add.cover { font-size: 15px; }
.up-img-add.cover .up-coin { width: 52px; height: 52px; border-radius: 16px; font-size: 24px; }

/* kategorie jak kafelki w sklepie (moneta w kolorze kategorii), frameworki jako pigułki z ptaszkiem */
.up-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.up-cat { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px 6px 8px; border: 2px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 3px 0 var(--line); font: 800 14px/1.2 var(--font); color: var(--ink-2); text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.up-cat:hover { border-color: #d0d0d0; color: var(--ink); }
.up-cat:active { transform: translateY(3px); box-shadow: none; }
.up-cat.on { border-color: var(--violet-text); background: var(--lilac); color: var(--violet); box-shadow: 0 3px 0 var(--violet-text); }
.up-cat-coin { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 14px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16); }
.up-fws { display: flex; flex-wrap: wrap; gap: 8px; }
.up-fw { display: inline-flex; align-items: center; gap: 0; height: 42px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 3px 0 var(--line); font: 900 14px var(--font); color: var(--ink-2); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, gap 0.2s; }
.up-fw .fi { width: 0; overflow: hidden; font-size: 12px; transition: width 0.2s; }
.up-fw:active { transform: translateY(3px); box-shadow: none; }
.up-fw.on { gap: 7px; background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 3px 0 var(--violet-edge); }
.up-fw.on .fi { width: 12px; }

/* pasek wysyłki: fioletowy, w trakcie sprawdzania paczki przesuwające się paski */
.up-progress { margin-top: 18px; }
.up-progress[hidden] { display: none; }
.up-meter { height: 16px; border-radius: 999px; background: #e5e5e5; overflow: hidden; }
.up-meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--violet); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); transition: width 0.3s; }
.up-meter.busy span { background: repeating-linear-gradient(-45deg, var(--violet) 0 14px, var(--violet-hi) 14px 28px); background-size: 40px 40px; animation: up-stripes 0.8s linear infinite; }
@keyframes up-stripes { to { background-position: 40px 0; } }
.up-progress-t { display: flex; justify-content: space-between; margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.up-progress-t b { color: var(--violet); }
.up-form .au-err { margin-top: 16px; }
#up-submit { margin-top: 18px; }
#up-submit:disabled { opacity: 0.85; cursor: default; }

/* lista zgłoszeń: miniatura okładki, nazwa, pigułka stanu, czerwona ramka z powodem odrzucenia */
.up-list-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.up-count { min-width: 30px; height: 28px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; background: var(--lilac); color: var(--violet); font-size: 14px; font-weight: 900; }
.up-count[hidden] { display: none; }
.up-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; }
.up-item + .up-item { border-top: 2px solid var(--line); }
.up-thumb { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--lilac) center / cover no-repeat; border: 2px solid var(--line); }
.up-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.up-item-name { max-width: 100%; font-size: 16px; font-weight: 900; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item-meta { font-size: 13px; font-weight: 800; color: #afafaf; }
.up-status { display: inline-flex; align-items: center; gap: 6px; height: 26px; margin-top: 4px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.up-status .fi { font-size: 11px; }
.up-st-wait { background: #fff1d6; color: #d97e00; }
.up-st-ok { background: #e6f9e6; color: #118a12; }
.up-st-bad { background: #ffe5e5; color: #c62828; }
.up-reason { align-self: stretch; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: #fff5f5; border: 2px solid #ffd6d6; }
.up-reason b { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: #c62828; }
.up-reason p { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.up-item-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 12px; background: none; color: #b3b3b3; display: grid; place-items: center; font-size: 15px; cursor: pointer; }
.up-item-x:hover { background: #f4f4f4; color: #c62828; }
.up-empty { padding: 26px 10px 10px; text-align: center; }
.up-empty .up-coin { margin: 0 auto 12px; }
.up-empty b { display: block; font-size: 17px; font-weight: 900; color: var(--ink); }
.up-empty p { margin-top: 4px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
/* po wysłaniu: zielona karta, smok się cieszy */
.up-done { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; padding: 10px 16px 10px 6px; border-radius: 20px; background: #e6f9e6; border: 2px solid #bfeabf; box-shadow: 0 4px 0 #bfeabf; animation: au-pop 0.5s cubic-bezier(0.3, 1.45, 0.5, 1); }
.up-done-dragon { position: relative; flex: none; width: 76px; height: 76px; }
.up-done b { font-size: 17px; font-weight: 900; color: #118a12; }
.up-done p { font-size: 14px; line-height: 1.45; color: #2f6b2f; }

@media (max-width: 900px) {
  .up-grid { grid-template-columns: 1fr; }
  .up-hero-art { width: 46%; }
  .up-hero-txt { max-width: 60%; }
}
@media (max-width: 600px) {
  .up-hero { padding: 26px 22px; min-height: 0; }
  .up-hero-art { display: none; }
  .up-hero-txt { max-width: none; }
  .up-card { padding: 20px 16px; }
  .up-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up-row { grid-template-columns: 1fr 110px; }
  .up-who { display: none; }
}
