/* The account page: the games page's colours (../index.html), no inline styles (CSP style-src 'self').
   Since 2026-11-30 The Hopeful Commoner's ink, greys and pink, and its two glows (the founder: "the
   play page feels like a different website"). */
:root {
  --bg: #0b0a12; --panel: #14101f; --panel-2: #1d1830; --line: #2a2638;
  --ink: #ece9f3; --muted: #a7a1ba; --accent: #f472b6; --accent-2: #f9a8d4; --bad: #fca5a5;
  color-scheme: dark;
}
body::before, body::after { content: ""; position: fixed; border-radius: 50%; filter: blur(90px);
  opacity: .55; pointer-events: none; z-index: -1; }
body::before { width: 60vw; height: 60vw; left: -20vw; top: -25vw; background: #2a1440; }
body::after { width: 55vw; height: 55vw; right: -20vw; bottom: -25vw; background: #0e2a33; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* a styled button's display must not override hidden (test 11-21) */
html { margin: 0; background: var(--bg); }
body { margin: 0; color: var(--ink); }   /* no background of its own, so the glows show through */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.45; font-size: 1rem;
  padding: calc(env(safe-area-inset-top) + 20px) 16px calc(env(safe-area-inset-bottom) + 28px);
}
.wrap { max-width: 560px; margin: 0 auto; }
.back { color: var(--muted); text-decoration: none; font-size: 0.9375rem; display: inline-block; padding: 6px 0; }
h1 { font-family: ui-serif, "New York", Georgia, serif; font-weight: 600; font-size: clamp(30px, 8vw, 40px); margin: 8px 0 6px; }
h2 { margin: 0 0 10px; font-size: 1.125rem; }
.lede { color: var(--muted); margin: 0 0 16px; }
.lede b { color: var(--ink); overflow-wrap: anywhere; }
.status { min-height: 0; margin: 0 0 12px; color: var(--accent); }
.status:empty { display: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0 0 14px; }
.card.danger { border-color: #5a2f2b; }
label { display: block; margin: 0 0 12px; font-weight: 600; font-size: 0.9375rem; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; }
label.check input { width: 20px; height: 20px; min-height: 0; padding: 0; border: 0; background: none; margin: 1px 0 0; flex: 0 0 auto; }
input, select {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; font-weight: 400; font-size: 1rem;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; min-height: 48px;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw { display: flex; gap: 8px; align-items: stretch; }
.pw input { flex: 1; }
.pw .show { margin-top: 6px; flex: none; min-width: 64px; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 600; font-size: 0.9375rem; padding: 0; margin-bottom: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.hint { color: var(--muted); font-size: 0.875rem; margin: -4px 0 12px; }
.hint a, footer a { color: var(--ink); }
.err { color: var(--bad); margin: 0 0 10px; font-size: 0.9375rem; }
.err:empty { display: none; }
button, a.secondary {
  font: inherit; font-weight: 650; border-radius: 12px; min-height: 48px; padding: 10px 16px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
button:disabled { opacity: 0.6; cursor: default; }
button.primary { width: 100%; border: 0; color: #1a0b14; background: linear-gradient(155deg, var(--accent), var(--accent-2)); }
button.secondary, a.secondary { width: 100%; }
.row button.secondary { width: auto; }
button.danger { width: 100%; background: #3a1f1c; border-color: #6b3630; color: #ffd9d3; }
button.link { background: none; border: 0; color: var(--muted); text-decoration: underline; min-height: 44px; width: 100%; margin-top: 4px; }
button.link.inline { width: auto; display: inline; min-height: 0; padding: 0; margin: 0; }
.stats { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 8px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.recent { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.recent:empty { display: none; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 4px; }
.card a { color: var(--ink); }
.register dt { font-weight: 650; margin-top: 10px; }
.register dd { margin: 2px 0 0; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875em; color: var(--accent); }
footer { color: var(--muted); font-size: 0.875rem; margin-top: 24px; }
/* "Continue with Google" (11-30): a divider, then the button */
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.875rem; margin: 14px 0 10px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
button.google { margin-top: 0; }
/* Delete account (12-01, the founder: "this part of the page is too jumbled together and the
   button are too large and don't look like buttons"): buttons as wide as their words, a solid red
   with a raised edge, and the Google way set apart below a rule instead of tucked under the button. */
.card.danger button.danger {
  width: auto; min-height: 44px; padding: 9px 22px; margin-top: 2px; font-size: 0.9375rem;
  background: #9f1239; border: 1px solid #e11d48; color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 8px rgba(0, 0, 0, 0.35);
}
.card.danger button.danger:hover { background: #be123c; }
.card.danger button.danger:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.card.danger label { margin-bottom: 14px; }
#delGoogleHint { margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
