/* Moitié : thème sombre et rond, mascottes animées. */
:root {
  --ground: #13201C;
  --card: #1C2B26;
  --raised: #233630;
  --deep: #0F1916;
  --line: #2A3B35;
  --soft: #172521;
  --ink: #F6EDE3;
  --muted: #A9B8B1;
  --gold: #F5C451;
  --orange: #F28A3C;
  --on-orange: #2B1408;
  --green: #B7E37A;
  --nans: #6C8CFF;
  --partner: #FF8FA3;
  --claude: #A9B8B1;
  --danger: #FF6B5E;
  --display: 'Baloo 2', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
main { max-width: 520px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 24px) 20px calc(env(safe-area-inset-bottom) + 110px); display: flex; flex-direction: column; gap: 14px; }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; }
h2 { margin: 8px 0 0; font-family: var(--display); font-weight: 800; font-size: 21px; display: flex; align-items: center; gap: 8px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 600; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.muted { color: var(--muted); font-size: 13px; }
.sub { color: var(--muted); font-size: 13px; }

/* Avatars */
.avatars { display: flex; }
.av { width: 40px; height: 40px; border-radius: 50%; color: #10183A; display: grid; place-items: center; font-weight: 800; border: 3px solid var(--ground); }
.av + .av { margin-left: -12px; }
.chip-av { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; color: #10183A; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.chip-av.free { background: transparent !important; color: var(--muted); border: 1.5px dashed #5C6E67; }

/* La mascotte et sa bulle */
.mascot-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 14px 16px 14px 8px; display: flex; gap: 6px; align-items: center; }
.mascot-card .mascot { flex-shrink: 0; }
.mascot-card .bubble-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bubble { background: var(--ink); color: #2B2230; border-radius: 18px 18px 18px 4px; padding: 10px 12px; font-weight: 700; font-size: 15px; line-height: 1.35; }
.mascot-card .hint { font-size: 13px; color: var(--muted); }
.mascot-card.warm { border-color: #7A6020; }
.mascot-card.hot { border: 1.5px solid var(--orange); animation: pulse 1.6s infinite; }
.mascot-card.red { border: 2px solid var(--danger); background: #2A1A18; animation: alarm 1s ease-in-out infinite; }
.mascot-card.pause { border-color: #3B4A8C; background: #1A2133; }
@keyframes fx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fx-wag { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@keyframes fx-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(6deg); } }
@keyframes fx-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes fx-ear { 0%, 85%, 100% { transform: rotate(0); } 90% { transform: rotate(-8deg); } 95% { transform: rotate(4deg); } }
@keyframes fx-float { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }
@keyframes fx-sparkle { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1.15); opacity: 1; } }
.mascot .fx-body { animation: fx-bob 2.4s ease-in-out infinite; transform-box: fill-box; }
.mascot .fx-tail { animation: fx-wag 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 10% 85%; }
.mascot .fx-cattail { animation: fx-sway 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 100%; }
.mascot .fx-eyes { animation: fx-blink 4.2s infinite; transform-box: fill-box; transform-origin: 50% 50%; }
.mascot .fx-ear-l { animation: fx-ear 5s infinite; transform-box: fill-box; transform-origin: 70% 100%; }
.mascot .fx-zzz { animation: fx-float 2.6s ease-out infinite; }
.mascot .fx-spark { animation: fx-sparkle 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .mascot * { animation: none !important; } }

/* Duel */
.duel { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; text-align: left; width: 100%; text-decoration: none; }
.duel .label { font-size: 13px; font-weight: 800; color: var(--gold); }
.duel .num { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; }
.duel .sub { font-size: 13px; color: var(--muted); }
.bar { height: 10px; border-radius: 5px; background: var(--partner); overflow: hidden; display: flex; }
.bar > span { background: var(--nans); border-right: 2px solid var(--card); transition: width .4s; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line); background: transparent; font-weight: 800; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }

/* Tâches */
.list { display: flex; flex-direction: column; gap: 8px; }
.task { width: 100%; min-height: 62px; text-align: left; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; transition: background .3s; }
.task.done { background: var(--soft); }
.task.done .t-title { text-decoration: line-through; color: #7F918A; }
.box { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 2px solid #5C6E67; background: transparent; display: grid; place-items: center; }
.box svg { width: 15px; height: 15px; stroke: var(--deep); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.t-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.t-title { font-size: 15px; font-weight: 700; }
.t-meta { font-size: 12px; color: var(--muted); }
.pts { flex-shrink: 0; font-size: 14px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #2E3F2A; color: var(--green); }
.mental { font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 1px 6px; margin-left: 6px; }
.task .t-title .mental { display: inline-block; }

.group { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.prow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 60px; }
.prow + .prow { border-top: 1px solid #23342E; }
.prow .hit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; background: none; border: 0; color: var(--ink); text-align: left; padding: 4px 0; min-height: 44px; justify-content: center; }
.prog { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; display: flex; }
.prog > span { transition: width .3s; }
.count { font-size: 12px; font-weight: 800; color: var(--muted); flex-shrink: 0; min-width: 34px; text-align: right; }
.icon-btn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.dark { background: var(--orange); color: var(--on-orange); }

.claude-card { background: var(--deep); border: 1px solid var(--line); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.claude-card .prow + .prow { border-top-color: var(--line); }
.dashed { border: 1.5px dashed #4A5C55; border-radius: 20px; padding: 14px; background: transparent; color: var(--ink); text-align: left; display: flex; gap: 12px; align-items: center; width: 100%; min-height: 56px; }

.stake { background: var(--gold); color: #2B2230; border-radius: 22px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; border: 0; text-align: left; width: 100%; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--display); font-size: 22px; }

/* Boutons et formulaires */
.btn { min-height: 48px; border-radius: 999px; border: 0; background: var(--orange); color: var(--on-orange); font-weight: 800; padding: 0 20px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: transparent; border: 1.5px solid var(--danger); color: var(--danger); }
.btn:disabled { opacity: .45; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; flex-shrink: 0; }
.btn.mic { background: var(--raised); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.btn.mic.on { background: #B3261E; color: #fff; animation: pulse 1.2s infinite; }
.btn.big { min-height: 58px; font-family: var(--display); font-size: 20px; animation: glow 2s ease-in-out infinite; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
@keyframes pulse { 50% { opacity: .7; } }

.tabs { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 10px); max-width: 496px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; }
.tabs[hidden] { display: none; }
.tabs button { background: none; border: 0; min-height: 54px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tabs button[aria-current="page"] { background: var(--orange); color: var(--on-orange); font-weight: 800; }
.tabs svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

dialog { border: 0; border-radius: 28px 28px 0 0; padding: 20px 20px calc(env(safe-area-inset-bottom) + 20px); width: 100%; max-width: 520px; margin: auto auto 0; background: var(--ground); color: var(--ink); }
dialog::backdrop { background: rgba(5, 10, 9, .6); }
.sheet { display: flex; flex-direction: column; gap: 12px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
label.f input, label.f select, textarea { min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
textarea { width: 100%; padding: 12px; font: inherit; font-size: 16px; resize: vertical; }
label.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; }
label.check input { width: 22px; height: 22px; accent-color: var(--orange); }
details.more { border: 1px solid var(--line); border-radius: 18px; padding: 4px 14px; }
details.more summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; cursor: pointer; }
details.more[open] { padding-bottom: 14px; }

/* Connexion */
.login { min-height: 80dvh; justify-content: center; }
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.who button { min-height: 170px; border-radius: 28px; border: 2px solid var(--line); background: var(--card); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: var(--display); font-weight: 800; font-size: 20px; }
.who button[aria-pressed="true"] { border-color: var(--orange); background: var(--raised); }
.pin { min-height: 58px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 24px; letter-spacing: 8px; text-align: center; width: 100%; }

#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #2B2230; font-weight: 700; padding: 10px 16px; border-radius: 16px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; max-width: 90vw; z-index: 60; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.install { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 20px; padding: 12px 14px; background: var(--gold); color: #2B2230; }
.install .muted { color: #5A4A20; }
.offer { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; min-height: 64px; }
.price { flex-shrink: 0; min-width: 48px; height: 44px; border-radius: 14px; background: var(--gold); color: #2B2230; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 16px; }
.valuebox { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.valuebox > span { flex: 1; }
.subcard { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 20px; padding: 14px; background: var(--card); }
.linklike { background: none; border: 0; color: var(--muted); text-decoration: underline; min-height: 44px; font-size: 14px; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.steps svg { vertical-align: -3px; }
.slot.block .t-title { color: var(--muted); font-style: italic; }
fieldset.days, fieldset.who-thought { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
fieldset.days legend, fieldset.who-thought legend { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 6px; padding: 0; }
fieldset.days label, fieldset.who-thought label { position: relative; }
fieldset.days input, fieldset.who-thought input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
fieldset.days span { width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; font-weight: 800; }
fieldset.who-thought label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--card); font-weight: 800; }
fieldset.days input:checked + span, fieldset.who-thought label input:checked + span { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
fieldset.days input:focus-visible + span, fieldset.who-thought label input:focus-visible + span { outline: 2px solid var(--nans); outline-offset: 2px; }
.taskrow { display: flex; align-items: center; gap: 6px; }
.taskrow .task { flex: 1; min-width: 0; }
.icon-btn.nudge, .icon-btn.steal { background: var(--card); border: 1px solid var(--line); }
.icon-btn.steal { font-size: 18px; }
.mental.warn { color: var(--gold); border-color: #7A6020; background: #2A2614; }

/* Trophées */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.emoji { font-size: 24px; line-height: 1; flex-shrink: 0; }
.emoji.big { font-size: 40px; }
.trophy-row { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.cabinet { background: var(--deep); border: 1px solid var(--line); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.cabinet.empty { flex-direction: row; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.cab-title { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--gold); text-align: center; }
.cab-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.cab-cols .label { font-size: 12px; font-weight: 800; color: var(--gold); }
.cab-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 12px; border-radius: 20px; background: var(--card); border: 2px solid transparent; }
.cab-col.lead { border-color: var(--gold); animation: glow 2.4s ease-in-out infinite; }
.cab-col .num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.crown { position: absolute; top: -14px; font-size: 24px; animation: bob 2s ease-in-out infinite; }
.shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.shelf-item { display: inline-flex; align-items: center; gap: 2px; background: var(--raised); border-radius: 10px; padding: 3px 7px; font-size: 16px; }
.shelf-item b { font-size: 12px; }
.palm .t-main { gap: 4px; }
@keyframes glow { 50% { box-shadow: 0 0 20px rgba(245, 196, 81, .45); } }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-6deg); } }

/* Célébrations */
.clap { position: fixed; z-index: 50; pointer-events: none; line-height: 1; }
.confetti { position: fixed; z-index: 50; width: 8px; height: 10px; border-radius: 2px; pointer-events: none; }
.epic-flash { position: fixed; inset: 0; z-index: 48; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(245, 196, 81, .85), rgba(245, 196, 81, .25) 45%, transparent 75%); }
.epic-stamp { position: fixed; z-index: 52; left: 50%; top: 42%; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--ground); color: var(--gold); border: 4px solid var(--gold); border-radius: 26px; padding: 14px 26px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.epic-stamp b { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; }
.epic-stamp span { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: 3px; color: var(--ink); }
.float-pts { position: fixed; z-index: 51; pointer-events: none; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--ink); text-shadow: 0 2px 0 var(--orange); }
.box.pop { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-10deg); } 100% { transform: scale(1); } }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .cab-col.lead, .crown, .box.pop { animation: none; } }

/* Missions du jour */
.missions { background: linear-gradient(160deg, #2A1A12, var(--deep) 70%); border: 1px solid #3A2A1E; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.missions .sub { color: #F3C9A8; font-size: 13px; }
.missions .task { border-color: #4A3426; }
.missions h2 { flex-wrap: nowrap; white-space: nowrap; margin: 0; }
.missions .row.between .sub { text-align: right; }
.task.mission { position: relative; }
.task.mission.flame-2 { border: 1.5px solid var(--orange); }
.task.mission.flame-3 { border: 2px solid #E8443A; animation: ember 1.6s ease-in-out infinite; }
@keyframes ember { 50% { box-shadow: 0 0 0 3px rgba(232, 68, 58, .25), 0 0 18px rgba(242, 138, 60, .45); } }
.mental.fire { color: #FFB27A; border-color: #7A3A1A; background: #2E1A12; }
.pts.hot { background: linear-gradient(135deg, var(--orange), #E8443A); color: #fff; animation: flicker 1.8s ease-in-out infinite; }
.task.done .pts.hot { animation: none; }
@keyframes flicker { 50% { transform: scale(1.08) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .task.mission.flame-3, .pts.hot { animation: none; } }

/* Brouillard et révélation */
.pts.fog { background: var(--raised); color: var(--muted); }
.dots { display: flex; gap: 8px; }
.dots .dot { width: 14px; height: 14px; border-radius: 50%; }
.dots .dot.empty { border: 1.5px dashed #5C6E67; }
.dots .dot.live { border: 2px solid var(--gold); animation: pulse 1.6s infinite; }
.dots .dot.paused { width: auto; height: auto; font-size: 13px; line-height: 14px; background: none; }
.reveal-card { background: linear-gradient(160deg, #1E1A33, #3A2C10); border: 2px solid var(--gold); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.reveal-card .sub { color: #E8D9A8; }
.waiting { text-align: center; font-weight: 800; color: var(--gold); padding: 12px; border: 1.5px dashed var(--gold); border-radius: 18px; }
.ceremony { gap: 14px; }
.cer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cer-col { background: var(--card); border: 2px solid var(--c); border-radius: 22px; padding: 8px 8px 12px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 260px; }
.cer-col .mascot-slot { display: flex; justify-content: center; }
.cer-col .num { font-family: var(--display); font-weight: 800; font-size: 44px; text-align: center; line-height: 1; color: var(--c); }
.cer-list { display: flex; flex-direction: column; gap: 6px; max-height: 30dvh; overflow-y: auto; }
.cer-item { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; background: var(--raised); border-radius: 12px; padding: 6px 8px; animation: slidein .3s ease-out; }
.cer-item b { flex-shrink: 0; }
.cer-item b.hot { color: #FFB27A; }
.cer-verdict { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.cer-win { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--c, var(--ink)); }
dialog .sub { color: var(--muted); font-size: 13px; }

/* Pression */
.money { background: linear-gradient(90deg, var(--gold), var(--orange)); color: #2B2230; border-radius: 18px; padding: 10px 14px; font-size: 14px; animation: flicker 2.4s ease-in-out infinite; }
.gamebar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@keyframes alarm { 50% { box-shadow: 0 0 0 6px rgba(255, 107, 94, .2); } }
@media (prefers-reduced-motion: reduce) { .mascot-card.hot, .mascot-card.red, .money { animation: none; } }

/* Pauses, finale, mascotte */
.pause-btn { text-align: left; border: 1px solid var(--line); }
.pause-btn[aria-disabled="true"] { opacity: .5; }
.fin-score { display: flex; justify-content: space-around; align-items: center; }
.fin-score > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fin-score b { font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; color: var(--c); }
.fin-day { animation: slidein .35s ease-out; min-height: 48px; }
.payer { margin-top: 6px; font-weight: 800; background: var(--gold); color: #2B2230; border-radius: 16px; padding: 10px 12px; }
.mascot-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mascot-pick button { background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 22px; padding: 8px 4px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--display); font-weight: 800; font-size: 17px; }
.mascot-pick button[aria-pressed="true"] { border-color: var(--orange); background: var(--raised); }

/* ---- À faire bien visible ---- */
.list.todo .task:not(.done) { border: 1.5px solid #3D5A4F; background: #20322B; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.list.todo .task:not(.done) .box { border-color: var(--ink); }
.count-pill { font-family: var(--body); font-size: 14px; font-weight: 800; background: var(--orange); color: var(--on-orange); border-radius: 999px; padding: 2px 10px; }
details.done-group { border: 1px dashed var(--line); border-radius: 20px; padding: 2px 12px; }
details.done-group summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; color: var(--muted); cursor: pointer; }
details.done-group[open] { padding-bottom: 12px; }
details.done-group .task { opacity: .75; }
.notice.veiled { border-style: dashed; color: var(--muted); }
.task:not(.done) .box svg { opacity: 0; }

/* ---- faite à deux ---- */
.share-bar { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 90px); width: min(480px, calc(100vw - 24px)); background: var(--raised); color: var(--ink); border: 1.5px solid var(--orange); border-radius: 22px; padding: 10px 6px 10px 14px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: slidein .25s ease-out; }
.share-bar .t-main { font-size: 14px; }

/* Mode coopération : jauge d'équilibre */
.bal { display: flex; flex-direction: column; gap: 6px; }
.bal-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); }
.bal-bar span { display: block; height: 100%; transition: width .4s ease; }
.mode-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mode-pick button { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 4px; text-align: left; min-height: 44px; }
.mode-pick button b { font-family: var(--display); font-size: 17px; }
.mode-pick button .muted { font-size: 13px; }
.mode-pick button[aria-pressed="true"] { border-color: var(--orange); background: var(--raised); }

/* Routines d'Ysée */
.routine { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.routine h2 { font-size: 18px; }
.routine-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.step { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 2px solid var(--line); background: var(--soft); font-weight: 700; font-size: 15px; }
.step .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; font-size: 14px; }
.step.on { border-color: var(--who, var(--green)); background: var(--raised); }
.step.on .tick { background: var(--who, var(--green)); border-color: var(--who, var(--green)); color: var(--deep); }
.step.on > span:nth-child(2) { opacity: .75; }
.step .who { font-size: 12px; color: var(--muted); }

/* Crèche du jour */
.creche-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 10px; align-items: center; }
.creche-who { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 2px solid var(--line); background: var(--soft); font-weight: 700; font-size: 14px; }
.creche-who .swap { color: var(--muted); font-size: 13px; }
.creche-who.done { border-color: transparent; background: none; color: var(--muted); }

/* Catégories (option d'affichage) */
.cat-head { font-size: 13px; font-weight: 800; color: var(--muted); margin: 6px 0 -4px 4px; }
.step.static { cursor: default; }
