/* Feature account: pantalla de inicio, aviso al guardar y botón de la cuenta. Lo base viene de kit.css. */

/* --- Pantalla de inicio (antes del juego) --------------------------------------- */
.account-start {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  border: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 28%, rgba(255, 140, 50, .12), transparent 70%),
    var(--grain) 0 0 / 6px 6px,
    var(--bg);
  color: var(--text);
  overflow: auto;
  transition: opacity .22s var(--ease);
}
.account-start[open] { display: grid; place-items: center; }
.account-start::backdrop { background: var(--bg); }
.account-start.leaving { opacity: 0; }

.account-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(400px, 100%);
  text-align: center;
  animation: dlg-in .35s var(--ease);
}
.account-card .logo { margin: 8px 0 18px; transform: scale(2); }
.account-card h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: .01em; }
.account-lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.account-perks { display: grid; gap: 9px; margin: 6px 0; padding: 0; list-style: none; text-align: left; }
.account-perks li { display: flex; align-items: center; gap: 10px; }
.account-perks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--ember); box-shadow: 0 0 8px rgba(255, 140, 50, .6); }

.account-btns { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; }
.account-btns button { width: 100%; height: 46px; font-size: 15px; }
.account-later { border-color: var(--line-strong); background: transparent; color: var(--muted); }
@media (hover: hover) { .account-later:hover:not(:disabled) { color: var(--text); } }
.account-note { margin: 4px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.45; }

/* --- Aviso al guardar sin sesión -------------------------------------------------- */
.kit-dialog.account-gate { width: min(440px, 96vw); }
.account-gate-text { margin: 0 0 10px; line-height: 1.5; }

/* --- Botón de la esquina ---------------------------------------------------------------- */
.account-avatar, .account-initial { width: 26px; height: 26px; border-radius: 50%; }
.account-avatar { display: block; object-fit: cover; }
.account-initial {
  display: grid;
  place-items: center;
  border: 1px solid var(--ember-line);
  background: var(--ember-soft);
  color: var(--ember);
  font-size: 12px;
  font-weight: 800;
}
.account-menu .kit-menu-head { max-width: 260px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
