.event-roadmap-page {
  width: min(1380px, calc(100vw - 32px));
  max-width: 1380px;
  margin: 0 auto 28px;
  display: grid;
  gap: 18px;
}

.event-roadmap-toolbar-card,
.event-roadmap-section,
.event-roadmap-empty {
  overflow: hidden;
}

.event-roadmap-title-wrap {
  padding: 8px 0 2px;
}

.event-roadmap-title {
  margin: 0;
  text-align: center;
}

.event-roadmap-toolbar-card {
  padding: 16px 18px;
}

.event-roadmap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  flex-wrap: wrap;
}

.event-roadmap-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-roadmap-summary-btn {
  appearance: none;
  border: 1px solid rgba(156, 116, 84, 0.22);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 246, 238, 0.98) 100%
    );
  color: var(--text-strong, #4b3f34);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 8px 16px rgba(141, 109, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform 0.14s ease,
    filter 0.14s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease;
}

.event-roadmap-summary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
  border-color: rgba(156, 116, 84, 0.32);
}

.event-roadmap-summary-btn:focus-visible {
  outline: 2px solid rgba(156, 116, 84, 0.55);
  outline-offset: 2px;
}

.event-roadmap-section {
  padding: 20px 22px 22px;
}

.event-roadmap-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.event-roadmap-section-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(110, 82, 58, 0.75);
}

.event-roadmap-section-title {
  margin: 0;
}

.event-roadmap-section-caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted, #7a6857);
}

.event-roadmap-timeline-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.event-roadmap-timeline {
  min-width: 980px;
}

/* -------------------------------------------------------------------------- */
/* Desktop timeline                                                            */
/* -------------------------------------------------------------------------- */

.roadmap-timeline-root {
  min-width: 1180px;
}

.roadmap-timeline-header {
  display: flex;
  align-items: stretch;
  min-width: 100%;
  margin-bottom: 18px;
  border: 1px solid rgba(156, 116, 84, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 249, 244, 0.95) 100%
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.roadmap-timeline-month {
  position: relative;
  flex: 0 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(84, 64, 47, 0.88);
  white-space: nowrap;
  border-right: 1px solid rgba(156, 116, 84, 0.12);
}

.roadmap-timeline-month:last-child {
  border-right: 0;
}

.roadmap-timeline-body {
  position: relative;
  display: grid;
  gap: 12px;
}

.roadmap-timeline-row {
  position: relative;
  min-height: 56px;
  border: 1px solid rgba(156, 116, 84, 0.14);
  border-radius: 16px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.58) 0,
      rgba(255, 255, 255, 0.58) 72px,
      rgba(156, 116, 84, 0.045) 72px,
      rgba(156, 116, 84, 0.045) 73px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.86) 0%,
      rgba(255, 248, 242, 0.94) 100%
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.roadmap-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 10px 18px rgba(141, 109, 82, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-align: center;
  background: linear-gradient(90deg, #ece6e1 0%, #f3efeb 100%);
  color: #574a3f;
  transition:
    transform 0.14s ease,
    filter 0.14s ease,
    box-shadow 0.14s ease;
}

.roadmap-bar:hover {
  transform: translateY(-50%) scale(1.01);
  filter: brightness(1.01);
}

.roadmap-bar:focus-visible {
  outline: 2px solid rgba(156, 116, 84, 0.55);
  outline-offset: 2px;
}

.roadmap-bar-inner {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-bar-title {
  display: inline-block;
  width: 100%;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 상태별 기본색 */
.roadmap-status--ongoing {
  color: #6d4219;
  border-color: rgba(190, 141, 86, 0.28);
  background:
    linear-gradient(
      90deg,
      rgba(255, 219, 170, 0.98) 0%,
      rgba(252, 228, 191, 0.97) 58%,
      rgba(248, 221, 182, 0.96) 100%
    );
}

.roadmap-status--upcoming {
  color: #4c5193;
  border-color: rgba(129, 138, 212, 0.26);
  background:
    linear-gradient(
      90deg,
      rgba(212, 219, 255, 0.98) 0%,
      rgba(224, 229, 255, 0.97) 58%,
      rgba(216, 222, 252, 0.96) 100%
    );
}

.roadmap-status--ended {
  color: #675d52;
  border-color: rgba(163, 148, 136, 0.24);
  background:
    linear-gradient(
      90deg,
      rgba(223, 216, 210, 0.98) 0%,
      rgba(230, 224, 219, 0.97) 58%,
      rgba(224, 217, 211, 0.96) 100%
    );
}

/* 톤별 미세 보정 */
.roadmap-bar--pink.roadmap-status--ongoing {
  background:
    linear-gradient(
      90deg,
      rgba(255, 224, 207, 0.98) 0%,
      rgba(255, 232, 220, 0.97) 58%,
      rgba(252, 220, 201, 0.96) 100%
    );
}

.roadmap-bar--mint.roadmap-status--ongoing {
  background:
    linear-gradient(
      90deg,
      rgba(208, 241, 230, 0.98) 0%,
      rgba(220, 246, 237, 0.97) 58%,
      rgba(210, 239, 229, 0.96) 100%
    );
  color: #345e52;
}

.roadmap-bar--purple.roadmap-status--ongoing {
  background:
    linear-gradient(
      90deg,
      rgba(229, 221, 255, 0.98) 0%,
      rgba(238, 232, 255, 0.97) 58%,
      rgba(229, 223, 251, 0.96) 100%
    );
  color: #5b4b8d;
}

.roadmap-bar--brown.roadmap-status--ongoing {
  background:
    linear-gradient(
      90deg,
      rgba(236, 222, 206, 0.98) 0%,
      rgba(242, 231, 219, 0.97) 58%,
      rgba(233, 218, 201, 0.96) 100%
    );
  color: #6a4f39;
}

.roadmap-bar--green.roadmap-status--ongoing {
  background:
    linear-gradient(
      90deg,
      rgba(216, 241, 209, 0.98) 0%,
      rgba(226, 246, 220, 0.97) 58%,
      rgba(217, 239, 208, 0.96) 100%
    );
  color: #47673b;
}

.roadmap-bar--gray {
  color: #61584f;
}

/* -------------------------------------------------------------------------- */
/* Mobile cards                                                                */
/* -------------------------------------------------------------------------- */

.event-roadmap-mobile-list {
  display: none;
}

.roadmap-mobile-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(156, 116, 84, 0.16);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 249, 244, 0.95) 100%
    );
}

.roadmap-mobile-card + .roadmap-mobile-card {
  margin-top: 14px;
}

.roadmap-mobile-card-head {
  margin-bottom: 12px;
}

.roadmap-mobile-title-wrap {
  display: grid;
  gap: 8px;
}

.roadmap-mobile-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  color: var(--text-strong, #43362b);
  word-break: keep-all;
}

.roadmap-mobile-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.roadmap-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.roadmap-status-badge--ongoing {
  color: #7d4f21;
  background: rgba(255, 224, 182, 0.9);
}

.roadmap-status-badge--upcoming {
  color: #5d5f95;
  background: rgba(223, 225, 255, 0.92);
}

.roadmap-status-badge--ended {
  color: #6f6255;
  background: rgba(230, 223, 216, 0.94);
}

.roadmap-mobile-period,
.roadmap-mobile-description {
  margin: 0;
}

.roadmap-mobile-period {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted, #7a6857);
}

.roadmap-mobile-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-strong, #4a3c2f);
}

.event-roadmap-empty {
  padding: 28px 22px;
  text-align: center;
}

.event-roadmap-empty .h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.event-roadmap-empty .p {
  margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Summary modal                                                               */
/* -------------------------------------------------------------------------- */

body.event-summary-open {
  overflow: hidden;
}

.event-summary-modal[hidden] {
  display: none;
}

.event-summary-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.event-summary-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 31, 18, 0.48);
  backdrop-filter: blur(2px);
}

.event-summary-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 16px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(156, 116, 84, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 249, 244, 0.98) 100%
    );
  box-shadow:
    0 24px 60px rgba(59, 41, 25, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
}

.event-summary-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(156, 116, 84, 0.12);
}

.event-summary-modal__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(110, 82, 58, 0.72);
}

.event-summary-modal__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-strong, #43362b);
}

.event-summary-modal__close {
  appearance: none;
  border: 1px solid rgba(156, 116, 84, 0.18);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 247, 240, 0.98) 100%
    );
  color: var(--text-strong, #4b3f34);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.event-summary-modal__close:focus-visible {
  outline: 2px solid rgba(156, 116, 84, 0.55);
  outline-offset: 2px;
}

.event-summary-modal__body {
  padding: 10px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-summary-modal__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid rgba(156, 116, 84, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1024px) {
  .event-roadmap-page {
    width: min(100%, calc(100vw - 24px));
  }

  .roadmap-timeline-root {
    min-width: 1040px;
  }
}

@media (max-width: 768px) {
  .event-roadmap-page {
    width: min(100%, calc(100vw - 20px));
    gap: 14px;
  }

  .event-roadmap-title-wrap {
    padding-top: 4px;
  }

  .event-roadmap-toolbar-card,
  .event-roadmap-section,
  .event-roadmap-empty {
    padding-left: 16px;
    padding-right: 16px;
  }

  .event-roadmap-toolbar {
    align-items: stretch;
  }

  .event-roadmap-toolbar-group {
    width: 100%;
    gap: 8px;
  }

  .event-roadmap-toolbar-group .feature-shortcut-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .event-roadmap-summary-btn {
    width: 100%;
    justify-content: center;
  }

  .event-roadmap-section-head {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .event-roadmap-timeline {
    display: none;
  }

  .event-roadmap-mobile-list {
    display: block;
  }

  .event-roadmap-section-kicker {
    font-size: 11px;
  }

  .roadmap-mobile-card {
    border-radius: 18px;
    padding: 16px;
  }

  .roadmap-mobile-title {
    font-size: 18px;
  }

  .roadmap-mobile-period,
  .roadmap-mobile-description {
    font-size: 14px;
  }

  .event-summary-modal__dialog {
    width: min(100vw - 20px, 1080px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    border-radius: 22px;
  }

  .event-summary-modal__head {
    padding: 16px 16px 14px;
  }

  .event-summary-modal__title {
    font-size: 22px;
  }

  .event-summary-modal__body {
    padding: 14px;
  }

  .event-summary-modal__image {
    border-radius: 16px;
  }
}

/* 다크모드 */
html[data-theme="dark"] .event-roadmap-summary-btn {
  background: linear-gradient(180deg, rgba(42, 37, 30, 0.98) 0%, rgba(36, 32, 25, 0.98) 100%);
  border-color: rgba(74, 64, 53, 0.5);
  color: var(--text);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .event-roadmap-summary-btn:hover {
  border-color: rgba(74, 64, 53, 0.7);
}

html[data-theme="dark"] .event-roadmap-section-kicker {
  color: rgba(232, 212, 184, 0.75);
}

html[data-theme="dark"] .event-roadmap-summary-btn:focus-visible {
  outline-color: rgba(107, 168, 168, 0.6);
}

html[data-theme="dark"] .event-roadmap-section-caption {
  color: var(--muted);
}

html[data-theme="dark"] .roadmap-timeline-header {
  background: linear-gradient(180deg, #242019 0%, #2a251e 100%);
  border-color: rgba(74, 64, 53, 0.5);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .roadmap-timeline-month {
  color: rgba(232, 212, 184, 0.85);
  border-right-color: rgba(74, 64, 53, 0.4);
}

html[data-theme="dark"] .roadmap-timeline-row {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(42, 37, 30, 0.6) 0,
      rgba(42, 37, 30, 0.6) 72px,
      rgba(74, 64, 53, 0.15) 72px,
      rgba(74, 64, 53, 0.15) 73px
    ),
    linear-gradient(180deg, #2a251e 0%, #242019 100%);
  border-color: rgba(74, 64, 53, 0.5);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .roadmap-bar {
  background: linear-gradient(90deg, #3d352c 0%, #4a4035 100%);
  color: #e8d4b8;
  border-color: rgba(74, 64, 53, 0.6);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .roadmap-bar:focus-visible {
  outline-color: rgba(107, 168, 168, 0.6);
}

html[data-theme="dark"] .roadmap-status--ongoing {
  color: #e8d4b8;
  border-color: rgba(107, 168, 168, 0.4);
  background: linear-gradient(90deg, rgba(107, 168, 168, 0.25) 0%, rgba(107, 168, 168, 0.2) 58%, rgba(107, 168, 168, 0.18) 100%);
}

html[data-theme="dark"] .roadmap-status--upcoming {
  color: #b8b4d4;
  border-color: rgba(129, 138, 212, 0.35);
  background: linear-gradient(90deg, rgba(100, 110, 180, 0.3) 0%, rgba(90, 100, 170, 0.25) 58%, rgba(85, 95, 165, 0.22) 100%);
}

html[data-theme="dark"] .roadmap-status--ended {
  color: #a89f94;
  border-color: rgba(120, 110, 100, 0.35);
  background: linear-gradient(90deg, rgba(60, 55, 50, 0.6) 0%, rgba(55, 50, 45, 0.55) 58%, rgba(50, 46, 42, 0.5) 100%);
}

html[data-theme="dark"] .roadmap-bar--pink.roadmap-status--ongoing {
  background: linear-gradient(90deg, rgba(180, 120, 130, 0.35) 0%, rgba(170, 110, 120, 0.3) 58%, rgba(160, 100, 110, 0.25) 100%);
}

html[data-theme="dark"] .roadmap-bar--mint.roadmap-status--ongoing {
  background: linear-gradient(90deg, rgba(80, 140, 120, 0.35) 0%, rgba(70, 130, 110, 0.3) 58%, rgba(65, 125, 105, 0.25) 100%);
  color: #8ed6c4;
}

html[data-theme="dark"] .roadmap-bar--purple.roadmap-status--ongoing {
  background: linear-gradient(90deg, rgba(120, 100, 160, 0.35) 0%, rgba(110, 90, 150, 0.3) 58%, rgba(100, 80, 140, 0.25) 100%);
  color: #c4b8e0;
}

html[data-theme="dark"] .roadmap-bar--brown.roadmap-status--ongoing {
  background: linear-gradient(90deg, rgba(140, 110, 90, 0.35) 0%, rgba(130, 100, 80, 0.3) 58%, rgba(120, 95, 75, 0.25) 100%);
}

html[data-theme="dark"] .roadmap-bar--green.roadmap-status--ongoing {
  background: linear-gradient(90deg, rgba(80, 130, 90, 0.35) 0%, rgba(70, 120, 80, 0.3) 58%, rgba(65, 115, 75, 0.25) 100%);
  color: #9ed6a8;
}

html[data-theme="dark"] .roadmap-bar--gray {
  color: #a89f94;
}

html[data-theme="dark"] .roadmap-mobile-card {
  background: linear-gradient(180deg, #2a251e 0%, #242019 100%);
  border-color: rgba(74, 64, 53, 0.5);
}

html[data-theme="dark"] .roadmap-mobile-title {
  color: var(--title);
}

html[data-theme="dark"] .roadmap-mobile-period,
html[data-theme="dark"] .roadmap-mobile-description {
  color: var(--text);
}

html[data-theme="dark"] .roadmap-status-badge--ongoing {
  color: #e8d4b8;
  background: rgba(107, 168, 168, 0.25);
}

html[data-theme="dark"] .roadmap-status-badge--upcoming {
  color: #b8b4d4;
  background: rgba(100, 110, 180, 0.3);
}

html[data-theme="dark"] .roadmap-status-badge--ended {
  color: #a89f94;
  background: rgba(80, 75, 70, 0.5);
}