/* Ferentina — fresque pompéienne : rouge, ocre, enduit, encre, vert-de-gris */
@font-face { font-family: 'Gentium Book Plus'; src: url(../fonts/GentiumBookPlus-Regular.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gentium Book Plus'; src: url(../fonts/GentiumBookPlus-Italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gentium Book Plus'; src: url(../fonts/GentiumBookPlus-Bold.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Marcellus'; src: url(../fonts/Marcellus-Regular.woff2) format('woff2'); font-display: swap; }
:root {
  --rubrum: #8E2B21; --rubrum-d: #6B1F17; --rubrum-l: #F3DED8;
  --ochra: #C9973F; --ochra-l: #F1E2C2;
  --atr: #2B2420; --atr-2: #5E534B; --atr-3: #8C8178;
  --tect: #F4EEE3; --charta: #FBF8F2; --linea: #E3D8C6;
  --viridis: #3F6E5F; --viridis-l: #DCE9E2;
  --fs-scale: 1;
  --display: 'Marcellus', 'Trajan Pro', 'Times New Roman', serif;
  --text: 'Gentium Book Plus', 'Gentium Plus', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --band-h: 60px; --nav-h: 0px;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--band-h) + env(safe-area-inset-top, 0px)); }
body { background-color: var(--tect); background-image: radial-gradient(rgba(142,43,33,.07) 1px, transparent 1.2px); background-size: 22px 22px; color: var(--atr); font-family: var(--text); font-size: 17px; line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom, 0px); min-height: 100vh; }
img, svg { max-width: 100%; }
a { color: var(--rubrum); }
:focus-visible { outline: 3px solid var(--ochra); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }


/* ---------- Bandeau ---------- */
.band { position: sticky; top: 0; z-index: 20; color: #fff; background-color: var(--rubrum);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20'%3E%3Cpath d='M0 17H6V3H20V13H11V8H15' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'/%3E%3C/svg%3E");
  padding-top: env(safe-area-inset-top, 0px); border-bottom: 3px solid var(--ochra); }
.band-row { display: flex; align-items: center; gap: 12px; height: 60px; max-width: 1080px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; min-width: 0; margin-right: auto; }
.seal { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--tect); color: var(--rubrum);
  font-family: var(--display); font-size: 25px; line-height: 1; border-radius: 7px;
  box-shadow: inset 0 0 0 2px var(--rubrum), inset 0 0 0 4px var(--tect), inset 0 0 0 5px var(--ochra); }
.seal.big { width: 76px; height: 76px; font-size: 50px; border-radius: 12px; box-shadow: inset 0 0 0 3px var(--rubrum), inset 0 0 0 7px var(--tect), inset 0 0 0 9px var(--ochra); }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--display); font-size: 22px; letter-spacing: .07em; line-height: 1.1; }
.brand-sub { font-size: 13px; font-style: italic; opacity: .8; white-space: nowrap; }
.band-right { display: flex; align-items: center; gap: 4px; flex: none; }
.sync { font-size: 13px; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--viridis); white-space: nowrap; }
.sync.saving { color: var(--atr-2); }
.sync.offline { background: var(--ochra-l); color: #7A5512; }
.gear { background: none; border: 0; color: #fff; padding: 8px; border-radius: 10px; display: grid; place-items: center; }
.gear:hover { background: rgba(255,255,255,.12); }

/* Onglets du haut (grand écran) */
.tabs-top { display: flex; gap: 4px; }
.tabs-top .tab { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; color: rgba(255,255,255,.88); text-decoration: none; }
.tabs-top .tab-ic { display: none; }
.tabs-top .tab-la { font-family: var(--display); font-size: 17px; }
.tabs-top .tab-fr { font-size: 14px; opacity: .75; }
.tabs-top .tab:hover { background: rgba(255,255,255,.1); }
.tabs-top .tab.on { background: var(--tect); color: var(--rubrum); }
.tabs-top .tab.on .tab-fr { color: var(--atr-2); opacity: 1; }

/* Barre du bas (téléphone) */
.tabs-bottom { display: none; }
@media (max-width: 759px) {
  :root { --nav-h: 64px; }
  .tabs-top { display: none; }
  .tabs-bottom { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--charta); border-top: 1px solid var(--linea); box-shadow: 0 -2px 12px rgba(43,36,32,.06);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .tabs-bottom .tab { position: relative; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--atr-3); text-decoration: none; }
  .tabs-bottom .tab-la { font-family: var(--display); font-size: 13px; letter-spacing: .02em; }
  .tabs-bottom .tab-fr { display: none; }
  .tabs-bottom .tab.on { color: var(--rubrum); }
  .tabs-bottom .tab.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--rubrum); }
  .brand-sub { display: none; }
}

/* ---------- Contenu ---------- */
main { max-width: 780px; margin: 0 auto; outline: none;
  padding: 22px max(18px, env(safe-area-inset-right, 0px)) calc(var(--nav-h) + 110px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); }
.screen-head { margin: 4px 0 20px; }
.screen-head h1 { font-size: 36px; color: var(--rubrum); margin: 0 0 4px; letter-spacing: .02em; }
.screen-head p { color: var(--atr-2); margin: 0; max-width: 60ch; }
.muted { color: var(--atr-3); font-size: 15px; }
.small { font-size: 13px; }
.soon { color: var(--atr-2); background: rgba(255,255,255,.5); border: 1px dashed #D6C8B2; border-radius: var(--r); padding: 12px 14px; font-size: 15.5px; }
.loading { color: var(--atr-3); font-style: italic; }
.card { background: var(--charta); border: 1px solid var(--linea); border-radius: 14px; padding: 18px 18px 10px; margin: 0 0 16px; }
.card h2 { font-size: 21px; color: var(--atr); margin-bottom: 8px; }
.grid2 { display: grid; gap: 16px; }
.grid2 .card { margin: 0; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.btn { display: inline-block; background: var(--rubrum); color: #fff; border: 1px solid var(--rubrum); border-radius: 10px;
  padding: 11px 20px; font-size: 16.5px; text-decoration: none; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--rubrum-d); }
.btn.ghost { background: transparent; color: var(--rubrum); }
.btn.ghost:hover { background: var(--rubrum-l); }
.btn.small { padding: 7px 13px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--rubrum); padding: 4px; margin-left: auto; font-size: 15px; }
.back { display: inline-block; margin-bottom: 10px; text-decoration: none; font-size: 15.5px; }

/* Tampon */
.stamp { display: inline-block; font-family: var(--display); color: var(--rubrum); border: 2px solid var(--rubrum); border-radius: 4px;
  padding: 0 7px; letter-spacing: .1em; transform: rotate(-5deg); font-size: 12px; line-height: 1.6; opacity: .9; }
.stamp.big { font-size: 26px; padding: 2px 14px; border-width: 3px; margin: 8px 0; }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start;
  background: var(--charta); border: 1px solid var(--linea); border-radius: 18px; padding: 22px 20px 20px; margin-bottom: 18px;
  border-top: 5px solid var(--rubrum); }
.hero-n { font-family: var(--display); font-size: 64px; line-height: .9; color: var(--ochra); min-width: 1.2em; text-align: center; padding-top: 4px; }
.hero-k { margin: 0; color: var(--atr-3); font-size: 14.5px; }
.hero h1 { font-size: 30px; color: var(--rubrum); margin: 2px 0 0; }
.hero-fr { margin: 0 0 12px; color: var(--atr-2); }
.hero .btn { margin-top: 14px; }
@media (max-width: 420px) { .hero { grid-template-columns: 1fr; } .hero-n { text-align: left; font-size: 52px; } }
.tasks { list-style: none; padding: 0; margin: 0 0 8px; }
.tasks li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.tick { width: 22px; height: 22px; border: 2px solid #D6C8B2; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex: none; }
.tasks li.done .tick { background: var(--viridis); border-color: var(--viridis); color: #fff; }
.tasks li.done { color: var(--atr-3); text-decoration: line-through; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.stat { text-align: center; padding: 8px 4px; }
.stat-n { font-family: var(--display); font-size: 32px; color: var(--rubrum); line-height: 1.1; }
.stat-l { font-size: 13.5px; color: var(--atr-2); line-height: 1.25; }

/* ---------- Liste des chapitres ---------- */
.caps { display: grid; gap: 10px; }
@media (min-width: 700px) { .caps { grid-template-columns: 1fr 1fr; } }
.cap { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--charta); border: 1px solid var(--linea); border-radius: 14px; color: var(--atr); text-decoration: none; }
a.cap:hover { border-color: #D6C8B2; box-shadow: 0 2px 10px rgba(43,36,32,.06); }
.cap.current { border-left: 5px solid var(--ochra); padding-left: 12px; }
.cap-n { font-family: var(--display); color: var(--rubrum); font-size: 24px; text-align: center; }
.cap-body { display: flex; flex-direction: column; min-width: 0; }
.cap-t { font-size: 18.5px; line-height: 1.25; }
.cap-fr { font-size: 14px; color: var(--atr-3); }
.cap.locked { background: transparent; border-style: dashed; color: var(--atr-3); }
.cap.locked .cap-n { color: #BDB1A4; }
.lock { font-size: 13px; filter: grayscale(1); opacity: .5; }
.dots { display: flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--linea); }
.dots i.on { background: var(--viridis); }

/* ---------- Leçon ---------- */
.lesson-head { display: flex; gap: 16px; align-items: center; margin: 2px 0 16px; }
.lesson-n { flex: none; min-width: 64px; height: 64px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px;
  background: var(--rubrum); color: var(--tect); font-family: var(--display); font-size: 30px; box-shadow: inset 0 0 0 3px var(--rubrum), inset 0 0 0 5px var(--ochra); }
.lesson-head h1 { font-size: 30px; color: var(--rubrum); margin: 0; }
.lesson-head p { margin: 0; color: var(--atr-2); }
.summa { background: var(--ochra-l); border-radius: 14px; padding: 0 18px; margin: 0 0 18px; }
.summa summary { cursor: pointer; padding: 12px 0; list-style: none; display: flex; align-items: baseline; gap: 10px; }
.summa summary::-webkit-details-marker { display: none; }
.summa summary::after { content: '▾'; margin-left: auto; color: #7A5512; transition: transform .2s; }
.summa[open] summary::after { transform: rotate(180deg); }
.summa summary span[lang] { font-family: var(--display); color: #7A5512; font-size: 18px; letter-spacing: .05em; }
.summa-fr { color: #8C6A2A; font-size: 14.5px; }
.summa p { margin: 0 0 14px; }

/* Fil des étapes */
.trail { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; }
.trail::-webkit-scrollbar { display: none; }
.trail li { flex: 1 0 auto; position: relative; }
.trail li + li::before { content: ''; position: absolute; left: -2px; top: 22px; width: 4px; height: 2px; background: var(--linea); }
.trail a, .trail li > span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 8px 10px; text-decoration: none; color: var(--atr-2); border-radius: 12px; min-width: 76px; }
.trail a:hover { background: rgba(255,255,255,.6); }
.step-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--charta); border: 2px solid #D6C8B2; color: var(--viridis); }
.step-la { font-family: var(--display); font-size: 15px; color: var(--atr); white-space: nowrap; }
.step-fr { font-size: 12.5px; color: var(--atr-3); white-space: nowrap; }
.step.done .step-mark { background: var(--viridis); border-color: var(--viridis); color: #fff; }
.step.on a { background: var(--charta); box-shadow: inset 0 -3px 0 var(--rubrum); }
.step.on .step-mark { border-color: var(--rubrum); }
.step.on .step-la { color: var(--rubrum); }
.step.locked { opacity: .55; }
.step.locked .step-mark { font-size: 11px; filter: grayscale(1); }
.trail.compact { margin: 4px 0 0; }
.trail.compact li > span { min-width: 0; padding: 4px 6px; }
.trail.compact .step-mark { width: 22px; height: 22px; font-size: 11px; }
.trail.compact .step-la { font-size: 12.5px; }

/* ---------- Textes latins ---------- */
.textus { font-size: calc(min(19.5px, 5.1vw) * var(--fs-scale)); line-height: 1.78; max-width: 64ch; }
.textus-title { font-size: 21px; text-align: center; letter-spacing: .14em; color: var(--atr); margin: 6px 0 18px; }
.textus p { margin: 0 0 .9em; text-indent: 1.2em; }
.gl { text-decoration: underline dotted rgba(43,36,32,.36); text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: pointer; border-radius: 3px; transition: background .15s; }
.gl:hover, .gl.on { background: var(--ochra-l); text-decoration-color: var(--ochra); }
.card.check { margin-top: 18px; border-left: 5px solid var(--ochra); }
.notes { width: 100%; font: inherit; font-size: 16.5px; padding: 12px; border: 1px solid var(--linea); border-radius: 12px; background: var(--charta); color: var(--atr); resize: vertical; }

/* Lectures complémentaires */
.reading { background: var(--charta); border: 1px solid var(--linea); border-radius: 14px; margin: 0 0 12px; }
.reading summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 14px 16px; }
.reading summary::-webkit-details-marker { display: none; }
.reading-kind { grid-column: 1; font-size: 13.5px; color: var(--atr-3); }
.reading-t { grid-column: 1; font-family: var(--display); font-size: 19px; }
.reading-ok { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid #D6C8B2; color: transparent; font-size: 13px; }
.reading.read .reading-ok { background: var(--viridis); border-color: var(--viridis); color: #fff; }
.reading-body { padding: 0 16px 16px; }

/* Quiz */
.quiz-top { display: flex; justify-content: space-between; color: var(--atr-3); font-size: 14.5px; }
.quiz-bar { height: 4px; background: var(--linea); border-radius: 2px; margin: 6px 0 14px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: var(--ochra); transition: width .3s; }
.quiz-q { font-size: 21px; margin: 0 0 14px; }
.quiz-opts { display: grid; gap: 8px; margin-bottom: 12px; }
.opt { text-align: left; font-size: 17.5px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--linea); background: #fff; color: var(--atr); }
.opt:hover:not(:disabled) { border-color: var(--ochra); }
.opt.right { background: var(--viridis-l); border-color: var(--viridis); }
.opt.wrong { background: var(--rubrum-l); border-color: var(--rubrum); }
.opt:disabled { cursor: default; }
.quiz-fb { min-height: 1.4em; margin: 0 0 12px; }
.quiz-fb.ok b { color: var(--viridis); }
.quiz-fb.ko b { color: var(--rubrum); }
.quiz-end { text-align: center; padding: 10px 0 14px; }
.quiz-score { font-family: var(--display); font-size: 40px; color: var(--rubrum); margin: 4px 0; }

/* ---------- Vocabula ---------- */
.subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab { flex: none; display: flex; flex-direction: column; align-items: center; padding: 8px 16px; text-decoration: none; border-radius: 12px;
  background: rgba(255,255,255,.55); border: 1px solid var(--linea); color: var(--atr-2); line-height: 1.2; }
.subtab span[lang] { font-family: var(--display); color: var(--atr); font-size: 16px; }
.sub-fr { font-size: 12.5px; color: var(--atr-3); }
.subtab.on { background: var(--rubrum); border-color: var(--rubrum); }
.subtab.on span, .subtab.on .sub-fr { color: #fff; }
.words { display: grid; gap: 10px; }
@media (min-width: 700px) { .words { grid-template-columns: 1fr 1fr; } }
.word { background: var(--charta); border: 1px solid var(--linea); border-radius: 14px; padding: 14px 16px; }
.word-form { font-size: 22px; }
.word-la { font-style: italic; color: var(--atr-2); }
.word-fr { color: var(--atr-2); font-size: 15.5px; }
.word-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; }
.chip { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 12.5px; background: var(--linea); color: var(--atr-2); }
.chip.new { background: var(--ochra-l); color: #7A5512; }
.count { color: var(--atr-3); }
.empty { text-align: center; padding: 28px 8px; color: var(--atr-2); }

/* ---------- Réglages ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(43,36,32,.35); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--charta); width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 22px calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 18px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 { color: var(--rubrum); margin: 0; font-size: 26px; }
.sheet h3 { font-size: 17px; margin: 20px 0 6px; color: var(--atr-2); }
.x { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--atr-2); padding: 4px 10px; border-radius: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.row input[type=range] { width: 46%; accent-color: var(--rubrum); }
.row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--rubrum); }

/* ---------- Connexion ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: var(--rubrum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='20'%3E%3Cpath d='M0 17H6V3H20V13H11V8H15' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E"); }
.login-card { background: var(--tect); border-radius: 14px; padding: 28px 24px 22px; width: 100%; max-width: 360px; text-align: center; border-bottom: 5px solid var(--ochra); }
.login-card h1 { font-size: 34px; letter-spacing: .08em; color: var(--rubrum); margin: 14px 0 0; }
.login-sub { font-style: italic; color: var(--atr-2); margin: 0 0 18px; }
.login-form { display: grid; gap: 10px; }
.login-form input { font: inherit; font-size: 17px; padding: 11px 12px; border: 1px solid var(--linea); border-radius: 8px; background: #fff; color: var(--atr); }
.err { color: var(--rubrum); min-height: 1.2em; margin: 0; font-size: 15px; }

/* ---------- Chouette ---------- */
.owl-wrap { position: fixed; right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.owl-wrap.behind { z-index: 10; opacity: .4; }
.owl-wrap { transition: opacity .3s; }
.owl-wrap.scrolling { opacity: .3; }
.owl { pointer-events: auto; width: 74px; height: 83px; padding: 0; border: 0; background: none; filter: drop-shadow(0 2px 2px rgba(43,36,32,.18)); }
.owl svg { width: 100%; height: 100%; overflow: visible; }
.owl-lids { transform-box: fill-box; transform-origin: center top; transform: scaleY(0); }
.owl.blink .owl-lids { animation: blink .22s ease; }
@keyframes blink { 50% { transform: scaleY(1.9); } }
.owl-z { fill: var(--atr-2); font-family: var(--display); opacity: 0; }
.sleep .owl-lids { transform: scaleY(1.9); transition: transform .6s; }
.sleep .owl-pupils { opacity: 0; }
.sleep .owl-z { animation: zz 2.6s infinite; }
@keyframes zz { 0% { opacity: 0; transform: translate(0,0); } 40% { opacity: .8; } 100% { opacity: 0; transform: translate(6px,-10px); } }
.owl-head { transform-box: fill-box; transform-origin: 50% 90%; }
.owl.think .owl-head { animation: tilt .5s ease forwards; }
@keyframes tilt { to { transform: rotate(-9deg); } }
.owl.joy { animation: hop .55s ease; }
@keyframes hop { 30% { transform: translateY(-10px); } 60% { transform: translateY(0); } 80% { transform: translateY(-3px); } }
.owl-bubble { pointer-events: auto; position: relative; background: #fff; color: var(--atr); border: 1px solid var(--linea); border-radius: 14px;
  padding: 10px 14px; margin: 0 6px 8px 0; max-width: min(320px, calc(100vw - 32px)); font-size: 16px; line-height: 1.45;
  box-shadow: 0 4px 16px rgba(43,36,32,.14); animation: pop .18s ease-out; }
.owl-bubble::after { content: ''; position: absolute; right: 28px; bottom: -8px; width: 14px; height: 14px; background: #fff;
  border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); transform: rotate(45deg); }
.owl-bubble p { margin: 0; }
@keyframes pop { from { transform: translateY(6px) scale(.97); opacity: 0; } }
.gloss-form { font-size: 21px; font-weight: 700; }
.gloss-la { font-style: italic; margin: 2px 0 6px; }
.gloss-fr { color: var(--atr-2); font-size: 15px; border-top: 1px solid var(--linea); padding-top: 6px; margin-bottom: 8px; }


@media (max-width: 420px) {
  .owl { width: 60px; height: 68px; }
  .screen-head h1 { font-size: 32px; }
  .lesson-head h1 { font-size: 26px; }
  .lesson-n { min-width: 56px; height: 56px; font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
