/* Leer-app */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: 0; z-index: 5; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; font-family: 'IvritPrint', Georgia, serif; font-weight: 700;
  font-size: 19px; color: var(--ink); text-decoration: none; }
.brand .he { color: var(--accent); font-size: 22px; }
.prefs { display: flex; gap: 8px; flex-wrap: nowrap; }
.prefs .seg button { padding: 5px 10px; font-size: 13px; min-height: 30px; }
@media (max-width: 520px) {
  .top { padding-bottom: 8px; gap: 8px; }
  .prefs { width: 100%; justify-content: space-between; }
}
.wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); }

/* Home */
.lesson-head { margin: 4px 0 16px; }
.lesson-head .kicker { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lesson-head h1 { font-size: 26px; margin: 2px 0 6px; }
.lesson-head .new { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; color: var(--muted); font-size: 14px; }
.lesson-head .new .he { font-size: 30px; color: var(--ink); }
.start { width: 100%; font-size: 18px; padding: 16px 20px; min-height: 58px; border-radius: var(--radius); margin: 6px 0 18px; }
.start small { font-weight: 500; opacity: .85; font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.step { width: 100%; display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: 10px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font: inherit;
  color: var(--ink); cursor: pointer; box-shadow: var(--shadow); min-height: 56px; }
.step:disabled { cursor: default; opacity: .55; box-shadow: none; }
.step .n { font-family: 'IvritPrint', serif; font-weight: 700; color: var(--accent); font-size: 18px; text-align: center; }
.step .t { font-weight: 600; }
.step .t small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.step .preview { font-size: 22px; color: var(--muted); max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--good); }
details.others { border-top: 1px solid var(--line); padding-top: 12px; }
details.others summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 6px 0; }
.lesson-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.lesson-list button { width: 100%; text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; min-height: 44px; }
.lesson-list button[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.empty { text-align: center; padding: 40px 10px; }

/* Oefenkaart */
.session-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.bar span { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 22px 16px 18px; text-align: center; min-height: 360px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.card .heb { font-size: clamp(56px, 22vw, 120px); line-height: 1.35; padding: 6px 4px; color: var(--ink); white-space: nowrap; max-width: 100%; }
.card .heb.word { font-size: clamp(44px, 14vw, 84px); white-space: normal; overflow-wrap: normal; word-break: keep-all; }
.card .hint { color: var(--muted); font-size: 15px; }
.reveal-tap { width: 100%; border: 2px dashed var(--line); background: transparent; border-radius: 14px; padding: 16px; font: inherit;
  color: var(--muted); cursor: pointer; font-size: 16px; min-height: 56px; }
.answer { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.answer .sound { font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.answer .name { color: var(--muted); font-size: 15px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.row .btn { flex: 1 1 140px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.choices button { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; font: inherit;
  font-size: 16px; color: var(--ink); cursor: pointer; min-height: 56px; }
.choices button.right { background: var(--good); color: #fff; border-color: transparent; }
.choices button.wrong { background: var(--bad); color: #fff; border-color: transparent; }
.choices button:disabled { cursor: default; }
.q { font-weight: 600; margin-top: 4px; }
.speakbtn { min-height: 44px; }
.summary { text-align: center; padding: 24px 8px; display: grid; gap: 14px; justify-items: center; }
.summary .big { font-size: 40px; font-family: 'IvritPrint', serif; font-weight: 700; color: var(--accent); }
.kbd-hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; }
@media (hover: none) { .kbd-hint { display: none; } }
@media (max-width: 400px) { .prefs .seg button { padding: 5px 8px; font-size: 12.5px; } }
