/* N3O_SYSTEM · Słownik pojęć – mobile first */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jbmono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jbmono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/bebas-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/bebas-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #000;
  --bg-2: #040704;
  --card: #070b07;
  --card-2: #0b120b;
  --g: #00ff41;
  --g-2: #00e231;
  --g-3: #80ff9b;
  --g-a10: rgba(0, 255, 65, .10);
  --g-a20: rgba(0, 255, 65, .20);
  --g-a40: rgba(0, 255, 65, .40);
  --t: #f1f5f1;
  --t-2: rgba(241, 245, 241, .72);
  --t-3: rgba(241, 245, 241, .55);
  --line: rgba(255, 255, 255, .08);
  --line-g: rgba(0, 255, 65, .18);
  --red: #ff4d6d;
  --red-a: rgba(255, 77, 109, .14);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --disp: "Bebas Neue", "Inter", sans-serif;
  --gut: 16px;
  --r: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 168px; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--t);
  font: 400 16px/1.55 var(--sans);
  font-feature-settings: "ss01", "cv01", "cv02";
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
::selection { background: var(--g-a20); color: var(--g); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--g); }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--g); color: #000; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.noscript { padding: 24px var(--gut); font-family: var(--mono); color: var(--g); }

.label {
  margin: 0; font: 600 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--g);
}
.g { color: var(--g); }

/* ---------- Deszcz znaków ---------- */
#rain {
  position: fixed; inset: 0 0 auto 0; width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.2) 45%, #000 92%), linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.12) 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.2) 45%, #000 92%), linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.12) 80%, transparent 100%);
          mask-composite: intersect;
  transition: opacity .6s var(--ease);
}
body.is-deep #rain { opacity: .18; }

/* ---------- Boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 90; background: #000;
  display: flex; align-items: flex-end; padding: 0 var(--gut) calc(56px + var(--safe-b));
  transition: clip-path .7s var(--ease), opacity .3s linear .5s;
  clip-path: inset(0 0 0 0);
}
.boot.is-out { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
.boot__inner { width: 100%; max-width: 560px; margin: 0 auto; }
.boot__log {
  margin: 0 0 18px; min-height: 9.5em; white-space: pre-wrap; word-break: break-word;
  font: 500 12.5px/1.75 var(--mono); color: var(--g-3);
}
.boot__log b { color: var(--g); font-weight: 700; }
.boot__log i { font-style: normal; color: var(--t-3); }
.boot__log .ok { color: var(--g); }
.boot__bar { height: 3px; background: var(--g-a10); border-radius: 3px; overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 0; background: var(--g); box-shadow: 0 0 16px var(--g); transition: width .18s linear; }

/* ---------- Pasek górny ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gut) 10px;
  background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.78));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
body.is-scrolled .top { border-bottom-color: var(--line); }
.top__logo { display: block; line-height: 0; }
.top__logo img { width: 148px; height: auto; filter: drop-shadow(0 0 10px rgba(0,255,65,.25)); }
.topquiz {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 14px;
  background: var(--g); color: #000; font: 800 14px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 0 22px rgba(0,255,65,.35);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}
.topquiz svg { width: 18px; height: 18px; fill: currentColor; }
.topquiz:active { transform: scale(.95); }
body.hero-quiz .topquiz { opacity: 0; transform: translateY(-6px) scale(.96); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.top__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--g); box-shadow: 0 0 10px var(--g); }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--t);
  font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.iconbtn:active { transform: scale(.94); }
.iconbtn:hover { border-color: var(--line-g); }
.iconbtn[aria-pressed="true"] { color: var(--g); border-color: var(--g-a40); background: var(--g-a10); }
.iconbtn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }
.hero { padding: 26px var(--gut) 22px; max-width: 760px; margin: 0 auto; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 600 11.5px/1 var(--mono); letter-spacing: .16em; color: var(--t-2); }
.sq { width: 8px; height: 8px; background: var(--g); box-shadow: 0 0 10px var(--g); flex: none; }
.kicker__p { color: var(--g); font-weight: 800; }
.hero__title {
  margin: 0; font-weight: 900; letter-spacing: -.035em; line-height: .94;
  font-size: clamp(50px, 16.5vw, 112px);
}
.hero__title .line { display: block; opacity: 0; transform: translateY(24px); }
body.is-ready .hero__title .line { animation: rise .8s var(--ease) forwards; }
body.is-ready .hero__title .line:nth-child(2) { animation-delay: .08s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__title .g { text-shadow: 0 0 28px rgba(0,255,65,.35); }

.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
body.is-ready .glitch::before { color: #ff2e63; animation: glitch-a 3.8s 1.2s infinite steps(1); }
body.is-ready .glitch::after { color: #08f7fe; animation: glitch-b 3.8s 1.2s infinite steps(1); }
@keyframes glitch-a {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  93% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); }
  95% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); }
  97% { opacity: .8; transform: translate(-2px, 0); clip-path: inset(35% 0 40% 0); }
}
@keyframes glitch-b {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  93% { opacity: .7; transform: translate(3px, -1px); clip-path: inset(50% 0 20% 0); }
  95% { opacity: .7; transform: translate(-3px, 1px); clip-path: inset(5% 0 70% 0); }
  97% { opacity: .7; transform: translate(2px, 0); clip-path: inset(70% 0 5% 0); }
}

.hero__sub { margin: 20px 0 0; max-width: 32ch; color: var(--t-2); font-size: 17px; line-height: 1.5; }
.hero__sub strong { color: var(--t); font-weight: 650; }
.hero__sub .num { color: var(--g); font: 800 1.12em/1 var(--mono); font-variant-numeric: tabular-nums; }

.quizcta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 24px 0 0; padding: 14px 18px 14px 14px;
  border-radius: 18px; background: var(--g); color: #000; text-align: left;
  box-shadow: 0 12px 40px rgba(0,255,65,.28), 0 0 0 1px rgba(0,255,65,.6);
  transition: transform .15s var(--ease);
}
.quizcta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
}
body.is-ready .quizcta::after { animation: sweep 4.5s 1.4s infinite var(--ease); }
@keyframes sweep { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.quizcta:active { transform: scale(.98); }
.quizcta__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #000; color: var(--g); }
.quizcta__ico svg { width: 24px; height: 24px; fill: currentColor; filter: drop-shadow(0 0 6px rgba(0,255,65,.6)); }
.quizcta__txt { flex: 1; min-width: 0; }
.quizcta__txt b { display: block; font: 900 21px/1.1 var(--sans); letter-spacing: -.02em; }
.quizcta__txt small { display: block; margin-top: 4px; font: 600 12px/1.3 var(--mono); opacity: .72; }
.quizcta__go { flex: none; font: 800 26px/1 var(--sans); transition: transform .2s var(--ease); }
.quizcta:hover .quizcta__go { transform: translateX(4px); }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Narzędzia ---------- */
.tools {
  position: sticky; top: calc(61px + env(safe-area-inset-top, 0px)); z-index: 30; max-width: 760px; margin: 0 auto;
  padding: 10px var(--gut) 6px;
  background: #000;
}
.tools::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; background: linear-gradient(180deg, #000, rgba(0,0,0,0)); pointer-events: none; }
.search {
  position: relative; display: flex; align-items: center; height: 52px; border-radius: 14px;
  border: 1px solid var(--line-g); background: rgba(4,8,4,.92);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), 0 0 0 0 var(--g-a20);
  transition: box-shadow .25s, border-color .25s;
}
.search:focus-within { border-color: var(--g); box-shadow: 0 0 0 4px var(--g-a10), 0 0 24px rgba(0,255,65,.15); }
.search__prompt { padding: 0 6px 0 16px; font: 700 18px var(--mono); color: var(--g); }
.search input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--t);
  font: 500 16px var(--mono); caret-color: var(--g); padding: 0 8px 0 2px;
}
.search input::placeholder { color: var(--t-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__caret { position: absolute; left: 39px; top: 15px; width: 10px; height: 20px; background: var(--g); animation: blink 1s steps(1) infinite; pointer-events: none; }
.search:focus-within .search__caret, .search.has-q .search__caret { display: none; }
.search__clear { width: 44px; height: 44px; font-size: 24px; color: var(--t-2); }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 10px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(10,15,10,.9); color: var(--t-2); font: 600 13px var(--sans); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.chip:active { transform: scale(.95); }
.chip.is-on { background: var(--t); color: #000; border-color: var(--t); }
.chip--atak.is-on { background: var(--red); border-color: var(--red); color: #000; }
.chip b { font-weight: 700; opacity: .6; margin-left: 4px; font-family: var(--mono); font-size: 11px; }

.state { min-height: 22px; margin-top: 8px; display: flex; align-items: center; gap: 8px; font: 500 12px/1.3 var(--mono); color: var(--t-3); }

/* ---------- Lista ---------- */
.list { max-width: 760px; margin: 0 auto; padding: 4px var(--gut) 24px; padding-right: calc(var(--gut) + 18px); }
.group { margin-top: 18px; }
.group__h {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font: 800 13px/1 var(--mono); color: var(--g); letter-spacing: .1em;
}
.group__h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-g), transparent); }

.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; text-align: left;
  margin: 0 0 6px; padding: 12px 12px 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  overflow: hidden; isolation: isolate;
  transition: transform .2s var(--ease), border-color .25s, opacity .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(0,255,65,.16), transparent 60%);
}
.card:hover::before, .card.is-touch::before { opacity: 1; }
.card:hover, .card.is-touch { border-color: var(--line-g); }
.card:active { transform: scale(.985); }
.card.is-in { animation: card-in .55s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
.card__ico { flex: none; width: 16px; text-align: center; font: 700 13px/1 var(--mono); color: var(--t-3); }
.card--atak .card__ico { color: var(--red); }
.card--obrona .card__ico { color: var(--g); }
.card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card__name { font: 700 17px/1.25 var(--sans); letter-spacing: -.015em; color: var(--t); }
.card--skrot .card__name { font-family: var(--mono); letter-spacing: 0; }
.card__hint { font-size: 13px; line-height: 1.35; color: var(--t-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__fav { flex: none; color: var(--g); font-size: 13px; }
.card__go { flex: none; margin-left: 2px; font: 400 24px/1 var(--sans); color: var(--t-3); transition: transform .2s var(--ease), color .2s; }
.card:hover .card__go, .card.is-touch .card__go { color: var(--g); transform: translateX(3px); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--t-2); }
.tag--atak { color: var(--red); border-color: rgba(255,77,109,.35); background: var(--red-a); }
.tag--obrona { color: var(--g); border-color: var(--line-g); background: var(--g-a10); }
.card mark, .sheet mark { background: none; color: var(--g); text-shadow: 0 0 12px rgba(0,255,65,.5); }

.empty { padding: 28px 4px; font-family: var(--mono); color: var(--t-2); }
.empty p { margin: 0 0 14px; }
.empty .g { word-break: break-all; }

/* ---------- A–Z ---------- */
.az {
  position: fixed; right: 2px; top: 50%; z-index: 35; transform: translateY(-40%);
  display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 12px;
  touch-action: none; user-select: none; -webkit-user-select: none;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
body.show-az .az { opacity: 1; pointer-events: auto; }
.az button { display: block; width: 22px; height: 17px; font: 700 10px/17px var(--mono); color: var(--t-3); text-align: center; }
.az button.is-on { color: var(--g); }
.az.is-active { background: rgba(0,255,65,.06); }
.az__bubble {
  position: fixed; right: 44px; top: 50%; z-index: 36; width: 76px; height: 76px; margin-top: -38px; border-radius: 20px 20px 4px 20px;
  display: grid; place-items: center; background: var(--g); color: #000; font: 800 40px/1 var(--mono);
  box-shadow: 0 0 40px rgba(0,255,65,.5); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s var(--ease); pointer-events: none;
}
.az__bubble.is-on { opacity: 1; transform: none; }

/* ---------- CTA ---------- */
.cta { max-width: 760px; margin: 0 auto; padding: 18px var(--gut) 8px; display: grid; gap: 12px; }
.cta__card { padding: 22px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.cta__card--quiz { border-color: var(--line-g); background: radial-gradient(120% 120% at 100% 0%, rgba(0,255,65,.14), transparent 55%), var(--card); }
.cta__card h2 { margin: 10px 0 6px; font: 850 26px/1.08 var(--sans); letter-spacing: -.025em; }
.cta__card p:not(.label) { margin: 0 0 16px; color: var(--t-2); font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--t);
  background: transparent; color: var(--t); font: 700 15px var(--sans); text-decoration: none;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.96); }
.btn--g { background: var(--g); border-color: var(--g); color: #000; box-shadow: 0 0 24px rgba(0,255,65,.35); }
.btn--ghost { border-color: var(--line); color: var(--t-2); }

.outro {
  position: relative; max-width: 760px; margin: 28px auto 0; padding: 40px var(--gut) 32px;
}
.outro::before { content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 0; height: 1px; background: linear-gradient(90deg, var(--g), transparent); opacity: .6; }
.humans { margin: 0; font: 400 clamp(60px, 19vw, 120px)/.84 var(--disp); letter-spacing: .005em; }
.humans span { display: block; }
.humans .g { text-shadow: 0 0 30px rgba(0,255,65,.45); }
.outro__pitch { margin: 18px 0 0; max-width: 30ch; color: var(--t-2); font-size: 17px; line-height: 1.5; }
.outro__pitch strong { color: var(--t); font-weight: 700; }

.pillars { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 1px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.pillars li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); }
.pillars svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--g); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(0,255,65,.45)); }
.pillars b { display: block; font: 800 16px/1.2 var(--sans); letter-spacing: -.01em; }
.pillars small { display: block; margin-top: 3px; font: 500 12px/1.35 var(--mono); color: var(--t-3); }

.links { display: grid; gap: 8px; margin: 22px 0 0; }
.link {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 16px 10px 12px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  color: var(--t); text-decoration: none; text-align: left; font: 700 15px/1.25 var(--mono);
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.link:active { transform: scale(.98); }
.link:hover { border-color: var(--line-g); }
.link i { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--g); background: var(--g-a10); }
.link i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.link small { display: block; margin-bottom: 2px; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--t-3); }
.link em { flex: none; font: 800 20px/1 var(--sans); font-style: normal; color: var(--t-3); transition: transform .2s var(--ease), color .2s; }
.link:hover em { transform: translateX(3px); color: var(--g); }
.link--g { border-color: var(--g-a40); background: radial-gradient(120% 140% at 100% 0%, rgba(0,255,65,.16), transparent 60%), var(--card); }
.link--g i { background: var(--g); color: #000; }
.link--g em { color: var(--g); }

.foot { max-width: 760px; margin: 0 auto; padding: 22px var(--gut) calc(40px + var(--safe-b)); font: 500 12px/1.8 var(--mono); color: var(--t-3); border-top: 1px solid var(--line); }
.foot p { margin: 0; }
.foot__logo { display: block; width: 120px; height: auto; margin-bottom: 12px; opacity: .85; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px !important; }
.foot__nav > * { white-space: nowrap; }
.foot a, .linkbtn { color: var(--t-2); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.foot__exit { margin-top: 18px !important; color: var(--g-3); opacity: .7; }
.foot__exit .caret { display: inline-block; width: .55em; height: 1em; margin-left: 4px; vertical-align: -.15em; background: var(--g); animation: blink 1.1s steps(1) infinite; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); z-index: 38;
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px 0 16px;
  border-radius: 999px; background: var(--g); color: #000; font: 800 14px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 26px rgba(0,255,65,.45);
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .3s;
}
.fab:active { transform: translateX(-50%) scale(.94); }
.fab svg { stroke-width: 2.2; }
.fab.is-spin svg { animation: spin .6s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
body.is-locked .fab, body.hide-fab .fab { transform: translateX(-50%) translateY(140%); opacity: 0; }

/* ---------- Karta hasła (sheet) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 760px; margin: 0 auto;
  height: min(92dvh, 860px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #081008 0%, #030503 30%); border: 1px solid var(--line-g); border-bottom: 0;
  border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(0,255,65,.12);
  transform: translateY(105%); transition: transform .45s var(--ease);
  will-change: transform; touch-action: pan-y;
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet.is-drag .sheet__panel { transition: none; }
.sheet__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--g), transparent); opacity: .7; }
.sheet__grab { padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet__grab span { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); }
.sheet__bar { display: flex; align-items: center; gap: 10px; padding: 4px var(--gut) 8px; touch-action: none; }
.sheet__path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11.5px var(--mono); color: var(--t-3); }
.sheet__path b { color: var(--g); font-weight: 600; }
.sheet__btns { display: flex; gap: 8px; }
.sheet__body { flex: 1; overflow-y: auto; padding: 8px var(--gut) 24px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__body.is-swipe-l { animation: swipe-l .35s var(--ease); }
.sheet__body.is-swipe-r { animation: swipe-r .35s var(--ease); }
@keyframes swipe-l { from { opacity: 0; transform: translateX(40px); } }
@keyframes swipe-r { from { opacity: 0; transform: translateX(-40px); } }
.sheet__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sheet__name { margin: 0; font: 900 clamp(34px, 10vw, 56px)/1 var(--sans); letter-spacing: -.035em; word-break: break-word; hyphens: auto; }
.sheet__name.is-mono { font-family: var(--mono); font-weight: 800; letter-spacing: -.03em; }
.sheet__exp { margin: 12px 0 0; font: 600 15px/1.45 var(--mono); color: var(--g); }
.sheet__exp:empty { display: none; }
.sheet__def { margin: 22px 0 0; padding: 18px 18px 18px 16px; border-left: 3px solid var(--g); background: linear-gradient(90deg, rgba(0,255,65,.07), transparent 80%); border-radius: 0 12px 12px 0; font-size: 19px; line-height: 1.5; color: var(--t); }
.sheet__def .scr { color: var(--g); font-family: var(--mono); }
.sheet__def a.tl, .sheet__def button.tl { color: var(--g); text-decoration: underline; text-decoration-color: var(--g-a40); text-underline-offset: 4px; font: inherit; }
.sheet__block { margin-top: 26px; }
.sheet__block .label { margin-bottom: 12px; color: var(--t-3); }
.sheet__rel { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-chip { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--t); font: 600 14px var(--sans); }
.rel-chip--skrot { font-family: var(--mono); }
.sheet__nav { display: flex; align-items: center; gap: 8px; padding: 10px var(--gut) calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: rgba(0,0,0,.6); }
.sheet__nav .btn { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; font-size: 13px; }
.sheet__nav .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__pos { font: 600 11px var(--mono); color: var(--t-3); white-space: nowrap; }

/* ---------- Quiz ---------- */
.quiz { position: fixed; inset: 0; z-index: 70; background: #000; display: flex; justify-content: center; }
.quiz__panel { width: 100%; max-width: 560px; display: flex; flex-direction: column; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gut) calc(16px + var(--safe-b)); animation: fade-up .4s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }
.quiz__top { display: flex; align-items: center; gap: 12px; }
.quiz__top .label { flex: 1; }
.quiz__score { font: 700 13px var(--mono); color: var(--t-2); }
.quiz__timer { height: 4px; margin: 14px 0 0; border-radius: 4px; background: var(--g-a10); overflow: hidden; }
.quiz__timer span { display: block; height: 100%; width: 100%; background: var(--g); transform-origin: 0 50%; box-shadow: 0 0 12px var(--g); }
.quiz__timer span.is-low { background: var(--red); box-shadow: 0 0 12px var(--red); }
.quiz__body { flex: 1; overflow-y: auto; padding-top: 22px; }
.q__prog { display: flex; gap: 3px; margin: 0 0 14px; }
.q__prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); transition: background .3s; }
.q__prog i.is-cur { background: var(--t-2); }
.q__prog i.is-ok { background: var(--g); }
.q__prog i.is-bad { background: var(--red); }
.q__n { font: 600 11px var(--mono); letter-spacing: .14em; color: var(--t-3); text-transform: uppercase; }
.q__term { margin: 2px 0 22px; font: 900 clamp(34px, 11vw, 52px)/1.05 var(--sans); letter-spacing: -.03em; word-break: break-word; }
.q__term.is-mono { font-family: var(--mono); font-weight: 800; letter-spacing: -.01em; }
.q__opts.is-long .q__opt { align-items: flex-start; padding: 12px 14px; font: 500 15px/1.4 var(--sans); }
.q__opts.is-long .q__opt kbd { margin-top: -2px; }
.q__miss { margin: 0 0 24px; text-align: left; }
.q__miss .label { margin-bottom: 10px; color: var(--t-3); }
.q__miss > div { display: flex; flex-wrap: wrap; gap: 8px; }
.q__ask { margin: 10px 0 6px; font: 800 15px var(--mono); color: var(--g); }
.q__def { margin: 0 0 22px; font: 700 clamp(21px, 6vw, 28px)/1.3 var(--sans); letter-spacing: -.015em; }
.q__opts { display: grid; gap: 10px; }
.q__opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); text-align: left; font: 700 17px/1.25 var(--sans);
  transition: background .2s, border-color .2s, transform .15s var(--ease);
}
.q__opt:active { transform: scale(.98); }
.q__opt kbd { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); font: 700 12px var(--mono); color: var(--t-3); }
.q__opt.is-ok { background: var(--g); border-color: var(--g); color: #000; box-shadow: 0 0 26px rgba(0,255,65,.4); }
.q__opt.is-ok kbd { border-color: rgba(0,0,0,.3); color: #000; }
.q__opt.is-bad { background: var(--red-a); border-color: var(--red); color: var(--red); animation: shake .4s; }
.q__opt[disabled] { cursor: default; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.q__fb { min-height: 24px; margin: 16px 0 0; font: 600 13px/1.5 var(--mono); color: var(--t-2); }
.q__res { text-align: center; padding-top: 6vh; }
.q__big { font: 400 clamp(96px, 34vw, 160px)/.8 var(--disp); color: var(--g); text-shadow: 0 0 40px rgba(0,255,65,.45); }
.q__big small { font-size: .4em; color: var(--t-3); }
.q__rank { margin: 18px 0 6px; font: 800 13px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.q__rank.is-bad { color: var(--red); }
.q__title { margin: 0 0 8px; font: 850 28px/1.1 var(--sans); letter-spacing: -.02em; }
.q__sub { margin: 0 auto 26px; max-width: 32ch; color: var(--t-2); }
.q__btns { display: grid; gap: 10px; }
.quiz.is-flash-ok { animation: flash-ok .45s; }
.quiz.is-flash-bad { animation: flash-bad .45s; }
@keyframes flash-ok { 30% { background: rgba(0,40,10,.96); } }
@keyframes flash-bad { 30% { background: rgba(50,0,10,.96); } }

/* ---------- Zgoda ---------- */
.consent {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 80; max-width: 520px; margin: 0 auto;
  padding: 16px; border-radius: 18px; border: 1px solid var(--line-g); background: rgba(4,8,4,.97);
  box-shadow: 0 20px 60px rgba(0,0,0,.8), 0 0 30px rgba(0,255,65,.12);
  animation: fade-up .45s var(--ease);
}
.consent p:not(.label) { margin: 8px 0 14px; font-size: 14px; line-height: 1.5; color: var(--t-2); }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .btn { min-height: 46px; font-size: 14px; padding: 0 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 95; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--g); background: #020602; color: var(--t);
  font: 600 13px/1.45 var(--mono); box-shadow: 0 0 30px rgba(0,255,65,.25);
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast.is-red { border-color: var(--red); box-shadow: 0 0 30px rgba(255,77,109,.3); }

/* ---------- Większe ekrany ---------- */
@media (min-width: 700px) {
  :root { --gut: 28px; }
  .list { display: block; }
  .card__name { font-size: 18px; }
  .cta { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillars li { flex-direction: column; align-items: flex-start; }
  .links { grid-template-columns: 1fr 1fr; }
  .az { right: 10px; }
}
@media (hover: none) { .card:hover::before { opacity: 0; } .card:hover { border-color: var(--line); } .card.is-touch::before { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__title .line { opacity: 1; transform: none; }
  .quizcta::after { display: none; }
  #rain { display: none; }
}

/* ---------- Strona tekstowa (prywatność) ---------- */
.doc .top { position: sticky; }
.docmain { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 28px var(--gut) 40px; }
.docmain h1 { margin: 12px 0 18px; font: 900 clamp(34px, 9vw, 52px)/1 var(--sans); letter-spacing: -.03em; }
.docmain h2 { margin: 30px 0 8px; font: 800 19px/1.3 var(--sans); color: var(--g); }
.docmain p, .docmain li { color: var(--t-2); font-size: 16px; }
.docmain ul { padding-left: 20px; }
.docmain li { margin: 6px 0; }
.doc .foot { padding-bottom: 40px; }
