:root {
  --bg: #fbfdfc;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-solid: #ffffff;
  --soft: #f4f8f6;
  --text: #121614;
  --muted: #69736e;
  --subtle: #9aa7a1;
  --line: rgba(18, 22, 20, 0.09);
  --green: #16b978;
  --green-dark: #0b8c59;
  --shadow: 0 28px 80px rgba(38, 56, 48, 0.09);
  --blue: #3478f6;
  --teal: #13a37d;
  --orange: #d87919;
  --purple: #8457e5;
  --red: #e0445e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(22, 185, 120, 0.08), transparent 24rem),
    radial-gradient(circle at 82% 0%, rgba(52, 120, 246, 0.06), transparent 24rem),
    linear-gradient(rgba(18, 22, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 20, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
  font-family:
    Inter, "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.radar-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
}

.brand,
.radar-topbar nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-size: 14px;
  font-weight: 760;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 28px rgba(22, 185, 120, 0.22);
}

.radar-topbar nav {
  color: #56615c;
  font-size: 13px;
  font-weight: 680;
}

.radar-topbar nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

.radar-topbar nav a:hover {
  color: var(--green-dark);
  background: rgba(22, 185, 120, 0.1);
}

main {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 46vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
  gap: 32px;
  padding: 86px 0 42px;
}

.hero-copy {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.08;
  font-weight: 720;
  text-wrap: balance;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.mode-switch {
  width: fit-content;
  display: inline-flex;
  gap: 4px;
  margin-top: 26px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(38, 56, 48, 0.07);
}

.mode-switch button {
  min-width: 76px;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
}

.mode-switch button.active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(22, 185, 120, 0.18);
}

.month-switch {
  width: fit-content;
  display: inline-flex;
  gap: 4px;
  margin: 10px 0 0 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.month-switch button {
  min-width: 54px;
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
}

.month-switch button.active {
  color: var(--green-dark);
  background: rgba(22, 185, 120, 0.12);
}

.month-card,
.calendar-panel,
.briefing-card,
.major-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.month-card {
  padding: 24px;
}

.month-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 760;
}

.month-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.55;
  font-weight: 720;
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
  align-items: start;
  padding: 10px 0 44px;
}

.calendar-panel {
  min-width: 0;
  padding: 18px;
}

.panel-head,
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.panel-head h2,
.major-section h2,
.briefing-card h2,
.section-title h3 {
  margin: 0;
  font-weight: 720;
}

.panel-head h2,
.major-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  max-width: 520px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #59645f;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 680;
  transition:
    opacity 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.legend-item:hover,
.legend-item.active {
  border-color: rgba(22, 185, 120, 0.34);
  background: #fff;
  transform: translateY(-1px);
}

.legend-item.active {
  color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(38, 56, 48, 0.08);
}

.color-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  gap: 8px;
  margin: 26px 0 8px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 720;
  text-align: center;
}

.hidden {
  display: none !important;
}

.calendar-grid {
  gap: 8px;
}

.calendar-grid.year-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.day {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.day.empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.36);
}

.day-number {
  color: #919b96;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1;
}

.event-pill {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  overflow: hidden;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.event-pill:hover,
.event-pill.active {
  transform: translateY(-1px);
  border-color: rgba(22, 185, 120, 0.32);
  background: #fff;
}

.event-pill.is-upcoming {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.58);
}

.event-status {
  color: var(--green-dark) !important;
}

.event-pill.is-muted-by-filter,
.month-game.is-muted-by-filter,
.major-card.is-muted-by-filter,
.day-summary-item.is-muted-by-filter,
.period-bar.is-muted-by-filter {
  opacity: 0.28;
  filter: grayscale(1);
  box-shadow: none;
}

.event-pill.is-muted-by-filter:hover,
.month-game.is-muted-by-filter:hover {
  opacity: 0.5;
}

.legend-item.is-muted-by-filter {
  opacity: 0.42;
}

.event-color {
  background: var(--green);
}

.event-title {
  min-width: 0;
  padding: 7px 7px 7px 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.event-title span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-pill {
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
}

.more-pill:hover {
  background: #fff;
  border-color: rgba(22, 185, 120, 0.32);
}

.year-month-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.year-month-card.empty-month {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.36);
}

.month-open {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.month-open span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 760;
}

.month-open strong {
  min-height: 56px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 760;
}

.month-open em {
  color: var(--subtle);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.month-game-list {
  display: grid;
  gap: 7px;
  margin-top: auto;
}

.dense-month .month-game-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.month-game {
  min-width: 0;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  text-align: left;
}

.dense-month .month-game {
  min-height: 25px;
  gap: 6px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 1.25;
}

.month-game span:last-child {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.month-game:hover,
.month-game.active {
  background: #fff;
  border-color: rgba(22, 185, 120, 0.32);
}

.period-bar {
  margin-top: auto;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 7px;
  color: #53605a;
  background: linear-gradient(135deg, rgba(22, 185, 120, 0.09), rgba(255, 255, 255, 0.72));
  font-size: 11px;
  line-height: 1.35;
  font-weight: 720;
}

.period-bar span {
  display: block;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 680;
}

.side-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding-right: 2px;
}

.briefing-card {
  padding: 20px;
}

.briefing-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.briefing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.sab-standard {
  display: block;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  color: #41504a;
  background: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 680;
}

.section-title {
  margin-bottom: 14px;
}

.section-title h3 {
  font-size: 18px;
}

.section-title span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 760;
}

.storyline-list {
  display: grid;
  gap: 10px;
}

.storyline-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.storyline-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.storyline-item p {
  font-size: 12px;
  line-height: 1.65;
}

.storyline-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.storyline-dates span,
.detail-tag {
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--tag-color, var(--green-dark));
  background: color-mix(in srgb, var(--tag-color, var(--green)) 12%, transparent);
  font-size: 10px;
  font-weight: 760;
}

.event-detail {
  display: grid;
  gap: 12px;
}

.event-detail h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.25;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-block {
  padding-left: 12px;
  border-left: 3px solid var(--green);
}

.detail-block span {
  display: block;
  margin-bottom: 4px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 760;
}

.source-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 760;
}

.day-summary-list {
  display: grid;
  gap: 12px;
}

.day-summary-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.day-summary-item strong {
  font-size: 15px;
  line-height: 1.35;
}

.day-summary-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.major-section {
  padding: 34px 0 82px;
}

.major-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.major-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.major-card time {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 760;
}

.major-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.major-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.major-card .award-note {
  padding: 10px 11px;
  border-left: 3px solid var(--green);
  border-radius: 7px;
  color: #41504a;
  background: rgba(22, 185, 120, 0.08);
  font-weight: 680;
}

.major-card .impact-note {
  padding: 9px 10px;
  border-radius: 7px;
  color: #41504a;
  background: var(--soft);
  font-weight: 680;
}

.major-card .source-link {
  margin-top: auto;
}

@media (max-width: 1180px) {
  .hero,
  .radar-layout {
    grid-template-columns: 1fr;
  }

  .month-card {
    max-width: 760px;
  }

  .side-panel {
    position: static;
    max-height: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .major-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  main {
    width: min(100% - 24px, 1480px);
  }

  .radar-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .radar-topbar nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 28px;
  }

  .panel-head {
    display: grid;
  }

  .legend {
    justify-content: start;
  }

  .weekday-row {
    gap: 5px;
    font-size: 11px;
  }

  .calendar-grid {
    gap: 5px;
  }

  .calendar-grid.year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day {
    min-height: 94px;
    padding: 7px;
  }

  .day-number {
    font-size: 18px;
  }

  .event-pill {
    min-height: 24px;
    grid-template-columns: 3px 1fr;
    gap: 5px;
  }

  .event-title {
    padding: 5px 5px 5px 0;
    font-size: 10px;
  }

  .event-title span {
    display: none;
  }

  .more-pill {
    min-height: 22px;
    font-size: 10px;
  }

  .period-bar {
    padding: 5px;
    font-size: 10px;
  }

  .year-month-card {
    min-height: 210px;
    padding: 12px;
  }

  .dense-month .month-game-list {
    grid-template-columns: 1fr;
  }

  .dense-month .month-game {
    min-height: 28px;
    font-size: 11px;
  }

  .month-open strong {
    min-height: auto;
    font-size: 18px;
  }

  .side-panel,
  .major-grid {
    grid-template-columns: 1fr;
  }
}
