/* Statistics and Archive pages: shared layout. Loaded after style.css (in
   place of the inline <style> each page used to repeat), so these rules keep
   winning ties over style.css exactly as before. The home page doesn't load
   this file. */
html { height: 100%; }
/* body must grow with content (not clamp to one viewport) — the backdrop
   tint is painted on body, so a fixed 100% height would let the teal html
   show through below the fold as a stray colour band. */
body { min-height: 100%; height: auto; }
.container { min-height: 100vh; display: flex; flex-direction: column; }
#spa-content { flex: 1; }
/* Same side inset as the home page's #game-playing (22px on phones → 26px),
   so the labels line up with the Backdrop bar above them. */
.page-main { padding: 14px clamp(22px, 5.78vw, 26px) 20px clamp(22px, 5.78vw, 26px); box-sizing: border-box; }
/* Line the full-width header + backdrop bar up with the body's left inset
   — game-main's side padding plus page-main's 26px — so "References",
   "Today's Game" and the "Backdrop" bar all start on the same vertical
   line as the page's first section label. On the home page (and the
   archive) spa-fit.js also sets this inline once it has measured. */
@media (min-width: 1000px) {
    .game-header-brand,
    .game-header-meta-bar,
    .container > .bd-panel,
    .container > .footer {
        padding-left: calc(clamp(28px, 3vw, 64px) + 26px);
        padding-right: calc(clamp(28px, 3vw, 64px) + 26px);
    }
}

/* Statistics: "Your Username" card — an input pre-filled with the account's
   username and a Save button (statistics.js renderUsername). */
.sa-username-card:not(.sa-note) { padding: 12px var(--card-pad-x); }
.sa-username-row { display: flex; gap: 8px; align-items: center; }
.sa-username-input {
    flex: 1;
    min-width: 0;
    font-family: 'Crimson Pro', serif;
    font-size: 16px; /* >=16px stops iOS zooming the page on focus */
    padding: 6px 10px;
    border: 1px solid var(--ink-note);
    border-radius: 5px;
    background: #fff;
    color: #1A1A1A;
    outline: none;
}
.sa-username-input:focus { border-color: var(--teal-medium); }
.sa-username-hint {
    margin: 6px 0 0;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: 14px;
    color: #545454;
}
.container.bd-dark .sa-username-hint { color: rgba(255, 255, 255, 0.85); }
.sa-username-card { --card-panel: url("/static/images/clue-panels/blue.png?v=2"); }
