/* ==========================================================
   Boutons
   ========================================================== */
.btn {
  --btn-top: #36e8bc;
  --btn-bot: var(--brand-green);
  --btn-edge: #007a62;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 22px;
  border: 0; border-radius: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.03em;
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot));
  box-shadow: 0 5px 0 var(--btn-edge), 0 14px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), filter 0.2s;
  user-select: none; -webkit-user-select: none;
  position: relative; overflow: hidden;
}
.btn:hover { filter: brightness(1.06); }
.btn:active, .btn.is-pressed { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge), 0 6px 12px rgba(0, 0, 0, 0.3); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-gold { --btn-top: #ffe08a; --btn-bot: var(--gold); --btn-edge: #b98512; }
.btn-coral { --btn-top: #ff9b7e; --btn-bot: var(--coral); --btn-edge: #b83f26; }
.btn-ghost {
  background: var(--surface-soft); color: var(--text);
  border: 2px solid var(--surface-line);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  font-size: 1rem;
}
.btn-ghost:active { box-shadow: 0 0 0 rgba(0, 0, 0, 0.25); }
.btn-xl { min-height: 68px; font-size: 1.6rem; border-radius: 22px; letter-spacing: 0.06em; }
.btn .shine {
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.6s var(--ease) infinite;
  pointer-events: none;
}

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 14px; border: 2px solid var(--surface-line);
  background: var(--surface); color: var(--text);
  font-size: 1.2rem; line-height: 1;
  transition: transform 0.12s var(--ease), background 0.2s;
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn[aria-pressed="true"] { background: rgba(255, 200, 87, 0.18); border-color: var(--gold); }

/* ==========================================================
   Cartes & puces
   ========================================================== */
.card {
  background: var(--surface);
  border: 1.5px solid var(--surface-line);
  border-radius: var(--radius-l);
  padding: 18px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
.card-tight { padding: 14px; border-radius: var(--radius-m); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 12px;
  border-radius: 999px; border: 1.5px solid var(--surface-line);
  background: var(--surface);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.badge {
  --cat: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 9px; border-radius: 999px;
  background: var(--cat); color: #1a1205;
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}
.badge[data-cat="histoire"] { --cat: var(--cat-histoire); }
.badge[data-cat="geographie"] { --cat: var(--cat-geographie); }
.badge[data-cat="culture"] { --cat: var(--cat-culture); }
.badge[data-cat="cuisine"] { --cat: var(--cat-cuisine); }
.badge[data-cat="faune"] { --cat: var(--cat-faune); }
.badge[data-cat="flore"] { --cat: var(--cat-flore); }
.badge[data-cat="sport"] { --cat: var(--cat-sport); }

.leaves { display: inline-flex; gap: 2px; align-items: center; }
.leaves svg { width: 18px; height: 18px; }
.leaves .on { fill: var(--leaf); }
.leaves .off { fill: rgba(255, 255, 255, 0.2); }

/* ==========================================================
   Barres, cœurs, anneaux
   ========================================================== */
.progress {
  position: relative; height: 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}
.progress > i {
  display: block; height: 100%; width: calc(var(--p, 0) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, #27e2b4, var(--gold));
  transition: width 0.7s var(--ease);
  position: relative; min-width: 14px;
}
.progress > i::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 3px;
  background: rgba(255, 255, 255, 0.5); border-radius: 3px;
}
.progress.thin { height: 10px; }

.hearts { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.heart { width: 24px; height: 24px; transition: transform 0.3s var(--ease-bounce), opacity 0.3s; }
.heart path { fill: var(--brand-red); stroke: #ff8d97; stroke-width: 1.2; }
.heart.lost { opacity: 0.35; transform: scale(0.8); }
.heart.lost path { fill: #5b6a67; stroke: #7e8f8b; }
.heart.pop { animation: heartBreak 0.6s var(--ease); }

.ring {
  --v: 0; --size: 108px;
  width: var(--size); height: var(--size); border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--gold) calc(var(--v) * 1%), rgba(255, 255, 255, 0.14) 0);
}
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--night-900); }
.ring > * { position: relative; }

/* ==========================================================
   Accueil
   ========================================================== */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.streak-pill .flame { width: 22px; height: 26px; }
.streak-pill.at-risk { border-color: var(--coral); animation: pulseBorder 1.8s ease-in-out infinite; }
.streak-pill.cold { color: var(--text-dim); }
.streak-pill.cold .flame { filter: grayscale(1) brightness(0.8); }

.hero { position: relative; display: grid; place-items: center; margin-top: 10px; }
.hero .mascot { width: min(56vw, 250px, 29vh); }
.title-art { text-align: center; margin-top: 8px; }
.title-art .kicker { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.32em; font-size: 0.8rem; color: var(--gold); text-transform: uppercase; }
.title-art h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 14vw, 3.6rem); line-height: 0.95;
  background: linear-gradient(180deg, #fff 10%, var(--gold) 70%, var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35));
}
.title-art .tagline { color: var(--text-dim); font-weight: 700; margin-top: 4px; }

.bubble {
  position: absolute; top: 4px; right: 0; max-width: 62%;
  background: #fff; color: #17302a;
  border-radius: 18px 18px 18px 4px; padding: 9px 13px;
  font-weight: 800; font-size: 0.92rem; line-height: 1.25;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  animation: pop 0.5s var(--ease-bounce) both;
}
.bubble::after {
  content: ""; position: absolute; left: 12px; bottom: -9px;
  border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; border-left-width: 4px;
}

.daily {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: var(--radius-m);
  background: linear-gradient(110deg, rgba(255, 122, 89, 0.28), rgba(255, 200, 87, 0.2)), var(--surface);
  border: 1.5px solid rgba(255, 200, 87, 0.5);
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s var(--ease);
}
.daily:active { transform: scale(0.98); }
.daily .gem { font-size: 2rem; flex: none; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3)); }
.daily .t { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.daily .xpchip { margin-left: auto; flex: none; font-family: var(--font-display); font-weight: 800; color: var(--on-accent); background: var(--gold); padding: 4px 10px; border-radius: 999px; }
.daily.done { opacity: 0.8; border-color: var(--surface-line); background: var(--surface); }
.daily.done .xpchip { background: var(--leaf); }

.level-card .lv { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.week-strip { display: flex; justify-content: space-between; gap: 6px; }
.week-strip .d {
  flex: 1; display: grid; justify-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 800; color: var(--text-faint); text-transform: uppercase;
}
.week-strip .dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1); border: 2px solid transparent;
}
.week-strip .d.played .dot { background: linear-gradient(180deg, #ffd978, var(--coral)); color: var(--on-accent); }
.week-strip .d.today .dot { border-color: var(--gold); }

.banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-m);
  background: linear-gradient(100deg, rgba(224, 45, 59, 0.4), rgba(255, 122, 89, 0.28)), var(--surface-strong);
  border: 1.5px solid rgba(255, 122, 89, 0.6);
  animation: slideDown 0.6s var(--ease-bounce) both;
}
.banner.calm { background: linear-gradient(100deg, rgba(0, 163, 131, 0.34), rgba(14, 124, 143, 0.28)), var(--surface-strong); border-color: rgba(46, 229, 157, 0.5); }
.banner .t { font-weight: 800; line-height: 1.2; }
.banner .s { font-size: 0.86rem; color: var(--text-dim); }
.banner button.x { margin-left: auto; background: none; border: 0; color: var(--text-dim); font-size: 1.2rem; padding: 6px; }

/* ==========================================================
   Barre d'onglets
   ========================================================== */
.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: calc(var(--safe-bottom) + 10px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 6px; border-radius: 22px;
  background: rgba(4, 20, 18, 0.97); border: 1.5px solid var(--surface-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 5;
}
.tabbar button {
  display: grid; justify-items: center; gap: 1px; padding: 7px 4px;
  border: 0; border-radius: 16px; background: none; color: var(--text-dim);
  font-weight: 800; font-size: 0.74rem; letter-spacing: 0.03em;
}
.tabbar button .ic { font-size: 1.35rem; line-height: 1.2; }
.tabbar button[aria-current="page"] { background: rgba(0, 163, 131, 0.28); color: var(--text); }
.has-tabbar { padding-bottom: calc(var(--safe-bottom) + 92px); }

/* ==========================================================
   Écran de question
   ========================================================== */
.q-top { display: flex; align-items: center; gap: 10px; }
.q-top .progress { flex: 1; }
.q-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.combo {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-display); font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 200, 87, 0.18); border: 1.5px solid var(--gold); color: var(--gold);
  transition: transform 0.3s var(--ease-bounce), opacity 0.3s;
}
.combo[hidden] { display: none; }
.combo.bump { animation: pop 0.5s var(--ease-bounce); }
.combo.x2 { background: linear-gradient(90deg, var(--coral), var(--gold)); color: var(--on-accent); border-color: transparent; }

.q-stage { position: relative; margin-top: 8px; }
.q-mascot { position: absolute; top: -80px; right: 6px; width: 106px; z-index: 0; pointer-events: none; }
.q-mascot .mascot { width: 100%; }
.q-card { position: relative; z-index: 1; padding: 22px 18px 20px; background: rgba(6, 28, 25, 0.82); }
.q-card .daily-tag { font-family: var(--font-display); font-weight: 800; color: var(--gold); letter-spacing: 0.12em; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 6px; }
.q-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 5.4vw, 1.55rem); line-height: 1.2; }

.answers { display: flex; flex-direction: column; margin-top: 16px; }
.answers .answer + .answer { margin-top: 11px; }
.answers.vf { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.answers.vf .answer + .answer { margin-top: 0; }
.answer {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 58px; padding: 12px 14px;
  border-radius: 16px; border: 2px solid var(--surface-line);
  background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-weight: 800; font-size: 1.02rem; line-height: 1.2;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.12s var(--ease), background 0.2s, border-color 0.2s, opacity 0.3s;
  max-height: 140px;
  animation: riseIn 0.5s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
.answer:hover { border-color: rgba(255, 255, 255, 0.4); }
.answer:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.answer .key {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 10px; background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-display); font-weight: 800;
}
.answers.vf .answer { flex-direction: column; justify-content: center; text-align: center; min-height: 92px; font-family: var(--font-display); font-size: 1.3rem; }
.answers.vf .answer .key { width: 40px; height: 40px; font-size: 1.4rem; }
.answer.is-correct { background: rgba(46, 229, 157, 0.22); border-color: var(--ok); animation: correctPulse 0.6s var(--ease); }
.answer.is-correct .key { background: var(--ok); color: var(--on-accent); }
.answer.is-wrong { background: rgba(255, 107, 107, 0.2); border-color: var(--ko); animation: shake 0.5s var(--ease); }
.answer.is-wrong .key { background: var(--ko); color: var(--on-accent); }
.answer.is-dim { opacity: 0.45; }
.answer.is-gone {
  max-height: 0; min-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0;
  opacity: 0; overflow: hidden; box-shadow: none; margin-top: 0 !important;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease), opacity 0.3s, margin 0.4s var(--ease);
}
.q-screen.has-sheet { padding-bottom: 340px; }
.answers.locked .answer { pointer-events: none; }

/* ---- Feuille de feedback ---- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  padding: 18px 18px calc(var(--safe-bottom) + 16px);
  background: var(--surface-strong);
  border-top: 2px solid var(--ok);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease-bounce);
}
.sheet.show { transform: none; }
.sheet.ko { border-top-color: var(--ko); }
.sheet .res { display: flex; align-items: center; gap: 10px; }
.sheet .res .t { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ok); line-height: 1; }
.sheet.ko .res .t { color: var(--ko); }
.sheet .xp {
  margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  padding: 3px 11px; border-radius: 999px; background: var(--gold); color: var(--on-accent);
  animation: pop 0.5s var(--ease-bounce) 0.2s both;
}
.sheet .xp small { font-size: 0.75em; opacity: 0.8; }
.fact {
  margin: 12px 0 14px; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 200, 87, 0.12); border: 1.5px dashed rgba(255, 200, 87, 0.55);
}
.fact .lbl { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 0.95rem; display: flex; gap: 6px; align-items: center; }
.fact p { margin-top: 4px; color: var(--text); font-weight: 600; font-size: 0.97rem; }
.sheet .right-answer { margin-top: 8px; font-weight: 700; color: var(--text-dim); font-size: 0.93rem; }
.sheet .right-answer b { color: var(--text); }

/* ==========================================================
   Fin de session
   ========================================================== */
.score-hero { display: grid; justify-items: center; gap: 6px; text-align: center; }
.score-hero .mascot { width: min(52vw, 210px); }
.score-big { font-family: var(--font-display); font-weight: 800; font-size: 4rem; line-height: 1; color: var(--gold); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.score-big small { font-size: 0.45em; color: var(--text-dim); }
.msg { font-weight: 800; font-size: 1.05rem; max-width: 30ch; margin: 0 auto; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  display: grid; justify-items: center; gap: 2px; padding: 12px 6px;
  border-radius: var(--radius-m); background: var(--surface); border: 1.5px solid var(--surface-line);
}
.stat .v { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; }
.stat .l { font-size: 0.74rem; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }

.catbars { display: grid; gap: 10px; }
.catbar { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 10px; font-weight: 800; font-size: 0.9rem; }
.catbar .bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.catbar .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); border-radius: inherit; background: var(--cat, var(--gold)); transition: width 0.8s var(--ease); }
.catbar[data-cat="histoire"] { --cat: var(--cat-histoire); }
.catbar[data-cat="geographie"] { --cat: var(--cat-geographie); }
.catbar[data-cat="culture"] { --cat: var(--cat-culture); }
.catbar[data-cat="cuisine"] { --cat: var(--cat-cuisine); }
.catbar[data-cat="faune"] { --cat: var(--cat-faune); }
.catbar[data-cat="flore"] { --cat: var(--cat-flore); }
.catbar[data-cat="sport"] { --cat: var(--cat-sport); }
.catbar .n { color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ==========================================================
   Ligue
   ========================================================== */
.league-head { display: flex; align-items: center; gap: 12px; }
.league-head .crest { width: 54px; height: 54px; flex: none; }
.league-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.league-row {
  display: grid; grid-template-columns: 34px 38px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 16px;
  background: var(--surface); border: 1.5px solid transparent;
}
.league-row .rk { font-family: var(--font-display); font-weight: 800; text-align: center; color: var(--text-dim); }
.league-row .av {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: var(--on-accent);
  background: var(--av, var(--sea-300));
}
.league-row .nm { font-weight: 800; }
.league-row .xp { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.league-row.you { background: rgba(0, 163, 131, 0.3); border-color: var(--brand-green); }
.league-row.promo .rk { color: var(--ok); }
.league-row.releg .rk { color: var(--ko); }
.zone-label { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 4px 0; }
.zone-label.up { color: var(--ok); }
.zone-label.down { color: var(--ko); }

/* ==========================================================
   Profil, interrupteurs
   ========================================================== */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--surface-line); }
.switch-row:last-child { border-bottom: 0; }
.switch { position: relative; width: 54px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.2); transition: background 0.2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease-bounce); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
.switch input:checked + span { background: var(--brand-green); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.field { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--surface-line); background: rgba(0, 0, 0, 0.3); color: var(--text); font-weight: 800; font-size: 1rem; }
.field:focus-visible { border-color: var(--gold); outline: none; }

/* ==========================================================
   Modale, toast
   ========================================================== */
.modal-back {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgba(2, 12, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease both;
}
.modal {
  width: min(100%, 400px); text-align: center; padding: 24px 20px 20px;
  background: linear-gradient(180deg, rgba(15, 74, 62, 0.95), rgba(4, 21, 17, 0.98));
  border: 2px solid var(--surface-line); border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: popIn 0.5s var(--ease-bounce) both;
}
.modal .mascot { width: 140px; margin: -70px auto 0; }
.modal h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1.05; margin-top: 4px; }
.modal p { color: var(--text-dim); font-weight: 700; margin: 8px 0 18px; }
.modal .btns { display: grid; gap: 10px; }
.modal .big-flame { width: 76px; height: 90px; margin: 0 auto; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 110px); z-index: 70;
  transform: translateX(-50%); max-width: 90vw;
  padding: 11px 18px; border-radius: 999px;
  background: var(--surface-strong); border: 1.5px solid var(--gold);
  font-weight: 800; box-shadow: var(--shadow-card);
  animation: toastIn 0.4s var(--ease-bounce) both;
}
.toast.out { animation: toastOut 0.3s ease both; }

.float-xp {
  position: fixed; z-index: 65; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--gold);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 200, 87, 0.7);
  animation: floatUp 1.1s var(--ease) both;
}

/* ==========================================================
   Mascotte (conteneur)
   ========================================================== */
.mascot { display: block; width: 200px; user-select: none; -webkit-user-select: none; }
.mascot svg { width: 100%; height: auto; overflow: visible; }

/* ==========================================================
   Rétention : gel de série, événements, quêtes, badges
   ========================================================== */
.freeze-pill { border-color: rgba(143, 211, 255, 0.55); color: #cfe9ff; }
.daily.event { background: linear-gradient(110deg, rgba(14, 124, 143, 0.5), rgba(155, 123, 255, 0.28)), var(--surface); border-color: rgba(82, 199, 214, 0.65); }
.daily.event .xpchip { background: var(--sea-300); }
.daily.review { background: linear-gradient(110deg, rgba(155, 123, 255, 0.3), rgba(230, 90, 165, 0.18)), var(--surface); border-color: rgba(155, 123, 255, 0.55); }
.daily.review .xpchip { background: #c9b8ff; }

.quest-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.quest { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; font-weight: 800; font-size: 0.95rem; line-height: 1.2; }
.quest .qp { color: var(--text-dim); font-size: 0.85rem; }
.quest.done .qt { color: var(--text-dim); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.quest.done .qp { color: var(--ok); }

.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge-tile {
  display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center;
  padding: 10px 4px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); border: 1.5px solid var(--surface-line);
}
.badge-tile:not(.on) .bi { opacity: 0.55; filter: grayscale(1); }
.badge-tile.on { background: linear-gradient(180deg, rgba(255, 200, 87, 0.18), rgba(255, 200, 87, 0.05)); border-color: rgba(255, 200, 87, 0.6); animation: pop 0.5s var(--ease-bounce) both; }
.badge-tile .bi { font-size: 1.7rem; line-height: 1.2; }
.badge-tile .bn { font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; line-height: 1.1; }
.badge-tile .bd { font-size: 0.7rem; font-weight: 700; color: var(--text-dim); line-height: 1.15; }

.daily.defi { background: linear-gradient(110deg, rgba(224, 45, 59, 0.38), rgba(255, 200, 87, 0.2)), var(--surface); border-color: rgba(255, 122, 89, 0.75); animation: pulseBorder 2s ease-in-out infinite; }
.daily.defi .xpchip { background: var(--coral); }
