/* Jeton Decouverte: invitation distincte de la progression Bootcamp. */
body.is-discovery-gift-open,
body.is-discovery-replay-open {
  overflow: hidden;
}

.discovery-gift-backdrop,
.discovery-replay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(1, 2, 1, 0.82);
  backdrop-filter: blur(5px);
}

.discovery-gift-backdrop.is-hidden,
.discovery-replay-backdrop.is-hidden {
  display: none;
}

.discovery-gift-card,
.discovery-replay-card {
  position: relative;
  display: flex;
  width: min(430px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  flex-direction: column;
  align-items: center;
  padding: 20px 26px 24px;
  border: 1px solid var(--seiken-line-soft);
  border-radius: 8px;
  background: #080b07;
  color: #f3f5ee;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.discovery-gift-card::before,
.discovery-replay-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24%;
  width: 52%;
  height: 2px;
  background: var(--seiken-neon);
}

.discovery-gift-topline {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  color: var(--seiken-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.discovery-gift-topline .text-button {
  min-height: auto;
  padding: 4px 0;
  color: var(--seiken-muted);
  font-size: 0.68rem;
}

.discovery-token-mark {
  display: grid;
  width: 104px;
  height: 104px;
  margin: 22px 0 13px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #030803;
}

.discovery-token-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discovery-token-label {
  color: #c1a45c;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.discovery-gift-card h2,
.discovery-replay-card h2 {
  margin: 11px 0 8px;
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 7vw, 2.7rem);
  font-weight: 400;
  line-height: 0.98;
  text-align: center;
  text-transform: uppercase;
}

.discovery-gift-card > p,
.discovery-replay-card > p {
  max-width: 350px;
  margin: 0 0 20px;
  color: #c7cbc1;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.discovery-gift-actions,
.discovery-replay-actions {
  display: grid;
  width: 100%;
  gap: 8px;
}

.discovery-gift-actions .primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 17px;
}

.discovery-gift-actions :is(.primary-button, .secondary-button),
.discovery-replay-actions :is(.primary-button, .secondary-button) {
  width: 100%;
  min-height: 46px;
  border-radius: 5px;
  text-align: center;
}

.discovery-watch-progress {
  display: grid;
  width: 100%;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 185, 84, 0.28);
  border-radius: 6px;
  background: rgba(220, 185, 84, 0.05);
}

.discovery-watch-progress strong {
  color: #f0d786;
  font-size: 0.82rem;
}

.discovery-watch-progress > span:not(.discovery-watch-track) {
  color: #aeb3a9;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.discovery-watch-track {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(220, 185, 84, 0.14);
}

.discovery-watch-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #dcb954;
}

.discovery-watch-progress.is-complete {
  border-color: rgba(198, 255, 0, 0.34);
  background: rgba(198, 255, 0, 0.06);
}

.discovery-watch-progress.is-complete strong {
  color: var(--seiken-neon);
}

.discovery-watch-progress.is-complete .discovery-watch-track i {
  background: var(--seiken-neon);
}

.discovery-replay-card {
  width: min(620px, 100%);
  align-items: flex-start;
}

.discovery-replay-card h2,
.discovery-replay-card > p {
  align-self: center;
}

.discovery-replay-screen {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0 9px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid #30362c;
  background:
    radial-gradient(circle at 50% 48%, rgba(213, 170, 67, 0.1), transparent 25%),
    #030503;
  color: #8f958a;
  overflow: hidden;
  text-align: center;
}

.discovery-replay-screen.has-replay {
  border-color: #161a15;
  background: #000;
}

.discovery-stream-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.discovery-replay-screen strong {
  color: #e8eae3;
  font-size: 0.9rem;
}

.discovery-replay-screen > span:last-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discovery-replay-play {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #d8aa43;
  border-radius: 50%;
  color: #edc35e;
  font-size: 1.05rem;
}

.constellation-discovery-access {
  position: absolute;
  z-index: 12;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #080a07;
  color: #e7bb52;
  box-shadow: 0 0 0 3px #020300;
  transform: translate(15px, -43px);
  cursor: pointer;
}

.constellation-discovery-access svg {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.constellation-discovery-access img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.constellation-discovery-access circle,
.constellation-discovery-access path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.constellation-discovery-access.is-replay path {
  fill: currentColor;
  stroke: none;
}

.constellation-discovery-access:hover,
.constellation-discovery-access:focus-visible {
  color: #ffd36d;
  transform: translate(15px, -43px) scale(1.08);
}

.week-context-card.is-discovery {
  grid-template-columns: 1fr;
  border-color: rgba(220, 185, 84, 0.45);
  background:
    radial-gradient(circle at 90% 10%, rgba(220, 185, 84, 0.1), transparent 38%),
    rgba(2, 6, 1, 0.94);
}

.week-context-card.is-discovery-complete {
  border-color: rgba(198, 255, 0, 0.42);
}

.discovery-replay-button {
  border-color: #dcb954;
  background: #dcb954;
  color: #111006;
}

@media (max-width: 560px) {
  .bootcamp-screen.is-pillar-mode .pillar-hero {
    --pillar-overlay-top: 184px;
    --pillar-overlay-bottom: 140px;
    min-height: clamp(540px, calc(100dvh - 92px), 680px);
    padding: 68px 16px 16px;
  }

  .bootcamp-screen.is-pillar-mode .pillar-hero-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .bootcamp-screen.is-pillar-mode .pillar-hero-summary {
    max-width: 100%;
    gap: 8px;
  }

  .bootcamp-screen.is-pillar-mode .pillar-hero-summary h2 {
    font-size: clamp(2.2rem, 12vw, 2.8rem);
    white-space: nowrap;
  }

  .bootcamp-screen.is-pillar-mode .pillar-hero-description {
    display: block;
    max-width: 100%;
    overflow: visible;
    font-size: 0.8rem;
    line-height: 1.25;
    -webkit-line-clamp: unset;
  }

  .bootcamp-screen.is-pillar-mode .pillar-hero-player {
    width: 100%;
    justify-self: stretch;
    gap: 6px;
  }

  .bootcamp-screen.is-pillar-mode .pillar-hero-player-stat {
    min-width: 0;
    gap: 4px;
    padding: 6px 8px;
  }

  .bootcamp-screen.is-pillar-mode .pillar-hero-player-stat span {
    font-size: 0.58rem;
  }

  .bootcamp-screen.is-pillar-mode .pillar-hero-player-stat strong {
    font-size: 0.78rem;
  }

  .bootcamp-screen.is-pillar-mode .week-detail {
    left: 16px;
    width: min(272px, calc(100% - 32px));
    max-width: calc(100% - 32px);
  }

  .bootcamp-screen.is-pillar-mode .week-context-card.is-discovery {
    max-width: 272px;
    gap: 6px;
    border-radius: 7px;
    padding: 10px 11px;
  }

  .bootcamp-screen.is-pillar-mode .week-context-card.is-discovery .week-context-body {
    gap: 6px;
  }

  .bootcamp-screen.is-pillar-mode .week-context-card.is-discovery h3 {
    font-size: 0.92rem;
  }

  .bootcamp-screen.is-pillar-mode .week-context-card.is-discovery .week-context-meta {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .bootcamp-screen.is-pillar-mode .week-context-card.is-discovery .week-context-status {
    font-size: 0.58rem;
  }

  .bootcamp-screen.is-pillar-mode .week-context-card.is-discovery .primary-button {
    min-width: 124px;
    min-height: 32px;
    padding-inline: 12px;
    font-size: 0.76rem;
  }

  .bootcamp-screen.is-pillar-mode .pillar-timeline {
    --timeline-gap: 8px;
    --week-orb-size: 68px;
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .bootcamp-screen.is-pillar-mode .week-track-item {
    width: max(var(--orb-size), 76px);
  }

  .bootcamp-screen.is-pillar-mode .week-track-item.is-test {
    width: max(var(--orb-size), 168px);
  }

  .bootcamp-screen.is-pillar-mode .week-track-item:not(.is-test) .week-orb-note {
    min-height: 15px;
    font-size: 0.78rem;
  }

  .discovery-gift-backdrop,
  .discovery-replay-backdrop {
    align-items: end;
    padding: 12px;
  }

  .discovery-gift-card,
  .discovery-replay-card {
    max-height: calc(100dvh - 24px);
    padding: 17px 18px 20px;
  }

  .discovery-token-mark {
    width: 88px;
    height: 88px;
    margin-top: 18px;
  }

  .constellation-discovery-access {
    transform: translate(12px, -38px);
  }

  .constellation-discovery-access:hover,
  .constellation-discovery-access:focus-visible {
    transform: translate(12px, -38px) scale(1.08);
  }
}
