.roadmap-page {
  --panel: #30263bcc;
  --border: #d8bbf136;
  --muted: #cabbd4;
  --accent: #d9b6fa;
  --done: #a9e1c4;
  line-height: 1.5;
}

.roadmap-page .wrap { padding-bottom: 24px; }
.roadmap-page .brand>.icon { filter: invert(85%) sepia(24%) saturate(2332%) hue-rotate(199deg) brightness(102%); }
.roadmap-page .top { padding-block: 10px; }
.roadmap-page nav [aria-current] { background: #c4a3ef25; color: #f2ddff; }
.roadmap-hero {
  display: flex;
  align-items: center;
  min-height: 117px;
  margin-top: 14px;
  padding: 18px clamp(18px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(90deg, #34263f 24%, #352741b0 56%, #392a4b10),
    url("moonlit-trail.webp") right 40% / min(62%, 680px) auto no-repeat #34263f;
}

.roadmap-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -.06em;
}

.season, .community { margin-top: 18px; }
.season h2, .community h2 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 9px; }
.timeline, .goals { list-style: none; margin: 0; padding: 0; }
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1.28fr;
  gap: 12px;
}

.event {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}

.event img {
  box-sizing: border-box;
  display: block;
  flex: none;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #443254;
}

.event-passed img { border-color: #8ad5a67d; }
.event h3 { font-size: 17px; letter-spacing: -.027em; }
.event time, .event p { display: block; color: var(--muted); font-size: 14px; }
.event-passed time { color: var(--done); }
.event:target, .goals li:target { outline: 2px solid var(--accent); outline-offset: 2px; }

.goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.goal-track {
  min-width: 0;
  padding: 12px clamp(12px, 2vw, 19px) 13px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--panel);
}

.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.goal-top h3 { font-size: 18px; }
.total { font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.total strong { color: var(--accent); font-size: clamp(22px, 3.8vw, 32px); line-height: 1.1; letter-spacing: -.035em; }
.total span { color: var(--muted); }
.funding .total strong { color: #f5d1a3; }

.segments { display: grid; gap: 4px; margin: 9px 0 10px; }
.vote-segments { grid-template-columns: 100fr 150fr 250fr; }
.funding-segments { grid-template-columns: 2000fr 2000fr 3500fr; }
.segments progress { appearance: none; width: 100%; height: 9px; border: 0; border-radius: 6px; overflow: hidden; background: #574762; }
.segments progress::-webkit-progress-bar { background: #574762; }
.segments progress::-webkit-progress-value { background: #b790f1; border-radius: 6px; }
.segments progress::-moz-progress-bar { background: #b790f1; border-radius: 6px; }
.funding-segments progress::-webkit-progress-value { background: #ecc298; }
.funding-segments progress::-moz-progress-bar { background: #ecc298; }

.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.goals li {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #211a2b75;
  overflow-wrap: anywhere;
}
.goals li[aria-current] { border-color: #ba9cde87; background: #775e9d32; }
.goals li.reached { border-color: #98d8af68; background: #74a89217; }
.goals li > * { display: block; }
.threshold { color: var(--accent); font-size: 12px; font-weight: 800; }
.funding .threshold { color: #f5d1a3; }
.goals strong { font-size: 14px; line-height: 1.3; margin-top: 2px; }
.goals time { margin-top: 3px; color: var(--done); font-size: 12px; }

.roadmap-page .track-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 15px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.track-footer a { color: #e5cff6; text-decoration: underline; text-underline-offset: 3px; }
.track-footer a:hover { color: #f9eaff; }

@media (max-width: 880px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline li:last-child { grid-column: 1 / -1; }
  .goals strong { font-size: 13px; }
}
@media (max-width: 700px) {
  .goal-grid { grid-template-columns: 1fr; }
  .roadmap-hero { min-height: 95px; background-size: auto, auto 170%, auto; }
  .roadmap-page .top nav { display: flex; justify-content: space-between; flex-wrap: wrap; }
  .roadmap-page .top nav a { min-height: 38px; padding: 5px 7px; font-size: 12px; }
}
@media (max-width: 460px) {
  .event { padding: 10px; gap: 8px; }
  .event img { width: 36px; height: 36px; border-radius: 10px; }
  .event h3 { line-height: 1.15; margin-bottom: 4px; font-size: 15px; }
  .event time, .event p { font-size: 12px; }
  .timeline { gap: 7px; }
  .goal-top { align-items: center; }
}
