:root {
  --bg: #f4f6f9; --card: #ffffff; --text: #1b2430; --muted: #5d6b7c;
  --border: #d5dce5; --accent: #ce153f; --accent-soft: #fdecef; --accent-text: #ffffff;
  --error: #b42318; --ok: #1a7f37;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151c; --card: #18202a; --text: #e6ebf1; --muted: #9aa7b6;
    --border: #2c3846; --accent: #ff5c7a; --accent-soft: #3a1820; --accent-text: #1a0508;
    --error: #ff8a80; --ok: #6fdc8c;
  }
}
* { box-sizing: border-box; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 820px; margin: 0 auto; padding: 28px 16px 48px; }
.anc-hero { background: var(--card); color: var(--text); border-bottom: 4px solid #111111; }
.anc-hero-inner { max-width: 820px; margin: 0 auto; padding: 18px 16px; display: flex; gap: 16px; align-items: center; }
.anc-logo { height: 72px; width: auto; }
.anc-kicker { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; }
.anc-dates { margin: 0; color: var(--muted); font-size: .95rem; }
.anc-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 16px 32px; }
.guide-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
h1 { font-size: 1.75rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0 0 4px; }
h3 { font-size: 1rem; margin: 16px 0 8px; }
.lead, .hint { color: var(--muted); }
.lead { margin: 0 0 24px; }
.hint { font-size: .9rem; margin: 0 0 12px; }
section, .done { background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.full { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid, .grid3 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 500; margin-bottom: 4px; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; padding: 10px 12px; font: inherit;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
input[type="color"] { padding: 2px; height: 44px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 88px; resize: vertical; }
.err { color: var(--error); font-size: .875rem; min-height: 1.2em; margin-top: 2px; }
[aria-invalid="true"] { border-color: var(--error); }
.divisions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .divisions { grid-template-columns: 1fr; } }
.choice { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: auto; margin-right: 8px; }
.choice strong { font-size: 1.02rem; }
.choice small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.toggles { display: flex; gap: 10px; flex-wrap: wrap; }
.toggles .choice { flex: 1 1 200px; }
.preview { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); }
.preview b { font-size: 1.1rem; }
.team { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 8px; }
.player { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.player-head { font-weight: 600; margin-bottom: 8px; }
.player-head span { color: var(--muted); font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
table.fees { width: 100%; border-collapse: collapse; }
table.fees td { padding: 6px 0; border-bottom: 1px solid var(--border); }
table.fees td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.fees tr.total td { font-weight: 700; border-bottom: 0; }
button { background: var(--accent); color: var(--accent-text); border: 0;
  border-radius: 8px; padding: 12px 24px; font: inherit; font-weight: 600; cursor: pointer; }
button[disabled] { opacity: .6; cursor: wait; }
.banner { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px;
  border: 1px solid var(--error); color: var(--error); }
.done { text-align: center; }
.done h2 { color: var(--ok); font-size: 1.4rem; }
.ref { font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; }
.title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 8px; }
.title-row h1 { margin: 0; }
.back-home { margin-left: auto; color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.back-home:hover { text-decoration: underline; }
