/* Tema sobre o Bootstrap 5.3 (modo escuro). Troque as cores aqui. */
:root {
  --az: #3fb8ff;
  --az2: #8fdcff;
  --bg: #050b1c;
  --bg2: #0a1636;
  --papel: #efe3c4;
  --tinta: #2b2418;
  --bs-body-bg: var(--bg);
  --bs-body-color: #e8eefc;
  --bs-body-font-family: "Poppins", system-ui, sans-serif;
  --bs-link-color: var(--az2);
  --bs-link-hover-color: #fff;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
.bg-alt {
  background: var(--bg2);
}
.navbar {
  background: rgba(5, 11, 28, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(143, 220, 255, 0.15);
}
.navbar {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 1.15rem;
}
.navbar-brand span {
  color: var(--az);
}
.nav-link {
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.55rem 0.95rem !important;
}
.dropdown-menu {
  font-size: 1rem;
}
.nav-link.active,
.nav-link:hover {
  background: rgba(63, 184, 255, 0.15);
}
.btn-az {
  --bs-btn-bg: var(--az);
  --bs-btn-border-color: var(--az);
  --bs-btn-color: #03101f;
  --bs-btn-hover-bg: #7dd0ff;
  --bs-btn-hover-border-color: #7dd0ff;
  --bs-btn-hover-color: #03101f;
  --bs-btn-active-bg: #7dd0ff;
  --bs-btn-active-color: #03101f;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 0 26px rgba(63, 184, 255, 0.4);
}
.btn-outline-az {
  --bs-btn-color: var(--az2);
  --bs-btn-border-color: var(--az);
  --bs-btn-hover-bg: var(--az);
  --bs-btn-hover-border-color: var(--az);
  --bs-btn-hover-color: #03101f;
  --bs-btn-active-bg: var(--az);
  --bs-btn-active-color: #03101f;
}
.hero {
  background: radial-gradient(ellipse at 70% 30%, #0e2a66 0, var(--bg) 62%);
}
.hero img,
.capa {
  border-radius: 6px;
  box-shadow:
    0 0 70px rgba(63, 184, 255, 0.35),
    0 24px 50px rgba(0, 0, 0, 0.6);
}
.hero h1 {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(143, 220, 255, 0.5);
}
.hero h1 small {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.2em;
  font-weight: 400;
  margin-top: 10px;
  color: var(--az2);
}
.pagetitle {
  background: radial-gradient(ellipse at 70% 0, #0e2a66 0, var(--bg) 70%);
}
.pagetitle h1 {
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-shadow: 0 0 28px rgba(143, 220, 255, 0.45);
}
.sec-title {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--az2);
  margin-bottom: 1.4rem;
}
.prose p {
  color: #d6e0f7;
}
.prose .pergunta {
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
}
blockquote.cit {
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--az);
  font-family: "EB Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--az2);
  margin: 1.5rem 0;
}
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(143, 220, 255, 0.18);
  color: #a9b8d8;
}
.card h3,
.card .h5 {
  color: #fff;
  font-weight: 600;
}
.tipo {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--az);
}
a.card:hover {
  border-color: var(--az);
  transform: translateY(-3px);
  transition: 0.2s;
}
.folha {
  background: var(--papel);
  color: var(--tinta);
  font-family: "EB Garamond", serif;
  font-size: 1.2rem;
  line-height: 1.65;
  padding: 44px clamp(22px, 6vw, 70px);
  border-radius: 4px;
  max-width: 700px;
  margin: 0 auto 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 10px double rgba(43, 36, 24, 0.35);
}
.folha h3 {
  text-align: center;
  font-family: "Poppins";
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 1rem;
  margin-bottom: 22px;
  color: var(--tinta);
}
.folha p {
  text-indent: 1.6em;
  text-align: justify;
  margin-bottom: 6px;
}
.moldura {
  border: 6px solid #3a2c1a;
  border-radius: 4px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.autor-foto {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--az);
  box-shadow: 0 0 30px rgba(63, 184, 255, 0.35);
}
.preco {
  font-size: 2.6rem;
  font-weight: 600;
  color: #fff;
}
.caixa {
  max-width: 560px;
  border: 1px solid rgba(143, 220, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.accordion {
  --bs-accordion-bg: rgba(255, 255, 255, 0.03);
  --bs-accordion-border-color: rgba(143, 220, 255, 0.2);
  --bs-accordion-btn-bg: rgba(255, 255, 255, 0.03);
  --bs-accordion-active-bg: rgba(63, 184, 255, 0.12);
  --bs-accordion-active-color: #fff;
  --bs-accordion-btn-color: #fff;
}
footer {
  border-top: 1px solid rgba(143, 220, 255, 0.12);
}
.barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: rgba(5, 11, 28, 0.95);
  border-top: 1px solid rgba(143, 220, 255, 0.25);
}
@media (max-width: 991px) {
  body {
    padding-bottom: 64px;
  }
}
/* Degustação: leitor em tela cheia, páginas lado a lado com rolagem horizontal */
body.leitura {
  overflow-x: hidden;
}
.leitor {
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  padding: 10px 0 12px;
}
.leitor .controles {
  max-width: 760px;
}
.seta {
  width: 42px;
  height: 42px;
  padding: 0;
  flex: none;
  font-size: 1.2rem;
  line-height: 1;
}
.form-range {
  flex: 1;
  accent-color: var(--az);
}
.trilho {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  outline: none;
}
.trilho::-webkit-scrollbar {
  display: none;
}
.pagina {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  height: 100%;
  padding: 0 12px 2px;
}
.pagina .folha {
  height: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 56px) 0;
  display: flex;
  flex-direction: column;
  font-size: 1.12rem;
  border-width: 8px;
}
.folha .conteudo {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.folha .conteudo p.cont {
  text-indent: 0;
}
.folha .num {
  flex: none;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-family: "Poppins";
  font-size: 0.8rem;
  color: rgba(43, 36, 24, 0.6);
}
.folha.fim .conteudo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: auto;
}
.folha .btn {
  font-family: "Poppins", sans-serif;
  text-indent: 0;
}
.folha.fim .btn-outline-az {
  --bs-btn-color: #0b5f8a;
  --bs-btn-border-color: #0b5f8a;
  --bs-btn-hover-bg: #0b5f8a;
  --bs-btn-hover-color: #fff;
}
@media (max-width: 575px) {
  .pagina {
    padding: 0 6px 2px;
  }
  .pagina .folha {
    padding: 22px 16px 0;
    font-size: 1.02rem;
    border-width: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trilho {
    scroll-behavior: auto;
  }
}
@media (hover: none) {
  .btn-outline-az:hover:not(.active):not(:active) {
    background: transparent;
    color: var(--az2);
    border-color: var(--az);
  }
}
/* v4: CTAs, seletor, fotos de personagens */
.tema {
  background: rgba(63, 184, 255, 0.12);
  color: var(--az2);
  border: 1px solid rgba(63, 184, 255, 0.35);
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 0.55em 1em;
}
.seletor {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 5px;
  border: 1px solid rgba(143, 220, 255, 0.2);
}
.seletor .nav-link {
  border-radius: 999px;
  color: var(--az2);
  font-weight: 600;
}
.seletor .nav-link {
  padding: 0.7rem 1rem;
  color: #cfe9ff;
  border: 1px solid transparent;
}
.seletor .nav-link:hover {
  color: #fff;
  background: rgba(63, 184, 255, 0.12);
}
.seletor .nav-link.active {
  background: var(--az);
  color: #03101f;
  font-weight: 700;
  box-shadow: 0 0 18px -4px var(--az);
}
.pers .foto {
  position: relative;
  aspect-ratio: 1/1;
  background: #efe3c4;
  overflow: hidden;
  border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pers .foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pers .foto .ph {
  color: rgba(43, 36, 24, 0.45);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px dashed rgba(43, 36, 24, 0.3);
  border-radius: 12px;
  padding: 12px 18px;
}
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  max-width: 760px;
}
.leitor {
  padding-bottom: 8px;
}
/* Polaris */
html {
  scroll-padding-top: 76px;
}
.pol-hero {
  background: radial-gradient(ellipse at 50% 20%, #123a82 0, #050b1c 70%), #050b1c;
  position: relative;
  overflow: hidden;
}
.pol-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff8, transparent),
    radial-gradient(1px 1px at 90px 80px, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 160px 20px, #fff7, transparent),
    radial-gradient(1px 1px at 60px 130px, #fff5, transparent);
  background-size: 200px 160px;
  opacity: 0.7;
}
.pol-hero .container {
  position: relative;
}
.pol-logo {
  width: min(320px, 70vw);
  filter: drop-shadow(0 0 30px rgba(63, 184, 255, 0.45));
}
.moldura-clara {
  border: 1px solid rgba(143, 220, 255, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: #d3d8e2;
}
.stat {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #d6e0f7;
  --bs-table-border-color: rgba(143, 220, 255, 0.2);
}
.sim {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(143, 220, 255, 0.25);
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
}
.sim-campo {
  height: 170px;
  position: relative;
  border-radius: 12px;
  background: linear-gradient(180deg, #d3d8e2 0, #c3c9d6 100%);
  overflow: hidden;
  margin-bottom: 10px;
}
.sim-campo.polara {
  background: linear-gradient(180deg, #e8b6b1 0, #d98c85 100%);
}
.magno {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 84px;
  height: 84px;
  margin-left: -42px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0, #2a7bff 38%, #0b3fd8 100%);
  box-shadow: 0 0 28px 6px rgba(42, 123, 255, 0.55);
  transition:
    top 0.45s cubic-bezier(0.5, 0, 1, 0.6),
    opacity 0.45s;
}
.magno.cai {
  top: 150px;
  opacity: 0.55;
}
.magno.vibra {
  animation: vibra 0.09s linear infinite;
}
@keyframes vibra {
  0% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  100% {
    transform: translateX(-3px);
  }
}
.sim-tempo {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .magno.vibra {
    animation: none;
  }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem !important;
  }
  .navbar-brand {
    font-size: 1rem;
    margin-right: 0.5rem;
  }
}
/* Alianças */
.al-crest {
  border-radius: 16px;
  border: 2px solid var(--ac);
  box-shadow: 0 0 36px -8px var(--ac);
}
.al-h {
  color: var(--az2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.al-frase {
  border-left: 3px solid var(--ac);
  padding: 0.2rem 0 0.2rem 1rem;
  font-family: "EB Garamond", serif;
  font-size: 1.35rem;
  font-style: italic;
  margin: 0 0 1rem;
}
.brooch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem 0.4rem 0;
  font-size: 0.9rem;
}
.brooch i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}
#al-tabs .nav-link {
  border: 1px solid var(--ac);
  color: var(--ac);
}
#al-tabs .nav-link.active {
  background: var(--ac);
  color: #06101f;
}
.al-mini {
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.al-mini:hover {
  transform: translateY(-3px);
  border-color: var(--az);
}
.al-mini .card-img-top {
  aspect-ratio: 1;
  object-fit: cover;
}
.card.forte {
  border-color: var(--ac);
  box-shadow:
    0 0 0 1px var(--ac),
    0 0 24px -8px var(--ac);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
}
.forte-b {
  background: var(--ac) !important;
  color: #06101f;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  vertical-align: middle;
}
/* Quizzes */
.quiz {
  max-width: 720px;
}
.quiz-card {
  border: 1px solid rgba(143, 220, 255, 0.25);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.03);
}
.quiz-q {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
}
.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 0.7rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(143, 220, 255, 0.3);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.quiz-opt:hover,
.quiz-opt:focus-visible {
  background: rgba(63, 184, 255, 0.14);
  border-color: var(--az);
}
@media (hover: none) {
  .quiz-opt:hover {
    background: transparent;
    border-color: rgba(143, 220, 255, 0.3);
  }
}
.quiz-prog {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.quiz-prog i {
  display: block;
  height: 100%;
  background: var(--az);
  border-radius: 99px;
  transition: width 0.3s;
}
.quiz-res img {
  width: min(260px, 70%);
  border-radius: 16px;
  border: 2px solid var(--ac);
  box-shadow: 0 0 36px -8px var(--ac);
}
.quiz-res h2 {
  color: var(--ac);
}
.quiz-bar {
  display: grid;
  grid-template-columns: 110px 1fr 46px;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.9rem;
  margin: 0.45rem 0;
}
.quiz-bar span.b {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.quiz-bar span.b i {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.quiz-cta {
  border: 1px solid rgba(143, 220, 255, 0.25);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 40px);
  background: radial-gradient(ellipse at 50% 0, rgba(63, 184, 255, 0.14), transparent 70%);
}
.elem-b {
  background: transparent;
  border: 1px solid var(--ac);
  color: var(--ac);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

/* marca, rodapé com ícones */
.brand-logo {
  height: 24px;
  width: auto;
  display: block;
}
.navbar-brand {
  padding: 0.2rem 0;
  margin-right: 1rem;
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .brand-logo {
    height: 22px;
  }
}
.rodape-ico a {
  font-size: 1.45rem;
  margin-left: 1.1rem;
  color: var(--az2);
  text-decoration: none;
  transition:
    color 0.15s,
    transform 0.15s;
}
.rodape-ico a:hover {
  color: #fff;
  transform: translateY(-2px);
}
.elem-b i,
.quiz-res i {
  margin-right: 0.25rem;
}

/* ===== Quizzes de conhecimento e capas dos cards ===== */
.quiz-opt:disabled {
  cursor: default;
  opacity: 0.85;
}
.quiz-opt.ok {
  background: rgba(60, 190, 120, 0.2);
  border-color: #3cbe78;
}
.quiz-opt.no {
  background: rgba(255, 90, 90, 0.18);
  border-color: #ff5a5a;
}
.quiz-exp {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  border: 1px solid;
}
.quiz-exp.ok {
  border-color: #3cbe78;
  background: rgba(60, 190, 120, 0.1);
}
.quiz-exp.no {
  border-color: #ff5a5a;
  background: rgba(255, 90, 90, 0.08);
}
.quiz-nota {
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--az2);
}
.quiz-nota small {
  font-size: 0.4em;
  color: var(--bs-secondary-color);
}
.quiz-capa {
  display: grid;
  place-items: center;
  width: min(180px, 50%);
  aspect-ratio: 1;
  border-radius: 16px;
  font-size: clamp(3rem, 14vw, 4.5rem);
  color: var(--ac);
  border: 2px solid var(--ac);
  box-shadow: 0 0 36px -8px var(--ac);
  background: rgba(255, 255, 255, 0.03);
}
.card > .quiz-capa {
  width: 100%;
  aspect-ratio: auto;
  height: 130px;
  border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
  border-width: 0 0 2px;
  box-shadow: none;
  font-size: 3rem;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.08), transparent 70%);
}

/* ===== Responsividade (media queries) ===== */
/* Celulares (até 575px) */
@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero .container {
    padding-top: 0;
    padding-bottom: 0;
  }
  .quiz-bar {
    grid-template-columns: 84px 1fr 40px;
    font-size: 0.82rem;
  }
  .quiz-opt {
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
  }
}
/* Tablets em pé (576px a 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero img {
    max-width: 280px;
  }
}
/* Tablets e notebooks pequenos (768px a 1199px) */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .hero h1 {
    font-size: 2.6rem;
  }
}
/* Telas largas */
@media (min-width: 1400px) {
  .quiz {
    max-width: 760px;
  }
}

/* ===== Capas dos quizzes (banner na página e imagem nos cards) ===== */
.quiz-banner {
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(143, 220, 255, 0.25);
  background: var(--bg2);
}
.quiz-banner img {
  display: block;
  width: 100%;
  height: clamp(150px, 32vw, 260px);
  object-fit: cover;
}
.quiz-capa-img {
  height: 150px;
  overflow: hidden;
  border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
  background: var(--bg2);
}
.quiz-capa-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quiz-capa-img.logo {
  background: radial-gradient(ellipse at 50% 50%, #0e2a66 0, var(--bg) 75%);
}
.quiz-capa-img.logo img {
  object-fit: contain;
  padding: 12px;
}
.quiz-res p {
  line-height: 1.6;
}

/* ===== Capas dos quizzes: mesma imagem (proporção 4:1) no hub e na página ===== */
.quiz-banner img,
.quiz-capa-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
}
.quiz-capa-img {
  height: auto;
}
.quiz-banner {
  border-radius: 16px;
}

/* ===== Página inicial: tour pelo Outro Mundo ===== */
.tour-linha + .tour-linha {
  margin-top: 3.5rem;
}
.mapa-pins {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(143, 220, 255, 0.25);
}
.mapa-pins img {
  display: block;
  width: 100%;
}
.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--az);
  border: 3px solid #fff;
  box-shadow: 0 0 0 0 rgba(63, 184, 255, 0.7);
  animation: pulso 2.2s infinite;
}
.pin:hover,
.pin:focus-visible {
  background: #fff;
  border-color: var(--az);
}
.pin-dica {
  position: absolute;
  left: 50%;
  bottom: 150%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 190px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(5, 11, 28, 0.95);
  border: 1px solid rgba(143, 220, 255, 0.4);
  color: #e8eefc;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.pin-dica strong {
  display: block;
  color: var(--az2);
}
.pin:hover .pin-dica,
.pin:focus-visible .pin-dica {
  opacity: 1;
}
@keyframes pulso {
  70% {
    box-shadow: 0 0 0 12px rgba(63, 184, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 184, 255, 0);
  }
}
.tour-brasao {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #e8eefc;
}
.tour-brasao img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--ac);
  box-shadow: 0 0 26px -8px var(--ac);
  transition: transform 0.2s;
}
.tour-brasao:hover img {
  transform: translateY(-4px) scale(1.02);
}
.tour-brasao span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--ac);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.tour-magno {
  height: 240px;
  max-width: 480px;
  margin: 0 auto;
}
.tour-magno .magno {
  top: 70px;
  width: 100px;
  height: 100px;
  margin-left: -50px;
  filter: hue-rotate(0deg);
}
.tour-magno .magno.quente {
  filter: hue-rotate(140deg);
  transition:
    filter 4s linear,
    top 0.45s,
    opacity 0.45s;
}
.tour-magno .magno.cai {
  top: 200px;
}

/* ===== Página inicial: trecho em destaque e rodapé de compra/autora ===== */
.trecho-home {
  background: var(--papel);
  color: var(--tinta);
  border-radius: 10px;
  padding: clamp(24px, 5vw, 48px);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.7;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.trecho-home .tipo {
  color: #7a5a2a;
}
.trecho-home p {
  margin: 0.8rem 0 0;
  text-indent: 1.5em;
}
.trecho-home .fecho {
  text-indent: 0;
  text-align: center;
  font-style: italic;
  margin-top: 1.4rem;
}
.fim-card {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(143, 220, 255, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.fim-autora {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--az);
  box-shadow: 0 0 30px -6px var(--az);
}
@media (prefers-reduced-motion: reduce) {
  .pin {
    animation: none;
  }
}

/* Degustação: pequeno respiro entre as setas e a página de leitura */
.trilho {
  margin-top: 10px;
}

/* ===== Botões lado a lado com espaço (celular: um embaixo do outro) ===== */
.btn-linha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
@media (max-width: 575.98px) {
  .btn-linha {
    flex-direction: column;
  }
  .btn-linha .btn {
    width: 100%;
  }
}

/* ===== Chamada para os quizzes (página inicial) ===== */
.quiz-mini {
  display: block;
  border: 1px solid rgba(143, 220, 255, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.quiz-mini:hover {
  transform: translateY(-2px);
  border-color: var(--az);
}
.quiz-mini img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
}
.quiz-mini-txt {
  display: block;
  padding: 0.6rem 0.9rem 0.75rem;
  font-weight: 500;
}
.quiz-mini-txt small {
  display: block;
  color: var(--az2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}


/* brasão da IET */
.brasao-iet {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

/* Texto corrido: ocupa a largura do bloco e fica justificado */
main p,
main li,
main .accordion-body {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* exceções: textos centralizados, blocos de interface e o leitor da degustação */
main .text-center p,
main p.text-center,
.hero p,
.quiz p,
.caixa p,
.cta-strip p,
.leitor p,
.pagina p,
.folha p,
.accordion p,
.pin-dica p,
a.card p,
.tipo {
  text-align: inherit;
  hyphens: manual;
}
main .text-center p,
main p.text-center,
main .text-center li {
  text-align: center;
}

/* Blocos centrados no celular e alinhados à esquerda no computador (text-center text-md-start etc.) */
@media (min-width: 768px) {
  main .text-md-start p,
  main .text-md-start li { text-align: left; }
}
@media (min-width: 992px) {
  main .text-lg-start p,
  main .text-lg-start li { text-align: left; }
}

/* Marcadores de brinde (página Comprar) */
.marcadores button {
  background: none;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  position: relative;
  display: block;
}
.marcadores img {
  height: 250px;
  width: auto;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.marcadores button:hover img,
.marcadores button:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.5);
}
.marcadores .lupa {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 28, 0.75);
  color: #8fdcff;
  font-size: 0.85rem;
}
#modalMarcador .modal-content {
  background: transparent;
  border: 0;
}
#modalMarcador img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.35);
}
#modalMarcador .btn-close {
  position: absolute;
  top: -2.2rem;
  right: 0;
  z-index: 5;
}
.modal-backdrop {
  --bs-backdrop-opacity: 0.9;
  --bs-backdrop-bg: #020611;
}
#modalMarcador .carousel-control-prev,
#modalMarcador .carousel-control-next {
  width: 14%;
  opacity: 0.85;
}

/* Avaliações de leitores (Amazon) */
.avaliacao .estrelas { color: #ffc857; font-size: 0.9rem; letter-spacing: 2px; }
.avaliacao h3 a { color: #fff; text-decoration: none; }
.avaliacao h3 a:hover { text-decoration: underline; }
.avaliacao .verificada { color: #8fdcff; white-space: nowrap; }
.avaliacao p.small { text-align: left; hyphens: manual; }
@media (min-width: 992px) {
  }

/* No tema escuro, o Bootstrap inverte as setas e os pontos do carrossel (ficam pretos). Aqui voltam a ser claros. */
[data-bs-theme="dark"] #modalMarcador .carousel-control-prev-icon,
[data-bs-theme="dark"] #modalMarcador .carousel-control-next-icon {
  filter: none;
}

/* Carrossel de avaliações em "palco": a avaliação do meio em destaque e as vizinhas dos dois lados */
.av-flow { position: relative; }
.av-stage {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: 14px 0;
  touch-action: pan-y;
}
.av-slide {
  position: absolute;
  top: 14px;
  left: 50%;
  width: min(640px, 80%);
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.55s ease;
  will-change: transform, opacity;
  pointer-events: none;
}
.av-slide.is-active { pointer-events: auto; box-shadow: 0 0 34px rgba(56, 189, 248, 0.18); border-color: rgba(143, 220, 255, 0.35); }
.av-slide.is-lado { cursor: pointer; pointer-events: auto; }
.av-slide.is-lado .card-body { filter: saturate(0.7); }
.av-prev,
.av-next {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  padding: 0;
  z-index: 20;
  background: rgba(4, 10, 28, 0.85);
}
.av-prev { left: 0; }
.av-next { right: 0; }
.av-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #8fdcff;
  opacity: 0.35;
}
.av-dots button.active { opacity: 1; }
@media (max-width: 575.98px) {
  .av-slide { width: 78%; }
  .av-prev, .av-next { width: 38px; height: 38px; top: calc(50% - 19px); }
}
@media (prefers-reduced-motion: reduce) {
  .av-slide { transition: none; }
}

/* Cartão de resultado (imagem para compartilhar) */
.qc-canvas {
  width: min(340px, 88%);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}

/* ------------------------------------------------------------------
 * Jogo do dia (/jogo/)
 * ------------------------------------------------------------------ */
.jogo-regras {
  background: rgba(143, 220, 255, 0.05);
  border: 1px solid rgba(143, 220, 255, 0.18);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}
.jogo-regras summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--az2);
}
.jogo-form {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.jogo-campo {
  position: relative;
  flex: 1;
  min-width: 0;
}
.jogo-sugestoes {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  background: #0b1a3d;
  border: 1px solid rgba(143, 220, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.jg-sug {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.jg-sug.ativo,
.jg-sug:hover {
  background: rgba(63, 184, 255, 0.18);
}
.jg-sug.vazio {
  cursor: default;
  color: #8a98b8;
}
.jogo-pista {
  background: rgba(245, 184, 46, 0.1);
  border: 1px solid rgba(245, 184, 46, 0.35);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}
.jogo-fim {
  margin-top: 1.5rem;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(143, 220, 255, 0.3);
  border-radius: 16px;
  background: rgba(63, 184, 255, 0.07);
}
.jogo-fim-foto {
  display: flex;
  justify-content: center;
}
.jogo-fim-foto .jg-av {
  border: 3px solid var(--az);
  box-shadow: 0 0 30px rgba(63, 184, 255, 0.35);
}
.jogo-grade {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jg-linha {
  display: grid;
  grid-template-columns: minmax(60px, 1.1fr) repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.jg-rot {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8a98b8;
  text-align: center;
  padding: 0 2px;
}
.jg-cab .jg-cel {
  min-height: 0;
}
.jg-cel {
  min-height: 62px;
}
.jg-pers {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}
.jg-av {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  color: #fff;
  font-weight: 600;
  line-height: 1;
}
.jg-av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jg-lab {
  display: none;
}
.jg-nome {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.1;
  word-break: break-word;
}
.jg-res {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 10px;
  padding: 4px 3px;
  text-align: center;
  color: #fff;
  font-size: 0.6rem;
  line-height: 1.15;
  overflow-wrap: break-word;
  min-width: 0;
}
.jg-res .jg-simb {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.jg-res.ok {
  background: #1b8a4c;
}
.jg-res.parcial {
  background: #b8830f;
}
.jg-res.erro {
  background: #a82c37;
}
.jg-lg {
  display: inline-block;
  min-width: 1.6rem;
  text-align: center;
  border-radius: 6px;
  padding: 0 0.3rem;
  margin-right: 0.35rem;
  font-weight: 700;
  color: #fff;
}
.jg-lg.ok {
  background: #1b8a4c;
}
.jg-lg.parcial {
  background: #b8830f;
}
.jg-lg.erro {
  background: #a82c37;
}
.jogo-legenda li {
  margin-bottom: 0.35rem;
}
.jg-res.anim {
  animation: jg-gira 0.55s ease both;
}
@keyframes jg-gira {
  from {
    opacity: 0;
    transform: rotateX(90deg) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jg-res.anim {
    animation: none;
  }
}
@media (min-width: 576px) {
  .jg-rot {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }
  .jg-linha {
    grid-template-columns: minmax(74px, 1.25fr) repeat(7, minmax(0, 1fr));
  }
  .jg-res {
    font-size: 0.82rem;
  }
  .jg-nome {
    font-size: 0.85rem;
  }
  .jg-cel {
    min-height: 70px;
  }
  .jg-linha {
    gap: 8px;
  }
}

/* celular: a tabela inteira rola para o lado com o dedo; a coluna do nome fica fixa */
.jg-dica {
  display: none;
  margin: 0 0 6px;
  font-size: 0.72rem;
  color: #8a98b8;
  text-align: center;
}
.jogo-grade-wrap {
  position: relative;
}
@media (max-width: 575.98px) {
  .jogo-grade {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--az) rgba(255, 255, 255, 0.08);
  }
  .jogo-grade::-webkit-scrollbar {
    height: 8px;
  }
  .jogo-grade::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
  }
  .jogo-grade::-webkit-scrollbar-thumb {
    background: var(--az);
    border-radius: 4px;
  }
  .jogo-grade:focus-visible {
    outline: 2px solid var(--az);
    outline-offset: 2px;
  }
  .jogo-grade-wrap.tem-rolagem .jg-dica {
    display: block;
  }
  .jg-linha {
    grid-template-columns: 92px repeat(7, 84px);
    gap: 5px;
    width: max-content;
  }
  .jg-linha > :first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #08122d;
    border-radius: 0;
    box-shadow: 5px 0 0 #08122d, 12px 0 12px -2px rgba(5, 11, 28, 0.9);
  }
  .jg-rot {
    font-size: 0.62rem;
  }
  .jg-cel {
    min-height: 68px;
  }
  .jg-nome {
    font-size: 0.8rem;
  }
  .jg-res {
    font-size: 0.72rem;
  }
  /* sombra azul nas bordas indicando que há mais para o lado */
  .jogo-grade-wrap::before,
  .jogo-grade-wrap::after {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 12px;
    width: 26px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 3;
  }
  .jogo-grade-wrap::before {
    left: 92px;
    background: linear-gradient(to right, rgba(63, 184, 255, 0.28), transparent);
  }
  .jogo-grade-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(63, 184, 255, 0.35), transparent);
  }
  .jogo-grade-wrap.mais-esq::before,
  .jogo-grade-wrap.mais-dir::after {
    opacity: 1;
  }
}

/* Pré-venda: cronômetro */
.relogio {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 1.25rem 0 0.25rem;
}
.rel-box {
  min-width: 68px;
  padding: 10px 6px;
  border: 1px solid rgba(143, 220, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rel-box b {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.rel-box span {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a98b8;
}
@media (max-width: 380px) {
  .relogio {
    gap: 6px;
  }
  .rel-box {
    min-width: 58px;
  }
}

/* Início: banner do Viajandle */
.viajandle-cta {
  border: 1px solid rgba(143, 220, 255, 0.25);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 40px);
  background: radial-gradient(ellipse at 100% 50%, rgba(63, 184, 255, 0.16), transparent 65%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
}
.viajandle-cta p {
  text-align: inherit;
}
.vj-demo {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 330px;
  margin: 0 auto;
}
.vj-q {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.vj-q.ok {
  background: #1b8a4c;
}
.vj-q.parcial {
  background: #b8830f;
}
.vj-q.erro {
  background: #a82c37;
}
