/* Comptes : formulaires communs au téléphone et au bureau. */
.auth-panel {
  max-width: 440px;
  margin: auto;
  padding: 8px 0;
}
.auth-eyebrow {
  color: #6ed7d5;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.5px;
}
.auth-panel h2 {
  margin-top: 10px;
}
#auth-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
#auth-form label {
  display: grid;
  margin: 0;
  gap: 8px;
  font-size: 13px;
  color: #d9e2f7;
  text-align: left;
}
#auth-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  background: #0c1225;
  color: #edf2ff;
  border: 1px solid #344465;
  padding: 12px 14px;
  border-radius: 12px;
}
#auth-form input:focus {
  outline: 2px solid #55c9d5;
  outline-offset: 2px;
}
.auth-help {
  color: #a7b4ce;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.auth-error {
  color: #ffb0ad;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.auth-error:empty {
  display: none;
}
.auth-panel .primary {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.auth-link {
  border: 0;
  background: none;
  padding: 8px 0;
  color: #85d8ed;
  font-size: 13px;
}
.auth-email {
  overflow-wrap: anywhere;
  color: #c9d9ed;
}
.auth-storage {
  padding: 16px;
  border: 1px solid #2b3a59;
  border-radius: 14px;
  background: #111a30;
  margin: 20px 0;
  font-size: 13px;
}
.auth-storage p {
  color: #a7b4ce;
  line-height: 1.6;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .auth-panel {
    padding: 6px 0;
  }
}

.auth-panel button.reset-link {
  color: #ffbbbb;
  min-height: 44px;
  margin-top: 12px;
}
.auth-panel #reset-confirm,
.auth-panel #delete-submit {
  background: #46242d;
  border-color: #a75565;
}

.account-page,
.scanner-page {
  width: 100%;
  max-width: 600px;
  margin: 0;
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(125deg, #102c38, #091922);
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 15px;
}
.profile-identity > div {
  min-width: 0;
}
.profile-identity .nav-icon {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  background: #183d46;
  color: #71e6cf;
}
.profile-identity h2 {
  overflow-wrap: anywhere;
  margin: 0;
}
.profile-identity p {
  margin: 4px 0 0;
}
.account-page .auth-storage {
  border-color: var(--line);
  background: #0d222c;
}
.account-page .secondary {
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.account-settings {
  margin: 0 0 14px;
  border-block: 1px solid var(--line);
}
.account-settings summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 2px;
  font-size: 1rem;
}
.account-settings summary::-webkit-details-marker {
  display: none;
}
.account-settings summary > span {
  color: #71e6cf;
  font-size: 1.3rem;
}
.account-settings summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: auto 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.account-settings[open] summary::after {
  transform: rotate(225deg);
}
.settings-content .note {
  margin: 8px 0 14px;
}
.scanner-page {
  text-align: center;
  margin-inline: auto;
}
.scanner-viewfinder {
  display: grid;
  place-items: center;
  min-height: clamp(110px, 18vh, 170px);
  background: radial-gradient(ellipse, #12454d, #0a1e28 72%);
  border-radius: 12px;
  color: #63ead3;
}
.scanner-viewfinder svg {
  width: 60px;
  height: 60px;
  stroke-width: 1.15;
}
.scanner-page h2 {
  margin: 20px 0 8px;
}
.scanner-page p {
  margin: 0 auto 22px;
  max-width: 40ch;
  color: var(--muted);
  line-height: 1.55;
}
.scanner-page .primary {
  min-height: 46px;
}

/* Mon compte (refonte) : en-tête, chiffres clés, réglages en liste. */
.account-v2 {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 4vw, 28px);
  background:
    radial-gradient(circle at 100% 0%, #39ed981a, transparent 50%),
    linear-gradient(160deg, #102c38, #091922);
}
.account-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #148bff, #36ed99);
  box-shadow: 0 6px 18px #27dcb540;
  color: #06141c;
  font-size: 28px;
  font-weight: 800;
}
.account-who {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.account-who h2 {
  margin: 0;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.account-who .auth-email {
  margin: 0;
  color: #c9dde3;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.account-badge {
  justify-self: start;
  margin-top: 3px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.account-badge.ok {
  background: #27dcb526;
  color: #8be8c5;
}
.account-badge.todo {
  background: #f5c36b26;
  color: #f5c36b;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.account-stats > div {
  display: grid;
  gap: 2px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1d27;
  text-align: center;
}
.account-stats b {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.account-stats > div:last-child b {
  color: #9af1d5;
}
.account-stats small {
  color: var(--muted);
  font-size: 11px;
}
.account-sync {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.account-sync span {
  color: #71e6cf;
}
.account-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1d27;
}
.account-group > * + * {
  border-top: 1px solid var(--line);
}
.account-v2 .account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.account-v2 .account-row > span {
  width: 22px;
  color: #71e6cf;
  text-align: center;
}
.account-v2 .account-row > i {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
  transition: transform 0.15s;
}
.account-v2 .account-settings {
  margin: 0;
  border: 0;
}
.account-v2 .account-settings summary::after {
  content: none;
}
.account-v2 .account-settings[open] summary > i {
  transform: rotate(90deg);
}
.account-v2 .settings-content {
  padding: 0 14px 14px;
}
.account-v2 .account-install[hidden] {
  display: none;
}
.account-v2 .account-install .note {
  margin: 0;
  padding: 0 14px 12px;
}
.account-v2 .account-logout {
  margin: 4px 0 0;
}
.account-danger {
  padding-top: 6px;
  border-top: 1px solid #3a2a40;
  text-align: center;
}
.account-v2 .reset-link {
  min-height: 40px;
  margin: 0;
  color: #ff9fb0;
  font-size: 13px;
}
.account-v2 .auth-error:empty {
  display: none;
}

/* Suppression du compte */
.account-danger {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
}
.delete-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  color: #e9f0f5;
  font-size: 14px;
}
.delete-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
}
.auth-panel #delete-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Profil, amis et confidentialité (dist/js/core/profile.js). */
.account-avatar-button {
  flex: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
}
.account-avatar.card-avatar {
  position: relative;
  overflow: hidden;
  background: #0b1d27;
  box-shadow:
    0 0 0 2px #27dcb5,
    0 6px 18px #27dcb540;
}
/* L'illustration de la carte, centrée dans le rond. */
.card-avatar img {
  position: absolute;
  top: -18%;
  left: -30%;
  width: 160%;
}
.account-avatar.big {
  width: 72px;
  height: 72px;
}
.account-handle {
  margin: 0;
  color: #9af1d5;
  font-size: 15px;
  font-weight: 700;
}
.account-handle-cta {
  justify-self: start;
  padding: 4px 10px;
  border: 1px dashed #27dcb580;
  border-radius: 999px;
  background: none;
  color: #a6f5e2;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.account-section {
  margin: 8px 0 -6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-v2 .account-row-text {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
  padding: 9px 0;
  color: inherit;
  text-align: left;
}
.account-v2 .account-row > .account-row-text {
  width: auto;
  color: inherit;
  text-align: left;
}
.account-v2 .account-who {
  flex: 1;
  justify-items: start;
  text-align: left;
}
.account-row-text small {
  color: var(--muted);
  font-size: 12px;
}
.account-row-text .auth-email {
  overflow-wrap: anywhere;
}
.account-row-text .account-badge {
  margin: 2px 0 0;
  padding: 0;
  background: none;
}
.account-v2 .account-row.static {
  cursor: default;
}
.account-v2 .account-row:disabled {
  opacity: 0.6;
  cursor: default;
}
.account-v2 .account-row.soon {
  cursor: default;
}
.account-v2 .account-row.soon > span:first-child {
  filter: grayscale(0.4);
}
.account-row.soon em {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f5c36b26;
  color: #f5c36b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

/* Fenêtres « Modifier mon profil » et « Confidentialité ». */
.profile-form,
.privacy-form {
  display: grid;
  gap: 8px;
}
.profile-form .note {
  margin: 0;
  font-size: 12px;
}
.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, #10273a, #0a1028);
}
.profile-preview > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.profile-preview b {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-preview small {
  color: #9af1d5;
  font-weight: 700;
}
.handle-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #07131b;
}
.handle-field span {
  padding-left: 12px;
  color: #9af1d5;
  font-weight: 800;
}
.profile-form .handle-field input {
  flex: 1;
  min-width: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background: none;
  box-shadow: none;
}
.handle-field:focus-within {
  outline: 2px solid #55c9d5;
  outline-offset: 2px;
}
.avatar-picker {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}
.avatar-picker legend {
  margin-bottom: 6px;
  font-weight: 700;
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 56px);
  grid-auto-rows: 56px;
  justify-content: space-between;
  gap: 10px 8px;
  max-height: 260px;
  padding: 2px;
  overflow-y: auto;
}
.avatar-choice {
  position: relative;
  width: 56px;
  height: 56px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 50%;
  background: #0b1d27;
}
.avatar-choice img {
  pointer-events: none;
  position: absolute;
  top: -18%;
  left: -30%;
  width: 160%;
}
.avatar-choice.initial {
  background: linear-gradient(135deg, #148bff, #36ed99);
  color: #06141c;
  font-size: 22px;
  font-weight: 800;
}
.avatar-choice[aria-pressed="true"] {
  border-color: #27dcb5;
  box-shadow: 0 0 0 3px #27dcb540;
}
.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}
.profile-actions button {
  margin: 0;
}
.privacy-soon {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5c36b1a;
  color: #f8dca4;
  font-size: 13px;
}
.privacy-options {
  display: grid;
  gap: 8px;
}
.privacy-option,
.privacy-value {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1d27;
  cursor: pointer;
}
.privacy-option:has(input:checked) {
  border-color: #27dcb5;
  background: #27dcb514;
}
.privacy-form .privacy-option input,
.privacy-form .privacy-value input {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #27dcb5;
}
.privacy-option span,
.privacy-value span {
  display: grid;
  gap: 2px;
}
.privacy-option small,
.privacy-value small {
  color: var(--muted);
  font-size: 12px;
}

/* Amis (dist/js/core/friends.js). */
.account-row .friends-badge {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ff5f8a;
  color: white;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.account-avatar.small {
  width: 44px;
  height: 44px;
  font-size: 18px;
  box-shadow: none;
}
.account-avatar.card-avatar.small {
  box-shadow: 0 0 0 2px #27dcb5;
}
.friends-page {
  display: grid;
  gap: 12px;
}
.friends-add,
.friends-need-handle {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #29d9bd40;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, #39ed981a, transparent 55%),
    linear-gradient(135deg, #12304a, #0a1028);
}
.friends-add label {
  font-size: 17px;
  font-weight: 800;
}
.friends-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.friends-add .handle-field input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 0 12px 0 4px;
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.friends-add .primary {
  min-height: 48px;
  margin: 0;
  padding: 0 18px;
}
.friends-add .note,
.friends-need-handle p {
  margin: 0;
  font-size: 12px;
}
.friends-need-handle p {
  color: #c9dde3;
  font-size: 14px;
}
.friends-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  min-height: 44px;
  margin-top: 4px;
  border: 1px dashed #27dcb580;
  border-radius: 12px;
  background: none;
  color: #a6f5e2;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.friends-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 18px;
}
.friends-title small {
  color: var(--muted);
  font-size: 13px;
}
.friends-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, #10273a, #0a1028);
}
.friends-list.incoming .friend-row {
  border-color: #ff5f8a66;
}
.friend-name {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}
.friend-name b,
.friend-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friend-name small {
  color: #9af1d5;
  font-size: 13px;
  font-weight: 700;
}
.friend-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}
.friend-actions button {
  min-height: 38px;
  margin: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.friend-accept {
  padding: 0 14px;
  border: 0;
  background: linear-gradient(110deg, #168dff, #39ed98);
  color: #031b25;
}
.friend-cancel {
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #0b1d27;
  color: #c9dde3;
}
/* Défier un ami en duel (⚔️) et rubrique « Défis » (core/duel-invites.js). */
.friend-duel {
  width: 38px;
  padding: 0;
  border: 1px solid #ffd34d66;
  background: #2b2410;
  font-size: 17px;
}
.friends-list.duels .friend-row {
  border-color: #ffd34d66;
}
.duel-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2b2410;
  font-size: 17px;
}
.friend-more {
  width: 38px;
  padding: 0;
  border: 1px solid var(--line);
  background: #0b1d27;
  color: #c9dde3;
  font-size: 18px;
}
.friend-wait {
  color: var(--muted);
  font-size: 12px;
}
.friends-empty {
  margin: 0;
}
.friends-soon {
  margin: 0;
  font-size: 12px;
}
.friends-blocked {
  margin-top: 10px;
  color: var(--muted);
}
.friends-blocked summary {
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
}
.friend-options {
  display: grid;
  gap: 10px;
}
.friend-options .note {
  margin: 0;
  font-size: 12px;
}
.friend-options button {
  margin: 0;
}
.friend-options .friend-block,
.friend-options .confirm {
  border-color: #a75565;
  color: #ffd2da;
}
.friend-options .confirm {
  background: #7a2e3d;
  color: white;
}

/* Collection d'un ami (dist/js/core/friend-collection.js). */
.friend-page {
  display: grid;
  gap: 12px;
}
.friend-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #29d9bd40;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, #39ed981a, transparent 55%),
    linear-gradient(135deg, #12304a, #0a1028);
}
.friend-hero > div {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
.friend-hero h2 {
  margin: 0;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.friend-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.friend-stats > div {
  display: grid;
  gap: 2px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b1d27;
  text-align: center;
}
.friend-stats b {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.friend-stats > div:last-child b {
  color: #9af1d5;
}
.friend-stats small {
  color: var(--muted);
  font-size: 11px;
}
.friend-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #ffffff0d;
}
.friend-tabs button {
  min-height: 38px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.friend-tabs button[aria-selected="true"] {
  background: #27dcb526;
  color: #a6f5e2;
}
.friend-section {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 17px;
}
.friend-section small {
  color: var(--muted);
  font-size: 13px;
}
.friend-section + .note {
  margin: 2px 0 8px;
  font-size: 12px;
}
.friend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px 10px;
  margin: 6px 0 10px;
}
.friend-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.friend-card .cardart {
  border-radius: 6px;
  box-shadow: 0 4px 12px #0008;
}
.friend-card .missing-art small {
  display: none;
}
.friend-card b {
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friend-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.friend-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  max-width: 94%;
  overflow: hidden;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0b1a28e6;
  color: #e3ecf1;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}
.friend-card.mine .cardart {
  opacity: 0.75;
}
.friend-empty {
  margin: 4px 0 8px;
}
.friend-binders {
  display: grid;
  gap: 8px;
}
.friend-binder {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, #10273a, #0a1028);
  color: inherit;
  font: inherit;
  text-align: left;
}
.friend-binder-icon {
  font-size: 22px;
}
.friend-readonly {
  margin: 8px 0 0;
  font-size: 12px;
}

/* Compte « social » : mon profil + engrenage, puis les amis. */
.account-social {
  display: grid;
  gap: 14px;
}
.account-social .account-hero {
  position: relative;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #29d9bd40;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, #39ed981a, transparent 55%),
    linear-gradient(135deg, #12304a, #0a1028);
}
.account-social .account-who {
  flex: 1;
  justify-items: start;
  padding-right: 44px;
  text-align: left;
}
.account-social .account-avatar-button {
  align-self: center;
}
.account-gear {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: #0b1a28cc;
  color: #cfe6ee;
  transition: transform 0.4s;
}
.account-gear svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-gear:active {
  transform: rotate(60deg);
}
.account-gear-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid #0b1a28;
  border-radius: 50%;
  background: #f5c36b;
}
.account-privacy-chip {
  margin: 4px 0 0;
  padding: 4px 10px;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  background: #ffffff0d;
  color: #c9dde3;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.account-privacy-chip.open {
  border-color: #27dcb566;
  background: #27dcb51a;
  color: #a6f5e2;
}
.account-social .account-stats > div:nth-child(2) b {
  color: #ffb3cf;
}
.account-social .friends-title:first-of-type {
  margin-top: 4px;
}
/* Fenêtre « Réglages ». */
.account-settings-sheet {
  display: grid;
  gap: 12px;
  padding: 4px 0 8px;
  background: none;
}
.account-settings-sheet h2 {
  margin: 4px 0 0;
}
.account-settings-sheet .account-section {
  margin: 6px 0 -4px;
}
.account-page.account-social {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.account-social .friends-add {
  margin-top: 6px;
}

/* Collection privée d'un ami. */
.friend-locked {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, #27dcb51a, transparent 60%),
    linear-gradient(160deg, #10273a, #0a1028);
  text-align: center;
}
.friend-locked h2 {
  margin: 6px 0 0;
  font-size: 22px;
}
.friend-locked > p {
  max-width: 320px;
  margin: 0;
  color: #c9dde3;
}
.friend-lock-art {
  position: relative;
  width: 150px;
  height: 120px;
}
.friend-lock-art i {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 66px;
  height: 92px;
  margin-left: -33px;
  border: 2px solid #27dcb555;
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, #ffffff08 0 6px, transparent 6px 12px),
    linear-gradient(150deg, #173a52, #0b1a2b);
  box-shadow: 0 8px 20px #0009;
}
.friend-lock-art i:nth-child(1) {
  transform: translateX(-34px) rotate(-14deg);
}
.friend-lock-art i:nth-child(3) {
  transform: translateX(34px) rotate(14deg);
}
.friend-lock-art span {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  background: #0b1a28;
  box-shadow:
    0 0 0 2px #27dcb5,
    0 0 24px #27dcb566;
  font-size: 22px;
}
.friend-lock-steps {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin: 6px 0 4px;
  padding: 12px 14px 12px 34px;
  border-radius: 14px;
  background: #ffffff0a;
  color: #e3ecf1;
  font-size: 14px;
  text-align: left;
}
.friend-locked .primary {
  width: 100%;
  max-width: 340px;
  margin: 4px 0 0;
}
.friend-locked .note {
  margin: 0;
  font-size: 12px;
}

/* Classeur d'un ami, page par page. */
.friend-binders {
  display: grid;
  gap: 8px;
}
.friend-binder-view {
  display: grid;
  gap: 12px;
}
.friend-binder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}
.friend-binder-head .back {
  margin: 0;
}
.friend-binder-head b {
  font-size: 17px;
}
.friend-binder-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, #0f2232, #0a1420);
  touch-action: pan-y;
}
.friend-slot {
  position: relative;
  display: block;
  aspect-ratio: 63 / 88;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: none;
}
.friend-slot .cardart {
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 3px 10px #0008;
}
.friend-slot .missing-art small {
  display: none;
}
.friend-slot.empty {
  border: 1.5px dashed #ffffff1f;
  background: #ffffff05;
}
.friend-slot.reserved .cardart {
  filter: grayscale(1);
  opacity: 0.35;
}
.friend-slot.reserved small {
  position: absolute;
  bottom: 6px;
  left: 50%;
  padding: 2px 6px;
  border-radius: 999px;
  background: #0b1a28e6;
  color: #c9dde3;
  font-size: 9px;
  font-weight: 800;
  transform: translateX(-50%);
}
.friend-slot-owned {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #27dcb5;
  color: #04201a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 2px 6px #0008;
}
.friend-binder-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #c9dde3;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.friend-binder-nav button {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0b1d27;
  color: #e3ecf1;
  font-size: 22px;
}
.friend-binder-nav button:disabled {
  opacity: 0.35;
}

/* « Choisis ton pseudo » (anciens comptes). */
.handle-ask p {
  margin: 0;
  color: #c9dde3;
}
.handle-ask .handle-field input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 0 12px 0 4px;
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 17px;
}

/* Notifications (core/push.js). */
#push-row[data-state="on"] small {
  color: #8be8c5;
}
#push-row[data-state="denied"] small,
#push-row[data-state="install-ios"] small {
  color: #f5c36b;
}
.push-settings {
  display: grid;
  gap: 12px;
}
.push-settings p {
  margin: 0;
  color: #c9dde3;
  line-height: 1.5;
}
.push-settings .push-state {
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff0d;
  color: #e3ecf1;
  font-size: 14px;
  font-weight: 700;
}
.push-settings .push-state.on {
  background: #27dcb51f;
  color: #8be8c5;
}
.push-settings button {
  margin: 0;
}
