/* ══════════ GUESSINO · MON COMPTE (fiche avec pseudo, QR code et amis) ══════════ */
.compte-btn { width: 44px; height: 44px; margin-left: auto; }
.compte-btn .cpt-cerveau { height: auto; }
.cpt-cerveau { display: block; height: auto; flex: none; }
.fiche-compte { rotate: -.6deg; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding-top: 22px; }
.fiche-compte .scotch { display: none; }
.cpt-moi { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cpt-champs { flex: 1; min-width: 0; display: grid; gap: 8px; }
.cpt-champs .champ { width: 100%; height: 46px; font-weight: 700; }
.cpt-couleurs { display: flex; gap: 6px; }
.cpt-couleur {
  width: 30px; height: 30px; border-radius: 50%; background: var(--c);
  border: 2px solid var(--encre); box-shadow: 0 2px 0 var(--ombre);
  transition: scale 300ms var(--ressort, ease-out);
}
.cpt-couleur[aria-checked="true"] { scale: 1.2; outline: 3px solid var(--jaune); outline-offset: 2px; }
.cpt-couleur:active { scale: .88; }

.cpt-qr {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center;
  margin-top: 16px; padding: 10px;
  background: var(--jaune); color: var(--encre);
  border: 3px solid var(--blanc); border-radius: 16px; box-shadow: 0 4px 0 var(--tranche-jaune, var(--ombre));
  rotate: 1deg;
}
.cpt-qr-code { background: #fff; border-radius: 10px; border: 2px solid var(--encre); overflow: hidden; line-height: 0; }
.cpt-qr-code svg { display: block; width: 100%; height: auto; }
.cpt-qr-texte { margin: 0; font: 600 14px/1.35 var(--police-texte); }
.cpt-qr-texte b { display: block; margin-bottom: 3px; font: italic 900 18px/1.1 var(--police-titre); }
.cpt-partager { width: 100%; margin-top: 12px; }

.cpt-sous-titre { margin: 18px 0 8px; font: italic 900 19px/1.1 var(--police-titre); }
.cpt-amis { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cpt-ami {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--blanc); color: var(--encre); border-radius: 14px; box-shadow: 0 3px 0 var(--ombre);
}
.cpt-ami:nth-child(odd) { rotate: -.6deg; } .cpt-ami:nth-child(even) { rotate: .6deg; }
.cpt-ami-texte { flex: 1; min-width: 0; display: grid; }
.cpt-ami-texte b { font: 700 16px/1.2 var(--police-texte); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpt-ami-texte span { font: 600 13px/1.25 var(--police-texte); opacity: .75; }
.cpt-ami-pts { font: italic 900 20px/1 var(--police-titre); text-align: right; }
.cpt-ami-pts small { display: block; font: 700 11px/1 var(--police-texte); }
.cpt-oter { width: 28px; height: 28px; border-radius: 50%; font: 700 18px/1 var(--police-texte); opacity: .55; }
.cpt-vide { padding: 10px 12px; border: 2px dashed currentColor; border-radius: 14px; font: 600 14px/1.35 var(--police-texte); opacity: .8; }
.cpt-note { margin: 14px 0 12px; font: 600 13px/1.35 var(--police-texte); opacity: .75; }
.cpt-defi {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px;
  background: var(--rose); color: var(--encre); border: 3px solid var(--blanc); border-radius: 16px;
  box-shadow: 0 4px 0 var(--tranche-rose, var(--ombre)); rotate: -1deg;
}
.cpt-defi[hidden] { display: none; }
.cpt-defi p { margin: 0; font: 600 14px/1.3 var(--police-texte); }
.cpt-defi b { display: block; font: italic 900 18px/1.1 var(--police-titre); }
.fiche-compte .bouton-suivant { margin-bottom: 0; color: inherit; border-color: currentColor; }
@media (max-width: 360px) { .cpt-qr { grid-template-columns: 110px minmax(0, 1fr); } }

/* Le bandeau du compte sur l'accueil : bien visible, sous la date. */
.cpt-bandeau {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 4px; padding: 8px 12px 8px 8px;
  background: var(--blanc); color: var(--encre); text-align: left;
  border-radius: 16px; rotate: .6deg;
  --tranche: var(--tranche-blanc, var(--ombre)); --h: 5px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 var(--h) 0 var(--tranche), 0 calc(var(--h) + 3px) 0 var(--ombre);
  transition: translate 420ms var(--ressort, ease-out), scale 420ms var(--ressort, ease-out), box-shadow 140ms ease-out;
}
.cpt-bandeau:active { translate: 0 var(--h); box-shadow: 0 0 0 var(--tranche), 0 2px 0 var(--ombre); transition-duration: 70ms; }
.cpt-bandeau-texte { flex: 1; min-width: 0; display: grid; }
.cpt-bandeau-texte b { font: italic 900 18px/1.15 var(--police-titre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpt-bandeau-texte span { font: 600 14px/1.25 var(--police-texte); opacity: .8; }
.cpt-bandeau-action {
  flex: none; padding: 7px 10px; border-radius: 12px; background: var(--jaune); border: 2px solid var(--encre);
  font: italic 900 15px/1 var(--police-titre); white-space: nowrap;
}
.cpt-bandeau { display: none; }   /* Hugo préfère le petit cerveau en haut (14/11) : le bandeau est gardé en réserve */
/* Le petit cerveau en haut de l'accueil, avec « Mon compte » écrit dessous. */
.compte-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: auto; height: auto; min-width: 48px; min-height: 48px; padding: 0 2px; margin-left: auto; border-radius: 12px;
}
.compte-btn .cpt-cerveau { width: 38px !important; }
.compte-btn small { font: 700 11px/1.1 var(--police-texte); color: var(--texte); white-space: nowrap; }
.acc-haut { gap: 4px; }
@media (prefers-reduced-motion: reduce) { .cpt-bandeau { transition: none; } }

.cpt-garde { margin-top: 16px; padding: 10px 12px; border: 2px dashed currentColor; border-radius: 14px; }
.cpt-garde b { display: block; font: italic 900 17px/1.15 var(--police-titre); margin-bottom: 4px; }
.cpt-garde p { margin: 0; font: 600 14px/1.4 var(--police-texte); }

/* ── Le niveau du cerveau ── */
.cerveau-niveau { display: block; height: auto; flex: none; overflow: visible; }
.compte-btn .cerveau-niveau { width: 46px !important; margin-bottom: -4px; }
.cpt-niveau { margin: 0; font: 600 14px/1.2 var(--police-texte); }
.cpt-niveau b { font: italic 900 18px/1.1 var(--police-titre); margin-right: 4px; }
.cpt-barre { height: 10px; border-radius: 6px; background: rgba(21, 18, 46, .18); border: 2px solid currentColor; overflow: hidden; }
.cpt-barre span { display: block; height: 100%; width: calc(var(--part, 0) * 100%); min-width: 4px; background: var(--jaune); border-radius: 3px; }
.cpt-suite { margin: 0; font: 600 12.5px/1.3 var(--police-texte); opacity: .8; }
.cpt-couleur.verrou { display: grid; place-items: center; opacity: .4; font: 700 12px/1 var(--police-texte); color: var(--encre); filter: grayscale(.6); }
.sc-niveau { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--jaune); }
.sc-niveau-nom { margin: 0; padding: 6px 16px; background: var(--blanc); color: var(--encre); border-radius: 12px; font: italic 900 22px/1.1 var(--police-titre); rotate: -2deg; }

.cpt-lien { justify-self: start; padding: 4px 0; font: 700 14px/1.2 var(--police-texte); text-decoration: underline; text-underline-offset: 3px; color: inherit; }

/* Refonte (15/11) : le compte est une petite pastille de texte, le cerveau est en grand sur l'accueil. */
.compte-btn { flex-direction: row; min-width: 0; min-height: 34px; height: 34px; padding: 0 12px; border: 2px solid var(--trait); border-radius: 17px; }
.compte-btn .cerveau-niveau { display: none; }
.compte-btn small { font-size: 13px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.acc-heros { margin-top: -14px; }
