body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 3rem;
}
.page {
    max-width: 420px;
}
h1 {
    margin: 0 0 0.25rem;
}

/* Overrides the shared .brand/.brand-logo layout from theme.css (a
   left-aligned row, used by puzzle.html/leaderboard.html's page headers) —
   signin.html's brand isn't inside a .page-header, so it's free to use its
   own centered, larger presentation without affecting those other pages. */
.brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.brand-logo {
    height: 6.3rem;
}
.subtitle {
    text-align: center;
}

label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.9rem 0 0.35rem;
}
label:first-child { margin-top: 0; }

.code-input {
    letter-spacing: 0.5em;
    font-size: 1.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}
.toggle button {
    flex: 1;
    padding: 0.65rem 0.5rem;
    font-size: 0.9rem;
    background: transparent;
    color: var(--muted);
    border: none;
}
.toggle button.active {
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
}

.link-row {
    text-align: center;
    margin-top: 1.25rem;
}
.link-muted {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0.5rem;
}

.guest-row {
    text-align: center;
    margin-top: 1.75rem;
    opacity: 0.75;
}
.guest-row button {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0.5rem;
}

.masked {
    font-weight: 600;
    color: var(--text);
}
.helper-text {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}
