/* ====================================================================
   « Le Jeu de la Famille » — feuille de base (structure & composants)
   Les couleurs d'ambiance par profil sont dans themes.css.
   ==================================================================== */

:root {
  --accent: #7c3aed;
  --bg: #0f172a;
  --bg2: #1e293b;
  --card: #1e293b;
  --card2: #273449;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: #334155;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 18px;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overscroll-behavior-y: contain;
  -webkit-user-select: none; user-select: none;
}
input, textarea, select { font-family: inherit; -webkit-user-select: text; user-select: text; }

.app-root { min-height: 100%; }

/* ---------------------------------------------------------------- Shell */
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.view { flex: 1; padding: 12px 12px calc(var(--nav-h) + var(--safe-b) + 16px); max-width: 720px; margin: 0 auto; width: 100%; }
.screen { display: flex; flex-direction: column; gap: 14px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Navbar */
.navbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--bg2) 92%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.navitem {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; position: relative; cursor: pointer; transition: color .15s;
}
.navitem .navicon { font-size: 22px; }
.navitem.active { color: var(--accent); }
.navitem.active .navicon { transform: translateY(-2px) scale(1.08); transition: transform .2s; }
.navlbl { font-weight: 600; }

/* ---------------------------------------------------------------- Chips / boutons */
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-saison { background: transparent; }

.btn {
  border: 0; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer;
  padding: 12px 16px; border-radius: 14px; font-size: 15px; transition: transform .1s, filter .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.danger { color: var(--danger); }
.btn-lg { padding: 16px 22px; font-size: 17px; width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn-xs { padding: 6px 9px; font-size: 12px; border-radius: 9px; }
.btn-reunion { width: 100%; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); font-size: 16px; padding: 15px; }

/* ---------------------------------------------------------------- Titres / textes */
.section-title h1 { font-size: 22px; margin: 4px 0 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hint { color: var(--muted); font-size: 13px; background: var(--card); padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); }
h3.sub { font-size: 15px; margin: 8px 0 2px; display: flex; align-items: center; gap: 8px; }
.sep { height: 1px; background: var(--line); margin: 12px 0; }

/* ---------------------------------------------------------------- Cartes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card-head { font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.empty { text-align: center; color: var(--muted); padding: 26px 12px; background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty-emoji { font-size: 40px; }
.empty-t { font-weight: 700; color: var(--text); margin-top: 6px; }

/* ---------------------------------------------------------------- Profils (accueil) */
.profiles { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 30px 16px; }
.brand { text-align: center; }
.brand-logo { font-size: 54px; }
.brand h1 { margin: 6px 0 0; font-size: 26px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 460px; }
.profile-card { --accent: #7c3aed; border: 2px solid var(--line); background: var(--card); border-radius: 20px; padding: 18px 12px; text-align: center; cursor: pointer; transition: transform .12s, border-color .15s; }
.profile-card:active { transform: scale(.96); }
.profile-card { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.profile-emoji { font-size: 46px; }
.profile-name { font-weight: 800; font-size: 18px; margin-top: 4px; }
.profile-solde { color: var(--accent); font-weight: 700; }
.profile-role, .profile-solde { font-size: 13px; margin-top: 2px; }
.profile-tag { margin-top: 6px; font-size: 11px; color: var(--warn); background: color-mix(in srgb, var(--warn) 18%, transparent); border-radius: 999px; padding: 2px 8px; display: inline-block; }

/* ---------------------------------------------------------------- Verrou */
.lock { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; position: relative; }
.lock-back { position: absolute; top: calc(env(safe-area-inset-top,0) + 14px); left: 14px; }
.lock h1 { margin: 0; }

/* ---------------------------------------------------------------- Pavé PIN */
.pin-sub { text-align: center; color: var(--muted); margin: 0 0 8px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 8px 0 18px; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); }
.pin-dot.on { background: var(--accent); border-color: var(--accent); }
.pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 280px; margin: 0 auto; }
.pin-key { font-size: 24px; font-weight: 700; padding: 16px 0; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.pin-key:active { background: var(--accent); color: #fff; }
.pin-key-muted { color: var(--muted); font-size: 18px; }

/* ---------------------------------------------------------------- Tâches (Ma journée) */
.tache-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tache-grid.big { grid-template-columns: 1fr 1fr; gap: 16px; }
.tache-btn {
  border: 2px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 20px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; transition: transform .12s, border-color .15s; min-height: 120px; justify-content: center;
}
.tache-grid.big .tache-btn { min-height: 150px; border-width: 3px; }
.tache-btn:active { transform: scale(.95); }
.tache-btn .tache-picto { font-size: 40px; }
.tache-grid.big .tache-picto { font-size: 56px; }
.tache-btn .tache-lbl { font-weight: 700; text-align: center; font-size: 14px; line-height: 1.15; }
.tache-grid.big .tache-lbl { font-size: 17px; }
.tache-btn .tache-val { font-weight: 800; color: var(--accent); }
.tache-btn.done { border-color: var(--ok); opacity: .8; }
.tache-btn.done .tache-val { color: var(--ok); }

/* ---------------------------------------------------------------- Échelle */
.echelle-wrap { display: flex; gap: 18px; align-items: stretch; }
.echelle { position: relative; width: 92px; height: 340px; background: var(--card); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; }
.echelle-fill { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.echelle-palier { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 6px; transform: translateY(50%); font-size: 12px; }
.echelle-palier::before { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--line); }
.echelle-palier.on .palier-val { color: var(--ok); font-weight: 800; }
.palier-val { position: relative; background: var(--bg); padding: 1px 5px; border-radius: 6px; font-weight: 700; }
.palier-flag { position: relative; }
.echelle-rocket { position: absolute; left: 50%; transform: translate(-50%, 50%); font-size: 30px; transition: bottom .6s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.echelle-side { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; }
.big-solde { font-size: 62px; font-weight: 900; color: var(--accent); line-height: 1; }

/* ---------------------------------------------------------------- Boutique */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.shop-card.locked { opacity: .55; }
.shop-cost { font-weight: 800; color: var(--accent); }
.shop-lbl { font-size: 14px; flex: 1; }

/* ---------------------------------------------------------------- Profil / avatar */
.avatar { position: relative; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card2); border: 2px solid var(--accent); overflow: hidden; }
.avatar-base { line-height: 1; }
.avatar-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* les accessoires restent au-dessus de la photo */
.avatar .avatar-acc { z-index: 2; }
.avatar-edit { position: relative; border: 0; background: transparent; padding: 0; cursor: pointer; line-height: 0; }
.avatar-cam { position: absolute; right: -2px; bottom: -2px; font-size: 22px; background: var(--bg2); border-radius: 50%; padding: 2px; border: 1px solid var(--line); z-index: 3; }
.photo-manage { display: flex; flex-direction: column; gap: 10px; }
.photo-row { display: flex; align-items: center; gap: 12px; }
.photo-name { font-weight: 700; flex: 1; }
.photo-actions { display: flex; gap: 8px; }
.avatar-acc { position: absolute; font-size: 55%; }
.avatar-acc-casquette { top: -6%; }
.avatar-acc-lunettes { top: 30%; font-size: 45%; }
.avatar-acc-couronne { top: -16%; }
.avatar-acc-medaille { bottom: 2%; right: 6%; font-size: 40%; }
.avatar-acc-cape { bottom: -6%; left: -6%; }
.profil-head { display: flex; align-items: center; gap: 16px; }
.profil-nom { font-size: 22px; font-weight: 800; }
.profil-titre { color: var(--accent); font-weight: 700; }
.profil-niveau { color: var(--muted); }
.xpbar { position: relative; height: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; display: flex; align-items: center; }
.xpbar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); transition: width .6s; }
.xpbar-lbl { position: relative; padding: 0 12px; font-size: 12px; font-weight: 700; z-index: 1; }
.acc-grid, .badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acc-card, .badge-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; cursor: pointer; }
.acc-card.locked, .badge-card:not(.on) { opacity: .5; }
.acc-card.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, var(--card)); }
.acc-emoji, .badge-emoji { font-size: 30px; }
.acc-lbl, .badge-lbl { font-size: 12px; font-weight: 700; }
.acc-cond { font-size: 10px; color: var(--muted); }
.badge-card.on { border-color: var(--warn); }

/* ---------------------------------------------------------------- Listes / rows */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-row { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card2); }
.pill-proposee { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.pill-validee { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.pill-faite { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }

/* ---------------------------------------------------------------- Objectifs / jauge */
.gauge { position: relative; height: 30px; background: var(--card2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.gauge-fill { position: absolute; top: 0; left: 0; bottom: 0; background: linear-gradient(90deg, var(--ok), #4ade80); transition: width .6s; }
/* Label centré SUR toute la barre (pas dans le remplissage) → toujours « 0 / 120 »
   sur une seule ligne, lisible que la jauge soit vide ou pleine. */
.gauge-lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; font-weight: 800; font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.objectif-nom { font-weight: 700; }
.cagnotte-total { font-size: 26px; font-weight: 900; color: var(--accent); }
.success-banner { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); border-radius: 12px; padding: 10px; text-align: center; font-weight: 800; }

/* ---------------------------------------------------------------- Dashboard parent */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.dash-nom { font-weight: 800; }
.dash-solde { color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------------------------------------------------------------- Valider / retrait */
.valider-row { align-items: center; }
.vr-lbl { font-weight: 700; }
.vr-actions { display: flex; gap: 6px; }
.retrait-children { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.retrait-grid { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.retrait-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); cursor: pointer; text-align: left; }
.retrait-opt.on { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--card)); }
.retrait-val { font-weight: 900; color: var(--danger); font-size: 18px; min-width: 40px; }
.retrait-motif { font-size: 13px; }

/* ---------------------------------------------------------------- Journal */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ledger-row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; }
.lr-who { font-weight: 700; margin-right: 8px; }
.lr-motif { color: var(--muted); font-size: 13px; }
.lr-main { min-width: 0; }
.lr-side { text-align: right; white-space: nowrap; display: flex; flex-direction: column; gap: 2px; }
.lr-delta { font-weight: 900; font-size: 17px; }
.lr-delta.pos { color: var(--ok); }
.lr-delta.neg { color: var(--danger); }

/* ---------------------------------------------------------------- Réglages / lib */
.lib { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow-y: auto; }
.lib-rayon { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 8px; font-weight: 800; }
.lib-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.lib-row.off { opacity: .5; }
.lib-lbl { font-weight: 700; font-size: 14px; }
.lib-actions { display: flex; align-items: center; gap: 6px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { width: 42px; height: 24px; appearance: none; background: var(--line); border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; }
.switch input:checked { background: var(--accent); }
.switch input::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: left .2s; }
.switch input:checked::after { left: 21px; }
.switch.small input { width: 36px; height: 20px; }
.switch.small input::after { width: 14px; height: 14px; }
.switch.small input:checked::after { left: 19px; }

/* ---------------------------------------------------------------- Formulaires */
.input { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 15px; }
.input.mini { width: 90px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field-lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chk-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.apercu { background: var(--card2); border-radius: 10px; padding: 10px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- Réunion */
.reunion-head { text-align: center; }
.reunion-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.reunion-progress .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.reunion-progress .dot.on { background: var(--accent); transform: scale(1.3); }
.reunion-progress .dot.done { background: var(--ok); }
.reunion-title { margin: 0; font-size: 20px; }
.reunion-body { display: flex; flex-direction: column; gap: 12px; }
.reunion-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.notice { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); border-radius: 12px; padding: 10px; font-size: 13px; }
.bilan-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { text-align: center; background: var(--card2); border-radius: 12px; padding: 8px 4px; }
.stat-v { font-weight: 900; font-size: 18px; }
.stat-v.pos { color: var(--ok); } .stat-v.neg { color: var(--danger); } .stat-v.accent { color: var(--accent); }
.stat-l { font-size: 11px; color: var(--muted); }
.bilan-stats + .bilan-stats { margin-top: 8px; }
.bilan-verdict { margin-top: 10px; text-align: center; font-weight: 800; font-size: 14px; border-radius: 12px; padding: 8px; }
.bilan-verdict.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.bilan-verdict.ko { color: var(--muted); background: var(--card2); }
.badge-ok { color: var(--ok); font-weight: 800; font-size: 13px; }
.mission-row { background: var(--card2); border-radius: 12px; padding: 8px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.fierte-thumb { width: 100%; max-width: 220px; border-radius: 12px; object-fit: cover; }
.fierte-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.fierte-card { background: var(--card2); border-radius: 12px; overflow: hidden; }
.fierte-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.fierte-cap { font-size: 12px; padding: 6px 8px; }
.titre-list { display: flex; flex-direction: column; gap: 8px; }
.titre-row { display: flex; align-items: center; gap: 8px; }
.titre-seuil { flex: 0 0 auto; font-size: 12px; color: var(--muted); min-width: 64px; }
.titre-row .input { flex: 1; }
.field-lbl { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.propose-box { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 12px; padding: 10px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.rappel-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.rappel-row .input.mini { flex: 0 0 96px; }
.rappel-row .input:not(.mini) { flex: 1; }
.rappel-banner { position: fixed; left: 12px; right: 12px; bottom: 78px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 2px solid var(--warn); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.rappel-emoji { font-size: 28px; animation: rappel-ring 1.2s ease-in-out infinite; }
.rappel-body { flex: 1; }
.rappel-titre { font-weight: 900; }
.rappel-item { font-size: 13px; color: var(--muted); }
@keyframes rappel-ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-18deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
/* Fond d'écran perso : couche fixe derrière toute l'interface */
#bg-perso { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-position: center; background-size: cover; background-repeat: no-repeat; }
/* quand un fond perso est actif, on masque le motif SVG du thème */
body.has-bg-perso[data-theme]::after { display: none; }
.bg-thumb { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.bg-thumb.empty { display: flex; align-items: center; justify-content: center; background: var(--card2); font-size: 20px; }
.ecran-card.bonus { border: 2px solid var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent); }
.onboard-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.onboard-item { display: flex; gap: 10px; align-items: flex-start; }
.onboard-ic { font-size: 22px; flex: 0 0 auto; }
.tache-reps { font-size: 12px; font-weight: 800; color: var(--accent); margin-top: 2px; }
/* Chat familial */
.chat-list { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow-y: auto; padding: 4px; margin-bottom: 10px; }
.chat-msg { max-width: 82%; align-self: flex-start; }
.chat-msg.mine { align-self: flex-end; }
.chat-meta { font-size: 11px; color: var(--muted); margin: 0 6px 3px; }
.chat-msg.mine .chat-meta { text-align: right; }
.chat-bubble { display: flex; align-items: center; gap: 6px; background: var(--card2); border-left: 3px solid var(--who); border-radius: 12px; padding: 8px 10px; }
.chat-msg.mine .chat-bubble { background: color-mix(in srgb, var(--who) 22%, var(--card2)); border-left: none; border-right: 3px solid var(--who); }
.chat-text { white-space: pre-wrap; word-break: break-word; }
.chat-del { background: none; border: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.chat-compose { display: flex; gap: 8px; align-items: center; }
.chat-compose .input { flex: 1; }
/* Alerte familiale */
.chip-alerte { background: color-mix(in srgb, var(--danger) 22%, transparent); border-color: var(--danger); }
.alerte-stack { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 0; }
.alerte-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--danger) 18%, var(--card)); border: 2px solid var(--danger); animation: alerte-pulse 1.4s ease-in-out infinite; }
@keyframes alerte-pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 50%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.alerte-ic { font-size: 26px; }
.alerte-body { flex: 1; }
.alerte-txt { font-weight: 800; }
.alerte-from { font-size: 11px; color: var(--muted); }
/* Album photo */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.album-cell { padding: 0; border: none; background: var(--card2); border-radius: 12px; overflow: hidden; cursor: pointer; }
.album-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.album-cap { font-size: 11px; padding: 4px 6px; text-align: left; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-preview, .photo-view-img { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 12px; margin-bottom: 8px; }
.photo-view { text-align: center; }
.photo-view-cap { font-weight: 700; margin-bottom: 4px; }
.choix-actions { display: flex; flex-direction: column; gap: 8px; }
.verse-row { display: flex; gap: 8px; align-items: center; }
.dice-row { display: flex; gap: 12px; justify-content: center; margin: 12px 0; }
.die { background: var(--card2); border-radius: 12px; padding: 12px 16px; font-weight: 800; font-size: 18px; }
.duel-res { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- Saison */
.saison-hero { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 16px; }
.saison-emoji { font-size: 64px; }
.saison-nom { font-size: 24px; font-weight: 900; margin-top: 6px; }
.saison-badge { color: var(--accent); font-weight: 700; margin-top: 8px; }

/* ---------------------------------------------------------------- Modale */
/* z-index 500 : AU-DESSUS du minuteur plein écran (400) → le clavier PIN d'arrêt
   reste visible et cliquable même quand le compte à rebours occupe l'écran. */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); z-index: 500; display: flex; align-items: flex-end; justify-content: center; padding: 0; animation: fade .2s; }
.modal { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px 22px 0 0; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; padding: 18px 16px calc(18px + var(--safe-b)); animation: slideup .28s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 600px) { .overlay { align-items: center; } .modal { border-radius: 22px; } }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.modal-title { margin: 0 0 12px; font-size: 19px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 120px; }

/* ---------------------------------------------------------------- Toasts */
.toast-host { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--bg2); border: 1px solid var(--line); color: var(--text); padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); opacity: 0; transform: translateY(12px); transition: .3s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast-success { border-color: var(--ok); }
.toast-error { border-color: var(--danger); }

/* ---------------------------------------------------------------- Notif badge */
.notif-badge { position: absolute; top: 6px; right: 50%; transform: translateX(18px); background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-badge.inline { position: static; transform: none; }

/* ---------------------------------------------------------------- Ajouts dataset réel */
.topbar-right { display: flex; gap: 8px; align-items: center; }
.tache-steps-badge { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--card2); padding: 2px 8px; border-radius: 999px; }
.checklist { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.check-item { display: flex; align-items: flex-start; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 15px; cursor: pointer; }
.check-item input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--accent); margin-top: 1px; }
.regles-list { display: flex; flex-direction: column; gap: 8px; }
.regle-row { display: flex; align-items: center; gap: 10px; }
.regle-num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.regle-txt { flex: 1; font-size: 14px; }
.bullets { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.bullets li { font-size: 14px; line-height: 1.3; }
.banque { display: flex; flex-wrap: wrap; gap: 8px; }
.banque-chip { font-size: 12px; padding: 6px 10px; }
.list-row.ptask.done { opacity: .6; border-color: var(--ok); }

/* Connexion appareil */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 30px 18px; max-width: 460px; margin: 0 auto; }
.login-card { width: 100%; gap: 12px; }
.login-err { color: var(--danger); font-size: 13px; font-weight: 600; min-height: 16px; text-align: center; }

/* Agenda / emplois du temps */
.agenda-legend { display: flex; flex-wrap: wrap; gap: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.agenda-list { display: flex; flex-direction: column; gap: 8px; }
.agenda-item { display: flex; align-items: stretch; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--who); border-radius: 14px; padding: 10px 12px; }
.agenda-time { flex: 0 0 auto; font-weight: 800; font-size: 13px; color: var(--who); white-space: pre-line; display: flex; flex-direction: column; justify-content: center; min-width: 46px; }
.agenda-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.agenda-titre { font-weight: 700; }
.agenda-actions { display: flex; align-items: center; gap: 4px; }
.agenda-date { font-weight: 700; text-transform: capitalize; color: var(--muted); font-size: 14px; }
.gcal-tag { font-size: 9px; font-weight: 800; color: #fff; background: #4285F4; border-radius: 4px; padding: 1px 4px; margin-left: 6px; vertical-align: middle; }
.gcal-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; max-height: 50vh; overflow-y: auto; }
.gcal-row { display: flex; flex-direction: column; gap: 6px; }
.gcal-cal { font-weight: 700; font-size: 14px; }

/* Vue mois (grille calendrier) */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-month { font-weight: 800; font-size: 17px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-cell { position: relative; min-height: 66px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; cursor: pointer; color: var(--text); overflow: hidden; text-align: left; }
.cal-cell.empty { border: 0; background: transparent; cursor: default; }
.cal-cell.today { border-color: var(--accent); }
.cal-cell.sel { background: color-mix(in srgb, var(--accent) 22%, var(--card)); border-color: var(--accent); }
.cal-day-num { font-size: 13px; font-weight: 700; line-height: 1; }
.cal-cell.today .cal-day-num { color: var(--accent); }
/* barres d'événements (lignes) façon calendrier */
.cal-bars { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-bar { font-size: 9px; line-height: 1.25; font-weight: 600; color: #fff; background: var(--who); border-radius: 3px; padding: 1px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: 9px; font-weight: 800; color: var(--muted); padding-left: 2px; }
@media (max-width: 360px) { .cal-cell { min-height: 58px; border-radius: 8px; padding: 3px; } .cal-day-num { font-size: 11px; } .cal-bar { font-size: 8px; } }
@media (min-width: 700px) { .cal-grid { gap: 6px; } .cal-cell { min-height: 92px; } .cal-day-num { font-size: 15px; } .cal-bar { font-size: 11px; padding: 2px 5px; } }

/* éditeur de couleurs */
.color-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.color-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.color-name { font-weight: 700; }
.color-input { width: 52px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; padding: 2px; cursor: pointer; }

/* ---------------------------------------------------------------- Module Écrans */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ecran-card { border: 2px solid var(--line); background: var(--card); color: var(--text); border-radius: 18px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; min-height: 120px; justify-content: center; }
.ecran-card:active { transform: scale(.96); }
.ecran-card.done { opacity: .5; }
.ecran-ic { font-size: 40px; }
.ecran-lbl { font-weight: 800; }
.ecran-min { font-weight: 700; color: var(--accent); }
.ecran-note { font-size: 11px; color: var(--muted); text-align: center; }
.rep-card { border-color: var(--warn); }
.list-row.rep { border-color: var(--warn); }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tache-bac { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; }
.tache-bac.bac-noir { background: #111827; color: #fff; }
.tache-bac.bac-blanc { background: #f1f5f9; color: #111827; }

/* Minuteur plein écran */
.timer-overlay { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px; text-align: center; }
.timer-overlay .to-label { font-size: 22px; font-weight: 800; color: var(--muted); }
.timer-overlay .to-time { font-size: 88px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.timer-overlay .to-ended-msg { display: none; font-size: 30px; font-weight: 900; color: var(--danger); }
.timer-overlay.ended .to-time { color: var(--danger); animation: blink 1s steps(2) infinite; }
.timer-overlay.ended .to-ended-msg { display: block; }
.timer-overlay .to-stop { min-width: 240px; }
@keyframes blink { 50% { opacity: .3; } }

/* Ma progression (histogramme) */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px 6px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.chart-bar { width: 70%; min-height: 3px; background: linear-gradient(0deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); border-radius: 6px 6px 0 0; display: flex; align-items: flex-start; justify-content: center; transition: height .5s; }
.chart-val { font-size: 11px; font-weight: 800; color: #fff; margin-top: 2px; }
.chart-x { font-size: 10px; color: var(--muted); }

/* Signature au doigt */
.sign-wrap { border: 2px dashed var(--line); border-radius: 12px; background: var(--card2); touch-action: none; }
.sign-canvas { width: 100%; height: 180px; display: block; touch-action: none; cursor: crosshair; }
.sign-img { max-width: 220px; background: var(--card2); border: 1px solid var(--line); border-radius: 10px; margin: 6px 0; }
.chk-col { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.chk-col .chk { align-items: flex-start; }
.pa-row { display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- Loader */
.loader { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }
.spinner { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fatal { padding: 30px; text-align: center; }
.fatal pre { text-align: left; background: var(--card); padding: 12px; border-radius: 10px; overflow: auto; font-size: 12px; }

/* ---------------------------------------------------------------- Juice (confettis / onomatopées) */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.onomatopee { position: fixed; top: 32%; left: 50%; transform: translate(-50%,-50%); z-index: 301; font-weight: 900; font-size: 42px; pointer-events: none; animation: pop 1.2s ease forwards; text-align: center; }
@keyframes pop { 0% { transform: translate(-50%,-50%) scale(.3) rotate(-8deg); opacity: 0; } 25% { transform: translate(-50%,-50%) scale(1.2) rotate(4deg); opacity: 1; } 70% { transform: translate(-50%,-60%) scale(1) rotate(-2deg); opacity: 1; } 100% { transform: translate(-50%,-140%) scale(.9); opacity: 0; } }

/* ====================================================================
   RESPONSIVE — de l'écran couverture du Z Fold 7 (~340 px) aux tablettes
   et au Fold déplié (~880 px quasi-carré). Mobile-first : le style de base
   vise le téléphone ; on ajuste aux extrêmes.
   ==================================================================== */

/* --- Très étroit : écran de couverture Z Fold 7, petits iPhone (< 360px) --- */
@media (max-width: 360px) {
  .view { padding-left: 8px; padding-right: 8px; }
  .section-title h1 { font-size: 19px; }
  .tache-grid { gap: 8px; }
  .tache-btn { min-height: 104px; padding: 12px 6px; border-radius: 16px; }
  .tache-grid.big .tache-btn { min-height: 124px; }
  .tache-btn .tache-picto { font-size: 34px; }
  .tache-grid.big .tache-picto { font-size: 46px; }
  .big-solde { font-size: 50px; }
  .pin-grid { gap: 9px; max-width: 250px; }
  .pin-key { padding: 13px 0; font-size: 22px; }
  .navitem { font-size: 10px; }
  .navitem .navicon { font-size: 20px; }
  .acc-grid, .badge-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* --- Large : tablettes (portrait/paysage) et Z Fold 7 déplié (quasi-carré) --- */
@media (min-width: 700px) {
  .view { max-width: 900px; padding: 18px 20px calc(var(--nav-h) + var(--safe-b) + 20px); }
  .section-title h1 { font-size: 26px; }
  .tache-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tache-grid.big { grid-template-columns: repeat(4, 1fr); } /* Nino : 4 gros boutons alignés */
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: repeat(4, 1fr); }
  .acc-grid, .badge-grid { grid-template-columns: repeat(5, 1fr); }
  .retrait-children { grid-template-columns: repeat(4, 1fr); }
  .profile-grid { max-width: 620px; grid-template-columns: repeat(4, 1fr); }
  /* barre de navigation recentrée et non étirée sur grand écran */
  .navbar { justify-content: center; gap: 8px; }
  .navitem { flex: 0 1 130px; }
  .echelle { height: 420px; width: 110px; }
  .modal { max-width: 620px; }
}

/* --- Très large : grandes tablettes paysage (>= 1000px) --- */
@media (min-width: 1000px) {
  .view { max-width: 1040px; }
  .tache-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- Format quasi-carré (Fold déplié) : garde la jauge/échelle lisible --- */
@media (min-aspect-ratio: 3/4) and (min-width: 700px) {
  .echelle-wrap { align-items: center; }
}

/* --- Confort ergonomique sur écrans tactiles hauts (tablette tenue debout) --- */
@media (min-height: 900px) {
  :root { --nav-h: 76px; }
}

/* --- Badge « messages non lus » sur la pastille Chat --- */
.chip-chat { position: relative; }
.chat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1;
}
/* Messages automatiques (tâche faite) : un peu plus discrets, en italique */
.chat-msg.auto .chat-text { font-style: italic; opacity: .92; }

/* ====================================================================
   Ma journée — tuiles emoji & blocs rituels (refonte affichage enfants)
   ==================================================================== */

/* Tuile simple : emoji en grand */
.tuile-emoji .tache-picto { font-size: 46px; line-height: 1; }

/* --- Bloc rituel (grandes tuiles d'étapes, complétion automatique) --- */
.ritual-block {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s, box-shadow .35s, background .35s;
}
.ritual-banner { display: flex; align-items: center; gap: 10px; }
.ritual-banner .ritual-emoji { font-size: 30px; line-height: 1; }
.ritual-banner .ritual-title { font-weight: 800; font-size: 17px; flex: 1; }
.ritual-prog {
  font-weight: 800; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-size: 15px;
}
.ritual-foot { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; min-height: 8px; }
.ritual-foot.wait { color: var(--warn); }
.ritual-foot.ok { color: var(--ok); }

/* Grille de tuiles : 1 colonne mobile, 2 colonnes dès la tablette */
.step-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .step-tiles { grid-template-columns: 1fr 1fr; } }

.step-tile {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left;
  border: 2px solid var(--line); background: var(--card2); color: var(--text);
  border-radius: 16px; padding: 14px 16px; min-height: 68px; cursor: pointer;
  transition: transform .12s, border-color .2s, background .2s;
}
.step-tile:active { transform: scale(.97); }
.step-tile .step-emoji { font-size: 40px; line-height: 1; width: 48px; text-align: center; flex: 0 0 auto; }
.step-tile .step-lbl { font-weight: 700; font-size: 15px; line-height: 1.2; flex: 1; }
.step-tile .step-check {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: transparent; background: transparent; transition: all .2s;
}
/* Étape cochée : tuile verte + grosse gommette ✓ */
.step-tile.done { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 20%, var(--card2)); }
.step-tile.done .step-check { background: var(--ok); border-color: var(--ok); color: #fff; }
/* Animation de coche satisfaisante (scale + rebond) sur le check */
.step-tile.pop .step-check { animation: stamp .42s cubic-bezier(.2,1.6,.35,1); }
.step-tile.pop { animation: tilepop .3s ease; }
@keyframes stamp { 0% { transform: scale(0) rotate(-25deg); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes tilepop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* Rituel complété : bloc doré + halo + petite fusée qui frémit */
.ritual-block.complete {
  border-color: #f5c518;
  background: linear-gradient(135deg, color-mix(in srgb, #f5c518 18%, var(--card)), var(--card));
  box-shadow: 0 0 0 2px color-mix(in srgb, #f5c518 45%, transparent), 0 10px 30px color-mix(in srgb, #f5c518 25%, transparent);
  animation: goldpulse 1.1s ease;
}
.ritual-block.complete .ritual-emoji { animation: shiver .6s ease 2; display: inline-block; }
.ritual-block.validated { border-color: var(--ok); opacity: .92; }
@keyframes goldpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #f5c518 60%, transparent); } 100% { box-shadow: 0 0 0 2px color-mix(in srgb, #f5c518 45%, transparent), 0 10px 30px color-mix(in srgb, #f5c518 25%, transparent); } }
@keyframes shiver { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-3px) rotate(-8deg); } 75% { transform: translateY(-3px) rotate(8deg); } }

/* --- Sélecteur d'emoji (éditeur de tâche, Réglages) --- */
.emoji-box { display: flex; flex-direction: column; gap: 8px; }
.emoji-apercu { font-size: 40px; line-height: 1; text-align: center; }
.emoji-input { text-align: center; font-size: 20px; }
.emoji-palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emoji-pick { font-size: 22px; padding: 6px 0; border: 1px solid var(--line); background: var(--card2); border-radius: 10px; cursor: pointer; }
.emoji-pick:active { background: var(--accent); }
