/* ==========================================================================
   COMO COMEÇAR — 3 estrelas que ascendem + caixa do launcher + personagem saindo da caixa
   Carregar depois do launcher-ui.css. Script: steps.js (ou o <script> do LEIA-ME).
   ========================================================================== */
.start-section { padding-top: 40px; }
.start-container { position: relative; }

/* ---------- estrelas ---------- */
.asc-stars {
  display: flex; justify-content: center; gap: clamp(28px, 7vw, 110px);
  margin: 34px auto 0; padding: 0; list-style: none;
}
.asc-star {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 190px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--e-muted); font: inherit; text-align: center;
}
.asc-star svg { width: 46px; height: 46px; overflow: visible; transition: transform .35s ease, filter .35s ease; }
.asc-star .s-fill { fill: transparent; transition: fill .35s ease; }
.asc-star .s-line { fill: none; stroke: var(--l-gold, #e2b65c); stroke-width: 3; opacity: .55; transition: opacity .35s ease, stroke .35s ease; }
.asc-star .s-num {
  font-family: var(--e-serif); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--l-gold, #e2b65c); opacity: .6;
}
.asc-star .s-title {
  font-family: var(--e-serif); font-size: 13.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.35;
  text-transform: uppercase; color: var(--e-muted); transition: color .35s ease;
}
.asc-star:hover .s-line { opacity: 1; }
.asc-star:hover svg { transform: translateY(-3px); }
.asc-star:focus-visible { outline: 2px solid var(--l-gold, #e2b65c); outline-offset: 6px; }
/* acesa: estrela de luz esmeralda com brilho */
.asc-star.is-lit .s-fill { fill: url(#ascStarGrad); }
.asc-star.is-lit .s-line { stroke: #bdfcef; opacity: .9; stroke-width: 1.5; }
.asc-star.is-lit svg { filter: drop-shadow(0 0 10px rgba(47, 224, 192, .85)) drop-shadow(0 0 26px rgba(47, 224, 192, .45)); }
.asc-star.is-lit .s-num { opacity: 1; }
.asc-star.is-lit .s-title { color: #eef6f2; }
.asc-star.is-current svg { transform: scale(1.18); }
.asc-star.is-current .s-title { color: #fff; }

/* ---------- caixa + personagem ---------- */
.asc-stage { position: relative; margin-top: 150px; }
.start-steps { display: block !important; margin: 0; padding: 0; list-style: none; position: relative; }
.start-step {
  display: none !important;
  position: relative; isolation: isolate;
  min-height: 300px; padding: 46px 56px !important;
  border: 0 !important; border-radius: 0 !important;
  background: linear-gradient(135deg, #2fe0c0 0%, rgba(47,224,192,.45) 14%, rgba(47,224,192,.14) 50%, rgba(47,224,192,.45) 86%, #2fe0c0 100%) !important;
  --cut: 18px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  overflow: visible;
}
.start-step.is-active { display: grid !important; grid-template-columns: 1fr 1fr; align-items: center; }
.start-step::after {
  content: ''; position: absolute; inset: 1px; z-index: -1;
  background:
    radial-gradient(60% 120% at var(--glow-x, 25%) 100%, rgba(47,224,192,.16), transparent 70%),
    linear-gradient(180deg, #0b2723 0%, #061714 100%);
  clip-path: polygon(calc(var(--cut) - .5px) 0, 100% 0, 100% calc(100% - var(--cut) + .5px), calc(100% - var(--cut) + .5px) 100%, 0 100%, 0 calc(var(--cut) - .5px));
}
/* o clip-path corta o que sai da caixa; o personagem fica num irmão fora dela */
.start-step .step-copy { grid-column: 2; }
.start-step.side-right .step-copy { grid-column: 1; }
.start-step.side-right { --glow-x: 75%; }

.start-num {
  display: inline-grid !important; place-items: center;
  width: 34px !important; height: 34px !important; border: 0 !important; border-radius: 0 !important;
  background: #2fe0c0 !important; color: #02201a !important; box-shadow: none !important;
  font-family: var(--l-cond, sans-serif) !important; font-size: 18px !important; font-weight: 700;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  margin-bottom: 16px;
}
.start-step h3 {
  font-family: var(--l-cond, sans-serif); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: .04em; text-transform: uppercase; color: var(--l-cream, #f3dca6); line-height: 1.05; margin: 0 0 12px;
  font-variant: normal;
}
.start-step p { font-size: 16px; line-height: 1.6; color: var(--e-body); max-width: 440px; margin: 0 0 26px; }
.start-link {
  --cut: 10px;
  display: inline-flex !important; align-items: center; justify-content: center;
  height: 46px; padding: 0 26px 0 calc(26px + .24em) !important;
  border: 0 !important; border-radius: 0 !important;
  background: var(--e-play-grad) !important; color: #02201a !important;
  font-family: var(--e-sans); font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  filter: drop-shadow(0 0 12px rgba(47,224,192,.3)); transition: transform .2s ease, filter .2s ease;
}
.start-link:hover { transform: translateY(-2px); filter: drop-shadow(0 0 20px rgba(47,224,192,.5)); }

/* personagem: sai de dentro da caixa e passa por cima da borda */
.asc-char {
  position: absolute; bottom: 6px; z-index: 3; pointer-events: none;
  height: 455px; width: auto; max-width: 54%;
  object-fit: contain; object-position: bottom;
  opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
}
.asc-char.side-left { left: 4%; }
.asc-char.side-right { right: 4%; }
.asc-char.is-active { opacity: 1; transform: none; }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .asc-stars { gap: 10px; }
  .asc-star { width: 31%; }
  .asc-star svg { width: 36px; height: 36px; }
  .asc-star .s-title { font-size: 11px; }
  .asc-stage { margin-top: 230px; }
  .start-step.is-active { grid-template-columns: 1fr; }
  .start-step .step-copy, .start-step.side-right .step-copy { grid-column: 1; }
  .start-step { padding: 34px 24px !important; min-height: 0; }
  .asc-char { height: 300px; max-width: 86%; bottom: auto; top: -240px; }
  .asc-char.side-left, .asc-char.side-right { left: 50%; right: auto; transform: translate(-50%, 14px); }
  .asc-char.side-left.is-active, .asc-char.side-right.is-active { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) { .asc-char, .asc-star svg { transition: none; } }

/* Shine Maker: a arte termina no peito; sobe um pouco para o topo da cabeça alinhar com os outros */
.asc-char[src*="step-shine"] { bottom: 34px; height: 430px; }
@media (max-width: 900px) { .asc-char[src*="step-shine"] { bottom: auto; height: 285px; top: -228px; } }

/* ==== v2 (20/11): estrelas juntas no centro, caixa logo abaixo, cabeças ao lado das estrelas ==== */
.asc-stars { gap: 8px; margin-top: 26px; }
.asc-star { width: 124px; gap: 9px; }
.asc-star .s-title { font-size: 12px; letter-spacing: .06em; }
.asc-stage { margin-top: 18px; }
.start-step { min-height: 300px; padding: 40px 48px !important; }
/* espaço reservado para o personagem; o texto centraliza no que sobra até a outra borda */
.start-step.is-active { grid-template-columns: var(--char-space, 420px) 1fr; }
.start-step.side-right.is-active { grid-template-columns: 1fr var(--char-space, 420px); }
.start-step:nth-child(1) { --char-space: 400px; }
.start-step:nth-child(2) { --char-space: 600px; }
.start-step:nth-child(3) { --char-space: 520px; }
.start-step .step-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.start-step p { margin-left: auto; margin-right: auto; }
.asc-char.side-left { left: 1%; }
.asc-char.side-right { right: -3%; }
.asc-char[src*="step-bartz"] { left: -3%; }
@media (max-width: 900px) {
  .asc-stage { margin-top: 230px; }
  .start-step.is-active, .start-step.side-right.is-active { grid-template-columns: 1fr; }
  .asc-char[src*="step-bartz"] { left: 50%; }
  .asc-char.side-right { right: auto; }
}
.start-step .start-link { align-self: center !important; margin: 0 auto !important; }
/* respiro entre o título da seção e a composição */
.asc-stars { margin-top: 92px; }
@media (max-width: 900px) { .asc-stars { margin-top: 40px; } }

/* ==== feixe da logo atrás das 3 estrelas (20/11) ====
   base fraca de ponta a ponta + trecho aceso que sobe até a estrela atual (--p: 0 / .5 / 1)
   + brilho que percorre o trecho aceso */
.asc-stars { position: relative; width: max-content; margin-left: auto; margin-right: auto; --p: 0; --star: 124px; --gap: 8px; }
.asc-star { position: relative; z-index: 2; }
.asc-beam, .asc-beam-lit {
  position: absolute; top: 23px; height: 2px; pointer-events: none; z-index: 1; border-radius: 2px;
}
/* base: o feixe inteiro, fraco, com as pontas sumindo (como na logo) */
.asc-beam {
  left: -60px; right: -60px;
  background: linear-gradient(90deg, transparent 0%, rgba(47,224,192,.35) 14%, rgba(189,252,239,.45) 50%, rgba(47,224,192,.35) 86%, transparent 100%);
  box-shadow: 0 0 8px 1px rgba(47,224,192,.25);
}
/* trecho aceso: da 1ª estrela até a estrela atual */
.asc-beam-lit {
  left: calc(var(--star) / 2 - 30px);
  width: calc((var(--star) + var(--gap)) * 2 * var(--p) + 60px);
  background: linear-gradient(90deg, transparent 0, #2fe0c0 30px, #eafffa 50%, #2fe0c0 calc(100% - 30px), transparent 100%);
  box-shadow: 0 0 10px 2px rgba(47,224,192,.75), 0 0 28px 6px rgba(47,224,192,.35);
  transition: width .7s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
/* brilho que percorre o trecho aceso */
.asc-beam-lit::after {
  content: ''; position: absolute; top: -3px; bottom: -3px; width: 70px; left: -80px;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(189,252,239,.4) 60%, transparent);
  animation: asc-beam-run 3.2s ease-in-out infinite;
}
@keyframes asc-beam-run { 0% { left: -80px; opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
/* um halo escuro atrás de cada estrela para o feixe "passar por trás" */
.asc-star svg { position: relative; }
.asc-star::before {
  content: ''; position: absolute; top: 6px; left: 50%; width: 34px; height: 34px; transform: translateX(-50%);
  background: radial-gradient(closest-side, #04100e 55%, transparent); z-index: -1;
}
.asc-star.is-lit::before { background: radial-gradient(closest-side, rgba(4,16,14,.6) 40%, transparent); }
@media (max-width: 900px) { .asc-stars { --star: 104px; --gap: 6px; } .asc-star { width: 104px; } .asc-beam { left: -20px; right: -20px; } }
@media (prefers-reduced-motion: reduce) { .asc-beam-lit::after { animation: none; display: none; } }

/* ==== v3 (20/11): cabeça de cada personagem no centro do vão lateral (entre a borda da caixa e as estrelas) ====
   vão = (largura da caixa - largura das 3 estrelas) / 2; centro do vão = (100% - 388px) / 4
   deslocamento da cabeça dentro de cada imagem: elfa 206px · Bartz 237px · Shine 278px (medido do lado de fora) */
.asc-stage { --zone: calc((100% - 388px) / 4); }
.asc-char[src*="step-elfa"]  { left: calc((100% - 388px) / 4 - 206px); right: auto; }
.asc-char[src*="step-bartz"] { left: calc((100% - 388px) / 4 - 237px); right: auto; }
.asc-char[src*="step-shine"] { right: calc((100% - 388px) / 4 - 278px); left: auto; }
.start-step:nth-child(1) { --char-space: calc((100% - 388px) / 4 + 170px); }
.start-step:nth-child(2) { --char-space: calc((100% - 388px) / 4 + 320px); }
.start-step:nth-child(3) { --char-space: calc((100% - 388px) / 4 + 290px); }
@media (max-width: 900px) {
  .asc-char[src*="step-elfa"], .asc-char[src*="step-bartz"] { left: 50%; }
  .asc-char[src*="step-shine"] { right: auto; left: 50%; }
}

/* ==== (20/11) feixe em esmeralda; estrela acesa em dourado ==== */
.asc-star.is-lit svg { filter: drop-shadow(0 0 8px rgba(226,182,92,.85)) drop-shadow(0 0 22px rgba(226,182,92,.4)); }
.asc-star.is-lit .s-line { stroke: #fff2cf; opacity: .8; stroke-width: 1.2; }
