/* Pagina account: stessa base grafica della pagina errore/privacy. */

.acc-card { width: 100%; max-width: 460px; }

.acc-view[hidden] { display: none !important; }

.acc-text, .acc-small, .acc-hint, .acc-label, .acc-check, .acc-msg, .acc-danger summary {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.acc-text  { font-size: 16px; line-height: 1.6; color: #e6dcec; margin-bottom: 18px; }
.acc-text strong { color: #ffe600; }
.acc-small { font-size: 13px; line-height: 1.55; color: #a99bb3; }
.acc-small a, .acc-check a { color: #00e5ff; }

.acc-google { display: flex; justify-content: center; min-height: 44px; margin: 6px 0 18px; }

.acc-msg { min-height: 0; font-size: 14px; margin-bottom: 10px; color: #ffe600; }
.acc-msg:empty { display: none; }
.acc-msg.is-error { color: #ff6b9a; }

.acc-form { text-align: left; margin-bottom: 18px; }
.acc-label { display: block; font-size: 13px; color: #cfc3d6; margin-bottom: 6px; letter-spacing: .5px; }
.acc-hint  { font-size: 12px; color: #8f8199; margin: 6px 0 14px; }

.acc-input {
  width: 100%;
  font: 16px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(0, 229, 255, 0.35);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
}
.acc-input:focus { border-color: #00e5ff; box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18); }

.acc-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.45; color: #e6dcec;
  margin-bottom: 10px; cursor: pointer;
}
.acc-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #ff2fb0; flex-shrink: 0; }

.acc-btn { border: 0; cursor: pointer; margin-top: 10px; }
.acc-form .acc-btn { width: 100%; }
.acc-btn:disabled { opacity: .55; cursor: wait; }

.acc-row { display: flex; gap: 8px; }
.acc-row .acc-input { flex: 1; min-width: 0; }

.acc-btn-small {
  font-family: 'Bangers', cursive; font-size: 16px; letter-spacing: 1px;
  color: #0a0710; background: #00e5ff;
  border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer;
}
.acc-btn-danger { background: #ff4d7d; color: #fff; }

.acc-actions { margin-bottom: 22px; }
.acc-return { display: block; margin: 0 0 18px; text-decoration: none; }
.acc-return[hidden] { display: none; }

.acc-danger { text-align: left; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.acc-danger summary { cursor: pointer; font-size: 13px; color: #ff8fb0; margin-bottom: 10px; }
.acc-danger .acc-small { margin-bottom: 10px; }

.acc-back { margin-top: 26px; }
.acc-back a {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px; color: #cfc3d6; text-decoration: none;
}
.acc-back a:hover { color: #fff; }

/* nickname definitivo + pulsante "Modifica profilo" */
.acc-warn { color: #ffe600; font-weight: 600; }
.acc-nick-note { margin: -8px 0 18px; }
.acc-actions { display: flex; flex-direction: column; gap: 10px; }
.acc-actions .acc-btn { margin-top: 0; }
.acc-btn-link { display: block; text-decoration: none; text-align: center; }

/* pagina profilo.html */
.prof-box {
  text-align: left; margin-bottom: 14px; padding: 12px 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(0,229,255,.25); border-radius: 12px;
}
.prof-box .acc-label { margin-bottom: 4px; }
.prof-nick { font-family: 'Bangers', cursive; font-size: 28px; letter-spacing: 1px; color: #ffe600; margin: 0 0 2px; word-break: break-all; }
.prof-value { margin: 0; }
.prof-soon { margin-top: 18px; }

/* avatar (profilo.html) */
.prof-avatar-wrap { display: flex; justify-content: center; margin: 4px 0 18px; }
.prof-avatar {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 4px #0a0710, 0 0 0 7px #00e5ff, 0 0 28px rgba(0,229,255,.45);
}
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 6px; }
.avatar-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px 6px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 2px solid transparent; color: #cfc3d6;
  transition: border-color .15s, background .15s, transform .15s;
}
.avatar-opt img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.avatar-opt-name { font: 12px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.2; text-align: center; }
.avatar-opt:hover { background: rgba(0,229,255,.08); transform: translateY(-2px); }
.avatar-opt:focus-visible { outline: 3px solid #ffe600; outline-offset: 2px; }
.avatar-opt[aria-checked="true"] { border-color: #00e5ff; background: rgba(0,229,255,.12); color: #fff; }
.avatar-opt--owner .avatar-opt-name { color: #ffe600; }
#prof-msg { margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .avatar-opt { transition: none; } .avatar-opt:hover { transform: none; } }
