:root {
  --bg: #140919;
  --bg-soft: rgba(255,255,255,0.08);
  --text: #fff7fd;
  --muted: rgba(255,247,253,0.72);
  --primary: #ff5cb8;
  --primary-2: #b257ff;
  --accent: #ffb466;
  --line: rgba(255,255,255,0.12);
  --shadow: 0 24px 80px rgba(0,0,0,0.28);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 92, 184, 0.25), transparent 28%),
    radial-gradient(circle at top right, rgba(178, 87, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #1a0d21 0%, #120814 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

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

.theme_event {
  overflow-x: hidden;
}

.page_home {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  position: relative;
  padding-top: 12px;
}

.hero_glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}

.hero_glow_a {
  width: 280px;
  height: 280px;
  background: rgba(255, 92, 184, 0.55);
  top: 40px;
  left: -40px;
}

.hero_glow_b {
  width: 300px;
  height: 300px;
  background: rgba(178, 87, 255, 0.45);
  top: 40px;
  right: -40px;
}

.hero_inner {
  position: relative;
  z-index: 1;
}

.brand_row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.brand_logo {
  width: 84px;
  height: 84px;
}

.tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffe0f4;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero_grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
}

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.06));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card_event {
  padding: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 180, 102, 0.35), rgba(255, 92, 184, 0.25));
  color: #fff4e8;
  font-weight: 700;
  font-size: 0.92rem;
}

.card_event h2 {
  margin: 18px 0 10px;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  line-height: 1.1;
}

.card_event p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.countdown div {
  padding: 18px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  text-align: center;
}

.countdown strong {
  display: block;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.countdown span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.event_points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.event_points div {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
}

.event_points span {
  font-size: 1.4rem;
}

.event_points p {
  margin: 0;
  font-size: 0.95rem;
}

.event_points strong {
  color: #fff3fb;
}

.poster_card {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster_card img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.section_split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  margin-top: 20px;
}

.info_card {
  padding: 24px;
}

.info_card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.info_card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.runner_form {
  display: grid;
  gap: 14px;
}

.runner_form label {
  display: grid;
  gap: 8px;
}

.runner_form span {
  font-size: 0.95rem;
  font-weight: 600;
}

input, select, button {
  font: inherit;
}

input, select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 15px;
  outline: none;
}

select option {
  color: #1b1020;
}

.btn_primary,
.btn_secondary,
.btn_light {
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
  font-weight: 700;
}

.btn_primary:hover,
.btn_secondary:hover,
.btn_light:hover {
  transform: translateY(-1px);
}

.btn_primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: white;
}

.btn_secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn_light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
}

.form_feedback {
  min-height: 20px;
  margin: 0;
  color: #ffe3f2;
}

.detail_list {
  display: grid;
  gap: 12px;
}

.detail_list div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
}

.detail_list span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.notes_block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
}

.notes_block h4 {
  margin: 0 0 8px;
}

.map_page {
  min-height: 100vh;
}

.map_shell {
  width: min(1180px, calc(100% - 22px));
  margin: 12px auto;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: calc(100vh - 24px);
}

.map_header,
.map_stats,
.map_footer {
  padding: 14px 16px;
}

.map_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map_header_left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.map_header_left p {
  margin: 2px 0 0;
  color: var(--muted);
}

.mini_logo {
  width: 44px;
  height: 44px;
}

.map_stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.map_stats div {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
}

.map_stats span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

#map {
  width: 100%;
  min-height: 60vh;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map_footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 980px) {
  .hero_grid,
  .section_split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page_home {
    width: min(100%, calc(100% - 16px));
    padding-top: 10px;
  }

  .brand_row {
    align-items: flex-start;
  }

  .brand_logo {
    width: 64px;
    height: 64px;
  }

  .card_event,
  .info_card,
  .map_header,
  .map_stats,
  .map_footer {
    padding: 18px;
  }

  .countdown,
  .event_points,
  .map_stats,
  .map_footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .countdown,
  .event_points,
  .map_stats,
  .map_footer {
    grid-template-columns: 1fr;
  }

  .map_header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}
