/* ============================================================
   REFLEXIGO — DA arcade néon
   Couleurs, tailles et rythmes : tokens.css
   ============================================================ */
/* Polices embarquées (SIL OFL) : Exo 2 pour l'affichage « jeu », Inter pour l'interface */
@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/exo-2-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 900; font-display: swap; src: url("../fonts/exo-2-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); }
/* Les valeurs sont dans tokens.css (chargé avant ce fichier). */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
/* décor : fond autour du téléphone (grand écran), valeurs en dur */
html, body { margin: 0; height: 100%; background: radial-gradient(circle at 50% 30%, #0e1650, #02030c 70%); color: var(--text); font-family: var(--font-ui); overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.hidden { display: none !important; }
.spacer { flex: 1; min-height: 6px; }
.cy { color: var(--c-nav); }

/* ---------- Cadre app (téléphone) ---------- */
#app { position: relative; width: 100%; max-width: 430px; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--bg-app); }
@media (min-width: 560px) {   /* décor : cadre téléphone sur grand écran, valeurs en dur */
  #app { height: min(100dvh - 24px, 880px); margin-top: 12px; border-radius: 38px; box-shadow: 0 0 0 3px #1b2a78, 0 0 60px rgba(47, 107, 255, .45); }
}
/* La secousse de l'écran est une animation du navigateur (fx.js, shake) : pas de règle CSS ici */

/* ---------- Fond ---------- */
/* décor : ciel, lune, route néon et vignette, valeurs en dur */
#bg, #bg > *, #fxfront { position: absolute; }
#bg { inset: 0; background: linear-gradient(#060a2e 0%, #1a0b58 45%, #0a0a3a 70%, #05061c 100%); }
.moon { top: 5%; right: -8%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #7ea6ff, #2344b8 60%, #14247a); box-shadow: 0 0 60px rgba(90, 140, 255, .7); opacity: .85; }
#skyline { left: 0; right: 0; bottom: 35%; height: 46%; opacity: .95; }
#skyline svg { width: 100%; height: 100%; }
#bgfx { inset: 0; width: 100%; height: 100%; }
.vignette { inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(3, 5, 25, 0) 30%, rgba(3, 4, 20, .78) 100%), linear-gradient(rgba(3, 5, 25, .35), rgba(3, 5, 25, .1) 40%, rgba(3, 5, 25, .45)); }
#fxfront { inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
/* jeu : « chaleur » du Run, halo rose du combo qui monte avec lui (--heat 0..1, posé par RE.fx.setHeat) ; opacité seulement */
.heat { inset: 0; pointer-events: none; opacity: calc(var(--heat, 0) * .9); transition: opacity .5s ease-out;
  background: radial-gradient(ellipse 90% 45% at 50% 100%, rgba(255, 79, 216, .34), transparent 70%), radial-gradient(ellipse 80% 30% at 50% 0%, rgba(122, 59, 255, .26), transparent 70%); }
/* jeu : flash plein écran d'un palier de combo (RE.fx.flash), teinte du combo ; coupé par Animations réduites */
.fx-flash { position: absolute; inset: 0; z-index: 39; pointer-events: none; opacity: 0; background: var(--c-combo); }
.fx-flash.on { animation: fxflash .3s ease-out; }
@keyframes fxflash { 0% { opacity: .3; } 100% { opacity: 0; } }

/* ---------- Barre haute ---------- */
#topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-top) + 7px) 14px 5px; background: var(--bar-bg); border-bottom: 1.5px solid var(--line-strong); }   /* bande haute opaque, comme la barre du bas */
.logo { display: flex; align-items: center; gap: 6px; }
.logo svg { filter: drop-shadow(0 0 6px rgba(25,230,255,.7)); }   /* seul l'éclair brille : valeur de .brand svg (components.css du design) */
.logo b { font: var(--t-brand); letter-spacing: -.5px; }
.logo em { color: var(--c-nav); }
.top-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid var(--line-strong); font-size: 16px; }   /* font-size sans effet (icône SVG) : bouton refait au lot 5 */

/* ---------- Écrans ---------- */
.screen { position: absolute; inset: 0; z-index: 10; display: none; flex-direction: column; gap: 10px; padding: calc(var(--safe-top) + 50px) 16px calc(var(--safe-bottom) + 14px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: flex; }
.screen.center { align-items: center; justify-content: center; text-align: center; }
.screen.enter { animation: enter .28s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(14px) scale(.98); } }
/* Balayage entre les menus : le nouvel écran glisse depuis le côté d'où vient le doigt (menu suivant = depuis la droite) */
.screen.enter[data-enter="next"] { animation-name: enter-next; }
.screen.enter[data-enter="prev"] { animation-name: enter-prev; }
@keyframes enter-next { from { opacity: 0; transform: translateX(var(--sp-6)); } }
@keyframes enter-prev { from { opacity: 0; transform: translateX(calc(var(--sp-6) * -1)); } }

/* ---------- Composants ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px 14px; box-shadow: var(--glow-0); }   /* 7.1 : plus de halo au repos */
.card.glow { border-color: var(--c-nav); box-shadow: var(--glow-2); }
small { font: var(--t-label); letter-spacing: var(--ls-label); color: var(--text-2); text-transform: uppercase; }
.pill { align-self: center; padding: 9px 20px; border-radius: var(--r-m); border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; letter-spacing: 1px; }
.pill b { color: var(--c-score); }


.title-xl, .title-lg { font-family: var(--font-display); font-weight: 900; font-style: italic; margin: 0; line-height: .95; text-align: center; text-transform: uppercase; text-shadow: 0 0 18px var(--c-nav), 0 3px 0 rgba(10, 20, 90, .9); }   /* tailles du halo et ombre portée foncée en dur ; grands titres refaits au lot 6 */
.title-xl { font-size: 54px; }   /* hors échelle : refait au lot 6 */ .title-xl span, .title-lg span { display: block; }
.title-lg { font-size: 38px; } .title-lg.one { font-size: 34px; }

/* ---------- Accueil ---------- */
.home-foot { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.best { font: var(--t-body-s); color: var(--c-score); font-weight: 700; } .best b { font-family: var(--font-display); font-weight: 900; }

/* ---------- Pack ---------- */
/* code mort : .run-tag, .sub, .lk-emoji ne sont plus utilisés (ni HTML ni JS) ; valeurs laissées telles quelles */
.run-tag { position: absolute !important; top: 10px; right: 12px; padding: 4px 12px; border: 1.5px solid var(--c-nav); border-radius: var(--r-pill); color: var(--c-nav); font-style: italic; font-weight: 800; font-size: 14px; }
.sub { margin: 0; color: var(--c-nav); font-weight: 700; font-size: 14px; }
.lk-emoji { font-size: 34px; } .lock { font-size: 24px; filter: grayscale(.4); }

/* ---------- Découverte ---------- */
/* jeu : bouton écouter, dégradé de l'image, halos du mot et lueurs des puces en dur ; fiche refaite au 6.4 */
#s-discovery { gap: 12px; }
@keyframes swap { from { opacity: 0; transform: translateX(40px) scale(.94); } }
.round-btn { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: var(--r-pill); border: 2px solid var(--c-nav); background: rgba(10, 30, 90, .8); font-size: 20px; box-shadow: 0 0 12px rgba(25, 230, 255, .6); }
.round-btn:active { transform: scale(.9); }
.disc-img { flex: none; width: clamp(84px, 15vh, 136px); height: clamp(84px, 15vh, 136px); }
.disc-img .wimg { width: 100%; height: 100%; border-radius: var(--r-m); border: 1.5px solid var(--line-strong); background: radial-gradient(circle, rgba(47, 107, 255, .35), rgba(10, 16, 64, .25)); box-shadow: 0 0 22px rgba(25, 230, 255, .25); }
.disc-badges:empty { display: none; }
.badge { font: var(--t-label); display: inline-block; padding: 3px 12px; border-radius: var(--r-pill); font-weight: 900; letter-spacing: var(--ls-label); }
.badge.fake { color: var(--text); background: var(--surface); border: 1.5px solid var(--c-combo); box-shadow: 0 0 14px rgba(255, 79, 216, .55); }
.badge.trap { color: var(--c-score); background: var(--surface); border: 1.5px solid var(--c-score); box-shadow: var(--glow-score); }
.disc-ctx { flex: none; width: 100%; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 4px; text-align: left; }
.disc-ctx p { font: var(--t-body-s); margin: 0; line-height: 1.35; }
.ctx-expl { color: var(--text-2); } .ctx-en { color: var(--c-nav); font-style: italic; font-weight: 700; } .ctx-fr { color: var(--text-2); font-size: 13px !important; }   /* = taille de --t-body-s (!important : la règle .disc-ctx p ne doit pas l'écraser) */
/* Image d'un mot et image de remplacement */
.wimg { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: var(--c-nav); flex: none; }
.wimg img { width: 100%; height: 100%; object-fit: contain; }
.wimg.ph svg { width: 72%; height: 72%; filter: drop-shadow(0 0 6px currentColor); }
.wimg.xs { width: 20px; height: 20px; vertical-align: middle; border-radius: var(--r-s); } .wimg.sm { width: 100%; height: 100%; }
.chip .wimg { margin-right: 2px; }
.disc-fr { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: calc(44px * var(--fit, 1)); letter-spacing: 1px; text-shadow: 0 0 16px rgba(120, 160, 255, .8); }
.disc-en { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: calc(38px * var(--fit, 1)); color: var(--c-nav); text-shadow: 0 0 16px rgba(25, 230, 255, .8); }
.disc-ipa { font: var(--t-title); font-weight: 400; color: var(--text-2); letter-spacing: 1px; }
.dots { display: flex; gap: 8px; align-items: center; } .dots:empty { display: none; }   /* plus de 12 fiches : pas de points, le texte « 12 / 40 » suffit */
.dots i { width: 14px; height: 14px; border-radius: var(--r-pill); background: var(--surface-sunken); border: 1px solid var(--line); transition: .25s; }
.dots i.done { background: var(--c-success); border-color: var(--c-success); box-shadow: 0 0 10px var(--c-success); }
.dots i.now { background: var(--c-nav); box-shadow: 0 0 12px var(--c-nav); transform: scale(1.25); }
.dots-txt { font-weight: 800; }

/* ---------- Départ du RUN ---------- */
/* jeu : plaque RUN, chiffres géants, halos et pilule GO en dur (jus du jeu, gardé au 7.1) */
.run-plate { display: flex; align-items: center; gap: 10px; padding: 8px 22px; border: 2px solid var(--c-violet-400); border-radius: var(--r-m); background: rgba(40, 10, 100, .6); box-shadow: 0 0 24px rgba(162, 75, 255, .7); }
.run-plate b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 50px; color: var(--c-score); text-shadow: 0 0 20px rgba(255, 180, 40, .8); }
.run-plate span { font-size: 34px; }
.count-num { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 230px; line-height: 1; margin: 18px 0; color: transparent; -webkit-text-stroke: 5px var(--text); text-shadow: 0 0 30px var(--c-nav), 0 0 60px var(--c-blue-500); filter: drop-shadow(0 0 14px var(--c-nav)); }
.count-num.gone { display: none; }
.count-num.slam { animation: slam .7s ease-out; }
@keyframes slam { 0% { transform: scale(2.4); opacity: 0; } 30% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1); } }
.go-bar { display: none; margin: 60px 0; padding: 22px 60px; border-radius: var(--r-pill); border: 3px solid var(--cta-border); background: linear-gradient(var(--cta-grad-top), var(--cta-grad-bottom)); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 60px; box-shadow: 0 0 50px rgba(22, 224, 123, .9); }
.go-bar.on { display: block; animation: slam .5s ease-out; }

/* ---------- RUN ---------- */
/* jeu : halos des scores, couleurs du combo par palier, dégradés des réponses, fonds des tampons et textes flottants en dur.
   Combo et tampons : composants .combo-box et .stamp (4.4) ; réponses refaites au 6.5. */
#s-run { gap: 8px; padding-top: calc(var(--safe-top) + 48px); }
.hud { display: flex; align-items: stretch; gap: 10px; }
.scorebox { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 12px; }
.scorebox b { display: block; font: var(--t-score-l); color: var(--c-score); text-shadow: 0 0 14px rgba(255, 190, 40, .7); font-variant-numeric: tabular-nums; }
.bump { animation: bump .28s ease-out; } @keyframes bump { 40% { transform: scale(1.14) rotate(-4deg); } }
@keyframes glowpulse { to { opacity: 1; } }   /* opacité seulement (compositeur) : l'ombre est fixe sur ::after */
.timer-pill.urgent, .energy.full .segs { position: relative; }
.timer-pill.urgent::after, .energy.full .segs::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 26px rgba(255, 207, 58, .9); opacity: 0; pointer-events: none; animation: glowpulse .3s infinite alternate; }
.energy.full .segs::after { animation-duration: .5s; }
.prompt { text-align: center; padding: var(--sp-5) 12px 10px;   /* haut : place pour le tampon (bug 7) */ transition: border-color .15s, box-shadow .15s, background .15s; }
.prompt.appear { animation: promptIn .16s ease-out; } @keyframes promptIn { from { opacity: 0; transform: scale(.94); } }
.prompt.right { border-color: var(--c-success); box-shadow: 0 0 26px rgba(22, 224, 123, .7); }
.prompt.wrong { border-color: var(--c-danger); box-shadow: 0 0 26px rgba(255, 77, 109, .8); background: rgba(70, 8, 30, .75); }
.q-word { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: calc(clamp(38px, 6.4vh, 54px) * var(--fit, 1)); line-height: 1.05; letter-spacing: 1.5px; text-shadow: 0 0 20px rgba(140, 180, 255, .8); word-break: break-word; }
.q-timer { font: var(--t-body); color: var(--c-nav); font-weight: 800; font-variant-numeric: tabular-nums; }
.q-reveal { font: var(--t-body); min-height: 0; color: var(--c-success); font-weight: 700; } .q-reveal:empty { display: none; } .q-reveal b { color: var(--text); }
.choices { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.choice { flex: 1; min-height: 40px; max-height: 66px; border-radius: var(--r-m); border: 1.5px solid var(--line-strong); background: linear-gradient(rgba(20, 40, 130, .85), rgba(8, 16, 70, .9)); font-size: clamp(18px, 3vh, 22px); font-weight: 700; box-shadow: 0 0 12px rgba(47, 107, 255, .35); transition: transform .07s, background .1s, border-color .1s; }
.choices.appear .choice { animation: choiceIn .18s ease-out backwards; animation-delay: calc(var(--i) * 22ms); }
@keyframes choiceIn { from { opacity: 0; transform: translateX(-22px); } }
.choice:active:not(.locked) { transform: scale(.96); background: rgba(47, 107, 255, .6); border-color: var(--c-nav); }
.choice.ok { background: linear-gradient(var(--cta-grad-top), var(--cta-grad-bottom)); border-color: var(--cta-border); box-shadow: 0 0 26px rgba(22, 224, 123, .9); animation: okpop .25s ease-out; }
.choice.ok::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .3em; vertical-align: -.12em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='5.33' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 34l14 14L52 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='black' stroke-width='5.33' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 34l14 14L52 18'/%3E%3C/svg%3E") center / contain no-repeat; }   /* icône « coche » (icons.js) en masque, couleur du texte */
.choice.bad { background: linear-gradient(#ff5a78, #a3122f); border-color: #ffc0cc; box-shadow: 0 0 22px rgba(255, 77, 109, .8); animation: shakeb .3s; }
.choice.locked:not(.ok):not(.bad) { opacity: .45; }
.choice.reveal { animation: okpop .35s .1s ease-out backwards; }
@keyframes okpop { 40% { transform: scale(1.06); } }
@keyframes shakeb { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.float-layer { position: absolute; inset: 0; pointer-events: none; z-index: 35; overflow: hidden; }
.float-text { position: absolute; transform: translate(-50%, 0); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 28px; pointer-events: none; white-space: nowrap; animation: floatup .9s ease-out forwards; text-shadow: 0 0 12px currentColor, 0 2px 0 rgba(0, 0, 0, .6); z-index: 20; }
.float-text.gold { color: var(--c-score); } .float-text.combo { color: var(--text); font-size: 36px; text-shadow: 0 0 22px var(--c-combo), 0 0 40px var(--c-violet-400); animation-duration: 1.1s; }
/* jeu : palier de combo, le texte claque en grand puis s'envole (valeurs en dur) */
.float-text.combo.milestone { font-size: 46px; animation: floatslam 1.2s ease-out forwards; text-shadow: 0 0 12px var(--c-combo), 0 3px 0 rgba(0, 0, 0, .6); }   /* halo unique de 12 px (10 nov. 2026 : 26 px + 50 px coûtaient trop de dessin sur le Samsung A32 : -37 %) */
@keyframes floatslam { 0% { opacity: 0; transform: translate(-50%, 0) scale(2); } 16% { opacity: 1; transform: translate(-50%, 0) scale(.92); } 26% { transform: translate(-50%, 0) scale(1); } 72% { opacity: 1; transform: translate(-50%, -12px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -44px) scale(1); } }
/* jeu : case combo au palier (gros rebond, reste droite) ; jauge d'énergie pleine */
.combo-box.milestone { animation: comboslam .42s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes comboslam { 0% { transform: scale(1); } 35% { transform: scale(1.24); } 100% { transform: scale(1); } }
.energy.full-pop { animation: pop .3s ease-out; }
/* jeu : gros plan de l'écran du Run juste après le GO */
#s-run.go-in { animation: goin .42s ease-out; }
@keyframes goin { 0% { opacity: .3; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -54px) scale(1); } }
/* Flow Mode : les éléments secondaires s'effacent, le rythme s'accélère */
#app.flow .energy { opacity: .35; }
#app.flow .choice { border-color: var(--c-nav); box-shadow: 0 0 18px rgba(25, 230, 255, .5); }
#app.flow .logo { opacity: .5; }
#app.flow .scorebox { border-color: var(--c-score); }

/* ---------- Word Rain ---------- */
/* jeu : couleurs claires des mots qui tombent, fonds, halos et bannière en dur ; écran refait au 6.5 */
#s-rain { gap: 8px; }
.timer-pill { padding: 6px 14px; font-variant-numeric: tabular-nums; } .timer-pill.urgent { border-color: var(--c-danger); color: var(--c-danger); }
.target-box { text-align: center; display: flex; flex-direction: column; gap: 2px; } .target-box.wait { visibility: hidden; }   /* pendant l'annonce : pas de cible d'exemple */
.target-box b { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: calc(34px * var(--fit, 1)); color: var(--c-score); text-shadow: 0 0 18px rgba(255, 190, 40, .8); }
.target-box.pop { animation: bump .3s; }
.rain-area { position: relative; flex: 1; min-height: 200px; overflow: hidden; border-radius: var(--r-m); touch-action: none;
  -webkit-mask-image: linear-gradient(transparent 0, #000 48px); mask-image: linear-gradient(transparent 0, #000 48px); }   /* masque (pas une couleur) : les mots entrent en fondu sous la carte cible */
.rain-word { position: absolute; top: 0; left: 0; padding: 10px 18px; border-radius: var(--r-m); font-size: 23px; font-weight: 800; line-height: 1.15; text-align: center; white-space: nowrap; background: rgba(15, 8, 60, .85); border: 3px solid var(--c-violet-400); box-shadow: 0 0 16px currentColor; will-change: transform; touch-action: none; }
/* Blocs de mots ×1,3 (10 nov. 2026 : 18 -> 23 px de texte, bloc de 41 à 53 px de haut ; ×1,5 était trop gros) ; un mot plus large que la zone passe sur deux lignes au lieu de déborder (wordrain.js, placeWord) ; valeurs en dur : mots de Word Rain, comme les autres jus du jeu */
.rain-word.c0 { color: var(--c-nav); border-color: var(--c-nav); } .rain-word.c1 { color: #d9a8ff; border-color: var(--c-violet-400); } .rain-word.c2 { color: #ff9bea; border-color: var(--c-combo); } .rain-word.c3 { color: #9fc0ff; border-color: var(--c-blue-500); }
.rain-word.ok { background: linear-gradient(var(--cta-grad-top), var(--cta-grad-bottom)); color: var(--text); border-color: var(--cta-border); box-shadow: 0 0 34px var(--c-success); animation: okpop .25s; }
.rain-word.bad { background: rgba(160, 15, 45, .9); color: var(--text); border-color: var(--c-danger); animation: shakeb .25s; }
.rain-score { font: var(--t-body-s); text-align: center; color: var(--text-2); font-weight: 800; letter-spacing: 2px; } .rain-score b { font: var(--t-score-m); color: var(--c-score); letter-spacing: 0; margin-left: 6px; }
.rain-banner { position: absolute; left: 12%; right: 12%; top: 34%; z-index: 20; text-align: center; padding: 18px 12px; border-radius: var(--r-l); border: 2.5px solid var(--c-nav); background: rgba(6, 12, 60, .92); box-shadow: 0 0 40px rgba(25, 230, 255, .8); animation: slam .5s ease-out; }
.rain-banner b { display: block; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 44px; color: var(--c-score); text-shadow: 0 0 22px rgba(255, 190, 40, .8); }
.rain-banner span { font: var(--t-body-s); color: var(--text-2); font-weight: 600; }

/* ---------- Résultats ---------- */
/* jeu : halo du trophée et du score, tampon « record » en dur ; écran refait au 6.6 */
#s-results { gap: 8px; }
.rework small { color: var(--state-fragile); } .chip-txt { display: inline-flex; flex-direction: column; vertical-align: middle; margin-left: 4px; line-height: 1.15; } .chip-txt small { font: var(--t-body-s); color: var(--text-2); text-transform: none; letter-spacing: 0; }
.chip { font: var(--t-body-s); display: inline-block; margin: 4px 6px 0 0; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--state-fragile); font-weight: 700; }

/* ---------- Progression ---------- */
.word-list { flex: 1; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; scrollbar-width: none; }
.wrow { display: flex; align-items: stretch; gap: 8px; }
.w-ico { width: 54px; min-height: 54px; display: flex; align-items: center; justify-content: center; font-size: 30px; border-radius: var(--r-s); background: var(--surface-raised); border: 1.5px solid var(--line-strong); flex: none; }
.wrow > b { font: var(--t-body); font-weight: 700; width: 88px; display: flex; flex-direction: column; justify-content: center; flex: none; overflow-wrap: anywhere; }
.wrow > b small { font: var(--t-body-s); color: var(--text-2); text-transform: none; letter-spacing: 0; }   /* français sous l'anglais */
.w-status { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r-s); border: 1.5px solid; min-width: 0; }
.w-status .si { font-size: 22px; } .w-status b { font: var(--t-body); font-weight: 700; display: block; } .w-status small { font: var(--t-body-s); text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-2); line-height: 1.2; display: block; }
.w-status.work { border-color: var(--state-fragile); background: var(--surface); } .w-status.work b { color: var(--state-fragile); }
.w-status.known { border-color: var(--state-learning); background: var(--surface); } .w-status.known b { color: var(--state-learning); }
.w-status.fast { border-color: var(--c-nav); background: var(--surface); } .w-status.fast b { color: var(--c-nav); }
.w-status.reflex { border-color: var(--state-mastered); background: var(--surface); } .w-status.reflex b { color: var(--state-mastered); }
.w-status.new { border-color: var(--state-new); background: var(--surface); }

/* ---------- Révision ---------- */
/* #s-review { align-items: stretch; }

/* ---------- Petits écrans ---------- */
/* tailles réduites en dur : écrans de jeu refaits aux 6.5 / 6.6, menus aux 6.1 / 6.2 */
@media (max-height: 700px) {
  .title-xl { font-size: 44px; } .title-lg { font-size: 32px; }
  #s-run { gap: 6px; }
  .scorebox b { font-size: 25px; }
  .combo-box .v { font-size: 28px; } .btn-primary { height: 52px; }
  }
.reflex-chip { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: var(--r-pill); border: 1px solid var(--c-xp); color: var(--c-xp); font: var(--t-body-s); font-weight: 800; vertical-align: middle; }
/* Décompte de reprise après Word Rain (jeu : chiffres géants, halos et pilule GO en dur) */
.resume { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--scrim); }
.resume small { color: var(--c-nav); letter-spacing: 3px; font-weight: 800; }
.resume b { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: min(72px, 17vw); white-space: nowrap; line-height: 1; color: var(--c-nav); -webkit-text-stroke: 0; text-shadow: 0 0 30px rgba(25, 230, 255, .6), 0 6px 0 rgba(0, 0, 0, .5); }   /* couleur pleine, comme le compte à rebours : un texte évidé (contour seul) montrait les chevauchements des lettres d'Exo 2 */
/* GO de la reprise = même pilule verte que le GO du départ (.go-bar) */
.resume.go b { padding: 22px 60px; border-radius: var(--r-pill); border: 3px solid var(--cta-border); background: linear-gradient(var(--cta-grad-top), var(--cta-grad-bottom)); font-size: 60px; line-height: normal; color: var(--text); -webkit-text-stroke: 0; text-shadow: none; box-shadow: 0 0 50px rgba(22, 224, 123, .9); }
/* Erreur de chargement du contenu */
.load-error { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--scrim); text-align: center; }
.load-error .card { display: flex; flex-direction: column; gap: 14px; padding: 22px; } .load-error b { font: var(--t-display-l); color: var(--c-score); } .load-error p { margin: 0; color: var(--text-2); }

/* ---------- Carte des quartiers et niveaux ---------- */
.mission-card { display: flex; flex-direction: column; gap: 2px; text-align: left; color: var(--text); }
.mission-card b { font: var(--t-body); font-weight: 700; } .mission-card span { font: var(--t-body-s); color: var(--c-nav); font-weight: 700; }
.frieze { position: relative; display: flex; flex-direction: column; gap: 10px; }
.frieze::before { content: ""; position: absolute; left: 25px; top: 20px; bottom: 20px; width: 3px; background: var(--line-strong); border-radius: var(--r-pill); }
.lv-prog { font: var(--t-body-s); color: var(--c-nav); font-weight: 700; margin-top: 2px; }   /* « 3 / 10 mots » sous le sous-titre d'une ligne */
.pk-sub { font: var(--t-body-s); text-align: center; color: var(--c-nav); font-weight: 700; margin-top: -4px; }

/* ---------- Arrêt d'un RUN ---------- */
#btnStop { font-weight: 900; color: var(--text); }
.toast { position: absolute; left: 50%; top: calc(var(--safe-top) + 64px); transform: translateX(-50%); z-index: 60; width: max-content; max-width: 90%; padding: 10px 18px; border-radius: var(--r-m); border: 1.5px solid var(--c-score); background: var(--surface); color: var(--c-score); font: var(--t-body-s); font-weight: 800; text-align: center; text-wrap: balance; }   /* sur 2 lignes : coupure équilibrée, jamais un mot seul en bas */

/* ---------- Barre du bas ---------- */
.tab:active { transform: scale(.94); }
#app[data-tabbar="on"] .screen { padding-bottom: calc(var(--safe-bottom) + 82px);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 66px - var(--safe-bottom)), transparent calc(100% - 58px - var(--safe-bottom)));
  mask-image: linear-gradient(#000 calc(100% - 66px - var(--safe-bottom)), transparent calc(100% - 58px - var(--safe-bottom))); }   /* masque : rien ne transparaît sous la barre (bugs 4, 6) */

/* ---------- Carrousel de l'accueil ---------- */
.best-card b { color: var(--c-score); }
.empty { margin: 8px 0; text-align: center; color: var(--text-2); font-weight: 700; }

/* ---------- Menu étendu ---------- */
.menu-n { top: -5px; left: auto; right: -5px; }

/* ---------- Zones cliquables (plus de bouton vert de navigation) ---------- */
.chev-r { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 30px; font-weight: 900; color: var(--c-nav); }   /* glyphe « › » : remplacé par une icône au 1.4 / lot 5 */
.mission-card.go { width: 100%; padding-right: 40px; cursor: pointer; }
.mission-card.go:active { transform: scale(.98); }
.mission-card.go[disabled] { cursor: default; } .mission-card.go[disabled] .chev-r { display: none; }

/* ---------- Reflex City : carte verticale ---------- */
/* décor : couleurs de l'illustration (route, halo, panneaux, repère, bas de carte) et petites tailles en dur ; écran refait au 6.3 */
#s-map { padding: calc(var(--safe-top) + 50px) 0 14px; gap: 0; overflow: hidden; }
.city-head { position: absolute; z-index: 4; top: calc(var(--safe-top) + 58px); left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; pointer-events: none; }   /* titre et bouton par-dessus la carte */
.city-viewport { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; background: #08184a url('../images/city/background.webp') center top / cover no-repeat; }
.city-viewport:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
#cityMap { position: relative; isolation: isolate; overflow: hidden; }
.city-section { position: relative; aspect-ratio: 1000 / 1150; --accent: #32eaff; }
.city-art { position: absolute; z-index: 1; top: 6%; left: 0; width: 100%; height: 88%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 8px 12px #061327aa); }
.city-route { position: absolute; inset: 0 auto auto 0; width: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.city-route path { fill: none; stroke-linecap: round; }
.city-route .halo { stroke: #2fbfff; stroke-width: 28; opacity: .38; filter: blur(9px); }
.city-route .edge { stroke: #bd55ff; stroke-width: 15; opacity: .8; }
.city-route .core { stroke: #bcefff; stroke-width: 5; }
.city-panel { position: absolute; z-index: 3; right: 5%; top: 40%; transform: translateY(-50%); width: 48%; padding: 12px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--c-nav); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--glow-1); text-align: left; color: var(--text); }
button.city-panel:active { transform: translateY(-50%) scale(.98); }
.city-panel.soon { border-color: var(--line); border-style: dashed; box-shadow: none; }
.city-row { display: flex; gap: 8px; align-items: center; }
.city-ico { display: none; }   /* carte : pas d'icône (maquette 02) ; en liste, l'icône remplace l'illustration */
.city-ico svg { display: block; flex: none; width: 26px; height: 26px; color: var(--c-nav); }
.city-panel strong { font: var(--t-display-m); font-size: 19px; text-transform: uppercase; overflow-wrap: break-word; }   /* maquette 02 */
.city-count { display: block; font: var(--t-body-s); color: var(--text-2); }
.city-cta { display: grid; place-items: center; min-height: var(--h-touch); border-radius: var(--r-pill); border: 1px solid var(--c-nav); color: var(--c-nav); font: 700 13px/1 var(--font-ui); }   /* Explorer : contour cyan (le vert est réservé à l'action principale) */
.city-soon, .city-here { align-self: flex-start; }
.city-soon .ic, .city-soon svg { width: 12px; height: 12px; }
.city-gauge { display: flex; margin-top: 2px; }
.city-node { position: absolute; left: 72%; top: 66%; transform: translate(-50%, -50%); width: 4%; height: auto; aspect-ratio: 1; border: 0; border-radius: 50%; z-index: 2; pointer-events: none;
  background: radial-gradient(circle, #ffffff 0 22%, #b9faff 38%, #2edfff 68%, #2edfff00 100%); box-shadow: 0 0 12px 3px #27eaffcc, 0 0 30px 8px #27eaff66; }   /* repère de la route : un petit point de lumière rond (sous le panneau, jamais sur Explorer) ; couleurs du décor en dur comme le reste de ce bloc */
.city-tail { position: relative; height: 145px; z-index: 1; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(transparent, #081b3ee8 70%); color: #a8d7ee; }
.city-tail p { font: var(--t-body-s); z-index: 3; margin: 0; background: #0a183edb; padding: 12px 17px; border: 1px solid #315780; border-radius: var(--r-s); }
.city-tail small { text-transform: none; letter-spacing: .3px; display: block; margin-top: 6px; color: #7592b7; font-size: 11px; }
#cityMap.compact { padding-top: 60px; }   /* place du titre et du bouton (bug 10) */
#cityMap.compact .city-section { aspect-ratio: 1000 / 450; }
#cityMap.compact .city-art { display: none; }
#cityMap.compact .city-panel { width: 65%; min-height: 85px; top: 51%; padding: 11px; }
#cityMap.compact .city-ico { display: block; }
#cityMap.compact .city-node { left: 26%; top: 51%; width: 4%; height: auto; }
@media (min-width: 560px) { .city-viewport { margin: 0 auto; width: min(100%, 600px); } }
@media (max-width: 340px) { .city-panel { padding: 11px 8px; } .city-panel strong { font-size: 16px; } }

/* ---------- Fonds : menus (image ville néon) et jeu (sobre) ----------
   décor : masques, voiles et dégradés des fonds en dur.
   Menus (accueil, carte, pack, découverte, résultats…) : images/menu-bg.webp + grille qui défile fondue dans la route de l'image.
   Jeu (compte à rebours, RUN, Word Rain) : fond sombre uni, sans ville ni lune, grille discrète : lisibilité avant tout. */
.bg-photo { inset: 0; background: url('../images/menu-bg.webp') center bottom / cover no-repeat; opacity: 0; transition: opacity .4s; }
.moon, #skyline { transition: opacity .4s; }
#app:not([data-screen="run"]):not([data-screen="rain"]):not([data-screen="count"]):not([data-screen="rebuild"]) .bg-photo:not(.bg-rain):not(.bg-rebuild):not(.bg-run) { opacity: 1; }
#app:not([data-screen="run"]):not([data-screen="rain"]):not([data-screen="count"]):not([data-screen="rebuild"]) .moon,
#app:not([data-screen="run"]):not([data-screen="rain"]):not([data-screen="count"]):not([data-screen="rebuild"]) #skyline { opacity: 0; }
/* menus : la grille s'ajoute à la route de l'image (lumière), fondu depuis l'horizon, centre de fuite commun */
/* jeu (compte à rebours, RUN, Word Rain, Rebuild) : fond sobre */
#app[data-screen="run"] #bg,
#app[data-screen="rain"] #bg,
#app[data-screen="count"] #bg,
#app[data-screen="rebuild"] #bg { background: linear-gradient(#04061a 0%, #08103a 60%, #04061a 100%); }
#app[data-screen="run"] .moon,
#app[data-screen="rain"] .moon,
#app[data-screen="count"] .moon,
#app[data-screen="rebuild"] .moon,
#app[data-screen="run"] #skyline,
#app[data-screen="rain"] #skyline,
#app[data-screen="count"] #skyline,
#app[data-screen="rebuild"] #skyline { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .bg-photo, .moon, #skyline { transition: none; } }
/* Jeu (compte à rebours, RUN, Rebuild, Word Rain) : une image de fond par mode, le MÊME voile partout (lot fonds, 4 nov. 2026). Le compte à rebours montre l'image du mode qui démarre (#app[data-bg], posé au lancement). */
#app[data-screen="run"] .bg-run, #app[data-screen="count"][data-bg="run"] .bg-run,
#app[data-screen="rain"] .bg-rain, #app[data-screen="count"][data-bg="rain"] .bg-rain,
#app[data-screen="rebuild"] .bg-rebuild, #app[data-screen="count"][data-bg="rebuild"] .bg-rebuild { opacity: 1; }
#app[data-screen="run"] .vignette, #app[data-screen="count"] .vignette, #app[data-screen="rain"] .vignette, #app[data-screen="rebuild"] .vignette { background: radial-gradient(ellipse at 50% 45%, rgba(3, 5, 25, .12) 30%, rgba(3, 4, 20, .62) 100%), linear-gradient(rgba(3, 5, 25, .35), rgba(3, 5, 25, .3)); }
/* lisibilité des lignes et tuiles sur le fond image des menus */
#app[data-tabbar="on"] #s-map { padding-bottom: calc(var(--safe-bottom) + 64px); }   /* la carte s arrête exactement au-dessus de la barre du bas (64 px) : « la ville continue » reste visible */
#s-run { padding-top: calc(var(--safe-top) + 58px); }   /* le badge de combo incliné ne passe pas sous la bande haute */

.weak-list { display: flex; flex-direction: column; gap: 8px; }
#s-weak, #s-train { align-items: stretch; }
/* Fiche, anglais caché (21 nov. 2026) : rien d'écrit à la place, les lignes gardent leur place (rien ne bouge à « Découvrir ») */
#s-discovery.conceal #discEn, #s-discovery.conceal #discIpa, #s-discovery.conceal #discCtx, #s-discovery.conceal #btnSpeak { visibility: hidden; }

/* bloc « À revoir » des résultats : touche pour revoir les cartes */

/* résultats : la barre du bas est là (Accueil, Carte, Révision, Mission) ; un seul gros bouton. On resserre sur les écrans courts. */
@media (max-height: 800px) { .stat { padding: var(--sp-2) var(--sp-3); } }

/* ---------- Arcade et Rebuild ---------- */
.rb-empty { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.rb-empty span { font: var(--t-body-s); color: var(--text-2); font-weight: 600; }
.rb-list { display: flex; flex-direction: column; gap: 10px; }
/* jeu : lueurs des cartes et des cases, dégradé des tuiles en dur ; écran refait au 6.7 */
#s-rebuild { gap: 8px; }
.rb-timebar { position: relative; flex: none; height: 26px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-sunken); overflow: hidden; }
.rb-timebar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--c-nav), var(--gauge-end)); transition: width .12s linear; }
.rb-card { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; text-align: center; }
.rb-card.wrong { animation: shake .32s; border-color: var(--c-danger); box-shadow: 0 0 20px rgba(255, 77, 109, .6); }
.rb-card.right { border-color: var(--c-success); box-shadow: 0 0 20px rgba(22, 224, 123, .55); }
.rb-img { width: clamp(64px, 12vh, 112px); height: clamp(64px, 12vh, 112px); }
.rb-img .wimg { width: 100%; height: 100%; border-radius: var(--r-m); border: 1.5px solid var(--line-strong); background: var(--surface-sunken); }
.rb-hint { font: var(--t-display-l); text-transform: uppercase; }
.rb-cells { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rb-row { display: flex; gap: 5px; justify-content: center; }
.rb-cell { width: var(--cell, 40px); height: calc(var(--cell, 40px) * 1.15); display: grid; place-items: center; border-radius: var(--r-s); border: 2px solid var(--line-strong); background: var(--surface-sunken); font-style: normal; font-family: var(--font-ui); font-weight: 800; font-size: calc(var(--cell, 40px) * .55); }
.rb-cell.filled { border-color: var(--c-nav); color: var(--text); box-shadow: 0 0 10px rgba(25, 230, 255, .5); }
.rb-cell.fixed { border-color: transparent; background: transparent; color: var(--text-2); }
.rb-cell.gstart { margin-left: 10px; }
.rb-reveal { min-height: 22px; font-weight: 800; color: var(--c-score); }
.rb-q { font-family: var(--font-display); font-weight: 900; font-style: italic; } .rb-q.reflex { color: var(--tier-reflex); } .rb-q.perfect { color: var(--tier-perfect); } .rb-q.good { color: var(--c-success); }
.rb-bank { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rb-brow { display: flex; gap: 8px; }
.rb-tile { width: clamp(42px, 14.5vw, 58px); height: clamp(42px, 14.5vw, 58px); border-radius: var(--r-m); border: 2px solid var(--c-nav); background: linear-gradient(#143a9a, #0b1f6a); font-style: normal; font-family: var(--font-ui); font-weight: 800; font-size: 26px; color: var(--text); box-shadow: var(--glow-2); }   /* tuiles de lettres : Inter 800, 26 px en dur, refaites au 6.7 (64 px) */
.rb-tile:active { transform: scale(.92); }
.rb-tile.used { opacity: .22; box-shadow: none; transform: none; }
.rb-actions { display: flex; align-items: center; gap: var(--sp-3); width: 100%; }   /* Effacer (secondaire) + Passer (lien discret : il coûte une erreur, on ne le met pas en avant) */
.rb-actions .rb-erase { flex: 1; width: auto; }
.rb-actions .rb-skip { flex: none; width: auto; padding: 0 var(--sp-4); }
/* décor — Word Rain : image de fond dédiée (ville néon et traînées lumineuses) */
.bg-rain { background-image: url('../images/wordrain-bg.webp'); }
.bg-run { background-image: url('../images/run-bg.webp'); }
/* grille qui défile fondue dans la route de l'image : seulement le bas (l'horizon de cette image est aux trois quarts), fondu depuis l'horizon */
/* Word Rain : voile des bords allégé pour laisser voir l'image (les mots ont leur propre fond foncé, ils restent lisibles) */

/* décor — Rebuild : image de fond dédiée (cubes de lettres sur une route néon), même traitement que Word Rain ; l'horizon est aux deux tiers */
.bg-rebuild { background-image: url('../images/rebuild-bg.webp'); }

/* ---------- Icônes en traits néon (remplacent les emojis) ---------- */
.ic { display: inline-flex; flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em; line-height: 1; }
.ic svg { width: 100%; height: 100%; overflow: visible; }   /* menus : icônes plates (7.1) */
#app[data-bar="game"] .ic svg { filter: drop-shadow(0 0 4px currentColor); }   /* en jeu : la lueur reste */
.icon-btn .ic, .round-btn .ic { width: 20px; height: 20px; }
.round-btn .ic { width: 24px; height: 24px; }
.run-plate span { display: inline-flex; }
.si { display: inline-flex; }
.si .ic { width: 1.2em; height: 1.2em; }
.q-timer { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }

/* Mots à retravailler : fenêtre défilante de 5 mots visibles, le bouton « Revoir et m'entraîner » reste toujours à l'écran */

/* Progression : répartition des mots par état (carte du district, détail, groupes) */
.prog-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "lab pct" "bar bar" "sub sub"; align-items: center; gap: 6px 12px; padding: 12px 38px 12px 14px; text-align: left; position: relative; border-color: var(--c-nav); }
.prog-card.static { padding-right: 14px; cursor: default; }
.prog-card small { font: var(--t-body-s); grid-area: lab; color: var(--text-2); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.prog-card > b { grid-area: pct; font: var(--t-score-m); color: var(--c-nav); white-space: nowrap; }
.prog-card .m-sub { font: var(--t-body-s); grid-area: sub; color: var(--text-2); font-weight: 700; line-height: 1.4; }
.prog-card .gauge { grid-area: bar; margin-top: 4px; } .prog-card .chev-r { right: 12px; font-size: 26px; }
.ms-theme h3 { display: flex; justify-content: space-between; margin: 10px 2px 4px; font: var(--t-display-m); text-transform: uppercase; } .ms-theme h3 b { color: var(--c-nav); }

/* Légende des états (détail du district, progression) : mêmes couleurs que la barre */
.legend { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.lg-row { display: flex; align-items: center; gap: 10px; --c: var(--state-new); }
.lg-row.confirme { --c: var(--state-mastered); } .lg-row.en_progres { --c: var(--state-learning); } .lg-row.a_revoir { --c: var(--state-fragile); } .lg-row.decouvert { --c: var(--state-new); }
.lg-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-pill); border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.lg-ico .ic { width: 17px; height: 17px; }
.lg-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; } .lg-txt b { font: var(--t-body); font-weight: 700; } .lg-txt small { font: var(--t-body-s); color: var(--text-2); line-height: 1.3; text-transform: none; letter-spacing: 0; font-weight: 600; }
.lg-n { font: var(--t-score-m); color: var(--c); }
.legend.compact { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; } .legend.compact .lg-row { gap: 6px; } .legend.compact .lg-ico { width: 24px; height: 24px; } .legend.compact .lg-ico .ic { width: 14px; height: 14px; } .legend.compact .lg-txt b { font: var(--t-body-s); font-weight: 700; } .legend.compact .lg-n { font-size: 16px; }
#pCard { display: grid; text-align: left; position: relative; padding-right: 38px; cursor: pointer; }

/* Test de fin de niveau ; Respire (jeu : halo du mot en dur, écran refait au 6.6) */
.br-word { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 54px; color: var(--text); text-shadow: 0 0 18px var(--c-nav), 0 0 40px rgba(25, 230, 255, .6); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.78); opacity: .55; } 50% { transform: scale(1.4); opacity: 1; } }
.br-sub { font: var(--t-title); margin: 36px 0 18px; color: var(--text-2); font-weight: 700; text-shadow: 0 1px 3px #000; }   /* ombre noire de lisibilité, en dur */ .br-sub b { color: var(--c-nav); }
#s-breathe .btn-secondary { padding: 0 26px; }
#s-testend { gap: 8px; } #teVerdict.ok { border-color: var(--c-success); } #teVerdict.warn { border-color: var(--c-score); } #teVerdict b { font-size: 54px; }   /* fin de test refaite au 6.6 */
#s-testend .btn-primary { margin-top: 2px; }

/* XP, niveau et profil */
#s-profile { align-items: stretch; gap: 8px; }
.pf-name { width: 100%; max-width: 280px; text-align: center; background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong); color: var(--text); font: var(--t-display-m); padding: 2px 4px; text-transform: uppercase; }
.pf-name::placeholder { color: var(--text-2); } .pf-name:focus { outline: none; border-bottom-color: var(--c-nav); }
.pf-box { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; } .pf-box > small { font: var(--t-label); color: var(--text-2); font-weight: 800; letter-spacing: var(--ls-label); }
.pf-line { font: var(--t-body); display: flex; justify-content: space-between; font-weight: 700; } .pf-line b { color: var(--c-nav); } .pf-line b.full { color: var(--text-2); }

/* Défis à paliers */
/* Succès (22 nov. 2026, design system v1.9) : écran Succès et page d'un badge. Badges et tuiles : composants .bdg* (components.css). */
#s-challenges, #s-badge { align-items: stretch; gap: var(--sp-3); }
.ch-body { display: flex; flex-direction: column; gap: var(--sp-3); }
.ch-sum { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); }
.ch-sum .hd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); } .ch-sum .hd b { font: var(--t-title); }
.ch-lbl { margin: var(--sp-1) 2px 0; } .ch-lbl.xp { color: var(--c-xp); }
.ch-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-4); } .ch-empty p { margin: 0; font: var(--t-body); color: var(--text-2); }
/* Records (étape 4, 22 nov. 2026) : lignes de Moi sans flèche ; icône cyan (.row .ico), valeur en jaune score, même « XP en un jour » */
.ch-recs { display: flex; flex-direction: column; gap: var(--sp-3); }
.ch-rec .end { font: var(--t-score-m); color: var(--c-score); white-space: nowrap; }

.bk-text { font: var(--t-body-s); margin: 0; color: var(--text-2); font-weight: 600; line-height: 1.35; }
#impText { white-space: pre-line; text-align: left; }

/* jeu : chiffres géants, halos, anneau et flash blanc en dur (jus du jeu, gardé au 7.1) */
/* Compte à rebours de départ (même animation que les vidéos) : fond noir, gros chiffres 3 · 2 · 1 qui claquent, onde, puis GO ! et flash */
#s-count { background: #000; }
#s-count .count-num { position: relative; margin: 0; font-size: 250px; font-weight: 900; font-style: italic; color: var(--c-nav); -webkit-text-stroke: 0; filter: none;
  text-shadow: 0 0 40px rgba(25, 230, 255, .6), 0 8px 0 rgba(0, 0, 0, .5); }
#s-count .count-num[data-n="1"] { color: var(--c-score); text-shadow: 0 0 40px rgba(255, 207, 58, .6), 0 8px 0 rgba(0, 0, 0, .5); }
#s-count .count-num.go { font-size: 120px; color: var(--c-success); text-shadow: 0 0 40px rgba(22, 224, 122, .6), 0 6px 0 rgba(0, 0, 0, .5); }
#s-count .count-num.slam { animation: cdpop .34s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes cdpop { 0% { transform: scale(1.7); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.cd-ring { position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border: 6px solid var(--c-nav); border-radius: var(--r-pill); opacity: 0; pointer-events: none; }
.cd-ring.on { animation: cdring .55s ease-out; }
@keyframes cdring { 0% { transform: scale(.1); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.cd-flash { position: absolute; inset: 0; background: var(--text); opacity: 0; pointer-events: none; }
.cd-flash.on { animation: cdflash .35s ease-out; }
@keyframes cdflash { 0% { opacity: .85; } 100% { opacity: 0; } }

/* Pastille de record d'un groupe : coupe dorée + meilleur score, chrono cyan + meilleur temps moyen (prend la place du statut à droite de la ligne) */

/* Résultats : d'où vient le score (thème · niveau · groupe), pour comparer avec les autres joueurs */
.res-ctx { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; margin: -4px 0 2px; }
.res-ctx b { font: var(--t-body); font-weight: 700; color: var(--c-nav); letter-spacing: 1.5px; text-transform: uppercase; }
.res-ctx small { font: var(--t-body-s); color: var(--text-2); font-weight: 700; }


/* Paramètres : liste des langues */

/* ---------- Raccords du lot 4.2 : lignes (.row), étiquettes, jauges, stats (composants dans components.css) ---------- */
.row { width: 100%; text-align: left; color: var(--text); }
.row.open { cursor: pointer; } .row.open:active { transform: scale(var(--press-scale)); }
.row .txt > .tag { align-self: flex-start; margin: 3px 0 1px; }
.row .txt .gauge { margin-top: 6px; }
.row .end .chev-r { position: static; transform: none; font-size: 26px; }   /* glyphe « › » : remplacé par une icône au lot 5 */
.row .end .ic, .row .num .ic, .tag .ic { width: 18px; height: 18px; }
.row .ico .ic { width: 22px; height: 22px; }
.row .ico.img .wimg { width: 100%; height: 100%; }
.weak-item, .card-item { cursor: default; } .card-item { cursor: pointer; }
.card-item .txt b { color: var(--c-nav); }   /* anglais en vedette (cyan), français dessous */
.frieze::before { display: none; }   /* plus de fil entre les numéros : les lignes du design n'en ont pas */
.gauge i { transition: width .35s var(--ease-out); }

.stat:nth-child(1) .v, .stat:nth-child(2) .v { color: var(--c-nav); }

/* ---------- Raccords du lot 4.3 : feuilles du bas (composant dans components.css) ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 60; }
.sheet { padding-bottom: calc(var(--sp-6) + var(--safe-bottom)); text-align: center; }
.sheet h2 { margin: 0; font: var(--t-display-m); text-transform: uppercase; text-wrap: balance; }
.sheet p { margin: 0; font: var(--t-body); color: var(--text-2); }
.sheet .eyebrow { font: var(--t-label); letter-spacing: var(--ls-label); }   /* v1.6 (14 nov. 2026) : l'étiquette garde sa taille (11 px), « .sheet p » l'écrasait en 15 px */
.sheet-wrap:not(.hidden) .sheet { animation: sheetUp var(--dur-base) var(--ease-out); }
.sheet-wrap:not(.hidden) .scrim { animation: scrimIn var(--dur-base) ease-out; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes scrimIn { from { opacity: 0; } }

/* ---------- Raccords du lot 4.4 : tampons, pastille record, combo (composants dans components.css) ---------- */
/* Tampon : caché hors réponse, il claque puis s'efface ; incliné de -4° (seul élément incliné du jeu) */
.stamp { top: -10px; z-index: 12; white-space: nowrap; pointer-events: none; opacity: 0; }
.stamp.show { animation: stamp .9s ease-out forwards; }
/* REFLEX ! et PARFAIT claquent plus fort (même place, même taille, même inclinaison) */
.stamp.show.reflex, .stamp.show.perfect { animation-name: stampslam; animation-duration: 1s; }
@keyframes stampslam { 0% { opacity: 0; transform: rotate(-4deg) scale(2.2); } 12% { opacity: 1; transform: rotate(-4deg) scale(.88); } 22% { transform: rotate(-4deg) scale(1.08); } 32% { transform: rotate(-4deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: rotate(-4deg) translateY(-8px); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-4deg) scale(.4); } 15% { opacity: 1; transform: rotate(-4deg) scale(1.2); } 30% { transform: rotate(-4deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: rotate(-4deg) translateY(-8px); } }
/* PARFAIT, BIEN et OK : le design ne dessine que REFLEX ! et RATÉ ; ces trois-là gardent leur rendu (fonds en dur, jeu) */
.stamp.perfect { color: var(--tier-perfect); background: rgba(20, 60, 20, .85); border: 2px solid var(--c-success); box-shadow: 0 0 24px var(--c-success); }
.stamp.good { color: var(--tier-good); background: rgba(10, 30, 90, .9); border: 2px solid var(--tier-good); }
.stamp.correct { color: var(--tier-ok); background: rgba(20, 30, 80, .9); border: 2px solid var(--line-strong); }
.combo-box.pop { animation: pop .3s ease-out; }
@keyframes pop { 40% { transform: scale(1.12); } }
.rec .ic { width: 14px; height: 14px; }

/* ---------- Raccords du lot 5.1 : barre haute à 3 variantes (+ fins de partie) ---------- */
#topbar { justify-content: flex-start; gap: var(--sp-2); }
#topbar .top-right { margin-left: auto; }
.bar-back { flex: none; width: var(--h-touch); height: var(--h-touch); margin-left: -8px; display: grid; place-items: center; color: var(--c-nav); background: none; border: 0; }
.bar-back .ic { width: 24px; height: 24px; }
.bar-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bar-ttl small { font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-ttl b { font: var(--t-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-gauge { flex: 1; }
.chip-stat .ic { width: 16px; height: 16px; }
.chip-stat.streak .ic { color: var(--c-score); } .chip-stat.lvl .ic { color: var(--c-xp); }
/* Sous-écrans et fins de partie : le titre est dans la barre haute ; ce qu'il disait en page n'est pas perdu (fil d'Ariane) */
#app[data-bar="sub"] .screen.active > h2, #app[data-bar="end"] .screen.active > h2 { display: none; }
#app[data-bar="sub"] #s-pack .pk-sub#pkSub { display: none; }
#app[data-bar="end"] #rCtx { display: none; }
#app[data-bar="sub"] .screen, #app[data-bar="end"] .screen { padding-top: calc(var(--safe-top) + 66px); }   /* barre haute sur 2 lignes (fil d'Ariane + titre) */

/* ---------- Raccords du lot 5.2 : barre du bas (composant dans components.css) ---------- */
/* boutons : le composant est écrit pour des <span> ; la zone sûre du bas s'ajoute à la hauteur */
.tabbar { height: calc(var(--h-tabbar) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); z-index: 25; }
.tab svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.play .disc svg { stroke: none; }

/* ---------- Raccords du lot 5.3 : écrans Moi et Paramètres (composants dans components.css) ---------- */
#s-profile, #s-settings { gap: 10px; }
.me-head { display: flex; flex-direction: row; justify-content: flex-start; flex: none; min-height: 0; gap: 16px; align-items: center; }   /* .hero : l'ancien accueil (style.css) pose une colonne ; retiré au 6.1 */
.me-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.me-id .pf-name { width: 100%; max-width: none; text-align: left; padding: 0; border: 0; border-bottom: 1px dashed transparent; background: transparent; color: var(--text); font: var(--t-display-m); text-transform: uppercase; }
.me-id .pf-name:focus { outline: none; border-bottom-color: var(--c-nav); }
.me-hint { font: var(--t-body-s); text-transform: none; letter-spacing: 0; color: var(--c-nav); }
.me-id .gauge { margin-top: 4px; }
.stat .v.streak { color: var(--c-score); }
.row.xp .ico { color: var(--c-xp); border-color: rgba(181,123,255,.35); background: rgba(181,123,255,.1); }
.row.score .ico { color: var(--c-score); border-color: rgba(255,207,58,.35); background: rgba(255,207,58,.08); }
.row .end .badge-n { position: static; }
#meSaveSub.warn, #pfLastExport.warn { color: var(--c-score); }
#s-settings .eyebrow { margin-top: 6px; }
.set-card { padding: 2px 16px; }
.kv-l { display: flex; gap: 10px; align-items: center; }
.kv-l .ic, .kv-l svg { width: 20px; height: 20px; color: var(--c-nav); }
.kv-pad { width: 20px; flex: none; }
.kv.locked { color: var(--text-3); cursor: default; }
.kv-ok { color: var(--c-success); display: grid; } .kv-ok svg { width: 22px; height: 22px; }
.kv .chev-r { position: static; transform: none; font-size: 26px; }
.set-card .kv { border-bottom: 0; } .set-card > :not(:first-child) { border-top: 1px solid var(--line); }   /* séparateurs entre lignes visibles (les lignes cachées n'en laissent pas) */
.set-card .set-note { padding: 10px 0 12px; }

/* ---------- Raccords du lot 6.1 : accueil (composants dans components.css) ---------- */
#s-home { gap: 10px; }
#s-home .h-l { margin-top: 2px; }
.eyebrow.cy { color: var(--c-nav); }
.continue { position: relative; display: flex; flex-direction: column; text-align: left; }
.continue .h-m, .continue .lead { max-width: 220px; }
.continue .h-m { margin-top: 6px; }
.continue .art img { width: 100%; height: 100%; object-fit: contain; }
/* Accueil : bloc « Test du module en attente » (13 nov. 2026) ; violet pour le bord et l'icône, lien « + N autres » en cyan */
.home-test { padding: 0; overflow: hidden; border-color: var(--line-xp); }
.home-test .row.flat { border: 0; background: none; border-radius: 0; text-align: left; width: 100%; }
.home-test .row .end .chev-r, .ht-more .chev-r { position: static; transform: none; }
.ht-more { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: var(--h-touch); padding: 0 var(--sp-3) 0 64px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--c-nav); font: var(--t-body-s); font-weight: 600; text-align: left; }
.ht-more.hidden { display: none; }
#testsSheet .sheet { text-align: left; }
#testsSheet .ts-head { color: var(--c-xp); }
#testsSheet .row { text-align: left; width: 100%; flex: none; }
#testsSheet .row .end .chev-r { position: static; transform: none; }
/* Mes mots : ligne « Réviser les mots fragiles » ; feuille de l'Arcade */
#mwFrag { flex: none; text-align: left; min-height: 0; padding: var(--sp-1) var(--sp-3) var(--sp-1) var(--sp-1); }   /* ligne compacte : même hauteur que les filtres Tous · Fragiles · Maîtrisés */
#mwFrag .ico { width: var(--h-touch); height: var(--h-touch); }
#mwFrag .txt b { font: var(--t-chip); }   /* même texte que les filtres juste en dessous */
#arcadeIntro .sheet { text-align: left; }
/* Feuille « Module pas encore terminé » : groupes à réussir en jaune (« à faire ») */
#notDone .sheet { text-align: left; }
#notDone .nd-head { color: var(--c-score); }
#notDone .nd-todo { margin: 0; font: var(--t-body); font-weight: 700; color: var(--c-score); }
/* Mission = test du module (13 nov. 2026) : violet seulement pour le bord, l'étiquette et l'icône cible ; le bouton reste vert */
.continue.test { border-color: var(--c-xp); }
.continue.test .eyebrow.cy { color: var(--c-xp); }
.continue.test .art { display: grid; place-items: center; color: var(--c-xp); filter: none; }
.continue.test .art svg, .continue.test .art .ic { width: var(--icon-xl); height: var(--icon-xl); }
#hgPlay { gap: 8px; } #hgPlay .ic, #hgPlay svg { width: 22px; height: 22px; }
.continue .meta.hidden + #hgPlay { margin-top: 14px; }   /* tout découvert : pas de ligne d infos au-dessus du bouton */
/* Rien à reprendre (14 nov. 2026) : icône Ville cyan qui flotte en haut à droite, le titre reprend toute la largeur dessous (2 lignes) */
.continue.explore { display: block; }
.continue.explore .art { position: static; float: right; width: var(--icon-xl); height: var(--icon-xl); margin: 0 0 4px 12px; display: grid; place-items: center; color: var(--c-nav); filter: none; }
.continue.explore .art svg, .continue.explore .art .ic { width: var(--icon-xl); height: var(--icon-xl); }
.continue.explore .h-m, .continue.explore .lead { max-width: none; }
.continue.explore .lead { margin-top: 6px; }
/* Feuille « Thème terminé ! » : étiquette verte (réussi) */
#themeDone .sheet { text-align: left; }
#themeDone .td-head { color: var(--c-success); }
.pill-info .ic { width: 16px; height: 16px; color: var(--c-nav); }
.mini { text-align: left; color: var(--text); }
.mini .lead { display: block; }
.mini .gauge { display: flex; margin-top: 6px; }
.mini.score { border-color: var(--c-score); }
.mini.score .eyebrow, .mini.score .big { color: var(--c-score); }
.banner .ic { width: 20px; height: 20px; color: var(--c-score); flex: none; }
.banner button { margin-left: auto; color: var(--c-score); font-weight: 700; white-space: nowrap; min-height: var(--h-touch); }

/* ---------- Raccords du lot 6.2 : Révision du jour et fin de session (composants dans components.css) ---------- */
#s-review, #s-revend { gap: 10px; }
.pillar .kind .ic, .pillar .kind svg { width: 16px; height: 16px; }
.pillar .big { font-size: 64px; }                  /* maquette 12 */
.rev-more-lbl { margin-top: 6px; }
.rev-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; text-align: center; }
.rev-done > b { font: var(--t-title); }
.rev-done .btn { margin-top: 8px; }
.ok-ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--c-success); color: var(--c-success); }
.ok-ring .ic, .ok-ring svg { width: 28px; height: 28px; }
#s-revend .score-big { color: var(--c-memory); }
/* Rebuild (5 nov. 2026) : plus de points, plus de combo. Les blocs Score et Combo gardent leur place mais ne se voient plus, pour que la carte du mot reste exactement où elle était. */
#s-rebuild .rb-hud-off { visibility: hidden; }
/* Bilan Rebuild : « SCORE » en blanc à la place du chiffre jaune ; ligne REFLEX / PARFAIT / BIEN sous les trois blocs (composant .chip-stat) */
#s-rebuildend .score-big { color: var(--text); text-shadow: none; }
.rb-tiers { justify-content: center; padding-block: var(--sp-1); }
.rb-tiers .t-reflex { color: var(--tier-reflex); } .rb-tiers .t-perfect { color: var(--c-score); } .rb-tiers .t-good { color: var(--c-nav); }
.re-xp { color: var(--c-xp); font-weight: 700; }
.re-left { font: var(--t-score-m); color: var(--c-memory); }
#s-revend .section-title { margin: 0 0 10px; align-items: center; }
.re-err { color: var(--state-fragile); }
.re-link { font: 600 13px/1 var(--font-ui); color: var(--c-nav); padding: 15px 0; margin: -15px 0; }   /* zone tactile de 44 px qui déborde, sans creuser la carte */
.result-head .tag .ic, .result-head .tag svg { width: 12px; height: 12px; }

/* ---------- Raccords du lot 6.3a : Ville (sélecteur Carte | Liste du design) ---------- */
.city-title { margin: 0; font-size: 26px; }   /* maquette 02 */
.city-seg { pointer-events: auto; flex: none; width: 150px; }
.city-seg button { flex: 1; height: 34px; display: grid; place-items: center; border-radius: var(--r-pill); font: 600 13px/1 var(--font-ui); color: var(--text-2); }
.city-seg button.on { background: var(--surface-raised); color: var(--text); border: 1px solid var(--c-nav); }

/* ---------- Raccords du lot 6.3b : District et Thème ---------- */
#s-district, #s-levels { gap: 10px; }
.ds-prog .dot-legend { margin-top: 4px; }
#dsThemesLbl { margin-top: 4px; }
.theme { position: relative; text-align: left; color: var(--text); }
.th-tag { position: absolute; top: var(--sp-3); right: var(--sp-3); }   /* « En cours » / « Terminé », en face de l'icône */
.theme svg { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.theme.started { border-color: var(--c-nav); box-shadow: var(--glow-1); }
.theme.open:active { transform: scale(.98); }
.theme.soon { cursor: default; }
.th-txt { display: flex; flex-direction: column; gap: 6px; }
.th-txt .gauge { display: flex; margin-top: 2px; }
.th-txt .lead { font: var(--t-body-s); }
#lvList .txt .gauge { display: flex; margin-top: 6px; }
#lvList .end .chev-r { position: static; transform: none; font-size: 26px; }

/* ---------- Raccords du lot 6.3c : Module et feuille des records ---------- */
#s-pack { gap: 10px; }
.pk-prog .section-title { margin: 0 0 8px; }
.pk-prog .section-title b { font: 700 14px/1 var(--font-ui); white-space: nowrap; }   /* maquette 05 */
.pk-prog .gauge { display: flex; }
.pk-test { text-align: left; }
.pk-test.locked { cursor: default; }
.pk-test .end .chev-r { position: static; transform: none; font-size: 26px; }
#pkGroups .row .rec { flex: none; }
#gsHead { color: var(--c-score); } #gsHead.ok { color: var(--c-success); }
#gsTitle { margin: 0; }
#groupSheet .sheet { text-align: left; }
#gsScore { color: var(--c-score); } #gsTime { color: var(--c-nav); } #gsAcc { color: var(--text); } #gsAcc.ok { color: var(--c-success); }
#gsShare { gap: 8px; } #gsShare .ic, #gsShare svg { width: 20px; height: 20px; }

/* ---------- Raccords du lot 6.4 : feuille de lancement et fiche de découverte ---------- */
#confirmGo .sheet { text-align: left; }
#goHead { font: var(--t-label); letter-spacing: var(--ls-label); color: var(--c-nav); } #goHead.ok { color: var(--c-success); }
.go-steps { display: flex; flex-direction: column; gap: 10px; }
.row.flat { min-height: 0; }
.go-time { align-self: center; }
.go-time .ic { width: 16px; height: 16px; color: var(--c-nav); }
/* fiche (maquette 07) : posée sur le fond, image 170 px, anglais en vedette, phonétique + écouter */
#s-discovery { gap: 12px; }
#s-discovery .dots { margin-top: 2px; gap: 6px; justify-content: center; }   /* points du design (maquette 07) */
#s-discovery .dots i { width: 8px; height: 8px; border: 0; background: var(--line-strong); box-shadow: none; transform: none; }
#s-discovery .dots i.done { background: var(--c-success); }
#s-discovery .dots i.now { width: 22px; border-radius: 4px; background: var(--c-nav); box-shadow: var(--glow-1); }
#app[data-screen="discovery"] .vignette { background: var(--surface-sunken); }   /* fond assombri derrière la fiche (maquette 07 : « bg dim ») */
.fiche { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.fiche.swap { animation: swap .35s cubic-bezier(.2, .9, .3, 1.2); }
.fiche .disc-img { width: 170px; height: 170px; }
.disc-img .wimg { background: radial-gradient(circle, rgba(47,107,255,.35), rgba(10,16,64,.2)); }   /* décor de la fiche (maquette 07) */
.fiche .disc-fr { font: 800 italic 22px/1 var(--font-display); font-size: calc(22px * var(--fit, 1)); color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; text-shadow: none; }
.fiche .disc-en { font: 900 italic 52px/1 var(--font-display); font-size: calc(52px * var(--fit, 1)); color: var(--c-nav); text-shadow: var(--glow-2); }
.disc-ipa-row { display: inline-flex; align-items: center; gap: 8px; }
.fiche .disc-ipa { font: 500 17px/1 var(--font-ui); color: var(--text-2); letter-spacing: 0; }
.fiche .round-btn { position: static; }
.disc-ctx { flex: none; margin: 0; padding: 14px 16px; border-top: 1.5px solid var(--line-strong); text-align: left; gap: 6px; }
.disc-ctx.trap { border-color: var(--c-score); } .disc-ctx.fake { border-color: var(--c-combo); }
.ctx-title { display: flex; align-items: center; gap: 6px; }
.disc-ctx.trap .ctx-title { color: var(--c-score); } .disc-ctx.fake .ctx-title { color: var(--c-combo); }
.ctx-title .ic { width: 16px; height: 16px; }
.disc-ctx .ctx-expl { color: var(--text); }
.disc-ctx p + p { margin-top: 6px; }
.disc-ctx .ctx-en { font: 600 italic 15px/1.3 var(--font-ui); }
.disc-nav { display: flex; gap: 10px; }
.disc-nav #btnCardPrev { width: 56px; flex: none; padding: 0; }
.disc-nav #btnCardPrev .ic { width: 22px; height: 22px; }
.disc-nav #btnDiscNext { flex: 1; }
#barTtl.center { flex: 1; text-align: center; align-items: center; }

/* ---------- Raccords du lot 6.5 : Run et Word Rain ---------- */
.bar-count { flex: none; font: 700 14px/1 var(--font-ui); color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }   /* « 3 / 20 » de la barre de partie (maquette 09) */
.bar-count .prog-extra { color: var(--state-fragile); font-style: normal; font-weight: 800; }
.scorebox { border-color: var(--c-score); padding: 10px 16px; }
.scorebox small { display: block; }
.energy { display: flex; flex-direction: column; gap: 8px; transition: opacity .4s; }
.segs { display: flex; gap: 6px; }
.segs i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--line-strong); }
.segs i.on { background: var(--c-score); box-shadow: var(--glow-score); }
.q-sub { font: var(--t-body); color: var(--text-2); } .q-sub:empty { display: none; }
.q-reveal { color: var(--text); font-weight: 500; } .q-reveal b { color: var(--c-success); }
.choices { flex: none; }
.choice { flex: none; height: 58px; min-height: 0; max-height: none; }   /* réponses 58 px (maquette 09) */
#barChip { gap: 6px; } #barChip .ic { width: 16px; height: 16px; }
.rain-area { -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent); mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }   /* en bas, un mot s'efface au lieu d'être coupé net */

/* ---------- Raccords du lot 6.6a : Résultats du Run (11, 11b) ---------- */
#s-results { gap: 10px; }
.result-head .tag .ic { width: 12px; height: 12px; }
#rAcc.ok { color: var(--c-success); } #rAcc.warn { color: var(--c-score); }
.r-time { color: var(--c-nav); } .r-combo { color: var(--c-combo); }
#rErrCard .section-title { margin: 0 0 10px; align-items: center; }

/* ---------- Raccords du lot 6.6b : fins d'Arcade et de test ---------- */
#s-rebuildend, #s-rainend, #s-testend { gap: 10px; }
#s-rebuildend .section-title, #s-testend .section-title { margin: 0 0 10px; align-items: center; }
.stat .k.t-reflex { color: var(--tier-reflex); } .stat .k.t-perfect { color: var(--c-score); } .stat .k.t-good { color: var(--c-nav); }

/* ---------- Raccords du lot 6.7 : Arcade, choix des mots, Rebuild en jeu ---------- */
#s-arcade, #s-rebuildhub, #s-rainhub { gap: 10px; }
.arc-row { min-height: 88px; border-color: var(--c-nav); box-shadow: var(--glow-1); }   /* maquette 16 : grandes lignes des jeux */
.arc-row .ico { width: 56px; height: 56px; } .arc-row .ico .ic, .arc-row .ico svg { width: 28px; height: 28px; }
.arc-row .txt b { font: var(--t-display-m); text-transform: uppercase; }
#rbRows .row .end .ic, #rnRows .row .end .ic, #rbThemes .row .end .ic, #rnThemes .row .end .ic { width: 22px; height: 22px; color: var(--c-nav); }
.rb-combo .bar, .rb-combo .mult { display: none; }   /* Rebuild : le combo ne multiplie pas les points, seul le chiffre compte */
.rb-img .wimg { border: 0; background: transparent; }   /* maquette 18 : image sans cadre */
.rb-time { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.rb-time .rb-timebar { flex: 1; height: 10px; }
.rb-time b { flex: none; min-width: 2.3em; text-align: right; font: 700 14px/1 var(--font-ui); color: var(--c-nav); font-variant-numeric: tabular-nums; }   /* largeur réservée à « 18 s » : sinon la barre s'élargit d'un coup quand le chrono passe de 10 à 9 s (le texte perd un chiffre) */
.rb-tile { width: 64px; height: 64px; }   /* tuiles 64 px (maquette 18) */

/* ---------- Raccords du lot 6.8a : Points faibles et S'entraîner ---------- */
#s-weak, #s-train { gap: 10px; }
.list-card { padding: 4px 16px; }   /* maquette 13 : une seule carte, lignes séparées */
.list-card .row { background: none; border: 0; border-radius: 0; padding: 12px 0; min-height: 0; box-shadow: none; }
.list-card .row + .row { border-top: 1px solid var(--line); }
#weakList { display: flex; flex-direction: column; }
.list-card .weak-more { text-align: center; padding: 10px 0 8px; border-top: 1px solid var(--line); }   /* « + N autres mots » dans la carte : lisible, pas posé sur le décor */
.row.locked .end .chev-r { display: none; }

/* ---------- Raccords du lot 6.8b : Mes fiches et Mes mots ---------- */
#s-progress { gap: 10px; }
.cards-seg button { flex: 1; height: 40px; display: grid; place-items: center; border-radius: var(--r-pill); font: var(--t-chip); color: var(--text-2); }
.cards-seg button.on { background: var(--surface-raised); color: var(--text); border: 1px solid var(--c-nav); }
.cards-groups { display: flex; flex-direction: column; gap: 10px; }
.cards-groups .eyebrow { margin: 4px 2px 0; }
/* Mes mots, liste repliable (18 nov. 2026, maquette 9-mes-mots) : Thème > module > groupe > mots ; composants et tokens existants */
.mw-theme { display: flex; flex-direction: column; gap: var(--sp-2); }
.mw-head { width: 100%; text-align: left; color: var(--text); cursor: pointer; }
.mw-head .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }   /* icône du thème (mêmes traits que les tuiles du district) */
.mw-head .txt b { font: var(--t-title); }
.mw-head .txt .gauge, .mw-group .txt .gauge { display: flex; margin-top: 6px; }
.mw-theme.open > .mw-head { border-color: var(--c-nav); }
.mw-fold { font-style: normal; font-size: 26px; line-height: 1; color: var(--text-2); display: inline-block; width: 22px; text-align: center; }
[aria-expanded="true"] > .end .mw-fold { transform: rotate(90deg); color: var(--c-nav); }   /* pas d'animation : ouverture instantanée (menus calmes) */
.mw-body { display: flex; flex-direction: column; gap: var(--sp-2); padding-left: var(--sp-2); }
.mw-body > .eyebrow { margin: var(--sp-1) 2px 0; }
.mw-group { width: 100%; text-align: left; color: var(--text); cursor: pointer; }
.mw-group .num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font: var(--t-chip); color: var(--text-2); }
.mw-group.open .num { border-color: var(--c-nav); color: var(--c-nav); }
.mw-frag { font-style: normal; color: var(--state-fragile); font-weight: 700; }
.mw-words { margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4); background: var(--surface-sunken); border-top: 1px solid var(--line); }
.mw-words .row + .row { border-top: 1px solid var(--line); }
.list-card .mw-words + .row { border-top: 1px solid var(--line); }
.list-card .row.card-item { cursor: pointer; }
.list-card .row .txt b { color: var(--text); }
.tag.learn { color: var(--state-learning); } .tag.mast { color: var(--state-mastered); } .tag.disc { color: var(--state-new); }
.mw-card { padding-right: 14px; }
.mw-card > b { color: var(--text); font: var(--t-body); font-weight: 600; }
.mw-card > b .n { font: var(--t-score-m); color: var(--text); }
.mw-card > b .of { color: var(--text-2); }
.mw-card .dot-legend { margin-top: 4px; }
.mw-how { padding: 12px 14px; font: var(--t-body); color: var(--text-2); line-height: 1.45; margin: 0; }
.mw-how b { color: var(--text); }

/* ---------- Raccords du lot 6.8c : Défis et feuille « Quitter » ---------- */
/* Points des paliers et bouton violet (components.css du design, maquette 21) */
#confirmStop .sheet h2 { text-align: left; } #confirmStop .sheet p { text-align: left; }

/* ---------- Raccords du lot 7.2 : animations réduites, zones tactiles, chevrons, textes ---------- */
/* Animations réduites (#app.reduced, RE.motion) : ni tremblements, ni flash, ni reflet, ni fond qui défile ; changements d'écran raccourcis */
#app.reduced .btn-sheen::after { display: none; }
#app.reduced .cd-flash, #app.reduced .fx-flash { display: none; }
#app.reduced .heat { transition: none; }
#app.reduced #s-run.go-in, #app.reduced .combo-box.milestone, #app.reduced .energy.full-pop { animation: none; }
#app.reduced .float-text.combo.milestone { animation: floatup 1.1s ease-out forwards; }
#app.reduced .choice.bad, #app.reduced .rain-word.bad, #app.reduced .rb-card.wrong { animation: none; }
#app.reduced .screen.enter { animation-duration: var(--dur-fast); }
#app.reduced .energy.full .segs::after, #app.reduced .timer-pill.urgent::after { animation: none; }
/* Zones tactiles ≥ 44 px : marge invisible autour des boutons ronds (le cercle garde 36 px) ; hauteur minimale ailleurs */
.icon-btn { position: relative; }
.icon-btn::after { content: ""; position: absolute; inset: -4px; }
.tab { min-height: var(--h-touch); justify-content: center; }
.city-seg button, .cards-seg button { height: auto; min-height: var(--h-touch); }
.kv, #homeExport { min-height: var(--h-touch); }
.me-id .pf-name { padding: 9px 0; margin: -9px 0; min-height: var(--h-touch); }   /* zone tactile ≥ 44 px (le champ faisait 43) */
/* Chevrons : l'icône fine « chev » (icons.js) en masque, à la place du glyphe « › » en gras */
.chev-r { font-size: 0 !important; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Textes de phrase ≥ 13 px */
.pips span { font: var(--t-body-s); font-weight: 600; }
.city-tail small { font: var(--t-body-s); color: var(--text-2); }

/* ---------- Raccords du lot 8.1 ---------- */
#s-profile .stat .v { color: var(--text); } #s-profile .stat .v.streak { color: var(--c-score); }   /* maquette 20 : Mots et Runs en blanc, Série en or */

/* ---------- Raccords du lot 8.3 : fermeture des feuilles (règle v1.5, .sheet .close) ---------- */
.sheet .close { position: absolute; top: 6px; right: 6px; width: var(--h-touch); height: var(--h-touch); display: grid; place-items: center; background: none; border: 0; color: var(--text-2); }
.sheet .close .ic { width: 22px; height: 22px; }
.sheet-wrap[data-locked] .close { display: none; }
.sheet h2, .sheet .eyebrow { padding-right: 40px; }
#confirmImport .sheet { text-align: left; }   /* v1.6 : alignée à gauche comme les autres feuilles */
.sheet { touch-action: pan-x; }   /* le glissement vers le bas ferme la feuille */

/* ---------- Raccords de la fusion Mes mots (décision du 31/10) ---------- */
.filter-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-touch); padding: 0 14px; border-radius: var(--r-pill); background: var(--surface-raised); border: 1px solid var(--c-nav); color: var(--text); font: var(--t-body-s); font-weight: 700; }
.filter-chip .ic { width: 16px; height: 16px; color: var(--text-2); }

/* ---------- Page Niveaux (21 nov. 2026, maquette DESIGN Reflexigo/11-niveaux) : en-tête fixe, seule la frise défile ---------- */
#s-niveaux { align-items: stretch; overflow: hidden; }
.lv-head { flex: none; }
.lv-head .lv-title { font: var(--t-display-m); text-transform: uppercase; color: var(--text); }
.lv-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-2); }
.lv-scroll::-webkit-scrollbar { display: none; }
.lv-scroll > .eyebrow { margin: 0 2px; }
.lv-steps { padding: var(--sp-4); flex: none; }
/* Frise de la page : texte d'une étape (niveau en étiquette, nom en titre de ligne) */
.lv-steps .timeline small { display: block; font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2); margin-bottom: 2px; }
.lv-steps .timeline b { font: var(--t-title); color: var(--text); }
.lv-steps .timeline b.second { margin-top: var(--sp-2); }
.lv-steps .timeline span:not(.dot) { display: block; }
.lv-steps .timeline .st { padding-bottom: var(--sp-4); }
.lv-steps .timeline .st:last-child { padding-bottom: 0; }
.lv-steps .timeline .st.next small { color: var(--c-xp); }
.lv-steps .timeline .st.lock b { color: var(--text-2); }
.lv-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-2) 0 0; }
#pfRing { cursor: pointer; }
