/* Creator Colosseum — Incubator page experience (incubator.html only) */

/* --- Colosseum gates hero --- */
#gate-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.gate,
.gate-prompt {
  display: none;
}

.gates-on .gate {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% + 1px);
  z-index: 20;
  overflow: hidden;
  will-change: transform;
}

.gate-left {
  left: 0;
  background: linear-gradient(to right, #081a2f, #0F2F52 75%, #184473);
  box-shadow: inset -2px 0 0 #c89e37, inset -60px 0 60px -40px rgba(200, 158, 55, 0.5);
}

.gate-right {
  right: 0;
  background: linear-gradient(to left, #081a2f, #0F2F52 75%, #184473);
  box-shadow: inset 2px 0 0 #c89e37, inset 60px 0 60px -40px rgba(200, 158, 55, 0.5);
}

/* The emblem sits across the seam, so each gate carries half of it */
.gate-emblem {
  position: absolute;
  top: 50%;
  width: min(44vw, 260px);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 22px rgba(200, 158, 55, 0.55));
}

.gate-left .gate-emblem {
  right: calc(min(44vw, 260px) / -2 + 1px);
}

.gate-right .gate-emblem {
  left: calc(min(44vw, 260px) / -2 + 1px);
}

.gates-on .gate-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  z-index: 21;
  color: #edd7a6;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  pointer-events: none;
}

.gate-prompt svg {
  animation: gate-nudge 1.8s ease-in-out infinite;
}

@keyframes gate-nudge {
  50% { transform: translateY(6px); }
}

/* --- Incubator journey --- */
.journey-layout {
  display: grid;
  gap: 3rem;
}

.journey-visual {
  display: none;
}

.journey-steps {
  position: relative;
  padding-left: 2.25rem;
}

.journey-rail,
.journey-rail-fill {
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(15, 47, 82, 0.18);
}

.journey-rail-fill {
  background: #c89e37;
  transform: scaleY(0);
  transform-origin: top;
}

.journey-step {
  position: relative;
  padding-bottom: 3.5rem;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.journey-step:last-child {
  padding-bottom: 0;
}

.journey-step.is-active {
  opacity: 1;
}

.journey-step::before {
  content: '';
  position: absolute;
  left: -2.15rem;
  top: 0.45rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #edd7a6;
  border: 2px solid rgba(15, 47, 82, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.journey-step.is-active::before {
  background: #c89e37;
  border-color: #c89e37;
  box-shadow: 0 0 0 6px rgba(200, 158, 55, 0.25);
}

@media (min-width: 1024px) {
  .journey-layout {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .journey-visual {
    display: block;
    position: sticky;
    top: 7rem;
    height: calc(100vh - 9rem);
  }

  .journey-step {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 0;
  }

  .journey-step::before {
    top: calc(50% - 0.55rem);
  }

  .journey-step:last-child {
    padding-bottom: 0;
  }
}

#journey-model {
  position: absolute;
  inset: 0 0 6.5rem;
}

.journey-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.journey-dots {
  display: flex;
  gap: 0.75rem;
}

.journey-dot {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(15, 47, 82, 0.3);
  color: rgba(15, 47, 82, 0.6);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.journey-dot.is-active {
  background: #c89e37;
  border-color: #c89e37;
  color: #0F2F52;
}

/* --- Mentor flip cards --- */
.mentor-filter {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(237, 215, 166, 0.3);
  color: #edd7a6;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mentor-filter:hover {
  border-color: #c89e37;
}

.mentor-filter.is-active {
  background: #c89e37;
  border-color: #c89e37;
  color: #0F2F52;
}

.mentor-card {
  flex: 0 0 auto;
  width: 260px;
  perspective: 1200px;
}

@media (min-width: 640px) {
  .mentor-card {
    width: 280px;
  }
}

.mentor-card-inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.3, 0.9, 0.3, 1);
}

.mentor-card-inner > * {
  grid-area: 1 / 1;
  width: 100% !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mentor-card.is-flipped .mentor-card-inner {
  transform: rotateY(180deg);
}

@media (hover: hover) {
  .mentor-card:hover .mentor-card-inner {
    transform: rotateY(180deg);
  }
}

.mentor-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  border-radius: 1.5rem;
  border: 1px solid #c89e37;
  background: #edd7a6;
  color: #0F2F52;
}

.mentor-tag {
  display: inline-block;
  margin: 0.15rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #0F2F52;
  color: #edd7a6;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#mentor-marquee.is-filtered {
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
}

#mentor-marquee.is-filtered [aria-hidden="true"],
.mentor-card.is-hidden {
  display: none;
}

#mentor-section.is-filtered #mentor-prev,
#mentor-section.is-filtered #mentor-next {
  visibility: hidden;
}

/* --- Venture podium --- */
.venture-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #0F2F52;
}

.venture-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.venture-thumb:hover img {
  transform: scale(1.05);
}

.venture-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #c89e37;
  color: #0F2F52;
  box-shadow: 0 8px 24px rgba(8, 26, 47, 0.45);
}

@media (min-width: 1024px) {
  #ventures-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }

  #ventures-grid > * {
    grid-column: span 2;
  }

  #ventures-grid > :nth-child(1) {
    grid-column: 3 / span 2;
    grid-row: 1;
  }

  #ventures-grid > :nth-child(2) {
    grid-column: 1 / span 2;
    grid-row: 1;
    margin-top: 3.5rem;
  }

  #ventures-grid > :nth-child(3) {
    grid-column: 5 / span 2;
    grid-row: 1;
    margin-top: 5.5rem;
  }

  #ventures-grid > :nth-child(n + 7) {
    grid-column: span 3;
  }
}

#ventures-grid > :nth-child(1) {
  border: 2px solid #c89e37;
  box-shadow: 0 18px 50px rgba(200, 158, 55, 0.35);
}

#ventures-grid > :nth-child(2) {
  border: 2px solid #9aa7b5;
}

#ventures-grid > :nth-child(3) {
  border: 2px solid #b0793f;
}

/* --- Pitch modal --- */
#pitch-modal {
  width: min(94vw, 880px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid #c89e37;
  border-radius: 1.5rem;
  background: #edd7a6;
  color: #0F2F52;
}

#pitch-modal::backdrop {
  background: rgba(8, 26, 47, 0.82);
}

#pitch-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #081a2f;
}

/* --- World map --- */
.finalist-map {
  position: relative;
  aspect-ratio: 1000 / 440;
  background: url("../world-land.svg") center / 100% 100% no-repeat;
  opacity: 1;
}

.finalist-pin {
  position: absolute;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border-radius: 50%;
  background: #c89e37;
  border: 2px solid #081a2f;
}

.finalist-pin::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid #c89e37;
  animation: pin-pulse 2.4s ease-out infinite;
}

@keyframes pin-pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(3); opacity: 0; }
}

.finalist-pin span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.5rem);
  transform: translateX(-50%);
  padding: 0.35rem 0.7rem;
  border-radius: 0.6rem;
  background: #edd7a6;
  color: #0F2F52;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.finalist-pin:hover,
.finalist-pin:focus-visible {
  z-index: 3;
}

.finalist-pin:hover span,
.finalist-pin:focus-visible span {
  opacity: 1;
}

@media (max-width: 639px) {
  .finalist-pin {
    width: 0.7rem;
    height: 0.7rem;
    margin: -0.35rem 0 0 -0.35rem;
  }
}

/* --- Enter the Arena --- */
#enter-arena {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(200, 158, 55, 0.45), transparent 60%),
    #081a2f;
}

#enter-arena::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='170'%3E%3Cpath d='M0 0h120v170h-18V82a42 42 0 0 0-84 0v88H0z' fill='%230F2F52'/%3E%3C/svg%3E");
  background-size: 120px 170px;
  background-position: center bottom;
  opacity: 0.8;
}

.arena-cta {
  background: #c89e37;
  color: #081a2f;
  box-shadow: 0 0 40px rgba(200, 158, 55, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.arena-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 60px rgba(200, 158, 55, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .gate-prompt svg,
  .finalist-pin::after {
    animation: none;
  }

  .mentor-card-inner {
    transition: none;
  }
}
