/* =========================================================
   C'est la Vie — Link na Bio
   RHZ Agência · out/2026, revisado em nov/2026

   Base: link na bio da Shak's (ATIVOS\SHAK's ACESSÓRIOS\BIO), que
   veio da Latam Fit — mesmo motor de vídeos, rastreio e publicação.
   Visual pedido pelas clientes (nov/2026): clean, minimalista e
   claro, como um linktree bem feito. Fundo off-white, cartões
   brancos, contorno fino, uma fonte só. O único elemento escuro
   é o botão "Site oficial".
   ========================================================= */

:root {
  color-scheme: only light;

  /* Marca (espelham CONFIG.theme em config.js) */
  --fundo:  #F6F3EE;   /* página, folha do topo e visualizador    */
  --base:   #E9E5DE;   /* atrás dos vídeos enquanto carregam      */
  --branco: #FFFFFF;   /* cartões e botões                        */
  --tinta:  #141412;   /* texto e o botão "Site oficial"          */
  --tinta-2:#6B675F;   /* texto secundário (5,1:1 no fundo)       */

  --linha:   rgba(20, 20, 18, .09);
  --linha-2: rgba(20, 20, 18, .18);

  /* Instrument Sans é a fonte do site da loja */
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Formas */
  --maxw: 460px;
  --pad: 16px;
  --raio: 16px;
  --sobra: 24px;    /* quanto a folha sobe por cima dos vídeos */
  --medalha: 80px;  /* diâmetro da logo na emenda */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-weight: 400;
  color: var(--tinta);
  background: var(--fundo);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Coluna ---------- */
.pagina {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

/* ============ TOPO / STORIES ============ */
.hero { position: relative; }

.stories {
  position: relative;
  width: 100%;          /* sem isto o teto de altura encolheria a largura junto */
  aspect-ratio: 4 / 3;
  /* Teto de altura: os quatro botões precisam aparecer sem rolar, inclusive no
     navegador do Instagram (que come o alto e o pé da tela). */
  max-height: max(38vh, 220px);
  max-height: max(38svh, 220px);
  overflow: hidden;
  background: var(--base);
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.stories__poster,
.stories__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}

/* Os vídeos nascem transparentes e entram em crossfade sobre o poster */
.stories__video { opacity: 0; transition: opacity .5s ease; }
.stories__video.is-ativo { opacity: 1; }

/* Só uma sombra leve no alto, para as barras brancas aparecerem em vídeo claro */
.stories__veu {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 20, 18, .28) 0%, rgba(20, 20, 18, 0) 24%);
}

/* Zonas de toque (terminam onde começa a folha) */
.stories__zona {
  position: absolute;
  top: 0;
  bottom: var(--sobra);
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.stories__zona--ant  { left: 0;  width: 34%; }
.stories__zona--prox { right: 0; width: 66%; }
.stories__zona:focus-visible { outline: 2px solid var(--branco); outline-offset: -6px; }

/* Topo: barras de progresso + perfil */
.stories__topo {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  padding: 10px 10px 0;
  pointer-events: none;
}

.stories__barras { display: flex; gap: 4px; }
.barra {
  flex: 1 1 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .45);
  overflow: hidden;
}
.barra i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--branco);
  transform: scaleX(0);
  transform-origin: left center;
}

.stories__perfil {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.perfil {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--tinta);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.perfil__avatar { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: block; }
.perfil__detalhe { color: var(--tinta-2); white-space: nowrap; }
.perfil__detalhe:empty { display: none; }
.perfil:focus-visible { outline: 2px solid var(--branco); outline-offset: 3px; }

.stories__pausa {
  pointer-events: auto;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--tinta);
  cursor: pointer;
}
.stories__pausa svg { width: 15px; height: 15px; }
.stories__pausa .icone-play { display: none; }
.stories.is-pausado .stories__pausa .icone-pausa { display: none; }
.stories.is-pausado .stories__pausa .icone-play { display: block; }
.stories__pausa:focus-visible { outline: 2px solid var(--branco); outline-offset: 2px; }

/* Botão "Ver vídeos": só quando o navegador não deixa tocar sozinho */
.stories__play {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 11px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--tinta);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.stories__play svg { width: 15px; height: 15px; }
.stories__play:focus-visible { outline: 2px solid var(--branco); outline-offset: 3px; }

.stories.is-bloqueado .stories__play { display: inline-flex; }
.stories.is-bloqueado .stories__pausa,
.stories.is-estatico .stories__pausa,
.stories.is-estatico .stories__barras,
.stories.is-estatico .stories__zona { display: none; }

/* "Ver com som": abre o vídeo completo do clipe que está na tela.
   Fica no canto esquerdo: o meio da base é do medalhão da logo. */
.stories__som {
  position: absolute;
  z-index: 5;
  left: 10px;
  bottom: calc(var(--sobra) + 10px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--tinta);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease);
}
.stories__som svg { width: 15px; height: 15px; }
.stories__som:active { transform: scale(.96); }
.stories__som:focus-visible { outline: 2px solid var(--branco); outline-offset: 3px; }

/* ============ FOLHA (logo + botões) ============ */
.folha {
  position: relative;
  z-index: 6;
  margin-top: calc(-1 * var(--sobra));
  padding: calc(var(--medalha) / 2 + 10px) var(--pad) 8px;
  border-radius: 24px 24px 0 0;
  background: var(--fundo);
  text-align: center;
}

/* A logo num círculo branco, metade sobre o vídeo: a foto de perfil */
.folha__marca {
  position: absolute;
  left: 50%;
  top: calc(var(--medalha) / -2);
  width: var(--medalha);
  height: var(--medalha);
  margin-left: calc(var(--medalha) / -2);
  border-radius: 50%;
  background: var(--branco);
  box-shadow: 0 0 0 4px var(--fundo);
  font-size: inherit;
}
.folha__marca img { display: block; width: 100%; height: 100%; }

.folha__frase {
  max-width: 320px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.4;
  color: var(--tinta-2);
  text-wrap: balance;
}

/* ---------- Pilha de botões do topo ---------- */
.botoes {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin: 14px auto 0;
  list-style: none;
}
/* Três colunas: o ícone à esquerda e uma coluna vazia do mesmo tamanho à
   direita mantêm o texto no centro exato do botão. */
.bt {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 54px;
  padding: 6px 8px;
  border-radius: var(--raio);
  background: var(--branco);
  box-shadow: inset 0 0 0 1px var(--linha);
  color: var(--tinta);
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.bt:hover { box-shadow: inset 0 0 0 1px var(--linha-2); }
.bt:active { transform: scale(.985); }
.bt:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

.bt__icone { display: grid; place-items: center; width: 40px; height: 40px; }
.bt__icone svg { width: 22px; height: 22px; }
.bt__texto { grid-column: 2; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.bt__rotulo { font-size: 15.5px; font-weight: 500; line-height: 1.25; }
.bt__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--tinta-2);
}
.bt__sub em { font-style: normal; font-weight: 600; color: var(--tinta); }
.bt__sub i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #2E8A47; }

/* O botão principal: cheio, no preto da logo */
.bt--destaque { background: var(--tinta); box-shadow: none; color: var(--branco); }
.bt--destaque:hover { box-shadow: none; background: #2B2B28; }
.bt--destaque .bt__sub { color: rgba(255, 255, 255, .72); }
.bt--destaque .bt__sub em { color: var(--branco); }

/* ============ VEJA DE PERTO ============ */
.provas { margin-top: 30px; }
.provas:empty { display: none; }
.provas__topo { padding: 0 var(--pad); text-align: center; }
.provas__titulo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.provas__sub { margin-top: 4px; font-size: 13px; color: var(--tinta-2); }

.provas__trilho-caixa { position: relative; }
.provas__trilho {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad);
  padding: 14px var(--pad) 4px;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.provas__trilho::-webkit-scrollbar { display: none; }

.prova { flex: 0 0 clamp(134px, 40%, 168px); scroll-snap-align: start; }
.prova__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.prova__capa {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--base);
}
.prova__capa img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.prova__btn:hover .prova__capa img { transform: scale(1.03); }
.prova__play {
  position: absolute;
  z-index: 1;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--tinta);
}
.prova__play svg { width: 13px; height: 13px; margin-left: 1px; }
.prova__nome { display: block; margin-top: 9px; font-size: 14px; font-weight: 500; line-height: 1.25; }
.prova__produto { display: block; margin-top: 1px; font-size: 12.5px; color: var(--tinta-2); }
.prova__btn:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: var(--raio); }

/* Setas só em computador (no celular se arrasta com o dedo) */
.provas__seta {
  position: absolute;
  z-index: 2;
  top: calc(14px + 30%);
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--branco);
  box-shadow: 0 0 0 1px var(--linha);
  color: var(--tinta);
  cursor: pointer;
}
.provas__seta svg { width: 16px; height: 16px; }
.provas__seta--ant { left: 8px; }
.provas__seta--prox { right: 8px; }
.provas__seta:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .provas__seta { display: grid; transition: opacity .3s ease; }
}

/* ============ CARTÕES ============ */
.portas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px var(--pad) 0;
}

.porta {
  border-radius: var(--raio);
  background: var(--branco);
  box-shadow: inset 0 0 0 1px var(--linha);
  scroll-margin-top: 16px;
}
.porta:empty { display: none; }

.porta__corpo { padding: 20px 18px; text-align: center; }
.porta__titulo { font-size: 18px; font-weight: 600; line-height: 1.25; }
.porta__texto { margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--tinta-2); text-wrap: balance; }

/* Condições do site: uma linha fina, separada por pontos */
.condicoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
  margin-top: 10px;
  list-style: none;
  font-size: 12.5px;
  color: var(--tinta-2);
}
.condicoes li:first-child { flex-basis: 100%; }   /* o frete é longo: fica sozinho na 1ª linha */
.condicoes li:nth-child(n+3)::before { content: "·"; margin-right: 8px; }

.porta__link {
  display: block;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.porta__link:focus-visible { outline: 2px solid var(--tinta); outline-offset: -3px; border-radius: var(--raio); }

/* Botão dos cartões e do visualizador: branco, contorno fino */
.botao,
.reels__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--branco);
  box-shadow: inset 0 0 0 1px var(--linha-2);
  color: var(--tinta);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.botao { margin-top: 14px; }
.botao:hover,
.porta__link:hover .botao,
.reels__cta:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.botao:active,
.reels__cta:active { transform: scale(.985); }
.botao:focus-visible,
.reels__cta:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

/* Tíquete do cupom, dentro do cartão do site */
.cupom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1px 12px;
  width: calc(100% - 36px);
  margin: 0 18px 18px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--fundo);
  color: var(--tinta);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease);
}
.cupom:active { transform: scale(.985); }
.cupom:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
.cupom__kicker { grid-column: 1; font-size: 12.5px; color: var(--tinta-2); }
.cupom__codigo { grid-column: 1; font-size: 18px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.cupom__dica {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Categorias ---------- */
.atalhos { padding: 6px 0; }
.atalhos:empty { display: none; }
.atalhos__lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
}
.atalho {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--branco);
  box-shadow: inset 0 0 0 1px var(--linha);
  color: var(--tinta);
  font-size: 13.5px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .3s ease;
}
.atalho:hover { box-shadow: inset 0 0 0 1px var(--linha-2); }
.atalho:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

/* ---------- Showroom ---------- */
.loja__foto {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--raio) var(--raio) 0 0;
  background: var(--base);
  -webkit-tap-highlight-color: transparent;
}
.loja__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loja__foto:focus-visible { outline: 2px solid var(--tinta); outline-offset: -3px; }
.loja__selo {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  background: var(--branco);
  font-size: 12px;
}
.loja__selo svg { width: 14px; height: 14px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--tinta-2);
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: #A8A196; }
.status.is-aberto { color: #24683A; }
.status.is-aberto i { background: #2E8A47; }

.loja__nota {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--tinta-2);
}
.loja__nota strong { font-weight: 600; color: var(--tinta); }
.loja__estrelas { display: inline-flex; gap: 1px; color: var(--tinta); }
.loja__estrelas svg { width: 13px; height: 13px; }

.loja__linha { margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--tinta-2); }
.loja__end span { display: block; }

.loja__acoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.loja__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--linha-2);
  color: var(--tinta);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .3s ease, transform .3s var(--ease);
}
.loja__btn-icone { display: inline-flex; width: 16px; height: 16px; flex: 0 0 auto; }
.loja__btn-icone svg { width: 100%; height: 100%; }
.loja__btn:hover { box-shadow: inset 0 0 0 1px var(--tinta); }
.loja__btn:active { transform: scale(.985); }
.loja__btn:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
/* Botão que ocupa a linha inteira (o "Combinar visita") */
.loja__btn--largo { grid-column: 1 / -1; }

/* ============ SOCIAL ============ */
.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  padding: 0 var(--pad);
}
.social:empty { display: none; }
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tinta);
  text-decoration: none;
  font-size: 13.5px;
}
.social__link svg { width: 18px; height: 18px; }
.social__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.social__link:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }

/* ============ RODAPÉ ============ */
/* Sem opacity no bloco: ele desbotaria também a logo azul da RHZ. */
.rodape {
  margin-top: 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--tinta-2);
}
.rodape__linha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}
/* O arquivo da logo já traz o respiro da marca embutido, por isso a margem
   negativa: sem ela sobra um vão grande demais depois de "pela". */
.rodape__rhz { display: inline-flex; margin-left: -7px; transition: opacity .3s ease; }
.rodape__rhz img { width: 88px; height: auto; display: block; }
.rodape__rhz:hover { opacity: .7; }
.rodape__rhz:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; border-radius: 6px; }

/* ============ VISUALIZADOR (dialog) ============ */
.reels {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--fundo);
  color: var(--tinta);
  overflow: hidden;
}
.reels[open] { display: block; }
/* Cor literal: navegadores antigos não passam variáveis CSS para o ::backdrop */
.reels::backdrop { background: #F6F3EE; }

.reels__caixa {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.reels__topo { flex: 0 0 auto; padding: 12px 14px 8px; }
.reels__barras { display: flex; gap: 4px; }
.reels__barras .barra { height: 2px; background: var(--linha-2); }
.reels__barras .barra i { background: var(--tinta); }
.reels__linha { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.reels__quem { flex: 1 1 auto; min-width: 0; }
.reels__nome {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reels__produto { display: block; font-size: 12.5px; color: var(--tinta-2); }
.reels__icone {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--branco);
  box-shadow: inset 0 0 0 1px var(--linha);
  color: var(--tinta);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reels__icone svg { width: 18px; height: 18px; }
.reels__icone:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
.reels .icone-play,
.reels .icone-mudo { display: none; }
.reels.is-pausado .reels__icone .icone-pausa { display: none; }
.reels.is-pausado .reels__icone .icone-play { display: block; }
.reels.is-mudo .icone-som { display: none; }
.reels.is-mudo .icone-mudo { display: block; }

.reels__palco {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* Largura e altura em px vêm do main.js (cabe na tela mantendo a proporção) */
.reels__quadro {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 100%;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--base);
  transition: transform .25s var(--ease);
}
.reels__quadro video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--base);
}

.reels__carregando {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid rgba(20, 20, 18, .2);
  border-top-color: var(--tinta);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.reels.is-carregando .reels__carregando { opacity: 1; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.reels__pausado {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--tinta);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.reels__pausado svg { width: 24px; height: 24px; margin-left: 3px; }
.reels.is-pausado .reels__pausado { opacity: 1; }

.reels__ativar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px 9px 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--tinta);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.reels__ativar svg { width: 17px; height: 17px; }

.reels__aviso {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: rgba(246, 243, 238, .94);
  color: var(--tinta);
  text-align: center;
  font-size: 15px;
}
.reels__aviso-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.reels__aviso button {
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--branco);
  box-shadow: inset 0 0 0 1px var(--linha-2);
  color: var(--tinta);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.reels__seta {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: var(--branco);
  box-shadow: 0 0 0 1px var(--linha);
  color: var(--tinta);
  cursor: pointer;
}
.reels__seta svg { width: 18px; height: 18px; }
.reels__seta--ant { left: -6px; }
.reels__seta--prox { right: -6px; }
@media (hover: hover) and (pointer: fine) {
  .reels__seta { display: grid; }
}

.reels__base { flex: 0 0 auto; padding: 12px 14px 14px; }

/* Página travada enquanto o visualizador está aberto */
html.is-travado,
html.is-travado body { overflow: hidden; overscroll-behavior: none; }
html.is-travado body { position: fixed; left: 0; right: 0; }

/* ============ ANIMAÇÕES DE ENTRADA ============
   O estado inicial escondido só vale com a classe .js (posta no <head>).
   Sem JS — ou se o requestAnimationFrame não disparar (aba em segundo
   plano, economia de bateria do iOS) — a página nasce visível.
   Os botões do topo NÃO entram com animação: são a razão da página. */
.js .reveal { opacity: 0; transform: translateY(12px); }
.is-ready .reveal {
  animation: subir .6s var(--ease) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes subir { to { opacity: 1; transform: translateY(0); } }

/* ============ TELAS BAIXAS (celular pequeno no navegador do Instagram) ============ */
@media (max-height: 620px) {
  :root { --medalha: 68px; }
  .folha__frase { font-size: 13px; }
  .botoes { gap: 6px; margin-top: 10px; }
  .bt { min-height: 48px; padding: 4px 8px; }
}

/* ============ TELAS MAIORES ============ */
@media (min-width: 600px) {
  body { padding: 32px 16px; background: #EFEBE4; }
  .pagina {
    overflow: hidden;
    border-radius: 24px;
    background: var(--fundo);
    padding-bottom: 28px;
  }
  .stories { max-height: none; }
}

/* ============ MOVIMENTO REDUZIDO ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  * { transition-duration: .01ms !important; }
}
