/* PulseWins — motyw „dwa sygnały”.
   Ludzie = ciepły bursztyn (organiczny), AI = chłodny cyjan (precyzyjny),
   na głębokim granacie z delikatną siatką punktów. */
:root {
  --void: #060A1C;
  --panel: rgba(16, 23, 56, 0.72);
  --panel-solid: #0F1636;
  --panel-2: rgba(28, 38, 86, 0.55);
  --line: rgba(140, 160, 255, 0.14);
  --line-strong: rgba(140, 160, 255, 0.30);
  --ink: #EAEEFF;
  --muted: #9CA6CF;
  --human: #FF8F57;
  --human-2: #FFB86B;
  --ai: #46D9FF;
  --violet: #8C7BFF;
  --violet-soft: #C3BBFF;
  --ok: #4ADE80;
  --close: #8C93B8;
  --on-accent: #070B1F;
  --soft: rgba(140, 160, 255, 0.10);
  --card: var(--panel);
  --bg: var(--void);
  --r-lg: 20px;
  --r: 12px;
  --r-sm: 8px;
  --font: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --serif: var(--font);
  --edge: linear-gradient(120deg, var(--human) 0%, var(--violet) 50%, var(--ai) 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); line-height: 1.55; font-size: 17px;
  background-color: var(--void);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(140, 123, 255, 0.20), transparent 62%),
    radial-gradient(900px 520px at -12% 108%, rgba(255, 143, 87, 0.11), transparent 60%),
    radial-gradient(rgba(140, 160, 255, 0.10) 1px, transparent 1.2px);
  background-size: auto, auto, 26px 26px;
  background-attachment: fixed;
  overflow-x: clip;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-color: rgba(140, 160, 255, 0.5); }
a:hover { color: var(--ai); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(70, 217, 255, 0.35); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { line-height: 1.15; margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-weight: 700; letter-spacing: -0.01em; }

/* ---- header ---- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ai); color: var(--on-accent); padding: 12px 16px; font-weight: 700; text-decoration: none; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: var(--on-accent); }
.site-header { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; position: relative; z-index: 5; }
.logo { text-decoration: none; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.logo::before { content: ""; flex: 0 0 auto; margin-right: 10px; width: 34px; height: 22px; background: linear-gradient(90deg, var(--human), var(--violet) 55%, var(--ai)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath d='M1 12h8l3-6 4 13 4-17 3 10h10' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath d='M1 12h8l3-6 4 13 4-17 3 10h10' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(255, 143, 87, 0.55)); }
.logo span { background: linear-gradient(90deg, var(--human), var(--human-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo:hover { color: var(--ink); }
.header-tools { display: flex; gap: 10px; align-items: center; order: 3; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: center; order: 2; margin-left: auto; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-strong); }
.lang button { background: transparent; border: 0; padding: 0 12px; min-height: 38px; min-width: 44px; cursor: pointer; font-weight: 600; font-size: 14px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--on-accent); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; font-weight: 600; }
@media (max-width: 960px) {
  .header-tools { order: 2; margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav { order: 3; width: 100%; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; border-radius: var(--r-lg); background: var(--panel-solid); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; min-height: 52px; border-radius: var(--r); padding: 0 16px; }
}

/* ---- stany ---- */
.error-box { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 8px 0; }
.error-box p { margin: 0; font-size: 18px; }
.skeleton { background: linear-gradient(90deg, rgba(140, 160, 255, 0.08) 0%, rgba(140, 160, 255, 0.20) 50%, rgba(140, 160, 255, 0.08) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r-sm); }
.skeleton.line { height: 18px; margin: 10px 0; }
.skeleton.title { height: 40px; width: 80%; margin: 12px 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.shake { animation: shake .45s; }
@keyframes pop { 0% { transform: scale(.97); opacity: .6; } 60% { transform: scale(1.01); } 100% { transform: scale(1); opacity: 1; } }
.pop { animation: pop .45s ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- wspólne ---- */
.eyebrow { font-size: 14px; font-weight: 500; color: var(--violet-soft); letter-spacing: 0.01em; }
.card, .stat, .tile, .list-box, .feature, .chart.card {
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card { padding: 32px; }
@media (max-width: 560px) { .card { padding: 22px; } }
/* panele najważniejsze: krawędź w kolorach człowiek → AI */
.puzzle.card, .job-result, #intro, #end {
  border: 1px solid transparent;
  background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, var(--edge) border-box;
  box-shadow: 0 30px 80px -40px rgba(140, 123, 255, 0.55);
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; font-size: 17px; font-weight: 700; border: 0; border-radius: var(--r); background: var(--ink); color: var(--on-accent); cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { color: var(--on-accent); filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.human { background: linear-gradient(135deg, var(--human), var(--human-2)); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(255, 143, 87, 0.7); }
.btn.human:hover { box-shadow: 0 14px 36px -10px rgba(255, 143, 87, 0.9); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover { color: var(--ink); background: var(--soft); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pill { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; background: rgba(140, 123, 255, 0.16); color: var(--violet-soft); padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(140, 123, 255, 0.35); }
.muted { color: var(--muted); }
.page-title { font-size: clamp(30px, 5vw, 48px); margin: 8px 0 0; }
.section-title { margin: 0; font-size: clamp(22px, 3vw, 28px); }
input[type="text"] { border-radius: var(--r); }

/* ---- globalny wynik ---- */
.scorebar { padding-top: 4px; }
.scorebar .row { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.scorebar .num { font-family: var(--display); font-size: clamp(32px, 6vw, 52px); font-weight: 600; line-height: 1; min-width: 2.6em; }
.scorebar .num.h { color: var(--human); text-shadow: 0 0 30px rgba(255, 143, 87, 0.45); }
.scorebar .num.a { color: var(--ai); text-align: right; text-shadow: 0 0 30px rgba(70, 217, 255, 0.45); }
.scorebar .bar { flex: 1 1 auto; display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; background: var(--soft); }
.scorebar .bar .h { background: linear-gradient(90deg, var(--human-2), var(--human)); transition: width .6s ease; border-radius: 999px; box-shadow: 0 0 16px rgba(255, 143, 87, 0.6); }
.scorebar .bar .a { background: linear-gradient(90deg, var(--ai), #7BE8FF); transition: width .6s ease; border-radius: 999px; box-shadow: 0 0 16px rgba(70, 217, 255, 0.6); }
.scorebar .labels { display: flex; justify-content: space-between; margin-top: 6px; font-weight: 500; color: var(--muted); }
.scorebar .head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }

/* ---- układ ---- */
.main { padding-top: 24px; padding-bottom: 72px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .grow { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stat { padding: 22px; }
.stat .big { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.15; margin-top: 6px; }

/* ---- wyzwanie dnia ---- */
.puzzle { display: flex; flex-direction: column; gap: 22px; }
.puzzle .top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
#question { font-family: var(--display); font-weight: 500; line-height: 1.25; }
.answer-form { display: flex; flex-direction: column; gap: 8px; }
.answer-form label { font-weight: 600; }
.answer-form .controls { display: flex; flex-wrap: wrap; gap: 12px; }
.answer-form input { flex: 1 1 220px; min-width: 0; height: 56px; padding: 0 18px; font-size: 18px; border: 1px solid var(--line-strong); background: rgba(6, 10, 28, 0.65); transition: border-color .15s ease, box-shadow .15s ease; }
.answer-form input:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 4px rgba(70, 217, 255, 0.18); }
.answer-form input::placeholder { color: #6E78A6; }
.hint { background: rgba(140, 123, 255, 0.12); border-radius: var(--r); padding: 14px 16px; box-shadow: inset 3px 0 0 var(--violet); }
.feedback { font-weight: 700; min-height: 1.5em; }
.feedback.bad { color: var(--human); }
.result { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.result:focus { outline: none; }
.result .verdict { font-family: var(--display); font-size: 26px; font-weight: 600; margin: 0; }
.result .ai-box { background: rgba(70, 217, 255, 0.08); padding: 16px 18px; border-radius: var(--r); box-shadow: inset 3px 0 0 var(--ai); }
.result .ai-box .eyebrow { color: var(--ai); }
.week { display: flex; gap: 6px; }
.week span { flex: 1; height: 30px; background: var(--soft); border-radius: 6px; }
.week span.w { background: var(--human); box-shadow: 0 0 12px rgba(255, 143, 87, 0.5); }
.week span.l { background: var(--ai); box-shadow: 0 0 12px rgba(70, 217, 255, 0.5); }
.countdown { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.tries { font-weight: 600; }
.guesses { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.guesses li { padding: 4px 12px; background: var(--soft); border-radius: 999px; text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }

/* ---- prawda czy AI ---- */
.progress { height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--edge); transition: width .3s ease; border-radius: 999px; }
.pair { display: flex; flex-wrap: wrap; gap: 20px; }
.text-card { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.text-card .letter { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; color: var(--violet-soft); }
.text-card blockquote { margin: 0; font-size: clamp(19px, 2.3vw, 22px); line-height: 1.6; white-space: pre-line; }
.text-card blockquote .word { display: block; font-family: var(--display); font-size: 1.15em; font-weight: 600; margin-bottom: 6px; }
.text-card .btn { margin-top: auto; }
.text-card.pickable { cursor: pointer; }
.text-card.pickable:hover { transform: translateY(-3px); border-color: rgba(140, 160, 255, 0.6); box-shadow: 0 20px 50px -30px rgba(140, 123, 255, 0.8); }
.text-card.is-human { border-color: var(--human); box-shadow: 0 0 0 1px var(--human), 0 0 40px -6px rgba(255, 143, 87, 0.55); }
.text-card.is-ai { border-color: var(--ai); box-shadow: 0 0 0 1px var(--ai), 0 0 40px -6px rgba(70, 217, 255, 0.55); }
.tag { font-weight: 700; padding: 6px 14px; color: var(--on-accent); align-self: flex-start; border-radius: 999px; font-size: 15px; }
.tag.h { background: var(--human); }
.tag.a { background: var(--ai); }
.reveal { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-strong); padding-top: 22px; }
.reveal .verdict { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 0; }
.center { text-align: center; }
.final-score { font-family: var(--display); font-size: clamp(60px, 13vw, 112px); font-weight: 600; line-height: 1; background: var(--edge); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kbd-hint { font-size: 14px; }
@media (pointer: coarse) { .kbd-hint { display: none; } }
kbd { font-family: var(--mono); font-size: 13px; padding: 1px 7px; background: var(--panel-2); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-strong), 0 2px 0 rgba(0, 0, 0, 0.4); }
.round-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---- tablica wyników ---- */
.tally { display: flex; align-items: center; gap: 22px; padding: 22px 32px; border-radius: var(--r-lg); background: var(--panel-solid); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 80px -40px rgba(140, 123, 255, 0.6); }
.tally .n { font-family: var(--display); font-size: 60px; font-weight: 600; line-height: 1; }
.tally .n.h { color: var(--human); text-shadow: 0 0 30px rgba(255, 143, 87, 0.5); }
.tally .n.a { color: var(--ai); text-shadow: 0 0 30px rgba(70, 217, 255, 0.5); }
.tally .col { display: flex; flex-direction: column; align-items: center; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; font-weight: 500; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--on-accent); font-weight: 700; }
.rows { border-top: 1px solid var(--line-strong); }
.rowi { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rowi .what { flex: 1 1 300px; min-width: 0; }
.rowi .what strong { display: block; font-size: 20px; }
.rowi .src { flex: 1 1 200px; min-width: 0; font-size: 14px; color: var(--muted); }
.rowi .badge { flex: 0 0 auto; min-width: 150px; text-align: center; padding: 8px 14px; font-weight: 700; color: var(--on-accent); border-radius: 999px; }
.badge.ai { background: var(--ai); }
.badge.human { background: var(--human); }
.badge.close { background: var(--close); }

/* ---- ranking krajów ---- */
.rowi.country { flex-wrap: nowrap; gap: 16px; padding: 14px 0; }
.rowi.country .rank { font-family: var(--mono); font-weight: 600; min-width: 2.2em; color: var(--muted); }
.rowi.country .what { flex: 1 1 160px; }
.rowi.country .what strong { font-size: 18px; }
.rowi.country .cbar { flex: 2 1 120px; height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.rowi.country .cbar > div { height: 100%; background: linear-gradient(90deg, var(--human-2), var(--human)); border-radius: 999px; }
.rowi.country .pct { font-weight: 700; min-width: 4em; text-align: right; }
.rowi.country.me { background: var(--soft); padding-left: 12px; padding-right: 12px; border-radius: var(--r); }
@media (max-width: 560px) { .rowi.country .cbar { display: none; } }

/* ---- teksty ---- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 40px; font-size: 24px; }
.prose p, .prose li { font-size: 17px; }

/* ---- stopka / toast ---- */
.site-footer { border-top: 1px solid var(--line-strong); padding-top: 22px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-nav a { min-height: 40px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--ai); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--on-accent); padding: 12px 20px; font-weight: 600; border-radius: 999px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; }
[hidden] { display: none !important; }

/* ---- chipy ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; font-weight: 500; transition: background .15s ease, box-shadow .15s ease; }
.chip:hover { background: rgba(70, 217, 255, 0.12); box-shadow: inset 0 0 0 1px var(--ai); }
.chip .pct { font-family: var(--mono); font-size: 13px; margin-left: 8px; color: var(--muted); }

/* ---- czy AI mnie zastąpi ---- */
.job-result { display: flex; flex-direction: column; gap: 22px; }
.job-result:focus { outline: none; }
.job-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
#jlabel { font-family: var(--display); font-weight: 600; }
.job-score { display: flex; flex-direction: column; align-items: flex-end; }
.job-score span { font-family: var(--display); font-size: clamp(54px, 10vw, 92px); font-weight: 600; line-height: 1; }
.job-score small { font-size: 16px; font-weight: 700; }
.job-result[data-level="3"] .job-score, .job-result[data-level="4"] .job-score { color: var(--human); text-shadow: 0 0 40px rgba(255, 143, 87, 0.5); }
.job-result[data-level="2"] .job-score { color: var(--violet-soft); }
.job-result[data-level="0"] .job-score, .job-result[data-level="1"] .job-score { color: var(--ok); text-shadow: 0 0 40px rgba(74, 222, 128, 0.4); }
.meter { height: 12px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.meter > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ok), var(--ai) 45%, var(--violet) 70%, var(--human)); background-size: 100vw 100%; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.joke { margin: 0; font-size: clamp(21px, 3vw, 28px); font-weight: 500; line-height: 1.35; padding: 4px 0 4px 20px; box-shadow: inset 4px 0 0 var(--human); }
.job-cols { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.job-cols > div { flex: 1 1 300px; min-width: 0; }
.job-cols h3 { margin: 0 0 10px; font-size: 15px; color: var(--violet-soft); font-weight: 600; }
.pivots { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.job-cols.tasks { gap: 16px; }
.task-box { padding: 18px 20px; border-radius: var(--r); }
.task-box.ai { background: rgba(70, 217, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(70, 217, 255, 0.45); }
.task-box.human { background: rgba(255, 143, 87, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 143, 87, 0.45); }
.task-box ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.task-box.ai h3 { color: var(--ai); }
.task-box.human h3 { color: var(--human); }
.combo { position: relative; flex: 1 1 220px; min-width: 0; display: flex; }
.combo input { flex: 1 1 auto; width: 100%; }
.listbox { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px; list-style: none; background: var(--panel-solid); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 60px -20px rgba(0, 0, 0, 0.8); max-height: 320px; overflow-y: auto; }
.listbox li { padding: 0 14px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; border-radius: var(--r-sm); }
.listbox li small { color: var(--muted); font-family: var(--mono); }
.listbox li[aria-selected="true"], .listbox li:hover { background: rgba(70, 217, 255, 0.12); }
.field-hint { font-size: 14px; color: var(--muted); margin: 0; }
.knowledge { display: flex; flex-direction: column; gap: 16px; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.list-box { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.list-box h3 { margin: 0; font-size: 17px; }
.list-box ol, .list-box ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.list-box.up h3::before { content: "▲ "; color: var(--ok); }
.list-box.down h3::before { content: "▼ "; color: var(--human); }
.rank-list { list-style: none; padding: 0 !important; gap: 0 !important; }
.rank-list button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 0; min-height: 42px; cursor: pointer; font-size: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.rank-list button:hover { color: var(--ai); }
.rank-list .pct { font-family: var(--mono); font-weight: 600; }
.browse details { border-top: 1px solid var(--line-strong); }
.browse details:last-child { border-bottom: 1px solid var(--line-strong); }
.browse summary { cursor: pointer; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 18px; list-style: none; }
.browse summary::-webkit-details-marker { display: none; }
.browse summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--violet-soft); }
.browse details[open] summary::after { content: "–"; }
.browse summary small { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--muted); margin-left: auto; margin-right: 12px; }
.browse .chips { padding: 4px 0 20px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 700; font-size: 18px; }
.faq p { margin: 0 0 16px; max-width: 760px; color: var(--muted); }

/* ---- AI w liczbach ---- */
.live { padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; border-radius: var(--r-lg); background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, var(--edge) border-box; border: 1px solid transparent; }
.live h2 { margin: 0; font-family: var(--font); font-size: 19px; font-weight: 500; color: var(--muted); }
.live-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.live-grid > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.live-n { font-family: var(--mono); font-size: clamp(26px, 4vw, 38px); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-grid > div:nth-child(1) .live-n { color: var(--human); text-shadow: 0 0 24px rgba(255, 143, 87, 0.45); }
.live-grid > div:nth-child(2) .live-n { color: var(--ai); text-shadow: 0 0 24px rgba(70, 217, 255, 0.45); }
.live-grid > div:nth-child(3) .live-n { color: var(--violet-soft); }
.live-note { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .live { padding: 22px; } }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.chart { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.chart.card { padding: 28px; }
.chart figcaption h2 { margin: 0; font-size: 19px; }
.chart figcaption p { margin: 4px 0 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart.wide { grid-column: 1 / -1; }
.chart.wide svg { max-height: 340px; }
.chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1.5; }
.chart .bar { fill: var(--ai); filter: drop-shadow(0 0 10px rgba(70, 217, 255, 0.45)); }
.chart .bar.proj { fill: var(--violet); opacity: .55; filter: none; }
.chart .line { fill: none; stroke: var(--ai); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(70, 217, 255, 0.6)); }
.chart .dot { fill: var(--ai); stroke: var(--panel-solid); stroke-width: 3; }
.chart .val { font: 600 14px var(--font); fill: var(--ink); text-anchor: middle; }
.chart .lab { font: 13px var(--font); fill: var(--muted); text-anchor: middle; }
.chart .mark { cursor: default; outline: none; }
.chart .mark:hover .bar, .chart .mark:focus .bar { filter: brightness(1.2) drop-shadow(0 0 14px rgba(70, 217, 255, 0.7)); }
.chart-note { margin: 0; font-weight: 500; }
.chart details summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.mini { border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.mini th, .mini td { text-align: left; padding: 5px 18px 5px 0; border-bottom: 1px solid var(--line); }
.src { margin: 0; font-size: 13px; color: var(--muted); }
.chart-tip { position: absolute; z-index: 20; background: var(--ink); color: var(--on-accent); padding: 6px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; pointer-events: none; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.tile { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.tile-n { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--ai); text-shadow: 0 0 24px rgba(70, 217, 255, 0.35); }
.tile .muted { font-size: 13px; margin-top: auto; padding-top: 6px; }

/* ---- strona główna: hero ---- */
.hero { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 56px 0 120px; min-height: 460px; justify-content: center; }
.hero-art { position: absolute; top: -110px; bottom: -40px; left: calc(50% - 50vw); width: 100vw; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 88%, transparent 100%); }
.hero-art canvas { width: 100%; height: 100%; display: block; }
.hero h1 { font-size: clamp(36px, 6.4vw, 72px); margin: 0; line-height: 1.04; max-width: 15ch; background: linear-gradient(100deg, #FFD9C2 0%, var(--ink) 38%, var(--ink) 62%, #BDF3FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 46ch; }
.hero .legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.hero .legend span { display: inline-flex; align-items: center; gap: 8px; }
.hero .legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hero .legend .h i { background: var(--human); box-shadow: 0 0 10px var(--human); }
.hero .legend .a i { background: var(--ai); box-shadow: 0 0 10px var(--ai); }
@media (max-width: 700px) { .hero { min-height: 360px; padding: 36px 0 110px; } }

/* ---- strona główna: karty ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.feature { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.feature:hover, .feature:focus-within { transform: translateY(-4px); border-color: rgba(140, 160, 255, 0.6); box-shadow: 0 24px 60px -30px rgba(140, 123, 255, 0.9); }
.feature h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); }
.feature .stat-line { font-family: var(--mono); font-weight: 600; font-size: 14px; color: var(--ink); }
.feature .stat-line .h { color: var(--human); }
.feature .stat-line .a { color: var(--ai); }
.feature a.cover { text-decoration: none; font-weight: 700; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ai); }
.feature a.cover::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.feature .quick { display: flex; flex-direction: column; gap: 8px; margin-top: auto; position: relative; z-index: 1; }
.feature .quick input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); background: rgba(6, 10, 28, 0.65); font-size: 16px; }
.feature .quick input:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 4px rgba(70, 217, 255, 0.18); }
.feature .quick .btn { min-height: 48px; padding: 0 16px; font-size: 16px; }

@media (max-width: 460px) {
  .site-header { flex-wrap: wrap; }
  .logo { font-size: 18px; }
  .menu-btn { padding: 0 12px; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lang button { min-width: 40px; padding: 0 8px; }
}
.feature a.cover { justify-content: flex-start; }

.hero .tagline { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--human); }
.hero .tagline::before { content: ""; width: 28px; height: 2px; background: var(--human); box-shadow: 0 0 10px var(--human); }

/* ---- porządki po przeglądzie układu ---- */
/* 6 kafelków: 3 + 3 zamiast 4 + 2 */
.tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiles.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* telefon: kafelki po dwa w rzędzie, zwarte */
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 16px; font-size: 14px; line-height: 1.45; }
  .tile-n { font-size: 24px; }
  .tile .muted { font-size: 12px; }
  /* statystyki dnia obok siebie zamiast trzech dużych kart */
  .split > .side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .split > .side .stat { padding: 16px; }
  .split > .side .stat .big { font-size: 26px; }
  .split > .side .stat:last-child { grid-column: 1 / -1; }
  /* ranking: na telefonie pierwsza piątka */
  #kranking .rank-list li:nth-child(n+6) { display: none; }
}
/* tablica wyników: plakietki tej samej szerokości, żeby kolumna źródeł się nie przesuwała */
.rowi .badge { min-width: 184px; }

/* ---- statyczne strony zawodów ---- */
.lang a { display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; min-height: 38px; min-width: 44px; font-weight: 600; font-size: 14px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--on-accent); }
.lang a:hover:not([aria-current]) { color: var(--ink); }
a.chip { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.job-h1 { margin: 6px 0 0; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.15; }
.job-result h2 { margin: 0 0 10px; font-size: 15px; color: var(--violet-soft); font-weight: 600; font-family: var(--font); }
.task-box.ai h2 { color: var(--ai); }
.task-box.human h2 { color: var(--human); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ai); }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 28px; }
.job-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.job-list a:hover { color: var(--ai); }
.job-list .pct { font-family: var(--mono); font-weight: 600; color: var(--muted); }
.job-link { font-size: 15px; }
