/* Sign in and sign up. Built on the join card: one narrow card, phone-first. */

.account-card form { margin: 0; }
.profile-card { max-width: 480px; margin-bottom: 18px; }
.profile-card h3 { margin: 0 0 8px; font-size: 17px; }
.profile-msg { min-height: 1.2em; margin: 4px 0 10px; font-size: 13.5px; }
.profile-msg[data-kind="ok"] { color: var(--bamboo); }
.profile-msg[data-kind="error"] { color: var(--cinnabar); }
.profile-stats span { white-space: nowrap; }
/* Sign out and delete: one under the other, the width of the cards above. */
.profile-foot { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.profile-foot .btn { width: 100%; }
.history { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.history th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--ink-3); padding: 0 6px 6px; }
.history td { padding: 9px 6px; border-top: 1px solid var(--paper-edge); vertical-align: top; }
.history th:first-child, .history td:first-child { padding-left: 0; white-space: nowrap; }
.history th:last-child, .history td:last-child { padding-right: 0; }
.history .num { text-align: right; white-space: nowrap; }
.history .pos { color: var(--bamboo); }
.history .neg { color: var(--cinnabar); }
.history-fan { color: var(--ink-3); }
.history-meta { font-size: 12.5px; color: var(--ink-3); }
.history-pending { font-size: 12px; color: var(--cinnabar); }
/* 16px, or a phone zooms in on the field when it is tapped. */
.account-card .field input { background: var(--paper); font-size: 16px; }
.field-hint { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-3); }
.account-card > .note { margin: 0 0 16px; font-size: 13.5px; }
.account-card > .account-foot { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.account-foot a { color: var(--felt); font-weight: 500; white-space: nowrap; }
.account-card > .account-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); text-align: center; }

.form-msg { margin: 0 0 12px; font-size: 14px; color: var(--cinnabar); }
.account-card > .spam-tip {
  margin: 0 0 16px; padding: 11px 13px;
  font-size: 13.5px; line-height: 1.45; color: var(--ink-2);
  background: #fbf3dd; border: 1px solid #ecdcae; border-radius: 10px;
}
.spam-tip b { color: var(--ink); font-weight: 500; }
.form-msg:empty { display: none; }
.form-msg[data-kind="ok"] { color: var(--bamboo); }

.or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--paper-edge); }

/* Google's button, to its guidelines: white, a neutral outline, the four-colour
   G, and the wording as written. */
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 44px; padding: 0 16px 0 12px;
  font: 500 15px/1 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #747775;
  border-radius: 22px;
  cursor: pointer;
}
.google-btn:hover:not([disabled]) { background: #f8faff; box-shadow: 0 1px 2px rgb(60 64 67 / 0.3); }
.google-btn[disabled] { cursor: wait; opacity: 0.6; }
.google-g { width: 18px; height: 18px; flex: none; }

/* The board, chosen once, at the first sign-in. */
.board-pick { margin: 0 0 16px; padding: 0; border: 0; }
.board-pick legend {
  padding: 0; margin-bottom: 5px;
  font-size: 13px; color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase;
}
.board-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.board-options label {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--paper-edge);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}
.board-options label:has(input:checked) { border-color: var(--bamboo); background: #eef7f1; }
.board-options input { width: 16px; height: 16px; margin: 0; accent-color: var(--felt); }

/* A phone: a little less padding, so the cards and the games table get the width. */
@media (max-width: 420px) {
  .account-card { margin-top: 18px; padding: 20px 18px; }
  .profile-card { margin-bottom: 14px; }
}

/* Deleting an account: which of the three steps this is, and the tick box. */
.account-card > .step { margin: 0 0 4px; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cinnabar); }
.account-card .check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.account-card .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--cinnabar); }
