/* Formation TPE : style coloré et ludique. Une couleur par module (classes .mod-1 à .mod-6), reprise partout.
   Polices système uniquement (la CSP de index.html interdit les ressources externes). */
:root {
  --bg: #f3f5fb; --card: #ffffff; --ink: #1c2333; --muted: #5d6782; --line: #e1e6f2;
  --accent: #3354d1; --accent-ink: #ffffff; --accent-soft: #e7ecff;
  --sun: #ffc23d; --sun-ink: #3a2a00;
  --ok: #15985b; --ok-soft: #dcf5e8; --warn: #9a6400; --warn-soft: #fff2d6; --bad: #d6463b; --bad-soft: #fde5e2;
  --m1: #3a6ff0; --m2: #16a067; --m3: #f2851c; --m4: #8b5cf6; --m5: #0aa5b5; --m6: #e2468a;
  --m1s: #e6eeff; --m2s: #dcf5ea; --m3s: #fff0e0; --m4s: #efe8ff; --m5s: #dcf5f7; --m6s: #fde6f0;
  --mc: var(--accent); --ms: var(--accent-soft);
  --radius: 16px; --shadow: 0 1px 2px rgba(28,35,51,.06), 0 4px 14px rgba(28,35,51,.05);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12162a; --card: #1b2140; --ink: #eef1fb; --muted: #a3abc8; --line: #2c3459;
    --accent: #8aa2ff; --accent-ink: #0e1430; --accent-soft: #262f5c;
    --sun: #ffcf5e; --sun-ink: #2b1f00;
    --ok: #5fd59b; --ok-soft: #173a2b; --warn: #f3c26b; --warn-soft: #3b2f15; --bad: #ff8a80; --bad-soft: #40201f;
    --m1: #7ea2ff; --m2: #4fd394; --m3: #ffa456; --m4: #b398ff; --m5: #4dd2df; --m6: #ff7fb4;
    --m1s: #20305c; --m2s: #163a2c; --m3s: #3d2a17; --m4s: #2e2453; --m5s: #143a40; --m6s: #40213a;
    --shadow: none; color-scheme: dark;
  }
}
.mod-1 { --mc: var(--m1); --ms: var(--m1s); } .mod-2 { --mc: var(--m2); --ms: var(--m2s); }
.mod-3 { --mc: var(--m3); --ms: var(--m3s); } .mod-4 { --mc: var(--m4); --ms: var(--m4s); }
.mod-5 { --mc: var(--m5); --ms: var(--m5s); } .mod-6 { --mc: var(--m6); --ms: var(--m6s); }

* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; }
h1, h2, h3 { line-height: 1.22; margin: 1.1em 0 .5em; text-wrap: balance; }
h1 { font-size: 1.85rem; font-weight: 800; margin-top: .3em; } h2 { font-size: 1.25rem; font-weight: 800; } h3 { font-size: 1.05rem; font-weight: 700; }
a { color: var(--accent); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barre du haut ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); padding: .5rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; position: sticky; top: 0; z-index: 10; box-shadow: var(--shadow); }
.brand { font-weight: 800; text-decoration: none; color: var(--ink); margin-right: auto; display: inline-flex; align-items: center; gap: .6rem; }
.logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--m1), var(--m4)); font-size: 1.2rem; flex: none; }
.top nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.top nav a { padding: .45rem .75rem; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
.top nav a:hover { background: var(--bg); color: var(--ink); }
.top nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.top nav .ni { font-size: 1.1rem; }
.who { color: var(--muted); font-size: .9rem; display: flex; gap: .5rem; align-items: center; }
main { max-width: 1040px; margin: 0 auto; padding: 1rem; min-height: 70vh; outline: none; }
main:focus, main:focus-visible { outline: none; }
.foot { max-width: 1040px; margin: 0 auto; padding: 1rem; color: var(--muted); font-size: .85rem; }

/* ---------- briques communes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0 0 1rem; box-shadow: var(--shadow); min-width: 0; }
.card > h2:first-child, .card > h3:first-child, .card > legend + h2 { margin-top: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid > .card { margin: 0; }
.grid > .card:nth-child(6n+1) { background: var(--m1s); border-color: transparent; } .grid > .card:nth-child(6n+2) { background: var(--m2s); border-color: transparent; }
.grid > .card:nth-child(6n+3) { background: var(--m4s); border-color: transparent; } .grid > .card:nth-child(6n+4) { background: var(--m3s); border-color: transparent; }
.grid > .card:nth-child(6n+5) { background: var(--m5s); border-color: transparent; } .grid > .card:nth-child(6n+6) { background: var(--m6s); border-color: transparent; }
.stat { font-size: 1.9rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
button, .btn { font: inherit; font-weight: 700; min-height: 44px; padding: .5rem 1.1rem; border-radius: 12px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
button:hover, .btn:hover { filter: brightness(1.06); }
button.sec, .btn.sec { background: var(--card); color: var(--accent); border-color: var(--line); }
button.sec:hover, .btn.sec:hover { border-color: var(--accent); }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button:disabled { opacity: .55; cursor: not-allowed; }
.btn.big, button.big { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); min-height: 52px; padding: .7rem 1.4rem; font-weight: 800; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.btn.big:active, button.big:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
label { display: block; font-weight: 600; margin: .6rem 0 .2rem; }
input, select, textarea { font: inherit; width: 100%; min-height: 44px; padding: .45rem .7rem; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 7rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.3rem; height: 1.3rem; min-height: 0; accent-color: var(--mc); flex: none; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .4rem 0; }
.check input { margin-top: .2rem; }
.fields { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); }
legend { font-weight: 800; padding: 0 .3rem; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); }
progress { width: 100%; height: .75rem; border: 0; border-radius: 99px; background: var(--line); accent-color: var(--mc); appearance: none; -webkit-appearance: none; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--mc); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--mc); border-radius: 99px; }
table { border-collapse: collapse; width: 100%; margin: .6rem 0; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--line); padding: .5rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--ms); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll { overflow-x: auto; }
.prose h2 { font-size: 1.2rem; } .prose h3 { font-size: 1.05rem; }
.prose blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 5px solid var(--mc); background: var(--ms); border-radius: 0 12px 12px 0; }
.prose p, .prose li { max-width: 70ch; }
.prose code { background: var(--ms); padding: 0 .3em; border-radius: 4px; }
details > summary { cursor: pointer; font-weight: 700; padding: .3rem 0; }

/* onglets génériques (évaluation…) */
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tabs button, .tabs a { background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 12px; }
.tabs button[aria-selected="true"], .tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-list li { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; padding: .55rem .4rem; border-top: 1px solid var(--line); }
.lesson-list li a { flex: 1 1 14rem; }
.feedback { padding: .75rem 1rem; border-radius: 12px; margin: .6rem 0; font-weight: 600; }
.feedback.ok { background: var(--ok-soft); color: var(--ok); } .feedback.bad { background: var(--bad-soft); color: var(--bad); } .feedback.info { background: var(--accent-soft); color: var(--ink); }
.choice { display: flex; gap: .7rem; align-items: center; border: 2px solid var(--line); border-radius: 14px; padding: .65rem .9rem; margin: .45rem 0; font-weight: 500; cursor: pointer; background: var(--card); }
.choice:hover { border-color: var(--mc); }
.choice .l { width: 1.9rem; height: 1.9rem; border-radius: 9px; background: var(--bg); display: grid; place-items: center; font-weight: 800; flex: none; }
.choice.right { border-color: var(--ok); background: var(--ok-soft); } .choice.right .l { background: var(--ok); color: var(--card); }
.choice.wrong { border-color: var(--bad); background: var(--bad-soft); } .choice.wrong .l { background: var(--bad); color: var(--card); }
.choice input { width: auto; margin: 0; }
.err { color: var(--bad); font-weight: 600; }
.hyp { border: 2px dashed var(--warn); background: var(--warn-soft); border-radius: 12px; padding: .7rem 1rem; margin: .8rem 0; font-size: .92rem; }
.result { background: var(--accent-soft); border-color: transparent; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.kv b { font-variant-numeric: tabular-nums; }
.comment { border-left: 5px solid var(--sun); background: var(--warn-soft); padding: .55rem .9rem; margin: .5rem 0; border-radius: 0 12px 12px 0; }
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .65rem 1.3rem; border-radius: 999px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; max-width: 90vw; font-weight: 600; }
.toast.show { opacity: 1; }
.login { max-width: 26rem; margin: 3rem auto; border-top: 6px solid var(--accent); }
svg.chart { width: 100%; height: auto; max-height: 340px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
svg.chart text { fill: var(--muted); font-size: 11px; }

/* ---------- tableau de bord ---------- */
.hello { margin-bottom: .6rem; }
.hello p { margin: 0; }
.next { background: linear-gradient(120deg, #2f4fc9, #7a45d6); color: #fff; border: 0; border-radius: 22px; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.next h2 { color: #fff; margin: 0 0 .2rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.next .what { font-size: 1.35rem; font-weight: 800; margin: 0 0 .3rem; }
.next p { margin: 0; }
.next .muted { color: #fff; opacity: .88; }
@media (max-width: 600px) { .next { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.tile { border-radius: var(--radius); padding: 1rem; display: grid; gap: .15rem; align-content: start; min-width: 0; }
.tile .ico { font-size: 1.4rem; }
.tile .stat { font-size: 1.6rem; }
.tile p { margin: 0; color: var(--muted); font-size: .9rem; }
.tile.t1 { background: var(--m1s); } .tile.t2 { background: var(--m2s); } .tile.t3 { background: var(--m4s); }
.tile.ringtile { background: var(--card); border: 1px solid var(--line); display: flex; gap: .9rem; align-items: center; }
.ring { width: 86px; height: 86px; flex: none; }
.ring circle { fill: none; stroke-width: 10; }
.ring .bgc { stroke: var(--line); } .ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { fill: var(--ink); font: 800 19px var(--font); text-anchor: middle; dominant-baseline: central; }
.how { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.how a { display: inline-flex; gap: .35rem; align-items: center; background: var(--bg); border: 2px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-weight: 700; text-decoration: none; color: var(--ink); min-height: 40px; }
.how a.here { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.how .arr { color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 980px) { .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bdg { display: grid; justify-items: center; gap: .3rem; text-align: center; text-decoration: none; color: var(--ink); padding: .8rem .5rem; border-radius: var(--radius); border: 2px solid var(--line); background: var(--card); }
.bdg:hover { border-color: var(--mc); }
.bdg .disc { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--line); filter: grayscale(1); opacity: .6; }
.bdg.won .disc, .bdg.going .disc { filter: none; opacity: 1; background: var(--ms); }
.bdg.won .disc { background: var(--mc); box-shadow: 0 0 0 4px var(--ms); }
.bdg .bn { font-size: .75rem; font-weight: 800; color: var(--mc); letter-spacing: .06em; text-transform: uppercase; }
.bdg .bt { font-size: .82rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.bdg progress { margin-top: auto; }
.bdg .bs { font-size: .8rem; color: var(--muted); font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checks li { display: grid; grid-template-columns: 1.8rem 1fr; gap: .6rem; align-items: start; }
.checks .mk { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.checks .ok .mk { background: var(--ok); color: var(--card); }
.checks .todo .mk { border: 2px dashed var(--muted); color: var(--muted); }

/* ---------- parcours en chemin ---------- */
.path { display: grid; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 26px; top: 60px; bottom: 0; width: 4px; background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 14px); }
.node { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; background: var(--mc); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.card.mod { border-left: 6px solid var(--mc); }
.card.mod h2 { margin-top: .1rem; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mc); margin: 0; }
.lessons { list-style: none; margin: .5rem 0 0; padding: 0; }
.lessons li { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; padding: .5rem .6rem; border-radius: 12px; }
.lessons li:hover { background: var(--ms); }
.lessons li a { flex: 1 1 15rem; font-weight: 700; color: var(--ink); text-decoration: none; min-width: 0; }
.lessons li a:hover { text-decoration: underline; }
.dots { display: flex; flex-wrap: wrap; gap: .35rem; }
.dot { font-size: .76rem; font-weight: 700; padding: .15rem .6rem; border-radius: 99px; border: 1.5px solid var(--line); color: var(--muted); white-space: nowrap; }
.dot.done { background: var(--mc); border-color: var(--mc); color: var(--card); }
@media (max-width: 520px) { .step { grid-template-columns: 1fr; } .node, .step::before { display: none; } }

/* ---------- leçon ---------- */
.crumb { font-size: .9rem; color: var(--muted); }
.lhead { background: var(--ms); border: 2px solid var(--mc); border-radius: 22px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.lhead h1 { margin: .2rem 0 .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: var(--card); border-radius: 99px; padding: .3rem .8rem; font-size: .88rem; font-weight: 600; }
.lhead .small { margin: .6rem 0 0; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.steps button { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 14px; padding: .5rem .3rem; display: grid; justify-items: center; gap: .1rem; font-size: .88rem; min-height: 64px; }
.steps button .si { font-size: 1.25rem; }
.steps button.done { border-color: var(--ok); background: var(--ok-soft); }
.steps button[aria-selected="true"] { border-color: var(--mc); background: var(--mc); color: var(--card); }
@media (max-width: 560px) { .steps button { font-size: .7rem; } }
.retiens { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
.retiens h2 { color: var(--sun-ink); }
.retiens .prose blockquote, .retiens code { color: var(--ink); }
.fil { border: 2px dashed var(--mc); }
.fil .eyebrow { margin-bottom: .3rem; }
.fil h3 { margin-top: 0; }
.navl { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; margin-top: 1rem; }
.score { position: relative; overflow: hidden; }
.score .feedback { display: flex; gap: .6rem; align-items: center; font-size: 1.05rem; }
.score .big-emoji { font-size: 1.8rem; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; }
.confetti i:nth-child(7n+1) { background: var(--m1); } .confetti i:nth-child(7n+2) { background: var(--m2); } .confetti i:nth-child(7n+3) { background: var(--m3); }
.confetti i:nth-child(7n+4) { background: var(--m4); } .confetti i:nth-child(7n+5) { background: var(--m5); } .confetti i:nth-child(7n+6) { background: var(--m6); } .confetti i:nth-child(7n) { background: var(--sun); }
.confetti i:nth-child(1) { left: 3%; } .confetti i:nth-child(2) { left: 9%; } .confetti i:nth-child(3) { left: 15%; } .confetti i:nth-child(4) { left: 21%; }
.confetti i:nth-child(5) { left: 27%; } .confetti i:nth-child(6) { left: 33%; } .confetti i:nth-child(7) { left: 39%; } .confetti i:nth-child(8) { left: 45%; }
.confetti i:nth-child(9) { left: 51%; } .confetti i:nth-child(10) { left: 57%; } .confetti i:nth-child(11) { left: 63%; } .confetti i:nth-child(12) { left: 69%; }
.confetti i:nth-child(13) { left: 75%; } .confetti i:nth-child(14) { left: 81%; } .confetti i:nth-child(15) { left: 87%; } .confetti i:nth-child(16) { left: 93%; }
.confetti i:nth-child(3n) { animation-delay: .12s; } .confetti i:nth-child(4n) { animation-delay: .24s; }
@media (prefers-reduced-motion: no-preference) {
  .confetti i { animation: fall 1.4s ease-out forwards; }
  .feedback.ok { animation: pop .35s ease-out; }
  .choice, .bdg, .top nav a { transition: border-color .15s, background .15s; }
}
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(140px) rotate(320deg); } }
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* ---------- séances, dossier, outils ---------- */
.seance { border-top: 6px solid var(--m5); } .seance.atelier { border-top-color: var(--m6); }
.ds { border-left: 6px solid var(--line); } .ds.full { border-left-color: var(--ok); } .ds.empty { border-left-color: var(--sun); }
.tool h2 { display: flex; gap: .5rem; align-items: center; }
.tool .ti { font-size: 1.5rem; }

/* ---------- téléphone : menu en bas de l'écran ---------- */
@media (max-width: 640px) {
  html { font-size: 16px; }
  main { padding: .7rem; padding-bottom: 5.5rem; }
  .foot { padding-bottom: 5.5rem; }
  .top nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom, 0px)); flex-wrap: nowrap; overflow-x: auto; justify-content: space-around; gap: 0; }
  .top nav a { flex-direction: column; gap: 0; font-size: .68rem; padding: .3rem .45rem; min-width: 4.2rem; text-align: center; line-height: 1.15; }
  .top nav .ni { font-size: 1.3rem; }
  .brand .bt { font-size: .95rem; }
  .toast { bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .top, .foot, .skip, button { display: none !important; } }

/* ---------- gamification : niveau, série, question flash, trophées ---------- */
.game { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 700px) { .game { grid-template-columns: 1fr; } }
.game > .card { margin: 0; }
.level { display: flex; gap: 1rem; align-items: center; }
.level .lv-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; background: var(--sun); flex: none; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.level .lv-body { flex: 1; min-width: 0; display: grid; gap: .25rem; }
.level .lv-rank { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.level .lv-name { font-size: 1.3rem; font-weight: 800; margin: 0; }
.level .lv-pts { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.level progress { --mc: var(--sun); height: .9rem; }
.streak { display: grid; justify-items: center; align-content: center; text-align: center; gap: .1rem; background: var(--m3s); border-color: transparent; }
.streak .fire { font-size: 2.2rem; line-height: 1; }
.streak.off .fire { filter: grayscale(1); opacity: .5; }
.streak .stat { color: var(--m3); }
.streak p { margin: 0; }
.flash { border: 2px solid var(--sun); }
.flash .eyebrow { color: var(--warn); }
.flash h2 { margin: .2rem 0 .6rem; font-size: 1.1rem; }
.flash .choice { cursor: pointer; }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
.tro { display: grid; justify-items: center; text-align: center; gap: .25rem; padding: .8rem .5rem; border-radius: var(--radius); border: 2px dashed var(--line); }
.tro .ti { font-size: 1.9rem; filter: grayscale(1); opacity: .45; }
.tro b { font-size: .85rem; }
.tro small { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.tro.ok { border: 2px solid var(--sun); background: var(--warn-soft); }
.tro.ok .ti { filter: none; opacity: 1; }
.celebrate { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--sun), #ff9d5c); color: var(--sun-ink); border: 0; font-weight: 700; }
.celebrate h2 { color: var(--sun-ink); margin: 0 0 .3rem; }
.celebrate p { margin: .1rem 0; }
.gsum { display: flex; flex-wrap: wrap; gap: .6rem; }
.gsum span { background: var(--bg); border-radius: 99px; padding: .3rem .8rem; font-weight: 700; font-size: .9rem; }
