/* =========================================================
   Rede São Roque · Perfil Evento UCB
   Apenas HTML + CSS
   ========================================================= */

:root {
  /* Cores principais (São Roque) */
  --laranja: rgb(248 156 37);       /* Laranja São Roque */
  --azul: rgb(14 59 103);           /* Azul São Roque */
  --verde: rgb(57 191 115);         /* Verde São Roque */
  --azul-vivo: rgb(0 89 250);       /* Azul Vivo São Roque */
  /* Cores de apoio */
  --laranja-forte: rgb(204 126 45);
  --azul-cinza: rgb(42 79 119);
  --branco: rgb(254 254 254);
  --cinza: rgb(225 225 225);
  --roxo: rgb(75 0 130);

  --texto: var(--azul);
  --texto-suave: rgb(42 79 119 / .75);
  --linha: rgb(14 59 103 / .1);
  --fundo-cinza: rgb(14 59 103 / .06);

  --largura: 480px;
  --nav-altura: 68px;
  --raio: 14px;
  --fonte: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--fonte);
  color: var(--texto);
  font-size: 15px;
  line-height: 1.4;
  background-color: var(--azul);
  background-image: url("../img/s-aramado.svg"), url("../img/s-aramado.svg");
  background-repeat: no-repeat;
  background-size: auto 78vh, auto 52vh;
  background-position: left -6vh top 10vh, right -4vh bottom -12vh;
  background-attachment: fixed;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Coluna do app (estilo celular no desktop) */
.app {
  position: relative;
  width: min(100%, var(--largura));
  min-height: 100vh;
  margin-inline: auto;
  background: var(--branco);
  padding-bottom: calc(var(--nav-altura) + env(safe-area-inset-bottom));
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 30px 80px rgb(0 0 0 / .35);
}

/* ===================== TOPO ===================== */
.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgb(254 254 254 / .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha);
}
.topo__logo img { height: 34px; width: auto; }

.topo__evento {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
  color: var(--azul);
  background: rgb(248 156 37 / .14);
  border-radius: 999px;
  padding: 4px 12px 2px;
  white-space: nowrap;
}
.topo__evento:hover { background: rgb(248 156 37 / .24); }
.pulso {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 0 rgb(57 191 115 / .6);
  animation: pulso 1.8s infinite;
  margin-top: -2px;
}
@keyframes pulso {
  70% { box-shadow: 0 0 0 8px rgb(57 191 115 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(57 191 115 / 0); }
}

/* ===================== PERFIL ===================== */
.perfil { padding: 18px 16px 6px; }

.perfil__linha {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  position: relative;
  flex: none;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.avatar__anel {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--laranja), var(--laranja-forte), var(--azul), var(--azul-vivo), var(--verde), var(--laranja));
  animation: gira 8s linear infinite;
}
.avatar__anel::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--branco);
}
.avatar img {
  position: relative;
  width: 70px; height: 70px;
  object-fit: contain;
}
@keyframes gira { to { transform: rotate(360deg); } }

.numeros {
  list-style: none;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.numeros li { display: flex; flex-direction: column; line-height: 1.15; }
.numeros strong { font-size: 19px; font-weight: 800; }
.numeros span { font-size: 13px; color: var(--texto-suave); }

.bio { margin-top: 12px; font-size: 14.5px; }
.bio p + p { margin-top: 4px; }
.bio__nome { font-size: 19px; font-weight: 800; line-height: 1.1; }
.bio__cat { color: var(--texto-suave); font-size: 13px; margin-top: 2px !important; margin-bottom: 4px; }
.bio__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-weight: 700;
  color: var(--azul-vivo);
}
.bio__link svg { width: 16px; height: 16px; }

/* Botões */
.acoes {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px 6px;
  border-radius: 12px;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  border: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease, opacity .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; margin-top: -2px; }
.btn--laranja { background: var(--laranja); color: var(--azul); }
.btn--laranja:hover { background: rgb(250 168 60); }
.btn--cinza { background: var(--fundo-cinza); color: var(--azul); }
.btn--cinza:hover { background: rgb(14 59 103 / .11); }
.btn--azul { background: var(--azul); color: var(--branco); }
.btn--azul:hover { background: var(--azul-cinza); }
.btn--branco { background: var(--branco); color: var(--azul); }
.btn--icone { width: 40px; padding: 0; }
.btn--largo { white-space: normal; width: 100%; min-height: 48px; font-size: 16px; }

/* Destaques */
.destaques {
  display: flex;
  gap: 14px;
  margin: 18px -16px 0;
  padding: 0 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.destaques::-webkit-scrollbar { display: none; }
.destaque {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 68px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
}
.destaque__bola {
  width: 64px; height: 64px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid var(--cinza);
  background: var(--branco);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.destaque__bola img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.destaque--ativo .destaque__bola { border-color: var(--laranja); }
.destaque__bola--icone {
  background: var(--cor);
  border-color: var(--cor);
  color: var(--branco);
  box-shadow: inset 0 0 0 3px var(--branco);
}
.destaque__bola--icone svg { width: 28px; height: 28px; }
.destaque__bola--texto {
  background: linear-gradient(135deg, var(--laranja), var(--laranja-forte));
  border-color: var(--laranja);
  box-shadow: inset 0 0 0 3px var(--branco);
  color: var(--azul);
  font-weight: 800;
  font-size: 13px;
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
}
.destaque__bola--texto span { padding-top: 4px; }

/* Destaque com stories: anel colorido */
.destaque--stories .destaque__bola {
  border-color: transparent;
  background:
    linear-gradient(135deg, var(--laranja), var(--laranja-forte)) padding-box,
    conic-gradient(var(--laranja), var(--azul-vivo), var(--verde), var(--laranja)) border-box;
  border-width: 3px;
}

/* Preview da Sexta Roque no pop-up */
.sexta {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--azul);
  color: var(--branco);
}
.sexta video { width: 100%; height: 100%; object-fit: cover; }
.sexta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgb(6 25 45 / .8));
  pointer-events: none;
}
.sexta__nome {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 14px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.sexta__nome em { font-style: normal; color: var(--laranja); }
.sexta__play {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  width: 76px; height: 76px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgb(254 254 254 / .92);
  color: var(--azul);
  box-shadow: 0 0 0 0 rgb(254 254 254 / .6), 0 10px 30px rgb(0 0 0 / .35);
  animation: chama-play 1.8s ease-out infinite;
  transition: transform .2s ease;
}
.sexta__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.sexta__play:focus-visible { outline: 3px solid var(--laranja); outline-offset: 4px; }
.sexta__play svg { width: 34px; height: 34px; margin-left: 5px; fill: currentColor; stroke: none; }
@keyframes chama-play {
  80%, 100% { box-shadow: 0 0 0 16px rgb(254 254 254 / 0), 0 10px 30px rgb(0 0 0 / .35); }
}

/* ===================== STORIES ===================== */
.stories {
  --duracao: 6s; /* duração de cada vídeo */
  position: fixed;
  z-index: 70;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--largura));
  display: none;
  background: #000;
  color: var(--branco);
}
.stories:has(:target) { display: block; animation: aparece .2s ease both; }
body:has(.stories :target) { overflow: hidden; }
.app:has(.stories :target) .nav { display: none; }

.story { display: none; position: absolute; inset: 0; }
.story:target { display: block; }
.story video { width: 100%; height: 100%; object-fit: cover; }
.story::before,
.story::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
}
.story::before { top: 0; height: 140px; background: linear-gradient(rgb(0 0 0 / .55), transparent); }
.story::after { bottom: 0; height: 220px; background: linear-gradient(transparent, rgb(6 25 45 / .85)); }

.story__barras {
  position: absolute;
  z-index: 3;
  top: calc(10px + env(safe-area-inset-top));
  left: 10px; right: 10px;
  display: flex;
  gap: 4px;
}
.story__barras span {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgb(254 254 254 / .35);
  overflow: hidden;
}
.story__barras span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--branco);
  transform-origin: left;
  transform: scaleX(0);
}
.story__barras .cheia::after { transform: scaleX(1); }
.story:target .story__barras .atual::after { animation: progresso var(--duracao) linear forwards; }
@keyframes progresso { to { transform: scaleX(1); } }

.story__cab {
  position: absolute;
  z-index: 3;
  top: calc(22px + env(safe-area-inset-top));
  left: 12px; right: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.story__avatar {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--branco);
  background: linear-gradient(135deg, var(--laranja), var(--laranja-forte));
  color: var(--azul);
  font-size: 8.5px;
  font-weight: 800;
  line-height: .9;
  text-align: center;
  text-transform: uppercase;
  padding-top: 2px;
}
.story__cab div { flex: 1; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; text-shadow: 0 1px 3px rgb(0 0 0 / .4); }
.story__cab strong { font-size: 15px; }
.story__cab div span { font-size: 12px; opacity: .85; }
.story__btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--branco);
}
.story__btn:hover { background: rgb(254 254 254 / .15); }
.story__btn svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .4)); }

/* Áreas de toque: esquerda volta, direita avança */
.story__toque { position: absolute; z-index: 2; top: 80px; bottom: 90px; }
.story__toque--ant { left: 0; width: 32%; }
.story__toque--prox { right: 0; width: 68%; }
.story__toque:focus-visible { outline: 2px solid var(--laranja); outline-offset: -6px; }

.story__legenda {
  position: absolute;
  z-index: 2;
  left: 16px; right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 2px 6px rgb(0 0 0 / .4);
  pointer-events: none;
}
.story__cta {
  position: absolute;
  z-index: 3;
  left: 16px; right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding-top: 3px;
  border-radius: 999px;
  background: var(--laranja);
  color: var(--azul);
  font-size: 16px;
  font-weight: 800;
}
.story__cta:hover { background: rgb(250 168 60); }

.destaque:hover .destaque__bola { border-color: var(--laranja); }

/* ===================== ABAS ===================== */
.abas { margin-top: 10px; }
.abas > input { position: absolute; opacity: 0; pointer-events: none; }

.abas__barra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--linha);
}
.abas__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  color: rgb(14 59 103 / .45);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  border-top: 2px solid transparent;
  margin-top: -1px;
  transition: color .2s ease;
}
.abas__tab svg { width: 20px; height: 20px; margin-top: -2px; }

#aba-feed:checked ~ .abas__barra [for="aba-feed"],
#aba-videos:checked ~ .abas__barra [for="aba-videos"],
#aba-sobre:checked ~ .abas__barra [for="aba-sobre"] {
  color: var(--azul);
  border-top-color: var(--laranja);
}
#aba-feed:focus-visible ~ .abas__barra [for="aba-feed"],
#aba-videos:focus-visible ~ .abas__barra [for="aba-videos"],
#aba-sobre:focus-visible ~ .abas__barra [for="aba-sobre"] { outline: 2px solid var(--azul-vivo); outline-offset: -4px; }

.sobre { display: none; padding: 18px 16px 24px; }
#aba-sobre:checked ~ .feed,
#aba-videos:checked ~ .feed { display: none; }
#aba-videos:checked ~ .miniaturas { display: grid; }
#aba-sobre:checked ~ .sobre { display: block; }

/* Feed */
.feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  scroll-margin-top: 60px;
}
.post {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cinza);
}
.post img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post__legenda {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 8px 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--branco);
  background: linear-gradient(transparent, rgb(14 59 103 / .9));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.post:hover img { transform: scale(1.06); }
.post:hover .post__legenda { opacity: 1; transform: none; }

/* Post fixado */
.post--fixado::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--laranja) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E3B67' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5M9 3h6l-1 6 3 4H7l3-4z'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Sobre */
.sobre h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.sobre p { color: var(--azul-cinza); }
.sobre__lista { list-style: none; margin: 16px 0 20px; display: grid; gap: 10px; }
.sobre__lista li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.tag {
  flex: none;
  min-width: 110px;
  text-align: center;
  padding: 4px 10px 2px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.tag--laranja { background: var(--laranja); color: var(--azul); }
.tag--verde { background: var(--verde); color: var(--azul); }
.tag--azul { background: var(--azul-vivo); color: var(--branco); }

/* Rodapé */
.rodape {
  padding: 28px 16px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--texto-suave);
}
.rodape img { height: 36px; width: auto; margin: 0 auto 6px; opacity: .9; }

/* ===================== NAVEGAÇÃO INFERIOR ===================== */
.nav {
  position: fixed;
  z-index: 30;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--largura));
  height: calc(var(--nav-altura) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: rgb(254 254 254 / .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--linha);
}
.nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: var(--nav-altura);
  font-size: 12px;
  font-weight: 700;
  color: var(--azul);
}
.nav__item svg { width: 25px; height: 25px; }
.nav__item:hover { color: var(--azul-vivo); }

/* Item ativo */
.nav__item { position: relative; color: rgb(14 59 103 / .55); }
.nav__item--perfil,
.app:has(.vtela:target, .vtela :target) .nav__item--videos { color: var(--azul); }
.app:has(.vtela:target, .vtela :target) .nav__item--perfil { color: rgb(14 59 103 / .55); }

/* Roleta: roda girando */
.nav__item--destaque { justify-content: flex-end; padding-bottom: 9px; color: var(--azul); }
.nav__roda {
  position: relative;
  width: 60px; height: 60px;
  margin-top: -32px;
  border-radius: 50%;
  border: 4px solid var(--branco);
  background:
    repeating-conic-gradient(rgb(254 254 254 / .9) 0 2deg, transparent 2deg 45deg),
    conic-gradient(var(--laranja) 0 45deg, var(--azul) 0 90deg, var(--verde) 0 135deg, var(--azul-vivo) 0 180deg, var(--laranja-forte) 0 225deg, var(--azul-cinza) 0 270deg, var(--roxo) 0 315deg, var(--laranja) 0);
  box-shadow: 0 6px 18px rgb(14 59 103 / .35), 0 0 0 0 rgb(248 156 37 / .5);
  animation: gira 2.6s linear infinite, chama 2s ease-out infinite;
}
.nav__roda::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--branco);
  box-shadow: inset 0 0 0 3px var(--laranja);
}
.nav__item--destaque::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -34px;
  left: 50%;
  width: 12px; height: 12px;
  transform: translateX(-50%);
  background: var(--azul);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.nav__item--destaque:hover .nav__roda { animation-duration: .9s, 2s; }
@keyframes chama {
  0% { box-shadow: 0 6px 18px rgb(14 59 103 / .35), 0 0 0 0 rgb(248 156 37 / .55); }
  80%, 100% { box-shadow: 0 6px 18px rgb(14 59 103 / .35), 0 0 0 12px rgb(248 156 37 / 0); }
}

/* ===================== MAIS INFORMAÇÕES (sheet) ===================== */
.sheet {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.sheet:target { display: flex; }
.sheet__fundo {
  position: absolute; inset: 0;
  background: rgb(6 25 45 / .55);
  animation: aparece .25s ease both;
}
.sheet__caixa {
  position: relative;
  width: min(100%, var(--largura));
  max-height: 88vh;
  overflow-y: auto;
  background: var(--branco);
  border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  animation: sobe .35s cubic-bezier(.2, .8, .2, 1) both;
}
.sheet__alca {
  display: block;
  width: 42px; height: 5px;
  border-radius: 9px;
  background: var(--cinza);
  margin: 0 auto 16px;
}
.sheet h2 { font-size: 22px; font-weight: 800; line-height: 1.15; }
.sheet__selo {
  display: inline-block;
  padding: 3px 10px 1px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--cor);
  color: var(--cor-texto);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sheet__foto {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}
.sheet__texto { margin-top: 8px; color: var(--azul-cinza); font-size: 15.5px; }
.sheet__texto + .sheet__botoes { margin-top: 20px; }
.sheet h2 { text-wrap: balance; }
.sheet__data {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--laranja-forte);
}
.sheet__data svg { width: 18px; height: 18px; margin-top: -3px; }
.passos { list-style: none; counter-reset: p; margin: 18px 0; display: grid; gap: 12px; }
.passos li { counter-increment: p; position: relative; padding-left: 42px; min-height: 30px; color: var(--azul-cinza); }
.passos li strong { color: var(--azul); }
.passos li::before {
  content: counter(p);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  padding-top: 3px;
  background: var(--azul);
  color: var(--branco);
  font-weight: 800;
}
.sheet__nota { font-size: 12.5px; color: var(--texto-suave); margin-bottom: 18px; }
.sheet__botoes { display: grid; gap: 8px; }

@keyframes aparece { from { opacity: 0; } }
@keyframes sobe { from { transform: translateY(100%); } }

/* ===================== CADASTRO / CONFIRMAÇÃO ===================== */
.painel {
  position: fixed;
  z-index: 60;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--largura));
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--branco);
  background:
    url("../img/s-aramado.svg") right -90px top 40px / auto 520px no-repeat,
    radial-gradient(120% 60% at 50% 0%, var(--azul-cinza), transparent 70%),
    var(--azul);
}
.painel:target,
.painel:has(.ancora:target) { display: block; animation: aparece .3s ease both; }

.painel__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 12px 0;
}
.voltar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgb(254 254 254 / .1);
}
.voltar:hover { background: rgb(254 254 254 / .2); }
.voltar svg { width: 22px; height: 22px; }
.voltar--vazio { background: none; }
.painel__logo { height: 40px; width: auto; }

.painel__conteudo { padding: 10px 16px 40px; text-align: center; }
.painel__conteudo--centro {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 48px;
}
.painel__chamada {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px 2px;
  border-radius: 999px;
  background: rgb(254 254 254 / .12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.painel__titulo {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  margin: 10px 0 8px;
  text-wrap: balance;
}
.painel__titulo span { color: var(--laranja); }
.painel__sub {
  max-width: 34ch;
  margin: 0 auto 22px;
  font-size: 15.5px;
  opacity: .88;
}

/* Como funciona (cadastro → mesa → roleta) */
.dinamica {
  list-style: none;
  counter-reset: passo;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 18px;
  text-align: center;
}
.dinamica__passo {
  counter-increment: passo;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 14px 6px 12px;
  border-radius: 16px;
  background: var(--azul-cinza);
  border: 1px solid rgb(254 254 254 / .14);
  box-shadow: 0 8px 20px rgb(0 0 0 / .18);
  line-height: 1.15;
}
.dinamica__passo:nth-child(odd)::after { /* seta entre os passos da mesma linha */
  content: "";
  position: absolute;
  z-index: 1;
  top: 34px;
  right: -9px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--laranja);
  border-right: 2px solid var(--laranja);
  transform: rotate(45deg);
}
.dinamica__passo::before { /* número do passo */
  content: counter(passo);
  position: absolute;
  top: 8px; left: 8px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  padding-top: 2px;
  border-radius: 50%;
  background: rgb(254 254 254 / .15);
  font-size: 11px;
  font-weight: 800;
}
.dinamica__passo--atual { border-color: var(--laranja); box-shadow: inset 0 0 0 1px var(--laranja), 0 8px 20px rgb(0 0 0 / .18); }
.dinamica__passo--atual::before { background: var(--laranja); color: var(--azul); }
.dinamica__icone {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--branco);
  color: var(--azul);
}
.dinamica__icone svg { width: 22px; height: 22px; }
.dinamica__icone--roda {
  border: 3px solid var(--branco);
  background: conic-gradient(var(--laranja) 0 45deg, var(--azul) 0 90deg, var(--verde) 0 135deg, var(--azul-vivo) 0 180deg, var(--laranja-forte) 0 225deg, var(--azul-cinza) 0 270deg, var(--roxo) 0 315deg, var(--laranja) 0);
  animation: gira 4s linear infinite;
}
.dinamica__passo strong { font-size: 14.5px; font-weight: 800; }
.dinamica__passo > span:last-child { font-size: 12px; opacity: .85; }
@media (max-width: 360px) {
  .dinamica { gap: 6px; }
  .dinamica__passo { padding-inline: 4px; }
  .dinamica__passo strong { font-size: 13px; }
  .dinamica__passo > span:last-child { font-size: 11px; }
  .dinamica__icone { width: 36px; height: 36px; }
}

@media (min-width: 440px) {
  .dinamica { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .dinamica__passo:not(:last-child)::after { content: ""; }
  .dinamica__passo:nth-child(2)::after {
    content: "";
    position: absolute; z-index: 1; top: 34px; right: -8px;
    width: 10px; height: 10px;
    border-top: 2px solid var(--laranja); border-right: 2px solid var(--laranja);
    transform: rotate(45deg);
  }
  .dinamica__passo strong { font-size: 13.5px; }
  .dinamica__passo > span:last-child { font-size: 11.5px; }
}

/* Formulário */
.cadastro {
  text-align: left;
  background: var(--branco);
  color: var(--azul);
  border-radius: 20px;
  padding: 18px 16px 16px;
  box-shadow: 0 18px 40px rgb(0 0 0 / .25);
}
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.campo { display: grid; gap: 4px; font-size: 13px; font-weight: 700; min-width: 0; }
.campo--inteiro { grid-column: 1 / -1; }
.campo small { font-weight: 500; color: var(--texto-suave); font-size: 12px; }
.campo input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 4px 12px 0;
  font: 500 16px/1 var(--fonte);
  color: var(--azul);
  background: var(--fundo-cinza);
  border: 2px solid transparent;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.campo input::placeholder { color: rgb(14 59 103 / .38); }
.campo input:focus { border-color: var(--azul-vivo); background: var(--branco); }
.campo input:user-invalid { border-color: rgb(214 69 65); background: rgb(214 69 65 / .06); }
.campo input:valid:not(:placeholder-shown) { border-color: var(--verde); }

/* Lista de empresas juniores */
.campo__select { position: relative; display: block; }
.campo__select::after {
  content: "";
  position: absolute;
  top: 50%; right: 16px;
  width: 9px; height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--azul);
  border-bottom: 2px solid var(--azul);
  transform: rotate(45deg);
  pointer-events: none;
}
.campo select {
  width: 100%;
  height: 46px;
  padding: 4px 40px 0 12px;
  font: 500 16px/1 var(--fonte);
  color: var(--azul);
  background: var(--fundo-cinza);
  border: 2px solid transparent;
  border-radius: 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.campo select:focus { border-color: var(--azul-vivo); background-color: var(--branco); }
.campo select:invalid { color: rgb(14 59 103 / .45); }
.campo select:valid { border-color: var(--verde); }
.campo select option { color: var(--azul); }
.campo--outra, .campo--outro-curso { display: none; }
.cadastro:has(#f-ej option[value="outra"]:checked) .campo--outra,
.cadastro:has(#f-curso option[value="outro"]:checked) .campo--outro-curso { display: grid; }

/* Seletor pesquisável (js/seletor.js): botão no lugar do select + janela com busca */
.seletor-nativo {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.seletor-gatilho {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 40px 10px 12px;
  font: 500 16px/1.2 var(--fonte);
  color: var(--azul);
  text-align: left;
  background: var(--fundo-cinza);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: border-color .2s ease, background-color .2s ease;
}
.seletor-gatilho:focus-visible { outline: none; border-color: var(--azul-vivo); background: var(--branco); }
.seletor-gatilho--vazio { color: rgb(14 59 103 / .45); }
.campo__select--preenchido .seletor-gatilho { border-color: var(--verde); }
.campo__select:has(.seletor-nativo:user-invalid) .seletor-gatilho { border-color: rgb(214 69 65); background: rgb(214 69 65 / .06); }

.seletor-dialogo {
  width: min(100%, var(--largura));
  max-width: 100%;
  height: min(86dvh, 680px);
  max-height: 86dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--branco);
  color: var(--azul);
  font-family: var(--fonte);
  box-shadow: 0 -10px 40px rgb(0 0 0 / .25);
}
.seletor-dialogo[open] { display: flex; flex-direction: column; animation: seletor-sobe .25s ease-out both; }
.seletor-dialogo::backdrop { background: rgb(14 59 103 / .45); backdrop-filter: blur(3px); }
@keyframes seletor-sobe { from { translate: 0 30%; opacity: 0; } }
.seletor-dialogo__topo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 16px 8px 20px;
}
.seletor-dialogo__topo h2 { font-size: 20px; font-weight: 800; }
.seletor-dialogo__fechar {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--fundo-cinza); color: var(--azul);
  cursor: pointer;
}
.seletor-dialogo__fechar svg { width: 20px; height: 20px; }
.seletor-dialogo__busca {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 16px 10px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--fundo-cinza);
  border: 2px solid transparent;
}
.seletor-dialogo__busca:focus-within { border-color: var(--azul-vivo); background: var(--branco); }
.seletor-dialogo__busca svg { width: 20px; height: 20px; flex: none; opacity: .55; }
.seletor-dialogo__busca input {
  flex: 1; min-width: 0; height: 44px;
  border: 0; background: none; outline: none;
  font: 500 16px/1 var(--fonte); color: var(--azul);
}
.seletor-dialogo__lista {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  list-style: none;
  padding: 0 8px calc(16px + env(safe-area-inset-bottom, 0px));
}
.seletor-dialogo__lista li[hidden] { display: none; }
.seletor-opcao {
  display: block; width: 100%;
  min-height: 48px;
  padding: 12px 14px 10px;
  border: 0; border-radius: 10px;
  background: none; color: var(--azul);
  font: 500 16px/1.25 var(--fonte); text-align: left;
  cursor: pointer;
}
.seletor-opcao:hover, .seletor-opcao:focus-visible { outline: none; background: var(--fundo-cinza); }
.seletor-opcao[aria-selected="true"] { background: rgb(248 156 37 / .16); font-weight: 700; }
.seletor-opcao--fixa { font-weight: 700; color: var(--azul-vivo); }
.seletor-dialogo__vazio { padding: 8px 22px 16px; font-size: 14px; color: var(--texto-suave); }

.aceite {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  font-size: 13px;
  color: var(--azul-cinza);
  cursor: pointer;
}
.aceite input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 1px;
  accent-color: var(--laranja-forte);
}

.btn--enviar { min-height: 52px; font-size: 17px; }
.btn--enviar:focus-visible { outline: 3px solid var(--azul-vivo); outline-offset: 2px; }
.cadastro:invalid .btn--enviar { opacity: .5; filter: grayscale(.4); cursor: not-allowed; }
.cadastro__dica {
  margin-top: 8px;
  font-size: 12px;
  text-align: center;
  color: var(--texto-suave);
}
.cadastro:valid .cadastro__dica { visibility: hidden; }

/* Confirmação: próximos passos */
.proximos {
  list-style: none;
  counter-reset: px;
  width: min(100%, 320px);
  margin: 0 auto 24px;
  display: grid;
  gap: 8px;
  text-align: left;
}
.proximos li {
  counter-increment: px;
  position: relative;
  padding: 10px 12px 8px 50px;
  border-radius: 14px;
  background: var(--azul-cinza);
  font-size: 14.5px;
  line-height: 1.2;
}
.proximos li::before {
  content: counter(px);
  position: absolute;
  left: 12px; top: 50%;
  width: 26px; height: 26px;
  margin-top: -13px;
  display: grid; place-items: center;
  padding-top: 2px;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--azul);
  font-weight: 800;
  font-size: 13px;
}
.proximos .proximos__agora { box-shadow: inset 0 0 0 2px var(--laranja); }
.proximos .proximos__feito { opacity: .7; }
.proximos .proximos__feito::before { content: "✓"; background: var(--verde); }

/* Confirmação */
.check {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--verde);
  color: var(--azul);
  box-shadow: 0 0 0 10px rgb(57 191 115 / .18);
  margin-bottom: 18px;
  animation: pop .5s cubic-bezier(.2, .9, .3, 1.4) both;
}
.check svg { width: 44px; height: 44px; stroke-width: 3; }
.painel--ok .sheet__botoes { width: min(100%, 320px); }
.btn--transparente { background: rgb(254 254 254 / .1); color: var(--branco); }
.btn--transparente:hover { background: rgb(254 254 254 / .2); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Lista de empresas na aba Sobre */
.sobre__sub { font-size: 16px; font-weight: 800; margin: 18px 0 8px; }
.grupo { list-style: none; display: grid; gap: 6px; margin-bottom: 20px; }
.grupo a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px;
  border-radius: 12px;
  background: var(--fundo-cinza);
  font-weight: 700;
}
.grupo a:hover { background: rgb(14 59 103 / .11); }
.grupo__cor { width: 12px; height: 12px; border-radius: 50%; background: var(--cor); flex: none; margin-top: -2px; }

/* Painel aberto: esconde a navegação e trava a rolagem do fundo */
.app:has(.painel:target, .ancora:target) .nav { display: none; }
body:has(.ancora:target) { overflow: hidden; }
body:has(.vtela:target, .vtela :target) { overflow: hidden; }
body:has(.painel:target), body:has(.sheet:target) { overflow: hidden; }

/* ===================== VÍDEOS: miniaturas no perfil ===================== */
.miniaturas {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.miniatura {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  overflow: hidden;
  background: var(--azul);
}
.miniatura img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.miniatura:hover img { transform: scale(1.05); }
.miniatura__play {
  position: absolute;
  top: 8px; left: 8px;
  color: var(--branco);
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / .5));
}
.miniatura__play svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.miniatura__titulo {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 8px 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--branco);
  background: linear-gradient(transparent, rgb(6 25 45 / .85));
}

/* ===================== VÍDEOS: tela cheia ===================== */
.vtela {
  --escuro: rgb(6 25 45);
  position: fixed;
  z-index: 25;
  top: 0;
  bottom: calc(var(--nav-altura) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--largura));
  display: none;
  background: var(--escuro);
  color: var(--branco);
}
.vtela:target,
.vtela:has(:target) { display: block; animation: aparece .25s ease both; }

.vtela__topo {
  position: absolute;
  z-index: 3;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 12px 24px;
  background: linear-gradient(rgb(6 25 45 / .7), transparent);
  pointer-events: none;
}
.vtela__topo > * { pointer-events: auto; }
.vtela__topo h2 { font-size: 20px; font-weight: 800; padding-top: 3px; }

.vtela__lista {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.vtela__lista::-webkit-scrollbar { display: none; }

.vid {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
}
.vid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vid::after { /* sombra para leitura do texto */
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(transparent, rgb(6 25 45 / .75));
  pointer-events: none;
}

.vid__info {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 84px;
  bottom: 46px;
  text-shadow: 0 1px 3px rgb(0 0 0 / .45);
  pointer-events: none;
}
.vid__perfil {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}
.vid__perfil img {
  width: 32px; height: 32px;
  padding: 3px;
  border-radius: 50%;
  background: var(--branco);
}
.vid__titulo { margin-top: 8px; font-size: 19px; font-weight: 800; line-height: 1.1; text-wrap: balance; }
.vid__legenda { margin-top: 2px; font-size: 14px; opacity: .92; }

.vid__acoes {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 114px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.vid__acao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 64px;
  font-size: 12px;
  font-weight: 700;
  color: var(--branco);
  text-shadow: 0 1px 3px rgb(0 0 0 / .5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vid__acao svg {
  width: 30px; height: 30px;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / .4));
  transition: transform .2s ease, fill .2s ease, color .2s ease;
}
.vid__acao:hover svg { transform: scale(1.1); }
.vid__acao input { position: absolute; opacity: 0; pointer-events: none; }
.vid__acao input:focus-visible + svg { outline: 2px solid var(--laranja); outline-offset: 3px; border-radius: 6px; }
.vid__acao input:checked + svg { fill: var(--laranja); color: var(--laranja); animation: pop .35s ease; }
.vid__curtido { display: none; }
.vid__acao input:checked ~ .vid__curtir { display: none; }
.vid__acao input:checked ~ .vid__curtido { display: inline; }

.vid__roda {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--branco);
  background: conic-gradient(var(--laranja) 0 45deg, var(--azul) 0 90deg, var(--verde) 0 135deg, var(--azul-vivo) 0 180deg, var(--laranja-forte) 0 225deg, var(--azul-cinza) 0 270deg, var(--roxo) 0 315deg, var(--laranja) 0);
  box-shadow: 0 2px 8px rgb(0 0 0 / .4);
  animation: gira 2.6s linear infinite;
}

/* Navegação escura enquanto os vídeos estão abertos */
.app:has(.vtela:target, .vtela :target) .nav {
  background: var(--azul);
  border-top-color: rgb(254 254 254 / .1);
}
.app:has(.vtela:target, .vtela :target) .nav__item { color: rgb(254 254 254 / .6); }
.app:has(.vtela:target, .vtela :target) .nav__item--videos,
.app:has(.vtela:target, .vtela :target) .nav__item--destaque { color: var(--branco); }
.app:has(.vtela:target, .vtela :target) .nav__roda { border-color: var(--azul); }
.app:has(.vtela:target, .vtela :target) .nav__item--destaque::before { background: var(--laranja); }


.estado { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

/* ===================== VÍDEOS: navegação entre vídeos ===================== */
.vtela__lista { scroll-behavior: smooth; }
.vid__contador {
  position: absolute;
  z-index: 2;
  top: calc(64px + env(safe-area-inset-top));
  right: 12px;
  padding: 3px 9px 1px;
  border-radius: 999px;
  background: rgb(6 25 45 / .55);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vid__proximo {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 42px;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--branco);
  text-shadow: 0 1px 3px rgb(0 0 0 / .5);
}
.vid__proximo svg {
  width: 38px; height: 38px;
  padding: 7px;
  border-radius: 50%;
  background: var(--laranja);
  color: var(--azul);
  stroke-width: 2.6;
  animation: quica 1.6s ease-in-out infinite;
}
@keyframes quica { 50% { transform: translateY(4px); } }

/* ===================== FOTOS: pop-up ===================== */
.post { display: block; }
.post:focus-visible { outline: 3px solid var(--azul-vivo); outline-offset: -3px; }

.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 24px;
}
.modal:target { display: flex; }
body:has(.modal:target) { overflow: hidden; }

.modal__fundo {
  position: absolute;
  inset: 0;
  background: rgb(6 25 45 / .55);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  animation: aparece .25s ease both;
}

.modal__caixa {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--branco);
  box-shadow: 0 30px 80px rgb(0 0 0 / .45);
  animation: abre .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes abre { from { opacity: 0; transform: scale(.94); } }

.modal__img {
  width: 100%;
  aspect-ratio: 1;
  max-width: 100%;
  object-fit: cover;
  background: var(--cinza);
  flex: none;
}
.modal__lado { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal__cab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--linha);
}
.modal__cab > img { width: 34px; height: 34px; padding: 3px; border-radius: 50%; border: 2px solid var(--laranja); }
.modal__cab div { flex: 1; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.modal__cab strong { font-size: 14.5px; }
.modal__cab div span { font-size: 12px; color: var(--texto-suave); }
.modal__num { font-size: 12px; font-weight: 700; color: var(--texto-suave); font-variant-numeric: tabular-nums; }

.modal__texto {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  font-size: 14.5px;
}
.modal__titulo { font-weight: 800; font-size: 17px; line-height: 1.15; margin-bottom: 4px; }
.modal__tags { margin-top: 6px; color: var(--azul-vivo); font-weight: 600; }

.modal__acoes { padding: 6px 8px 8px; border-top: 1px solid var(--linha); }
.modal__acao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 4px 6px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--azul);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.modal__acao:hover { background: var(--fundo-cinza); }
.modal__acao svg { width: 28px; height: 28px; margin-top: -3px; }
.modal__acao input { position: absolute; opacity: 0; pointer-events: none; }
.modal__acao input:focus-visible + svg { outline: 2px solid var(--azul-vivo); outline-offset: 3px; border-radius: 6px; }
.modal__acao input:checked + svg { fill: var(--laranja); color: var(--laranja); animation: pop .35s ease; }
.modal__curtido { display: none; }
.modal__acao input:checked ~ .modal__curtir { display: none; }
.modal__acao input:checked ~ .modal__curtido { display: inline; }

/* Botões flutuantes: fechar e setas */
.modal__fechar,
.modal__seta {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform .15s ease, background-color .15s ease;
}
.modal__fechar {
  top: calc(10px + env(safe-area-inset-top));
  right: 10px;
  width: 42px; height: 42px;
  color: var(--branco);
}
.modal__fechar:hover { background: rgb(254 254 254 / .15); }
.modal__fechar svg { width: 28px; height: 28px; stroke-width: 2.4; }
.modal__seta {
  top: 50%;
  width: 38px; height: 38px;
  margin-top: -19px;
  background: rgb(254 254 254 / .92);
  color: var(--azul);
  box-shadow: 0 4px 14px rgb(0 0 0 / .3);
}
.modal__seta:hover { transform: scale(1.08); }
.modal__seta svg { width: 22px; height: 22px; stroke-width: 2.6; }
.modal__seta--ant { left: 6px; }
.modal__seta--prox { right: 6px; }

/* Desktop: foto à esquerda, legenda à direita (como no navegador) */
@media (min-width: 760px) {
  .modal { padding: 40px 72px; }
  .modal__caixa {
    width: auto;
    max-width: 100%;
    flex-direction: row;
    height: min(86vh, 640px);
    border-radius: 6px;
  }
  .modal__img { width: auto; height: 100%; background: #000; }
  .modal__lado { width: 340px; flex: none; }
  .modal__seta { width: 42px; height: 42px; margin-top: -21px; }
  .modal__seta--ant { left: 18px; }
  .modal__seta--prox { right: 18px; }
  .modal__fechar { top: 14px; right: 18px; }
}


/* ===================== CONCENTRA: avatar com foto nos stories ===================== */
.destaque--stories.destaque--foto .destaque__bola {
  padding: 2px;
  border-color: transparent;
  background:
    linear-gradient(var(--branco), var(--branco)) padding-box,
    conic-gradient(var(--laranja), var(--azul-vivo), var(--verde), var(--laranja)) border-box;
}
.story__avatar--foto { padding: 0; overflow: hidden; background: var(--branco); }
.story__avatar--foto img { width: 100%; height: 100%; object-fit: cover; }

/* ===================== GALERIA DE LOCAIS (pop-ups do grupo) ===================== */
.galeria { margin: 0 -20px 14px; }
.galeria__trilho {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.galeria__trilho::-webkit-scrollbar { display: none; }
.galeria__item {
  position: relative;
  flex: 0 0 86%;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cinza);
}
.galeria__item img { width: 100%; height: 100%; object-fit: cover; }
.galeria__item figcaption {
  position: absolute;
  top: 8px; right: 8px;
  padding: 2px 8px 0;
  border-radius: 999px;
  background: rgb(6 25 45 / .6);
  color: var(--branco);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.galeria__dica {
  margin-top: 6px;
  padding-inline: 20px;
  font-size: 12px;
  color: var(--texto-suave);
}

/* ===================== VERIFICAÇÃO DO CÓDIGO ===================== */
.ancora { position: absolute; top: 0; width: 1px; height: 1px; }
.codigo { text-align: center; }
.codigo .campo { text-align: left; }
.codigo__input {
  height: 64px !important;
  text-align: center;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: .4em;
  padding-left: .4em !important;
  font-variant-numeric: tabular-nums;
}
.codigo .btn--enviar { margin-top: 14px; }
.codigo__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}
.codigo__links a { color: var(--azul-vivo); }
.codigo__links a:hover { text-decoration: underline; }
.aviso {
  display: none;
  margin-bottom: 12px;
  padding: 10px 12px 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
.aviso--erro { background: rgb(214 69 65 / .1); color: rgb(176 46 42); }
.aviso--ok { background: rgb(57 191 115 / .14); color: var(--azul); }
.aviso--visivel { display: block; }
.codigo__links a[aria-disabled="true"] { color: var(--texto-suave); pointer-events: none; }
#codigo-invalido:target ~ .painel__conteudo .aviso--erro,
#codigo-reenviado:target ~ .painel__conteudo .aviso--ok { display: block; }
#codigo-invalido:target ~ .painel__conteudo .codigo__input { border-color: rgb(214 69 65); }

.totem-aviso {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 320px);
  margin: -8px auto 22px;
  padding: 10px 12px 8px;
  border-radius: 14px;
  background: rgb(254 254 254 / .1);
  font-size: 14px;
  text-align: left;
}
.totem-aviso svg { flex: none; width: 24px; height: 24px; color: var(--laranja); }

/* ===================== COMPARTILHAR ===================== */
.compartilhar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 14px; }
.compartilhar__op {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 10px;
  border-radius: 16px;
  background: var(--fundo-cinza);
  font-weight: 700;
}
.compartilhar__op:hover { background: rgb(14 59 103 / .11); }
.compartilhar__icone {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cor);
  color: var(--branco);
}
.compartilhar__icone svg { width: 26px; height: 26px; }
.campo--link { margin-bottom: 16px; color: var(--azul); }
.campo--link input { font-size: 14px !important; color: var(--azul-cinza) !important; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 360px) {
  .perfil__linha { gap: 12px; }
  .avatar { width: 82px; height: 82px; }
  .avatar img { width: 58px; height: 58px; }
  .numeros strong { font-size: 17px; }
  .acoes { grid-template-columns: 1fr 1fr; }
  .acoes .btn--icone { display: none; }
  .campos { grid-template-columns: 1fr; }
  .painel__titulo { font-size: 34px; }
}

@media (min-width: 520px) {
  .app { min-height: 100vh; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar__anel, .pulso, .vid__roda, .vid__proximo svg, .sexta__play, .modal__caixa, .modal__fundo, .dinamica__icone--roda { animation: none; }
  .vtela__lista { scroll-behavior: auto; }
  .nav__roda { animation: gira 12s linear infinite; }
  .sheet__caixa, .sheet__fundo, .painel:target, .check { animation: none; }
}
