/* Casca pública da apresentação: tela de acesso e controles de navegação.
   Nenhum conteúdo da proposta está neste arquivo. Os estilos dos slides chegam
   criptografados em data.enc e só são aplicados depois da senha correta. */

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/libre-baskerville-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url('assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
}

* { margin: 0; }
html, body { height: 100%; }
body {
  background: #3A2C25; color: #F6F3EE;
  font-family: 'DM Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.yb-noscript { position: fixed; inset: auto 0 0 0; padding: 16px; text-align: center; background: #F6F3EE; color: #3A2C25; }

/* ---------- tela de acesso ---------- */
.yb-gate {
  position: fixed; inset: 0; overflow: auto;
  display: flex; align-items: center; justify-content: center; gap: clamp(32px, 7vw, 112px);
  padding: 32px clamp(24px, 6vw, 96px);
  box-sizing: border-box;
}
.yb-gate-arch {
  flex: 0 0 auto; align-self: flex-end;
  width: clamp(220px, 26vw, 340px); height: min(78vh, 620px);
  margin-bottom: -32px;
  background: #F6F3EE; border-radius: 999px 999px 0 0;
  padding: 10px 10px 0; box-sizing: border-box;
}
.yb-gate-arch-inner {
  height: 100%; box-sizing: border-box;
  border: 1.5px solid #C2AA8C; border-bottom: 0; border-radius: 999px 999px 0 0;
  display: flex; align-items: center; justify-content: center; padding: 0 9%;
}
.yb-gate-logo { width: 100%; height: auto; display: block; }
.yb-gate-form { width: min(100%, 420px); }
.yb-gate-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .22em; color: #C2AA8C; }
.yb-gate-title { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; margin-top: 16px; }
.yb-gate-text { font-size: 17px; line-height: 1.5; color: #E8DDD3; margin-top: 12px; }
.yb-gate-label { display: block; font-size: 14px; font-weight: 500; color: #E8DDD3; margin-top: 32px; }
.yb-gate-input {
  display: block; width: 100%; box-sizing: border-box; margin-top: 8px;
  font: 500 18px/1.2 'DM Sans', Arial, sans-serif; color: #3A2C25;
  background: #F6F3EE; border: 1.5px solid #F6F3EE; border-radius: 999px;
  padding: 15px 22px; outline: none;
}
.yb-gate-input:focus-visible { border-color: #C2AA8C; box-shadow: 0 0 0 3px rgba(194,170,140,.45); }
.yb-gate-button {
  display: block; width: 100%; margin-top: 14px;
  font-size: 16px; font-weight: 600; letter-spacing: .04em; color: #3A2C25;
  background: #C2AA8C; border-radius: 999px; padding: 16px 22px;
  transition: background-color .2s ease;
}
.yb-gate-button:hover { background: #D3BFA5; }
.yb-gate-button:focus-visible { outline: 2px solid #F6F3EE; outline-offset: 3px; }
.yb-gate-button[disabled] { opacity: .65; cursor: default; }
.yb-gate-msg { min-height: 24px; font-size: 15px; line-height: 1.5; color: #E8C9B5; margin-top: 14px; }
.yb-gate.yb-leaving { opacity: 0; transition: opacity .35s ease; }

@media (max-width: 760px), (max-height: 520px) {
  .yb-gate { flex-direction: column; justify-content: center; gap: 28px; }
  .yb-gate-arch { align-self: center; width: 168px; height: 196px; margin-bottom: 0; border-radius: 999px 999px 0 0; }
  .yb-gate-form { text-align: left; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .yb-gate { flex-direction: row; }
  .yb-gate-arch { width: 150px; height: 180px; }
  .yb-gate-label { margin-top: 16px; }
}

/* ---------- visualizador ---------- */
.yb-viewer { position: fixed; inset: 0; background: #241B16; opacity: 0; transition: opacity .4s ease; touch-action: pan-y pinch-zoom; }
.yb-viewer.yb-on { opacity: 1; }
.yb-stage { position: absolute; inset: 0 0 3px 0; overflow: hidden; }
.yb-canvas {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform-origin: 0 0; font: 32px/1.2 sans-serif;
  box-shadow: 0 0 80px rgba(0,0,0,.35);
}
.yb-canvas p, .yb-canvas li, .yb-canvas h1, .yb-canvas h2, .yb-canvas h3 { overflow-wrap: break-word; text-wrap: pretty; }
.yb-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(var(--yb-shift, 0px));
  transition: opacity .38s ease, transform .38s ease, visibility 0s linear .38s;
}
.yb-slide.yb-current { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .38s ease, transform .38s ease, visibility 0s; }
.yb-slide > section {
  position: absolute; left: 0; top: 0; width: 1920px !important; height: 1080px !important;
  overflow: hidden !important; box-sizing: border-box !important; isolation: isolate;
}
@media (prefers-reduced-motion: reduce) {
  .yb-slide, .yb-slide.yb-current { transition: opacity .2s linear, visibility 0s; transform: none; }
}

.yb-nav {
  position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px;
  display: none; align-items: center; justify-content: center;
  color: #F6F3EE; background: rgba(36,27,22,.55); border: 1px solid rgba(194,170,140,.5); border-radius: 50%;
  opacity: 0; transition: opacity .25s ease;
}
.yb-nav-prev { left: 14px; }
.yb-nav-next { right: 14px; }
.yb-nav[disabled] { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .yb-nav { display: flex; }
  .yb-viewer.yb-ui .yb-nav { opacity: 1; }
}
.yb-nav:focus-visible, .yb-action:focus-visible { outline: 2px solid #C2AA8C; outline-offset: 2px; opacity: 1; }

.yb-bar {
  position: absolute; left: 0; right: 0; bottom: 3px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: linear-gradient(to top, rgba(36,27,22,.92), rgba(36,27,22,0));
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.yb-viewer.yb-ui .yb-bar { opacity: 1; pointer-events: auto; }
.yb-count { font-size: 14px; font-weight: 500; letter-spacing: .14em; color: #E8DDD3; font-variant-numeric: tabular-nums; }
.yb-actions { display: flex; gap: 10px; }
.yb-action {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: #F6F3EE;
  background: rgba(36,27,22,.7); border: 1px solid rgba(194,170,140,.55); border-radius: 999px; padding: 9px 16px;
  transition: background-color .2s ease;
}
.yb-action:hover { background: rgba(58,44,37,.95); }

.yb-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(246,243,238,.14); }
.yb-progress-fill { height: 100%; width: 10%; background: #C2AA8C; transition: width .38s ease; }

.yb-hint {
  display: none; position: absolute; left: 0; right: 0; top: 14%;
  text-align: center; font-size: 14px; letter-spacing: .04em; color: #C2AA8C; padding: 0 24px;
}
@media (orientation: portrait) and (max-width: 760px) {
  .yb-hint { display: block; }
}
