/* Starting5.org — original, text-first interface. */
:root {
    --ink: #191816;
    --muted: #6e6b64;
    --paper: #f7f5ef;
    --card: #fffefa;
    --line: #d9d5cc;
    --accent: #c94833;
    --accent-dark: #9f3325;
    --soft-accent: #f2d9d1;
    --green: #1d6b52;
    --shadow: 0 18px 45px rgba(34, 30, 23, .08);
    --radius: 20px;
}

* { box-sizing: border-box; }
.breadcrumbs { padding-top: 18px; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.suggestion[aria-selected="true"] { background: var(--soft-accent); outline: 2px solid var(--accent); outline-offset: -2px; }
[data-reset-time] { display: block; max-width: 240px; }
button:disabled { cursor: not-allowed; opacity: .6; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.035em; }
h1 { font-size: clamp(3.2rem, 9vw, 5.8rem); max-width: 850px; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
h3 { font-size: 1.25rem; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 10px 14px; background: var(--ink); color: white; z-index: 5; }
.skip-link:focus { top: 16px; }
.eyebrow { margin-bottom: 12px; font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: var(--accent); }
.muted, .lede, .article-lede, .footer-note { color: var(--muted); }
.site-header { border-bottom: 1px solid var(--line); background: rgba(247,245,239,.9); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 82px; }
.brand { display: inline-flex; flex-shrink: 0; white-space: nowrap; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; letter-spacing: -.08em; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: .88rem; font-weight: 700; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active { position: relative; }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; background: var(--accent); }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(80px, 12vw, 145px); }
.hero-lede { max-width: 630px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; }
.button-row, .article-cta, .score-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; border: 1px solid transparent; border-radius: 999px; padding: 12px 20px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: white; }
.button-primary:hover { background: var(--accent-dark); }
.button-quiet { border-color: var(--line); background: transparent; }
.button-quiet:hover { border-color: var(--ink); }
.button-dark { width: 100%; border: 0; background: var(--ink); color: white; border-radius: 12px; }
.button-dark:hover { background: #34312c; }
.hero-card { min-height: 410px; padding: 28px; border: 1px solid var(--ink); background: var(--card); box-shadow: var(--shadow); transform: rotate(2.4deg); }
.card-topline, .position-topline, .game-intro, .proof-strip, .legal-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-topline { padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: .65rem; }
.live-dot::before { content: ""; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.card-brand { margin: 54px 0 24px; color: var(--accent-dark); font-size: 1.22rem; font-weight: 900; letter-spacing: .14em; }
.card-brand::before { display: block; width: 42px; height: 4px; margin-bottom: 14px; background: var(--accent); content: ""; }
.hero-card h2 { max-width: 430px; margin-bottom: 10px; font-size: clamp(2.15rem, 4vw, 3.15rem); line-height: .98; }
.card-kicker { margin-bottom: 8px; color: var(--accent); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.card-season { margin-bottom: 16px; color: var(--muted); font-size: .92rem; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.proof-strip { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 22px 0; }
.proof-strip > div { display: flex; align-items: baseline; gap: 10px; }
.proof-strip strong { font-size: 1.7rem; }
.proof-strip span { color: var(--muted); font-size: .85rem; }
.section-block, .editorial-section, .callout { padding-top: clamp(80px, 11vw, 130px); padding-bottom: clamp(80px, 11vw, 130px); }
.section-heading { display: grid; grid-template-columns: .6fr 1fr; gap: 36px; margin-bottom: 46px; }
.section-heading h2 { max-width: 760px; margin: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { min-height: 230px; padding: 24px; border: 1px solid var(--line); background: rgba(255,254,250,.45); }
.step-number, .rule-number { display: block; margin-bottom: 46px; color: var(--accent); font-weight: 900; letter-spacing: .1em; }
.step-card p { max-width: 280px; color: var(--muted); }
.editorial-section { display: grid; grid-template-columns: .75fr 1fr; gap: 90px; border-top: 1px solid var(--line); }
.editorial-section h2 { max-width: 460px; }
.editorial-copy { max-width: 600px; font-size: 1.13rem; color: var(--muted); }
.editorial-copy p:first-child { color: var(--ink); font-size: 1.45rem; line-height: 1.35; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--ink); }
.callout h2 { max-width: 700px; margin: 0; }
.keyword-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; font-size: .9rem; font-weight: 800; }
.keyword-links a { color: var(--accent-dark); text-decoration: none; }
.keyword-links a:hover { text-decoration: underline; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 800; }
.faq-list p { max-width: 760px; margin: 12px 0 0; color: var(--muted); }
.site-footer { padding: 40px 0 25px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 38px; }
.footer-note { max-width: 370px; margin: 0; }
.footer-links { display: flex; justify-content: flex-end; gap: 20px; align-items: start; flex-wrap: wrap; font-size: .88rem; font-weight: 700; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal-row { color: var(--muted); font-size: .72rem; }

/* Article and data pages */
.article-shell { max-width: 930px; padding-top: clamp(65px, 10vw, 110px); padding-bottom: clamp(90px, 14vw, 160px); }
.article-shell > h1 { font-size: clamp(3.2rem, 8vw, 6rem); margin-bottom: 18px; }
.article-lede { max-width: 700px; margin-bottom: 62px; font-size: 1.2rem; }
.article-shell > h2 { margin-top: 60px; font-size: 2rem; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 65px; }
.rule-grid article { padding: 24px; border-top: 2px solid var(--ink); }
.rule-grid .rule-number { margin-bottom: 40px; }
.rule-grid p { color: var(--muted); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { padding: 15px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.archive-list { border-top: 1px solid var(--ink); }
.archive-item { display: grid; grid-template-columns: 140px 1fr 30px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.archive-item:hover strong { color: var(--accent-dark); }
.archive-date { color: var(--muted); font-size: .82rem; }
.archive-item strong, .archive-item small { display: block; }
.archive-item small { margin-top: 3px; color: var(--muted); }
.archive-arrow { color: var(--accent); font-size: 1.4rem; }
.empty-state { margin-top: 30px; padding: 44px 30px; border: 1px dashed var(--line); background: rgba(255,254,250,.45); }
.empty-state h2 { font-size: 2rem; }
.empty-state h3 { margin-top: 0; font-size: 1.7rem; }
.leaderboard-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: transparent; color: var(--muted); text-decoration: none; }
.tab.is-active, .tab:hover { background: var(--ink); border-color: var(--ink); color: white; }
.source-box { margin-top: 55px; padding: 24px; border-left: 3px solid var(--accent); background: var(--soft-accent); }
.source-box p { margin: 8px 0 16px; color: var(--muted); }
.auth-shell, .account-shell { max-width: 760px; }
.auth-shell .article-lede, .account-shell .article-lede { max-width: 620px; }
.account-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(34px, 7vw, 90px); align-items: start; padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(80px, 12vw, 140px); }
.account-sidebar { position: sticky; top: 28px; align-self: start; padding: 22px 0; }
.account-sidebar-heading { display: grid; gap: 7px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.account-sidebar-heading .eyebrow { margin: 0; font-size: .68rem; }
.account-sidebar-heading strong { font-size: 1.15rem; overflow-wrap: anywhere; }
.account-sidebar-heading small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.account-sidebar nav { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-sidebar nav a, .account-sidebar-links a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: .86rem; font-weight: 800; text-decoration: none; }
.account-sidebar nav a:hover, .account-sidebar nav a.is-active, .account-sidebar-links a:hover { background: var(--soft-accent); color: var(--accent-dark); }
.account-sidebar-links { display: grid; gap: 4px; padding-top: 18px; }
.account-sidebar-links form { margin: 0; }
.account-sidebar-links .text-button { width: 100%; padding: 10px 12px; text-align: left; font-size: .86rem; }
.account-main { min-width: 0; max-width: 860px; }
.account-main h1 { margin-bottom: 18px; font-size: clamp(3rem, 7vw, 5.7rem); }
.account-main .article-lede { max-width: 680px; margin-bottom: 42px; }
.account-form { display: grid; gap: 20px; width: min(100%, 560px); margin-top: 28px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 12px 30px rgba(31,29,26,.05); }
.account-form label { display: grid; grid-template-columns: 1fr; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.account-form input[type="email"], .account-form input[type="text"], .account-form input[type="password"] { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: white; color: var(--ink); font-weight: 500; letter-spacing: normal; text-transform: none; }
.account-form input:focus { outline: 2px solid rgba(201,72,51,.22); border-color: var(--accent); }
.account-form input[readonly] { color: var(--muted); background: #f4f1eb; }
.account-form .button { width: 100%; margin-top: 4px; }
.field-hint { color: var(--muted); font-size: .7rem; font-weight: 500; letter-spacing: normal; text-transform: none; }
.check-row { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; color: var(--ink) !important; font-size: .88rem !important; letter-spacing: normal !important; text-transform: none !important; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-note, .auth-switch { color: var(--muted); font-size: .85rem; }
.form-note { margin: 0; }
.form-error, .form-success { max-width: 560px; margin: 20px 0; padding: 13px 16px; border-radius: 10px; }
.form-error { background: #f7d8d2; color: #8d2c20; }
.form-success { background: #e1f2e8; color: #1c6840; }
.account-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 64px; }
.account-actions form { margin: 0; }
.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.admin-tab { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 800; }
.admin-tab:hover, .admin-tab.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.admin-search { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 24px 0; }
.admin-search label { display: grid; gap: 7px; min-width: min(100%, 360px); color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-search input { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: white; }
.admin-user-list { display: grid; gap: 14px; }
.admin-user-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.admin-user-card.is-disabled { opacity: .72; }
.admin-user-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.admin-user-heading h2 { margin: 0; font-size: 1.25rem; }
.admin-user-heading p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; }
.admin-user-status { padding: 5px 9px; border-radius: 999px; background: #e1f2e8; color: #1c6840; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.admin-user-status.is-disabled { background: #f7d8d2; color: #8d2c20; }
.admin-user-form { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 14px; align-items: end; }
.admin-user-form label { display: grid; gap: 7px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-user-form input[type="text"], .admin-user-form input[type="password"], .admin-user-form select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: white; color: var(--ink); font-weight: 500; letter-spacing: normal; text-transform: none; }
.admin-user-form .wide { grid-column: 1 / -1; }
.admin-user-form .check-row { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .82rem; letter-spacing: normal; text-transform: none; }
.admin-user-form .check-row input { width: 17px; height: 17px; accent-color: var(--accent); }
.admin-user-meta { margin: 16px 0 0; color: var(--muted); font-size: .76rem; }
.answer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.answer-card { padding: 24px; border: 1px solid var(--line); background: var(--card); }
.answer-card h2 { margin: 24px 0 5px; font-size: 1.7rem; }
.answer-card p { color: var(--muted); }
.answer-facts { color: var(--accent-dark) !important; font-weight: 800; }

/* Game */
.game-shell { padding-top: 58px; padding-bottom: 100px; }
.game-intro { align-items: end; margin-bottom: 30px; }
.game-intro h1 { margin-bottom: 10px; font-size: clamp(3rem, 8vw, 6rem); }
.game-intro .lede { margin-bottom: 0; }
.dot-separator { margin-inline: 5px; color: var(--accent); }
.game-meta { min-width: 110px; text-align: right; color: var(--muted); font-size: .75rem; }
.game-meta strong { display: block; margin-top: 4px; color: var(--ink); font-size: .9rem; }
.game-notice { min-height: 44px; margin-bottom: 20px; padding: 11px 15px; border-radius: 12px; background: var(--soft-accent); color: var(--accent-dark); font-size: .9rem; }
.game-notice:empty { display: none; }
.game-notice.is-error { background: #f7d8d2; color: #8d2c20; }
.lineup-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch; }
.position-card { display: flex; flex-direction: column; min-height: 415px; padding: 16px; border: 1px solid var(--line); background: var(--card); border-radius: 15px; transition: border-color .2s ease, transform .2s ease; }
.position-card.is-solved { border-color: var(--green); background: #f5fbf7; }
.position-card.is-exhausted { border-color: var(--accent); background: #fff9f5; }
.position-topline { align-items: start; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.position-code { color: var(--accent); font-size: .9rem; font-weight: 900; }
.position-label { max-width: 92px; color: var(--muted); font-size: .7rem; line-height: 1.2; text-align: right; }
.player-result { min-height: 46px; padding: 18px 0 10px; font-weight: 800; }
.position-card.is-solved .player-result { color: var(--green); }
.jersey-placeholder { display: grid; place-items: center; align-content: center; gap: 7px; min-height: 164px; margin: 4px 0 12px; padding: 12px; border-radius: 9px; background: #111a4b; border-bottom: 8px solid #f2b718; }
.jersey-placeholder svg { width: 105px; height: 116px; }
.jersey-outline { fill: none; stroke: #718bc4; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.attempt-dots { display: flex; gap: 5px; }
.attempt-dots span { width: 7px; height: 7px; border: 1px solid #b5c2df; border-radius: 50%; background: transparent; }
.attempt-dots span.is-used { border-color: #f2b718; background: #f2b718; }
.position-card.has-attempts .jersey-placeholder { display: none; }
.hint-list { color: var(--muted); font-size: .76rem; }
.hint-list:empty { display: none; }
.hint-item { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; border-bottom: 1px solid #ece8df; }
.hint-item strong { color: var(--ink); }
.guess-form { position: relative; margin-top: auto; }
.player-input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; outline: none; background: white; }
.player-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,72,51,.12); }
.player-input:disabled { background: #f0eee8; cursor: not-allowed; }
.guess-button { min-height: 43px; margin-top: 8px; padding: 9px 10px; font-size: .78rem; }
.guess-button:disabled { opacity: .45; cursor: not-allowed; }
.skip-button { display: block; width: 100%; margin-top: 7px; border: 0; padding: 3px 0 0; background: transparent; color: var(--muted); font-size: .74rem; font-weight: 700; }
.skip-button:hover:not(:disabled) { color: var(--accent-dark); text-decoration: underline; }
.skip-button:disabled { cursor: not-allowed; opacity: .45; }
.suggestions { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); z-index: 3; display: none; max-height: 240px; overflow-y: auto; border: 1px solid var(--ink); border-radius: 10px 10px 0 0; background: white; box-shadow: var(--shadow); }
.suggestions.is-open { display: block; }
.suggestion { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; background: white; text-align: left; }
.suggestion:hover, .suggestion:focus { background: var(--soft-accent); }
.attempt-line { margin-top: 13px; color: var(--muted); font-size: .72rem; }
.score-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; padding: 23px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.score-panel strong { display: inline-block; margin-top: 4px; margin-right: 4px; font-size: 2.6rem; letter-spacing: -.08em; }
.score-max { color: var(--muted); }
.text-button { border: 0; padding: 0; background: none; color: var(--accent-dark); font-weight: 800; }
.text-button:hover { text-decoration: underline; }
.no-script-message { margin-top: 20px; padding: 16px; background: var(--soft-accent); }
.admin-page-shell { padding-top: clamp(34px, 6vw, 70px); padding-bottom: 100px; }
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(34px, 6vw, 76px); align-items: start; }
.admin-sidebar { position: sticky; top: 28px; align-self: start; min-height: 280px; padding: 20px 0; }
.admin-sidebar-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.admin-sidebar-brand .brand-mark { width: 34px; height: 34px; font-size: .7rem; }
.admin-sidebar nav { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.admin-sidebar nav a, .admin-sidebar-footer a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-size: .86rem; font-weight: 800; text-decoration: none; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.is-active, .admin-sidebar-footer a:hover { background: var(--soft-accent); color: var(--accent-dark); }
.admin-sidebar-footer { display: grid; gap: 4px; padding-top: 18px; }
.admin-sidebar-footer form { margin: 0; }
.admin-sidebar-footer .text-button { width: 100%; padding: 10px 12px; text-align: left; font-size: .86rem; }
.admin-content { min-width: 0; max-width: 980px; }
.admin-content > h1 { margin-bottom: 18px; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.admin-content > .article-lede { max-width: 760px; margin-bottom: 34px; }
.admin-shell { max-width: 1000px; }
.admin-form { padding: 28px; border: 1px solid var(--line); background: var(--card); }
.admin-form h2 { margin-top: 38px; font-size: 1.7rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.admin-grid.compact { grid-template-columns: repeat(4, 1fr); }
.admin-grid label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-grid label.wide { grid-column: 1 / -1; }
.admin-grid input, .admin-grid select, .admin-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: white; color: var(--ink); font-weight: 500; letter-spacing: normal; text-transform: none; }
.admin-grid textarea { resize: vertical; }
.admin-answers fieldset { margin: 18px 0; padding: 18px; border: 1px solid var(--line); }
.admin-answers legend { padding: 0 8px; color: var(--accent-dark); font-weight: 900; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 48px; }
    .hero-card { width: min(100%, 520px); justify-self: center; }
    .lineup-grid { grid-template-columns: repeat(3, 1fr); }
    .position-card { min-height: 380px; }
    .section-heading, .editorial-section { grid-template-columns: 1fr; gap: 20px; }
    .editorial-section { gap: 30px; }
    .account-layout { grid-template-columns: 1fr; gap: 20px; }
    .account-sidebar { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 0; }
    .account-sidebar-heading { border-bottom: 0; }
    .account-sidebar nav { display: flex; flex-wrap: wrap; grid-column: 1 / -1; padding: 0; border-bottom: 0; }
    .account-sidebar-links { display: flex; flex-wrap: wrap; grid-column: 1 / -1; padding-top: 0; }
    .admin-layout { grid-template-columns: 1fr; gap: 24px; }
    .admin-sidebar { position: static; min-height: 0; padding: 0; }
    .admin-sidebar nav, .admin-sidebar-footer { display: flex; flex-wrap: wrap; }
    .admin-sidebar nav { padding: 14px 0; }
    .admin-sidebar-footer { padding-top: 0; }
}
@media (max-width: 640px) {
    .shell { width: min(100% - 28px, 1160px); }
    .header-inner { min-height: 70px; align-items: flex-start; padding: 15px 0; }
    .site-nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; font-size: .75rem; }
    .site-nav a.is-active::after { bottom: -5px; }
    .hero { padding-top: 62px; padding-bottom: 70px; }
    .hero-card { transform: none; }
    .proof-strip { align-items: flex-start; flex-direction: column; gap: 12px; }
    .steps-grid, .rule-grid, .answer-grid { grid-template-columns: 1fr; }
    .step-number, .rule-number { margin-bottom: 25px; }
    .callout, .score-panel, .footer-grid { display: block; }
    .callout .button { margin-top: 20px; }
    .score-actions { margin-top: 12px; }
    .footer-links { justify-content: flex-start; margin-top: 26px; }
    .legal-row { display: block; }
    .legal-row span { display: block; margin-top: 5px; }
    .game-shell { padding-top: 35px; }
    .game-intro { align-items: flex-start; flex-direction: column; gap: 8px; }
    .game-meta { text-align: left; }
    .lineup-grid { grid-template-columns: 1fr; }
    .position-card { min-height: 310px; }
    .archive-item { grid-template-columns: 92px 1fr 20px; gap: 10px; }
    .admin-grid, .admin-grid.compact, .admin-user-form { grid-template-columns: 1fr; }
    .admin-grid label.wide { grid-column: auto; }
    .account-sidebar { display: block; }
    .account-sidebar nav, .account-sidebar-links { margin-top: 14px; }
}
