/* ============================================================
   Home page: a big condensed hero with the season board beside it, then
   the tools, the quick picks and the season by game. Things move once as
   they arrive (the hero lines rise, the results pop in one by one, the
   lines draw, the numbers count) and then hold still.
   ============================================================ */

.hm-wrap { max-width: 1640px; margin: 0 auto; padding: 0 28px 40px; }
@media (max-width: 720px) { .hm-wrap { padding: 0 14px 30px; } }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- hero ---------- */
.hm-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 44px 0 30px; }
@media (max-width: 1000px) { .hm-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 26px; } }
.hm-kicker { margin: 0 0 12px; font: 700 13px/1 var(--display); letter-spacing: 2px; text-transform: uppercase; color: var(--red-bright); }
.hm-title { margin: 0 0 18px; font: 800 clamp(2.6rem, 5.4vw, 4.4rem)/.98 var(--display); text-transform: uppercase; letter-spacing: -.5px; }
.hm-title .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.hm-title .ln > span { display: inline-block; animation: hm-rise .9s var(--ease) both; }
.hm-title .ln:nth-child(2) > span { animation-delay: .08s; }
.hm-title .ln:nth-child(3) > span { animation-delay: .16s; }
.hm-title .accent { color: var(--red-bright); }
.hm-lede { margin: 0 0 22px; max-width: 34em; font-size: 16.5px; line-height: 1.6; color: var(--txt-2); animation: hm-up .7s .25s var(--ease) both; }

.hm-ask { display: flex; align-items: center; gap: 8px; padding: 8px; border: 2px solid var(--frame); border-radius: 6px; background: var(--surface); max-width: 560px;
  animation: hm-up .7s .32s var(--ease) both; transition: border-color .2s, box-shadow .2s; }
.hm-ask:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(245,197,24,.12); }
.hm-ask-tag { font: 800 13px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--red-bright); padding: 0 6px 0 8px; white-space: nowrap; }
.hm-ask input { flex: 1; min-width: 0; font: inherit; font-size: 15.5px; color: var(--txt); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; outline: none; }
.hm-go { appearance: none; cursor: pointer; border: 0; border-radius: 4px; padding: 11px 16px; background: var(--frame); color: var(--frame-ink); font: 800 14px/1 var(--display); letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; transition: background .15s, transform .15s; }
.hm-go:hover { background: var(--yellow); transform: translateY(-1px); }
.hm-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; max-width: 600px; animation: hm-up .7s .4s var(--ease) both; }
.hm-try > span { font-size: 12.5px; color: var(--txt-3); margin-right: 2px; }
.hm-chip { font-size: 12.5px; color: var(--txt-2); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; text-decoration: none !important; transition: border-color .15s, color .15s, transform .15s; }
.hm-chip:hover { color: var(--txt); border-color: rgba(245,197,24,.5); transform: translateY(-1px); }
@media (max-width: 560px) { .hm-ask { flex-wrap: wrap; } .hm-ask input { flex-basis: 100%; order: 3; } .hm-go { margin-left: auto; } }

/* the season board, framed like a browser window */
.hm-board { border: 2px solid var(--frame); border-radius: 8px; background: var(--surface); overflow: hidden; box-shadow: 0 24px 60px var(--shadow);
  animation: hm-board .9s .15s var(--ease) both; }
.hm-board-bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: var(--head); border-bottom: 1px solid var(--line); }
.hm-board-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #3a3f45; }
.hm-board-bar b { margin-left: 10px; font: 700 12.5px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: #aab2bd; }
.hm-board-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.hm-rec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 5px; }
.hm-rec > div { padding: 10px 12px; border-right: 1px solid var(--line); }
.hm-rec > div:last-child { border-right: 0; }
.hm-rec small { display: block; font: 700 11.5px/1 var(--display); letter-spacing: .8px; text-transform: uppercase; color: var(--txt-3); margin-bottom: 7px; }
.hm-rec strong { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.hm-rec strong.gold { color: var(--gold-ink); }
@media (max-width: 560px) { .hm-rec { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-rec > div:nth-child(2) { border-right: 0; } .hm-rec > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.hm-results { display: flex; flex-wrap: wrap; gap: 5px; min-height: 46px; }
.hm-res { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; padding: 7px 8px; border-radius: 4px; text-decoration: none !important;
  background: var(--surface-3); color: #fff; animation: hm-pop .45s var(--ease) both; animation-delay: calc(.35s + var(--i) * 60ms); transition: transform .15s, filter .15s; }
.hm-res b { font: 800 13.5px/1.1 var(--display); letter-spacing: .3px; text-transform: uppercase; }
.hm-res small { font: 700 11.5px/1.2 var(--display); opacity: .85; margin-top: 2px; }
.hm-res.W { background: #1d8a4c; }
.hm-res.L { background: #b3262e; }
.hm-res.T { background: #8a6d12; }
a.hm-res:hover { transform: translateY(-2px); filter: brightness(1.12); }
.hm-spark svg { display: block; width: 100%; height: auto; }
.hm-spark .gl { stroke: var(--line); }
.hm-spark .ax { fill: var(--txt-3); font: 600 10.5px var(--display); }
.hm-spark .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hm-draw 1.3s .6s var(--ease) forwards; }
.hm-spark .ln.us { stroke: var(--yellow); }
.hm-spark .ln.them { stroke: #7d8ba1; animation-delay: .45s; }
.hm-spark .ar.us { fill: rgba(245,197,24,.09); animation: hm-fade 1s 1.2s both; }
.hm-spark .dt { fill: var(--yellow); stroke: var(--surface); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: hm-pop .35s var(--ease) both; animation-delay: calc(.8s + var(--i) * 70ms); }
.hm-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--txt-2); margin-top: 6px; }
.hm-leg span { display: inline-flex; align-items: center; gap: 6px; }
.hm-leg i { width: 14px; height: 3px; display: inline-block; }
.hm-leg i.us { background: var(--yellow); } .hm-leg i.them { background: #7d8ba1; }
.hm-leg-x { margin-left: auto; color: var(--txt-3); }

/* ---------- sections ---------- */
.hm-sec { margin-top: 34px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hm-sec.in { opacity: 1; transform: none; }
.hm-sec-hd { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--frame); padding-bottom: 6px; margin-bottom: 14px; }
.hm-sec-hd h2 { margin: 0; font: 800 22px/1 var(--display); letter-spacing: .6px; text-transform: uppercase; }
.hm-sec-hd span { font-size: 13px; color: var(--txt-3); }

/* the five tools */
.hm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1150px) { .hm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .hm-tiles { grid-template-columns: minmax(0, 1fr); } }
.hm-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 16px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  color: var(--txt); text-decoration: none !important; overflow: hidden; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.hm-sec.in .hm-tile { animation: hm-up .55s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.hm-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); transition: width .25s var(--ease); }
.hm-tile:hover { transform: translateY(-3px); border-color: var(--c); background: var(--surface-2); }
.hm-tile:hover::before { width: 7px; }
.hm-tile-top { display: flex; align-items: center; gap: 10px; }
.hm-tile-ic { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 5px; border-radius: 5px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); font: 800 13px/1 var(--display); letter-spacing: .5px; }
.hm-tile-top b { font: 800 18px/1 var(--display); letter-spacing: .5px; text-transform: uppercase; }
.hm-arrow { margin-left: auto; color: var(--txt-3); transition: transform .2s var(--ease), color .2s; }
.hm-tile:hover .hm-arrow { transform: translateX(4px); color: var(--c); }
.hm-tile-big { font: 800 34px/1 var(--display); margin-top: 8px; font-variant-numeric: tabular-nums; }
.hm-tile-big small { font: 700 13px/1 var(--display); letter-spacing: .6px; text-transform: uppercase; color: var(--txt-3); margin-left: 7px; }
.hm-tile-sub { font-size: 12.5px; color: var(--txt-2); }
.hm-tile-desc { font-size: 12.5px; color: var(--txt-3); line-height: 1.5; margin-top: 2px; }

/* quick picks */
.hm-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hm-pick { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 15px 16px 15px 18px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 6px;
  background: var(--surface); color: var(--txt); text-decoration: none !important; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.hm-sec.in .hm-pick { animation: hm-up .5s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
.hm-pick:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--c); }
.hm-pick small { font: 700 12px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--txt-3); }
.hm-pick strong { font: 800 26px/1.05 var(--display); letter-spacing: .2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pick span { font-size: 12.5px; color: var(--txt-2); line-height: 1.45; padding-right: 18px; }
.hm-pick em { position: absolute; right: 14px; bottom: 13px; font-style: normal; color: var(--txt-3); transition: transform .2s var(--ease), color .2s; }
.hm-pick:hover em { transform: translateX(4px); color: var(--c); }

/* season by game */
.hm-tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.hm-tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hm-tbl th { text-align: left; font: 700 12px/1 var(--display); letter-spacing: .8px; text-transform: uppercase; color: var(--txt-3); padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.hm-tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); color: var(--txt-2); white-space: nowrap; }
.hm-tbl td b { color: var(--txt); }
.hm-tbl tr:last-child td { border-bottom: 0; }
.hm-tbl tbody tr { transition: background .15s; }
.hm-tbl tbody tr:hover td { background: var(--surface-2); }
.hm-sec.in .hm-tbl tbody tr { animation: hm-up .45s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.hm-tbl .n { text-align: right; }
.hm-wl { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; font: 800 12px/1 var(--display); color: #fff; margin-right: 6px; }
.hm-wl.W { background: #1d8a4c; } .hm-wl.L { background: #b3262e; } .hm-wl.T { background: #8a6d12; }
.hm-dim { color: var(--txt-3); }
.hm-bar { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--surface-3); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.hm-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; }
.hm-sec.in .hm-bar i { animation: hm-grow .8s .2s var(--ease) both; }

.hm-foot { max-width: 1640px; margin: 30px auto 0; padding: 18px 28px 34px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--txt-3); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- motion ---------- */
@keyframes hm-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hm-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hm-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes hm-board { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
@keyframes hm-fade { from { opacity: 0; } }
@keyframes hm-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before { animation: none !important; transition: none !important; }
  .hm-sec { opacity: 1; transform: none; }
  .hm-spark .ln { stroke-dashoffset: 0; stroke-dasharray: none; }
}

/* ---------- the help page ---------- */
.hp-hero { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.hp-toc { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 10px; }
.hp-toc a { padding: 7px 10px; border-radius: 4px; color: var(--txt-2); font-weight: 600; font-size: 14px; text-decoration: none !important; }
.hp-toc a:hover { background: var(--surface-2); color: var(--txt); }
.hp-sec { margin-top: 34px; scroll-margin-top: 16px; }
.hp-sec h2 { margin: 0 0 12px; font: 800 24px/1 var(--display); letter-spacing: .6px; text-transform: uppercase; border-bottom: 2px solid var(--frame); padding-bottom: 6px; }
.hp-sec > p, .hp-list, .hp-steps, .hp-dl { max-width: 78ch; font-size: 15.5px; line-height: 1.65; color: var(--txt-2); }
.hp-sec b { color: var(--txt); }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.hp-card { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 6px; background: var(--surface); padding: 14px 16px; }
.hp-card > b { font: 800 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .4px; }
.hp-card p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--txt-2); }
.hp-steps { padding-left: 22px; }
.hp-steps li { margin-bottom: 10px; padding-left: 4px; }
.hp-list { padding-left: 20px; }
.hp-dl dt { font: 800 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .4px; color: var(--txt); margin-top: 12px; }
.hp-dl dd { margin: 3px 0 0; }
.hp-try { max-width: none; animation: none; }
@media (max-width: 1000px) { .hp-hero { grid-template-columns: minmax(0, 1fr); } }
.hm-new { margin: 14px 0 0; font-size: 14px; color: var(--txt-3); animation: hm-up .7s .48s var(--ease) both; }
.hm-new a { font-weight: 700; color: var(--gold-ink); }

/* the coach's to-do */
.hm-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 10px; }
.hm-todo-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--c);
  border-radius: 6px; background: var(--surface); color: var(--txt); text-decoration: none !important; transition: transform .2s var(--ease), border-color .2s; }
.hm-sec.in .hm-todo-item { animation: hm-up .45s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.hm-todo-item:hover { transform: translateY(-2px); border-color: var(--c); }
.hm-todo-item strong { font: 800 28px/1 var(--display); color: var(--c); min-width: 44px; text-align: center; }
.hm-todo-item b { display: block; font-size: 14.5px; }
.hm-todo-item small { display: block; font-size: 12.5px; color: var(--txt-3); margin-top: 2px; }
.hm-todo-item em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--gold-ink); white-space: nowrap; }
.hm-todo-done { color: var(--good); font-weight: 600; }

/* the tools */
.hm-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .hm-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hm-tools { grid-template-columns: minmax(0, 1fr); } }
.hm-tool { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i b" "i s"; gap: 2px 12px; align-items: center; padding: 14px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--txt); text-decoration: none !important; transition: transform .2s var(--ease), border-color .2s; }
.hm-sec.in .hm-tool { animation: hm-up .45s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.hm-tool:hover { transform: translateY(-2px); border-color: var(--red); }
.hm-tool-ic { grid-area: i; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--red-wash); color: var(--red-bright); font: 800 14px/1 var(--display); }
.hm-tool b { grid-area: b; font: 800 16px/1.15 var(--display); text-transform: uppercase; letter-spacing: .4px; }
.hm-tool small { grid-area: s; font-size: 12.5px; color: var(--txt-3); }

/* everything the site can do */
.hp-cd-h { margin: 18px 0 8px; font: 800 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .6px; color: var(--txt-2); }
.hp-cd { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.hp-cd-item { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 6px;
  background: var(--surface); color: var(--txt); text-decoration: none !important; transition: transform .2s var(--ease), border-color .2s; }
.hp-cd-item:hover { transform: translateY(-2px); border-color: var(--red); }
.hp-cd-item b { font-size: 14.5px; }
.hp-cd-item span { font-size: 13px; color: var(--txt-3); }
.hm-tool-gd { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }

/* a phone number never splits across lines */
.contact a { white-space: nowrap; }

/* contact page */
.ct-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .ct-grid { grid-template-columns: 1fr; } }
.ct-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; }
.ct-card h2 { margin: 0 0 16px; font: 700 18px/1.2 var(--display); letter-spacing: .6px; text-transform: uppercase; color: var(--txt); }
#ctForm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 560px) { #ctForm { grid-template-columns: 1fr; } }
.ct-f { display: flex; flex-direction: column; gap: 6px; }
.ct-span { grid-column: 1 / -1; }
.ct-f > span { font: 700 12px/1 var(--display); letter-spacing: .8px; text-transform: uppercase; color: var(--txt-3); }
.ct-f small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ct-f input, .ct-f textarea { font: inherit; font-size: 15px; color: var(--txt); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.ct-f textarea { resize: vertical; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ct-out { margin: 0; font-size: 14px; color: var(--txt-2); }
.ct-out.ok { color: #199e70; font-weight: 600; }
.ct-out.err { color: #d81f2a; font-weight: 600; }
.ct-person { padding: 14px 0; border-top: 1px solid var(--line); }
.ct-person:first-of-type { border-top: 0; padding-top: 0; }
.ct-person p { margin: 4px 0; color: var(--txt-2); font-size: 14.5px; line-height: 1.5; }
.ct-role { font: 700 12px/1.3 var(--display) !important; letter-spacing: .8px; text-transform: uppercase; color: #d81f2a !important; }
.ct-name { font-size: 20px !important; font-weight: 700; color: var(--txt) !important; }
.ct-person a { font-weight: 600; }
