:root {
  color-scheme: dark;
  --bg: #1A1A1D;
  --panel: #232326;
  --panel-hover: #2E2E31;
  --white: #F2F0F0;
  --muted: #A9A8AB;
  --text-secondary: #CFCDCF;
  --gray: #4E4E50;
  --wine: #6F2232;
  --crimson: #950740;
  --accent: #C3073F;
  --accent-text: #F0547D;
  --line: rgba(78,78,80,.65);
  --day: 46px;
  --row: 64px;
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 120%, rgba(195,7,63,.22), transparent 55%), var(--bg); color: var(--white); font-family: var(--body); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .timeline:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
::selection { background: var(--accent); color: #fff; }
.skip-link { position: fixed; top: 10px; left: 15px; z-index: 100; padding: 12px 16px; background: var(--accent); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 0 max(20px, calc((100vw - 1240px) / 2)); background: rgba(26,26,29,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { font: 400 32px/1 var(--display); letter-spacing: 1px; }
.brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 6px; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text-secondary); font-size: 14px; font-weight: 700; }
.topbar nav a:hover { color: var(--accent-text); }

main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 60px; }
.intro { padding: 64px 0 32px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--accent-text); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
.eyebrow::before { content: ""; width: 24px; height: 4px; background: var(--accent); }
h1 { margin: 0 0 16px; font: 400 clamp(52px, 7vw, 96px)/.95 var(--display); letter-spacing: .5px; }
h1 em { font-style: normal; color: var(--accent-text); text-shadow: 0 0 28px rgba(195,7,63,.55); }
.lead { max-width: 620px; margin: 0; color: var(--text-secondary); font-size: 17px; line-height: 1.7; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend-bar { width: 42px; height: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--crimson)); box-shadow: 0 0 10px rgba(195,7,63,.6); }
.legend-soon { background: linear-gradient(90deg, var(--wine), #3A3A3D); box-shadow: none; border: 1px solid rgba(240,84,125,.45); }
.legend-today { width: 18px; height: 22px; border-radius: 3px; background: rgba(195,7,63,.22); border: 1px solid rgba(240,84,125,.6); }

.groups { display: grid; min-width: 0; }
.groups > * { min-width: 0; }
.loading { color: var(--muted); }
.board { min-width: 0; max-width: 100%; padding: 18px; background: linear-gradient(180deg, rgba(35,35,38,.92), rgba(26,26,29,.92)); border: 1px solid var(--line); border-radius: 14px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nav-btn { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text-secondary); font: 700 13px var(--body); cursor: pointer; }
.nav-btn:hover { color: #fff; border-color: var(--accent-text); }
.nav-today { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-today:hover { background: #D91E55; }

/* Horizontal timeline: one column per day, like an in-game event calendar. */
.timeline { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 10px; border: 1px solid var(--line); background: #1D1D20; scrollbar-color: var(--crimson) transparent; }
.tl-inner { position: relative; width: calc(var(--days) * var(--day)); }
.tl-months, .tl-days, .tl-rows { display: grid; grid-template-columns: repeat(var(--days), var(--day)); }
.tl-month { padding: 8px 10px; background: linear-gradient(180deg, var(--accent), var(--crimson)); border-right: 2px solid #1D1D20; color: #fff; font: 400 18px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; overflow: clip; }
.tl-month > span { position: sticky; left: 10px; }
.tl-days { border-bottom: 1px solid var(--line); background: var(--panel); }
.tl-day { display: grid; place-items: center; gap: 1px; padding: 7px 0 8px; border-right: 1px solid rgba(78,78,80,.45); color: var(--text-secondary); }
.tl-day small { font-size: 10px; font-weight: 700; text-transform: capitalize; color: var(--muted); }
.tl-day b { font-size: 15px; font-weight: 800; }
.tl-day.is-weekend { background: rgba(255,255,255,.025); }
.tl-day.is-today { background: var(--accent); color: #fff; box-shadow: 0 0 18px rgba(195,7,63,.6); }
.tl-day.is-today small { color: #fff; }

.tl-rows { position: relative; grid-template-rows: repeat(var(--rows), var(--row)); row-gap: 10px; margin: 0; padding: 12px 0 14px; list-style: none; background-image: linear-gradient(90deg, rgba(78,78,80,.35) 1px, transparent 1px); background-size: var(--day) 100%; }
.tl-today { grid-row: 1 / -1; margin: -12px 0 -14px; background: rgba(195,7,63,.14); border-inline: 1px solid rgba(240,84,125,.45); pointer-events: none; }
.tl-row { position: relative; min-width: 0; padding: 0 2px; }
.bar { position: relative; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--crimson) 55%, rgba(111,34,50,.9)); border: 1px solid rgba(240,84,125,.55); box-shadow: 0 0 16px rgba(195,7,63,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.state-soon .bar { background: linear-gradient(90deg, var(--wine), #3A3A3D 70%); border-color: rgba(240,84,125,.4); box-shadow: none; }
.state-ended { opacity: .45; }
.bar.open-start { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.bar.open-end { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 90px), transparent); }
.bar.open-start.open-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 90px), transparent); }

/* Sticky content keeps the image and text in view while the timeline scrolls. */
.bar-content { position: sticky; left: 6px; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; height: 100%; padding: 5px 18px 5px 5px; }
.bar.open-start .bar-content { padding-left: 34px; }
.thumb { flex: none; width: 92px; height: 52px; border-radius: 999px; overflow: hidden; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 0 10px rgba(0,0,0,.45); background: var(--panel); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--wine), var(--accent)); }
.thumb-empty span { font: 400 28px/1 var(--display); color: rgba(255,255,255,.85); }
.bar-text { min-width: 0; display: grid; gap: 3px; }
.bar-text strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 20px/1.05 var(--display); letter-spacing: .6px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.bar-meta { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.88); }
.tag { flex: none; padding: 1px 6px; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.status { color: #fff; }
.status::before { content: "·"; margin-right: 8px; color: rgba(255,255,255,.6); }

.note { margin: 24px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 760px) {
  :root { --day: 40px; --row: 60px; }
  .intro { padding: 40px 0 24px; }
  .board { padding: 10px; }
  .nav-btn { flex: 1; padding: 0 8px; font-size: 12px; }
  .thumb { width: 78px; height: 46px; }
  .bar-text strong { font-size: 18px; }
  .topbar nav a { padding: 0 8px; font-size: 13px; }
}
@media (max-width: 420px) { .topbar nav a:first-child { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Day picked as a guide: a silver column, distinct from today's crimson. */
button.tl-day { margin: 0; border-top: 0; border-bottom: 0; border-left: 0; background: transparent; font: inherit; cursor: pointer; }
button.tl-day:hover { background: rgba(242,240,240,.08); color: #fff; }
button.tl-day.is-today:hover { background: #D91E55; }
.tl-day.is-picked { background: #F2F0F0; color: var(--bg); box-shadow: 0 0 16px rgba(242,240,240,.45); }
.tl-day.is-picked small { color: var(--gray); }
.tl-day.is-today.is-picked { background: #F2F0F0; color: var(--accent); }
.tl-pick { grid-row: 1 / -1; z-index: 2; margin: -12px 0 -14px; background: rgba(242,240,240,.07); border-inline: 2px dashed rgba(242,240,240,.6); pointer-events: none; }
.tl-pick[hidden] { display: none; }
.tl-row { z-index: 1; }

/* Subtle coaching banner under the calendar. */
.promo { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px 16px; background: linear-gradient(90deg, rgba(111,34,50,.45), rgba(35,35,38,.6) 55%); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; }
.promo img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.promo p { flex: 1; margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.promo strong { color: #fff; }
.promo-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.promo-link { color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.promo-link:hover { color: var(--accent-text); }
.promo-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; }
.promo-cta:hover { background: #D91E55; }
@media (max-width: 760px) {
  .promo { flex-wrap: wrap; gap: 12px; }
  .promo img { width: 48px; height: 48px; }
  .promo p { flex-basis: calc(100% - 64px); font-size: 13px; }
  .promo-actions { width: 100%; justify-content: space-between; }
  .promo-cta { flex: 1; justify-content: center; }
}
