:root {
  --bg: #f7f8f5; --ink: #14201a; --muted: #5b6b62; --line: #dfe5df; --card: #ffffff;
  --brand: #0b3d2e; --accent: #ffb703; --pass: #1d6fd1; --run: #b7791f; --trick: #c0392b;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1512; --ink: #e8efe9; --muted: #9aaba0; --line: #25302a; --card: #16201b; --brand: #7fd6a8; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.top { background: #0b3d2e; color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; }
.brand { color: #fff; font-weight: 800; text-decoration: none; font-size: 1.15rem; letter-spacing: .2px; }
.brand::before { content: "🏈 "; }
.top nav a { color: #d9f2e4; text-decoration: none; margin-left: 16px; font-weight: 600; font-size: .95rem; }
.top nav a:first-child { margin-left: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; margin: 18px 0 8px; }
h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.lede { font-size: 1.12rem; color: var(--ink); }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .85rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.hero { padding: 18px 0 6px; }
.btn { display: inline-block; background: var(--accent); color: #1b1b1b; font-weight: 700; padding: 10px 18px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; margin: 4px 6px 4px 0; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid currentColor; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; color: var(--ink); display: block; }
.card:hover { border-color: var(--brand); }
.card-name { display: block; font-weight: 700; margin: 8px 0 4px; }
.tag { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; color: #fff; }
.tag-pass { background: var(--pass); } .tag-run { background: var(--run); } .tag-trick { background: var(--trick); }
.play-svg { width: 100%; height: auto; display: block; }
.play-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .play-layout { grid-template-columns: 1fr; } }
.diagram { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; }
.key::before { content: ""; display: inline-block; width: 22px; height: 4px; margin-right: 6px; vertical-align: middle; }
.k-route::before { background: #2e7d32; } .k-run::before { background: #e0a800; height: 6px; }
.k-fake::before { background: repeating-linear-gradient(90deg, #1d6fd1 0 6px, transparent 6px 10px); }
.k-read { background: #e63946; color: #fff; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .7rem; }
.k-read::before { display: none; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.age { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.age strong { font-size: 1.3rem; color: var(--brand); }
.gear { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.gear h3 { margin: 0 0 4px; }
.ad { margin: 28px 0; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.builder { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .builder { grid-template-columns: 1fr; } }
.picks { display: grid; gap: 8px; }
.pick { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.controls { display: flex; flex-direction: column; gap: 12px; }
.controls input, .controls select { display: block; width: 100%; padding: 8px; font-size: 1rem; border-radius: 8px; border: 1px solid var(--line); margin-top: 4px; }
.sheet { margin-top: 28px; }
.sheet:empty { display: none; }
.sheet-wrist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 720px; }
.sheet-wrist h2 { grid-column: 1 / -1; font-size: 1rem; margin: 0; }
.sheet-book { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sheet-book h2 { grid-column: 1 / -1; }
.sheet-cell { border: 1px solid #999; padding: 4px; break-inside: avoid; background: #fff; color: #111; }
.sheet-label { font-weight: 800; font-size: .85rem; }
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 18px 0 30px; color: var(--muted); font-size: .92rem; }
@media print {
  .top, .foot, .no-print, .ad { display: none !important; }
  body { background: #fff; }
  .sheet-wrist { width: 5.5in; }
}
