/* =========================================================

   CTF — PAGE-SPECIFIC STYLES

   Shared chrome (navbar, footer, section headers, service
   cards, final CTA) lives in assets/css/chrome.css.

========================================================= */

.hero-ascii {

  font-family: "IBM Plex Mono", monospace;

  font-size: 12px;

  color: var(--muted);

  margin-bottom: 24px;

  white-space: pre-wrap;

}

.prompt-line {

  margin-top: 30px;

  font-family: "IBM Plex Mono", monospace;

  font-size: 13px;

  color: var(--soft);

  padding: 14px 18px;

  border: 1px solid var(--border);

  border-radius: 4px;

  background: var(--surface);

  max-width: 620px;

}

.prompt-line .ph {

  color: var(--accent);

  margin-right: 8px;

}

.prompt-line .pp {

  color: #69D69B;

}

.prompt-line .cur {

  display: inline-block;

  width: 7px;

  height: 13px;

  background: var(--accent);

  margin-left: 4px;

  animation: blink 1s step-end infinite;

  vertical-align: middle;

}

@keyframes blink {

  0%, 45% { opacity: 1; }

  46%, 100% { opacity: 0; }

}


/* ---- Event overview ---- */

/* Wrapper introduced with the shared countdown helper
   (assets/js/countdown.js). It carries data-state, which
   decides whether the number boxes or the notice below
   them is visible. */
.countdown-wrap {
  margin-top: 40px;
}

.countdown-boxes {
  display: flex;

  justify-content: center;

  gap: 18px;
}

.countdown-state {
  display: none;

  max-width: 560px;

  margin: 0 auto;

  padding: 22px 24px;

  border: 1px solid var(--border);

  border-left: 2px solid var(--accent);

  border-radius: 4px;

  background: var(--bg);

  color: var(--soft);

  font-size: 12.5px;

  line-height: 1.8;
}

.countdown-wrap[data-state="tba"] .countdown-boxes,
.countdown-wrap[data-state="live"] .countdown-boxes {
  display: none;
}

.countdown-wrap[data-state="tba"] .state-tba,
.countdown-wrap[data-state="live"] .state-live {
  display: block;
}

.event-hero {

  text-align: center;

  padding: 50px;

  border: 1px solid var(--border);

  border-radius: 8px;

  background: var(--surface);

}

.event-badge {

  display: inline-block;

  padding: 6px 14px;

  border: 1px solid var(--accent);

  border-radius: 20px;

  color: var(--accent);

  font-family: monospace;

  font-size: 11px;

  letter-spacing: 2px;

  margin-bottom: 20px;

}

.event-name {

  font-size: clamp(30px, 4vw, 46px);

  font-weight: 700;

  letter-spacing: -1px;

}

.event-subtitle {

  margin-top: 14px;

  color: var(--soft);

  font-size: 13px;

  max-width: 560px;

  margin-left: auto;

  margin-right: auto;

}

.countdown-box {

  min-width: 80px;

  padding: 16px 10px;

  border: 1px solid var(--border);

  border-radius: 6px;

  background: var(--bg);

}

.countdown-num {

  font-family: monospace;

  font-size: 30px;

  color: var(--accent);

  font-weight: 700;

}

.countdown-lbl {

  margin-top: 4px;

  font-size: 9px;

  letter-spacing: 1.5px;

  color: var(--muted);

  text-transform: uppercase;

}

.hero-actions {

  display: flex;

  justify-content: center;

  gap: 16px;

  margin-top: 36px;

}

/* The closing CTA now offers two routes — competition and
   camp — so its buttons stay centred as a pair. */
.final-cta .hero-actions {

  flex-wrap: wrap;

  margin-top: 34px;

}


/* ---- Event details ---- */

.inline-link {
  display: inline-block;

  margin-top: 22px;

  font-size: 11px;

  letter-spacing: .5px;

  color: var(--accent);

  transition: opacity .2s;
}

.inline-link:hover {
  opacity: .7;
}


/* ---- How to register ---- */

.register-note {
  display: grid;

  grid-template-columns: 1.1fr 1fr;

  gap: 70px;

  align-items: start;
}

.register-note-main h3 {
  font-size: 19px;

  margin-bottom: 18px;
}

.register-note-main p {
  max-width: 560px;

  margin-bottom: 28px;

  color: var(--soft);

  font-size: 13.5px;

  line-height: 1.9;
}

.register-note-main .hero-actions {
  justify-content: flex-start;
}

.step-list {
  counter-reset: step;

  border-top: 1px solid var(--border);
}

.step-list li {
  display: flex;

  gap: 20px;

  padding: 20px 2px;

  border-bottom: 1px solid var(--border);
}

.step-num {
  flex: none;

  font-family: monospace;

  font-size: 11px;

  color: var(--accent);

  padding-top: 2px;
}

.step-list h4 {
  font-size: 14px;

  margin-bottom: 7px;
}

.step-list p {
  color: var(--muted);

  font-size: 11.5px;

  line-height: 1.75;
}


/* ---- Camp teaser ---- */

.camp-teaser {
  display: grid;

  grid-template-columns: 1.25fr .75fr;

  gap: 70px;

  align-items: center;

  padding: 46px;

  border: 1px solid var(--border);

  border-radius: 8px;

  background:
    radial-gradient(80% 120% at 100% 0%, rgba(75,24,120,.22), transparent 60%),
    var(--surface);
}

.teaser-body h3 {
  font-size: 22px;

  letter-spacing: -.3px;
}

.teaser-body > p {
  max-width: 560px;

  margin-top: 18px;

  color: var(--soft);

  font-size: 13.5px;

  line-height: 1.9;
}

.teaser-facts {
  display: flex;

  flex-wrap: wrap;

  gap: 1px;

  margin: 30px 0;

  background: var(--border);

  border: 1px solid var(--border);
}

.teaser-facts li {
  flex: 1 1 130px;

  padding: 16px 18px;

  background: var(--bg);
}

.teaser-facts b {
  display: block;

  font-family: monospace;

  font-size: 20px;

  font-weight: 500;

  color: var(--accent);
}

.teaser-facts span {
  display: block;

  margin-top: 5px;

  font-size: 9.5px;

  letter-spacing: .6px;

  color: var(--muted);
}

.teaser-body .hero-actions {
  justify-content: flex-start;
}

.teaser-visual {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 18px;
}

.teaser-sigil {
  position: relative;

  width: 168px;

  height: 168px;
}

.teaser-sigil svg {
  width: 100%;

  height: 100%;
}

.teaser-sigil .ring-mid {
  fill: none;

  stroke: var(--accent);

  stroke-width: 1;

  stroke-dasharray: 4 8;

  animation: teaserSpin 30s linear infinite;
}

.teaser-sigil .sigil-glyph {
  fill: var(--sigil-fill, rgba(138,79,209,.16));

  stroke: var(--accent);

  stroke-width: 1.4;

  stroke-linejoin: round;
}

.teaser-sigil-num {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  font-family: monospace;

  font-size: 26px;

  color: var(--text);
}

.teaser-caption {
  font-family: monospace;

  font-size: 9px;

  letter-spacing: 3px;

  color: var(--muted);
}

@keyframes teaserSpin {
  to { transform: rotate(360deg); transform-origin: 50% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .teaser-sigil .ring-mid {
    animation: none;
  }
}


/* ---- Two-column (event details) ---- */

.two-column {

  display: grid;

  grid-template-columns: 1.2fr 1fr;

  gap: 60px;

}

.column h3 {

  font-size: 18px;

  margin-bottom: 18px;

}

.column p {

  color: var(--soft);

  font-size: 13.5px;

  line-height: 1.85;

  margin-bottom: 16px;

}

.schedule {

  display: flex;

  flex-direction: column;

  gap: 1px;

  background: var(--border);

  border: 1px solid var(--border);

}

.schedule-item {

  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding: 14px 16px;

  background: var(--bg);

  font-size: 12px;

}

.schedule-item .time {

  color: var(--accent);

  font-family: monospace;

  white-space: nowrap;

}

.schedule-item .event {

  color: var(--soft);

  text-align: right;

}


/* ---- Prizes ---- */

.prizes-grid {

  display: grid;

  grid-template-columns: repeat(4,1fr);

  gap: 1px;

  background: var(--border);

  border: 1px solid var(--border);

}

.prize-card {

  background: var(--bg);

  padding: 30px 22px;

  text-align: center;

}

.prize-rank {

  display: inline-block;

  padding: 5px 12px;

  border-radius: 20px;

  font-family: monospace;

  font-size: 11px;

  color: var(--muted);

  border: 1px solid var(--border);

  margin-bottom: 16px;

}

.prize-rank.gold { color: #E8C468; border-color: #E8C468; }

.prize-rank.silver { color: #C9CDD6; border-color: #C9CDD6; }

.prize-rank.bronze { color: #CE8946; border-color: #CE8946; }

.prize-val {

  font-size: 22px;

  font-weight: 700;

}

.prize-desc {

  margin-top: 10px;

  color: var(--muted);

  font-size: 11.5px;

  line-height: 1.7;

}


/* ---- Responsive ---- */

@media (max-width: 900px) {

  .two-column {

    grid-template-columns: 1fr;

    gap: 40px;

  }

  .register-note,
  .camp-teaser {

    grid-template-columns: 1fr;

    gap: 40px;

  }

  .camp-teaser {

    padding: 32px 26px;

  }

  .teaser-visual {

    order: -1;

  }

  .teaser-sigil {

    width: 148px;

    height: 148px;

  }

  .teaser-sigil-num {

    font-size: 22px;

  }

  .prizes-grid {

    grid-template-columns: repeat(2,1fr);

  }

  .countdown-boxes {

    flex-wrap: wrap;

  }

}

@media (max-width: 500px) {

  .event-hero {

    padding: 30px 20px;

  }

  .countdown-box {

    min-width: 64px;

    padding: 12px 6px;

  }

  .countdown-num {

    font-size: 22px;

  }

  .hero-actions {

    flex-direction: column;

    align-items: stretch;

    max-width: 280px;

    margin-left: auto;

    margin-right: auto;

  }

  .prizes-grid {

    grid-template-columns: 1fr;

  }

  .schedule-item {

    flex-direction: column;

    gap: 4px;

  }

  .schedule-item .event {

    text-align: left;

  }

  .teaser-visual {

    gap: 10px;

  }

  .teaser-sigil {

    width: 112px;

    height: 112px;

  }

  /* "05" is already stated in the facts grid below, so the
     overlay is dropped on phones to keep the mark compact. */
  .teaser-sigil-num {

    display: none;

  }

  .teaser-caption {

    font-size: 8.5px;

    letter-spacing: 2.4px;

  }

}


/* =========================================================
   CHALLENGE CATEGORIES — STATUS & ICONS
========================================================= */

.challenge-status {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  letter-spacing: 1.2px;
  line-height: 1;
}

.challenge-status.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* Coming soon cards */

.service-card.coming-soon {
  opacity: 0.55;
}

.service-card.coming-soon .challenge-status {
  border-style: dashed;
}

/* Small minimal icons */

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 14px 0 16px;
}

.service-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke-width: 1.6;
}

.service-card:not(.coming-soon) .service-icon {
  color: var(--accent);
}

.service-card.coming-soon .service-icon {
  color: var(--muted);
}

/* Mobile */

@media (max-width: 500px) {

  .service-icon {
    width: 28px;
    height: 28px;
    margin: 12px 0 14px;
  }

  .service-icon svg {
    width: 17px;
    height: 17px;
  }

  .challenge-status {
    margin-top: 14px;
    font-size: 8px;
  }

}
