:root {
  --bg: #fdf8f0;
  --card: #ffffff;
  --text: #2b2118;
  --muted: #7a6a5a;
  --red: #c8102e;
  --red-soft: #fbe5e8;
  --yellow: #f1bf00;
  --yellow-soft: #fff4cc;
  --green: #1f8a4c;
  --green-soft: #e1f4e8;
  --border: #ecdfcf;
  --shadow: 0 2px 10px rgba(80, 50, 20, 0.08);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1814;
    --card: #28221c;
    --text: #f3ebe1;
    --muted: #b3a493;
    --red-soft: #4a1d24;
    --yellow-soft: #4a3d10;
    --green-soft: #183d28;
    --border: #3d342b;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }

.es {
  direction: ltr;
  unicode-bidi: isolate;
  cursor: pointer;
}
b.es { color: var(--red); }
b.es:hover { text-decoration: underline dotted; }

/* כותרת */
.topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--red), #e0442c);
  color: #fff;
  border-bottom: 5px solid var(--yellow);
}
.logo { font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.logo .es { color: var(--yellow); }
.topbar nav a {
  text-decoration: none; padding: 6px 12px; border-radius: 8px; font-weight: 500;
}
.topbar nav a:hover, .topbar nav a.active { background: rgba(255,255,255,0.2); }

main { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 0 16px 24px; }

h1, h2, h3 { margin: 0.2em 0 0.5em; line-height: 1.3; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* סטטיסטיקה */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { text-align: center; }
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--red); }
.stat .lbl { color: var(--muted); font-size: 0.9rem; }

.wotd {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: var(--yellow-soft); border-color: var(--yellow);
  margin-bottom: 22px;
}
.wotd .big { font-size: 1.8rem; font-weight: 700; }

/* קטגוריות */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cat .head { display: flex; align-items: center; gap: 10px; }
.cat .icon { font-size: 2rem; }
.cat h3 { margin: 0; }
.cat .sub { color: var(--muted); font-size: 0.9rem; }
.bar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 10px 0 12px; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--yellow), var(--green)); transition: width .4s; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }

.btn {
  font: inherit; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  padding: 7px 14px; border-radius: 10px; font-weight: 500;
  text-decoration: none; display: inline-block;
  transition: transform .08s, background .15s;
}
.btn:hover { background: var(--yellow-soft); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #a50d26; }
.btn.good { background: var(--green); border-color: var(--green); color: #fff; }
.btn.small { padding: 4px 10px; font-size: 0.9rem; }
.btn.lg { padding: 12px 22px; font-size: 1.05rem; }
.speak { border: none; background: none; cursor: pointer; font-size: 1.3rem; padding: 2px 6px; border-radius: 8px; }
.speak:hover { background: var(--yellow-soft); }

.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.back { text-decoration: none; color: var(--muted); }

/* רשימת מילים */
.words { display: grid; gap: 8px; }
.word {
  display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: center; gap: 12px;
  padding: 10px 14px;
}
.word .es-word { font-weight: 700; font-size: 1.15rem; }
.word .pron { color: var(--muted); font-size: 0.9rem; }
.word.known { border-inline-start: 5px solid var(--green); }
.check { cursor: pointer; font-size: 1.2rem; background: none; border: none; }
@media (max-width: 560px) {
  .word { grid-template-columns: auto 1fr auto; }
  .word .he-col { grid-column: 2; }
}

/* כרטיסיות */
.flash-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.flashcard {
  width: min(440px, 100%); height: 260px; perspective: 1000px; cursor: pointer;
}
.flashcard .inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .5s; transform-style: preserve-3d;
}
.flashcard.flipped .inner { transform: rotateY(180deg); }
.flashcard .face {
  position: absolute; inset: 0; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border-radius: 20px; padding: 20px; text-align: center;
  background: var(--card); border: 2px solid var(--border); box-shadow: var(--shadow);
}
.flashcard .back-face { transform: rotateY(180deg); background: var(--yellow-soft); border-color: var(--yellow); }
.flashcard .main { font-size: 2.1rem; font-weight: 700; }
.flashcard .hint { color: var(--muted); font-size: 0.9rem; }
.progress-text { color: var(--muted); }

/* חידון */
.quiz { max-width: 560px; margin: 0 auto; }
.question { text-align: center; margin-bottom: 18px; }
.question .prompt { font-size: 2rem; font-weight: 700; }
.options { display: grid; gap: 10px; }
.option {
  font: inherit; font-size: 1.1rem; text-align: center; cursor: pointer;
  padding: 14px; border-radius: 12px; border: 2px solid var(--border); background: var(--card); color: var(--text);
}
.option:hover:not(:disabled) { border-color: var(--yellow); }
.option.correct { background: var(--green-soft); border-color: var(--green); }
.option.wrong { background: var(--red-soft); border-color: var(--red); }
.option:disabled { cursor: default; }
.feedback { text-align: center; min-height: 2em; margin: 14px 0; font-weight: 500; }
.feedback.ok { color: var(--green); }
.feedback.bad { color: var(--red); }

.result { text-align: center; }
.result .score { font-size: 3rem; font-weight: 700; color: var(--red); }

/* כתיבה */
.write-input {
  width: 100%; font: inherit; font-size: 1.4rem; padding: 12px 14px; text-align: center;
  border: 2px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text);
  direction: ltr;
}
.write-input:focus { outline: none; border-color: var(--yellow); }
.accents { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 10px 0; direction: ltr; }

/* דקדוק */
.grammar { display: grid; gap: 14px; }
.grammar details summary { cursor: pointer; font-size: 1.15rem; font-weight: 700; }
.grammar table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.grammar th, .grammar td { border: 1px solid var(--border); padding: 8px 10px; text-align: start; }
.grammar th { background: var(--yellow-soft); }
.tip { background: var(--green-soft); padding: 10px 14px; border-radius: 10px; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; border: none; background: var(--card); color: var(--text); padding: 6px 12px; cursor: pointer; }
.seg button.on { background: var(--red); color: #fff; }

.center { text-align: center; }
.muted { color: var(--muted); }

/* ================= מסלול הלימוד ================= */
.row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.small { font-size: 0.85rem; }

.path-page { max-width: 620px; margin: 0 auto; }
.hud {
  position: sticky; top: 8px; z-index: 5;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 16px; margin-bottom: 14px;
}
.hud-item { font-size: 1.15rem; display: flex; align-items: baseline; gap: 4px; }
.hud-item small { color: var(--muted); font-size: 0.75rem; }
.hud-goal { flex: 1; min-width: 160px; }
.hud-goal .lbl { font-size: 0.85rem; color: var(--muted); }
.hud-goal .bar { margin: 4px 0 0; }

.welcome { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; background: var(--yellow-soft); border-color: var(--yellow); }
.mascot { font-size: 2.6rem; line-height: 1; animation: bob 2.4s ease-in-out infinite; }
.mascot.big { font-size: 4.5rem; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-6deg); } }
.course-progress { text-align: center; margin: 4px 0 14px; }

.unit { margin-bottom: 10px; }
.unit-banner {
  background: var(--uc); color: #fff; border-radius: 18px; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}
.unit-banner h2 { margin: 0; }
.unit-num { font-size: 0.85rem; font-weight: 700; opacity: 0.9; }
.unit-desc { opacity: 0.95; }
.btn.guide { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); color: #fff; white-space: nowrap; }
.btn.guide:hover { background: rgba(255, 255, 255, 0.3); }

.nodes { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px 0 34px; }
.node-wrap { display: flex; flex-direction: column; align-items: center; position: relative; }
.node-wrap:has(.start-bubble) { margin-top: 34px; }
.node {
  width: 78px; height: 78px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 1.9rem; font-weight: 700; color: #fff; background: var(--uc);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.25); transition: transform .1s, box-shadow .1s;
}
.node:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.node.locked { background: #d8cfc4; color: #8a7f73; box-shadow: 0 7px 0 #b9ada0; }
.node.done { background: var(--uc); box-shadow: 0 7px 0 rgba(0,0,0,.25), 0 0 0 5px var(--yellow); }
.node.k-review { border-radius: 22px; }
.node.current { animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 7px 0 rgba(0,0,0,.25), 0 0 0 0 color-mix(in srgb, var(--uc) 50%, transparent); }
  50% { box-shadow: 0 7px 0 rgba(0,0,0,.25), 0 0 0 14px color-mix(in srgb, var(--uc) 0%, transparent); }
}
.start-bubble {
  position: absolute; top: -40px; white-space: nowrap;
  background: var(--card); border: 2px solid var(--border); border-radius: 10px;
  padding: 2px 10px; font-weight: 700; font-size: 0.85rem; color: var(--red);
  animation: bob 1.6s ease-in-out infinite;
}
.node-label { font-size: 0.85rem; color: var(--muted); margin-top: 10px; font-weight: 500; }
.node-stars { font-size: 0.7rem; letter-spacing: -2px; }

.modal-bg {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fade .15s;
}
.modal { max-width: 460px; width: 100%; max-height: 85vh; overflow: auto; animation: pop .2s; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--yellow-soft); border-radius: 99px; padding: 3px 12px; font-size: 0.9rem; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #2b2118; color: #fff; padding: 10px 18px; border-radius: 12px; z-index: 60; animation: pop .2s;
}

/* ================= מסך שיעור ================= */
body.in-lesson .topbar, body.in-lesson footer { display: none; }
body.in-lesson main { padding-top: 12px; }
.lesson { max-width: 640px; margin: 0 auto; padding-bottom: 150px; }
.lesson-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.x { background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; }
.lbar { flex: 1; height: 16px; margin: 0; }
.lbar > div { background: linear-gradient(90deg, var(--yellow), var(--green)); }
.hearts { font-weight: 700; color: var(--red); white-space: nowrap; }

.lesson-body.enter { animation: slidein .25s ease-out; }
@keyframes slidein { from { transform: translateX(-24px); opacity: 0; } }
.ex-title { font-size: 1.45rem; font-weight: 700; margin-bottom: 16px; }
.ex-prompt { margin-bottom: 20px; }
.prompt-es { font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prompt-he { font-size: 1.6rem; font-weight: 700; }
.badge-new { background: var(--yellow-soft); color: #9a6a00; border-radius: 99px; padding: 3px 14px; font-size: 1rem; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.choice, .tile, .tile-m {
  font: inherit; cursor: pointer; color: var(--text); background: var(--card);
  border: 2px solid var(--border); border-bottom-width: 4px; border-radius: 14px;
  transition: background .12s, border-color .12s, transform .08s;
}
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 1.15rem; text-align: start; }
.choice .num { border: 2px solid var(--border); border-radius: 8px; width: 28px; height: 28px; display: grid; place-items: center; font-size: 0.85rem; color: var(--muted); flex: none; }
.choice:hover:not(:disabled), .tile:hover:not(:disabled), .tile-m:hover:not(:disabled) { background: var(--yellow-soft); }
.choice:active, .tile:active, .tile-m:active { transform: translateY(2px); }
.choice.sel, .tile-m.sel { border-color: #2d7dd2; background: #e3effb; }
.choice.correct { border-color: var(--green); background: var(--green-soft); }
.choice.wrong { border-color: var(--red); background: var(--red-soft); }
@media (prefers-color-scheme: dark) { .choice.sel, .tile-m.sel { background: #1d3550; } }

.answer-line {
  min-height: 64px; border-bottom: 2px solid var(--border); border-top: 2px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 2px; margin-bottom: 22px; align-items: center;
}
.bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ltr { direction: ltr; }
.tile { padding: 8px 16px; font-size: 1.15rem; }
.tile.used { background: var(--border); color: transparent; border-color: var(--border); pointer-events: none; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.match .col { display: grid; gap: 10px; }
.tile-m { padding: 12px; font-size: 1.1rem; }
.tile-m.matched { opacity: 0.35; border-color: var(--green); background: var(--green-soft); }
.shake { animation: shake .4s; border-color: var(--red) !important; background: var(--red-soft) !important; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.blank { display: inline-block; min-width: 70px; border-bottom: 3px solid var(--yellow); color: var(--muted); text-align: center; }
.blank.filled { color: #2d7dd2; }
.listen-row { display: flex; justify-content: center; gap: 14px; }
.big-speak {
  font-size: 2.6rem; width: 110px; height: 110px; border-radius: 24px; cursor: pointer;
  background: #2d7dd2; border: none; box-shadow: 0 6px 0 #1f5a99; transition: transform .08s;
}
.big-speak.slow { font-size: 1.8rem; width: 76px; height: 76px; align-self: end; background: #6aa5e6; box-shadow: 0 5px 0 #3f7cbf; }
.big-speak:active { transform: translateY(4px); box-shadow: none; }

.intro-card { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 20px; }
.bubble {
  position: relative; background: var(--card); border: 2px solid var(--border); border-radius: 18px;
  padding: 20px 28px; text-align: center; min-width: 220px;
}
.big-es { font-size: 2.2rem; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 6px; }
.he-big { font-size: 1.5rem; margin-top: 6px; }
.bubble .pron { color: var(--muted); }

.lesson-foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: var(--card); border-top: 2px solid var(--border); padding: 18px 16px;
}
.lesson-foot.ok { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.lesson-foot.bad { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.lesson-foot .es { font-weight: 700; }
.foot-inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fm-title { font-size: 1.3rem; font-weight: 700; }
#fbtn { min-width: 150px; }
#fbtn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.bad { background: var(--red); border-color: var(--red); color: #fff; }

.finish { text-align: center; padding-top: 30px; }
.finish .stars { font-size: 2.2rem; letter-spacing: 6px; color: var(--yellow); }
.finish-stats { display: flex; justify-content: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.fs { border: 2px solid var(--yellow); border-radius: 14px; min-width: 110px; overflow: hidden; }
.fs .lbl { background: var(--yellow); color: #4a3500; font-weight: 700; font-size: 0.85rem; padding: 2px; }
.fs .val { font-size: 1.4rem; font-weight: 700; padding: 8px; }
.goal-line { margin-top: 10px; font-weight: 500; }
.finish .bar { max-width: 360px; margin: 8px auto 16px; }

@media (max-width: 560px) {
  .match { gap: 8px; }
  .node { width: 68px; height: 68px; }
  .unit-banner { flex-direction: column; align-items: flex-start; }
}

/* ================= התחברות ================= */
body.auth-screen .topbar, body.auth-screen footer { display: none; }
.auth-wrap { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 400px; padding: 26px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.big-logo { font-size: 2.2rem; font-weight: 700; color: var(--red); line-height: 1; }
.field { display: block; margin-bottom: 12px; font-weight: 500; }
.field input, .field select {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 1.05rem;
  padding: 10px 12px; border-radius: 10px; border: 2px solid var(--border); background: var(--card); color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--yellow); }
.inline { display: flex; gap: 6px; align-items: center; }
.inline input { flex: 1; margin-top: 4px; }
.btn.wide { width: 100%; }
.form-error { color: var(--red); min-height: 1.4em; margin: 4px 0 10px; font-weight: 500; }
.notice { background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.acct-row { margin: 4px 0; }

/* ================= ניהול ================= */
.role-badge { font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.role-admin { background: var(--red); color: #fff; }
.role-viewer { background: #2d7dd2; color: #fff; }
.role-student { background: var(--green-soft); color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.add-form { margin-bottom: 16px; border-color: var(--yellow); }
.user-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.user-card.blocked { opacity: 0.7; border-color: var(--red); }
.uc-head { display: flex; align-items: center; gap: 10px; }
.uc-name { flex: 1; min-width: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 6px; }
.tag { background: var(--bg); border: 1px solid var(--border); border-radius: 99px; padding: 1px 10px; font-size: 0.8rem; }
.tag-bad { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.uc-stats { display: flex; gap: 14px; font-weight: 500; }
.uc-stats + .bar { margin: 8px 0 10px; }
.uc-actions { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
.uc-actions select { font: inherit; font-size: 0.9rem; padding: 4px 8px; }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.creds { background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; padding: 12px; font-size: 1rem; white-space: pre-wrap; text-align: left; }

/* ================= ניווט ומובייל ================= */
.topbar nav { display: flex; gap: 2px; }
.topbar nav a { display: flex; align-items: center; gap: 5px; }
.nl { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .topbar { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); justify-content: center; }
  .topbar nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    justify-content: space-around; gap: 0;
    padding: 4px 4px max(4px, env(safe-area-inset-bottom));
  }
  .topbar nav a {
    flex: 1; flex-direction: column; gap: 0; padding: 4px 2px; border-radius: 10px;
    color: var(--muted); font-size: 0.72rem; min-width: 0;
  }
  .topbar nav a .ni { font-size: 1.35rem; line-height: 1.2; }
  .topbar nav a.active { color: var(--red); background: var(--red-soft); }
  .topbar nav a:hover { background: none; }
  .nl { max-width: 72px; }
  main { padding: 14px 12px 96px; }
  footer { padding-bottom: 90px; }
  h1 { font-size: 1.5rem; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat .num { font-size: 1.3rem; }
  .card { padding: 14px; }
  .hud { gap: 12px; top: 4px; }
  .user-list { grid-template-columns: 1fr; }
  .ex-title { font-size: 1.2rem; }
  .prompt-es { font-size: 1.5rem; }
  .choices { grid-template-columns: 1fr; }
  .choice { padding: 12px 14px; }
  .lesson-foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .foot-inner { flex-direction: column; align-items: stretch; }
  #fbtn { width: 100%; }
  .big-speak { width: 90px; height: 90px; }
}
