/* Tutoriel animé et interactif de MOS : scène sombre aux halos orange (style de la page d'accueil), maquettes de l'application,
   consigne « À vous » à réaliser pour passer au chapitre suivant. Animations en CSS et Web Animations ; réduites si demandé. */
:root {
  --brand: #E4521A; --orange: #F26A1B; --amber: #F59E0B; --deep: #8A0303; --teal: #00746D;
  --bg: #F8EDE5; --surface: #fff; --soft: #F3E4D9; --line: #E8D5C8; --ink: #1B1512; --ink-2: #4A403B; --muted: #7D716B;
  --stage: radial-gradient(70% 80% at 12% 15%, rgba(242, 106, 27, .55), transparent 60%), radial-gradient(60% 70% at 92% 95%, rgba(138, 3, 3, .55), transparent 60%), #140D0A;
  --r: 22px; --r-lg: 30px; color-scheme: light;
}
:root[data-theme="dark"] { --bg: #140E0C; --surface: #1E1613; --soft: #251A16; --line: #3A2A23; --ink: #F6EEE9; --ink-2: #D8CCC5; --muted: #A79790; color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #140E0C; --surface: #1E1613; --soft: #251A16; --line: #3A2A23; --ink: #F6EEE9; --ink-2: #D8CCC5; --muted: #A79790; color-scheme: dark; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 Montserrat, system-ui, sans-serif; overflow-x: hidden; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.flip { transform: scaleX(-1); }
.skip { position: fixed; left: 8px; top: 8px; z-index: 200; background: var(--surface); padding: 8px 14px; border-radius: 10px; transform: translateY(-300%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .25s cubic-bezier(.34, 1.5, .64, 1), opacity .2s; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-orange { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -14px rgba(228, 82, 26, .9); }
.btn-orange:hover:not(:disabled) { background: #C8401A; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand); }

/* ------------------------------------------------------------------ En-tête */
.top { position: sticky; top: 10px; z-index: 50; margin: 10px; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: #1B1512; box-shadow: 0 18px 40px -26px rgba(40, 15, 5, .55); backdrop-filter: blur(14px); }
:root[data-theme="dark"] .top { background: rgba(30, 22, 19, .94); color: #F6EEE9; }
.brand img { height: 30px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: block; }
.top-title { display: grid; line-height: 1.2; } .top-title b { font-size: 14.5px; } .top-title span { font-size: 12.5px; color: #7D716B; }
.top-progress { flex: 1; height: 6px; border-radius: 6px; background: rgba(228, 82, 26, .15); overflow: hidden; }
.top-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--deep), var(--brand), var(--amber)); transition: width .6s cubic-bezier(.34, 1.2, .64, 1); }
@media (max-width: 640px) { .top { border-radius: 22px; padding: 8px 8px 8px 14px; gap: 10px; } .top-title { display: none; } .top-cta { padding: 8px 14px; min-height: 38px; font-size: 13.5px; } }

/* ------------------------------------------------------------------ Mise en page */
.layout { max-width: 1320px; margin: 0 auto; padding: 8px 14px 40px; display: grid; gap: 16px; }
@media (min-width: 1100px) { .layout { grid-template-columns: 260px minmax(0, 1fr); gap: 22px; } }
.chapters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chapters::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .chapters { flex-direction: column; overflow: visible; position: sticky; top: 92px; align-self: start; } }
.chap { display: flex; align-items: center; gap: 10px; flex: none; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.chap .c-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-weight: 800; font-size: 12.5px; flex: none; }
.chap.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chap.on .c-n { background: rgba(255, 255, 255, .25); color: #fff; }
.chap.done .c-n { background: var(--teal); color: #fff; }
.chap:hover:not(.on) { border-color: var(--brand); }
.main { display: grid; gap: 16px; min-width: 0; }

/* ------------------------------------------------------------------ Scène */
.scene { position: relative; aspect-ratio: 16 / 9; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; background: var(--stage); color: #fff; isolation: isolate; }
@media (max-width: 760px) { .scene { aspect-ratio: auto; min-height: 560px; } }
.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1.4px); background-size: 26px 26px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.sc { position: absolute; inset: 0; padding: 26px; display: grid; place-items: center; }
@media (max-width: 760px) { .sc { padding: 16px; } }
.cap { position: absolute; left: 22px; top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #FFB27A; }
.cap::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 106, 27, .25); }

/* Éléments communs aux maquettes */
.card { background: #fff; color: #1B1512; border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.ok-pill { background: rgba(0, 116, 109, .14); color: var(--teal); }
.act { position: relative; cursor: pointer; border: 0; font-weight: 700; border-radius: 999px; padding: 10px 18px; font-size: 14px; transition: transform .2s; }
.act:hover { transform: scale(1.04); }
.act.primary { background: var(--brand); color: #fff; }
.act.teal { background: var(--teal); color: #fff; }
.act.white { background: #fff; color: var(--brand); }
/* Indicateur « cliquez ici » : halo pulsant autour de l'élément attendu */
.pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .75); } 100% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); } }
.hand { position: absolute; width: 34px; height: 34px; color: #fff; pointer-events: none; z-index: 5; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); animation: tap 1.4s ease-in-out infinite; }
.hand .ic { width: 34px; height: 34px; fill: #fff; stroke: #1B1512; stroke-width: 1.2; }
@keyframes tap { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -6px) scale(.92); } }

/* ------------------------------------------------------------------ 1. Bienvenue : modules en orbite */
.orbit { --R: min(160px, 30vw); position: relative; width: calc(var(--R) * 2 + 100px); aspect-ratio: 1; margin-bottom: 70px; }
.core { position: absolute; inset: 32%; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(242, 106, 27, .5), rgba(242, 106, 27, 0) 70%); }
.core img { width: 86%; animation: breathe 3.5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.ring { position: absolute; inset: 50px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .25); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.planet { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; display: grid; place-items: center; gap: 2px; border-radius: 50%; cursor: pointer; border: 0; color: #fff;
  background: linear-gradient(140deg, var(--amber), var(--brand) 55%, #A82F12); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8); font-size: 11.5px; font-weight: 700; padding: 10px; text-align: center; line-height: 1.15;
  transform: rotate(var(--a)) translate(var(--R)) rotate(calc(-1 * var(--a))); transition: box-shadow .2s; }
.planet .ic { width: 28px; height: 28px; }
.planet:hover, .planet.sel { box-shadow: 0 0 0 4px #fff, 0 16px 30px -14px rgba(0, 0, 0, .8); }
@media (max-width: 600px) { .orbit { --R: 120px; width: 320px; margin-bottom: 90px; } .planet { width: 70px; height: 70px; margin: -35px; font-size: 9.5px; } .planet .ic { width: 20px; height: 20px; } }
.tip { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); padding: 14px 18px; text-align: center; }
.tip b { display: block; font-size: 16px; } .tip span { font-size: 14px; color: rgba(255, 255, 255, .85); }

/* ------------------------------------------------------------------ 2. Démarrer */
.steps3 { display: grid; gap: 14px; width: min(860px, 100%); }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.s3 { padding: 20px; min-height: 190px; display: grid; gap: 10px; align-content: start; }
.s3 .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); font-weight: 800; }
.s3 h3 { font-size: 17px; }
.typing { font-family: inherit; background: #fff; color: #1B1512; border-radius: 12px; padding: 10px 12px; font-size: 14px; min-height: 42px; }
.typing::after { content: "|"; color: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.avs { display: flex; } .avs span { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #140D0A; margin-left: -8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.avs span:first-child { margin-left: 0; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; } .roles span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); }

/* ------------------------------------------------------------------ 3. Tableau de bord */
.dash { width: min(860px, 100%); padding: 18px; display: grid; gap: 12px; }
.dash-h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kp { position: relative; padding: 14px; border-radius: 16px; background: #F7EEE7; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; text-align: left; font: inherit; color: inherit; }
.kp small { display: block; font-size: 12px; color: #7D716B; font-weight: 600; } .kp b { font-size: 20px; }
.kp.hl { background: linear-gradient(135deg, var(--brand), var(--amber)); color: #fff; } .kp.hl small { color: rgba(255, 255, 255, .9); }
.kp.seen { border-color: var(--teal); }
.kp .dot { position: absolute; right: 10px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s infinite; }
.kp.seen .dot { background: var(--teal); animation: none; }
.explain { min-height: 64px; padding: 12px 16px; border-radius: 14px; background: #1B1512; color: #fff; font-size: 14px; }
.explain b { color: #FFB27A; }

/* ------------------------------------------------------------------ 4. Facture */
.inv-stage { display: grid; gap: 18px; width: min(940px, 100%); align-items: center; }
@media (min-width: 860px) { .inv-stage { grid-template-columns: 1.1fr 1fr; } }
.editor { padding: 18px; display: grid; gap: 12px; }
.editor h3 { font-size: 16px; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; }
.cli { border: 1.5px solid #E8D5C8; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.cli.sel { border-color: var(--brand); background: #FFF1EA; color: var(--brand); }
.lines { display: grid; gap: 6px; font-size: 13.5px; }
.ln { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: #F7EEE7; }
.tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; color: var(--teal); padding: 4px 10px; }
.doc { position: relative; padding: 18px; min-height: 280px; transform-origin: 50% 50%; }
.doc-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: 10px; }
.doc-h b { color: var(--teal); font-size: 20px; letter-spacing: .04em; }
.doc-num { font-weight: 800; color: var(--brand); }
.words { margin-top: 12px; padding: 10px; border-left: 4px solid var(--brand); background: #FFF6DA; font-size: 12.5px; font-style: italic; }
.stamp { position: absolute; left: 44%; top: 14px; transform: rotate(-12deg); border: 2px solid var(--teal); color: var(--teal); font-weight: 800; padding: 2px 10px; border-radius: 6px; letter-spacing: .1em; }
.wa-phone { position: absolute; right: 18px; bottom: 18px; width: 220px; padding: 12px; border-radius: 22px; background: #0B141A; color: #E9EDEF; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
.wa-msg { background: #005C4B; padding: 10px; border-radius: 10px; font-size: 12.5px; display: grid; gap: 6px; }
.wa-pdf { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .25); padding: 8px; border-radius: 8px; font-weight: 600; }
.wa-phone.inline { position: static; justify-self: center; width: min(300px, 100%); }
@media (max-width: 860px) { .wa-phone { position: static; width: 100%; margin-top: 10px; } }

/* ------------------------------------------------------------------ 5. Décision */
.dec { display: grid; gap: 22px; width: min(900px, 100%); align-items: center; }
@media (min-width: 760px) { .dec { grid-template-columns: 280px 1fr; } }
.phone { width: 260px; margin: 0 auto; padding: 10px; border-radius: 38px; background: #1C1513; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); }
.ph { min-height: 380px; border-radius: 30px; background: linear-gradient(180deg, #2A1C17, #120C0A); padding: 16px 12px; display: grid; gap: 10px; align-content: start; }
.ph-time { text-align: center; font-size: 40px; font-weight: 300; }
.notif { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .92); color: #1B1512; font-size: 13px; }
.notif .row { display: flex; gap: 8px; align-items: center; } .notif .ap { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.notif .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.notif .btns button { border: 0; padding: 8px; border-radius: 10px; font-weight: 700; cursor: pointer; background: #EFE6DF; }
.notif .btns .yes { background: var(--teal); color: #fff; }
.flow { display: grid; gap: 10px; }
.fl { display: flex; align-items: center; gap: 12px; padding: 14px 16px; opacity: .35; transition: opacity .4s; }
.fl.on { opacity: 1; }
.fl .fi { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.fl.on .fi { background: var(--teal); }
.fl b { display: block; } .fl small { color: rgba(255, 255, 255, .75); }

/* ------------------------------------------------------------------ 6. Paie */
.pay { display: grid; gap: 18px; width: min(920px, 100%); align-items: center; }
@media (min-width: 760px) { .pay { grid-template-columns: 1fr 1fr; } }
.slip { padding: 18px; display: grid; gap: 8px; font-size: 14px; }
.slip .r { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: #F7EEE7; }
.slip .r.minus b { color: #B3261E; }
.slip .r.net { background: #E3F1EF; color: var(--teal); font-weight: 800; font-size: 16px; }
.staff { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.agent { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; text-align: center; font-size: 12px; }
.agent .face { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .15); }
.agent .got { opacity: 0; color: #25D366; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.agent.sent .got { opacity: 1; }
.flyer { position: absolute; z-index: 6; width: 34px; height: 42px; border-radius: 6px; background: #fff; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .6); display: grid; place-items: center; color: var(--brand); }

/* ------------------------------------------------------------------ 7. Achats : circuit */
.pipe { width: min(940px, 100%); display: grid; gap: 22px; }
.nodes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nodes::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 3px; background: rgba(255, 255, 255, .2); border-radius: 3px; }
.node { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; }
.node .ni { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); transition: background .4s; z-index: 1; }
.node .ni .ic { width: 30px; height: 30px; }
.node.done .ni { background: var(--teal); border-color: var(--teal); }
.node.cur .ni { background: var(--brand); border-color: var(--brand); }
.node b { font-size: 14px; } .node small { color: rgba(255, 255, 255, .72); }
.token { position: absolute; top: 18px; width: 34px; height: 34px; margin-left: -17px; border-radius: 10px; background: #fff; color: var(--brand); display: grid; place-items: center; z-index: 2; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8); transition: left .8s cubic-bezier(.34, 1.3, .64, 1); }
.stockbox { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.stockbox .glass { padding: 14px 20px; text-align: center; min-width: 170px; } .stockbox b { display: block; font-size: 30px; font-weight: 800; }

/* ------------------------------------------------------------------ 8. Hors connexion */
.off { display: grid; gap: 18px; width: min(900px, 100%); align-items: center; }
@media (min-width: 760px) { .off { grid-template-columns: 260px 1fr; } }
.switch { display: grid; justify-items: center; gap: 12px; padding: 22px; text-align: center; }
.tog { position: relative; width: 96px; height: 50px; border-radius: 999px; border: 0; cursor: pointer; background: var(--teal); transition: background .3s; }
.tog::after { content: ""; position: absolute; top: 5px; left: 51px; width: 40px; height: 40px; border-radius: 50%; background: #fff; transition: left .35s cubic-bezier(.34, 1.5, .64, 1); }
.tog.offline { background: #6B5E58; } .tog.offline::after { left: 5px; }
.net { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.queue { display: grid; gap: 10px; }
.qi { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.qi .st { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.qi.wait .st { color: #FFB27A; } .qi.sync .st { color: #6EE7B7; }
.cloud { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 700; }
.cloud .ic { width: 34px; height: 34px; }

/* ------------------------------------------------------------------ 9. Quiz */
.quiz { width: min(720px, 100%); padding: 22px; display: grid; gap: 14px; }
.quiz h3 { font-size: 19px; }
.qopts { display: grid; gap: 8px; }
.qopt { text-align: left; padding: 12px 16px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s; }
.qopt:hover:not(:disabled) { border-color: #FFB27A; }
.qopt.good { border-color: #34D399; background: rgba(52, 211, 153, .15); }
.qopt.bad { border-color: #F87171; background: rgba(248, 113, 113, .12); }
.qfb { min-height: 24px; font-size: 14px; color: #FFE3CF; }
.qcount { font-size: 13px; color: #FFB27A; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.badge-final { display: grid; justify-items: center; gap: 12px; text-align: center; }
.medal { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--amber), var(--brand) 55%, var(--deep)); box-shadow: 0 0 0 8px rgba(255, 255, 255, .1), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.medal .ic { width: 64px; height: 64px; color: #fff; }
.badge-final h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.badge-final p { color: rgba(255, 255, 255, .85); max-width: 520px; }
.final-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.conf { position: absolute; width: 8px; height: 14px; border-radius: 2px; z-index: 4; pointer-events: none; }

/* ------------------------------------------------------------------ Narration */
.narr { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; }
.n-head { display: flex; gap: 16px; align-items: flex-start; }
.n-num { font-size: 40px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--deep), var(--brand) 55%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.n-head h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.n-head p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.task { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #FFF4EC; border: 1.5px dashed rgba(228, 82, 26, .5); color: #1B1512; transition: background .3s, border-color .3s; }
:root[data-theme="dark"] .task { background: #2A1C16; color: #F6EEE9; }
.task .t-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.task b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.task p { font-size: 15px; }
.t-done { margin-left: auto; display: none; align-items: center; gap: 6px; font-weight: 700; color: var(--teal); }
.task.ok { background: #E8F5F3; border-color: var(--teal); border-style: solid; }
:root[data-theme="dark"] .task.ok { background: #102725; }
.task.ok .t-ico { background: var(--teal); }
.task.ok .t-done { display: inline-flex; }
.n-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.n-hint { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .n-nav .btn { flex: 1 1 auto; } #replay { order: 3; flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
