/* Wygląd strony – jeden plik dla wszystkich urządzeń.
   Skalowanie: rozmiary w rem; wielkość rem zależy od ekranu: mały telefon (< 360 px) 15 px, telefon 16 px,
   tablet 17 px, laptop / tablet poziomo 18 px. Ustawienie wielkości tekstu w przeglądarce też działa.
   Układ: telefon – jedna kolumna; gdy jest miejsce (tablet, telefon poziomo, laptop) – kafelki i zasady w dwóch kolumnach,
   na laptopie pary obok tacki i postępy obok filtrów. Myszka: podświetlenie i skróty klawiszowe; dotyk: bez szarego błysku Androida.
   Kolory półprzezroczyste jako gotowe rgba (bez color-mix) – działa też na starszych tabletach z Androidem. */

:root {
  /* etykiety (tile-chip, rule-chip): tło i obwódka w kolorze klasy; w trybie ciemnym mocniejsze */
  --chip-bg: rgba(58, 143, 122, 0.14);
  --chip-line: rgba(58, 143, 122, 0.3);
  /* etykiety na kafelkach – stonowane (tytuł kafelka ma dominować) */
  --tchip-bg: rgba(58, 143, 122, 0.06);
  --tchip-line: rgba(58, 143, 122, 0.16);
  --wip-ink: #8a5300;
  --wip-bg: rgba(242, 163, 58, 0.18);
  --bg: #fbf7f0;
  --card: #ffffff;
  --ink: #23211d;
  --muted: #6f6a60;
  --line: #e7e0d3;
  --col-kratka: rgba(80, 120, 200, 0.16);
  --accent: #3a8f7a;
  --accent-ink: #ffffff;
  --k2: #f2a33a; /* pomarańcz (ramka gościa w planie lekcji); kolory klas: public/data/klasy/k<N>.json */
  --ok: #2f8a4f;
  --ok-bg: #e5f4ea;
  --err: #c2412d;
  --err-bg: #fbe9e5;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(35, 33, 29, 0.06);
  /* akcent i inne kolory z przezroczystością */
  --accent-a10: rgba(58, 143, 122, 0.1);
  --accent-a14: rgba(58, 143, 122, 0.14);
  --accent-a30: rgba(58, 143, 122, 0.3);
  --accent-a45: rgba(58, 143, 122, 0.45);
  --k2-a18: rgba(242, 163, 58, 0.18);
  --err-a45: rgba(194, 65, 45, 0.45);
  --line-a35: rgba(231, 224, 211, 0.35);
  --focus: 3px solid var(--accent-a45);
  /* kolory poziomów na stronie postępów */
  --m-good: #2f8a4f;
  --m-mid: #d98a1f;
  --m-bad: #c2412d;
  --m-none: #b5ae9f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a17;
    --card: #26241f;
    --ink: #f3efe6;
    --muted: #a7a092;
    --line: #3a372f;
    --col-kratka: rgba(140, 170, 230, 0.14);
    --ok-bg: #1f3426;
    --err-bg: #3d231e;
    --shadow: none;
    --line-a35: rgba(58, 55, 47, 0.35);
    --chip-bg: rgba(72, 178, 146, 0.26);
    --chip-line: rgba(72, 178, 146, 0.6);
    --tchip-bg: rgba(72, 178, 146, 0.1);
    --tchip-line: rgba(72, 178, 146, 0.24);
    --wip-ink: #f2c27a;
    --wip-bg: rgba(242, 163, 58, 0.2);
    --m-good: #3fa363;
    --m-mid: #dba13f;
    --m-bad: #d9583f;
    --m-none: #6b665b;
  }
}

/* ===== Skala według urządzenia ===== */
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 359px) { html { font-size: 93.75%; } }                          /* małe Androidy, ekran zewnętrzny Folda */
@media (min-width: 700px) and (min-height: 600px) { html { font-size: 106.25%; } }  /* tablety */
@media (min-width: 1100px) and (min-height: 680px) { html { font-size: 112.5%; } }  /* laptopy, tablety poziomo */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  -webkit-tap-highlight-color: transparent;
  overflow-wrap: break-word;
}
@media (min-width: 700px) {
  body { padding: max(24px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); }
}
main { max-width: 46rem; margin: 0 auto; }
main:has(> .progress-page) { max-width: 72rem; }
button, input, select { font: inherit; color: inherit; }
button { touch-action: manipulation; cursor: pointer; }
h1 { font-size: 1.875rem; line-height: 1.15; margin: 4px 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 1.1875rem; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.loading { color: var(--muted); padding-top: 40px; text-align: center; }

/* ===== Komponenty (public/components.js) ===== */

/* Pasek górny */
.top { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.top .spacer { flex: 1; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 3.25rem; padding: 12px 20px; border-radius: 14px; max-width: 100%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 650; line-height: 1.2; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.08s ease, background 0.15s, border-color 0.15s, filter 0.15s;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:focus-visible, .tile:focus-visible, .option:focus-visible, .choice:focus-visible, .check-row:focus-visible,
.dd-card:focus-visible, [data-drop]:focus-visible { outline: var(--focus); outline-offset: 2px; }
.btn-ico { font-size: 1.1em; line-height: 1; }
.btn-label { min-width: 0; overflow-wrap: anywhere; }
.btn-sm { min-height: max(44px, 2.75rem); padding: 8px 14px; font-size: 0.9375rem; border-radius: 12px; }
.btn-lg { min-height: 3.75rem; font-size: 1.1875rem; border-radius: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-quiet { background: transparent; box-shadow: none; color: var(--muted); }
.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-danger { background: var(--card); border: 2px solid var(--err); color: var(--err); }
.btn-back { background: var(--card); padding-left: 12px; max-width: 70%; }
.btn-back .btn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
.row { display: grid; gap: 10px; margin-top: 18px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Kafelki – jedna kolumna na telefonie, dwie gdy jest miejsce; tryby (quiz / fiszki / przeciąganie) do trzech w rzędzie */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.tiles-modes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.tile {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; min-height: 5.25rem; box-shadow: var(--shadow);
  transition: transform 0.08s ease, border-color 0.15s;
}
.tile:active:not(:disabled) { transform: scale(0.99); }
.tile-ico {
  flex: none; width: 3.5rem; height: 3.5rem; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.875rem; background: var(--tile-ico, var(--accent-a14));
}
/* kolor klasy (public/lib/klasy.js → applyTone): kafelek – ikona i etykiety; body – etykiety zasad (ruleChip) */
.tile[data-tone] { --tile-ico: var(--tl-ico); --tchip-bg: var(--tl-tchip-bg); --tchip-line: var(--tl-tchip-line); }
body[data-tone] { --chip-bg: var(--tl-chip-bg); --chip-line: var(--tl-chip-line); }
@media (prefers-color-scheme: dark) {
  .tile[data-tone] { --tchip-bg: var(--td-tchip-bg); --tchip-line: var(--td-tchip-line); }
  body[data-tone] { --chip-bg: var(--td-chip-bg); --chip-line: var(--td-chip-line); }
}
.tile-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.tile-title { font-weight: 700; font-size: 1.125rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tile-badge { font-size: max(12px, 0.75rem); font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 99px; padding: 2px 8px; }
.tile-desc { color: var(--muted); font-size: 0.875rem; }
.tile-meta { font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }
/* etykiety „co jest w środku” – stonowane, w odcieniu klasy, bez wyglądu kafelka (tytuł kafelka dominuje; decyzja 13.11) */
.tile-chips { display: flex; flex-wrap: wrap; gap: 4px 5px; margin: 4px 0 2px; }
.tile-chip {
  max-width: 100%; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--tchip-line); background: var(--tchip-bg);
  color: var(--muted); font-size: max(12px, 0.75rem); font-weight: 500; line-height: 1.35; overflow-wrap: break-word; /* długa etykieta zawija się w kafelku */
}
/* status tematu (statusBadge): ✅ Gotowe / 🚧 W budowie */
.tile-status { display: inline-flex; align-items: center; gap: 4px; font-size: max(12px, 0.75rem); font-weight: 700; line-height: 1.3; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.tile-status-ready { color: var(--ok); background: var(--ok-bg); }
.tile-status-wip { color: var(--wip-ink); background: var(--wip-bg); }
.tile-chip-more { background: transparent; border-style: dashed; color: var(--muted); }
.tile-meta b { color: var(--ink); }
.tile .meter { margin-top: 6px; }
.tile-chev { flex: none; font-size: 1.75rem; line-height: 1; color: var(--muted); }
.tile-featured { border: 2px solid var(--accent); }
.tile-featured .tile-ico { background: var(--accent); }
.tile-compact { min-height: 0; padding: 10px 14px; box-shadow: none; background: transparent; border-style: dashed; align-self: start; }
.tile-compact .tile-ico { width: 2.25rem; height: 2.25rem; font-size: 1.25rem; border-radius: 10px; }
.tile-compact .tile-title { font-size: 1rem; font-weight: 600; }
.tile:disabled { cursor: default; opacity: 0.75; }

/* Pasek postępu */
.meter { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* Napis nad tytułem */
.eyebrow { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 12px 0 0; }

/* Potwierdzenie */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 18, 15, 0.45);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overscroll-behavior: contain;
}
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } }
.sheet {
  width: 100%; max-width: 30rem; max-height: 100%; overflow-y: auto; background: var(--card); border-radius: 22px; padding: 20px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); animation: rise 0.18s ease-out;
}
.sheet h2 { margin: 0 0 4px; }
.sheet p { margin: 0; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Podgląd komponentów */
.demo { margin-top: 8px; }
.demo h3 { font-size: 1rem; margin: 18px 0 8px; }
.demo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }

/* Skróty klawiszowe – widoczne tylko przy myszce / gładziku (patrz niżej) */
.kbd {
  display: none; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; padding: 0 0.35em;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg);
  font-size: max(12px, 0.75rem); font-weight: 700; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums;
}
.kbd-hint { display: none; font-size: 0.875rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* ===== Formularze ===== */

.welcome { max-width: 24rem; margin: 0 auto; padding-top: 5vh; }
.welcome h1 { font-size: 2.5rem; color: var(--accent); margin: 0; }
.welcome-sub { font-size: 1.25rem; font-weight: 700; margin: 2px 0 14px; }
.welcome-list { list-style: none; margin: 0; padding: 12px 14px; background: var(--accent-a10); border-radius: var(--radius); }
.welcome-list li { display: flex; gap: 10px; align-items: baseline; margin: 6px 0; line-height: 1.35; }
.login { max-width: 24rem; margin: 0 auto; padding-top: 8px; }
.login h2 { margin-top: 20px; }
.login-more { max-width: 24rem; margin: 32px auto 0; padding-top: 4px; border-top: 1px solid var(--line); }
.login-more p { margin: 0 0 12px; }
.narrow { max-width: 34rem; } /* formularze rodzica: konta, hasło */
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input, .answer-input, .field select {
  width: 100%; min-height: 3.25rem; padding: 12px 14px; font-size: max(16px, 1.125rem); /* ≥ 16 px: iPhone nie powiększa strony */
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: inherit;
}
.field select { font-size: max(16px, 1.0625rem); }
.field input:focus, .answer-input:focus, .field select:focus { outline: 3px solid var(--accent-a30); border-color: var(--accent); }
.error { color: var(--err); margin: 12px 0 0; min-height: 1.4em; }
.field-label { font-size: 0.9375rem; font-weight: 600; }
.field-hint { font-size: 0.875rem; color: var(--muted); margin: 0; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice {
  min-height: 3.25rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  font-size: 1.1875rem; font-weight: 650; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.08s ease, border-color 0.15s;
}
.choice:active { transform: scale(0.97); }
.filters .choice { font-size: 1.0625rem; }
.choice { overflow-wrap: normal; min-width: 0; }
.choice[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ok-msg { color: var(--ok); margin: 12px 0 0; min-height: 1.4em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Panel „Użytkownicy”: hasło tymczasowe (widoczne raz) i lista faktów o koncie. */
.secret { margin: 16px 0; padding: 14px 16px; border: 2px solid var(--accent); border-radius: 14px; background: var(--card); }
.secret-label { margin: 0; font-size: 0.875rem; color: var(--muted); }
.secret-value { margin: 0 0 10px; font-size: 1.375rem; font-weight: 800; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.stats + .tiles { margin-top: 14px; }
.facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.facts li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 0.9375rem; }
.facts li span:last-child { color: var(--muted); }
.pw-rules { list-style: none; padding: 0; margin: 2px 0 4px; display: grid; gap: 6px; font-size: 0.9375rem; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 8px; }
.pw-mark { flex: none; width: 1.25rem; height: 1.25rem; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; }
.pw-rules li.ok { color: var(--ink); }
.pw-rules li.ok .pw-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.field-head { display: flex; align-items: center; gap: 4px; }
.field-head .spacer { flex: 1; }
.check-list { display: grid; gap: 8px; }
.check-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 3.25rem; padding: 10px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
  transition: transform 0.08s ease, border-color 0.15s;
}
.check-row:active { transform: scale(0.99); }
.check-box { flex: none; width: 1.5rem; height: 1.5rem; border: 2px solid var(--line); border-radius: 7px; display: grid; place-items: center; }
.check-row[aria-checked="true"] { border-color: var(--accent); }
.check-row[aria-checked="true"] .check-box { background: var(--accent); border-color: var(--accent); }
.check-row[aria-checked="true"] .check-box::after { content: "✓"; color: var(--accent-ink); font-size: 0.9375rem; font-weight: 800; line-height: 1; }
.check-text { display: grid; min-width: 0; }
.check-label { font-weight: 600; }
.check-meta { font-size: 0.875rem; color: var(--muted); }

/* ===== Postępy: filtry, liczby, wykres, tabela ===== */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.stat { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.stat-value { font-size: clamp(1.25rem, 6vw, 1.625rem); font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.875rem; color: var(--muted); }
.donut { display: grid; gap: 14px; justify-items: center; margin-top: 10px; }
.donut-svg { width: min(15rem, 70vw); height: auto; overflow: visible; }
.donut-track { fill: none; stroke: var(--line); stroke-width: 26; }
.donut-seg { fill: none; stroke-width: 26; transform: rotate(-90deg); transform-origin: 100px 100px; cursor: pointer; outline: none; }
.donut-seg:hover, .donut-seg:focus { stroke-width: 30; }
.donut-num { font-size: 34px; font-weight: 750; fill: var(--ink); }
.donut-txt { font-size: 13px; fill: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; width: 100%; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.legend-dot { width: 14px; height: 14px; border-radius: 4px; }
.legend-num { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 640px) {
  .donut { grid-template-columns: auto minmax(0, 1fr); justify-items: stretch; align-items: center; gap: 24px; }
  .donut-svg { width: 13rem; }
}
.stats-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9375rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stats-table th, .stats-table td { padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table thead th { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.stats-table tr.topic-row td { font-weight: 700; background: var(--line-a35); }
.stats-table tr.rule-row td:first-child { padding-left: 20px; }
.stats-table tr.total-row td { font-weight: 750; border-bottom: none; }
.stats-table .sub { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.stats-table .weak { color: var(--err); font-weight: 700; }
/* Laptop / tablet poziomo: filtry po lewej (przyklejone), wyniki po prawej */
@media (min-width: 900px) {
  .progress-page { display: grid; grid-template-columns: minmax(17rem, 21rem) minmax(0, 1fr); gap: 36px; align-items: start; }
  .progress-page .filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 0 6px 12px 2px; }
  .progress-page .results-area > .stats:first-child { margin-top: 14px; }
}

/* Strona główna */
.subject h2 { margin-top: 24px; }

/* Wyniki (rodzic) */
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.results li {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 0.9375rem;
}
.results .who { font-weight: 700; }
.results .what { flex: 1; min-width: 10rem; color: var(--muted); }
.results .score { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== Quiz ===== */
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.progress > span { display: block; height: 100%; background: var(--accent); transition: width 0.25s; }
.counter { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.q { margin-top: 18px; }
.q .prompt { font-size: 1.1875rem; font-weight: 600; margin: 0 0 10px; }
.q .emoji { font-size: 4rem; line-height: 1; text-align: center; margin: 4px 0 8px; }
.q .show {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: center; font-size: 1.625rem; font-weight: 700; line-height: 1.3;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.q .show.text { font-size: 1.25rem; font-weight: 600; }
/* zegar wskazówkowy (public/lib/clock.js): tarcza w kolorach strony, wskazówki – godzinowa krótka i gruba */
.show-clock { display: grid; place-items: center; }
.clock { display: block; width: min(13rem, 62vw); height: auto; }
.clock-sm { display: inline-block; width: 6.5rem; vertical-align: middle; margin: 4px 0 0 8px; }
.clock-face { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.clock-tick { stroke: var(--muted); stroke-width: 1.5; }
.clock-tick-h { stroke: var(--ink); stroke-width: 3; }
.clock-num { fill: var(--ink); stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; font-weight: 700; font-family: inherit; }
.clock-hand { stroke: var(--ink); }
.clock-hand-h { stroke-width: 8; }
.clock-hand-m { stroke: var(--accent); stroke-width: 5; }
.clock-pin { fill: var(--ink); }

/* dane w pytaniu (public/lib/dane.js): tabela, wykres słupkowy, oś liczbowa */
.q .show.show-data, body.big .q .show.show-data, .flashcard .show.show-data, body.big .flashcard .show.show-data { font-size: 1.0625rem; font-weight: 400; letter-spacing: 0; padding: 14px 12px; text-align: left; overflow-wrap: normal; }
.data-table { border-collapse: collapse; margin: 0 auto; font-variant-numeric: tabular-nums; line-height: 1.3; }
.data-table caption { font-weight: 600; margin-bottom: 0.4rem; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 0.4rem 0.75rem; }
.data-table thead th { background: var(--accent-a10); font-weight: 700; }
.data-table tbody th { font-weight: 600; text-align: left; }
.data-table td { text-align: right; }
.bars { margin: 0; display: grid; gap: 0.35rem; font-variant-numeric: tabular-nums; }
.bars figcaption { font-weight: 600; margin-bottom: 0.3rem; text-align: center; }
.bars-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.6rem; align-items: center; padding-right: 1.4rem; }
.bars-label { font-weight: 600; text-align: right; line-height: 1.2; }
.bars-track { position: relative; height: 1.75rem; }
.bars-grid span { position: absolute; top: -0.2rem; bottom: -0.2rem; width: 1px; background: var(--line); }
.bar { position: absolute; left: 0; top: 0.2rem; bottom: 0.2rem; background: var(--accent); border-radius: 0 6px 6px 0; }
.bars-value { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 0.9375rem; }
.bars-foot .bars-label { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.bars-foot .bars-track { height: 1.2rem; }
.bars-scale span { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.axis { padding: 0 1.5rem; font-variant-numeric: tabular-nums; }
.axis-inner { padding-right: 1.5rem; }
.axis-line { position: relative; height: 2px; background: var(--ink); margin: 1.4rem 0 2.1rem; }
.axis-line::before { content: ""; position: absolute; left: 100%; top: 0; width: 1.3rem; height: 2px; background: var(--ink); }
.axis-line::after { content: ""; position: absolute; left: calc(100% + 1.3rem - 4px); top: -6px; border-left: 12px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.axis-has-pts .axis-line { margin-top: 2.5rem; }
.axis-has-slots .axis-line { margin-top: 5rem; }
.axis-tick { position: absolute; top: -6px; width: 2px; height: 14px; margin-left: -1px; background: var(--ink); }
.axis-tick-l { top: -9px; height: 20px; }
.axis-num { position: absolute; top: 15px; transform: translateX(-50%); font-weight: 700; white-space: nowrap; }
.axis-pt { position: absolute; top: -8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--accent); border: 3px solid var(--card); box-sizing: border-box; }
.axis-pt-name { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); font-weight: 800; color: var(--accent); font-size: 1.125rem; }
.axis-slot {
  position: absolute; bottom: 16px; transform: translateX(-50%); min-width: 2.75rem; min-height: 2.75rem; padding: 0 6px;
  display: flex; align-items: center; justify-content: center; border: 2px dashed var(--accent); border-radius: 10px;
  background: var(--card); font-weight: 700; white-space: nowrap; box-sizing: border-box;
}
.axis-slot::after { content: ""; position: absolute; top: 100%; left: 50%; width: 2px; height: 14px; margin-left: -1px; background: var(--accent); }
.axis-slot:empty::before { content: "?"; color: var(--muted); }
.axis-slot.over { background: var(--accent-a14); }
.axis-slot.done { border-style: solid; border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.axis-slot.done::after { background: var(--ok); }
/* działanie pisemne w słupku (public/lib/slupek.js): kratka jak w zeszycie, kolumna = cyfra */
.col-op-box { display: flex; justify-content: center; overflow-x: auto; --col-w: 1.75rem; font-size: 1.5rem; }
.col-grid {
  display: grid; position: relative; padding: 0 var(--col-w); font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1;
  background-image: linear-gradient(var(--col-kratka) 1px, transparent 1px), linear-gradient(90deg, var(--col-kratka) 1px, transparent 1px);
  background-size: var(--col-w) var(--col-w); background-position: 0 0;
}
.col-c { display: flex; align-items: center; justify-content: center; position: relative; }
.col-op { color: var(--muted); font-weight: 700; }
.col-mul { font-size: 1.6em; font-weight: 900; }
.col-carry { font-size: 0.55em; color: var(--accent); align-items: flex-end; padding-bottom: 0.15em; font-weight: 700; }
.col-struck::after { content: ""; position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; background: var(--err); transform: rotate(-30deg); }
.col-zero { color: var(--muted); }
.col-rest { color: var(--accent); }
.col-line { align-self: start; border-top: 2px solid var(--ink); margin-top: -1px; }
.col-blank, .col-box { margin: 2px; border: 2px dashed var(--accent); border-radius: 6px; background: var(--card); color: var(--accent); }
.col-box.col-empty { border-style: dashed; }
.col-box.next { border-style: solid; background: var(--accent-a14); }
.col-input { position: relative; z-index: 1; align-self: stretch; opacity: 0; width: 100%; height: 100%; font-size: 16px; border: 0; padding: 0; caret-color: transparent; }
.col-op-box.correct .col-box { border-color: var(--ok); color: var(--ok); }
.col-op-box.correct .col-box { background: var(--ok-bg); border-style: solid; }
.col-op-box.wrong .col-box { border-color: var(--err); color: var(--err); background: var(--err-bg); border-style: solid; }
.col-note {
  position: relative; z-index: 2; width: auto; min-width: 0; margin: 0; padding: 0; border: 2px dashed var(--accent); border-radius: 6px; opacity: 0.6;
  background: transparent; color: var(--accent); font: inherit; font-size: 16px; font-weight: 700; text-align: center; -webkit-appearance: none; appearance: none;
}
.col-note:focus { outline: 2px solid var(--accent); border-style: solid; opacity: 1; }
.col-note:not(:placeholder-shown), .col-note:disabled { opacity: 1; }
.col-note:disabled { border-color: transparent; }
.q .show.show-col, .flashcard .show.show-col { padding: 14px 8px; letter-spacing: 0; }
.col-op-box.data-sm { --col-w: 1.25rem; font-size: 1rem; justify-content: flex-start; }
.col-op-box.data-sm .col-carry { font-size: 0.75rem; }
/* wpisywanie w słupek: kratki min. 44 px – cel dotyku dla notatek i wyniku */
.col-op-box.col-entry { --col-w: max(2.75rem, 44px); font-size: 1.75rem; }
.col-op-box.col-entry .col-grid { padding: 0; }
.data-sm { font-size: 0.8125rem; }
.bars.data-sm, .axis.data-sm { flex: 1 1 100%; width: 100%; max-width: 22rem; }
.m-q .data-sm { margin: 6px 0 0; }
.m-q .data-table.data-sm { margin-left: 0; }
.m-q .data-table.data-sm th, .m-q .data-table.data-sm td { padding: 0.2rem 0.5rem; }
.bars.data-sm .bars-track { height: 1.1rem; }
.bars.data-sm .bars-row { grid-template-columns: 4.5rem minmax(0, 1fr); }
.axis.data-sm .axis-line { margin: 1rem 0 1.6rem; }
.axis.data-sm.axis-has-pts .axis-line { margin-top: 1.9rem; }
.axis.data-sm .axis-pt-name { font-size: 0.9375rem; }
.word { white-space: nowrap; }
.word.sentence { white-space: normal; }
.word.sentence .gap { white-space: nowrap; }
.gap {
  display: inline-block; min-width: 1.1em; padding: 0 1px; margin: 0;
  border-bottom: 3px solid var(--accent); color: var(--accent);
}
.gap.gap-blank { min-width: 0; padding: 0; border-bottom: 0; white-space: pre; }
/* odpowiedzi: jedna pod drugą na telefonie, obok siebie gdy jest miejsce */
.options { display: grid; gap: 10px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.option {
  position: relative; width: 100%; min-height: 3.5rem; padding: 12px 16px; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: 14px; font-size: 1.0625rem; line-height: 1.3;
  transition: transform 0.08s ease, border-color 0.15s;
}
.option:active:not(:disabled) { transform: scale(0.98); }
.option .kbd { position: absolute; top: 8px; right: 10px; }
.option.correct { border-color: var(--ok); background: var(--ok-bg); }
.option.wrong { border-color: var(--err); background: var(--err-bg); }
.option:disabled { cursor: default; }
.option:disabled:not(.correct):not(.wrong) { opacity: 0.6; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.input-row.input-row-solo { grid-template-columns: 1fr; }
.answer-input.correct { border-color: var(--ok); background: var(--ok-bg); }
.answer-input.wrong { border-color: var(--err); background: var(--err-bg); }

.feedback { margin-top: 16px; border-radius: 14px; padding: 14px 16px; }
.feedback.ok { background: var(--ok-bg); }
.feedback.err { background: var(--err-bg); }
.feedback .head { font-weight: 700; font-size: 1.125rem; }
.feedback.ok .head { color: var(--ok); }
.feedback.err .head { color: var(--err); }
.feedback p { margin: 6px 0 0; }

/* Podsumowanie */
.summary { text-align: center; padding-top: 12px; }
.summary .stars { font-size: 2.75rem; letter-spacing: 6px; margin: 8px 0; }
.summary .big-score { font-size: 3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.mistakes { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; text-align: left; }
.mistakes li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mistakes .m-q { font-weight: 700; }
.mistakes .m-a { font-size: 0.9375rem; margin-top: 4px; }
.mistakes .m-e { font-size: 0.9375rem; color: var(--muted); margin-top: 4px; }
.saved { font-size: 0.875rem; color: var(--muted); margin-top: 14px; }

/* Zasady (przypomnienie i omówienie błędów) – dwie kolumny, gdy jest miejsce */
.rules, .review { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.rule {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow);
}
.rule.weak { border-color: var(--err-a45); }
.rule-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
/* nazwa zasady jako mały kafelek w kolorze klasy (ruleChip w ui.js) – jak etykiety na kafelku tematu */
.rule-chip {
  display: inline-block; max-width: 100%; padding: 5px 12px; border-radius: 10px; border: 1px solid var(--chip-line); background: var(--chip-bg);
  color: var(--ink); font-size: 1.0625rem; font-weight: 750; line-height: 1.25;
}
.rule-chip-sm { padding: 2px 8px; border-radius: 8px; font-size: 0.9375rem; font-weight: 700; vertical-align: baseline; }
.rule-text { margin-top: 4px; }
.rule-ex { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; font-style: italic; }
.rule-group { grid-column: 1 / -1; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 10px; }
/* duża powtórka: zasady bez błędów jako etykiety w grupie (app.js, COMPACT_RULES) */
.rule-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.badge-warn {
  font-size: 0.8125rem; font-weight: 600; color: var(--err); background: var(--err-bg);
  border-radius: 99px; padding: 2px 10px;
}
.note { font-size: 0.9375rem; color: var(--muted); margin: 12px 0 0; }
.feedback .rule-ref { font-size: 0.9375rem; color: var(--muted); line-height: 1.8; }
.rule .mistakes { margin-top: 12px; }
.rule .mistakes li { background: var(--bg); border: 0; padding: 10px 12px; }
.m-a .bad { color: var(--err); font-weight: 700; }
.m-a .good { color: var(--ok); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--ok-bg); color: var(--ok); border-radius: 99px; padding: 6px 12px; font-size: 0.9375rem; font-weight: 600; }

/* ===== Fiszki ===== */
.flashcard {
  margin-top: 16px; background: var(--card); border: 2px solid var(--line); border-radius: 22px;
  padding: 20px 16px; text-align: center; box-shadow: var(--shadow); min-height: 13.75rem;
}
.flashcard .prompt { font-size: 1.125rem; font-weight: 600; margin: 0 0 8px; }
.flashcard .emoji { font-size: 4rem; line-height: 1; margin: 4px 0 8px; }
.flashcard .show { border: 0; padding: 8px 0; font-size: 1.75rem; font-weight: 700; overflow-wrap: anywhere; }
.flashcard .show.text { font-size: 1.25rem; font-weight: 600; }
.flashcard.flipped { border-color: var(--accent); }
.flash-back { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; animation: fade 0.25s ease; }
.flash-answer { font-size: 1.625rem; font-weight: 800; color: var(--accent); overflow-wrap: anywhere; }
.flash-back p { margin: 8px 0 0; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ===== Przeciąganie ===== */
.dd-prompt { font-size: 1.125rem; font-weight: 600; margin: 12px 0; }
.baskets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0;
}
.basket {
  min-height: 7.5rem; border: 3px dashed var(--line); border-radius: 20px; padding: 10px;
  background: var(--card); text-align: center; transition: border-color 0.15s, background 0.15s;
}
.basket-label { font-size: 2.25rem; font-weight: 800; line-height: 1.2; }
.basket-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.basket .chip { font-size: 0.875rem; padding: 4px 10px; }
.basket.over, .pair-row.over { border-color: var(--accent); background: linear-gradient(var(--accent-a10), var(--accent-a10)), var(--card); }
.pool { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dd-card {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; min-height: 3.5rem; max-width: 100%;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px; font-size: 1.25rem; font-weight: 700;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab;
  transition: border-color 0.15s;
}
.dd-card.token { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.dd-emoji { font-size: 1.75rem; }
.dd-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-a30); }
.dd-card.dragging { opacity: 0.35; }
.ghost { position: fixed; z-index: 50; pointer-events: none; margin: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); cursor: grabbing; }
.shake { animation: shake 0.4s; border-color: var(--err); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.dd-feedback { min-height: 1.6em; margin-top: 12px; padding: 0 2px; font-size: 1rem; }
.dd-feedback.ok { color: var(--ok); font-weight: 700; }
.dd-feedback.err { color: var(--err); }
.pairs { display: grid; gap: 8px; }
.dd-axis { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 0 4px; }
.dd-axis .picking .axis-slot:not(.done) { background: var(--accent-a10); }
.dd-axis + .tray, .dd-axis + .tray .pool { margin-top: 14px; }
/* wiersz pary: pytanie i miejsce na odpowiedź obok siebie (niskie wiersze – więcej mieści się na telefonie) */
.pair-row {
  display: grid; gap: 6px 10px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 8px 10px;
  transition: border-color 0.15s, background 0.15s;
}
.pair-left { font-weight: 700; font-size: 1.0625rem; overflow-wrap: anywhere; }
.slot { min-height: 2.75rem; display: flex; align-items: center; border: 2px dashed var(--line); border-radius: 10px; padding: 6px 10px; color: var(--muted); font-size: 0.9375rem; }
.tray { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); background: var(--bg); }
.tray .dd-feedback { margin-top: 8px; }
.tray .dd-feedback:empty { display: none; }
.tray .pool { margin-top: 8px; }
.tray .dd-card { padding: 10px 14px; min-height: 3rem; }
.pairs.picking .pair-row:not(.done) .slot { border-color: var(--accent); }
.slot:empty::before { content: "upuść tutaj"; }
.pair-row.done { border-color: var(--ok); background: var(--ok-bg); }
.pair-row.done .slot { border-style: solid; border-color: var(--ok); color: var(--ok); font-weight: 700; }
/* Telefon / tablet w pionie: tacka z odpowiedziami przyklejona na dole – zawsze pod palcem */
@media (max-width: 899px) and (min-height: 560px) {
  .tray {
    position: sticky; bottom: 0; z-index: 5; max-height: 40vh; max-height: 40dvh; overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: max(10px, env(safe-area-inset-bottom)); margin-bottom: -24px; box-shadow: 0 -8px 16px -12px rgba(0, 0, 0, 0.25);
  }
  .tray .pool { gap: 8px; }
  .tray .dd-card { padding: 8px 12px; min-height: 2.75rem; font-size: 0.9375rem; }
}
/* Laptop, tablet poziomo i telefon poziomo: pary po lewej, tacka po prawej (przyklejona u góry) */
@media (min-width: 900px), (orientation: landscape) and (min-width: 600px) and (max-height: 559px) {
  .dd-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 20rem); gap: 20px; align-items: start; }
  .tray { position: sticky; top: 12px; margin-top: 0; padding: 0; border-top: 0; max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; }
  .tray .dd-feedback { margin-top: 0; }
  .tray .pool { margin-top: 0; }
  .tray .dd-feedback:not(:empty) + .pool { margin-top: 8px; }
}

/* ===== Klasa 2: większe litery i przyciski ===== */
body.big { font-size: 1.1875rem; }
body.big .q .prompt { font-size: 1.375rem; text-align: center; }
body.big .q .emoji, body.big .flashcard .emoji { font-size: clamp(4rem, 22vw, 6rem); }
body.big .q .show, body.big .flashcard .show { font-size: clamp(2rem, 10.5vw, 2.75rem); letter-spacing: 0.04em; }
body.big .options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 14px; }
body.big .option { min-height: 6rem; font-size: 2.5rem; font-weight: 800; text-align: center; border-width: 3px; border-radius: 22px; }
body.big .option.option-mid { font-size: 2rem; overflow-wrap: normal; }
body.big .option.option-text { font-size: 1.375rem; padding-left: 10px; padding-right: 10px; overflow-wrap: normal; }
.show .word.long { font-size: 0.78em; letter-spacing: 0; }
.show .word.sentence { font-size: 0.72em; letter-spacing: 0; line-height: 1.3; }
body.big .feedback .head { font-size: 1.375rem; }
body.big .btn { min-height: 4rem; font-size: 1.25rem; border-radius: 18px; }
body.big .btn-sm { min-height: 3.25rem; font-size: 1.125rem; }
body.big .tile { min-height: 6rem; }
body.big .tile-ico { width: 4rem; height: 4rem; font-size: 2.25rem; }
body.big .tile-title { font-size: 1.375rem; }
body.big .tile-desc { font-size: 1rem; }
body.big .tile-chip { font-size: 0.875rem; padding: 2px 9px; }
body.big .tile-status { font-size: 0.875rem; }
body.big .tile-compact { min-height: 0; }
body.big .rule-chip { font-size: 1.3125rem; }
body.big .rule-chip-sm { font-size: 1.0625rem; }
body.big .rule-text { font-size: 1.1875rem; }
body.big .rule-ex { font-size: 1.125rem; }
body.big .flash-answer { font-size: 2.375rem; }
body.big .dd-card { font-size: 1.625rem; min-height: 4rem; }
body.big .basket-label { font-size: 2.75rem; }

/* ===== Telefon poziomo (mało wysokości): mniejsze obrazki i nagłówki, żeby pytanie i odpowiedzi mieściły się razem ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .clock { width: min(9.5rem, 38vh); }
  body { padding-top: max(10px, env(safe-area-inset-top)); }
  h1 { font-size: 1.5rem; }
  h2 { margin-top: 18px; }
  .welcome { padding-top: 0; }
  .welcome h1 { font-size: 1.75rem; }
  .q { margin-top: 8px; }
  .q .emoji, .flashcard .emoji { font-size: 2.5rem; margin: 0 0 4px; }
  body.big .q .emoji, body.big .flashcard .emoji { font-size: 3rem; }
  body.big .q .show, body.big .flashcard .show { font-size: 2.25rem; }
  .q .show { padding: 10px 16px; }
  body.big .option { min-height: 4.25rem; font-size: 2.25rem; }
  body.big .option.option-mid { font-size: 1.875rem; }
  .flashcard { min-height: 0; padding: 12px 16px; }
  .basket { min-height: 4.75rem; padding: 6px; }
  .basket-label { font-size: 1.75rem; }
  body.big .basket-label { font-size: 2rem; }
  .baskets { padding: 4px 0; }
  .summary .stars { font-size: 2rem; margin: 2px 0; }
  .summary .big-score { font-size: 2.25rem; }
  .tile { min-height: 4.25rem; padding: 10px 14px; }
  body.big .tile { min-height: 4.75rem; }
}

/* ===== Myszka / gładzik (laptop, iPad z gładzikiem): podświetlenie po najechaniu i podpowiedzi klawiszy ===== */
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { border-color: var(--accent); }
  .btn-primary:hover:not(:disabled), .btn-success:hover:not(:disabled) { filter: brightness(1.08); }
  .btn-quiet:hover:not(:disabled) { color: var(--ink); background: var(--accent-a10); }
  .btn-danger:hover:not(:disabled) { border-color: var(--err); background: var(--err-bg); }
  .tile:hover:not(:disabled) { border-color: var(--accent); }
  .option:hover:not(:disabled), .choice:hover, .check-row:hover, .dd-card:hover { border-color: var(--accent); }
  .kbd { display: inline-flex; }
  .kbd-hint { display: block; }
  .option { padding-right: 2.75rem; }
  body.big .option { padding-left: 2.75rem; }
  body.big .option .kbd { top: 10px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .flash-back, .shake { animation: none; }
  .btn, .tile, .option, .choice, .check-row, .progress > span { transition: none; }
}
