/* Ortografia na lekcję — style ekranowe. Paleta i komponenty wspólne z „Zegarem" i „Działaniami na lekcję". */
:root {
  --sky: #dff1ff;
  --cream: #fff8e6;
  --ink: #1d2b4f;
  --ink-soft: #4a5a7d;
  --paper: #ffffff;
  --line: #c9d8ea;
  --blue: #1f66d6;
  --blue-dark: #174fa8;
  --sun: #ffd23f;
  --sun-dark: #e0a800;
  --sun-ink: #7a5a00;
  --green: #2e9e5b;
  --green-bg: #dcf5e4;
  --red: #e8523f;
  --red-bg: #ffe3dd;
  --orange: #f28c28;
  --violet: #6c4bd6;
  --violet-bg: #ece6ff;
  --radius: 22px;
  --hand: "Segoe Print", "Chalkboard SE", "Comic Sans MS", "Bradley Hand", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--sky); }
body {
  margin: 0; min-height: 100vh;
  background: linear-gradient(180deg, var(--sky) 0%, #eef7ff 45%, var(--cream) 100%);
  color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.4;
  display: flex; flex-direction: column;
}
body.follow-on { padding-bottom: 120px; }
/* opcja „czytelniejszy tekst" */
body.czytelniej { font-size: 20px; letter-spacing: .03em; line-height: 1.6; word-spacing: .12em; }
body.czytelniej .sent, body.czytelniej .board-sent { letter-spacing: .06em; word-spacing: .2em; line-height: 1.5; }

a { color: var(--blue-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nagłówek ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 20px 6px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo { width: 56px; height: 56px; flex: none; }
.top h1 { margin: 0; font-family: var(--hand); font-size: 32px; line-height: 1.1; }
.top h1 span { color: var(--blue); }
.top .sub { margin: 2px 0 0; color: var(--ink-soft); font-size: 16px; }
.modes { display: flex; gap: 8px; flex-wrap: wrap; }
.modes .btn { border-width: 3px; }
.modes .btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; min-width: 44px; padding: 8px 20px;
  font-size: 20px; font-weight: 700; line-height: 1.15;
  border-radius: 999px; border: 3px solid var(--ink);
  background: var(--paper); color: var(--ink);
  text-decoration: none; box-shadow: 0 3px 0 var(--ink);
  transition: transform .08s ease;
}
.btn:hover { background: #f3f8ff; }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible, .toggle:focus-visible, .seg button:focus-visible, .key:focus-visible, .opt:focus-visible,
.tile:focus-visible, .rule:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .answer:focus-visible {
  outline: 4px solid var(--blue); outline-offset: 3px;
}
.btn[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue-dark); box-shadow: 0 3px 0 var(--blue-dark); }
.btn--gold { background: var(--sun); border-color: var(--sun-dark); box-shadow: 0 3px 0 var(--sun-dark); }
.btn--gold:hover { background: #ffdc66; }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue-dark); box-shadow: 0 3px 0 var(--blue-dark); }
.btn--blue:hover { background: #2b74e6; }
.btn--ghost { background: transparent; box-shadow: none; border-color: var(--ink-soft); }
.btn--big { font-size: 24px; min-height: 62px; padding: 10px 28px; }
.btn--small { min-height: 42px; font-size: 17px; padding: 6px 14px; box-shadow: 0 2px 0 var(--ink); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }

/* ---------- pasek ustawień ---------- */
.settings {
  display: flex; flex-direction: column; gap: 12px;
  margin: 6px 20px 0; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,.7); border: 2px dashed var(--line);
}
.group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.group .lbl { color: var(--ink-soft); font-size: 16px; margin-right: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.note { color: var(--ink-soft); font-size: 16px; margin: 0; }
.seg { display: inline-flex; border-radius: 999px; overflow: hidden; border: 3px solid var(--ink); background: var(--paper); flex-wrap: wrap; }
.seg button { min-height: 44px; padding: 6px 14px; border: 0; background: transparent; font-size: 18px; font-weight: 700; }
.seg button + button { border-left: 3px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px 4px 4px;
  border-radius: 999px; border: 2px solid transparent; background: transparent; font-size: 18px; font-weight: 600;
}
.toggle .sw { width: 48px; height: 28px; border-radius: 14px; background: #b9c8dd; position: relative; flex: none; border: 2px solid var(--ink); }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-sizing: border-box; }
.toggle[aria-checked="true"] .sw { background: var(--green); }
.toggle[aria-checked="true"] .sw::after { left: 22px; }

/* kafelki klas */
.tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  min-height: 64px; padding: 6px 4px; border-radius: 18px; border: 3px solid var(--ink);
  background: var(--paper); color: var(--ink); font-family: var(--hand); font-weight: 700; font-size: 22px; line-height: 1;
  box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease;
}
.tile small { display: block; font-family: var(--body); font-size: 13px; font-weight: 500; opacity: .85; margin-top: 4px; }
.tile:hover { background: #f3f8ff; }
.tile[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue-dark); box-shadow: 0 3px 0 var(--blue-dark); }
.tile:disabled { opacity: .45; cursor: default; box-shadow: none; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* panel reguł */
.rules-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rules-head h2 { margin: 0; font-family: var(--hand); font-size: 24px; }
.rules-summary { color: var(--ink-soft); font-size: 16px; }
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.rule {
  display: grid; grid-template-columns: 30px 1fr; gap: 4px 10px; align-items: start; text-align: left;
  padding: 10px 12px; border-radius: 16px; border: 3px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 17px; line-height: 1.3; cursor: pointer;
}
.rule:hover { border-color: var(--ink-soft); }
.rule[aria-checked="true"] { border-color: var(--blue); background: #eef4ff; }
.rule .box { width: 26px; height: 26px; border-radius: 7px; border: 3px solid var(--ink); background: #fff; display: grid; place-items: center; margin-top: 2px; }
.rule .box::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); transform: scale(0); transition: transform .1s; }
.rule[aria-checked="true"] .box::after { transform: scale(1); }
.rule .name { font-weight: 700; }
.rule .desc { grid-column: 2; color: var(--ink-soft); font-size: 15px; }
.rule .ex { grid-column: 2; font-family: var(--hand); font-size: 16px; color: var(--blue-dark); }
.rule.older { border-style: dashed; }
.rule .kl { font-weight: 500; color: var(--ink-soft); font-size: 14px; margin-left: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--violet-bg); color: var(--violet); font-size: 13px; font-weight: 700; border: 2px solid var(--violet); vertical-align: middle; white-space: nowrap;
  position: relative; cursor: help;
}
.badge .tip {
  display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; width: 300px; max-width: 80vw; padding: 10px 12px;
  border-radius: 12px; background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; line-height: 1.35; white-space: normal;
}
.badge:hover .tip, .badge:focus-within .tip, .badge.open .tip { display: block; }

/* ---------- główna część ---------- */
main { flex: 1; padding: 16px 20px 24px; }
.loading { text-align: center; color: var(--ink-soft); padding: 30px 0; font-size: 20px; }
.empty { text-align: center; padding: 30px 16px; color: var(--ink-soft); }

/* ---------- maskotka: słoneczko ---------- */
.mascot { display: flex; align-items: flex-start; gap: 10px; }
.mascot .sun { width: 110px; height: 110px; flex: none; }
.bubble {
  position: relative; flex: 1; min-height: 60px; padding: 12px 16px; border-radius: 20px;
  background: var(--paper); border: 3px solid var(--ink); font-family: var(--hand); font-size: 21px; line-height: 1.3;
}
.bubble::before, .bubble::after { content: ""; position: absolute; left: -16px; top: 26px; border: 8px solid transparent; border-right-color: var(--ink); border-left: 0; }
.bubble::after { left: -12px; border-right-color: var(--paper); }
.bubble.ok { background: var(--green-bg); border-color: var(--green); }
.bubble.ok::after { border-right-color: var(--green-bg); } .bubble.ok::before { border-right-color: var(--green); }
.bubble.bad { background: var(--red-bg); border-color: var(--red); }
.bubble.bad::after { border-right-color: var(--red-bg); } .bubble.bad::before { border-right-color: var(--red); }
.sun .ray { stroke: var(--sun-dark); stroke-width: 6; stroke-linecap: round; }
.sun .disc { fill: var(--sun); stroke: var(--sun-dark); stroke-width: 3; }
.sun .eye, .sun .brow, .sun .mouth, .sun .eye-happy { display: none; }
.sun .eye { fill: var(--ink); }
.sun .cheek { fill: #ffb2a6; opacity: .8; }
.sun .brow, .sun .mouth, .sun .eye-happy { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.sun .mouth--big { fill: #b23a2e; stroke-width: 3; }
.sun .mouth--o { fill: #b23a2e; }
.sun--idle .eye, .sun--idle .mouth--smile { display: block; }
.sun--happy .eye-happy, .sun--happy .mouth--big { display: block; }
.sun--think .eye, .sun--think .brow, .sun--think .mouth--o { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .sun .rays { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
  .sun--happy { animation: bounce .6s ease; }
  .sun--think { animation: tilt .5s ease; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes bounce { 0%,100% { transform: translateY(0) } 30% { transform: translateY(-12px) scale(1.06) } 60% { transform: translateY(0) } 80% { transform: translateY(-5px) } }
  @keyframes tilt { 0%,100% { transform: rotate(0) } 40% { transform: rotate(-10deg) } 70% { transform: rotate(6deg) } }
}

/* ---------- zdanie z luką ---------- */
.sent {
  padding: 18px 22px; border-radius: var(--radius); background: var(--paper); border: 4px solid var(--sun-dark);
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; line-height: 1.5; text-align: center;
}
.gap {
  display: inline-block; padding: 0 .18em; border-radius: .25em; border: .09em dashed var(--ink-soft);
  color: var(--blue); min-width: 1.4em; text-align: center; white-space: nowrap;
}
.gap .u { display: inline-block; min-width: .7em; border-bottom: .12em solid var(--blue); color: transparent; line-height: 1; }
.gap.active { border-style: solid; border-color: var(--blue); background: #e9f1ff; }
.gap.ok { border-style: solid; border-color: var(--green); background: var(--green-bg); color: var(--green); }
.gap.bad { border-style: solid; border-color: var(--red); background: var(--red-bg); color: var(--red); }
.gap.shown { border-style: solid; border-color: var(--blue); background: #e9f1ff; color: var(--blue-dark); }
.gap .fill { font-weight: 800; }
.gap .base { font-size: .7em; color: var(--ink-soft); font-weight: 500; }
.sent .done { color: var(--green); font-weight: 800; }

/* opcje liter */
.opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.opt {
  min-width: 96px; min-height: 76px; padding: 8px 22px; font-size: 40px; font-weight: 800; border-radius: 20px;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease;
}
.opt.long { font-size: 26px; }
.opt:hover { background: #f3f8ff; }
.opt:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.opt.ok { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.opt.bad { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.opt:disabled { opacity: .5; cursor: default; transform: none; }
.opt.ok:disabled, .opt.bad:disabled { opacity: 1; }

/* pole wpisywania i klawiatura polskich znaków */
.word-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; }
.word-form input {
  width: min(100%, 360px); min-height: 60px; font: inherit; font-size: 28px; font-weight: 700; text-align: center;
  border-radius: 18px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); padding: 4px 14px;
}
.word-form input.ok { border-color: var(--green); background: var(--green-bg); }
.word-form input.bad { border-color: var(--red); background: var(--red-bg); }
.plkeys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.key {
  min-width: 52px; min-height: 52px; padding: 4px 10px; font-size: 26px; font-weight: 700; border-radius: 14px; border: 3px solid var(--ink);
  background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 var(--ink); transition: transform .08s ease;
}
.key:hover { background: #f3f8ff; }
.key:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.key--wide { font-size: 20px; padding: 4px 16px; }
.key--ok { background: var(--sun); border-color: var(--sun-dark); box-shadow: 0 3px 0 var(--sun-dark); font-size: 20px; }
.key:disabled { opacity: .4; cursor: default; transform: none; }

/* informacja zwrotna */
.feedback { padding: 14px 18px; border-radius: var(--radius); font-size: 20px; line-height: 1.35; text-align: center; border: 3px solid var(--line); background: var(--paper); }
.feedback.ok { border-color: var(--green); background: var(--green-bg); }
.feedback.bad { border-color: var(--red); background: var(--red-bg); }
.feedback .big { display: block; font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.feedback .why { display: block; margin-top: 4px; }

/* ---------- tryb: ćwiczenie ---------- */
.ex-wrap { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.ex { display: flex; flex-direction: column; gap: 16px; }
.ex-progress { display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: 18px; font-weight: 600; }
.ex-progress .bar { flex: 1; height: 12px; margin: 0 14px; background: #fff; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.ex-progress .bar i { display: block; height: 100%; background: var(--green); width: 0; }
.ex-q { font-family: var(--hand); font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; text-align: center; line-height: 1.2; margin: 0; }
.ex-q small { display: block; font-family: var(--body); font-size: 17px; font-weight: 500; color: var(--ink-soft); margin-top: 4px; }
.ex-next { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ex-start, .ex-end { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 10px 0; }
.ex-start p { max-width: 560px; margin: 0; color: var(--ink-soft); }
.ex-end .score { font-family: var(--hand); font-size: clamp(34px, 6vw, 60px); font-weight: 700; margin: 0; }
.errs { width: 100%; max-width: 640px; text-align: left; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.errs li { padding: 10px 14px; border-radius: 14px; background: var(--paper); border: 2px solid var(--line); }
.errs li strong { color: var(--green); }
.errs li s { color: var(--red); margin-right: 6px; }
.errs li span { display: block; color: var(--ink-soft); font-size: 16px; }

/* ---------- tryb: na tablicę ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 900px) { .board { grid-template-columns: minmax(0, 1fr) 340px; } }
.stage-wrap { display: flex; flex-direction: column; gap: 14px; }
.board-sent {
  padding: 24px 28px; border-radius: var(--radius); background: var(--paper); border: 4px solid var(--sun-dark);
  font-size: clamp(30px, 5vw, 64px); font-weight: 700; line-height: 1.45; text-align: center; min-height: 3em;
}
:fullscreen .board-sent { font-size: clamp(40px, 6.5vw, 92px); padding: 40px; }
:fullscreen .opt { min-height: 96px; font-size: 52px; }
:fullscreen .opt.long { font-size: 34px; }
.board-why { text-align: center; font-size: clamp(20px, 2.6vw, 32px); padding: 14px 20px; border-radius: var(--radius); border: 3px solid var(--green); background: var(--green-bg); }
:fullscreen .board-why { font-size: clamp(24px, 3.2vw, 40px); }
.board-count { text-align: center; color: var(--ink-soft); font-weight: 700; font-size: 20px; }
.answer {
  width: 100%; min-height: 64px; padding: 12px 18px; border-radius: var(--radius);
  border: 3px dashed var(--ink-soft); background: var(--paper); text-align: center; line-height: 1.2; font-size: 22px; font-weight: 600;
}
.answer .hint { color: var(--ink-soft); }
.panel { display: flex; flex-direction: column; gap: 14px; }
.panel h3 { margin: 4px 0 0; font-family: var(--hand); font-size: 20px; font-weight: 700; color: var(--ink-soft); }
.panel .row .btn { flex: 1 1 auto; }
kbd { font-family: inherit; padding: 1px 7px; border: 2px solid var(--ink-soft); border-bottom-width: 3px; border-radius: 6px; font-size: .9em; background: #fff; }
body.mode-tablica:fullscreen .top, body.mode-tablica:fullscreen .settings, body.mode-tablica:fullscreen .seo, body.mode-tablica:fullscreen footer, body.mode-tablica:fullscreen .follow { display: none !important; }
body.mode-tablica:fullscreen main { padding: 3vh 4vw; display: flex; align-items: center; }
body.mode-tablica:fullscreen .board { width: 100%; grid-template-columns: minmax(0, 1fr); }
body.mode-tablica:fullscreen .panel h3, body.mode-tablica:fullscreen .panel .note { display: none; }
body.mode-tablica:fullscreen .panel { flex-direction: row; flex-wrap: wrap; justify-content: center; }

/* ---------- tryb: karta pracy ---------- */
.sheet-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1000px) { .sheet-layout { grid-template-columns: 360px minmax(0, 1fr); } }
.sheet-settings { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--radius); background: rgba(255,255,255,.7); border: 2px dashed var(--line); }
.sheet-settings input[type="number"], .sheet-settings input[type="text"] {
  min-height: 48px; font: inherit; font-size: 20px; font-weight: 700; text-align: center;
  border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); padding: 0 12px;
}
.sheet-settings input[type="number"] { width: 130px; }
.sheet-settings input[type="text"] { width: 100%; text-align: left; border-radius: 14px; }
.kinds { display: grid; grid-template-columns: 1fr; gap: 6px; }
.kinds .btn { justify-content: flex-start; text-align: left; min-height: 46px; font-size: 17px; padding: 6px 14px; }
.print-hint { margin: 0; font-size: 16px; color: var(--blue-dark); font-weight: 600; }

.paper {
  background: #fff; color: #000; width: 100%; max-width: 210mm; margin: 0 auto;
  padding: 12mm 12mm; box-shadow: 0 8px 30px rgba(29,43,79,.25); font-size: 12pt; font-family: var(--body); line-height: 1.45;
}
.paper + .paper { margin-top: 20px; }
.paper h2 { margin: 0; font-size: 15pt; display: inline; }
.paper h2 + span { margin-left: 3mm; font-size: 11pt; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2mm 6mm; border-bottom: 1.2pt solid #000; padding-bottom: 1.5mm; margin-bottom: 4mm; }
.sheet-head .title { flex: 1 1 95mm; }
.sheet-head .fields { display: flex; gap: 8mm; font-size: 11pt; white-space: nowrap; margin-left: auto; }
.sheet-head .fields span { display: inline-block; border-bottom: 1pt solid #000; min-width: 40mm; }
.sheet-head .fields .data-f span { min-width: 24mm; }
.sheet-foot { margin-top: 5mm; padding-top: 1mm; border-top: .6pt solid #999; font-size: 9pt; color: #333; display: flex; justify-content: space-between; }
.remind { border: 1pt solid #000; border-radius: 2mm; padding: 2.5mm 4mm; margin-bottom: 4mm; font-size: 10.5pt; }
.remind strong { display: block; margin-bottom: 1mm; font-size: 11pt; }
.remind p { margin: 0 0 1mm; }
.sheet-sent { margin: 0; padding: 0 0 0 8mm; font-size: 13.5pt; line-height: 1.9; }
.sheet-sent li { padding-left: 1.5mm; margin-bottom: 1.2mm; }
.sheet-sent.dense { font-size: 12pt; line-height: 1.7; }
.blank { display: inline-block; min-width: 9mm; border-bottom: 1.2pt solid #000; height: 1em; vertical-align: -1pt; text-align: center; }
.blank.word { min-width: 28mm; }
.blank.short { min-width: 6mm; }
.sheet-sent .base, .story .base { color: #333; font-size: .85em; }
.key-list { columns: 2; column-gap: 10mm; margin: 0; padding-left: 8mm; font-size: 11pt; line-height: 1.6; }
.key-list li { break-inside: avoid; }
.key-list .ans { font-weight: 700; text-decoration: underline; }
.key-list .why { display: block; color: #333; font-size: 9.5pt; }
.story { font-size: 13pt; line-height: 2; text-align: justify; }
.story h3 { text-align: center; font-size: 14pt; margin: 0 0 3mm; }
.story .err { font-weight: 700; }
.story .ans { font-weight: 700; text-decoration: underline; }
.story .fix { font-weight: 700; color: #000; }
.lines { margin-top: 2mm; }
.lines div { border-bottom: 1pt solid #000; height: 9mm; }
.dict-phr { padding-left: 8mm; font-size: 12pt; line-height: 1.8; margin: 0; }
.dict-phr li { margin-bottom: .5mm; }
.hard { columns: 2; column-gap: 8mm; font-size: 10.5pt; margin: 0; padding-left: 6mm; }
.hard li { break-inside: avoid; margin-bottom: 1mm; }
.paper table { width: 100%; border-collapse: collapse; font-size: 11.5pt; }
.paper th, .paper td { border: 1pt solid #000; padding: 2mm 2.5mm; text-align: left; vertical-align: top; }
.paper th { background: #eee; font-size: 10.5pt; }
.paper td { height: 10mm; }
.paper .grp { font-size: 11pt; font-weight: 700; margin: 0 3mm; }
.errs-print { margin: 0; padding-left: 8mm; }

/* odsłuch dyktanda i sprawdzanie */
.listen { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--paper); border: 3px solid var(--line); max-width: 210mm; margin: 20px auto 0; }
.listen h3 { margin: 0; font-family: var(--hand); font-size: 22px; }
.listen .phr { font-size: 22px; font-weight: 600; min-height: 1.5em; text-align: center; padding: 8px; border-radius: 14px; background: #eef4ff; }
.listen textarea { width: 100%; min-height: 160px; font: inherit; font-size: 19px; padding: 12px; border-radius: 14px; border: 3px solid var(--ink); resize: vertical; }
.cmp { font-size: 19px; line-height: 1.7; padding: 12px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--line); }
.cmp .w-ok { color: var(--ink); }
.cmp .w-bad { background: var(--red-bg); color: var(--red); text-decoration: line-through; border-radius: 4px; padding: 0 3px; }
.cmp .w-fix { background: var(--green-bg); color: var(--green); font-weight: 700; border-radius: 4px; padding: 0 3px; }
.cmp .w-miss { background: var(--green-bg); color: var(--green); border-radius: 4px; padding: 0 3px; }

/* ---------- okno udostępniania ---------- */
dialog.share { border: 4px solid var(--ink); border-radius: var(--radius); padding: 20px; max-width: min(92vw, 560px); color: var(--ink); background: var(--paper); font-family: var(--body); }
dialog.share::backdrop { background: rgba(29,43,79,.55); }
dialog.share h2 { margin: 0 0 8px; font-family: var(--hand); font-size: 26px; }
dialog.share .link { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 12px; border: 3px solid var(--ink); word-break: break-all; }
dialog.share canvas { display: block; margin: 12px auto; width: min(60vw, 260px); height: auto; image-rendering: pixelated; }
dialog.share .row { justify-content: center; }
dialog.share .copied { color: var(--green); font-weight: 700; }


/* ---------- pakiet na cały rok ---------- */
.pakiet { max-width: 980px; margin: 32px auto 0; padding: 0 20px; }
.pakiet-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #fff; border-top: 5px solid var(--sun); }
@media (min-width: 860px) { .pakiet-wrap { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); align-items: center; } }
.pakiet-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 14px; }
.pakiet-copy h2 { margin: 10px 0 8px; font-family: var(--hand); font-size: 30px; line-height: 1.15; }
.pakiet-copy h2 em { font-style: normal; color: var(--sun); }
.pakiet-copy p { margin: 0 0 10px; font-size: 17px; line-height: 1.5; color: #e6ecf7; }
.pakiet-perks { margin: 0; padding-left: 20px; font-size: 16px; color: #e6ecf7; }
.pakiet-perks li { margin-bottom: 4px; }
.pakiet-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--paper); color: var(--ink); }
.pakiet-card select { min-height: 50px; font: inherit; font-size: 20px; font-weight: 700; padding: 0 14px; border-radius: 999px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); }
.pakiet-card .note { font-size: 14px; }
.pakiet-dlg .gdpr { font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin: 10px 0 0; }
.pakiet-dlg .ml-embedded { min-height: 120px; }
/* formularz MailerLite: chowamy jego nagłówek i dopasowujemy kolory do palety narzędzia */
.pakiet-dlg .ml-form-embedContent { display: none !important; }
.pakiet-dlg .ml-form-embedWrapper.embedForm { background-color: transparent !important; max-width: none !important; }
.pakiet-dlg .ml-form-embedBody { padding: 0 !important; }
.pakiet-dlg .ml-form-embedSubmit { margin-top: 10px !important; }
.pakiet-dlg #mlb2-46069408.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input.form-control { border: 3px solid var(--ink) !important; border-radius: 999px !important; padding: 12px 16px !important; font-family: var(--body) !important; font-size: 17px !important; color: var(--ink) !important; background: #fff !important; }
.pakiet-dlg #mlb2-46069408.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input.form-control::placeholder { color: var(--ink-soft) !important; }
.pakiet-dlg #mlb2-46069408.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary { background: var(--sun) !important; color: var(--ink) !important; border: 3px solid var(--sun-dark) !important; border-radius: 999px !important; font-family: var(--body) !important; font-weight: 700 !important; font-size: 18px !important; padding: 12px 20px !important; }
.pakiet-dlg .ml-form-successBody { padding: 0 !important; }

/* ---------- zaproszenie ---------- */
.follow {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--ink); color: #fff; border-top: 4px solid var(--sun);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px;
  padding: 12px 56px 12px 20px; font-size: 18px; line-height: 1.3;
}
.follow p { margin: 0; max-width: 620px; }
.follow .btn { box-shadow: none; }
.follow .close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; }
.follow .close:hover { background: rgba(255,255,255,.15); }

/* ---------- sekcja opisowa ---------- */
.seo { max-width: 780px; margin: 36px auto 0; padding: 28px 20px 8px; border-top: 2px dashed var(--line); font-size: 18px; line-height: 1.55; }
.seo h2 { font-family: var(--hand); font-size: 30px; margin: 28px 0 10px; line-height: 1.15; }
.seo h2:first-child { margin-top: 0; }
.seo h3 { font-size: 21px; margin: 22px 0 6px; }
.seo p { margin: 0 0 12px; }
.seo ul { margin: 0 0 12px; padding-left: 22px; }
.seo .levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 6px; }
@media (max-width: 640px) { .seo .levels { grid-template-columns: repeat(2, 1fr); } }
.seo .levels a, .seo .levels span.soon { display: block; padding: 12px 14px; border-radius: var(--radius); border: 3px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 var(--ink); }
.seo .levels span.soon { opacity: .5; box-shadow: none; }
.seo .levels a:hover { background: #f3f8ff; }
.seo .levels strong { display: block; font-family: var(--hand); font-size: 22px; }
.seo .levels small { color: var(--ink-soft); font-size: 15px; }
.seo .faq h3 { font-family: var(--hand); font-size: 22px; }
.seo .other { display: flex; flex-wrap: wrap; gap: 10px; }
footer { padding: 14px 20px; text-align: center; color: var(--ink-soft); font-size: 15px; }
footer a { color: var(--ink-soft); }

.tests { max-width: 900px; margin: 0 auto 16px; padding: 12px 16px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); font-family: ui-monospace, Consolas, monospace; font-size: 14px; white-space: pre-wrap; }
.tests .fail { color: var(--red); }
.tests .pass { color: var(--green); }

@media (max-width: 480px) {
  .top { padding: 12px 14px 6px; }
  .top h1 { font-size: 26px; }
  .brand .logo { width: 44px; height: 44px; }
  .settings { margin: 6px 12px 0; padding: 10px; }
  main { padding-left: 12px; padding-right: 12px; }
  .btn { padding: 8px 14px; }
  .mascot .sun { width: 80px; height: 80px; }
  .bubble { font-size: 19px; }
  .sent { padding: 14px; }
  .opt { min-width: 80px; min-height: 64px; font-size: 34px; }
  .key { min-width: 46px; min-height: 48px; font-size: 22px; }
}
