/* Account settings v247. This stylesheet is scoped to account dialogs. */
.account-dialog {
  box-sizing: border-box;
  border: 1px solid #dee6f4;
  border-radius: 24px;
  padding: 0;
  width: min(95vw, 520px);
  max-height: min(90dvh, 880px);
  box-shadow: 0 25px 70px rgba(14,34,75,.26);
  background: #fff;
  color: var(--text);
}
.account-dialog::backdrop { background: rgba(15,30,62,.5); backdrop-filter: blur(3px); }
.account-dialog .account-panel {
  padding: 22px;
  max-height: min(90dvh, 880px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.account-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.account-panel-heading h2 { margin: 5px 0 0; font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.2; }
.account-eyebrow { display: block; color: #5e749c; letter-spacing: .12em; font-weight: 850; font-size: 10px; }
.account-dialog button.account-close { border-radius: 12px; padding: 7px 12px; font-weight: 800; flex-shrink: 0; }
.account-section { border-top: 1px solid var(--line); padding: 17px 0; }
.account-section h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 850; }
.account-dialog label { display: block; font-size: .84rem; font-weight: 750; color: #354562; margin: 12px 0 5px; }
.account-dialog input {
  display: block; width: 100%; min-width: 0;
  margin-top: 0; padding: 12px;
  font-size: 16px; border: 1px solid #cdd9e9; background: #fff; border-radius: 12px;
}
.account-dialog input[readonly] { background: #f3f6fb; color: #5a6b85; }
.account-dialog .account-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; width: 100%; margin-top: 15px;
  background: #315cdd; color: #fff; border-radius: 12px; font-weight: 800;
}
.account-dialog button:disabled { opacity: .55; cursor: not-allowed; }
.account-hint { font-size: .84rem; line-height: 1.45; color: var(--muted); margin: 4px 0 12px; }
.account-details { border: 1px solid #dce5f2; border-radius: 14px; background: #f7f9fd; }
.account-details summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 13px; font-weight: 760; font-size: .9rem; color: #28406c; list-style: none; }
.account-details summary::-webkit-details-marker { display: none; }
.account-details[open] summary { border-bottom: 1px solid #dce5f2; }
.account-details[open] summary span { transform: rotate(90deg); }
.account-details-content { padding: 10px 13px 15px; background: #fff; border-radius: 0 0 14px 14px; }
.account-text-button { width: 100%; text-align: center; margin-top: 10px; font-size: .86rem; }
.account-footer { padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.account-footer button { min-height: 42px; border-radius: 12px; }
.account-feedback { display: block; white-space: normal; padding: 11px 12px; border: 1px solid #bfdace; background: #effaf4; color: #176142; border-radius: 12px; font-size: .84rem; line-height: 1.45; margin: 0 0 13px; }
.account-feedback.account-error { border-color: #f0b6c4; background: #fff1f3; color: #9d2341; }
.account-feedback.account-ok { border-color: #bfdace; background: #effaf4; color: #176142; }
.account-feedback.hidden { display: none!important; }
#screenHome .auth-forgot-btn { flex: 0 0 auto; font-size: .85rem; color: #3152bd; background: transparent; padding-inline: 8px; }
@media (max-width: 580px) {
  .account-dialog { width: calc(100vw - 24px); border-radius: 20px; }
  .account-dialog .account-panel { padding: 17px; }
  .account-panel-heading h2 { font-size: 1.25rem; }
  .account-dialog .account-primary { min-height: 46px; }
  #screenHome .auth-forgot-btn { width: 100%; text-align: left; justify-content: flex-start; }
}

/* Push notifications live inside Profile & Security, never on the home screen. */
.account-dialog .push-preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.account-dialog .push-preference-info { flex: 1 1 auto; min-width: 0; }
.account-dialog .push-preference-info strong { font-size: .91rem; color: #233552; }
.account-dialog .push-preference-info p {
  margin: 4px 0 0;
  font-size: .78rem;
  line-height: 1.35;
  color: #5c6f8e;
}
.account-dialog .push-preference-toggle {
  width: auto;
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: .83rem;
}
.account-dialog .push-preference-hint {
  margin: 8px 0 0;
  font-size: .75rem;
}
@media (max-width: 370px) {
  .account-dialog .push-preference-row { gap: 8px; }
  .account-dialog .push-preference-toggle { min-width: 92px; padding: 8px; }
}

/* Device-specific notification categories, no changes to gameplay layout. */
.account-dialog .push-category-settings{margin-top:12px;display:grid;gap:8px}
.account-dialog .push-category-settings[hidden]{display:none!important}
.account-dialog .push-category-settings label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #dce3ec;font-size:.88rem;line-height:1.3}
.account-dialog .push-category-settings input[type=checkbox]{appearance:auto;accent-color:#268557;width:22px;height:22px;min-width:22px;margin:0;flex:0 0 22px;cursor:pointer}
.account-dialog .push-category-settings button[data-tone-test]{justify-self:start;min-height:40px}
.account-dialog .push-category-settings .account-hint{margin:0}
