#home { max-width: var(--page-max-width); }
#home h1 { font-size: 52px; line-height: 1; margin: 12px 0 20px; }
#home .home-intro h1 { width: min(100%, 400px); height: 76px; margin: 0 0 4px; font-size: 0; background: url('../images/fantaski-logo-black-ski.png') left center / auto 86px no-repeat; }
#home h2 { font-size: 26px; margin: 8px 0 16px; }
#home h3 { font-size: 18px; }
#home p { margin: 8px 0 16px; }
.home-intro { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0 24px; border-bottom: 1px solid var(--line); }
.home-intro > div:first-child { flex: 1; min-width: 0; }
#home .home-kicker { color: #a32e33; font-size: 11px; font-weight: 700; margin: 0 0 8px; }
#home .home-lead { font-size: 22px; line-height: 1.4; }
.home-season { display: flex; align-items: center; gap: 10px; align-self: flex-start; flex-wrap: wrap; }
.home-season label { width: 100%; color: var(--muted); font-size: 13px; }
.home-intro-action { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
#home .home-intro-action .home-primary { width: auto; min-height: 46px; }
.home-intro-action span { font-size: 13px; color: var(--muted); }
.home-month-agenda { display: none; }
.home-duel { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.home-duel > strong { color: var(--accent); }
.home-duel > span { line-height: 1.5; }
.home-duel small { color: var(--muted); }
.home-duel-score { white-space: nowrap; }
#home .home-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 8px; color: var(--ink); border: 1px solid var(--line); background: white; flex: 0 0 38px; }
.home-icon svg { width: 18px; height: 18px; }
.home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 28px 0; border-bottom: 1px solid var(--line); }
#home .home-metric { display: flex; flex-direction: column; text-align: left; border-radius: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); padding: 0 24px; gap: 6px; }
#home .home-metric:first-child { padding-left: 0; }
#home .home-metric:last-child { border-right: 0; }
.home-metric span { color: var(--muted); font-size: 13px; }
.home-metric strong { font-size: 34px; }
.home-metric small { color: var(--muted); line-height: 1.4; }
.home-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 36px 0; }
.home-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.home-month-controls { display: flex; align-items: center; gap: 10px; }
.home-month-controls h3 { text-align: center; min-width: 150px; margin: 0; }
.home-weekdays, .home-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.home-weekdays { color: var(--muted); font-size: 12px; padding: 12px 0; text-align: center; }
.home-calendar { gap: 1px; border: 1px solid var(--line); background: var(--line); }
.home-day { min-height: 116px; padding: 8px; background: white; min-width: 0; }
.home-day.empty { background: #eef1f1; }
.home-day time { font-size: 12px; display: flex; justify-content: space-between; margin-bottom: 8px; }
.home-day time span { color: #a32e33; font-size: 10px; }
.home-day.today { box-shadow: inset 0 3px #c83c35; }
#home .home-event { padding: 7px; display: flex; flex-direction: column; width: 100%; background: #edf3f0; color: var(--ink); text-align: left; margin-top: 5px; border-radius: 3px; border-left: 3px solid #38816a; gap: 4px; }
#home .home-event.women { border-color: #b44656; background: #faf0f1; }
.home-event strong { font-size: 12px; overflow-wrap: anywhere; line-height: 1.3; }
.home-event span, .home-event small { font-size: 10px; line-height: 1.3; }
.home-event.filed small { color: #22644f; font-weight: 700; }
#home .home-calendar-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-next { border-left: 1px solid var(--line); padding-left: 28px; }
.home-race-category { color: var(--muted); font-size: 14px; }
.home-venue-map { width: 100%; aspect-ratio: 5/3; object-fit: cover; display: block; }
#home-venue-visual small { display: block; font-size: 9px; margin: 5px 0 14px; color: var(--muted); }
.home-next-time { font-size: 16px; font-weight: 700; }
.home-next-pick { border-top: 1px solid var(--line); padding: 16px 0 8px; }
.home-next-pick h3 { margin: 0 0 14px; }
.home-saved-athletes { padding-left: 24px; margin: 0 0 18px; }
.home-saved-athletes li { padding: 7px 0 7px 4px; font-size: 13px; line-height: 1.45; }
.home-saved-athletes li::marker { color: var(--muted); font-weight: 700; }
.home-saved-athletes small { display: block; color: var(--muted); font-size: 11px; }
#home .home-countdown-label { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
#home .home-countdown { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 36px; margin-top: 0; }
#home .home-next-countdown {padding:14px 0 18px;margin:14px 0 20px;border-top:2px solid var(--green,#21634f);border-bottom:1px solid var(--line);}
#home .home-next-countdown h3 {font-size:16px;margin:0 0 8px;}
#home .home-next-countdown .home-countdown {font-size:30px;line-height:1.3;min-height:40px;color:var(--green,#21634f);margin-bottom:0;white-space:nowrap;}
.home-saved-nations { font-size: 13px; font-weight: 700; line-height: 1.5; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.home-left { min-width: 0; }
.home-layout .home-main { display: block; }
.home-layout .home-next { position: sticky; top: calc(var(--site-chrome-height, 164px) + 24px); align-self: start; padding-top: 24px; max-height: calc(100dvh - var(--site-chrome-height, 164px) - 48px); overflow-y: auto; scrollbar-width: thin; }
#home .home-primary { width: 100%; background: #22644f; color: white; font-weight: 700; padding: 14px; }
.home-to-do { margin-top: 26px; }
#home .home-upcoming { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.home-upcoming strong { display: block; font-size: 13px; }
.home-upcoming small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.home-pick-status { font-size: 11px; color: var(--accent); white-space: nowrap; }
.home-mode-summary { font-size:13px;line-height:1.7;color:var(--muted); }
.home-double-header { border-block:1px solid var(--line);padding:16px 0;margin-top:20px; }
.home-day-picks { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px; }
.home-day-pick { min-width:0; }
#home .home-day-pick h4 { margin:8px 0 6px;font-size:16px;line-height:1.4;overflow-wrap:anywhere; }
#home .home-day-pick-time { font-size:12px;color:var(--muted); }
.home-day-pick .home-next-pick { padding:10px 0 0; }
#home .home-day-pick .home-next-pick h3 { color:var(--accent);font-size:14px; }
.home-day-pick .home-saved-athletes { margin-bottom:10px; }
.home-day-pick .home-saved-athletes li { padding-block:3px; }
@media(max-width:700px){.home-day-picks{grid-template-columns:minmax(0,1fr);gap:20px;}.home-day-pick+.home-day-pick{border-top:1px solid var(--line);padding-top:12px;}}
#home .home-double-header h3 { margin:0 0 6px;color:#a32e33; }
#home .home-double-header p,.home-pick-explanation { font-size:12px;line-height:1.6; }
.home-rules { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; padding: 32px 0; border-top: 1px solid var(--line); }
#home .home-rules h2 { font-size: 32px; line-height: 1.2; }
.home-rules ol { padding-left: 20px; margin: 18px 0; }
.home-rules li { padding-left: 8px; margin-bottom: 16px; font-size: 14px; line-height: 1.65; }
#home .home-secondary { background: transparent; color: var(--accent); border: 1px solid #b8c4c2; font-weight: 700; }
.home-country:not(:empty) { border-top: 1px solid var(--line); padding: 28px 0; }
.home-error { color: #a32e33; border-left: 3px solid #a32e33; padding: 12px; }
#home button:hover { filter: brightness(.97); }
@media (max-width: 1050px) { .home-main { grid-template-columns: minmax(0, 1fr); } .home-next { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; } #home-venue-visual { max-width: 400px; } .home-rules { gap: 32px; } }
@media (max-width: 600px) { #home h1 { font-size: 40px; } #home .home-lead { font-size: 18px; } .home-intro { flex-direction: column; gap: 16px; padding-top: 8px; } .home-season label { width: auto; } .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; } #home .home-metric { padding: 0 14px; } #home .home-metric:nth-child(3) { padding-left: 0; } #home .home-metric:nth-child(2) { border-right: 0; } .home-metric strong { font-size: 28px; } .home-day { padding: 3px; min-height: 80px; } #home .home-event { padding: 4px 2px; border-left-width: 2px; } .home-event strong { font-size: 10px; } .home-event span, .home-event small { font-size: 9px; } .home-day time span { display: none; } .home-rules { grid-template-columns: 1fr; } .home-main { gap: 20px; padding-top: 26px; } .home-month-controls { width: 100%; justify-content: space-between; } }
@media (max-width: 600px) {
  .home-month-agenda { display: block; margin-top: 20px; }
  .home-event strong, .home-event small { display: none; }
  #home .home-event { min-height: 44px; justify-content: center; }
  .home-event span { overflow-wrap: anywhere; }
  .home-intro-action { gap: 10px; }
}
@media (max-width: 1050px) {
  .home-layout { display: flex; flex-direction: column; gap: 0; }
  .home-left { display: contents; }
  .home-layout > *, .home-left > * { width: 100%; }
  .home-intro { order: 0; }
  .home-metrics { order: 1; }
  .home-duel { order: 2; }
  .home-double-header { order: 3; }
  .home-layout .home-next { order: 3; position: static; max-height: none; overflow: visible; }
  .home-main { order: 4; }
  .home-rules { order: 5; }
  .home-country { order: 6; }
}
