/* Brand KG, wariant ciemny. Tokeny: SP/.claude/skills/kg-slides-generator/scripts/tokens.json */
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/InstrumentSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/InstrumentSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --bg: #141414; --surface: #262625; --line: #3A3A38;
  --text: #FAFAF7; --text2: #B6B6B4; --muted: #888886;
  --accent: #C88C46; --on-accent: #1A1207; --accent-deep: #6B4D1F;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.35; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- telefon ---------- */
.tel { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; min-height: 100vh; display: flex; flex-direction: column; }
.tel header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.tel h1 { font-size: 26px; font-weight: 600; margin: 0 0 20px; line-height: 1.2; }
.opcje { display: grid; gap: 10px; }
.opcja {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 14px 18px;
  background: var(--surface); border: 2px solid var(--surface); border-radius: var(--r);
  font-size: 19px; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.opcja:active { transform: scale(.99); }
.opcja .znak { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--muted); }
.opcja.wybrana { border-color: var(--accent); }
.opcja.wybrana .znak { background: var(--accent); border-color: var(--accent); }
.przycisk {
  width: 100%; min-height: 58px; margin-top: 16px; border: 0; border-radius: var(--r);
  background: var(--accent); color: var(--on-accent); font-size: 19px; font-weight: 600; cursor: pointer;
}
.przycisk:disabled { opacity: .4; cursor: default; }
.przycisk.drugi { background: var(--surface); color: var(--text); }
.info { margin-top: 18px; font-size: 15px; color: var(--text2); }
.blad { margin-top: 12px; color: var(--accent); font-size: 15px; min-height: 1em; }
.czekaj { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
.czekaj h1 { margin: 0; }

/* paski wyników (telefon i ekran) */
.paski { display: grid; gap: 12px; }
.pasek .wiersz { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pasek .tor { height: 12px; background: var(--surface); border-radius: 99px; overflow: hidden; }
.pasek .wypel { height: 100%; width: 0; background: var(--text2); border-radius: 99px; transition: width .6s ease; }
.pasek.lider .wypel { background: var(--accent); }
.pasek.lider .proc { color: var(--accent); }
.pasek .proc { font-weight: 600; font-variant-numeric: tabular-nums; }
.pasek.moja .etykieta::after { content: ' · Twój głos'; color: var(--muted); }

/* formularz kontaktu */
.kontakt { margin-top: 22px; padding: 18px; background: var(--surface); border-radius: var(--r); }
.kontakt h2 { margin: 0 0 6px; font-size: 20px; }
.kontakt input[type=text] {
  width: 100%; min-height: 54px; margin-top: 10px; padding: 12px 14px; font-size: 18px;
  background: var(--bg); border: 2px solid var(--line); border-radius: 10px;
}
.kontakt input[type=text]:focus { outline: none; border-color: var(--accent); }
.zgoda { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 15px; color: var(--text2); cursor: pointer; }
.zgoda input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--accent); }
.rodo { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- ekran ---------- */
.ekran { height: 100vh; padding: 5vh 5vw; display: grid; grid-template-columns: 1fr auto; gap: 5vw; overflow: hidden; }
.ekran .lewa { display: flex; flex-direction: column; min-width: 0; }
.ekran h1 { font-size: clamp(32px, 4.6vw, 76px); font-weight: 600; line-height: 1.1; margin: 1.2vh 0 5vh; }
.ekran .paski { gap: 2.6vh; }
.ekran .pasek { font-size: clamp(18px, 2.2vw, 38px); }
.ekran .pasek .tor { height: clamp(14px, 2.2vh, 28px); }
.ekran .stopka { margin-top: auto; font-size: clamp(16px, 1.6vw, 28px); color: var(--text2); }
.ekran .stopka b { color: var(--text); font-variant-numeric: tabular-nums; }
.ekran .prawa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; }
.ekran .qr { width: clamp(180px, 24vw, 420px); aspect-ratio: 1; background: #FAFAF7; border-radius: 16px; padding: 14px; }
.ekran .qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ekran .adres { font-size: clamp(16px, 1.6vw, 28px); font-weight: 600; }
.ekran .ukryte { font-size: clamp(22px, 2.6vw, 44px); color: var(--text2); }

/* ---------- prowadzący ---------- */
.host { max-width: 980px; margin: 0 auto; padding: 24px 16px 60px; }
.host h1 { font-size: 24px; margin: 0 0 4px; }
.pasekhost { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn { min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; }
.btn.akcent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.btn.uwaga { border-color: var(--accent-deep); color: var(--accent); }
.lista { display: grid; gap: 8px; }
.pyt { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border-radius: 12px; border: 2px solid transparent; }
.pyt.aktywne { border-color: var(--accent); }
.pyt .nr { color: var(--muted); font-weight: 600; }
.pyt .ile { color: var(--text2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.podglad { margin-top: 20px; padding: 18px; background: var(--surface); border-radius: 12px; }
.liczniki { color: var(--text2); }
@media (max-width: 600px) { .pyt { grid-template-columns: 28px 1fr; } .pyt .ile, .pyt .btn { grid-column: 2; justify-self: start; } }
.ekran .eyebrow, .ekran .prawa .muted { font-size: clamp(14px, 1.3vw, 22px); }
a.btn { color: var(--text); }
a.btn.akcent { color: var(--on-accent); }
