.event-detail-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--container-gutter) 28px;
  border-radius: 30px;
  background:
    radial-gradient(860px 300px at 0% 0%, rgba(255, 79, 147, 0.1), transparent 68%),
    radial-gradient(760px 300px at 100% 0%, rgba(6, 185, 109, 0.11), transparent 68%),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 44px rgba(45, 65, 56, 0.08);
}

.event-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-detail-back {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(125, 151, 138, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: #3f5650;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 11px;
}

.event-detail-back:hover {
  color: #175138;
  border-color: rgba(154, 185, 171, 0.6);
}

.event-detail-code {
  color: #61776d;
  font-family: var(--font-headline), sans-serif;
}

.event-detail-card {
  margin-top: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(123, 147, 136, 0.17),
    0 14px 24px rgba(45, 68, 58, 0.08);
  padding: 16px;
}

.event-detail-cover {
  width: 100%;
  height: min(320px, 40vw);
  min-height: 180px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(123, 147, 136, 0.16);
  object-fit: cover;
  background: #f8fffb;
}

.event-detail-cover-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(255, 236, 244, 0.95), rgba(236, 249, 242, 0.96));
  color: #ef4f8f;
  font-family: var(--font-headline), sans-serif;
  letter-spacing: 0.1em;
}

.event-detail-card h1 {
  margin-top: 10px;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.08;
  color: #3f2f72;
}

.event-detail-collectible-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-detail-collectible-sprite {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(119, 146, 133, 0.2);
  background-color: rgba(255, 255, 255, 0.96);
  image-rendering: pixelated;
}

.event-detail-collectible {
  color: #647a72;
  font-size: 16px;
}

.event-detail-status {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  white-space: nowrap;
}

.events-status-active {
  color: #0d8f52;
  background: rgba(7, 192, 111, 0.16);
}

.events-status-upcoming {
  color: #2f7cc8;
  background: rgba(78, 145, 231, 0.16);
}

.events-status-ended {
  color: #6a7683;
  background: rgba(139, 151, 168, 0.16);
}

.event-detail-block {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(205, 220, 212, 0.72);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
}

.event-detail-block h2 {
  margin: 0;
  font-family: var(--font-headline), sans-serif;
  font-size: 24px;
  color: #3f2f72;
}

.event-detail-empty {
  margin-top: 8px;
  color: #738896;
  font-size: 13px;
}

.event-detail-period-list {
  list-style: none;
  margin-top: 8px;
  display: grid;
  gap: 6px;
  color: #2f4039;
}

.event-detail-related-grid {
  list-style: none;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.event-detail-related-card {
  border-radius: 12px;
  background: rgba(243, 255, 249, 0.88);
  box-shadow: inset 0 0 0 1px rgba(17, 168, 100, 0.16);
  padding: 7px;
}

.event-detail-related-link {
  color: #264138;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-detail-related-sprite {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(118, 145, 132, 0.2);
  background-color: rgba(255, 255, 255, 0.98);
  image-rendering: pixelated;
}

.event-detail-related-sprite-empty {
  background: #e7eef5;
}

.event-detail-link-list {
  list-style: none;
  margin-top: 8px;
  color: #344741;
}

.event-detail-news-link {
  color: #159a5f;
  margin-left: 8px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .event-detail-page {
    border-radius: 18px;
    padding: 12px 12px 22px;
  }

  .event-detail-card h1 {
    font-size: 42px;
  }

  .event-detail-cover {
    height: min(260px, 56vw);
  }

  .event-detail-related-grid {
    grid-template-columns: 1fr;
  }
}
