/* Page « Réviser » : la flashcard, le minuteur, les réponses, et le bloc sous la carte */

/* Card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 20px; min-height: 340px; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.boxdots { display: inline-flex; gap: 3px; }
.boxdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: inline-block; }
.boxdots i.on { background: var(--accent); }
.front { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.word { font-family: var(--f-display); font-size: clamp(32px, 7vw, 46px); font-weight: 600; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.art { font-weight: 400; }
.art.der { color: var(--der); } .art.die { color: var(--die); } .art.das { color: var(--das); }
.meta { color: var(--muted); font-size: 14px; }
.reveal { border-top: 1px dashed var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.alt { color: var(--muted); font-size: 14px; }
.example { border-top: 1px dashed var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.example .de { font-family: var(--f-display); font-size: 18px; line-height: 1.55; }
.example .tr { color: var(--muted); font-size: 14px; }
.actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.kinds button { font-size: 13px; padding: 5px 11px; }
.kinds button small { font-family: var(--f-mono); font-size: 11px; opacity: .75; margin-left: 4px; }
/* Timer */
.timer { display: flex; align-items: center; gap: 10px; }
.track { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.track i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.track i.low { background: var(--again); }
.tsec { font-family: var(--f-mono); font-size: 13px; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.tsec.low { color: var(--again); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { font: inherit; font-size: 16px; text-align: left; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.opt span { min-width: 0; overflow-wrap: anywhere; }
.opt:hover:not(:disabled) { border-color: var(--accent); }
.opt kbd { flex: none; }
.opt:disabled { cursor: default; }
.opt.right { border: 2px solid var(--easy); color: var(--easy); font-weight: 600; }
.opt.wrong { border: 2px solid var(--again); color: var(--again); text-decoration: line-through; }
.opt.picked { border-color: var(--muted); }
.opt.dim { opacity: .5; }
.verdict { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.verdict b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.verdict.ok { border-color: var(--easy); }
.verdict.ok b { color: var(--easy); }
.gender { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.gender.der { border-color: var(--der); } .gender.die { border-color: var(--die); } .gender.das { border-color: var(--das); }
.gender .label .art { font-family: var(--f-display); font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.gender p { margin: 0; font-size: 14.5px; }
.gender .tip b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.taunt { border: 1px solid var(--again); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.taunt b { color: var(--again); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.taunt span { font-family: var(--f-display); font-size: 17px; }

#view-review { display: flex; flex-direction: column; gap: 14px; }
/* Under the card */
.extras { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.extras h3 { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.extras h3 em { font-style: normal; font-family: var(--f-display); text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.rel { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.rel div { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; min-width: 0; }
.rel b, .syn b { font-family: var(--f-display); font-weight: 600; font-size: 16px; display: block; overflow-wrap: anywhere; }
.rel small, .syn small { color: var(--muted); font-size: 13px; }
.syn { display: flex; flex-direction: column; gap: 2px; }
.ring { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; max-width: 100%; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring line { stroke: var(--line); stroke-width: .5; }
.ring circle.orbit { fill: none; stroke: var(--line); stroke-width: .3; stroke-dasharray: 1.2 1.2; }
.hub, .node { position: absolute; transform: translate(-50%, -50%); text-align: center; border-radius: 10px; display: flex; flex-direction: column; line-height: 1.25; }
.hub { left: 50%; top: 50%; width: 30%; padding: 10px 6px; background: var(--accent); color: var(--accent-ink); }
.hub b { font-family: var(--f-display); font-size: clamp(14px, 3.6vw, 19px); }
.hub small { font-size: 12px; opacity: .85; }
.node { width: 27%; padding: 6px 4px; background: var(--surface); border: 1px solid var(--line); }
.node b { font-family: var(--f-display); font-weight: 600; font-size: clamp(12px, 3vw, 15px); overflow-wrap: anywhere; }
.node b .pre { color: var(--accent); }
.node small { color: var(--muted); font-size: clamp(10.5px, 2.6vw, 12px); overflow-wrap: anywhere; }
.node.cur { border: 2px solid var(--accent); }
.hint { font-size: 12px; color: var(--muted); }
.famlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fam { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fam b { font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.fam b .pre { color: var(--accent); }
.fam small { color: var(--muted); font-size: 13px; }
.fam.cur b { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.fx { margin: 0; font-family: var(--f-display); font-size: 15px; overflow-wrap: anywhere; }
.fxt { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.hint .pre { color: var(--accent); font-weight: 600; }
.seg.rvmode { margin-bottom: 2px; }
.example + .example { border-top: 0; padding-top: 0; }
@media (max-width: 480px) {
  .card { padding: 22px 16px 18px; }
  .extras { padding: 16px 14px; }
  nav { width: 100%; }
  nav button { padding: 7px 4px; font-size: 13px; flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal, .example { animation: in .18s ease-out; }
  @keyframes in { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* the answers start blurred and become sharp over 10 s (the blur is set by tick() in js/pages/review.js) */
.opts.veil .opt:not(.idk):not(.known) span { filter: blur(var(--blur, 0px)); }
/* green fireworks on a right answer (js/features/fireworks.js) */
canvas.fireworks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }
@media (max-width: 480px) { .opt { font-size: 15px; padding: 11px 10px; gap: 8px; } }
/* "Pour retenir" under the answer */
.reveal.memo .memo-txt { font-style: italic; font-size: 15px; }
.reveal.memo small { font-size: 11.5px; color: var(--muted); }
