/* RéviQuest — styles (mobile first, iPhone / iPad) */
:root {
  --bg: #ffffff;
  --bg2: #f7f7f7;
  --card: #ffffff;
  --ink: #3c3c3c;
  --ink2: #777;
  --line: #e5e5e5;
  --green: #58cc02; --green-d: #58a700; --green-l: #d7ffb8;
  --red: #ff4b4b; --red-d: #ea2b2b; --red-l: #ffdfe0;
  --blue: #1cb0f6; --blue-d: #1899d6; --blue-l: #ddf4ff;
  --orange: #ff9600; --orange-d: #e08600;
  --gold: #ffc800; --gold-d: #e5b400;
  --purple: #ce82ff; --purple-d: #a560e8;
  --accent: var(--green); --accent-d: var(--green-d);
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --nav-h: 64px;
  font-size: 17px;
}
body[data-theme="ocean"] { --bg: #eaf8ff; --bg2: #d6f0ff; --accent: #1cb0f6; --accent-d: #1899d6; }
body[data-theme="jungle"] { --bg: #f0fbe6; --bg2: #e1f5cf; --accent: #2fa84f; --accent-d: #208a3c; }
body[data-theme="space"] { --bg: #131f45; --bg2: #1d2b5c; --card: #22336b; --ink: #f2f4ff; --ink2: #aab4dd; --line: #34488a; --accent: #ce82ff; --accent-d: #a560e8; }
@media (min-width: 700px) { :root { font-size: 19px; } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Nunito", ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  overscroll-behavior: none; touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  -webkit-text-size-adjust: 100%;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 900; }
.hidden { display: none !important; }
.muted { color: var(--ink2); }
.center { text-align: center; }

#app { max-width: 640px; margin: 0 auto; min-height: 100dvh; position: relative; }
.screen { min-height: 100dvh; padding: calc(var(--safe-top) + 12px) 16px calc(var(--safe-bot) + var(--nav-h) + 24px); }
.screen.full { padding-bottom: calc(var(--safe-bot) + 16px); }

/* ---------- boutons 3D ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 900; letter-spacing: .04em;
  text-transform: uppercase; font-size: .95rem; background: var(--accent); color: #fff;
  box-shadow: 0 4px 0 var(--accent-d); transition: transform .06s, box-shadow .06s, filter .2s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-d); }
.btn.block { width: 100%; }
.btn.blue { background: var(--blue); box-shadow: 0 4px 0 var(--blue-d); }
.btn.red { background: var(--red); box-shadow: 0 4px 0 var(--red-d); }
.btn.gold { background: var(--gold); box-shadow: 0 4px 0 var(--gold-d); color: #6b4b00; }
.btn.purple { background: var(--purple); box-shadow: 0 4px 0 var(--purple-d); }
.btn.ghost { background: var(--card); color: var(--blue); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn:disabled { background: var(--line); color: #afafaf; box-shadow: 0 4px 0 #d0d0d0; pointer-events: none; }

/* ---------- choix du joueur ---------- */
.players-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-bottom: 40px; }
.logo { font-size: 2.3rem; font-weight: 900; color: var(--accent); letter-spacing: -.02em; }
.logo small { display: block; font-size: .95rem; color: var(--ink2); font-weight: 700; letter-spacing: 0; text-align: center; }
.mascot { font-size: 4.5rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.player-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.player-card {
  background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 18px 10px 14px;
  box-shadow: 0 5px 0 var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.player-card:active { transform: translateY(4px); box-shadow: none; }
.player-card .av { font-size: 3.4rem; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; }
.player-card .nm { font-weight: 900; font-size: 1.2rem; }
.player-card .meta { font-size: .85rem; color: var(--ink2); font-weight: 700; }

/* ---------- PIN ---------- */
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 14px 0; }
.pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); }
.pin-dots span.on { background: var(--accent); border-color: var(--accent); }
.pinpad { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; justify-content: center; }
.pinpad button { height: 64px; border-radius: 18px; background: var(--bg2); font-size: 1.6rem; font-weight: 900; box-shadow: 0 4px 0 var(--line); }
.pinpad button:active { transform: translateY(4px); box-shadow: none; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- barre du haut ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 5;
  background: var(--bg); padding: calc(var(--safe-top) + 8px) 16px 8px; margin: calc(-12px - var(--safe-top)) -16px 8px; border-bottom: 2px solid var(--line); }
.stat { display: flex; align-items: center; gap: 4px; font-weight: 900; font-size: 1.05rem; padding: 6px 8px; border-radius: 12px; }
.stat:active { background: var(--bg2); }
.stat.fire { color: var(--orange); }
.stat.fire.off { color: #c9c9c9; filter: grayscale(1); }
.stat.gem { color: var(--blue); }
.stat.lvl { color: var(--purple-d); }
.subject-btn { font-size: 1.7rem; padding: 2px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); }
.goal-ring { width: 38px; height: 38px; position: relative; }
.goal-ring svg { transform: rotate(-90deg); }
.goal-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .9rem; }

/* ---------- bulle mascotte ---------- */
.hello { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.hello .m { font-size: 2.8rem; animation: bob 3s ease-in-out infinite; }
.bubble { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; font-weight: 700; position: relative; flex: 1; }
.bubble::before { content: ""; position: absolute; left: -9px; top: 18px; border: 8px solid transparent; border-right-color: var(--line); border-left: 0; }

/* ---------- parcours ---------- */
.subject-header { border-radius: var(--radius); padding: 14px 16px; color: #fff; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.18); margin-bottom: 10px; }
.subject-header h2 { margin: 0; font-size: 1.25rem; }
.subject-header p { margin: 2px 0 0; font-weight: 700; opacity: .9; font-size: .9rem; }
.subject-header .big { font-size: 2.4rem; }
.path { display: flex; flex-direction: column; align-items: center; padding: 48px 0 30px; gap: 26px; }
.node-wrap { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.node {
  width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem; position: relative;
  background: var(--c, var(--accent)); box-shadow: 0 7px 0 rgba(0,0,0,.22); transition: transform .08s;
}
.node:active { transform: translateY(6px); box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.node.new { background: var(--line); box-shadow: 0 7px 0 #cfcfcf; }
.node.gold { background: var(--gold); box-shadow: 0 7px 0 var(--gold-d); }
.node.chest { background: transparent; box-shadow: none; font-size: 3rem; }
.node-ring { position: absolute; inset: -9px; }
.node-label { font-weight: 800; font-size: .82rem; margin-top: 12px; text-align: center; max-width: 170px; line-height: 1.15; }
.crowns { font-size: .75rem; letter-spacing: -1px; min-height: 1em; }
.node .badge-crown { position: absolute; right: -6px; bottom: -4px; background: var(--gold); color: #6b4b00; border: 3px solid var(--bg); border-radius: 12px; font-size: .75rem; font-weight: 900; padding: 1px 6px; }
.next-hint { position: absolute; top: -34px; background: var(--card); border: 2px solid var(--line); color: var(--accent); font-weight: 900; padding: 4px 10px; border-radius: 10px; font-size: .8rem; animation: bob 1.6s infinite; white-space: nowrap; z-index: 2; }

/* ---------- feuilles / popups ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { background: var(--card); width: 100%; max-width: 640px; border-radius: 24px 24px 0 0; padding: 22px 18px calc(var(--safe-bot) + 20px); animation: up .25s ease-out; max-height: 88dvh; overflow-y: auto; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet h2 { font-size: 1.35rem; }
.sheet .row { display: flex; gap: 10px; margin-top: 14px; }
.sheet .row > * { flex: 1; }
.subject-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.subject-list button { border: 2px solid var(--line); border-radius: 16px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; box-shadow: 0 4px 0 var(--line); background: var(--card); }
.subject-list button.sel { border-color: var(--blue); background: var(--blue-l); box-shadow: 0 4px 0 var(--blue); }
body[data-theme="space"] .subject-list button.sel { background: #2c4a96; }
.subject-list .i { font-size: 2rem; }
.subject-list .p { font-size: .75rem; color: var(--ink2); }

/* ---------- navigation ---------- */
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--bg); border-top: 2px solid var(--line);
  display: flex; justify-content: space-around; padding: 6px 4px calc(var(--safe-bot) + 6px); max-width: 640px; margin: 0 auto; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 1.6rem; padding: 4px 0; border-radius: 12px; border: 2px solid transparent; filter: grayscale(.6); opacity: .75; }
.nav button span { font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; margin-top: 1px; }
.nav button.on { border-color: var(--blue); background: var(--blue-l); filter: none; opacity: 1; }
body[data-theme="space"] .nav button.on { background: #2c4a96; }
.nav .dot { position: relative; }
.nav .dot::after { content: ""; position: absolute; top: 2px; right: 22%; width: 10px; height: 10px; background: var(--red); border-radius: 50%; border: 2px solid var(--bg); }

/* ---------- cartes génériques ---------- */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; }
.tile { display: flex; align-items: center; gap: 14px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; box-shadow: 0 4px 0 var(--line); width: 100%; text-align: left; }
.tile:active { transform: translateY(4px); box-shadow: none; }
.tile .ic { font-size: 2.4rem; width: 56px; text-align: center; }
.tile b { font-size: 1.05rem; display: block; }
.tile small { color: var(--ink2); font-weight: 700; }
.tile .pill { margin-left: auto; }
.pill { background: var(--red); color: #fff; font-weight: 900; font-size: .8rem; border-radius: 20px; padding: 3px 9px; }
.pill.blue { background: var(--blue); }
.pill.gold { background: var(--gold); color: #6b4b00; }
.section-title { font-weight: 900; font-size: 1.3rem; margin: 18px 0 10px; }

/* ---------- leçon ---------- */
.lesson { display: flex; flex-direction: column; min-height: 100dvh; padding: calc(var(--safe-top) + 10px) 16px 0; }
.lesson-top { display: flex; align-items: center; gap: 12px; }
.lesson-top .x { font-size: 1.6rem; color: var(--ink2); padding: 4px; }
.bar { flex: 1; height: 16px; background: var(--line); border-radius: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 10px; transition: width .4s; position: relative; }
.bar i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); }
.hearts { font-weight: 900; color: var(--red); font-size: 1.1rem; white-space: nowrap; }
.timer { font-weight: 900; color: var(--blue); font-size: 1.2rem; min-width: 52px; text-align: right; }
.timer.low { color: var(--red); animation: pulse .5s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.combo { text-align: center; font-weight: 900; color: var(--orange); height: 1.4em; margin-top: 6px; font-size: .95rem; }
.qbody { flex: 1; display: flex; flex-direction: column; padding: 8px 0 20px; }
.qkind { font-size: .8rem; font-weight: 900; color: var(--purple-d); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.qtext { font-size: 1.35rem; font-weight: 800; line-height: 1.3; margin-bottom: 18px; white-space: pre-line; }
.qtext .blank { display: inline-block; min-width: 60px; border-bottom: 3px solid var(--ink2); }
.speak { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--blue); box-shadow: 0 4px 0 var(--blue-d); font-size: 1.6rem; margin-right: 10px; vertical-align: middle; }
.speak:active { transform: translateY(4px); box-shadow: none; }
.speak.big { width: 96px; height: 96px; font-size: 3rem; border-radius: 24px; margin: 10px auto 20px; display: grid; }
.opts { display: grid; gap: 12px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { border: 2px solid var(--line); border-radius: 16px; padding: 14px 14px; min-height: 58px; font-weight: 800; font-size: 1.08rem; box-shadow: 0 4px 0 var(--line); text-align: left; background: var(--card); display: flex; align-items: center; gap: 10px; }
.opts.two .opt { justify-content: center; text-align: center; }
.opt .k { flex: none; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-size: .8rem; color: var(--ink2); }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.opt.sel { border-color: var(--blue); background: var(--blue-l); box-shadow: 0 4px 0 var(--blue); color: var(--blue-d); }
.opt.ok { border-color: var(--green); background: var(--green-l); box-shadow: 0 4px 0 var(--green); color: var(--green-d); }
.opt.bad { border-color: var(--red); background: var(--red-l); box-shadow: 0 4px 0 var(--red); color: var(--red-d); }
body[data-theme="space"] .opt.sel { background: #2c4a96; color: #fff; }
.tf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tf .opt { justify-content: center; font-size: 1.3rem; min-height: 90px; flex-direction: column; }
.tf .opt .e { font-size: 2rem; }
.answer-input { width: 100%; font: inherit; font-size: 1.3rem; font-weight: 800; padding: 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--bg2); color: var(--ink); outline: none; }
.answer-input:focus { border-color: var(--blue); }
.hint-chars { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hint-chars button { min-width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-weight: 900; font-size: 1.1rem; box-shadow: 0 3px 0 var(--line); }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match .col { display: grid; gap: 10px; align-content: start; }
.match .opt { justify-content: center; text-align: center; font-size: 1rem; min-height: 54px; padding: 10px 8px; }
.match .opt.done { opacity: .35; pointer-events: none; border-color: var(--green); box-shadow: none; }
.order-line { min-height: 64px; border-bottom: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; margin-bottom: 22px; align-content: flex-start; }
.order-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: 1.08rem; background: var(--card); box-shadow: 0 3px 0 var(--line); }
.chip.used { visibility: hidden; }
.lesson-foot { position: sticky; bottom: 0; margin: 0 -16px; padding: 14px 16px calc(var(--safe-bot) + 16px); background: var(--bg); border-top: 2px solid var(--line); }
.lesson-foot.ok { background: var(--green-l); border-color: transparent; }
.lesson-foot.bad { background: var(--red-l); border-color: transparent; }
body[data-theme="space"] .lesson-foot.ok, body[data-theme="space"] .lesson-foot.bad { color: #3c3c3c; }
.fb { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; animation: up .2s; }
.fb .e { font-size: 2.2rem; line-height: 1; }
.fb h3 { margin: 0 0 4px; font-size: 1.25rem; }
.fb.ok h3 { color: var(--green-d); }
.fb.bad h3 { color: var(--red-d); }
.fb p { margin: 2px 0; font-weight: 700; color: #4b4b4b; }
.fb .sol { font-weight: 900; color: var(--red-d); }
.fb .ex { font-weight: 600; font-size: .92rem; }

/* ---------- résultats ---------- */
.result { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; min-height: 100dvh; padding: calc(var(--safe-top) + 20px) 20px calc(var(--safe-bot) + 20px); }
.result .big-emoji { font-size: 6rem; animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(0); } }
.result h1 { font-size: 1.9rem; color: var(--gold-d); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.kpi { border: 2px solid var(--c); border-radius: 16px; overflow: hidden; }
.kpi .h { background: var(--c); color: #fff; font-size: .72rem; font-weight: 900; text-transform: uppercase; padding: 4px; }
.kpi .v { font-size: 1.35rem; font-weight: 900; padding: 10px 4px; color: var(--c); background: var(--card); }
.reward-line { font-weight: 800; font-size: 1.05rem; }
.flame-big { font-size: 7rem; animation: pop .7s cubic-bezier(.2,1.6,.4,1), flick 1.2s infinite alternate .7s; }
@keyframes flick { to { transform: scale(1.06) rotate(3deg); } }
.streak-num { font-size: 4rem; font-weight: 900; color: var(--orange); line-height: 1; }
.week-dots { display: flex; gap: 8px; justify-content: center; }
.week-dots div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: .8rem; color: var(--ink2); }
.week-dots i { width: 30px; height: 30px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-style: normal; font-size: .9rem; }
.week-dots i.on { background: var(--orange); color: #fff; }
.grade { font-size: 4.5rem; font-weight: 900; color: var(--blue); }

/* ---------- duel ---------- */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; text-align: center; }
.duel .p .av { font-size: 3rem; position: relative; display: inline-block; }
.duel .p .crown { position: absolute; top: -26px; left: 50%; transform: translateX(-50%) rotate(-12deg); font-size: 1.8rem; animation: bob 2s infinite; }
.duel .p b { display: block; font-size: 1.05rem; }
.duel .p .xp { font-size: 1.8rem; font-weight: 900; }
.duel .vs { font-weight: 900; font-size: 1.5rem; color: var(--ink2); padding-bottom: 18px; }
.tug { height: 22px; border-radius: 12px; overflow: hidden; display: flex; margin: 14px 0 6px; background: var(--line); }
.tug div { transition: width .6s; }
.days-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 120px; margin-top: 10px; }
.days-chart .d { display: flex; gap: 2px; align-items: end; justify-content: center; height: 100%; position: relative; }
.days-chart .d i { width: 40%; border-radius: 4px 4px 0 0; min-height: 3px; }
.lab { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: .75rem; font-weight: 800; color: var(--ink2); margin-top: 4px; }
.vs-table { width: 100%; border-collapse: collapse; font-weight: 800; }
.vs-table td { padding: 8px 4px; border-bottom: 2px solid var(--line); text-align: center; }
.vs-table td:nth-child(2) { color: var(--ink2); font-size: .85rem; }

/* ---------- profil ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.profile-head .av { font-size: 4rem; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; border: 4px dashed var(--line); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-box { border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; }
.stat-box .e { font-size: 1.6rem; }
.stat-box b { font-size: 1.15rem; display: block; }
.stat-box small { color: var(--ink2); font-weight: 700; font-size: .78rem; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.badge { border: 2px solid var(--line); border-radius: 16px; padding: 10px 4px; text-align: center; }
.badge .e { font-size: 2.2rem; }
.badge b { display: block; font-size: .74rem; line-height: 1.1; margin-top: 4px; }
.badge.locked { filter: grayscale(1); opacity: .35; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal i { aspect-ratio: 1; border-radius: 6px; background: var(--line); display: block; }
.cal i.l1 { background: #ffe0b3; } .cal i.l2 { background: #ffbf66; } .cal i.l3 { background: var(--orange); }
.cal i.today { outline: 2px solid var(--blue); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; font-weight: 800; background: var(--card); }
.seg button.sel { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; }
.avatars button { font-size: 2rem; border: 2px solid var(--line); border-radius: 14px; aspect-ratio: 1; background: var(--card); }
.avatars button.sel { border-color: var(--blue); background: var(--blue-l); }

/* ---------- boutique ---------- */
.shop-item { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--line); padding: 14px 0; }
.shop-item .ic { font-size: 2.6rem; width: 60px; text-align: center; }
.shop-item .t { flex: 1; }
.shop-item .t b { display: block; }
.shop-item .t small { color: var(--ink2); font-weight: 700; }
.price { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; font-weight: 900; color: var(--blue); background: var(--card); box-shadow: 0 3px 0 var(--line); }
.price:disabled { color: #bbb; }
.price.owned { color: var(--green-d); }

/* ---------- toast & confettis ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 14px); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 14px; font-weight: 800; z-index: 100; animation: up .25s reverse, fade .3s; max-width: 90%; text-align: center; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.loader { display: grid; place-items: center; min-height: 100dvh; font-size: 4rem; }
.loader div { animation: bob 1s infinite; }
