/* Stories: tela cheia no celular; no desktop, uma moldura 9:16 no centro. */
html, body.pagina-stories { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.pagina-stories { background: #000; }

.pular {
  position: absolute; left: 8px; top: -100px; z-index: 50;
  background: var(--neon); color: var(--tinta); padding: 10px 14px; border-radius: var(--raio-p); font-weight: 700;
}
.pular:focus { top: 8px; }

.palco {
  height: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
}
.moldura {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--tinta);
  isolation: isolate;
}
@media (min-width: 640px) {
  .palco { background: radial-gradient(60% 60% at 50% 40%, #1a2200 0%, #000 70%); }
  .moldura {
    height: min(92dvh, 900px);
    width: auto;
    aspect-ratio: 9 / 16;
    border-radius: var(--raio-g);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px #222;
  }
}

/* Barras de progresso */
.barras {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; gap: 4px;
  padding: max(10px, env(safe-area-inset-top)) 10px 0;
}
.barra { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.barra i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left center; }
.barra--fantasma { background: rgba(255, 255, 255, .14); }

/* Topo: quem, pausa, ver catálogo */
.topo {
  position: absolute; z-index: 20; left: 0; right: 0;
  top: calc(max(10px, env(safe-area-inset-top)) + 10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 12px;
}
.topo__quem { display: flex; align-items: center; gap: 8px; }
.topo__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 60% 20%; box-shadow: 0 0 0 2px var(--neon); }
.topo__nome { font-size: .875rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.topo__acoes { display: flex; align-items: center; gap: 4px; }
.icone {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}
.icone svg { width: 22px; height: 22px; }
.icone .i-play, .icone.em-pausa .i-pausa { display: none; }
.icone.em-pausa .i-play { display: block; }
.ver-catalogo {
  min-height: 36px; display: inline-flex; align-items: center;
  padding: 0 14px; border-radius: var(--raio-pilula);
  background: rgba(11, 11, 11, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  font-size: .8125rem; font-weight: 700; text-decoration: none;
}

/* Área dos stories */
.stories { position: absolute; inset: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.story { position: absolute; inset: 0; }
.story[hidden] { display: none; }
.story__fundo { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.story__sombra {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 38%, rgba(11, 11, 11, .78) 64%, #0B0B0B 100%);
}
.story__sombra--forte { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 18%, rgba(11, 11, 11, .7) 42%, rgba(11, 11, 11, .94) 66%, #0B0B0B 100%); }

.story__corpo {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 20px max(24px, calc(env(safe-area-inset-bottom) + 16px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.story__nome { font-size: clamp(3.25rem, 17vw, 4.6rem); margin-top: 4px; }
@media (min-width: 640px) { .story__nome { font-size: 4.4rem; } }
.story__titulo { font-size: clamp(2.4rem, 12vw, 3.3rem); }
@media (min-width: 640px) { .story__titulo { font-size: 3.1rem; } }
.story__rotulo { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--neon); }
.story__texto { margin: 0; font-size: 1rem; line-height: 1.45; color: #E6E6E0; max-width: 34ch; }
.story__texto--forte { font-weight: 700; color: #fff; margin-bottom: -4px; }
.story__nota { margin: 0; font-size: .8125rem; color: var(--texto-2); max-width: 36ch; }
.dica { margin: 4px 0 0; font-size: .8125rem; color: var(--texto-2); display: flex; align-items: center; gap: 6px; }
.dica::after { content: "→"; color: var(--neon); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 6px 12px; border-radius: var(--raio-pilula);
  background: rgba(204, 255, 0, .12); box-shadow: inset 0 0 0 1px rgba(204, 255, 0, .45);
  color: #EAFFA0; font-size: .875rem; font-weight: 600;
}

.dados { display: grid; gap: 8px; width: 100%; }
.dado {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 14px; border-radius: var(--raio-m);
  background: rgba(21, 21, 21, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.dado__r { font-size: .8125rem; color: var(--texto-2); }
.dado__v { font-weight: 700; text-align: right; }

/* Pergunta */
.escolha { display: grid; gap: 10px; width: 100%; margin-top: 4px; }
.opcao {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 72px; padding: 14px 18px; text-align: left;
  border: 0; border-radius: var(--raio-m); cursor: pointer;
  background: rgba(21, 21, 21, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.5px #4A4A4A;
  transition: transform var(--t-rapido) var(--curva), box-shadow var(--t-rapido), background-color var(--t-rapido);
}
.opcao:active { transform: scale(.98); }
.opcao__t { font-family: var(--f-titulo); text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.opcao__s { font-size: .8125rem; color: var(--texto-2); }
.opcao--sel, .opcao:hover { box-shadow: inset 0 0 0 2px var(--neon); background: rgba(204, 255, 0, .12); }
.opcao--sel .opcao__t { color: var(--neon); }

.link-sutil { font-size: .875rem; color: var(--texto-2); text-underline-offset: 4px; padding: 8px 0; }

/* Valores */
.planos { display: grid; gap: 8px; width: 100%; }
.plano {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 12px 16px; text-align: left;
  border: 0; border-radius: var(--raio-m); cursor: pointer;
  background: rgba(21, 21, 21, .8); box-shadow: inset 0 0 0 1.5px #3A3A3A;
  transition: box-shadow var(--t-rapido), background-color var(--t-rapido);
}
.plano__n { font-weight: 700; }
.plano__v { font-weight: 800; white-space: nowrap; }
.plano__v small { font-weight: 500; color: var(--texto-2); font-size: .75rem; }
.plano[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--neon); background: rgba(204, 255, 0, .12); }
.plano[aria-pressed="true"] .plano__n { color: var(--neon); }

/* Consultoria */
.nivel {
  width: 100%; padding: 14px 16px; border-radius: var(--raio-m);
  background: rgba(21, 21, 21, .82); box-shadow: inset 0 0 0 1px #3A3A3A;
}
.nivel--destaque { box-shadow: inset 0 0 0 2px var(--neon); }
.nivel__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nivel__n { font-family: var(--f-titulo); text-transform: uppercase; font-size: 1.25rem; }
.nivel--destaque .nivel__n { color: var(--neon); }
.nivel__v { font-weight: 800; white-space: nowrap; }
.nivel__v small { font-weight: 500; color: var(--texto-2); font-size: .75rem; margin-left: 2px; }
.nivel__t { margin: 4px 0 0; font-size: .875rem; color: var(--texto-2); }

/* Regras */
.regras { margin: 0; display: grid; gap: 10px; width: 100%; }
.regras dt { font-weight: 700; font-size: .9375rem; }
.regras dd { margin: 2px 0 0; font-size: .875rem; color: var(--texto-2); line-height: 1.4; }

/* Final */
.acoes { display: grid; gap: 10px; width: 100%; }
.resumo-escolha { margin: 0; font-size: .875rem; color: var(--neon); font-weight: 600; }
.resumo-escolha[hidden] { display: none; }
.story .credito { margin: 0; align-self: center; }

/* Setas: só aparecem com mouse */
.seta {
  position: absolute; z-index: 15; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: none; place-items: center;
  background: rgba(11, 11, 11, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.seta svg { width: 22px; height: 22px; }
.seta--voltar { left: 10px; }
.seta--avancar { right: 10px; }
@media (hover: hover) and (pointer: fine) {
  .seta { display: grid; }
  .no-inicio .seta--voltar, .no-fim .seta--avancar { display: none; }
}

/* Entrada do story: leve, só opacidade e posição */
.story.entrou .story__corpo > * { animation: subir var(--t-medio) var(--curva) both; }
.story.entrou .story__corpo > *:nth-child(2) { animation-delay: 60ms; }
.story.entrou .story__corpo > *:nth-child(3) { animation-delay: 120ms; }
.story.entrou .story__corpo > *:nth-child(4) { animation-delay: 180ms; }
.story.entrou .story__corpo > *:nth-child(n+5) { animation-delay: 240ms; }
.story.entrou .story__fundo { animation: aproximar 7s linear both; }
.pausado .story.entrou .story__fundo { animation-play-state: paused; }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes aproximar { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Telas baixas (celular pequeno deitado ou com barra grande): aperta um pouco */
@media (max-height: 700px) {
  .story__corpo { gap: 9px; }
  .story__titulo { font-size: 2.2rem; }
  .story__nome { font-size: 3.2rem; }
  .regras { gap: 6px; }
  .regras dd { font-size: .8125rem; }
  .dado, .plano { padding-top: 9px; padding-bottom: 9px; min-height: 48px; }
}

.sem-js { position: fixed; inset: auto 16px 24px; text-align: center; }
