:root {
  --bg: #040308;
  --bg-deep: #08060d;
  --panel: rgba(12, 10, 19, 0.82);
  --panel-strong: rgba(16, 13, 25, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5eefc;
  --muted: #a79ab7;
  --purple: #8d5cff;
  --teal: #41d7c7;
  --amber: #d3a75a;
  --rose: #d96ea8;
  --cyan: #7ad8ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
  --radius: 22px;
  --radius-sm: 14px;
  --sidebar-w: 280px;
  --sidebar-closed-w: 76px;
  --shell: min(1600px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 12%, rgba(141, 92, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 82% 14%, rgba(67, 215, 199, 0.12), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(211, 167, 90, 0.08), transparent 30rem),
    linear-gradient(160deg, #020204 0%, #07050d 45%, #020204 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(2, 2, 4, 0.06), rgba(2, 2, 4, 0.48)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 140px 100%, 100% 84px;
  mix-blend-mode: screen;
  opacity: 0.26;
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 220px rgba(0, 0, 0, 0.64);
  z-index: -2;
}

body[data-theme="awakening"] {
  --accent: var(--purple);
  --accent-2: var(--cyan);
}

body[data-theme="fracture"] {
  --accent: var(--rose);
  --accent-2: var(--amber);
}

body[data-theme="structure"] {
  --accent: var(--teal);
  --accent-2: var(--purple);
}

body[data-theme="revelation"] {
  --accent: var(--amber);
  --accent-2: var(--cyan);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
iframe {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

.page-noise,
.page-glow,
.page-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-noise {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 5px, 80px 100%;
  mix-blend-mode: screen;
  z-index: -1;
}

.page-glow {
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.28;
  z-index: -2;
}

.page-glow-left {
  top: -10rem;
  left: -10rem;
  background: rgba(141, 92, 255, 0.65);
}

.page-glow-right {
  right: -10rem;
  bottom: -10rem;
  background: rgba(67, 215, 199, 0.45);
}

body[data-theme="fracture"] .page-glow-left {
  background: rgba(217, 110, 168, 0.55);
}

body[data-theme="structure"] .page-glow-left {
  background: rgba(65, 215, 199, 0.52);
}

body[data-theme="revelation"] .page-glow-left {
  background: rgba(211, 167, 90, 0.54);
}

.page-vignette {
  z-index: 0;
}

.preportal {
  width: min(100%, 1720px);
  margin: 0 auto;
  padding: 18px;
  display: grid;
  gap: 18px;
}

.preportal-page {
  min-height: calc(100svh - 36px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(180deg, rgba(10, 8, 16, 0.94), rgba(6, 5, 10, 0.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  display: grid;
  gap: 18px;
  align-content: center;
  position: relative;
  overflow: hidden;
}

.preportal-page[hidden] {
  display: none !important;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.preportal-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(141, 92, 255, 0.14), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(67, 215, 199, 0.08), transparent 26%),
    radial-gradient(circle at 50% 85%, rgba(211, 167, 90, 0.08), transparent 32%);
  pointer-events: none;
  opacity: 0.88;
}

.preportal-page > * {
  position: relative;
  z-index: 1;
}

.preportal-page--call {
  min-height: auto;
  margin: -18px -18px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #020204;
  box-shadow: none;
  backdrop-filter: none;
  display: block;
  align-content: stretch;
  isolation: isolate;
}

.preportal-page--call::before {
  content: none;
  background: none;
  opacity: 0;
}

.preportal-page--call::after {
  content: none;
  display: none;
  background: none;
}

.preportal-page--call > .call-official__reel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.preportal-page--call .call-official__video {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
  object-position: center top;
  opacity: 0.42;
  filter: brightness(0.62) contrast(1.04);
  transform: scale(1.04);
}

.preportal-page--call .call-cinema__smoke,
.preportal-page--call .call-cinema__light {
  position: absolute;
  display: block;
  pointer-events: none;
}

.preportal-page--call .call-cinema__smoke {
  width: 46rem;
  height: 46rem;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 9rem),
    radial-gradient(circle at 34% 58%, rgba(65, 215, 199, 0.14), transparent 15rem);
  filter: blur(74px);
  mix-blend-mode: screen;
  opacity: 0.1;
}

.preportal-page--call .call-cinema__smoke--far {
  top: 8%;
  left: -15rem;
}

.preportal-page--call .call-cinema__smoke--near {
  right: -18rem;
  bottom: 11%;
  opacity: 0.075;
}

.preportal-page--call .call-cinema__light {
  top: 8%;
  left: 50%;
  width: min(48rem, 88vw);
  height: 22rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(122, 216, 255, 0.1), transparent 68%);
  filter: blur(52px);
  opacity: 0.22;
}

.preportal-page--call > .call-cinema__header {
  position: absolute;
  top: 28px;
  left: 40px;
  z-index: 3;
  color: rgba(245, 238, 252, 0.82);
}

.preportal-page--call .call-cinema__signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preportal-page--call .call-cinema__signature::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow:
    0 0 18px rgba(65, 215, 199, 0.5),
    0 0 34px rgba(65, 215, 199, 0.14);
}

.preportal-page--call > .call-official__sequence {
  position: relative;
  z-index: 2;
  display: grid;
}

.preportal-page--call .call-official__scene {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 108px 28px;
  position: relative;
}

.preportal-page--call .call-official__scene--opening {
  align-items: end;
  padding-bottom: 118px;
}

.preportal-page--call .call-official__identity {
  width: min(440px, 92vw);
  margin-inline: auto;
  text-align: center;
}

.preportal-page--call .call-official__identity h1 {
  margin: 0;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: 8.2rem;
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: rgba(214, 209, 200, 0.86);
  word-break: keep-all;
  overflow-wrap: normal;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.025),
    0 10px 26px rgba(0, 0, 0, 0.86),
    0 0 22px rgba(245, 241, 232, 0.055),
    0 0 62px rgba(90, 75, 124, 0.09);
}

.preportal-page--call .call-official__identity h1 span {
  display: inline-block;
  max-width: 4.35ch;
  white-space: normal;
  word-spacing: -0.08em;
}

.preportal-page--call .call-official__identity p {
  margin: 18px 0 0;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: 1.5rem;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(88, 221, 229, 0.84);
  text-shadow:
    0 0 20px rgba(65, 215, 199, 0.28),
    0 10px 30px rgba(0, 0, 0, 0.58);
}

.preportal-page--call .call-official__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  transform: translateX(-50%);
  color: rgba(245, 238, 252, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 1px solid rgba(144, 117, 70, 0.34);
  background:
    linear-gradient(180deg, rgba(122, 216, 255, 0.05), transparent),
    rgba(0, 0, 0, 0.48);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.preportal-page--call .call-official__scroll i {
  width: 14px;
  height: 1px;
  background: rgba(211, 167, 90, 0.5);
}

.preportal-page--call .call-official__scene--key {
  background:
    radial-gradient(circle at 50% 44%, rgba(211, 167, 90, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(2, 2, 4, 0), rgba(2, 2, 4, 0.58) 50%, rgba(2, 2, 4, 0));
}

.preportal-page--call .call-official__manifesto {
  width: min(1040px, 92vw);
  margin-inline: auto;
  text-align: center;
}

.preportal-page--call .call-official__chapter,
.preportal-page--call .preportal-call__kicker,
.preportal-page--call .call-official__microcopy {
  display: block;
  color: rgba(223, 218, 210, 0.66);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preportal-page--call .call-official__manifesto h2 {
  margin: 16px 0 0;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(228, 224, 215, 0.9);
  text-shadow:
    0 18px 46px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(122, 216, 255, 0.055);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    text-shadow 180ms ease;
}

.preportal-page--call .call-official__manifesto h2:hover {
  transform: none;
  filter: none;
  text-shadow:
    0 18px 46px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(122, 216, 255, 0.055);
}

.preportal-page--call .call-official__manifesto h2 strong {
  display: inline;
  font: inherit;
}

.preportal-page--call .call-official__manifesto p {
  max-width: 520px;
  margin: 24px auto 0;
  color: rgba(245, 238, 252, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.55;
  letter-spacing: 0;
  font-style: italic;
}

.preportal-page--call .key-manifesto__accent {
  color: inherit;
}

.preportal-page--call .key-manifesto__accent--gold {
  color: #967a4c;
}

.preportal-page--call .key-manifesto__accent--paper {
  color: rgba(211, 205, 194, 0.86);
}

.preportal-page--call .key-manifesto__accent--cyan {
  color: var(--teal);
}

.preportal .sensory-type {
  perspective: 900px;
  transform-style: preserve-3d;
}

.preportal .sensory-type .sensory-word {
  display: inline-block;
  transform-style: preserve-3d;
}

.preportal .sensory-type .sensory-letter {
  display: inline-block;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition:
    transform 150ms ease,
    filter 150ms ease,
    text-shadow 150ms ease,
    opacity 150ms ease;
}

.preportal .sensory-type .sensory-letter:hover {
  transform:
    translateY(-5px)
    translateZ(42px)
    rotateX(5deg)
    rotateY(var(--letter-yaw, 0deg))
    rotate(var(--letter-turn, 0deg))
    scale(1.07);
  filter: contrast(1.16) brightness(1.1);
  text-shadow:
    0 20px 38px rgba(0, 0, 0, 0.86),
    0 0 22px rgba(255, 255, 255, 0.14),
    0 0 32px rgba(122, 216, 255, 0.09);
}

.preportal-page--call .call-official__scene--revelation {
  align-items: center;
  background: linear-gradient(180deg, rgba(2, 2, 4, 0), rgba(2, 2, 4, 0.72) 46%, #020204);
}

.preportal-page--call .preportal-call {
  width: min(1120px, 92vw);
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.preportal-page--call .preportal-call__copy {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.preportal-page--call .preportal-call__copy h2 {
  margin: 0;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: 4.35rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #bda369;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  text-shadow:
    0 16px 36px rgba(0, 0, 0, 0.62),
    0 10px 28px rgba(100, 84, 128, 0.16);
}

.preportal-page--call .preportal-call__copy h2 strong,
.preportal-page--call .preportal-call__copy h2 span {
  display: inline;
}

.preportal-page--call .preportal-call__copy h2 br {
  display: none;
}

.preportal-page--call .preportal-call__manifesto {
  display: grid;
  gap: 6px;
  margin: 0;
  color: rgba(245, 238, 252, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.48;
  letter-spacing: 0;
  font-style: italic;
}

.preportal-page--call .call-official__microcopy {
  color: rgba(170, 144, 91, 0.7);
}

.preportal-page--call .continuity-whisper {
  width: min(520px, 100%);
  margin: 24px auto 0;
  padding: 18px;
  border: 1px solid rgba(144, 117, 70, 0.28);
  background:
    linear-gradient(90deg, rgba(122, 216, 255, 0.045), transparent 42%),
    rgba(0, 0, 0, 0.46);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  text-align: left;
}

.preportal-page--call .continuity-whisper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid rgba(215, 173, 96, 0.28);
  border-radius: 4px;
  padding: 10px 15px;
  color: #f5f1e8;
  background: rgba(255, 255, 255, 0.035);
  text-transform: uppercase;
  letter-spacing: 0;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.preportal-page--call .continuity-whisper button:hover,
.preportal-page--call .continuity-whisper button:focus-visible {
  border-color: rgba(215, 173, 96, 0.52);
  background: rgba(215, 173, 96, 0.08);
  transform: translateY(-1px);
}

.preportal-page--call .preportal-call__actions {
  justify-content: center;
  margin-top: 28px;
}

.preportal-page--call .call-official__cta {
  min-width: min(100%, 310px);
  justify-content: center;
  gap: 18px;
  border: 1px solid rgba(166, 141, 91, 0.58);
  border-radius: 4px;
  padding: 18px 28px;
  color: #f7f0df;
  background:
    linear-gradient(90deg, rgba(74, 54, 36, 0.96), rgba(72, 64, 133, 0.94), rgba(38, 140, 152, 0.86));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 62px rgba(0, 0, 0, 0.52),
    0 10px 30px rgba(38, 140, 152, 0.16);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.preportal-page--call .call-official__cta:hover,
.preportal-page--call .call-official__cta:focus-visible {
  border-color: rgba(122, 216, 255, 0.46);
  filter: brightness(1.06) contrast(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09) inset,
    0 28px 70px rgba(0, 0, 0, 0.58),
    0 0 32px rgba(38, 140, 152, 0.2);
}

.preportal-page--call .call-official__cta i {
  font-style: normal;
  color: rgba(247, 240, 223, 0.88);
}

.preportal-page--call .preportal-call__footnote {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 28px;
  color: rgba(245, 238, 252, 0.54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  line-height: 1.5;
  font-style: italic;
  letter-spacing: 0;
}

.preportal-page--call .preportal-call__footnote span {
  width: 42px;
  height: 1px;
  background: rgba(211, 167, 90, 0.44);
}

.preportal-page--call .preportal-call__footnote p {
  margin: 0;
}

.preportal-page--call > .call-cinema__footer {
  position: absolute;
  right: 40px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100% - 80px));
  color: rgba(245, 238, 252, 0.5);
  font-size: 0.74rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0;
}

.preportal-page--call > .call-cinema__footer span {
  width: 46px;
  height: 1px;
  background: rgba(211, 167, 90, 0.42);
}

.preportal-page--call > .call-cinema__footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .preportal-page--call {
    margin: -12px -12px 0;
  }

  .preportal-page--call > .call-cinema__header {
    top: 22px;
    left: 24px;
  }

  .preportal-page--call .call-official__scene {
    min-height: 100svh;
    padding: 92px 22px;
  }

  .preportal-page--call .call-official__scene--opening {
    padding-bottom: 106px;
  }

  .preportal-page--call .call-official__identity h1 {
    font-size: 6.2rem;
  }

  .preportal-page--call .call-official__identity p {
    font-size: 1.22rem;
  }

  .preportal-page--call .call-official__manifesto h2 {
    font-size: 4.3rem;
  }

  .preportal-page--call .preportal-call__copy h2 {
    font-size: 3.25rem;
  }

  .preportal-page--call > .call-cinema__footer {
    right: 24px;
    bottom: 22px;
    max-width: calc(100% - 48px);
  }
}

@media (max-width: 620px) {
  .preportal-page--call::after {
    content: none;
    display: none;
    background: none;
  }

  .preportal-page--call .call-official__scene {
    padding: 86px 18px;
  }

  .preportal-page--call .call-official__scene--opening {
    padding-bottom: 96px;
  }

  .preportal-page--call .call-official__identity h1 {
    font-size: 4.25rem;
  }

  .preportal-page--call .call-official__identity p {
    font-size: 1rem;
  }

  .preportal-page--call .call-official__scroll {
    bottom: 24px;
    width: max-content;
    max-width: calc(100% - 36px);
  }

  .preportal-page--call .call-official__manifesto h2 {
    font-size: 3rem;
    line-height: 0.94;
  }

  .preportal-page--call .call-official__manifesto p {
    font-size: 1rem;
  }

  .preportal-page--call .preportal-call__copy h2 {
    font-size: 2.45rem;
    line-height: 0.98;
    white-space: normal;
  }

  .preportal-page--call .preportal-call__manifesto {
    font-size: 1rem;
  }

  .preportal-page--call .call-official__cta {
    width: min(100%, 290px);
    padding: 15px 18px;
  }

  .preportal-page--call > .call-cinema__footer {
    display: none;
  }
}

@media (max-width: 380px) {
  .preportal-page--call .call-official__identity h1 {
    font-size: 3.45rem;
  }

  .preportal-page--call .call-official__manifesto h2 {
    font-size: 2.48rem;
  }

  .preportal-page--call .preportal-call__copy h2 {
    font-size: 2.08rem;
  }
}

.preportal-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.preportal-call__cover {
  max-width: 340px;
  margin-left: auto;
}

.preportal-call__aside {
  display: grid;
  gap: 14px;
}

.preportal-library-card {
  min-height: 0;
}

.preportal-library-grid {
  margin-top: 6px;
}

.preportal-page__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.preportal-final-cta {
  margin-top: 2px;
}

.app-shell {
  width: min(100%, 1720px);
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 18px;
  position: relative;
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.app-shell::before {
  inset: 18px;
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(211, 167, 90, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.24;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 82%, transparent);
}

.app-shell::after {
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 209, 132, 0.08), transparent 20rem),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.18;
}

.app-shell > .sidebar,
.app-shell > .workspace {
  position: relative;
  z-index: 1;
}

.portal-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  color: rgba(243, 240, 231, 0.92);
  background:
    radial-gradient(circle at 50% 44%, rgba(211, 167, 90, 0.11), transparent 22rem),
    radial-gradient(circle at 50% 62%, rgba(65, 215, 199, 0.055), transparent 24rem),
    rgba(2, 2, 4, 0.76);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.34s ease,
    visibility 0.34s ease;
}

body.is-portal-entering .portal-boot-overlay {
  opacity: 1;
  visibility: visible;
}

.portal-boot-overlay__frame {
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(211, 167, 90, 0.28);
  background:
    linear-gradient(180deg, rgba(241, 209, 132, 0.052), transparent 38%),
    rgba(3, 3, 5, 0.86);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.portal-boot-overlay__code {
  display: block;
  margin-bottom: 14px;
  color: rgba(241, 209, 132, 0.72);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.portal-boot-overlay__sequence {
  display: grid;
  gap: 9px;
}

.portal-boot-overlay__sequence span {
  display: flex;
  align-items: center;
  min-height: 28px;
  color: rgba(243, 240, 231, 0.84);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-8px);
  animation: portalBootLine 1.42s ease both;
}

.portal-boot-overlay__sequence span::before {
  content: "";
  width: 22px;
  height: 1px;
  margin-right: 10px;
  background: rgba(241, 209, 132, 0.58);
  box-shadow: 0 0 12px rgba(241, 209, 132, 0.24);
}

.portal-boot-overlay__sequence span:nth-child(2) {
  animation-delay: 0.22s;
}

.portal-boot-overlay__sequence span:nth-child(3) {
  animation-delay: 0.44s;
}

.portal-boot-overlay__sequence span:nth-child(4) {
  animation-delay: 0.68s;
}
}

body.is-protected-portal .preportal,
body.is-protected-portal .traversal-veil {
  display: none !important;
}

body.is-protected-portal .app-shell {
  display: grid !important;
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  min-height: calc(100vh - 36px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(180deg, rgba(10, 8, 16, 0.96), rgba(6, 5, 10, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  overflow: hidden;
}

.mobile-menu-toggle,
.sidebar-close,
.mobile-drawer-backdrop {
  display: none;
}

.sidebar-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  place-items: center;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.sidebar-close:hover,
.sidebar-close:focus-visible {
  border-color: rgba(215, 173, 96, 0.42);
  background: rgba(215, 173, 96, 0.08);
  transform: translateY(-1px);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(141, 92, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 50% 95%, rgba(67, 215, 199, 0.08), transparent 16rem);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(141, 92, 255, 0.28), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28), 0 0 24px rgba(141, 92, 255, 0.18);
  color: #f3ebff;
  font-weight: 800;
  animation: brandBreath 8.5s ease-in-out infinite;
  transform-origin: center;
}

.brand-text {
  display: grid;
  gap: 3px;
}

.brand-text strong,
.topbar-identity strong,
.sidebar-card strong {
  font-weight: 700;
}

.brand-text small,
.sidebar-label,
.eyebrow,
.signal-card__label,
.topbar-identity__eyebrow,
.rail-heading span,
.image-card__copy span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.sidebar-nav {
  display: grid;
  gap: 9px;
}

.nav-item {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  color: rgba(245, 238, 252, 0.74);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 2px;
  background: rgba(211, 167, 90, 0.18);
  opacity: 0.65;
}

.nav-item span {
  color: rgba(241, 209, 132, 0.54);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-item strong {
  color: rgba(245, 238, 252, 0.84);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-item:hover,
.nav-item.is-active {
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(141, 92, 255, 0.26), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.nav-item:hover::before,
.nav-item.is-active::before {
  background: rgba(241, 209, 132, 0.86);
  box-shadow: 0 0 18px rgba(241, 209, 132, 0.28);
  opacity: 1;
}

.nav-item:hover strong,
.nav-item.is-active strong {
  color: #fff;
}

.sidebar-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.sidebar-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.sidebar-progress {
  align-content: start;
}

.radial-progress {
  width: 164px;
  height: 164px;
  margin: 6px auto 0;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, var(--accent) 0 23%, rgba(255, 255, 255, 0.08) 23% 100%);
  padding: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 32px rgba(141, 92, 255, 0.12);
}

.radial-progress__inner {
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.1), transparent 46%),
    rgba(7, 6, 11, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.radial-progress__inner strong {
  font-size: 2rem;
  line-height: 1;
}

.radial-progress__inner span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.notebook-access {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 78;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(211, 167, 90, 0.28);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.16), rgba(65, 215, 199, 0.045)),
    rgba(4, 4, 7, 0.86);
  color: rgba(243, 240, 231, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34), inset 2px 0 0 rgba(241, 209, 132, 0.5);
  backdrop-filter: blur(18px);
}

.notebook-access span {
  color: rgba(241, 209, 132, 0.82);
  font-size: 1.02rem;
}

.notebook-access strong {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.is-reader-open.is-portal-unlocked .notebook-access {
  display: inline-flex;
  top: auto;
  bottom: 18px;
}

body.is-notebook-open .notebook-access {
  opacity: 0;
  pointer-events: none;
}

body.is-notebook-open {
  overflow: hidden;
}

.traversal-notebook {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  pointer-events: none;
}

.traversal-notebook[hidden] {
  display: none;
}

.traversal-notebook__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(211, 167, 90, 0.11), transparent 18rem),
    rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.24s ease;
}

.traversal-notebook.is-open .traversal-notebook__backdrop {
  opacity: 1;
}

.traversal-notebook__panel {
  grid-column: 2;
  position: relative;
  z-index: 1;
  height: 100%;
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  border-left: 1px solid rgba(211, 167, 90, 0.24);
  background:
    linear-gradient(180deg, rgba(241, 209, 132, 0.048), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(65, 215, 199, 0.06), transparent 18rem),
    rgba(3, 3, 5, 0.96);
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.42), inset 1px 0 0 rgba(255, 255, 255, 0.035);
  display: grid;
  grid-template-rows: none;
  align-content: start;
  gap: 18px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  pointer-events: auto;
}

.traversal-notebook.is-open .traversal-notebook__panel {
  transform: translateX(0);
}

.traversal-notebook__header,
.traversal-notebook__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.traversal-notebook__header span,
.traversal-notebook__context span,
.traversal-notebook__field span,
.traversal-notebook__footer span {
  color: rgba(241, 209, 132, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.traversal-notebook__header h2 {
  margin: 5px 0 0;
  color: rgba(243, 240, 231, 0.94);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 650;
  line-height: 1.05;
}

.traversal-notebook__intro {
  padding: 15px 16px;
  border: 1px solid rgba(65, 215, 199, 0.22);
  background:
    linear-gradient(115deg, rgba(65, 215, 199, 0.08), transparent 58%),
    rgba(0, 0, 0, 0.24);
}

.traversal-notebook__intro[hidden],
.traversal-notebook__documents[hidden] {
  display: none;
}

.traversal-notebook__intro span {
  display: block;
  margin-bottom: 7px;
  color: rgba(65, 215, 199, 0.76);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.traversal-notebook__intro strong {
  display: block;
  color: rgba(246, 241, 229, 0.94);
  font-size: 0.96rem;
  line-height: 1.35;
}

.traversal-notebook__intro p {
  margin: 8px 0 0;
  color: rgba(236, 228, 211, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}

.traversal-notebook__documents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.traversal-notebook__documents button {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(211, 167, 90, 0.16);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(243, 240, 231, 0.78);
  text-align: left;
  display: grid;
  gap: 5px;
}

.traversal-notebook__documents button.is-active {
  border-color: rgba(241, 209, 132, 0.5);
  background:
    linear-gradient(135deg, rgba(211, 167, 90, 0.14), transparent 70%),
    rgba(0, 0, 0, 0.28);
  box-shadow: inset 2px 0 0 rgba(241, 209, 132, 0.62);
}

.traversal-notebook__documents button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.traversal-notebook__documents button > span {
  color: rgba(241, 209, 132, 0.56);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.traversal-notebook__documents button > strong {
  overflow: hidden;
  color: rgba(246, 241, 229, 0.92);
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.traversal-notebook__documents button > small {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(236, 228, 211, 0.5);
  font-size: 0.66rem;
}

.traversal-notebook__documents b,
.traversal-notebook__documents i {
  font-style: normal;
  font-weight: 650;
}

.traversal-notebook__close {
  appearance: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(211, 167, 90, 0.22);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(243, 240, 231, 0.86);
  font-size: 1.28rem;
}

.traversal-notebook__context {
  padding: 16px;
  border: 1px solid rgba(211, 167, 90, 0.16);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.07), transparent),
    rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 6px;
}

.traversal-notebook__context strong {
  color: rgba(243, 240, 231, 0.92);
  font-size: 1rem;
  font-weight: 700;
}

.traversal-notebook__context small {
  color: rgba(236, 228, 211, 0.54);
  line-height: 1.45;
}

.traversal-notebook__location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, 0.34fr);
  gap: 8px;
  margin-top: 8px;
}

.traversal-notebook__location span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(211, 167, 90, 0.14);
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 5px;
}

.traversal-notebook__location small {
  color: rgba(241, 209, 132, 0.5);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.traversal-notebook__location b {
  min-width: 0;
  overflow: hidden;
  color: rgba(243, 240, 231, 0.88);
  font-size: 0.78rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traversal-notebook__field {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.traversal-notebook__field textarea {
  width: 100%;
  min-height: min(320px, 38vh);
  height: 100%;
  resize: none;
  border: 1px solid rgba(211, 167, 90, 0.18);
  border-radius: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 26%),
    rgba(0, 0, 0, 0.24);
  color: rgba(246, 241, 229, 0.92);
  font: inherit;
  line-height: 1.68;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.traversal-notebook__field textarea:focus {
  border-color: rgba(241, 209, 132, 0.48);
  box-shadow: 0 0 0 1px rgba(241, 209, 132, 0.12), 0 0 32px rgba(211, 167, 90, 0.08);
}

.traversal-notebook__field textarea::placeholder {
  color: rgba(236, 228, 211, 0.36);
}

.traversal-notebook__footer {
  grid-template-columns: minmax(0, 1fr) auto auto;
  border-top: 1px solid rgba(211, 167, 90, 0.14);
  padding-top: 16px;
}

.traversal-notebook__footer span {
  color: rgba(236, 228, 211, 0.56);
  letter-spacing: 0.08em;
  text-transform: none;
}

.traversal-notebook__footer strong {
  color: rgba(65, 215, 199, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    color 0.22s ease,
    opacity 0.22s ease,
    text-shadow 0.22s ease;
}

.traversal-notebook__footer strong[data-state="saving"] {
  color: rgba(241, 209, 132, 0.82);
  animation: notebookSavePulse 1.1s ease-in-out infinite;
}

.traversal-notebook__footer button {
  appearance: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(211, 167, 90, 0.22);
  border-radius: 0;
  background: rgba(211, 167, 90, 0.08);
  color: rgba(243, 240, 231, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.traversal-notebook__close:hover,
.traversal-notebook__footer button:hover,
.notebook-access:hover {
  border-color: rgba(241, 209, 132, 0.5);
  color: #fff;
}

@media (max-height: 760px) and (min-width: 761px) {
  .traversal-notebook__panel {
    padding: 20px 22px;
    gap: 12px;
  }

  .traversal-notebook__context {
    padding: 12px;
  }

  .traversal-notebook__field {
    gap: 8px;
  }

  .traversal-notebook__field textarea {
    min-height: 220px;
    padding: 14px;
    line-height: 1.55;
  }

  .traversal-notebook__footer {
    padding-top: 12px;
  }
}

@media (max-width: 720px) {
  .notebook-access {
    right: 12px;
    top: 12px;
    min-height: 38px;
    padding: 0 12px;
  }

  .traversal-notebook {
    grid-template-columns: 1fr;
  }

  .traversal-notebook__panel {
    grid-column: 1;
    width: 100%;
    padding: 22px 18px;
    border-left: 0;
    border-top: 1px solid rgba(211, 167, 90, 0.22);
  }

  .traversal-notebook__documents {
    grid-template-columns: 1fr;
  }

  .traversal-notebook__footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .traversal-notebook__footer button {
    width: 100%;
  }
}

.workspace {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
    rgba(8, 7, 13, 0.86);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.search-icon {
  color: var(--muted);
}

.search-shell input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.search-shell input::placeholder {
  color: rgba(167, 154, 183, 0.72);
}

.topbar-identity {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.profile-chip__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.26), transparent 24%),
    linear-gradient(180deg, rgba(141, 92, 255, 0.85), rgba(67, 215, 199, 0.45));
  box-shadow: 0 0 28px rgba(141, 92, 255, 0.18);
}

.profile-chip strong,
.profile-chip small {
  display: block;
}

.profile-chip small {
  color: var(--muted);
  font-size: 0.76rem;
}

.portal-logout {
  margin-left: 2px;
  padding: 9px 12px;
  white-space: nowrap;
  font-size: 0.82rem;
}

.portal-logout[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 18px;
}

.sidebar,
.topbar,
.ops-ribbon,
.hero-stage,
.spotlight-card,
.hero-aside > .signal-card,
.section-heading,
.journey-banner,
.acts-track,
.library-grid {
  transition:
    opacity 0.72s ease,
    transform 0.72s ease,
    filter 0.72s ease;
  will-change: opacity, transform, filter;
}

body.is-portal-entering .sidebar {
  opacity: 0;
  transform: translateX(-12px) scale(0.99);
  filter: blur(12px) saturate(0.92);
}

body.is-portal-entering .topbar {
  opacity: 0;
  transform: translateY(-14px) scale(0.992);
  filter: blur(12px) saturate(0.94);
}

body.is-portal-entering .ops-ribbon {
  opacity: 0;
  transform: translateY(-10px) scale(0.996);
  filter: blur(10px) saturate(0.94);
  transition-delay: 90ms;
}

body.is-portal-entering .hero-stage {
  opacity: 0;
  transform: translateY(16px) scale(0.992);
  filter: blur(14px) saturate(0.94);
  transition-delay: 140ms;
}

body.is-portal-entering .spotlight-card {
  opacity: 0;
  transform: translateY(18px) scale(0.986);
  filter: blur(14px) saturate(0.94);
  transition-delay: 170ms;
}

body.is-portal-entering .hero-aside > .signal-card {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(10px) saturate(0.92);
  transition-delay: 220ms;
}

body.is-portal-entering .section-heading {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(10px);
  transition-delay: 260ms;
}

body.is-portal-entering .acts-track {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(8px);
  transition-delay: 300ms;
}

body.is-portal-entering .library-grid {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(12px) saturate(0.94);
  transition-delay: 340ms;
}

body.is-portal-entering .journey-banner {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(10px);
  transition-delay: 380ms;
}

body.is-portal-ready .sidebar,
body.is-portal-ready .topbar,
body.is-portal-ready .ops-ribbon,
body.is-portal-ready .hero-stage,
body.is-portal-ready .spotlight-card,
body.is-portal-ready .hero-aside > .signal-card,
body.is-portal-ready .section-heading,
body.is-portal-ready .acts-track,
body.is-portal-ready .library-grid,
body.is-portal-ready .journey-banner {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes portalBootLine {
  0% {
    opacity: 0;
    transform: translateX(-8px);
    filter: blur(5px);
  }
  24%,
  82% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
  100% {
    opacity: 0.62;
    transform: translateX(2px);
    filter: blur(0);
  }
}

@keyframes brandBreath {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28), 0 0 24px rgba(141, 92, 255, 0.18);
  }
  50% {
    transform: translateY(-1px) scale(1.012);
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.3), 0 0 30px rgba(141, 92, 255, 0.24);
  }
}

@keyframes notebookSavePulse {
  0%,
  100% {
    opacity: 0.72;
    text-shadow: 0 0 0 rgba(241, 209, 132, 0);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(241, 209, 132, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-boot-overlay {
    display: none;
  }

  .mission-node,
  .personal-archive,
  .observer-entry,
  .my-record,
  .portal-boot-overlay__sequence span,
  .traversal-notebook__footer strong {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 18% 35%, rgba(141, 92, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 84% 12%, rgba(67, 215, 199, 0.12), transparent 14rem),
    linear-gradient(135deg, rgba(15, 12, 24, 0.98), rgba(7, 6, 12, 0.96));
  box-shadow: var(--shadow);
}

.spotlight-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 12, 0.1), rgba(7, 6, 12, 0.5)),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.06), transparent 38%);
  pointer-events: none;
}

.spotlight-card__content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: center;
}

.spotlight-copy {
  max-width: 720px;
  display: grid;
  gap: 16px;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.spotlight-copy h1,
.section-heading h2,
.reader-topline h2,
.journey-banner h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.spotlight-copy h1 {
  font-size: clamp(2.7rem, 5.2vw, 5.2rem);
}

.spotlight-copy p,
.section-heading p,
.journey-banner p,
.reader-caption,
.signal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.button {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 18px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(141, 92, 255, 0.96), rgba(65, 215, 199, 0.72));
  box-shadow: 0 18px 34px rgba(141, 92, 255, 0.22);
}

.button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.spotlight-meta {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.spotlight-pulse {
  display: grid;
  gap: 6px;
  max-width: 480px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
    rgba(255, 255, 255, 0.03);
}

.spotlight-pulse span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spotlight-pulse strong {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.spotlight-meta span {
  color: rgba(255, 255, 255, 0.76);
}

.spotlight-meta small {
  color: rgba(236, 228, 211, 0.64);
  line-height: 1.45;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar i {
  display: block;
  width: 52%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(141, 92, 255, 0.3);
}

.spotlight-cover {
  position: relative;
  justify-self: end;
  width: min(100%, 280px);
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.48);
  background: rgba(255, 255, 255, 0.03);
}

.spotlight-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-cover__glow {
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18), transparent 36%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-aside {
  display: grid;
  gap: 14px;
}

.signal-card {
  min-height: 98px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  display: grid;
  align-content: start;
  gap: 8px;
}

.signal-card strong {
  font-size: 1.6rem;
  transition:
    color 0.24s ease,
    text-shadow 0.24s ease;
}

.signal-card--teal strong {
  color: var(--teal);
}

.signal-card--violet strong {
  color: var(--purple);
}

.signal-card--amber strong {
  color: var(--amber);
}

.recent-accesses {
  display: grid;
  gap: 12px;
}

.recent-accesses__heading {
  display: grid;
  gap: 6px;
}

.recent-accesses__heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.recent-accesses__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.recent-access {
  appearance: none;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(211, 167, 90, 0.14);
  border-radius: 0;
  color: rgba(245, 238, 226, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(255, 255, 255, 0.028);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.recent-access:hover,
.recent-access:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(241, 209, 132, 0.34);
  background-color: rgba(211, 167, 90, 0.055);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.recent-access__number,
.recent-access__mark {
  color: rgba(241, 209, 132, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.recent-access__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.recent-access__copy strong,
.recent-access__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-access__copy strong {
  color: rgba(245, 238, 226, 0.92);
  font-size: 0.88rem;
}

.recent-access__copy small {
  color: var(--muted);
  font-size: 0.72rem;
}

.operation-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.04fr) repeat(3, minmax(210px, 0.92fr));
  gap: 14px;
}

.operation-panel {
  min-height: 244px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.034);
  box-shadow: var(--shadow);
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: hidden;
}

.operation-panel h3 {
  margin: 0;
  max-width: 18ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.02;
}

.operation-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.operation-panel--mission {
  background:
    linear-gradient(135deg, rgba(211, 167, 90, 0.11), rgba(65, 215, 199, 0.055)),
    rgba(255, 255, 255, 0.034);
}

.operation-panel--mission .button {
  justify-self: start;
  margin-top: 2px;
}

.mission-meter {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.mission-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(211, 167, 90, 0.96), rgba(65, 215, 199, 0.78));
  box-shadow: 0 0 18px rgba(65, 215, 199, 0.18);
  transition: width 0.28s ease;
}

.mission-stack {
  display: grid;
  gap: 8px;
}

.mission-node {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(211, 167, 90, 0.12);
  border-radius: 0;
  padding: 10px;
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.06), transparent 78%),
    rgba(0, 0, 0, 0.18);
  color: rgba(243, 240, 231, 0.9);
  text-align: left;
  display: grid;
  gap: 4px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.mission-node:hover,
.mission-node:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(241, 209, 132, 0.34);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.12), rgba(65, 215, 199, 0.04)),
    rgba(0, 0, 0, 0.2);
}

.mission-node:disabled {
  cursor: default;
  opacity: 0.58;
}

.mission-node span {
  color: rgba(241, 209, 132, 0.58);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mission-node strong {
  color: rgba(243, 240, 231, 0.92);
  font-size: 0.9rem;
}

.mission-node small {
  color: rgba(236, 228, 211, 0.56);
  line-height: 1.35;
}

.mission-node--current {
  border-color: rgba(241, 209, 132, 0.24);
}

.personal-archive-list,
.observer-log,
.my-records-list {
  display: grid;
  gap: 10px;
}

.personal-archive,
.observer-entry,
.my-record {
  appearance: none;
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.034);
  color: #fff;
  text-align: left;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.personal-archive:hover,
.personal-archive:focus-visible,
.observer-entry:hover,
.observer-entry:focus-visible,
.my-record:hover,
.my-record:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(65, 215, 199, 0.1), rgba(211, 167, 90, 0.055)),
    rgba(255, 255, 255, 0.045);
}

.personal-archive__number,
.observer-entry__number,
.my-record__number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 235, 188, 0.92);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.personal-archive__copy,
.observer-entry__copy,
.my-record__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.personal-archive__copy strong,
.observer-entry__copy strong,
.my-record__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.personal-archive__copy small,
.observer-entry__copy small,
.my-record__copy small,
.operation-empty {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.operation-panel--records {
  border-color: rgba(211, 167, 90, 0.16);
  background:
    linear-gradient(180deg, rgba(211, 167, 90, 0.055), transparent 24%),
    rgba(255, 255, 255, 0.028);
}

.my-records-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 8px;
}

.my-records-toolbar label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.my-records-toolbar span {
  color: rgba(241, 209, 132, 0.58);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.my-records-toolbar select,
.my-records-toolbar input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(211, 167, 90, 0.16);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(0, 0, 0, 0.22);
  color: rgba(243, 240, 231, 0.88);
  padding: 0 10px;
  outline: none;
}

.my-records-toolbar select:focus,
.my-records-toolbar input:focus {
  border-color: rgba(241, 209, 132, 0.42);
  box-shadow: 0 0 0 1px rgba(241, 209, 132, 0.12);
}

.my-record {
  border-color: rgba(211, 167, 90, 0.12);
}

.my-record:hover,
.my-record:focus-visible {
  box-shadow:
    inset 2px 0 0 rgba(241, 209, 132, 0.42),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.my-record__number {
  color: rgba(241, 209, 132, 0.94);
  border-color: rgba(211, 167, 90, 0.16);
  background:
    radial-gradient(circle at 50% 36%, rgba(211, 167, 90, 0.12), transparent 46%),
    rgba(0, 0, 0, 0.2);
}

.operation-empty {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.08), transparent 74%),
    rgba(255, 255, 255, 0.024);
  color: rgba(245, 238, 252, 0.76);
}

.section-block {
  display: grid;
  gap: 18px;
}

.section-heading,
.journey-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.section-heading > div,
.journey-banner > div {
  display: grid;
  gap: 8px;
}

.section-heading h2,
.journey-banner h2,
.reader-topline h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p[data-library-note] {
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.acts-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.act-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.act-pill.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(90deg, rgba(141, 92, 255, 0.38), rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 26px rgba(141, 92, 255, 0.14);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.library-tile {
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 8px;
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.library-tile::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(241, 209, 132, 0.34), transparent 54%),
    radial-gradient(circle, rgba(141, 92, 255, 0.22), transparent 66%);
  filter: blur(8px);
  opacity: 0.76;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.library-tile::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0);
  box-shadow: inset 0 0 0 1px rgba(241, 209, 132, 0);
  opacity: 0;
  transition:
    opacity 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.library-tile:hover,
.library-tile:focus,
.library-tile:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(241, 209, 132, 0.14);
}

.library-tile:hover::before,
.library-tile:focus::before,
.library-tile:focus-visible::before {
  opacity: 1;
  transform: translate(-8px, -12px) scale(1.18);
}

.library-tile:hover::after,
.library-tile:focus::after,
.library-tile:focus-visible::after {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(241, 209, 132, 0.18),
    0 0 22px rgba(241, 209, 132, 0.18);
}

.library-tile--featured {
  border-color: rgba(141, 92, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(141, 92, 255, 0.08);
  grid-column: span 2;
}

.library-tile--featured .library-tile__title {
  color: #fff;
}

.library-tile--key-final {
  border-color: rgba(215, 173, 98, 0.34);
  background:
    linear-gradient(145deg, rgba(215, 173, 98, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.03);
}

.library-tile--key-final::before {
  background:
    radial-gradient(circle, rgba(241, 209, 132, 0.42), transparent 56%),
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 66%);
}

.library-tile--key-final .library-tile__status {
  border-color: rgba(215, 173, 98, 0.32);
  color: rgba(255, 235, 188, 0.92);
}

.library-tile--locked {
  cursor: not-allowed;
  opacity: 0.84;
  filter: saturate(0.72) brightness(0.86);
}

.library-tile--locked::before {
  opacity: 0.55;
}

.library-tile--locked .library-tile__cover {
  filter: grayscale(0.55) contrast(0.92) brightness(0.82);
}

.library-tile--locked:hover .library-tile__cover,
.library-tile--locked:focus .library-tile__cover,
.library-tile--locked:focus-visible .library-tile__cover {
  filter: grayscale(0.18) saturate(1.02) contrast(1.08) brightness(1.04);
}

.library-tile--locked .library-tile__title,
.library-tile--locked .library-tile__mood {
  color: rgba(255, 255, 255, 0.74);
}

.library-tile__cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 0;
  transform-origin: center bottom;
  transition:
    transform 0.28s ease,
    filter 0.28s ease,
    box-shadow 0.28s ease;
  will-change: transform;
}

.library-tile:hover .library-tile__cover,
.library-tile:focus .library-tile__cover,
.library-tile:focus-visible .library-tile__cover {
  transform: translateY(-7px) scale(1.045);
  filter: saturate(1.18) contrast(1.16) brightness(1.12);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(241, 209, 132, 0.2);
}

.library-tile__number,
.library-tile__title,
.library-tile__mood,
.library-tile__description {
  position: relative;
  z-index: 3;
}

.library-tile__number,
.library-tile__title,
.library-tile__mood,
.library-tile__description {
  padding-left: 14px;
  padding-right: 14px;
}

.library-tile__number {
  padding-top: 12px;
}

.library-tile__title {
  font-size: 0.94rem;
  line-height: 1.15;
  align-self: end;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.44);
  transition:
    transform 0.26s ease,
    color 0.26s ease,
    text-shadow 0.26s ease;
}

.library-tile__mood {
  padding-bottom: 14px;
}

.library-tile__description {
  display: block;
  max-height: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height 0.28s ease,
    opacity 0.24s ease,
    transform 0.24s ease;
}

.library-tile:hover .library-tile__description,
.library-tile:focus .library-tile__description,
.library-tile:focus-visible .library-tile__description {
  max-height: 9.5rem;
  opacity: 1;
  transform: translateY(0);
}

.library-tile__number {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.library-tile__title {
  font-weight: 700;
  line-height: 1.1;
}

.library-tile:hover .library-tile__title,
.library-tile:focus .library-tile__title,
.library-tile:focus-visible .library-tile__title {
  color: #fff7d6;
  transform: translateY(-7px) scale(1.055);
  text-shadow:
    0 10px 24px rgba(0, 0, 0, 0.52),
    0 0 20px rgba(241, 209, 132, 0.26);
}

.library-tile__status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(5, 5, 9, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.library-tile__lock {
  position: absolute;
  inset: auto 14px 16px auto;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.78), rgba(10, 10, 14, 0.42));
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.library-tile__progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.library-tile__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(211, 167, 90, 0.9), rgba(141, 92, 255, 0.8));
}

.library-tile--locked .library-tile__progress i {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(141, 92, 255, 0.24));
}

.library-tile:disabled,
.library-tile[aria-disabled="true"] {
  cursor: not-allowed;
}

.library-tile:disabled:hover,
.library-tile[aria-disabled="true"]:hover {
  cursor: not-allowed;
}

.library-tile__mood {
  color: var(--muted);
  font-size: 0.84rem;
}

.app-shell {
  width: min(100%, 1480px);
  padding: 16px;
  gap: 16px;
  color: #f3f0e7;
}

.app-shell .sidebar,
.app-shell .topbar,
.app-shell .spotlight-card,
.app-shell .section-heading,
.app-shell .journey-banner,
.app-shell .signal-card {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.14);
  background:
    linear-gradient(180deg, rgba(241, 209, 132, 0.035), transparent 22%),
    rgba(3, 3, 5, 0.9);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.app-shell .sidebar::before {
  background:
    linear-gradient(180deg, rgba(211, 167, 90, 0.08), transparent 26%),
    radial-gradient(circle at 50% 92%, rgba(65, 215, 199, 0.055), transparent 16rem);
  opacity: 0.72;
}

.app-shell .brand-mark {
  border-radius: 0;
  border-color: rgba(241, 209, 132, 0.42);
  background:
    radial-gradient(circle at 50% 32%, rgba(241, 209, 132, 0.22), transparent 32%),
    rgba(0, 0, 0, 0.38);
  color: #f1d184;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
  animation: none;
}

.app-shell .brand-text strong,
.app-shell .topbar-identity strong,
.app-shell .profile-chip strong,
.app-shell .sidebar-card strong {
  color: #f3f0e7;
}

.app-shell .brand-text small,
.app-shell .sidebar-label,
.app-shell .eyebrow,
.app-shell .topbar-identity__eyebrow,
.app-shell .signal-card__label {
  color: rgba(241, 209, 132, 0.62);
}

.app-shell .nav-item {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.028), transparent 70%),
    rgba(255, 255, 255, 0.018);
}

.app-shell .nav-item span {
  color: rgba(241, 209, 132, 0.48);
}

.app-shell .nav-item strong {
  color: rgba(243, 240, 231, 0.82);
}

.app-shell .nav-item:hover,
.app-shell .nav-item.is-active {
  transform: translateX(2px);
  border-color: rgba(241, 209, 132, 0.28);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.18), rgba(65, 215, 199, 0.035) 62%, transparent),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 2px 0 0 rgba(241, 209, 132, 0.68),
    inset 0 0 0 1px rgba(241, 209, 132, 0.04);
}

.app-shell .sidebar-card {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.app-shell .radial-progress {
  background:
    conic-gradient(from 180deg, rgba(211, 167, 90, 0.78) 0 23%, rgba(255, 255, 255, 0.08) 23% 100%);
  box-shadow: 0 0 0 1px rgba(211, 167, 90, 0.18), 0 0 26px rgba(211, 167, 90, 0.08);
}

@media (min-width: 1181px) {
  .app-shell {
    grid-template-columns: var(--sidebar-closed-w) minmax(0, 1fr);
    transition: grid-template-columns 0.34s ease;
  }

  .app-shell:has(.sidebar:hover),
  .app-shell.is-sidebar-expanded {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }

  .app-shell .sidebar {
    align-content: start;
    z-index: 30;
    width: var(--sidebar-closed-w);
    padding: 14px 12px;
    gap: 14px;
    grid-template-rows: auto auto 0 0;
    transition:
      width 0.34s ease,
      padding 0.34s ease,
      border-color 0.34s ease,
      box-shadow 0.34s ease;
  }

  .app-shell .sidebar:hover,
  .app-shell.is-sidebar-expanded .sidebar {
    align-content: stretch;
    width: 100%;
    padding: 20px;
    grid-template-rows: auto auto 1fr auto;
    border-color: rgba(211, 167, 90, 0.28);
    box-shadow:
      0 30px 82px rgba(0, 0, 0, 0.42),
      inset 0 0 0 1px rgba(241, 209, 132, 0.04);
  }

  .app-shell .brand--sidebar {
    width: 100%;
    justify-content: center;
    gap: 0;
  }

  .app-shell .sidebar:hover .brand--sidebar,
  .app-shell.is-sidebar-expanded .brand--sidebar {
    justify-content: flex-start;
    gap: 14px;
  }

  .app-shell .brand-text,
  .app-shell .nav-item span,
  .app-shell .nav-item strong,
  .app-shell .sidebar-card {
    opacity: 0;
    transform: translateX(-8px);
    transition:
      opacity 0.18s ease,
      transform 0.24s ease;
  }

  .app-shell .nav-item span,
  .app-shell .nav-item strong {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition:
      opacity 0.18s ease,
      transform 0.24s ease,
      max-height 0.24s ease;
  }

  .app-shell .brand-text {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .app-shell .sidebar:hover .brand-text,
  .app-shell.is-sidebar-expanded .brand-text {
    width: auto;
  }

  .app-shell .sidebar:hover .brand-text,
  .app-shell.is-sidebar-expanded .brand-text,
  .app-shell .sidebar:hover .nav-item span,
  .app-shell.is-sidebar-expanded .nav-item span,
  .app-shell .sidebar:hover .nav-item strong,
  .app-shell.is-sidebar-expanded .nav-item strong,
  .app-shell .sidebar:hover .sidebar-card,
  .app-shell.is-sidebar-expanded .sidebar-card {
    opacity: 1;
    transform: translateX(0);
  }

  .app-shell .sidebar:hover .nav-item span,
  .app-shell.is-sidebar-expanded .nav-item span,
  .app-shell .sidebar:hover .nav-item strong,
  .app-shell.is-sidebar-expanded .nav-item strong {
    max-height: 2.6em;
  }

  .app-shell .sidebar-nav {
    align-content: start;
    gap: 10px;
  }

  .app-shell .nav-item {
    box-sizing: border-box;
    grid-template-rows: 0 0;
    height: 63px;
    min-height: 52px;
    padding: 12px 0;
    place-items: center;
    justify-items: center;
  }

  .app-shell .nav-item::before {
    inset: auto auto 8px 50%;
    width: 18px;
    height: 1px;
    transform: translateX(-50%);
  }

  .app-shell .nav-item::after {
    content: "01";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    color: rgba(241, 209, 132, 0.74);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .app-shell .nav-item:nth-child(2)::after {
    content: "02";
  }

  .app-shell .nav-item:nth-child(3)::after {
    content: "03";
  }

  .app-shell .nav-item:nth-child(4)::after {
    content: "04";
  }

  .app-shell .sidebar:hover .nav-item,
  .app-shell.is-sidebar-expanded .nav-item {
    grid-template-rows: auto auto;
    height: auto;
    padding: 12px 14px;
    place-items: initial;
    justify-items: stretch;
  }

  .app-shell .sidebar:hover .nav-item::before,
  .app-shell.is-sidebar-expanded .nav-item::before {
    inset: 10px auto 10px 0;
    width: 2px;
    height: auto;
    transform: none;
  }

  .app-shell .sidebar:hover .nav-item::after,
  .app-shell.is-sidebar-expanded .nav-item::after {
    opacity: 0;
  }

  .app-shell .sidebar-card {
    max-height: 0;
    min-height: 0;
    padding: 0;
    border-color: transparent;
    pointer-events: none;
    overflow: hidden;
    transition:
      opacity 0.18s ease,
      transform 0.24s ease,
      max-height 0.3s ease,
      padding 0.3s ease,
      border-color 0.3s ease;
  }

  .app-shell .sidebar:hover .sidebar-card,
  .app-shell.is-sidebar-expanded .sidebar-card {
    max-height: 340px;
    padding: 18px;
    border-color: rgba(211, 167, 90, 0.14);
    pointer-events: auto;
    transition-delay: 0.08s;
  }

  .app-shell .sidebar:hover .sidebar-progress,
  .app-shell.is-sidebar-expanded .sidebar-progress {
    align-content: start;
  }
}

.app-shell .topbar {
  top: 16px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  backdrop-filter: blur(18px);
}

.app-shell .search-shell,
.app-shell .profile-chip {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.app-shell .profile-chip__avatar {
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(122, 216, 255, 0.32), transparent 24%),
    linear-gradient(180deg, rgba(211, 167, 90, 0.55), rgba(22, 28, 34, 0.9));
  box-shadow: 0 0 22px rgba(211, 167, 90, 0.12);
}

.app-shell .portal-entry-signal {
  color: rgba(241, 209, 132, 0.62);
}

.ops-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  color: rgba(243, 240, 231, 0.58);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ops-ribbon span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(211, 167, 90, 0.14);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.075), transparent 72%),
    rgba(0, 0, 0, 0.2);
}

.app-shell .hero-stage {
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
}

.app-shell .spotlight-card {
  min-height: 360px;
}

.app-shell .spotlight-card__veil {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 74% 45%, rgba(211, 167, 90, 0.08), transparent 34%);
}

.app-shell .spotlight-card__content {
  padding: clamp(20px, 2.5vw, 30px);
  grid-template-columns: minmax(0, 1fr) 235px;
}

.spotlight-operational-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
  margin-bottom: 2px;
  color: rgba(243, 240, 231, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spotlight-operational-strip span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid rgba(211, 167, 90, 0.14);
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .spotlight-copy h1,
.app-shell .section-heading h2,
.app-shell .journey-banner h2 {
  color: #f3f0e7;
  font-size: clamp(2.25rem, 4.3vw, 4.45rem);
}

.app-shell .spotlight-cover {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.24);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48);
}

.app-shell .spotlight-cover img {
  filter: saturate(0.9) contrast(1.08) brightness(0.76);
}

.app-shell .spotlight-cover__glow {
  opacity: 0.28;
}

.app-shell .spotlight-pulse,
.app-shell .acts-track {
  border-radius: 0;
  border: 1px solid rgba(211, 167, 90, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.app-shell .button--primary {
  border-color: rgba(241, 209, 132, 0.5);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(99, 61, 21, 0.96), rgba(43, 111, 120, 0.72));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.app-shell .button--ghost {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.app-shell .act-pill {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.app-shell .act-pill.is-active {
  border-color: rgba(241, 209, 132, 0.36);
  background: rgba(211, 167, 90, 0.12);
  box-shadow: none;
}

.app-shell .library-grid {
  gap: 9px;
}

.app-shell .library-tile {
  min-height: 0;
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.16);
  background:
    linear-gradient(180deg, rgba(241, 209, 132, 0.028), transparent 18%),
    rgba(3, 3, 5, 0.94);
  box-shadow: none;
}

.app-shell .library-tile::before {
  display: none;
}

.app-shell .library-tile:hover {
  border-color: rgba(241, 209, 132, 0.42);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.app-shell .library-tile--key-final {
  grid-column: span 2;
  border-color: rgba(211, 167, 90, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(211, 167, 90, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.28);
}

.app-shell .library-tile__cover {
  filter: saturate(0.92) contrast(1.07) brightness(0.68);
  border-color: rgba(211, 167, 90, 0.12);
}

.app-shell .library-tile__number {
  color: rgba(241, 209, 132, 0.62);
}

.app-shell .library-tile__status,
.app-shell .library-tile__lock {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.16);
  background: rgba(0, 0, 0, 0.56);
}

.app-shell .journey-banner {
  border-color: rgba(211, 167, 90, 0.16);
}

.app-shell .signal-card,
.app-shell .operation-panel {
  position: relative;
  overflow: hidden;
}

.app-shell .signal-card::before,
.app-shell .operation-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(241, 209, 132, 0.09) 8.2%, transparent 8.6% 91%, rgba(65, 215, 199, 0.055) 91.2%, transparent 91.6%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 8px);
  opacity: 0.34;
}

.app-shell .signal-card::after,
.app-shell .operation-panel::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(241, 209, 132, 0.44), transparent 56%, rgba(65, 215, 199, 0.22));
  opacity: 0.5;
}

.signal-card__seal,
.operation-panel__seal {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  max-width: 46%;
  padding: 3px 6px;
  border: 1px solid rgba(211, 167, 90, 0.18);
  color: rgba(241, 209, 132, 0.68);
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
}

.app-shell .signal-card > :not(.signal-card__seal),
.app-shell .operation-panel > :not(.operation-panel__seal) {
  position: relative;
  z-index: 1;
}

.app-shell .operation-panel {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.15);
  background:
    linear-gradient(180deg, rgba(241, 209, 132, 0.035), transparent 22%),
    rgba(4, 4, 6, 0.88);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(241, 209, 132, 0.035);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.app-shell .operation-panel:hover,
.app-shell .operation-panel:focus-within {
  transform: translateY(-1px);
  border-color: rgba(241, 209, 132, 0.28);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(241, 209, 132, 0.06);
}

.app-shell .operation-panel--mission {
  background:
    linear-gradient(135deg, rgba(211, 167, 90, 0.13), rgba(65, 215, 199, 0.045) 48%, transparent),
    rgba(4, 4, 6, 0.9);
}

.app-shell .operation-empty {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.12);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.08), transparent 68%),
    rgba(0, 0, 0, 0.24);
}

.preportal-page--library {
  width: min(100%, 1560px);
  margin-inline: auto;
  padding: clamp(18px, 3vw, 42px) clamp(16px, 4vw, 72px);
  gap: clamp(16px, 2vw, 28px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 7%, rgba(211, 167, 90, 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(4, 3, 2, 0.98), rgba(2, 2, 4, 0.96) 48%, rgba(3, 2, 1, 0.98));
  box-shadow: none;
  backdrop-filter: none;
}

.preportal-page--library::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.16), transparent 10%, transparent 90%, rgba(211, 167, 90, 0.14)),
    radial-gradient(ellipse at 3% 34%, rgba(255, 255, 255, 0.074), transparent 28rem),
    radial-gradient(ellipse at 97% 48%, rgba(241, 209, 132, 0.115), transparent 30rem),
    radial-gradient(ellipse at 50% 72%, rgba(211, 167, 90, 0.055), transparent 38rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 68px),
    linear-gradient(180deg, rgba(11, 7, 2, 0.7), transparent 26%, rgba(0, 0, 0, 0.42) 74%);
  opacity: 0.9;
  pointer-events: none;
}

.preportal-page--library::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(0, 0, 0, 0.34) 82%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 13%, transparent 87%, rgba(0, 0, 0, 0.54));
  pointer-events: none;
}

.preportal-page--library > .library-official__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.preportal-page--library .library-official__observer {
  position: absolute;
  right: max(-7vw, -118px);
  top: -7%;
  width: min(66vw, 1040px);
  opacity: 0.22;
  filter: grayscale(1) contrast(1.28) brightness(0.68);
}

.preportal-page--library .library-official__smoke,
.preportal-page--library .library-official__beam {
  position: absolute;
  pointer-events: none;
}

.preportal-page--library .library-official__smoke {
  width: 54rem;
  height: 54rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(211, 167, 90, 0.1), transparent 68%);
  filter: blur(72px);
  opacity: 0.48;
}

.preportal-page--library .library-official__smoke--left {
  left: -26rem;
  top: 20%;
}

.preportal-page--library .library-official__smoke--right {
  right: -28rem;
  bottom: 14%;
}

.preportal-page--library .library-official__beam {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(211, 167, 90, 0.28), transparent 62%);
  opacity: 0.34;
}

.preportal-page--library .editorial-threshold--library {
  min-height: clamp(360px, 50vh, 560px);
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.46fr);
  gap: clamp(14px, 3vw, 34px);
  align-items: end;
  padding: clamp(18px, 4vw, 46px) 0 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(211, 167, 90, 0.2);
  background: transparent;
  box-shadow: none;
}

.preportal-page--library .editorial-threshold--library > div {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.preportal-page--library .editorial-threshold--library h2 {
  width: min(100%, 560px);
  max-width: 560px;
  margin: 0;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f3f0e7;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
  text-shadow:
    0 18px 44px rgba(0, 0, 0, 0.82),
    0 0 36px rgba(255, 255, 255, 0.1),
    0 0 76px rgba(211, 167, 90, 0.1);
  transition:
    text-shadow 180ms ease,
    transform 180ms ease;
}

.preportal-page--library .editorial-threshold--library h2:hover {
  transform: none;
  text-shadow:
    0 18px 44px rgba(0, 0, 0, 0.82),
    0 0 36px rgba(255, 255, 255, 0.1),
    0 0 76px rgba(211, 167, 90, 0.1);
}

.preportal-page--library .editorial-threshold--library h2 > span,
.preportal-page--library .editorial-threshold--library h2 > strong {
  display: inline;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.preportal-page--library .editorial-threshold--library h2 > span::after {
  content: " ";
}

.preportal-page--library .editorial-threshold--library h2 .sensory-word {
  display: inline-block;
  white-space: nowrap;
  transform-style: preserve-3d;
  transition:
    transform 190ms ease,
    filter 190ms ease;
}

.preportal-page--library .editorial-threshold--library h2 .sensory-word:hover:nth-child(odd) {
  transform: translateY(-1px) translateZ(6px);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.5));
}

.preportal-page--library .editorial-threshold--library h2 .sensory-word:hover:nth-child(even) {
  transform: translateY(-1px) translateZ(5px);
  filter: drop-shadow(0 12px 16px rgba(211, 167, 90, 0.12));
}

.preportal-page--library .editorial-threshold--library h2 .sensory-letter {
  display: inline-block;
  transition:
    transform 180ms ease,
    text-shadow 180ms ease;
}

.preportal-page--library .editorial-threshold--library h2 .sensory-letter:hover {
  transform:
    translateY(-5px)
    translateZ(46px)
    rotateX(5deg)
    rotateY(var(--letter-yaw, 0deg))
    rotate(var(--letter-turn, 0deg))
    scale(1.07);
  text-shadow:
    0 20px 38px rgba(0, 0, 0, 0.86),
    0 0 20px rgba(255, 255, 255, 0.14),
    0 0 28px rgba(211, 167, 90, 0.1);
}

.preportal-page--library .editorial-threshold--library .editorial-threshold__index,
.preportal-page--library .editorial-threshold--library .eyebrow {
  grid-column: 1 / -1;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
  white-space: normal;
  max-width: none;
  opacity: 0.78;
}

.preportal-page--library .editorial-threshold--library p[data-library-note] {
  grid-column: 2;
  grid-row: 2;
  max-width: 34ch;
  justify-self: end;
  padding-bottom: clamp(18px, 5vw, 72px);
  padding-left: 18px;
  border-left: 1px solid rgba(211, 167, 90, 0.34);
  color: rgba(245, 238, 252, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.72);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    text-shadow 180ms ease;
}

.preportal-page--library .editorial-threshold--library:hover p[data-library-note] {
  color: rgba(255, 249, 237, 0.92);
  border-color: rgba(241, 209, 132, 0.48);
  transform: translateY(-1px);
  text-shadow:
    0 14px 34px rgba(0, 0, 0, 0.78),
    0 0 22px rgba(211, 167, 90, 0.1);
}

.preportal-page--library .editorial-breath--library {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  width: min(100%, 860px);
  margin-left: auto;
  padding: 14px 18px;
  border-top: 1px solid rgba(211, 167, 90, 0.24);
  border-bottom: 1px solid rgba(211, 167, 90, 0.24);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.08), transparent 38%, rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.24);
  color: rgba(245, 238, 252, 0.8);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.preportal-page--library .editorial-breath--library:hover {
  border-color: rgba(241, 209, 132, 0.36);
  color: rgba(255, 249, 237, 0.88);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(211, 167, 90, 0.08);
}

.preportal-page--library .editorial-breath--library > span {
  display: none;
}

.preportal-page--library .editorial-breath--library span,
.preportal-page--library .editorial-breath--library strong {
  color: #f1d184;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
}

.preportal-page--library .editorial-breath--library p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.08em;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
}

.preportal-page--library .library-official__archive {
  padding: 0;
  gap: clamp(12px, 1.6vw, 18px);
  width: min(100%, 860px);
  margin-inline: auto;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.preportal-page--library .library-archive__intro {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(211, 167, 90, 0.16);
  text-align: center;
  transition:
    border-color 180ms ease,
    text-shadow 180ms ease;
}

.preportal-page--library .library-archive__intro:hover {
  border-color: rgba(241, 209, 132, 0.28);
}

.preportal-page--library .library-archive__intro h3 {
  max-width: 27ch;
  font-size: clamp(1.35rem, 2.6vw, 2.45rem);
  line-height: 0.98;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  transform: none;
  text-shadow:
    0 16px 34px rgba(0, 0, 0, 0.74),
    0 0 34px rgba(211, 167, 90, 0.08);
}

.preportal-page--library .preportal-library-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 0;
  align-items: stretch;
  perspective: 1600px;
}

.preportal-page--library .preportal-library-grid .library-tile {
  min-height: 0;
  padding: 10px 10px 8px;
  gap: 6px;
  isolation: isolate;
  overflow: visible;
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.56);
  background:
    radial-gradient(ellipse at 50% 82%, rgba(241, 209, 132, 0.12), transparent 58%),
    radial-gradient(ellipse at 50% 38%, rgba(241, 209, 132, 0.08), transparent 56%),
    linear-gradient(180deg, rgba(241, 209, 132, 0.045), transparent 28%),
    rgba(3, 3, 4, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.038),
    0 20px 42px rgba(0, 0, 0, 0.42),
    0 8px 28px rgba(211, 167, 90, 0.06);
  transform-style: preserve-3d;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.preportal-page--library .preportal-library-grid .library-tile::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 14px 10px 28px;
  height: auto;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(255, 255, 255, 0.12), transparent 31%),
    radial-gradient(ellipse at 50% 82%, rgba(241, 209, 132, 0.2), rgba(211, 167, 90, 0.075) 38%, transparent 70%);
  filter: blur(15px);
  opacity: 0.64;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    filter 0.22s ease;
}

.preportal-page--library .preportal-library-grid .library-tile::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 14px;
  right: 14px;
  top: 8px;
  height: calc(100% - 54px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.055) 36%, transparent 56%),
    radial-gradient(ellipse at 50% 12%, rgba(255, 255, 255, 0.09), transparent 32%),
    radial-gradient(ellipse at 50% 94%, rgba(255, 255, 255, 0.07), transparent 38%);
  opacity: 0.5;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.preportal-page--library .preportal-library-grid .library-tile:hover,
.preportal-page--library .preportal-library-grid .library-tile:focus,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(241, 209, 132, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.052),
    0 28px 58px rgba(0, 0, 0, 0.46),
    0 0 34px rgba(211, 167, 90, 0.16);
}

.preportal-page--library .preportal-library-grid .library-tile:hover::before,
.preportal-page--library .preportal-library-grid .library-tile:focus::before,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible::before {
  opacity: 0.96;
  filter: blur(11px);
}

.preportal-page--library .preportal-library-grid .library-tile:hover::after,
.preportal-page--library .preportal-library-grid .library-tile:focus::after,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible::after {
  opacity: 0.78;
  transform: translateY(-4px) translateZ(12px) scale(1.022);
}

.preportal-page--library .preportal-library-grid .library-tile--featured {
  grid-column: span 1;
}

.preportal-page--library .preportal-library-grid .library-tile--locked {
  opacity: 1;
  filter: none;
}

.preportal-page--library .preportal-library-grid .library-tile__cover {
  position: relative;
  z-index: 1;
  padding: 2px;
  background: rgba(0, 0, 0, 0.92);
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(246, 242, 232, 0.16);
  border-radius: 0;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: 2px;
  filter: saturate(1.06) contrast(1.14) brightness(0.88);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.56),
    0 8px 24px rgba(211, 167, 90, 0.08),
    0 0 26px rgba(211, 167, 90, 0.08),
    0 0 14px rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(255, 255, 255, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.065);
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    outline-color 0.22s ease,
    box-shadow 0.22s ease;
}

.preportal-page--library .preportal-library-grid .library-tile--locked .library-tile__cover {
  filter: saturate(1.1) contrast(1.18) brightness(0.94);
}

.preportal-page--library .preportal-library-grid .library-tile:not(.library-tile--locked):hover .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:not(.library-tile--locked):focus .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:not(.library-tile--locked):focus-visible .library-tile__cover {
  transform: translateY(-14px) translateZ(68px) rotateX(2.6deg) scale(1.04);
  outline-color: rgba(255, 255, 255, 0.16);
  filter:
    saturate(1.34)
    contrast(1.5)
    brightness(1.13)
    drop-shadow(0 0 9px rgba(255, 255, 255, 0.14))
    drop-shadow(0 18px 18px rgba(0, 0, 0, 0.44));
  box-shadow:
    0 46px 82px rgba(0, 0, 0, 0.76),
    0 20px 48px rgba(211, 167, 90, 0.22),
    0 0 50px rgba(211, 167, 90, 0.2),
    0 0 28px rgba(255, 255, 255, 0.16),
    0 0 0 3px rgba(255, 255, 255, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.12);
}

.preportal-page--library .preportal-library-grid .library-tile--locked:hover .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile--locked:focus .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile--locked:focus-visible .library-tile__cover {
  transform: translateY(-8px) translateZ(30px) rotateX(1.2deg) scale(1.016);
  filter:
    saturate(1.24)
    contrast(1.34)
    brightness(1.06)
    drop-shadow(0 12px 14px rgba(0, 0, 0, 0.38));
  box-shadow:
    0 34px 62px rgba(0, 0, 0, 0.7),
    0 14px 34px rgba(211, 167, 90, 0.16),
    0 0 34px rgba(255, 255, 255, 0.12);
}

.preportal-page--library .preportal-library-grid .library-tile__cover {
  border-color: rgba(255, 255, 255, 0.46);
  outline-color: rgba(241, 209, 132, 0.2);
  filter: saturate(1.08) contrast(1.1) brightness(0.98);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.58),
    0 7px 22px rgba(241, 209, 132, 0.12),
    0 0 0 2px rgba(255, 255, 255, 0.045),
    0 0 28px rgba(241, 209, 132, 0.12);
}

.preportal-page--library .preportal-library-grid .library-tile--locked .library-tile__cover {
  filter: saturate(1.04) contrast(1.08) brightness(0.94);
}

.preportal-page--library .preportal-library-grid .library-tile:hover .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:focus .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible .library-tile__cover {
  transform: translateY(-18px) translateZ(78px) rotateX(2.2deg) scale(1.065);
  border-color: rgba(255, 255, 255, 0.78);
  outline-color: rgba(241, 209, 132, 0.42);
  filter:
    saturate(1.2)
    contrast(1.2)
    brightness(1.08)
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.16))
    drop-shadow(0 20px 18px rgba(0, 0, 0, 0.44));
  box-shadow:
    0 48px 86px rgba(0, 0, 0, 0.76),
    0 20px 48px rgba(241, 209, 132, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 0 46px rgba(241, 209, 132, 0.24);
}

.preportal-page--library .preportal-library-grid .library-tile__number,
.preportal-page--library .preportal-library-grid .library-tile__title,
.preportal-page--library .preportal-library-grid .library-tile__mood {
  position: relative;
  z-index: 1;
  padding-left: 2px;
  padding-right: 2px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.preportal-page--library .preportal-library-grid .library-tile__number {
  padding-top: 2px;
  color: rgba(241, 209, 132, 0.68);
  font-size: 0.64rem;
}

.preportal-page--library .preportal-library-grid .library-tile__title {
  display: none;
}

.preportal-page--library .preportal-library-grid .library-tile__mood {
  padding-top: 1px;
  padding-bottom: 2px;
  color: rgba(245, 238, 252, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.18;
}

.preportal-page--library .preportal-library-grid .library-tile__status {
  position: relative;
  z-index: 1;
  top: auto;
  right: auto;
  justify-self: start;
  align-self: start;
  width: max-content;
  max-width: 100%;
  margin-top: 1px;
  border-radius: 0;
  min-height: 16px;
  padding: 0 5px;
  background: rgba(0, 0, 0, 0.26);
  border-color: rgba(211, 167, 90, 0.12);
  color: rgba(245, 238, 252, 0.48);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
  opacity: 0.58;
}

.preportal-page--library .preportal-library-grid .library-tile:hover .library-tile__status,
.preportal-page--library .preportal-library-grid .library-tile:focus .library-tile__status,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible .library-tile__status {
  color: rgba(245, 238, 252, 0.64);
  opacity: 0.76;
}

.preportal-page--library .preportal-library-grid .library-tile__lock {
  z-index: 2;
  right: 7px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.14);
  color: rgba(241, 209, 132, 0.52);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.42rem;
  opacity: 0.48;
  box-shadow: none;
}

.preportal-page--library .preportal-library-grid .library-tile:hover .library-tile__lock,
.preportal-page--library .preportal-library-grid .library-tile:focus .library-tile__lock,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible .library-tile__lock {
  opacity: 0.64;
}

.preportal-page--library .preportal-library-grid .library-tile__progress {
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 2px;
  background: rgba(211, 167, 90, 0.12);
}

.preportal-page--library .library-official__interlude {
  min-height: 100%;
  padding: clamp(12px, 1.7vw, 18px);
  border: 1px solid rgba(211, 167, 90, 0.45);
  background:
    linear-gradient(180deg, rgba(241, 209, 132, 0.06), transparent 34%),
    rgba(3, 3, 4, 0.94);
  display: grid;
  align-content: center;
  gap: 10px;
}

.preportal-page--library .library-official__interlude--silence {
  grid-column: span 1;
}

.preportal-page--library .library-official__interlude span {
  color: rgba(241, 209, 132, 0.74);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preportal-page--library .library-official__interlude h4 {
  margin: 0;
  color: #f3f0e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.7vw, 1.65rem);
  font-weight: 600;
  line-height: 0.98;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.preportal-page--library .library-official__interlude p {
  margin: 0;
  color: rgba(245, 238, 252, 0.62);
  line-height: 1.55;
}

.preportal-page--library .library-manifesto {
  margin: 0;
  padding: 18px clamp(14px, 3vw, 30px);
  border-top: 1px solid rgba(211, 167, 90, 0.16);
  border-bottom: 1px solid rgba(211, 167, 90, 0.16);
  color: rgba(245, 238, 252, 0.68);
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 4.8vw, 3.8rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.preportal-page--library .library-manifesto span,
.preportal-page--library .library-manifesto strong {
  display: block;
}

.preportal-page--library .library-manifesto strong {
  color: #c6a86d;
  font-weight: 600;
  text-shadow:
    0 12px 32px rgba(0, 0, 0, 0.72),
    0 0 18px rgba(211, 167, 90, 0.12);
}

.preportal-page--library .library-official__archive > .funnel-card__caption {
  max-width: 64ch;
  color: rgba(245, 238, 252, 0.58);
}

.preportal-page--library .library-fragment {
  position: relative;
  overflow: hidden;
  width: min(790px, 100%);
  margin: clamp(20px, 4vw, 42px) auto 0;
  padding: clamp(20px, 3.2vw, 32px);
  display: grid;
  grid-template-columns: minmax(90px, 0.34fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 24px);
  align-items: center;
  border: 1px solid rgba(211, 167, 90, 0.46);
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 44%, rgba(141, 92, 255, 0.14), transparent 15rem),
    radial-gradient(ellipse at 72% 18%, rgba(211, 167, 90, 0.08), transparent 13rem),
    linear-gradient(180deg, rgba(211, 167, 90, 0.06), transparent 42%),
    rgba(3, 3, 5, 0.9);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.46),
    0 0 42px rgba(141, 92, 255, 0.12),
    0 0 34px rgba(211, 167, 90, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.preportal-page--library .library-fragment:hover {
  transform: translateY(-3px);
  border-color: rgba(211, 167, 90, 0.64);
  box-shadow:
    0 40px 96px rgba(0, 0, 0, 0.52),
    0 0 42px rgba(141, 92, 255, 0.15),
    0 0 36px rgba(211, 167, 90, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.preportal-page--library .library-fragment::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 6%;
  width: min(260px, 48%);
  background:
    radial-gradient(ellipse at center, rgba(241, 209, 132, 0.16), rgba(141, 92, 255, 0.08) 42%, transparent 70%);
  filter: blur(16px);
  opacity: 0.68;
  pointer-events: none;
}

.preportal-page--library .library-fragment::after {
  content: "FRAGMENTO REVELADO";
  position: absolute;
  z-index: 1;
  top: clamp(14px, 2.4vw, 24px);
  right: clamp(14px, 2.6vw, 28px);
  padding: 4px 7px;
  border: 1px solid rgba(178, 45, 45, 0.36);
  color: rgba(231, 82, 69, 0.58);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(2deg);
  pointer-events: none;
}

.preportal-page--library .library-fragment__presence {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: 0.84;
}

.preportal-page--library .library-fragment__presence img {
  width: min(158px, 100%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid rgba(241, 209, 132, 0.16);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: 2px;
  filter: saturate(1.02) contrast(1.16) brightness(0.86);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.52),
    0 0 22px rgba(211, 167, 90, 0.08);
  transition:
    filter 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.preportal-page--library .library-fragment:hover .library-fragment__presence img {
  transform: translateY(-4px) translateZ(18px);
  filter: saturate(1.02) contrast(1.18) brightness(0.9);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.58),
    0 0 30px rgba(211, 167, 90, 0.12);
}

.preportal-page--library .library-fragment__presence span {
  position: absolute;
  inset: auto 12% 8% 12%;
  height: 1px;
  background: rgba(211, 167, 90, 0.22);
}

.preportal-page--library .library-fragment__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.preportal-page--library .library-fragment__copy h3 {
  max-width: 24ch;
  margin: 0;
  color: rgba(247, 240, 223, 0.95);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.02;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-shadow:
    0 14px 32px rgba(0, 0, 0, 0.74),
    0 0 20px rgba(211, 167, 90, 0.08);
}

.preportal-page--library .library-fragment__copy p,
.preportal-page--library .library-fragment__copy small {
  max-width: 48ch;
  color: rgba(245, 238, 252, 0.76);
}

.preportal-page--library .library-fragment__open {
  position: relative;
  z-index: 3;
  width: fit-content;
  min-height: 40px;
  padding: 0 18px;
  pointer-events: auto;
  border-radius: 0;
  border-color: rgba(241, 209, 132, 0.72);
  background:
    linear-gradient(90deg, rgba(62, 46, 116, 0.92), rgba(23, 18, 38, 0.96));
  color: rgba(247, 240, 223, 0.94);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(141, 92, 255, 0.16),
    0 0 18px rgba(211, 167, 90, 0.12);
}

.preportal-page--library .library-fragment__open:hover,
.preportal-page--library .library-fragment__open:focus-visible {
  border-color: rgba(241, 209, 132, 0.72);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(141, 92, 255, 0.16),
    0 0 18px rgba(211, 167, 90, 0.12);
}

.fragment-reader[hidden] {
  display: none !important;
}

.fragment-reader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(2, 2, 5, 0.78);
}

.fragment-reader__veil {
  position: absolute;
  inset: 0;
}

.fragment-reader__shell {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  max-height: min(92svh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid rgba(211, 167, 90, 0.42);
  background: rgba(5, 5, 8, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
}

.fragment-reader__header,
.fragment-reader__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fragment-reader__header button,
.fragment-reader__footer button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(241, 209, 132, 0.36);
  color: rgba(247, 240, 223, 0.92);
  background: rgba(255, 255, 255, 0.04);
}

.fragment-reader__stage {
  min-height: min(68svh, 660px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050507;
}

.fragment-reader__stage iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

body.is-fragment-open {
  overflow: hidden;
}

.preportal-page--library .library-key-final {
  width: min(720px, 100%);
  margin: clamp(24px, 5vw, 58px) auto 0;
  padding: clamp(30px, 4.4vw, 60px) clamp(18px, 3.4vw, 48px);
  border: 1px solid rgba(211, 167, 90, 0.48);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 20%, rgba(211, 167, 90, 0.18), transparent 18rem),
    radial-gradient(circle at 50% 62%, rgba(241, 209, 132, 0.06), transparent 16rem),
    linear-gradient(180deg, rgba(43, 25, 5, 0.32), transparent 38%),
    rgba(3, 2, 1, 0.96);
  box-shadow:
    0 30px 76px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(211, 167, 90, 0.065),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 30px);
  text-align: center;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.preportal-page--library .library-key-final:hover {
  border-color: rgba(241, 209, 132, 0.58);
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(211, 167, 90, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.preportal-page--library .library-key-final__copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.preportal-page--library .library-key-final__copy h3 {
  max-width: 11.8ch;
  margin: 0;
  color: #d2b16f;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-shadow:
    0 10px 30px rgba(0, 0, 0, 0.76),
    0 0 24px rgba(211, 167, 90, 0.16);
}

.preportal-page--library .library-key-final__copy p {
  max-width: 52ch;
  margin: 0;
  color: rgba(245, 238, 252, 0.6);
  line-height: 1.6;
}

.preportal-page--library .library-key-final__object {
  position: relative;
  width: min(500px, 92vw);
  min-height: clamp(430px, 58vw, 620px);
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 900px;
  transform-style: preserve-3d;
}

.preportal-page--library .library-key-final__object::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8% 2% 5%;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(241, 209, 132, 0.13), rgba(111, 69, 18, 0.07) 36%, transparent 70%),
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0.42), transparent 62%);
  filter: blur(18px);
  opacity: 0.72;
  pointer-events: none;
  transform: translateZ(-42px);
}

.preportal-page--library .library-key-final__object::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 3% -8% 2%;
  border: 1px solid rgba(158, 112, 39, 0.58);
  outline: 1px solid rgba(58, 37, 12, 0.88);
  outline-offset: 5px;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(241, 209, 132, 0.2) 9% 16%, transparent 16% 84%, rgba(241, 209, 132, 0.2) 84% 91%, transparent 91%) top left / 100% 4px no-repeat,
    linear-gradient(90deg, transparent 0 9%, rgba(143, 91, 28, 0.26) 9% 16%, transparent 16% 84%, rgba(143, 91, 28, 0.26) 84% 91%, transparent 91%) bottom left / 100% 4px no-repeat,
    linear-gradient(180deg, transparent 0 8%, rgba(241, 209, 132, 0.18) 8% 18%, transparent 18% 82%, rgba(143, 91, 28, 0.24) 82% 92%, transparent 92%) top left / 4px 100% no-repeat,
    linear-gradient(180deg, transparent 0 8%, rgba(143, 91, 28, 0.24) 8% 18%, transparent 18% 82%, rgba(241, 209, 132, 0.18) 82% 92%, transparent 92%) top right / 4px 100% no-repeat;
  box-shadow:
    0 0 0 3px rgba(13, 9, 5, 0.9),
    0 0 0 7px rgba(100, 66, 20, 0.22),
    inset 0 0 0 1px rgba(255, 239, 186, 0.08),
    inset 0 0 18px rgba(255, 230, 164, 0.07),
    inset 0 0 58px rgba(0, 0, 0, 0.42),
    inset 0 0 78px rgba(116, 72, 19, 0.15),
    0 38px 82px rgba(0, 0, 0, 0.56),
    0 0 30px rgba(211, 167, 90, 0.06);
  pointer-events: none;
  transform: translateZ(-28px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.preportal-page--library .library-key-final:hover .library-key-final__object::after {
  border-color: rgba(189, 139, 51, 0.68);
  box-shadow:
    0 0 0 3px rgba(13, 9, 5, 0.9),
    0 0 0 7px rgba(121, 82, 27, 0.26),
    inset 0 0 0 1px rgba(255, 239, 186, 0.12),
    inset 0 0 20px rgba(255, 230, 164, 0.1),
    inset 0 0 62px rgba(0, 0, 0, 0.38),
    inset 0 0 86px rgba(137, 88, 24, 0.18),
    0 42px 90px rgba(0, 0, 0, 0.6),
    0 0 34px rgba(211, 167, 90, 0.09);
  filter: brightness(1.06);
}

.preportal-page--library .library-key-final__threshold-frame {
  display: none;
}

.preportal-page--library .library-key-final__object .library-tile--key-final {
  position: relative;
  z-index: 4;
  width: min(330px, 82%);
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(211, 167, 90, 0.84);
  outline: 1px solid rgba(75, 49, 16, 0.82);
  outline-offset: 5px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(52, 31, 11, 0.78), transparent 11%, transparent 89%, rgba(63, 39, 13, 0.72)),
    linear-gradient(180deg, rgba(93, 60, 18, 0.55), transparent 9%, transparent 91%, rgba(42, 25, 8, 0.72)),
    repeating-linear-gradient(92deg, rgba(255, 229, 151, 0.025) 0 1px, transparent 1px 7px),
    radial-gradient(ellipse at 50% 82%, rgba(241, 209, 132, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(211, 167, 90, 0.1), transparent 26%),
    rgba(1, 1, 2, 0.98);
  box-shadow:
    0 40px 84px rgba(0, 0, 0, 0.62),
    0 18px 42px rgba(211, 167, 90, 0.13),
    0 0 28px rgba(211, 167, 90, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 4px rgba(75, 47, 14, 0.28),
    inset 0 0 28px rgba(106, 67, 20, 0.16);
  filter: none;
  transform-style: preserve-3d;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    outline-color 180ms ease;
}

.preportal-page--library .library-key-final:hover .library-key-final__object .library-tile--key-final {
  transform: translateY(-7px) translateZ(46px);
  border-color: rgba(241, 209, 132, 0.88);
  outline-color: rgba(112, 76, 25, 0.9);
  box-shadow:
    0 42px 88px rgba(0, 0, 0, 0.62),
    0 20px 46px rgba(211, 167, 90, 0.16),
    0 0 30px rgba(211, 167, 90, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 4px rgba(91, 58, 18, 0.34),
    inset 0 0 32px rgba(137, 88, 24, 0.2);
}

.preportal-page--library .library-key-final__object .library-tile--key-final::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 10px;
  border: 1px solid rgba(176, 124, 42, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(29, 17, 6, 0.74),
    inset 0 0 20px rgba(124, 79, 22, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 223, 145, 0.035), transparent 16%, transparent 84%, rgba(255, 223, 145, 0.03)),
    repeating-linear-gradient(0deg, rgba(136, 87, 24, 0.04) 0 1px, transparent 1px 9px);
  pointer-events: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.preportal-page--library .library-key-final:hover .library-key-final__object .library-tile--key-final::before {
  border-color: rgba(211, 153, 55, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(45, 27, 8, 0.78),
    inset 0 0 24px rgba(154, 100, 30, 0.18),
    0 0 20px rgba(211, 167, 90, 0.08);
}

.preportal-page--library .library-key-final__object .library-tile__cover {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(113, 82, 39, 0.9);
  border-radius: 4px;
  outline: 5px solid rgba(31, 20, 10, 0.94);
  outline-offset: 2px;
  object-fit: contain;
  object-position: center;
  background: #000;
  filter: saturate(1.03) contrast(1.12) brightness(0.82);
  transform: translateZ(18px);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.58),
    0 0 0 2px rgba(241, 209, 132, 0.16),
    0 0 32px rgba(211, 167, 90, 0.15);
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease,
    outline-color 180ms ease;
}

.preportal-page--library .library-key-final__object .library-tile__status {
  position: relative;
  top: auto;
  right: auto;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  min-height: 16px;
  padding: 0 6px;
  justify-self: start;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.26);
  border-color: rgba(211, 167, 90, 0.16);
  color: rgba(245, 238, 252, 0.5);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  opacity: 0.64;
}

.preportal-page--library .library-key-final:hover .library-key-final__object .library-tile__cover {
  transform: translateY(-4px) translateZ(58px) scale(1.025);
  outline-color: rgba(58, 34, 10, 0.96);
  filter:
    saturate(1.26)
    contrast(1.38)
    brightness(1.04)
    drop-shadow(0 10px 14px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 12px rgba(211, 167, 90, 0.2));
  box-shadow:
    0 36px 68px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(241, 209, 132, 0.3),
    0 0 36px rgba(211, 167, 90, 0.16);
}

.preportal-page--library .library-key-final__object .library-tile__number,
.preportal-page--library .library-key-final__object .library-tile__title,
.preportal-page--library .library-key-final__object .library-tile__mood {
  padding-left: 4px;
  padding-right: 4px;
}

.preportal-page--library .library-key-final__object .library-tile__number {
  color: rgba(241, 209, 132, 0.78);
  font-size: 0.82rem;
}

.preportal-page--library .library-key-final__object .library-tile__title {
  color: #f1d184;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.24rem, 2.2vw, 1.46rem);
}

.preportal-page--library .library-key-final__object .library-tile__mood {
  font-size: 0.94rem;
}

.preportal-page--library .library-key-final__passage {
  width: min(430px, 100%);
  padding: 22px 20px;
  border: 1px solid rgba(211, 167, 90, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 10px;
}

.preportal-page--library .library-key-final__passage span {
  color: rgba(245, 238, 252, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.08rem;
}

.preportal-page--library .library-key-final__passage .button {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  border-color: rgba(241, 209, 132, 0.72);
  border-radius: 0;
  color: #f7f0df;
  background: linear-gradient(90deg, rgba(98, 59, 17, 0.95), rgba(145, 105, 36, 0.82));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  min-height: 52px;
  padding-inline: 28px;
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .preportal-page--library .preportal-library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .preportal-page--library .editorial-threshold--library {
    min-height: 360px;
  }

  .preportal-page--library .editorial-breath--library,
  .preportal-page--library .library-archive__intro {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .preportal-page--library .preportal-library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .preportal-page--library .library-official__interlude,
  .preportal-page--library .library-official__interlude--silence {
    grid-column: span 1;
  }
}

@media (max-width: 460px) {
  .preportal-page--library {
    padding: 18px 12px;
  }

  .preportal-page--library .preportal-library-grid {
    gap: 6px;
  }

  .preportal-page--library .preportal-library-grid .library-tile {
    padding: 6px;
  }

  .preportal-page--library .preportal-library-grid .library-tile__status {
    display: none;
  }
}

.funnel-section {
  display: grid;
  gap: 18px;
}

.funnel-grid,
.funnel-vsl-grid {
  display: grid;
  gap: 16px;
}

.funnel-travessia-flow {
  display: grid;
  gap: 18px;
}

.funnel-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.funnel-vsl-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.funnel-card,
.funnel-vsl-card,
.funnel-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at 20% 20%, rgba(141, 92, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 82% 20%, rgba(67, 215, 199, 0.12), transparent 16rem),
    rgba(6, 6, 10, 0.86);
  box-shadow: var(--shadow);
}

.funnel-card {
  padding: 26px;
  min-height: 100%;
  display: grid;
  gap: 14px;
}

.funnel-card h3,
.funnel-vsl-copy h3,
.funnel-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.funnel-card h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  max-width: 14ch;
}

.funnel-card p,
.funnel-vsl-copy p,
.funnel-vsl-copy small,
.funnel-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.funnel-card__eyebrow {
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.funnel-card__actions,
.funnel-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.funnel-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.funnel-book-chip {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.funnel-book-chip__cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.28);
}

.funnel-book-chip__title {
  font-weight: 700;
  line-height: 1.2;
}

.funnel-book-chip__meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.funnel-book-chip--locked {
  filter: saturate(0.72) brightness(0.86);
  opacity: 0.9;
}

.funnel-book-chip--locked .funnel-book-chip__cover {
  filter: grayscale(0.55) contrast(0.92) brightness(0.82);
}

.funnel-book-chip--locked .funnel-book-chip__meta {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.funnel-vsl-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.55fr);
  gap: 0;
  min-height: 480px;
}

.funnel-vsl-card--featured {
  min-height: min(78vh, 820px);
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.5fr);
}

.funnel-vsl-card--offer {
  min-height: 520px;
  border-color: rgba(211, 167, 90, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(211, 167, 90, 0.16), transparent 22rem),
    radial-gradient(circle at 16% 68%, rgba(141, 92, 255, 0.08), transparent 20rem),
    rgba(7, 6, 8, 0.9);
}

.funnel-vsl-stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
    rgba(0, 0, 0, 0.58);
  min-height: clamp(380px, 52vh, 660px);
}

.funnel-vsl-card--featured .funnel-vsl-stage {
  min-height: clamp(460px, 64vh, 780px);
}

.funnel-vsl-stage::before,
.funnel-vsl-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.funnel-vsl-stage::before {
  background:
    linear-gradient(90deg, rgba(4, 3, 7, 0.38), transparent 18%, transparent 82%, rgba(4, 3, 7, 0.34)),
    linear-gradient(180deg, rgba(4, 3, 7, 0.18), transparent 38%, rgba(4, 3, 7, 0.3));
}

.funnel-vsl-stage::after {
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.42);
}

.funnel-video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  background: #040406;
}

.funnel-vsl-card.is-playing .funnel-vsl-stage::before,
.funnel-vsl-card.is-playing .funnel-vsl-stage::after,
.funnel-vsl-card.is-native-fullscreen .funnel-vsl-stage::before,
.funnel-vsl-card.is-native-fullscreen .funnel-vsl-stage::after {
  opacity: 0;
}

.funnel-vsl-card.is-playing > .travessia-collage-note,
.funnel-vsl-card.is-playing > .travessia-thread-anchor,
.funnel-vsl-card.is-native-fullscreen > .travessia-collage-note,
.funnel-vsl-card.is-native-fullscreen > .travessia-thread-anchor {
  opacity: 0;
}

.funnel-vsl-stage:fullscreen,
.funnel-vsl-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #000;
}

.funnel-vsl-stage:fullscreen .funnel-video,
.funnel-vsl-stage:-webkit-full-screen .funnel-video,
.funnel-video:fullscreen,
.funnel-video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.funnel-vsl-stage.is-video-unavailable {
  background:
    linear-gradient(180deg, rgba(4, 4, 7, 0.12), rgba(4, 4, 7, 0.78)),
    radial-gradient(circle at 50% 32%, rgba(241, 209, 132, 0.16), transparent 19rem),
    var(--funnel-poster, none),
    rgba(0, 0, 0, 0.72);
  background-size: auto, auto, cover, auto;
  background-position: center;
}

.funnel-vsl-stage.is-video-unavailable .funnel-video {
  opacity: 0;
  visibility: hidden;
}

.funnel-vsl-stage.is-video-unavailable::after {
  content: "Transmissão em silêncio";
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(247, 240, 223, 0.88);
  font-size: clamp(0.72rem, 1.8vw, 0.9rem);
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  background:
    linear-gradient(180deg, rgba(2, 2, 4, 0.16), rgba(2, 2, 4, 0.74)),
    radial-gradient(circle at 50% 50%, rgba(211, 167, 90, 0.12), transparent 18rem);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.5);
  z-index: 4;
}

.funnel-vsl-card.is-video-unavailable .funnel-vsl-play,
.funnel-vsl-card.is-video-unavailable .funnel-vsl-controls {
  opacity: 0;
  pointer-events: none;
}

.call-official__video.is-video-unavailable,
.travessia-entry-background-video.is-video-unavailable,
.travessia-entry-artifact__video.is-video-unavailable {
  opacity: 0;
  visibility: hidden;
}

.funnel-vsl-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.22), transparent 40%),
    linear-gradient(180deg, rgba(141, 92, 255, 0.62), rgba(0, 0, 0, 0.58));
  color: #fff;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.34), 0 0 32px rgba(141, 92, 255, 0.2);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  z-index: 3;
}

.funnel-vsl-card.is-playing .funnel-vsl-play {
  opacity: 0;
  pointer-events: none;
}

.funnel-vsl-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(4, 4, 7, 0.72);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.funnel-vsl-card:not(.is-playing) .funnel-vsl-controls,
.funnel-vsl-card.is-vsl-controls-visible .funnel-vsl-controls,
.funnel-vsl-card:not(.is-playing):focus-within .funnel-vsl-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.funnel-vsl-card.is-video-unavailable .funnel-vsl-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.funnel-vsl-controls button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

.funnel-vsl-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(220px, 42vw);
  color: rgba(255, 255, 255, 0.64);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.64rem;
}

.funnel-vsl-controls input {
  width: 100%;
  accent-color: var(--amber);
}

.funnel-vsl-copy {
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    rgba(8, 7, 12, 0.82);
}

.funnel-vsl-card--offer .funnel-vsl-copy {
  background:
    linear-gradient(180deg, rgba(211, 167, 90, 0.08), transparent 22%),
    rgba(8, 7, 8, 0.86);
}

.funnel-vsl-copy h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.funnel-vsl-copy small {
  letter-spacing: 0.08em;
}

.funnel-travessia-bridge {
  padding: clamp(28px, 5vw, 72px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(90deg, rgba(141, 92, 255, 0.12), transparent 38%, rgba(211, 167, 90, 0.08)),
    rgba(5, 5, 9, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.funnel-travessia-bridge h3 {
  margin: 8px 0 10px;
  max-width: 15ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

.funnel-travessia-bridge p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.8;
}

.travessia-ref-screen {
  display: grid;
  gap: 22px;
  align-items: start;
}

.travessia-ref-screen--1,
.travessia-ref-screen--2,
.travessia-ref-screen--3,
.travessia-ref-screen--4,
.travessia-ref-screen--5 {
  width: 100%;
}

.travessia-official__flow {
  display: grid;
  gap: 24px;
  align-items: start;
}

.travessia-official__chapter,
.travessia-official__access {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 6, 10, 0.82);
  overflow: hidden;
}

.editorial-threshold {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: center;
  padding: 28px 24px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.76);
}

.editorial-threshold > * {
  position: relative;
  z-index: 1;
}

.travessia-entry-background-video,
.travessia-entry-artifact__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.travessia-entry-artifact__media {
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border-radius: 24px;
}

.funnel-cta {
  padding: 24px;
  display: grid;
  gap: 18px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
}

.funnel-cta h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  max-width: 14ch;
}

.preportal-page--travessia {
  position: relative;
  isolation: isolate;
  width: min(100%, 1500px);
  margin-inline: auto;
  padding: 0 clamp(14px, 4vw, 64px) clamp(28px, 5vw, 72px);
  gap: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 48% 7%, rgba(96, 78, 190, 0.24), transparent 22rem),
    linear-gradient(180deg, rgba(7, 6, 16, 0.98), rgba(2, 2, 5, 0.99) 30%, rgba(15, 28, 56, 0.9) 42%, rgba(3, 23, 32, 0.94) 58%, rgba(3, 2, 3, 0.98) 78%);
  box-shadow: none;
  backdrop-filter: none;
}

.preportal-page--travessia::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 22, 0.88), transparent 12%, transparent 88%, rgba(7, 10, 22, 0.9)),
    radial-gradient(ellipse at 4% 22%, rgba(122, 216, 255, 0.08), transparent 28rem),
    radial-gradient(ellipse at 96% 62%, rgba(211, 167, 90, 0.075), transparent 30rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 74px);
  pointer-events: none;
}

.preportal-page--travessia::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 2%;
  bottom: 0;
  left: 50%;
  width: min(86%, 960px);
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(122, 216, 255, 0.08), transparent 18%, rgba(66, 170, 225, 0.12) 36%, rgba(49, 205, 221, 0.09) 52%, rgba(211, 167, 90, 0.09) 76%, transparent 92%),
    radial-gradient(ellipse at 50% 30%, rgba(122, 216, 255, 0.1), transparent 30rem),
    radial-gradient(ellipse at 50% 86%, rgba(211, 167, 90, 0.12), transparent 24rem);
  opacity: 0.84;
  pointer-events: none;
}

.preportal-page--travessia .travessia-ref-screen {
  position: relative;
  z-index: 1;
}

.preportal-page--travessia > .travessia-official__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.preportal-page--travessia .travessia-official__fog,
.preportal-page--travessia .travessia-official__beam {
  position: absolute;
  pointer-events: none;
}

.preportal-page--travessia .travessia-official__fog {
  width: 46rem;
  height: 46rem;
  border-radius: 999px;
  filter: blur(78px);
  opacity: 0.24;
}

.preportal-page--travessia .travessia-official__fog--violet {
  left: -22rem;
  top: 4%;
  background: rgba(117, 92, 255, 0.42);
}

.preportal-page--travessia .travessia-official__fog--gold {
  right: -24rem;
  bottom: 15%;
  background: rgba(211, 167, 90, 0.22);
}

.preportal-page--travessia .travessia-official__beam {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(122, 216, 255, 0.3), transparent 46%, rgba(211, 167, 90, 0.16), transparent);
  opacity: 0.34;
}

.preportal-page--travessia .editorial-threshold--travessia {
  min-height: clamp(540px, 74vh, 820px);
  padding: clamp(26px, 4vw, 58px);
  margin-bottom: clamp(-34px, -3vw, -18px);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(105, 91, 216, 0.18), transparent 28rem),
    rgba(2, 2, 5, 0.72);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.24),
    inset 0 -1px 0 rgba(122, 216, 255, 0.06);
}

.preportal-page--travessia .travessia-entry-background-video {
  opacity: 0.34;
  filter: saturate(0.82) contrast(1.08) brightness(0.56);
}

.preportal-page--travessia .editorial-threshold--travessia h2 {
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.92;
  text-shadow:
    0 24px 56px rgba(0, 0, 0, 0.76),
    0 0 32px rgba(122, 216, 255, 0.1);
  transition:
    transform 180ms ease,
    filter 180ms ease,
    text-shadow 180ms ease;
}

.preportal-page--travessia .editorial-threshold--travessia h2:hover {
  transform: none;
  filter: none;
  text-shadow:
    0 24px 56px rgba(0, 0, 0, 0.76),
    0 0 32px rgba(122, 216, 255, 0.1);
}

.preportal-page--travessia .travessia-entry-artifact {
  border-color: rgba(122, 216, 255, 0.18);
  background: rgba(3, 3, 8, 0.58);
}

.preportal-page--travessia .travessia-official__flow {
  position: relative;
  isolation: isolate;
  width: min(100%, 1120px);
  margin-inline: auto;
  gap: 0;
  padding: 0 0 clamp(22px, 4vw, 54px);
}

.preportal-page--travessia .travessia-official__flow::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(122, 216, 255, 0.34), rgba(211, 167, 90, 0.24), transparent);
  box-shadow:
    0 0 38px rgba(86, 189, 228, 0.2),
    0 0 90px rgba(86, 189, 228, 0.1);
  opacity: 0.9;
  pointer-events: none;
}

.preportal-page--travessia .travessia-official__flow::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: clamp(42px, 6vw, 86px);
  bottom: clamp(100px, 12vw, 170px);
  left: 50%;
  width: min(82%, 780px);
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(7, 12, 26, 0.7) 18%, rgba(5, 8, 16, 0.84) 50%, rgba(7, 12, 26, 0.7) 82%, transparent),
    linear-gradient(180deg, transparent, rgba(36, 76, 132, 0.2) 22%, rgba(18, 106, 124, 0.16) 48%, rgba(61, 31, 55, 0.18) 78%, transparent);
  opacity: 0.86;
  pointer-events: none;
}

.preportal-page--travessia .travessia-investigation-thread {
  position: absolute;
  z-index: 1;
  right: max(12px, calc((100% - 1120px) / 2 - 14px));
  top: clamp(680px, 55vw, 820px);
  bottom: clamp(120px, 8vw, 170px);
  width: clamp(112px, 12vw, 178px);
  pointer-events: none;
}

.preportal-page--travessia .travessia-investigation-thread__line {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(115deg, rgba(94, 8, 8, 0.42) 0 2px, rgba(195, 42, 32, 0.74) 2px 4px, rgba(69, 6, 6, 0.5) 4px 7px),
    linear-gradient(180deg, transparent, rgba(117, 13, 13, 0.92) 7%, rgba(149, 23, 20, 0.88) 88%, transparent);
  box-shadow:
    0 0 0 1px rgba(30, 2, 2, 0.72),
    0 7px 18px rgba(0, 0, 0, 0.42),
    0 0 14px rgba(143, 18, 18, 0.28);
  transform: rotate(-0.7deg);
}

.preportal-page--travessia .travessia-investigation-thread__line::before,
.preportal-page--travessia .travessia-investigation-thread__line::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 221, 174, 0.1) 9px 10px, transparent 10px 18px);
  opacity: 0.5;
}

.preportal-page--travessia .travessia-investigation-thread__line::after {
  inset: 2px 1px;
  background: linear-gradient(180deg, rgba(255, 140, 105, 0.18), transparent 24%, rgba(255, 178, 122, 0.12), transparent 74%);
  opacity: 0.7;
}

.preportal-page--travessia .travessia-investigation-thread i {
  position: absolute;
  right: -4px;
  top: var(--pin-y);
  display: flex;
  align-items: center;
  color: rgba(246, 232, 214, 0.66);
  font-style: normal;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.preportal-page--travessia .travessia-investigation-thread i::before {
  content: "";
  position: relative;
  z-index: 2;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 36%, rgba(255, 224, 158, 0.86) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(122, 18, 15, 0.92), rgba(54, 4, 4, 0.92));
  box-shadow:
    0 0 0 1px rgba(194, 41, 33, 0.32),
    0 0 9px rgba(178, 31, 31, 0.24);
}

.preportal-page--travessia .travessia-investigation-thread i::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: var(--branch-length, 56px);
  height: 3px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 4px 50%, rgba(239, 198, 116, 0.9) 0 2px, rgba(119, 18, 16, 0.72) 3px 5px, transparent 6px),
    repeating-linear-gradient(115deg, rgba(92, 7, 7, 0.56) 0 2px, rgba(188, 38, 30, 0.78) 2px 4px, rgba(53, 3, 3, 0.4) 4px 7px),
    linear-gradient(90deg, transparent, rgba(134, 16, 14, 0.82));
  box-shadow:
    0 0 0 1px rgba(36, 2, 2, 0.42),
    0 5px 12px rgba(0, 0, 0, 0.28),
    0 0 10px rgba(156, 28, 24, 0.18);
  transform: translateY(-50%) rotate(var(--branch-rotate, -5deg));
  transform-origin: right center;
  opacity: 0.9;
}

.preportal-page--travessia .travessia-investigation-thread b {
  display: none;
}

.preportal-page--travessia .funnel-vsl-card--main,
.preportal-page--travessia .travessia-official__chapter,
.preportal-page--travessia .travessia-official__pillars,
.preportal-page--travessia .recovered-archives,
.preportal-page--travessia .preportal-final-cta {
  overflow: visible;
}

.preportal-page--travessia .travessia-thread-anchor {
  position: absolute;
  z-index: 9;
  right: -10px;
  top: var(--anchor-y, 50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  pointer-events: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.42));
}

.preportal-page--travessia .travessia-thread-anchor::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 2px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 252, 232, 0.98) 0 3px, transparent 4px),
    radial-gradient(circle at 49% 51%, rgba(55, 30, 9, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 63% 68%, rgba(67, 38, 13, 0.88) 0 3px, transparent 4px),
    conic-gradient(from 220deg, rgba(75, 42, 14, 0.98), rgba(248, 221, 146, 0.98), rgba(137, 91, 33, 0.98), rgba(48, 26, 8, 0.98), rgba(216, 172, 84, 0.96), rgba(75, 42, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 236, 180, 0.58),
    0 0 0 4px rgba(48, 25, 7, 0.24),
    inset 0 2px 3px rgba(255, 255, 255, 0.24),
    inset 0 -5px 10px rgba(54, 29, 9, 0.38),
    0 9px 20px rgba(0, 0, 0, 0.52),
    0 0 18px rgba(196, 44, 34, 0.2),
    18px 0 24px rgba(126, 20, 17, 0.16);
}

.preportal-page--travessia .travessia-thread-anchor::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 50%;
  width: var(--anchor-branch-length, 24px);
  height: 3px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 2px 50%, rgba(239, 198, 116, 0.95) 0 2px, rgba(113, 16, 14, 0.68) 3px 6px, transparent 7px),
    repeating-linear-gradient(115deg, rgba(88, 7, 7, 0.66) 0 2px, rgba(188, 37, 29, 0.86) 2px 4px, rgba(54, 4, 4, 0.48) 4px 7px),
    linear-gradient(90deg, rgba(124, 17, 16, 0.94), rgba(154, 24, 21, 0.62));
  box-shadow:
    0 0 0 1px rgba(32, 2, 2, 0.34),
    0 5px 12px rgba(0, 0, 0, 0.34),
    0 0 10px rgba(156, 28, 24, 0.2),
    -9px 0 14px rgba(238, 195, 111, 0.1);
  transform: translateY(-50%);
  transform-origin: left center;
}

.preportal-page--travessia .travessia-thread-anchor em {
  position: absolute;
  z-index: 4;
  left: 38px;
  top: 50%;
  padding: 5px 8px 5px 10px;
  border: 1px solid rgba(143, 31, 25, 0.42);
  border-left-color: rgba(221, 184, 102, 0.58);
  background:
    linear-gradient(180deg, rgba(44, 34, 24, 0.96), rgba(12, 10, 10, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px);
  color: rgba(249, 231, 197, 0.86);
  box-shadow:
    0 11px 24px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    -10px 0 18px rgba(121, 22, 18, 0.12),
    -24px 0 22px rgba(175, 33, 27, 0.08);
  font-style: normal;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(234, 197, 124, 0.12);
  white-space: nowrap;
  transform: translateY(-50%) rotate(-1.5deg);
}

.preportal-page--travessia .travessia-thread-anchor em::before,
.preportal-page--travessia .travessia-thread-anchor em::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.preportal-page--travessia .travessia-thread-anchor em::before {
  left: -12px;
  top: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(112, 14, 13, 0.76), rgba(178, 37, 29, 0.68));
  box-shadow: 0 0 8px rgba(178, 37, 29, 0.2);
  transform: translateY(-50%);
}

.preportal-page--travessia .travessia-thread-anchor em::after {
  left: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 28%, rgba(255, 247, 218, 0.9) 0 1px, rgba(180, 125, 48, 0.95) 2px 4px, rgba(67, 36, 11, 0.9) 5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.38);
  transform: translateY(-50%);
}

@media (max-width: 1320px) {
  .preportal-page--travessia .travessia-investigation-thread b {
    display: none;
  }

  .preportal-page--travessia .travessia-thread-anchor em {
    display: none;
  }
}

@media (max-width: 980px) {
  .preportal-page--travessia .travessia-investigation-thread i::after {
    width: min(var(--branch-length, 56px), 44px);
  }

  .preportal-page--travessia .travessia-thread-anchor::after {
    width: min(var(--anchor-branch-length, 24px), 44px);
  }
}

.preportal-page--travessia .travessia-official__prologue,
.preportal-page--travessia .travessia-official__offer-prologue {
  position: relative;
  z-index: 2;
  width: min(720px, 94%);
  margin: 0 auto clamp(-10px, -1vw, -4px);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(211, 167, 90, 0.16);
  border-radius: 0;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(122, 216, 255, 0.1), transparent 16rem),
    linear-gradient(90deg, rgba(14, 17, 28, 0.94), rgba(18, 14, 18, 0.9)),
    rgba(5, 6, 10, 0.88);
  color: #f3f0e7;
  box-shadow:
    0 28px 74px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(122, 216, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preportal-page--travessia .travessia-official__prologue::before {
  content: "ARQUIVO DE VOZ / REPRODUCAO RESERVADA";
  position: absolute;
  top: 12px;
  right: 14px;
  padding: 3px 6px;
  border: 1px solid rgba(178, 45, 45, 0.28);
  color: rgba(231, 82, 69, 0.5);
  background: rgba(3, 3, 7, 0.62);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(1.8deg);
  pointer-events: none;
}

.preportal-page--travessia .travessia-official__prologue h3,
.preportal-page--travessia .travessia-official__offer-prologue h3 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  font-weight: 600;
  line-height: 0.95;
}

.preportal-page--travessia .funnel-vsl-card {
  position: relative;
  z-index: 2;
  margin: 0 0 clamp(-8px, -1vw, -4px);
  border-radius: 0;
  border-color: rgba(122, 216, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(12, 10, 20, 0.94), rgba(3, 3, 7, 0.98)),
    rgba(3, 3, 7, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 30px 76px rgba(0, 0, 0, 0.34),
    0 0 46px rgba(122, 216, 255, 0.06);
}

.preportal-page--travessia .funnel-vsl-card::before {
  content: "TRANSMISSAO PRESERVADA";
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  padding: 4px 7px;
  border: 1px solid rgba(178, 45, 45, 0.34);
  color: rgba(231, 82, 69, 0.56);
  background: rgba(2, 2, 5, 0.6);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  pointer-events: none;
}

.preportal-page--travessia .funnel-vsl-card > .travessia-collage-note {
  position: absolute;
  z-index: 5;
  top: 44px;
  left: 16px;
  max-width: min(260px, calc(100% - 32px));
  pointer-events: none;
}

.preportal-page--travessia .funnel-vsl-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 10px;
  border: 1px solid rgba(122, 216, 255, 0.045);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, rgba(211, 167, 90, 0.016) 0 1px, transparent 1px 32px),
    linear-gradient(90deg, rgba(122, 216, 255, 0.028), transparent 18%, transparent 82%, rgba(211, 167, 90, 0.025));
  opacity: 0.74;
  pointer-events: none;
}

.preportal-page--travessia .funnel-vsl-card--offer {
  border-color: rgba(211, 167, 90, 0.22);
  background:
    linear-gradient(90deg, rgba(35, 22, 8, 0.86), rgba(3, 3, 6, 0.96)),
    rgba(3, 3, 6, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(242, 205, 132, 0.12),
    0 38px 96px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(211, 167, 90, 0.08);
}

.preportal-page--travessia .funnel-vsl-card--offer::before {
  content: "REGISTRO FINAL";
  border-color: rgba(211, 167, 90, 0.34);
  color: rgba(211, 167, 90, 0.62);
}

.preportal-page--travessia .funnel-vsl-stage {
  position: relative;
  z-index: 2;
  border-radius: 0;
  border: 1px solid rgba(122, 216, 255, 0.08);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(122, 216, 255, 0.04), transparent 52%),
    linear-gradient(180deg, rgba(4, 7, 12, 0.96), rgba(0, 0, 0, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035),
    0 24px 68px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.preportal-page--travessia .funnel-vsl-stage::before {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 12px),
    linear-gradient(90deg, rgba(4, 3, 7, 0.42), transparent 18%, transparent 82%, rgba(4, 3, 7, 0.38)),
    linear-gradient(180deg, rgba(4, 3, 7, 0.2), transparent 38%, rgba(4, 3, 7, 0.32));
  opacity: 0.68;
}

.preportal-page--travessia .funnel-vsl-stage::after {
  box-shadow:
    inset 0 0 0 1px rgba(122, 216, 255, 0.04),
    inset 0 0 100px rgba(0, 0, 0, 0.56);
}

.preportal-page--travessia .funnel-vsl-copy {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    rgba(0, 0, 0, 0.2);
}

.preportal-page--travessia .funnel-vsl-copy::before {
  content: "ACESSO RESTRITO";
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 3px 6px;
  border: 1px solid rgba(211, 167, 90, 0.24);
  color: rgba(211, 167, 90, 0.5);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(1.4deg);
  pointer-events: none;
}

.preportal-page--travessia .travessia-official__descent {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
}

.preportal-page--travessia .travessia-official__chapter,
.preportal-page--travessia .travessia-official__pillars,
.preportal-page--travessia .travessia-official__quote,
.preportal-page--travessia .funnel-travessia-bridge,
.preportal-page--travessia .travessia-official__access {
  position: relative;
  z-index: 2;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(122, 216, 255, 0.055), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 32%),
    rgba(3, 3, 7, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 26px 62px rgba(0, 0, 0, 0.28);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.preportal-page--travessia .travessia-official__chapter::before,
.preportal-page--travessia .travessia-official__pillars::before,
.preportal-page--travessia .travessia-official__access::before {
  content: "DOSSIÊ";
  position: absolute;
  right: 16px;
  top: 14px;
  padding: 3px 6px;
  border: 1px solid rgba(211, 167, 90, 0.2);
  color: rgba(211, 167, 90, 0.42);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}

.preportal-page--travessia .travessia-official__chapter:hover,
.preportal-page--travessia .travessia-official__pillars:hover,
.preportal-page--travessia .travessia-official__quote:hover,
.preportal-page--travessia .funnel-travessia-bridge:hover,
.preportal-page--travessia .travessia-official__access:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 216, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 72px rgba(0, 0, 0, 0.34),
    0 0 36px rgba(122, 216, 255, 0.055);
}

.preportal-page--travessia .travessia-official__chapter:nth-child(odd),
.preportal-page--travessia .travessia-official__pillars {
  width: min(820px, 94%);
  justify-self: start;
}

.preportal-page--travessia .travessia-official__chapter:nth-child(even),
.preportal-page--travessia .travessia-official__quote,
.preportal-page--travessia .travessia-official__access {
  width: min(820px, 94%);
  justify-self: end;
}

.preportal-page--travessia .travessia-official__quote {
  margin: 0;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(211, 167, 90, 0.2);
}

.preportal-page--travessia .funnel-travessia-bridge {
  margin: 0 auto;
  width: min(840px, 96%);
  border-color: rgba(211, 167, 90, 0.34);
  background:
    radial-gradient(ellipse at 74% 38%, rgba(211, 167, 90, 0.14), transparent 18rem),
    linear-gradient(90deg, rgba(2, 2, 4, 0.94), rgba(34, 22, 12, 0.9));
}

.preportal-page--travessia .funnel-cta {
  width: min(900px, 96%);
  margin: 0 auto;
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.44);
  background:
    radial-gradient(ellipse at 72% 18%, rgba(211, 167, 90, 0.13), transparent 17rem),
    linear-gradient(180deg, rgba(211, 167, 90, 0.1), transparent 28%),
    rgba(3, 3, 5, 0.94);
  box-shadow:
    0 34px 86px rgba(0, 0, 0, 0.42),
    0 0 46px rgba(211, 167, 90, 0.13);
}

.preportal-page--travessia .funnel-cta::before {
  content: "ACESSO AUTORIZADO";
  position: absolute;
  right: clamp(16px, 3vw, 28px);
  top: clamp(14px, 2.4vw, 22px);
  z-index: 1;
  padding: 4px 7px;
  border: 1px solid rgba(211, 167, 90, 0.32);
  color: rgba(211, 167, 90, 0.56);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(1.6deg);
  pointer-events: none;
}

.preportal-page--travessia .travessia-official__chapter--attention {
  background:
    radial-gradient(ellipse at 24% 10%, rgba(88, 126, 214, 0.22), transparent 16rem),
    linear-gradient(180deg, rgba(16, 22, 39, 0.94), rgba(9, 13, 24, 0.88));
  color: #f2f0e9;
}

.preportal-page--travessia .travessia-official__chapter--rupture {
  background:
    radial-gradient(ellipse at 72% 12%, rgba(55, 195, 218, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(9, 36, 44, 0.9), rgba(5, 13, 19, 0.92));
  color: #f2f0e9;
}

.preportal-page--travessia .travessia-official__pillars {
  background:
    radial-gradient(circle at 86% 12%, rgba(48, 213, 230, 0.18), transparent 13rem),
    rgba(1, 8, 12, 0.96);
  color: #42d9ea;
}

.preportal-page--travessia .travessia-official__offer-prologue {
  background:
    radial-gradient(ellipse at 86% 30%, rgba(211, 167, 90, 0.12), transparent 15rem),
    linear-gradient(90deg, rgba(52, 24, 48, 0.88), rgba(32, 22, 16, 0.95));
  color: #f4eee6;
  box-shadow:
    0 28px 74px rgba(0, 0, 0, 0.32),
    0 0 34px rgba(211, 167, 90, 0.08);
}

.preportal-page--travessia .travessia-collage-note,
.preportal-page--travessia .travessia-archive-seal,
.preportal-page--travessia .travessia-last-permission {
  width: fit-content;
  max-width: min(260px, 78%);
  padding: 5px 8px;
  border: 1px solid rgba(6, 12, 18, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(218, 222, 220, 0.82)),
    rgba(230, 236, 240, 0.82);
  color: rgba(5, 10, 16, 0.82);
  font-size: 0.58rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.preportal-page--travessia .travessia-collage-note:hover,
.preportal-page--travessia .travessia-archive-seal:hover,
.preportal-page--travessia .travessia-last-permission:hover {
  transform: translateY(-1px) rotate(-0.6deg);
  filter: contrast(1.08);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.preportal-page--travessia .travessia-found-sheet,
.preportal-page--travessia .travessia-manifest-scrap,
.preportal-page--travessia .travessia-proof-slip {
  width: fit-content;
  max-width: min(300px, 88%);
  padding: 10px 12px;
  border: 1px solid rgba(20, 18, 15, 0.16);
  background: rgba(235, 230, 218, 0.9);
  color: #080808;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transform: rotate(-1.2deg);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.preportal-page--travessia .travessia-found-sheet:hover,
.preportal-page--travessia .travessia-manifest-scrap:hover,
.preportal-page--travessia .travessia-proof-slip:hover {
  transform: translateY(-2px) rotate(-0.8deg);
  filter: contrast(1.06);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(211, 167, 90, 0.08);
}

.preportal-page--travessia .travessia-found-sheet strong,
.preportal-page--travessia .travessia-manifest-scrap strong,
.preportal-page--travessia .travessia-proof-slip strong {
  display: block;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.preportal-page--travessia .travessia-white-threshold {
  position: relative;
  z-index: 3;
  width: min(540px, 94%);
  margin: clamp(-8px, -1vw, -4px) auto;
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  gap: 8px;
  background: rgba(234, 229, 218, 0.94);
  color: #090909;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(255, 255, 255, 0.08);
  transform: rotate(-1deg);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease;
}

.preportal-page--travessia .travessia-white-threshold:hover {
  transform: translateY(-2px) rotate(-0.6deg);
  box-shadow:
    0 28px 66px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(211, 167, 90, 0.12);
}

.preportal-page--travessia .travessia-white-threshold strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  line-height: 0.95;
}

.preportal-page--travessia .travessia-pink-environment {
  position: relative;
  z-index: 2;
  width: min(860px, 96%);
  min-height: clamp(220px, 38vw, 360px);
  margin: 0 auto clamp(-8px, -1vw, -4px);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(255, 222, 242, 0.22), transparent 20rem),
    linear-gradient(180deg, rgba(196, 103, 160, 0.82), rgba(69, 36, 61, 0.88));
  box-shadow:
    inset 0 -36px 88px rgba(0, 0, 0, 0.3),
    0 30px 78px rgba(0, 0, 0, 0.32);
}

.preportal-page--travessia .travessia-pink-environment::after {
  content: "";
  position: absolute;
  inset: auto 10% -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 214, 235, 0.32), transparent);
  pointer-events: none;
}

.preportal-page--travessia .travessia-pink-environment__fog,
.preportal-page--travessia .travessia-pink-environment__desk {
  position: absolute;
  pointer-events: none;
}

.preportal-page--travessia .travessia-pink-environment__fog {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255, 236, 250, 0.22), transparent 34%),
    radial-gradient(ellipse at 50% 90%, rgba(31, 10, 25, 0.52), transparent 38%);
  filter: blur(10px);
}

.preportal-page--travessia .travessia-pink-environment__desk {
  left: 10%;
  right: 10%;
  bottom: -16%;
  height: 42%;
  background: linear-gradient(180deg, rgba(19, 8, 15, 0.72), rgba(2, 2, 5, 0.94));
  transform: skewY(-2deg);
}

.preportal-page--travessia .travessia-pink-environment__terminal {
  position: relative;
  z-index: 1;
  padding: 18px 24px;
  background: rgba(20, 11, 23, 0.92);
  color: #f1eaf2;
  transform: rotate(-1.5deg);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

.preportal-page--travessia .travessia-pink-environment__terminal strong {
  display: block;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.preportal-page--travessia .travessia-pink-environment__record {
  position: absolute;
  left: 8%;
  top: 10%;
  z-index: 1;
  color: rgba(255, 241, 248, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preportal-page--travessia .recovered-archives {
  position: relative;
  z-index: 3;
  width: min(860px, 96%);
  margin: 0 auto clamp(-8px, -1vw, -4px);
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(116, 213, 227, 0.24);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(75, 213, 231, 0.2), transparent 18rem),
    radial-gradient(ellipse at 14% 90%, rgba(178, 45, 45, 0.095), transparent 15rem),
    linear-gradient(90deg, rgba(178, 45, 45, 0.05), transparent 16%, transparent 84%, rgba(116, 213, 227, 0.045)),
    linear-gradient(135deg, rgba(2, 8, 13, 0.96), rgba(7, 3, 10, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.052),
    0 40px 102px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(28, 183, 210, 0.1);
}

.preportal-page--travessia .recovered-archives::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(116, 213, 227, 0.1);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(90deg, rgba(116, 213, 227, 0.025) 0 1px, transparent 1px 46px),
    linear-gradient(90deg, rgba(116, 213, 227, 0.055), transparent 22%, transparent 78%, rgba(116, 213, 227, 0.04));
  pointer-events: none;
}

.preportal-page--travessia .recovered-archives::after {
  content: "RECUPERADO";
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  top: clamp(18px, 4vw, 42px);
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(178, 45, 45, 0.5);
  color: rgba(231, 82, 69, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(3deg);
  pointer-events: none;
}

.preportal-page--travessia .recovered-archives__gate::after {
  content: "REGISTRO PRESERVADO";
  position: absolute;
  left: min(100%, 360px);
  top: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(178, 45, 45, 0.34);
  color: rgba(231, 82, 69, 0.52);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  pointer-events: none;
}

.preportal-page--travessia .recovered-archives__gate {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.preportal-page--travessia .recovered-archives__gate h3 {
  margin: 8px 0 18px;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  color: #42d9ea;
  text-transform: uppercase;
  text-shadow:
    0 18px 44px rgba(0, 0, 0, 0.78),
    0 0 26px rgba(66, 217, 234, 0.18);
  transition:
    transform 180ms ease,
    filter 180ms ease,
    text-shadow 180ms ease;
}

.preportal-page--travessia .recovered-archives__gate h3:hover {
  transform: none;
  filter: none;
  text-shadow:
    0 18px 44px rgba(0, 0, 0, 0.78),
    0 0 26px rgba(66, 217, 234, 0.18);
}

.preportal-page--travessia .recovered-archives__gate p {
  max-width: 34rem;
  margin: 0 0 4px;
  color: rgba(244, 251, 252, 0.82);
}

.preportal-page--travessia .recovered-archives__lead {
  margin: 0 0 14px;
  color: #f4d596;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.preportal-page--travessia .recovered-archives__enter {
  position: relative;
  margin-top: clamp(22px, 4vw, 38px);
  padding: 18px 20px 17px;
  border: 1px solid rgba(116, 213, 227, 0.68);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(116, 213, 227, 0.32), transparent 11rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%),
    linear-gradient(90deg, rgba(38, 149, 174, 0.42), rgba(4, 8, 13, 0.86)),
    rgba(4, 8, 13, 0.88);
  color: #f5f1e8;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 28px 76px rgba(28, 183, 210, 0.22),
    0 0 0 1px rgba(116, 213, 227, 0.08);
}

.preportal-page--travessia .recovered-archives__enter::before {
  content: "PONTO DE ACESSO";
  position: absolute;
  left: 14px;
  top: -10px;
  padding: 2px 6px;
  background: rgba(4, 8, 13, 0.94);
  color: rgba(116, 213, 227, 0.72);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
}

.preportal-page--travessia .recovered-archives__enter::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 213, 227, 0.74), transparent);
  opacity: 0.72;
}

.preportal-page--travessia .recovered-archives__enter:hover,
.preportal-page--travessia .recovered-archives__enter:focus-visible {
  border-color: rgba(116, 213, 227, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 30px 78px rgba(28, 183, 210, 0.25),
    0 0 0 1px rgba(116, 213, 227, 0.12);
}

.preportal-page--travessia .recovered-archives__files,
.recovered-archives__screen .recovered-archives__files {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.preportal-page--travessia .recovered-archives__file,
.recovered-archives__screen .recovered-archives__file {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(116, 213, 227, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 44%),
    linear-gradient(90deg, rgba(116, 213, 227, 0.045), transparent 38%),
    rgba(3, 9, 13, 0.76);
  color: #f5f1e8;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.preportal-page--travessia .recovered-archives__file span,
.preportal-page--travessia .recovered-archives__file strong,
.recovered-archives__screen .recovered-archives__file span,
.recovered-archives__screen .recovered-archives__file strong {
  display: block;
}

.preportal-page--travessia .recovered-archives__file span,
.recovered-archives__screen .recovered-archives__file span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preportal-page--travessia .recovered-archives__file strong,
.recovered-archives__screen .recovered-archives__file strong {
  margin-top: 18px;
  font-size: 1rem;
}

.preportal-page--travessia .recovered-archives__file:not(:disabled):hover,
.preportal-page--travessia .recovered-archives__file:not(:disabled):focus-visible,
.recovered-archives__screen .recovered-archives__file:not(:disabled):hover,
.recovered-archives__screen .recovered-archives__file:not(:disabled):focus-visible {
  border-color: rgba(116, 213, 227, 0.62);
  box-shadow: 0 18px 46px rgba(28, 183, 210, 0.16);
  filter: brightness(1.08);
}

.preportal-page--travessia .recovered-archives__file--locked,
.recovered-archives__screen .recovered-archives__file--locked {
  color: rgba(245, 241, 232, 0.55);
  cursor: not-allowed;
  filter: saturate(0.84);
}

.preportal-page--travessia .recovered-archives__file--complete,
.recovered-archives__screen .recovered-archives__file--complete {
  border-color: rgba(211, 167, 90, 0.45);
  color: #f4d596;
}

.recovered-archives__screen[hidden] {
  display: none;
}

.recovered-archives__screen {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(10px, 2.2vh, 22px) clamp(14px, 3vw, 34px);
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 14px),
    radial-gradient(ellipse at 50% 18%, rgba(50, 204, 222, 0.14), transparent 26rem),
    rgba(1, 2, 5, 0.96);
}

.recovered-archives__screen::before,
.recovered-archives__screen::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(116, 213, 227, 0.18);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

.recovered-archives__screen::before {
  content: "ARQUIVO RECUPERADO";
  left: clamp(12px, 4vw, 54px);
  writing-mode: vertical-rl;
}

.recovered-archives__screen::after {
  content: "PSEU / TRANSMISSAO PRESERVADA";
  right: clamp(12px, 4vw, 54px);
  writing-mode: vertical-rl;
}

.recovered-archives__stage {
  position: relative;
  width: min(980px, calc(100vw - 28px));
  height: min(920px, calc(100dvh - clamp(20px, 4.4vh, 44px)));
  min-height: 0;
  display: grid;
  justify-items: center;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: center;
  gap: clamp(4px, 1vh, 8px);
  color: #f6f1e8;
}

.recovered-archives__status {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(116, 213, 227, 0.82);
  text-transform: uppercase;
}

.recovered-archives__stage h4 {
  margin: 0;
  font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.recovered-archives__frame {
  width: min(820px, 100%);
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(140px, 174px) minmax(0, 430px);
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
}

.recovered-archives__transmission {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
}

.recovered-archives__transmission::before {
  content: "";
  position: absolute;
  inset: -18px -22px;
  border: 1px solid rgba(116, 213, 227, 0.12);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(116, 213, 227, 0.14), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.recovered-archives__transmission::after {
  content: "TRANSMISSAO PRESERVADA";
  position: absolute;
  left: -28px;
  bottom: clamp(10px, 3vh, 22px);
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(178, 45, 45, 0.36);
  color: rgba(231, 82, 69, 0.58);
  background: rgba(4, 5, 8, 0.64);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  pointer-events: none;
}

.recovered-archives__video {
  position: relative;
  z-index: 3;
  width: auto;
  height: min(100%, 82dvh, 780px);
  max-width: min(100%, 430px, 88vw);
  max-height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border: 1px solid rgba(116, 213, 227, 0.28);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
}

.recovered-archives__video:fullscreen,
.recovered-archives__video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
  border: 0;
  box-shadow: none;
}

.recovered-archives__notice {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(12px, 3vh, 28px);
  width: min(340px, 86%);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(211, 167, 90, 0.32);
  background: rgba(7, 5, 4, 0.82);
  color: rgba(244, 213, 150, 0.94);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.recovered-archives__notice[hidden] {
  display: none;
}

.recovered-archives__close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 3, 7, 0.72);
  color: rgba(246, 241, 232, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

body.is-recovered-archive-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .preportal-page--travessia .editorial-threshold--travessia {
    min-height: 460px;
    padding: 22px;
  }

  .preportal-page--travessia .travessia-official__flow::before {
    left: 18px;
  }

  .preportal-page--travessia .travessia-investigation-thread {
    left: auto;
    right: 4px;
    top: clamp(620px, 116vw, 760px);
    bottom: 150px;
    width: 28px;
    opacity: 0.48;
    z-index: 0;
  }

  .preportal-page--travessia .travessia-investigation-thread__line {
    right: 4px;
    width: 2px;
  }

  .preportal-page--travessia .travessia-investigation-thread i {
    right: -2px;
  }

  .preportal-page--travessia .travessia-investigation-thread i::before {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
  }

  .preportal-page--travessia .travessia-investigation-thread i::after {
    display: block;
    width: min(var(--branch-length, 56px), 18px);
    height: 2px;
    opacity: 0.52;
  }

  .preportal-page--travessia .travessia-investigation-thread b {
    display: none;
  }

  .preportal-page--travessia .travessia-thread-anchor {
    right: -2px;
    width: 20px;
    height: 20px;
    opacity: 0.64;
  }

  .preportal-page--travessia .travessia-thread-anchor::after {
    left: 16px;
    width: min(var(--anchor-branch-length, 24px), 18px);
    height: 2px;
    opacity: 0.56;
  }

  .preportal-page--travessia .travessia-thread-anchor em {
    display: none;
  }

  .preportal-page--travessia .travessia-official__chapter:nth-child(odd),
  .preportal-page--travessia .travessia-official__chapter:nth-child(even),
  .preportal-page--travessia .travessia-official__pillars,
  .preportal-page--travessia .travessia-official__quote,
  .preportal-page--travessia .travessia-official__access {
    width: 100%;
    justify-self: stretch;
  }

  .preportal-page--travessia .recovered-archives {
    width: 100%;
    padding: 20px;
  }

  .preportal-page--travessia .recovered-archives__files {
    grid-template-columns: 1fr;
  }

  .recovered-archives__screen {
    padding: 10px;
  }

  .recovered-archives__screen::before,
  .recovered-archives__screen::after {
    display: none;
  }

  .recovered-archives__transmission::after {
    left: 8px;
    bottom: 8px;
    font-size: 0.48rem;
  }

  .recovered-archives__stage {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 5px;
  }

  .recovered-archives__status {
    display: none;
  }

  .recovered-archives__stage h4 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .recovered-archives__frame {
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .recovered-archives__files {
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recovered-archives__transmission {
    order: 1;
  }

  .recovered-archives__file {
    min-height: 46px;
    padding: 8px;
  }

  .recovered-archives__file span {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }

  .recovered-archives__file strong {
    margin-top: 5px;
    font-size: 0.72rem;
  }

  .recovered-archives__video {
    width: auto;
    height: min(58dvh, 540px);
    max-width: min(96vw, 360px);
    max-height: 100%;
  }
}

.reader-layout {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.06), transparent 28%),
    rgba(2, 2, 5, 0.72);
  backdrop-filter: blur(20px);
}

.reader-layout.is-open {
  display: grid;
}

.reader-layout::before,
.reader-layout::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.reader-layout::before {
  background:
    radial-gradient(circle at 20% 24%, var(--reader-ambient-a, rgba(141, 92, 255, 0.22)), transparent 26%),
    radial-gradient(circle at 78% 20%, var(--reader-ambient-b, rgba(65, 215, 199, 0.16)), transparent 24%),
    radial-gradient(circle at 50% 82%, var(--reader-ambient-c, rgba(211, 167, 90, 0.12)), transparent 28%);
  filter: blur(22px);
  opacity: 0.9;
}

.reader-layout::after {
  background-image: var(--reader-ambient-image, none);
  background-size: cover;
  background-position: center;
  filter: blur(72px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.26;
  mix-blend-mode: screen;
}

.reader-shell {
  position: relative;
  width: min(100%, 1360px);
  max-height: min(92vh, 980px);
  padding: clamp(16px, 2vw, 26px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 12%),
    rgba(5, 5, 8, 0.72);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  display: grid;
  gap: 16px;
  grid-template-rows: minmax(0, 1fr);
}

.reader-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 22rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.03));
  opacity: 0.72;
  pointer-events: none;
}

.reader-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.reader-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.reader-kpis > div {
  min-width: 118px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 4px;
}

.reader-kpis span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.reader-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.chapter-rail,
.image-rail {
  display: none;
}

.rail-heading {
  display: grid;
  gap: 4px;
}

.rail-heading strong {
  font-size: 1rem;
}

.chapter-list {
  display: grid;
  gap: 10px;
}

.chapter-item {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  color: #fff;
  display: grid;
  gap: 6px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.chapter-item:hover,
.chapter-item.is-active {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(141, 92, 255, 0.22), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.chapter-item__index {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.chapter-item__title {
  font-weight: 700;
  line-height: 1.1;
}

.chapter-item__meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.reader-canvas {
  min-width: 0;
  display: grid;
  gap: 12px;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.reader-frame {
  position: relative;
  overflow: hidden;
  min-height: 860px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 24rem),
    rgba(4, 4, 7, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition:
    transform 0.36s ease,
    box-shadow 0.36s ease,
    filter 0.36s ease;
}

.reader-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 860px;
  border: 0;
  background: #050507;
  transition: opacity 0.26s ease;
}

.reader-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 12%),
    radial-gradient(circle at 50% 0%, rgba(141, 92, 255, 0.16), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(67, 215, 199, 0.08), transparent 42%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.72;
}

.reader-frame.is-turning {
  transform: scale(0.996);
  filter: saturate(0.98) contrast(0.98);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px rgba(0, 0, 0, 0.28);
}

.reader-frame--paged {
  padding: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 24rem),
    rgba(4, 4, 7, 0.98);
}

.reader-page-shell {
  position: relative;
  min-height: 820px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 16%),
    rgba(4, 4, 7, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.reader-page-shell__glow {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 50% 12%, rgba(141, 92, 255, 0.18), transparent 30%),
    radial-gradient(circle at 50% 88%, rgba(211, 167, 90, 0.08), transparent 32%);
  filter: blur(26px);
  pointer-events: none;
}

.reader-page-shell__meta {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.reader-page-shell__meta span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.reader-page-shell__meta strong {
  font-size: 0.96rem;
  font-weight: 600;
  text-align: right;
  max-width: 58%;
}

.reader-page-media,
.reader-page-pdf {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 820px;
  object-fit: contain;
  object-position: top center;
  display: block;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  border: 0;
  background: #050507;
}

.reader-page-shell__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34%);
  mix-blend-mode: screen;
}

body[data-reader-book="despertar"] .reader-page-shell__glow {
  background:
    radial-gradient(circle at 50% 14%, rgba(211, 167, 90, 0.18), transparent 30%),
    radial-gradient(circle at 50% 84%, rgba(141, 92, 255, 0.1), transparent 34%);
}

body[data-reader-book="historico"] .reader-page-shell__glow {
  background:
    radial-gradient(circle at 50% 14%, rgba(65, 215, 199, 0.16), transparent 30%),
    radial-gradient(circle at 50% 84%, rgba(217, 110, 168, 0.08), transparent 34%);
}

.page-strip {
  display: none;
}

.page-strip__item {
  min-height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 45%),
    rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: left;
  padding: 12px;
  display: grid;
  align-content: end;
  gap: 6px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.page-strip__item:hover,
.page-strip__item.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.page-strip__label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-strip__title {
  font-size: 0.88rem;
  line-height: 1.2;
}

.page-strip__meta {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-reader-book="despertar"] .reader-frame::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 12%),
    radial-gradient(circle at 50% 0%, rgba(211, 167, 90, 0.16), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(141, 92, 255, 0.1), transparent 42%);
}

body[data-reader-book="historico"] .reader-frame::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 12%),
    radial-gradient(circle at 50% 0%, rgba(65, 215, 199, 0.14), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(217, 110, 168, 0.08), transparent 42%);
}

.reader-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.reader-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.026);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
}

.reader-close {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.032);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.reader-close:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.reader-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.reader-caption {
  text-align: left;
}

.image-stack {
  display: grid;
  gap: 12px;
}

.image-card {
  position: relative;
  min-height: 124px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.04);
}

.image-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 8, 0.1), rgba(5, 5, 8, 0.52)),
    radial-gradient(circle at 50% 50%, rgba(141, 92, 255, 0.16), transparent 42%);
}

.image-card__copy {
  position: absolute;
  inset: auto 0 0;
  padding: 12px 14px 14px;
  display: grid;
  gap: 4px;
}

.image-card__copy strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.section-block--compact {
  padding-bottom: 8px;
}

.journey-banner p {
  max-width: 520px;
}

.reader-book {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.07), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(4, 4, 7, 0.94);
  box-shadow: var(--shadow);
}

.reader-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(141, 92, 255, 0.08), transparent 40%),
    radial-gradient(circle at 50% 0%, rgba(211, 167, 90, 0.06), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(65, 215, 199, 0.06), transparent 34%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.8;
}

.reader-book__chrome,
.reader-book__stage,
.reader-footer {
  position: relative;
  z-index: 1;
}

.reader-book__chrome {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.reader-book__meta {
  display: grid;
  gap: 8px;
  max-width: 52rem;
}

.reader-book__meta h3 {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  line-height: 1;
}

.reader-book__meta p {
  max-width: 46rem;
  color: var(--muted);
}

.reader-book__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reader-page-chip {
  min-width: 168px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 4px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.reader-page-chip span {
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader-page-chip small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reader-book__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.12fr);
  gap: 18px;
  min-width: 0;
  align-items: stretch;
  isolation: isolate;
}

.reader-book__ambient {
  position: absolute;
  inset: 12% 6%;
  background:
    radial-gradient(circle at 38% 40%, rgba(141, 92, 255, 0.12), transparent 42%),
    radial-gradient(circle at 65% 55%, rgba(211, 167, 90, 0.08), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(65, 215, 199, 0.08), transparent 52%);
  filter: blur(30px);
  pointer-events: none;
  opacity: 0.85;
}

.reader-book__spine {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 50%;
  width: 8px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 28px rgba(141, 92, 255, 0.18);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.7;
}

.reader-book__stage[data-turn="backward"] .reader-page-shell--main {
  --reader-page-shift: -10px;
}

.reader-book__stage[data-turn="forward"] .reader-page-shell--main {
  --reader-page-shift: 10px;
}

.reader-page-shell {
  min-height: 660px;
  transition:
    transform 0.34s ease,
    opacity 0.34s ease,
    filter 0.34s ease,
    box-shadow 0.34s ease;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 14%),
    rgba(4, 4, 7, 0.84);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.reader-page-shell--main {
  transform: translateX(var(--reader-page-shift, 0px));
}

.reader-page-shell--ghost {
  transform: translateY(28px) scale(0.93);
  opacity: 0.72;
  filter: saturate(0.9) contrast(0.92);
}

.reader-book__stage.is-turning .reader-page-shell {
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.reader-page-media,
.reader-page-pdf {
  pointer-events: none;
  min-height: 100%;
  min-height: 660px;
  filter: brightness(0.98) contrast(1.02);
}

.reader-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-inline: 4px;
}

.reader-footer__hint {
  justify-self: end;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader-caption {
  text-align: left;
}

.reader-arrow {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.reader-arrow:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.reader-arrow:active {
  transform: scale(0.98);
}

.reader-arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

[data-reader-book-stage] {
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

[data-reader-book-stage]:active {
  cursor: grabbing;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

body[data-theme="awakening"] .act-pill.is-active,
body[data-theme="awakening"] .button--primary,
body[data-theme="awakening"] .progress-bar i {
  background: linear-gradient(90deg, rgba(141, 92, 255, 0.96), rgba(122, 216, 255, 0.76));
}

body[data-theme="fracture"] .act-pill.is-active,
body[data-theme="fracture"] .button--primary,
body[data-theme="fracture"] .progress-bar i {
  background: linear-gradient(90deg, rgba(217, 110, 168, 0.96), rgba(211, 167, 90, 0.8));
}

body[data-theme="structure"] .act-pill.is-active,
body[data-theme="structure"] .button--primary,
body[data-theme="structure"] .progress-bar i {
  background: linear-gradient(90deg, rgba(65, 215, 199, 0.96), rgba(141, 92, 255, 0.8));
}

body[data-theme="revelation"] .act-pill.is-active,
body[data-theme="revelation"] .button--primary,
body[data-theme="revelation"] .progress-bar i {
  background: linear-gradient(90deg, rgba(211, 167, 90, 0.96), rgba(122, 216, 255, 0.78));
}

body.is-reader-open {
  overflow: hidden;
}

@media (max-width: 1400px) {
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reader-book__stage {
    grid-template-columns: minmax(240px, 0.52fr) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .preportal-stage {
    grid-template-columns: 1fr;
  }

  .preportal-call__cover {
    max-width: 100%;
    margin-left: 0;
    width: min(100%, 340px);
  }

  .preportal-page__actions {
    justify-content: flex-start;
  }

  .sidebar,
  body.is-portal-ready .sidebar {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: calc(12px + env(safe-area-inset-left));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(86vw, 320px);
    min-height: 0;
    z-index: 80;
    transform: translateX(-112%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.28s ease,
      opacity 0.28s ease;
  }

  body.is-sidebar-open .sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar::before {
    border-radius: inherit;
  }

  .sidebar-close {
    display: grid;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
  }

  .mobile-menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
  }

  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 75;
    background: rgba(2, 2, 5, 0.46);
    backdrop-filter: blur(10px);
  }

  .mobile-drawer-backdrop[hidden] {
    display: none;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
    gap: 10px;
    padding: 12px 12px;
    top: calc(12px + env(safe-area-inset-top));
  }

  .topbar-identity,
  .profile-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

  .app-shell .hero-stage,
  .app-shell .spotlight-card__content {
    grid-template-columns: 1fr;
  }

  .operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-panel--mission {
    grid-column: 1 / -1;
  }

  .spotlight-card,
  .section-heading,
  .journey-banner,
  .reader-shell {
    backdrop-filter: blur(14px);
  }

  .reader-grid {
    grid-template-columns: 1fr;
  }

  .reader-book {
    padding: 18px;
  }

  .reader-book__chrome {
    flex-direction: column;
    align-items: stretch;
  }

  .reader-book__controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .reader-book__stage {
    grid-template-columns: 1fr;
  }

  .funnel-grid,
  .funnel-vsl-grid,
  .funnel-cta {
    grid-template-columns: 1fr;
  }

  .funnel-vsl-card {
    grid-template-columns: 1fr;
  }

  .funnel-vsl-stage {
    min-height: 320px;
  }

  .reader-page-shell--ghost {
    display: none;
  }

  .reader-book__spine {
    display: none;
  }

  .reader-page-shell,
  .reader-page-media,
  .reader-page-pdf {
    min-height: 640px;
  }

  .reader-page-shell--ghost {
    transform: none;
    opacity: 0.9;
  }

  .reader-footer {
    grid-template-columns: 1fr;
  }

  .reader-footer__hint {
    justify-self: start;
  }

  .page-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .app-shell {
    padding:
      calc(12px + env(safe-area-inset-top))
      calc(12px + env(safe-area-inset-right))
      calc(12px + env(safe-area-inset-bottom))
      calc(12px + env(safe-area-inset-left));
    gap: 12px;
  }

  .portal-boot-overlay {
    padding: 16px;
  }

  .portal-boot-overlay__frame {
    padding: 18px;
  }

  .portal-boot-overlay__sequence span {
    min-height: 24px;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .ops-ribbon,
  .spotlight-operational-strip {
    gap: 6px;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .ops-ribbon span,
  .spotlight-operational-strip span {
    min-height: 22px;
    padding-inline: 7px;
  }

  .sidebar,
  .topbar,
  .spotlight-card,
  .section-heading,
  .reader-shell {
    border-radius: 20px;
  }

  .spotlight-card__content {
    grid-template-columns: 1fr;
  }

  .spotlight-cover {
    justify-self: start;
    width: min(100%, 220px);
  }

  .signal-card__seal,
  .operation-panel__seal {
    position: static;
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .page-glow {
    width: 22rem;
    height: 22rem;
    filter: blur(80px);
    opacity: 0.18;
  }

  .page-noise {
    opacity: 0.05;
  }

  .sidebar,
  .topbar,
  .spotlight-card,
  .section-heading,
  .journey-banner,
  .signal-card,
  .library-tile {
    backdrop-filter: blur(14px);
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-tile--featured,
  .app-shell .library-tile--key-final {
    grid-column: auto;
  }

  .section-heading,
  .journey-banner,
  .reader-topline {
    align-items: start;
    flex-direction: column;
  }

  .reader-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .reader-layout {
    padding:
      calc(10px + env(safe-area-inset-top))
      calc(10px + env(safe-area-inset-right))
      calc(10px + env(safe-area-inset-bottom))
      calc(10px + env(safe-area-inset-left));
    backdrop-filter: blur(14px);
  }

  .reader-layout::before {
    filter: blur(18px);
    opacity: 0.72;
  }

  .reader-layout::after {
    filter: blur(36px) saturate(1.04);
    opacity: 0.12;
  }

  .reader-content,
  .reader-shell {
    height: min(94vh, 1000px);
    padding: 12px;
  }

  .reader-hud__panel {
    width: min(100%, calc(100vw - 72px));
    gap: 10px;
    padding: 9px 12px;
  }

  .reader-hud__meta {
    min-width: 0;
  }

  .reader-book {
    width: min(100%, 100%);
    transform: none;
  }

  .reader-book__spread {
    width: min(100%, 100%);
  }

  .reader-page-shell {
    min-height: clamp(540px, 72vh, 760px);
  }
}

@media (max-width: 540px) {
  .page-glow {
    width: 16rem;
    height: 16rem;
    filter: blur(64px);
    opacity: 0.12;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .operation-grid {
    grid-template-columns: 1fr;
  }

  .recent-accesses__list {
    grid-template-columns: 1fr;
  }

  .operation-panel--mission {
    grid-column: auto;
  }

  .operation-panel {
    min-height: 0;
    padding: 16px;
  }

  .my-records-toolbar {
    grid-template-columns: 1fr;
  }

  .personal-archive__copy strong,
  .observer-entry__copy strong,
  .my-record__copy strong {
    white-space: normal;
  }

  .reader-hud__panel {
    max-width: calc(100vw - 58px);
  }

  .reader-hud__meta {
    max-width: 96px;
  }

  .funnel-books {
    grid-template-columns: 1fr;
  }

  .library-tile--featured,
  .app-shell .library-tile--key-final {
    grid-column: auto;
  }

  .signal-card {
    min-height: 92px;
  }

  .reader-page-shell {
    min-height: clamp(500px, 68vh, 680px);
  }

  .reader-page-media,
  .reader-page-pdf {
    min-height: clamp(500px, 68vh, 680px);
  }

  .reader-page-shell--ghost {
    opacity: 0.88;
  }

  .page-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-book__cover,
  .reader-book__spread {
    inset: 0;
  }

  .reader-hud {
    flex-direction: column;
  }

  .reader-hud__panel {
    width: 100%;
    justify-content: space-between;
  }

  .funnel-card,
  .funnel-vsl-copy,
  .funnel-cta {
    padding: 18px;
  }

  .reader-page-fallback {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .preportal,
  .app-shell {
    width: 100%;
    padding: 12px;
  }

  .preportal-page {
    min-height: calc(100svh - 24px);
    padding: 14px;
    border-radius: 20px;
  }

  .preportal-page__heading {
    margin-bottom: 0;
  }
}

body.is-reader-open {
  overflow: hidden;
}

body:not(.is-portal-unlocked) .app-shell {
  display: none;
}

body.is-reader-open .page-noise,
body.is-reader-open .page-glow,
body.is-reader-open .page-vignette,
body.is-reader-open .sidebar,
body.is-reader-open .topbar,
body.is-reader-open .hero-stage,
body.is-reader-open .section-block {
  display: none !important;
}

body.is-reader-open .app-shell {
  width: 100%;
  min-height: 100vh;
}

body.is-reader-open .workspace {
  position: fixed;
  inset: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

body.is-reader-open .workspace > :not(#leitura) {
  display: none !important;
}

body.is-sidebar-open {
  overflow: hidden;
}

body.is-sidebar-open .mobile-drawer-backdrop {
  display: block;
}

body.is-reader-open .reader-layout {
  display: grid !important;
}

body.is-reader-open .reader-page-fallback {
  color: rgba(255, 255, 255, 0.76);
}

body:not(.is-portal-ready) .sidebar,
body:not(.is-portal-ready) .topbar,
body:not(.is-portal-ready) .hero-stage,
body:not(.is-portal-ready) .section-block {
  will-change: opacity, transform, filter;
}

.reader-layout {
  z-index: 60;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 50% 68%, rgba(255, 255, 255, 0.04), transparent 28%),
    rgba(2, 2, 5, 0.78);
  backdrop-filter: blur(24px) saturate(1.18);
}

.reader-layout::before {
  background:
    radial-gradient(circle at 20% 34%, var(--reader-ambient-left-a, rgba(141, 92, 255, 0.24)), transparent 28%),
    radial-gradient(circle at 80% 34%, var(--reader-ambient-right-b, rgba(65, 215, 199, 0.18)), transparent 30%),
    radial-gradient(circle at 50% 74%, var(--reader-ambient-center-c, rgba(211, 167, 90, 0.14)), transparent 34%);
  filter: blur(30px);
  opacity: 0.95;
}

.reader-layout::after {
  background-image:
    var(--reader-ambient-left-image, none),
    var(--reader-ambient-right-image, none),
    var(--reader-ambient-center-image, none);
  background-size: 50% auto, 50% auto, cover;
  background-position: left center, right center, center center;
  background-repeat: no-repeat;
  filter: blur(88px) saturate(1.08);
  transform: scale(1.12);
  opacity: 0.22;
  mix-blend-mode: screen;
}

.reader-content,
.reader-shell {
  width: min(100%, 1500px);
  height: min(92vh, 1000px);
  padding: clamp(12px, 2vw, 22px);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 12%),
    rgba(4, 4, 7, 0.42);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.44),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.reader-content {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 22%, rgba(141, 92, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(65, 215, 199, 0.12), transparent 24%),
    radial-gradient(circle at 50% 86%, rgba(211, 167, 90, 0.12), transparent 28%),
    rgba(4, 4, 7, 0.4);
}

.reader-content::before,
.reader-content::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
}

.reader-content::before {
  background:
    linear-gradient(90deg, rgba(4, 4, 7, 0.74), transparent 20%, transparent 80%, rgba(4, 4, 7, 0.74)),
    var(--reader-shell-left-image, none),
    var(--reader-shell-right-image, none);
  background-size: cover, 50% auto, 50% auto;
  background-position: center, left center, right center;
  background-repeat: no-repeat;
  filter: blur(86px) saturate(1.14);
  transform: scale(1.12);
  opacity: 0.22;
  mix-blend-mode: screen;
}

.reader-content::after {
  background:
    linear-gradient(180deg, rgba(4, 4, 7, 0.62), transparent 18%, transparent 82%, rgba(4, 4, 7, 0.62)),
    var(--reader-shell-center-image, none);
  background-size: cover;
  background-position: center;
  filter: blur(72px) saturate(1.08);
  transform: scale(1.1);
  opacity: 0.14;
  mix-blend-mode: screen;
}

.reader-content > * {
  position: relative;
  z-index: 1;
}

.reader-hud {
  position: absolute;
  top: clamp(10px, 1.2vw, 14px);
  left: clamp(10px, 1.2vw, 14px);
  right: clamp(14px, 2vw, 28px);
  width: auto;
  display: block;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
  pointer-events: none;
  z-index: 5;
  will-change: opacity, transform;
}

.reader-layout.is-controls-visible .reader-hud {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: none) {
  .reader-hud {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.reader-hud__panel {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(42vw, 430px);
  max-width: calc(100vw - 72px);
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: linear-gradient(180deg, rgba(10, 8, 14, 0.42), rgba(10, 8, 14, 0.2));
  backdrop-filter: blur(14px) saturate(1.04);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.reader-hud__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 92px;
  max-width: 110px;
  overflow: hidden;
}

.reader-hud__meta strong {
  font-size: 0.82rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-hud__meta small,
.reader-hud__progress small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-hud__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reader-hud__progress {
  min-width: 54px;
  max-width: 78px;
  display: grid;
  gap: 2px;
  text-align: center;
  overflow: hidden;
}

.reader-hud__progress span {
  white-space: nowrap;
}

.reader-hud__tools {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.reader-tool {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.032);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.reader-tool::after {
  content: attr(aria-label);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 8;
  width: max-content;
  max-width: 190px;
  padding: 7px 9px;
  border: 1px solid rgba(211, 167, 90, 0.22);
  background: rgba(8, 7, 11, 0.9);
  color: rgba(255, 244, 218, 0.9);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  font-size: 0.66rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
  transform: translate(-50%, -3px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.reader-tool:hover,
.reader-tool:focus-visible,
.reader-tool.is-active {
  transform: scale(1.03);
  border-color: rgba(211, 167, 90, 0.32);
  color: rgba(255, 235, 188, 0.96);
  background: rgba(211, 167, 90, 0.08);
}

.reader-tool:hover::after,
.reader-tool:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reader-tool:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.reader-toast {
  position: absolute;
  top: 54px;
  right: clamp(14px, 2vw, 28px);
  z-index: 6;
  max-width: min(360px, calc(100vw - 48px));
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(211, 167, 90, 0.24);
  background: rgba(8, 7, 12, 0.86);
  color: rgba(255, 244, 218, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  font-size: 0.78rem;
  line-height: 1.35;
}

.reader-toast[hidden] {
  display: none;
}

.reader-layout[data-reader-scope="fragment"] .reader-hud__progress small {
  display: none;
}

.reader-layout[data-reader-scope="fragment"] .reader-hud__meta small {
  display: none;
}

.reader-close {
  position: absolute;
  top: 0;
  left: 0;
  flex: 0 0 auto;
  margin-top: 2px;
  width: 28px;
  height: 28px;
  background: rgba(7, 7, 11, 0.22);
  backdrop-filter: blur(12px);
}

.reader-book {
  position: relative;
  width: min(100%, 1400px);
  height: 100%;
  max-height: 100%;
  margin: auto;
  padding-top: clamp(50px, 5vh, 66px);
  box-sizing: border-box;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
  grid-row: 1;
  grid-column: 1;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-10px);
}

.reader-book__ambient {
  position: absolute;
  inset: -8%;
  border-radius: 32px;
  filter: blur(42px);
  pointer-events: none;
  opacity: 0.68;
}

.reader-book__ambient {
  background:
    radial-gradient(circle at 50% 50%, var(--reader-ambient-center-a, rgba(211, 167, 90, 0.15)), transparent 18%),
    radial-gradient(circle at 50% 50%, var(--reader-ambient-center-b, rgba(122, 216, 255, 0.12)), transparent 34%),
    radial-gradient(circle at 50% 50%, var(--reader-ambient-center-c, rgba(10, 10, 16, 0.2)), transparent 52%);
}

.reader-book__ambient--left {
  inset: 2% 52% 2% -6%;
  background:
    radial-gradient(circle at 46% 50%, var(--reader-ambient-left-a, rgba(141, 92, 255, 0.24)), transparent 20%),
    radial-gradient(circle at 60% 36%, var(--reader-ambient-left-b, rgba(65, 215, 199, 0.14)), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 46%),
    var(--reader-ambient-left-image, none);
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
}

.reader-book__ambient--right {
  inset: 2% -6% 2% 52%;
  background:
    radial-gradient(circle at 54% 50%, var(--reader-ambient-right-a, rgba(211, 167, 90, 0.22)), transparent 20%),
    radial-gradient(circle at 40% 36%, var(--reader-ambient-right-b, rgba(122, 216, 255, 0.14)), transparent 28%),
    linear-gradient(270deg, rgba(255, 255, 255, 0.04), transparent 46%),
    var(--reader-ambient-right-image, none);
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
}

.reader-book__cover,
.reader-book__spread {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition:
    opacity 0.45s ease,
    transform 0.55s ease;
}

.reader-book__cover {
  width: min(100%, 680px);
  margin: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reader-book__spread {
  width: min(100%, 1360px);
  margin: auto;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: clamp(10px, 1.1vw, 14px);
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

.reader-book[data-mode="cover"] .reader-book__cover {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reader-book[data-mode="cover"] .reader-book__spread {
  opacity: 0;
  transform: scale(0.975);
}

.reader-book[data-mode="spread"] .reader-book__cover,
.reader-book[data-mode="fragment-spread"] .reader-book__cover,
.reader-book[data-mode="fragment-cover-centered"] .reader-book__cover,
.reader-book[data-mode="single"] .reader-book__cover {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
}

.reader-book[data-mode="spread"] .reader-book__spread,
.reader-book[data-mode="fragment-spread"] .reader-book__spread,
.reader-book[data-mode="fragment-cover-centered"] .reader-book__spread,
.reader-book[data-mode="single"] .reader-book__spread {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.reader-book[data-mode="spread"] .reader-book__spread,
.reader-book[data-mode="fragment-spread"] .reader-book__spread {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.reader-book[data-mode="single"] .reader-book__spread {
  width: min(100%, 680px);
  grid-template-columns: minmax(0, 1fr);
}

.reader-book[data-mode="fragment-cover-centered"] .reader-book__spread {
  width: min(100%, 680px);
  grid-template-columns: minmax(0, 1fr);
}

.reader-book[data-mode="single"] .reader-book__spine,
.reader-book[data-mode="fragment-cover-centered"] .reader-book__spine,
.reader-book[data-mode="fragment-cover-centered"] .reader-page-shell--right,
.reader-book[data-mode="single"] .reader-page-shell--right {
  display: none;
}

.reader-book__spine {
  width: 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 34px rgba(141, 92, 255, 0.18);
  opacity: 0.72;
}

.reader-page-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(680px, 80vh, 920px);
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    var(--reader-page-image, none),
    rgba(4, 4, 7, 0.88);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition:
    transform 0.38s ease,
    opacity 0.38s ease,
    box-shadow 0.38s ease,
    filter 0.38s ease;
}

.reader-page-shell[hidden] {
  display: none !important;
}

.reader-page-shell.is-blank {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.035), transparent 18rem),
    rgba(4, 4, 7, 0.82);
}

.reader-page-shell__glow {
  position: absolute;
  inset: -12%;
  filter: blur(24px);
  pointer-events: none;
  opacity: 0.92;
}

.reader-page-shell::before {
  content: "";
  position: absolute;
  inset: -14%;
  background:
    linear-gradient(180deg, rgba(4, 4, 7, 0.1), transparent 22%, transparent 78%, rgba(4, 4, 7, 0.18)),
    var(--reader-page-image, none);
  background-size: cover;
  background-position: center;
  filter: blur(58px) saturate(1.16);
  transform: scale(1.1);
  opacity: 0.62;
  mix-blend-mode: screen;
  pointer-events: none;
}

.reader-page-shell--cover .reader-page-shell__glow {
  background:
    radial-gradient(circle at 50% 16%, var(--reader-ambient-center-a, rgba(211, 167, 90, 0.2)), transparent 34%),
    radial-gradient(circle at 50% 82%, var(--reader-ambient-center-b, rgba(122, 216, 255, 0.1)), transparent 32%);
}

.reader-page-shell--left .reader-page-shell__glow {
  background:
    radial-gradient(circle at 50% 18%, var(--reader-ambient-left-a, rgba(141, 92, 255, 0.2)), transparent 34%),
    radial-gradient(circle at 50% 82%, var(--reader-ambient-left-b, rgba(65, 215, 199, 0.1)), transparent 32%);
}

.reader-page-shell--right .reader-page-shell__glow {
  background:
    radial-gradient(circle at 50% 18%, var(--reader-ambient-right-a, rgba(211, 167, 90, 0.2)), transparent 34%),
    radial-gradient(circle at 50% 82%, var(--reader-ambient-right-b, rgba(122, 216, 255, 0.1)), transparent 32%);
}

.reader-page-shell__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 10%, transparent 90%, rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.82;
}

.reader-page-media,
.reader-page-pdf,
.reader-page-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  opacity: 0;
  background: #050507;
  transition: opacity 0.3s ease;
  pointer-events: none;
  object-fit: contain;
  object-position: center center;
  transform: none;
  transform-origin: center center;
}

.reader-page-canvas {
  pointer-events: none;
}

.reader-book[data-mode="spread"] .reader-page-shell {
  flex: 1 1 0;
}

.reader-book[data-mode="spread"] .reader-page-shell--left,
.reader-book[data-mode="spread"] .reader-page-shell--right,
.reader-book[data-mode="fragment-spread"] .reader-page-shell--left,
.reader-book[data-mode="fragment-spread"] .reader-page-shell--right {
  min-width: 0;
}

.reader-book[data-mode="spread"] .reader-page-shell,
.reader-book[data-mode="fragment-spread"] .reader-page-shell {
  flex: 1 1 0;
}

.reader-book[data-mode="spread"] .reader-book__spine,
.reader-book[data-mode="fragment-spread"] .reader-book__spine {
  flex: 0 0 10px;
  margin-inline: clamp(10px, 1.1vw, 14px);
}

.reader-layout[data-reader-scope="fragment"] .reader-book[data-mode="fragment-spread"] .reader-book__spread {
  width: min(100%, 1220px);
}

.reader-layout[data-reader-scope="fragment"] .reader-page-shell[data-reader-role="ritual"] {
  border-style: dashed;
  background:
    radial-gradient(circle at 50% 42%, rgba(211, 167, 90, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 22%),
    rgba(4, 4, 7, 0.82);
}

.reader-layout[data-reader-scope="fragment"] .reader-page-shell[data-reader-role="ritual"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: min(36%, 180px);
  height: min(36%, 180px);
  border-radius: 50%;
  border: 1px solid rgba(211, 167, 90, 0.18);
  box-shadow:
    0 0 44px rgba(211, 167, 90, 0.08),
    inset 0 0 34px rgba(211, 167, 90, 0.05);
}

.reader-layout[data-reader-scope="fragment"] .reader-page-shell[data-fragment-fallback="cover"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    var(--reader-page-image, none),
    rgba(4, 4, 7, 0.88);
  background-size: auto, auto, contain, auto;
  background-repeat: no-repeat;
  background-position: center;
}

.reader-layout[data-reader-scope="fragment"] .reader-page-shell[data-render-kind="pdfjs"]::before,
.reader-layout[data-reader-scope="fragment"] .reader-page-shell[data-render-kind="pdfjs"] .reader-page-shell__glow,
.reader-layout[data-reader-scope="fragment"] .reader-page-shell[data-render-kind="pdfjs"] .reader-page-shell__sheen {
  opacity: 0;
  mix-blend-mode: normal;
}

.reader-layout[data-reader-scope="fragment"] .reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas[data-loaded="true"] {
  z-index: 4;
  display: block;
  opacity: 1;
  background: #050507;
  filter: none;
  mix-blend-mode: normal;
}

.reader-page-shell[data-render-kind="image"] .reader-page-media {
  display: block;
  opacity: 1;
  object-fit: contain;
}

.reader-page-shell[data-render-kind="pdf"] .reader-page-pdf {
  display: block;
  opacity: 1;
  top: -42px;
  height: calc(100% + 42px);
}

.reader-page-shell[data-render-kind="image"] .reader-page-pdf {
  display: none;
}

.reader-page-shell[data-render-kind="pdf"] .reader-page-media {
  display: none;
}

.reader-page-shell[data-render-kind="pdfjs"] .reader-page-media,
.reader-page-shell[data-render-kind="pdfjs"] .reader-page-pdf {
  display: none;
}

.reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas {
  display: none;
  opacity: 0;
}

.reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas[data-loaded="true"] {
  display: block;
  opacity: 1;
}

.reader-book[data-mode="cover"] .reader-page-shell[data-render-kind="image"] .reader-page-media {
  transform: none;
}

.reader-book[data-mode="spread"] .reader-page-shell[data-render-kind="image"] .reader-page-media {
  transform: none;
}

.reader-book[data-mode="cover"] .reader-page-shell[data-render-kind="pdf"] .reader-page-pdf,
.reader-book[data-mode="spread"] .reader-page-shell[data-render-kind="pdf"] .reader-page-pdf,
.reader-book[data-mode="single"] .reader-page-shell[data-render-kind="pdf"] .reader-page-pdf {
  object-fit: contain;
  transform: none;
}

.reader-book[data-mode="cover"] .reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas,
.reader-book[data-mode="spread"] .reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas,
.reader-book[data-mode="single"] .reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas {
  object-fit: contain;
  transform: none;
}

.reader-page-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 34px);
  color: rgba(247, 240, 223, 0.86);
  font-size: clamp(0.78rem, 1.6vw, 0.94rem);
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 50% 22%, rgba(241, 209, 132, 0.12), transparent 17rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.18)),
    rgba(4, 4, 7, 0.78);
}

.reader-page-fallback--overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: clamp(20px, 4vw, 42px);
  text-align: center;
  backdrop-filter: blur(8px);
}

.reader-page-fallback[hidden],
.reader-page-fallback--overlay[hidden] {
  display: none !important;
}

body.is-reader-debug .reader-shell,
body.is-reader-debug .reader-book,
body.is-reader-debug .reader-page-shell,
body.is-reader-debug .reader-hud {
  outline: 1px solid rgba(255, 64, 64, 0.72);
}

body.is-reader-debug .reader-page-shell {
  box-shadow:
    0 0 0 1px rgba(255, 64, 64, 0.5),
    0 26px 80px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.reader-debug {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(520px, calc(100% - 36px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 64, 64, 0.72);
  background: rgba(10, 2, 2, 0.88);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.35;
  display: none;
}

.reader-debug.is-visible {
  display: block;
}

.reader-book[data-mode="spread"] .reader-page-shell,
.reader-book[data-mode="single"] .reader-page-shell {
  min-height: clamp(680px, 80vh, 920px);
}

@media (max-width: 1180px) {
  .reader-shell {
    height: min(94vh, 980px);
  }

  .reader-book {
    width: min(100%, 1160px);
  }

  .reader-book[data-mode="spread"] .reader-book__spread {
    gap: 12px;
  }
}

@media (max-width: 800px) {
  .reader-shell {
    border-radius: 24px;
  }

  .reader-book {
    width: min(100%, 1080px);
  }

  .reader-book[data-mode="single"] .reader-book__spread {
    width: min(100%, 100%);
  }

  .reader-page-shell {
    min-height: clamp(560px, 74vh, 760px);
  }
}

@media (hover: none), (max-width: 800px) {
  .reader-layout,
  .reader-shell,
  .reader-book,
  [data-reader-book-stage],
  .reader-book__cover,
  .reader-book__spread,
  .reader-page-shell,
  .reader-page-canvas {
    touch-action: pan-x pan-y pinch-zoom;
  }

  .reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas[data-loaded="true"] {
    pointer-events: auto;
  }
}

body.is-ios-funnel-safe .preportal-page--library {
  overflow-x: clip;
}

body.is-ios-funnel-safe .preportal-page--library::before {
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.12), transparent 12%, transparent 88%, rgba(211, 167, 90, 0.1)),
    linear-gradient(180deg, rgba(11, 7, 2, 0.62), transparent 28%, rgba(0, 0, 0, 0.38) 76%);
  opacity: 0.72;
}

body.is-ios-funnel-safe .preportal-page--library::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.42));
  opacity: 0.82;
}

body.is-ios-funnel-safe .preportal-page--library .library-official__observer,
body.is-ios-funnel-safe .preportal-page--library .library-official__smoke,
body.is-ios-funnel-safe .preportal-page--library .library-official__beam {
  display: none !important;
  filter: none !important;
}

body.is-ios-funnel-safe .preportal-page--library *,
body.is-ios-funnel-safe .preportal-page--library *::before,
body.is-ios-funnel-safe .preportal-page--library *::after {
  will-change: auto !important;
}

body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid {
  perspective: none !important;
}

body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile,
body.is-ios-funnel-safe .preportal-page--library .library-fragment,
body.is-ios-funnel-safe .preportal-page--library .library-key-final,
body.is-ios-funnel-safe .preportal-page--library .library-key-final__object {
  transform-style: flat !important;
  filter: none !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 18px 38px rgba(0, 0, 0, 0.38) !important;
}

body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile::before,
body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile::after {
  filter: none !important;
  transform: none !important;
  mix-blend-mode: normal !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
}

body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile::before {
  opacity: 0.13 !important;
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.68), rgba(226, 212, 178, 0.42)),
    rgba(247, 240, 219, 0.42) !important;
}

body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile::after {
  opacity: 0.18 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 58%) !important;
}

body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile:hover,
body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile:focus,
body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile:focus-visible,
body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile--revealed {
  transform: none !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 22px 48px rgba(0, 0, 0, 0.42) !important;
}

body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile__cover,
body.is-ios-funnel-safe .preportal-page--library .library-fragment__presence img,
body.is-ios-funnel-safe .preportal-page--library .library-key-final__threshold-frame {
  filter: none !important;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 250, 234, 0.1) !important;
}

body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile:hover .library-tile__cover,
body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile:focus .library-tile__cover,
body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile:focus-visible .library-tile__cover,
body.is-ios-funnel-safe .preportal-page--library .preportal-library-grid .library-tile--revealed .library-tile__cover {
  transform: translateY(-3px) scale(1.01) !important;
  filter: none !important;
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 250, 234, 0.14) !important;
}

body.is-ios-funnel-safe .preportal-page--library .editorial-threshold--library h2 .sensory-word,
body.is-ios-funnel-safe .preportal-page--library .editorial-threshold--library h2 .sensory-letter,
body.is-ios-funnel-safe .preportal-page--library .library-key-final__object::before,
body.is-ios-funnel-safe .preportal-page--library .library-key-final__object::after,
body.is-ios-funnel-safe .preportal-page--library .library-key-final__object .library-tile--key-final,
body.is-ios-funnel-safe .preportal-page--library .library-key-final__object .library-tile__cover {
  transform: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body.is-ios-funnel-pinching .preportal-page--library,
body.is-ios-funnel-pinching .preportal-page--library *,
body.is-ios-funnel-pinching .preportal-page--library *::before,
body.is-ios-funnel-pinching .preportal-page--library *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

body.is-ios-reader-safe .reader-layout,
body.is-ios-reader-safe .reader-content,
body.is-ios-reader-safe .reader-shell,
body.is-ios-reader-safe .reader-hud__panel,
body.is-ios-reader-safe .reader-toast,
body.is-ios-reader-safe .reader-close {
  backdrop-filter: none !important;
}

body.is-ios-reader-safe .reader-layout::before,
body.is-ios-reader-safe .reader-layout::after,
body.is-ios-reader-safe .reader-content::before,
body.is-ios-reader-safe .reader-content::after,
body.is-ios-reader-safe .reader-book__ambient,
body.is-ios-reader-safe .reader-page-shell__glow,
body.is-ios-reader-safe .reader-page-shell::before,
body.is-ios-reader-safe .reader-page-shell__sheen {
  display: none !important;
  opacity: 0 !important;
  filter: none !important;
  transform: none !important;
  mix-blend-mode: normal !important;
}

body.is-ios-reader-safe .reader-hud,
body.is-ios-reader-safe .reader-page-shell,
body.is-ios-reader-safe .reader-page-canvas,
body.is-ios-reader-safe .reader-page-media,
body.is-ios-reader-safe .reader-page-pdf {
  filter: none !important;
  will-change: auto !important;
}

/* Refinamento final do funil: biblioteca, Livro 18 e eixo investigativo. */
.preportal-page--library .preportal-library-grid,
.app-shell .library-grid {
  overflow: visible;
}

.preportal-page--library .preportal-library-grid .library-tile,
.app-shell .library-grid .library-tile {
  touch-action: manipulation;
}

.preportal-page--library .preportal-library-grid .library-tile__description,
.app-shell .library-grid .library-tile__description {
  display: block;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .preportal-page--library .preportal-library-grid .library-tile {
    z-index: 1;
  }

  .preportal-page--library .preportal-library-grid .library-tile:hover,
  .preportal-page--library .preportal-library-grid .library-tile:focus,
  .preportal-page--library .preportal-library-grid .library-tile:focus-visible,
  .app-shell .library-grid .library-tile:hover,
  .app-shell .library-grid .library-tile:focus,
  .app-shell .library-grid .library-tile:focus-visible {
    z-index: 16;
  }

  .preportal-page--library .preportal-library-grid .library-tile__description {
    position: absolute;
    z-index: 14;
    left: 10px;
    right: 10px;
    top: calc(100% - 12px);
    max-height: 0;
    padding: 0 12px;
    border: 1px solid rgba(241, 209, 132, 0);
    background:
      linear-gradient(180deg, rgba(18, 14, 9, 0.96), rgba(4, 4, 6, 0.97)),
      rgba(4, 4, 6, 0.96);
    color: rgba(246, 241, 232, 0.9);
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .preportal-page--library .preportal-library-grid .library-tile:hover .library-tile__description,
  .preportal-page--library .preportal-library-grid .library-tile:focus .library-tile__description,
  .preportal-page--library .preportal-library-grid .library-tile:focus-visible .library-tile__description,
  .app-shell .library-grid .library-tile:hover .library-tile__description,
  .app-shell .library-grid .library-tile:focus .library-tile__description,
  .app-shell .library-grid .library-tile:focus-visible .library-tile__description {
    max-height: 24rem;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: visible;
    border-color: rgba(241, 209, 132, 0.34);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow:
      0 24px 54px rgba(0, 0, 0, 0.5),
      0 0 28px rgba(211, 167, 90, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }
}

.preportal-page--library .preportal-library-grid .library-tile--revealed,
.app-shell .library-grid .library-tile--revealed {
  z-index: 18;
  border-color: rgba(241, 209, 132, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    0 28px 68px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(211, 167, 90, 0.14);
}

.preportal-page--library .preportal-library-grid .library-tile--revealed .library-tile__cover,
.app-shell .library-grid .library-tile--revealed .library-tile__cover {
  transform: translateY(-8px) translateZ(38px) scale(1.025);
  filter: saturate(1.16) contrast(1.08) brightness(1.15);
  box-shadow:
    0 36px 74px rgba(0, 0, 0, 0.7),
    0 16px 42px rgba(211, 167, 90, 0.2),
    0 0 0 1px rgba(255, 250, 234, 0.17);
}

.preportal-page--library .preportal-library-grid .library-tile--revealed .library-tile__description,
.app-shell .library-grid .library-tile--revealed .library-tile__description {
  max-height: 26rem;
  padding-top: 10px;
  padding-bottom: 12px;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.preportal-page--library .library-key-final {
  overflow: visible;
}

.preportal-page--library .library-key-final__object {
  width: min(540px, 100%);
  margin-inline: auto;
  padding-block: clamp(18px, 3vw, 34px);
  justify-self: center;
  overflow: visible;
}

.preportal-page--library .library-key-final__object::before {
  left: 50%;
  right: auto;
  width: min(95%, 500px);
  transform: translateX(-50%) translateZ(-42px);
}

.preportal-page--library .library-key-final__object::after {
  left: 50%;
  right: auto;
  top: 4%;
  bottom: 3%;
  width: min(90%, 470px);
  transform: translateX(-50%) translateZ(-28px);
}

.preportal-page--library .library-key-final__object .library-tile--key-final {
  width: min(318px, 72%);
  justify-self: center;
}

.preportal-page--travessia .travessia-official__flow::before {
  display: block;
  left: auto;
  right: clamp(24px, 4.2vw, 58px);
  top: clamp(126px, 13vw, 196px);
  bottom: 0;
  width: 4px;
  background:
    repeating-linear-gradient(116deg, rgba(75, 6, 6, 0.72) 0 2px, rgba(194, 41, 33, 0.9) 2px 4px, rgba(62, 4, 4, 0.72) 4px 7px),
    linear-gradient(180deg, transparent, rgba(161, 27, 23, 0.92) 7%, rgba(101, 12, 12, 0.86) 92%, transparent);
  box-shadow:
    0 0 0 1px rgba(20, 2, 2, 0.76),
    0 10px 22px rgba(0, 0, 0, 0.46),
    0 0 18px rgba(178, 39, 31, 0.28);
  opacity: 0.92;
}

.preportal-page--travessia .travessia-investigation-thread {
  top: clamp(820px, 80svh, 980px);
  bottom: clamp(22px, 4vw, 64px);
  right: clamp(24px, 4.2vw, 58px);
  width: 116px;
  z-index: 5;
  opacity: 1;
}

.preportal-page--travessia .travessia-investigation-thread__line {
  right: 0;
  width: 4px;
}

.preportal-page--travessia .travessia-thread-anchor {
  z-index: 9;
  opacity: 0.96;
}

.preportal-page--travessia .travessia-thread-anchor::before {
  width: 100%;
  height: 100%;
}

.preportal-page--travessia .travessia-thread-anchor::after {
  background:
    radial-gradient(circle at 2px 50%, rgba(239, 198, 116, 0.98) 0 2px, rgba(113, 16, 14, 0.72) 3px 6px, transparent 7px),
    repeating-linear-gradient(116deg, rgba(88, 7, 7, 0.72) 0 2px, rgba(201, 44, 34, 0.92) 2px 4px, rgba(54, 4, 4, 0.58) 4px 7px),
    linear-gradient(90deg, rgba(124, 17, 16, 0.96), rgba(239, 190, 104, 0.28));
}

.preportal-page--travessia .funnel-vsl-card--main .travessia-thread-anchor,
.preportal-page--travessia .travessia-official__chapter .travessia-thread-anchor,
.preportal-page--travessia .travessia-official__pillars .travessia-thread-anchor,
.preportal-page--travessia .recovered-archives .travessia-thread-anchor,
.preportal-page--travessia .funnel-cta .travessia-thread-anchor {
  display: block;
}

.preportal-page--travessia .travessia-official__chapter::before,
.preportal-page--travessia .travessia-official__pillars::before,
.preportal-page--travessia .travessia-official__access::before {
  content: "DOSSIE";
}

.preportal-page--travessia .recovered-archives {
  overflow: visible;
}

.preportal-page--travessia .recovered-archives::before {
  box-shadow:
    inset 0 0 0 1px rgba(116, 213, 227, 0.08),
    0 0 32px rgba(178, 39, 31, 0.08);
}

.preportal-page--travessia .recovered-archives__file {
  position: relative;
  overflow: visible;
}

.preportal-page--travessia .recovered-archives__file::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 247, 218, 0.98) 0 2px, transparent 3px),
    conic-gradient(from 210deg, rgba(82, 47, 13, 0.96), rgba(247, 213, 125, 0.98), rgba(129, 77, 25, 0.96), rgba(42, 20, 5, 0.98), rgba(216, 172, 84, 0.96), rgba(82, 47, 13, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 232, 168, 0.42),
    0 4px 10px rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  pointer-events: none;
}

.preportal-page--travessia .recovered-archives__file::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 28px;
  height: 2px;
  background:
    repeating-linear-gradient(116deg, rgba(88, 7, 7, 0.72) 0 2px, rgba(201, 44, 34, 0.9) 2px 4px, rgba(54, 4, 4, 0.58) 4px 7px);
  transform: translate(-100%, -50%);
  pointer-events: none;
}

@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .preportal-page--library .preportal-library-grid .library-tile__description,
  .app-shell .library-grid .library-tile__description {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .preportal-page--library .preportal-library-grid .library-tile:not(.library-tile--revealed):focus .library-tile__description,
  .preportal-page--library .preportal-library-grid .library-tile:not(.library-tile--revealed):focus-visible .library-tile__description,
  .preportal-page--library .preportal-library-grid .library-tile:not(.library-tile--revealed):hover .library-tile__description,
  .app-shell .library-grid .library-tile:not(.library-tile--revealed):focus .library-tile__description,
  .app-shell .library-grid .library-tile:not(.library-tile--revealed):focus-visible .library-tile__description,
  .app-shell .library-grid .library-tile:not(.library-tile--revealed):hover .library-tile__description {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
  }

  .preportal-page--library .library-key-final__object {
    width: min(100%, 380px);
    min-height: clamp(390px, 112vw, 520px);
  }

  .preportal-page--library .library-key-final__object::after {
    width: min(94%, 356px);
  }

  .preportal-page--library .library-key-final__object .library-tile--key-final {
    width: min(268px, 72%);
  }

  .preportal-page--travessia .travessia-official__flow {
    padding-left: 18px;
  }

  .preportal-page--travessia .travessia-official__flow::before {
    display: block;
    left: 8px;
    right: auto;
    top: 12px;
    bottom: 20px;
    width: 2px;
    opacity: 0.54;
  }

  .preportal-page--travessia .travessia-thread-anchor {
    display: block;
    left: -24px;
    right: auto;
    width: 18px;
    height: 18px;
    opacity: 0.58;
  }

  .preportal-page--travessia .travessia-thread-anchor::before {
    inset: 2px;
  }

  .preportal-page--travessia .travessia-thread-anchor::after {
    display: block;
    left: 15px;
    width: 22px;
    height: 2px;
    opacity: 0.48;
  }

  .preportal-page--travessia .travessia-thread-anchor em {
    display: none;
  }

  .preportal-page--travessia .funnel-vsl-card,
  .preportal-page--travessia .travessia-official__chapter,
  .preportal-page--travessia .travessia-official__pillars,
  .preportal-page--travessia .travessia-official__quote,
  .preportal-page--travessia .funnel-travessia-bridge,
  .preportal-page--travessia .travessia-official__access,
  .preportal-page--travessia .recovered-archives,
  .preportal-page--travessia .funnel-cta {
    width: calc(100% - 2px);
    justify-self: stretch;
  }

  .preportal-page--travessia .recovered-archives__file::before,
  .preportal-page--travessia .recovered-archives__file::after {
    display: none;
  }
}

@media (max-width: 540px) {
  .reader-hud {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    gap: 8px;
  }

  .reader-hud__panel {
    width: min(76vw, 310px);
    max-width: calc(100vw - 68px);
    padding: 9px 12px;
    gap: 10px;
  }

  .reader-hud__meta {
    min-width: 0;
    max-width: 118px;
  }

  .reader-hud__nav {
    gap: 8px;
  }

  .reader-arrow {
    width: 38px;
    height: 38px;
  }

  .reader-close {
    width: 34px;
    height: 34px;
    top: auto;
    bottom: 0;
  }
}

/* Reader system reset: keep the cinematic layout, but force the final stack order. */
.reader-content,
.reader-shell {
  isolation: isolate;
}

.reader-book {
  width: min(100%, 1460px);
}

.reader-book[data-mode="spread"] .reader-book__spread {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 0 !important;
}

.reader-book[data-mode="spread"] .reader-page-shell--left,
.reader-book[data-mode="spread"] .reader-page-shell--right {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.reader-book[data-mode="spread"] .reader-book__spine {
  flex: 0 0 10px !important;
  margin-inline: clamp(10px, 1.1vw, 14px) !important;
}

.reader-book__ambient,
.reader-book__cover,
.reader-book__spread {
  z-index: 1;
}

.reader-page-shell {
  isolation: isolate;
}

.reader-page-shell__glow {
  z-index: 0;
}

.reader-page-shell::before {
  z-index: 0;
  opacity: 0.38;
}

.reader-page-media,
.reader-page-pdf {
  z-index: 2;
}

.reader-page-shell__sheen {
  z-index: 3;
}

.reader-page-shell[data-render-kind="image"] .reader-page-media {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.reader-page-shell[data-render-kind="image"] .reader-page-pdf,
.reader-page-shell[data-render-kind="pdf"] .reader-page-media {
  display: none !important;
}

.reader-page-shell[data-render-kind="pdf"] .reader-page-pdf {
  display: block !important;
  opacity: 1 !important;
  top: -42px !important;
  height: calc(100% + 42px) !important;
}

.reader-page-shell[data-render-kind="pdfjs"] .reader-page-media,
.reader-page-shell[data-render-kind="pdfjs"] .reader-page-pdf {
  display: none !important;
}

.reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas {
  display: none !important;
  opacity: 0 !important;
}

.reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas[data-loaded="true"] {
  display: block !important;
  opacity: 1 !important;
}

/* Fragment pages stay above the cinematic shell once PDF.js has committed them. */
.reader-layout[data-reader-scope="fragment"]
  .reader-page-shell[data-render-kind="pdfjs"]
  .reader-page-canvas[data-loaded="true"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 4 !important;
}

.reader-page-fallback--overlay {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.reader-page-fallback--overlay:not([hidden]) {
  display: grid !important;
  visibility: visible !important;
  pointer-events: none !important;
}

.reader-page-fallback[hidden],
.reader-page-fallback--overlay[hidden] {
  display: none !important;
  visibility: hidden !important;
}

body.is-reader-debug .reader-shell,
body.is-reader-debug .reader-book,
body.is-reader-debug .reader-page-shell,
body.is-reader-debug .reader-hud {
  outline: none !important;
  box-shadow: none !important;
}

/* Refinamento visual: funil público e entrada reservada */
.preportal {
  gap: 0;
}

.preportal-page--call .call-official__scene--key {
  background:
    radial-gradient(circle at 50% 44%, rgba(211, 167, 90, 0.18), transparent 25rem),
    linear-gradient(180deg, rgba(2, 2, 4, 0), rgba(2, 2, 4, 0.66) 50%, rgba(2, 2, 4, 0));
}

.preportal-page--call .call-official__scene--revelation {
  background:
    radial-gradient(ellipse at 50% 62%, rgba(211, 167, 90, 0.14), transparent 24rem),
    linear-gradient(180deg, rgba(2, 2, 4, 0), rgba(2, 2, 4, 0.74) 42%, #020204);
}

.preportal-page--call .preportal-call {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(211, 167, 90, 0.18);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.05), transparent 42%, rgba(65, 215, 199, 0.04)),
    rgba(0, 0, 0, 0.16);
  box-shadow:
    0 34px 92px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.preportal-page--call .preportal-call::before,
.preportal-page--call .preportal-call::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.preportal-page--call .preportal-call::before {
  inset: 14px;
  border: 1px solid rgba(211, 167, 90, 0.08);
}

.preportal-page--call .preportal-call::after {
  left: 50%;
  bottom: -52px;
  width: 1px;
  height: 86px;
  background: linear-gradient(180deg, rgba(211, 167, 90, 0.42), transparent);
}

.preportal-page--call .call-official__cta,
.preportal .button--primary {
  border-color: rgba(241, 209, 132, 0.72);
  background:
    linear-gradient(90deg, rgba(84, 55, 19, 0.96), rgba(150, 109, 39, 0.9), rgba(65, 138, 145, 0.72));
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.46),
    0 0 34px rgba(211, 167, 90, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.preportal .button--ghost {
  border-color: rgba(241, 209, 132, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(0, 0, 0, 0.22);
}

.preportal-page--library {
  border-top: 1px solid rgba(211, 167, 90, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    inset 0 90px 120px rgba(0, 0, 0, 0.22);
}

.preportal-page--library .editorial-threshold--library {
  border-bottom-color: rgba(211, 167, 90, 0.28);
}

.preportal-page--library .library-official__archive {
  position: relative;
  padding: clamp(14px, 2.4vw, 24px);
  border: 1px solid rgba(211, 167, 90, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 24%),
    rgba(0, 0, 0, 0.18);
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.preportal-page--library .library-official__archive::before {
  content: "CATALOGO RESERVADO";
  position: absolute;
  right: clamp(12px, 2vw, 22px);
  top: clamp(10px, 1.8vw, 18px);
  padding: 4px 7px;
  border: 1px solid rgba(211, 167, 90, 0.22);
  color: rgba(211, 167, 90, 0.52);
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}

.preportal-page--library .library-fragment {
  width: min(860px, 100%);
  border-color: rgba(241, 209, 132, 0.54);
  background:
    radial-gradient(circle at 18% 44%, rgba(141, 92, 255, 0.18), transparent 15rem),
    radial-gradient(ellipse at 72% 18%, rgba(211, 167, 90, 0.12), transparent 13rem),
    linear-gradient(180deg, rgba(211, 167, 90, 0.08), transparent 42%),
    rgba(3, 3, 5, 0.94);
}

.preportal-page--library .library-fragment__open,
.preportal-page--library .library-key-final__passage .button,
.preportal-page--travessia .recovered-archives__enter {
  letter-spacing: 0.08em;
}

.preportal-page--library .library-key-final {
  border-radius: 0;
  border-color: rgba(241, 209, 132, 0.58);
  background:
    radial-gradient(circle at 50% 18%, rgba(241, 209, 132, 0.22), transparent 18rem),
    radial-gradient(circle at 50% 62%, rgba(241, 209, 132, 0.08), transparent 16rem),
    linear-gradient(180deg, rgba(43, 25, 5, 0.38), transparent 40%),
    rgba(3, 2, 1, 0.98);
  box-shadow:
    0 36px 96px rgba(0, 0, 0, 0.52),
    0 0 44px rgba(211, 167, 90, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.preportal-page--library .library-key-final__passage {
  border-radius: 0;
  border-color: rgba(211, 167, 90, 0.34);
  background:
    linear-gradient(90deg, rgba(211, 167, 90, 0.08), transparent 70%),
    rgba(0, 0, 0, 0.26);
}

.preportal-page--travessia .travessia-official__flow {
  position: relative;
}

.preportal-page--travessia .travessia-official__flow::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(211, 167, 90, 0.16) 12%, rgba(116, 213, 227, 0.12) 48%, rgba(211, 167, 90, 0.18) 84%, transparent);
  pointer-events: none;
  opacity: 0.7;
}

.preportal-page--travessia .travessia-official__chapter::before,
.preportal-page--travessia .travessia-official__pillars::before,
.preportal-page--travessia .travessia-official__access::before {
  content: "DOSSIÊ";
}

.preportal-page--travessia .travessia-investigation-thread__line,
.preportal-page--travessia .travessia-thread-anchor::after {
  filter: drop-shadow(0 0 6px rgba(156, 28, 24, 0.24));
}

.preportal-page--travessia .travessia-thread-anchor::before {
  transform: scale(1.05);
}

.preportal-page--travessia .funnel-vsl-card,
.preportal-page--travessia .travessia-official__chapter,
.preportal-page--travessia .travessia-official__pillars,
.preportal-page--travessia .recovered-archives,
.preportal-page--travessia .funnel-cta {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 34px 86px rgba(0, 0, 0, 0.38),
    0 0 42px rgba(122, 216, 255, 0.05);
}

.preportal-page--travessia .funnel-cta {
  width: min(960px, 96%);
  padding: clamp(28px, 5vw, 58px);
  border-color: rgba(241, 209, 132, 0.62);
  background:
    radial-gradient(ellipse at 70% 10%, rgba(241, 209, 132, 0.2), transparent 18rem),
    radial-gradient(ellipse at 18% 90%, rgba(122, 216, 255, 0.1), transparent 18rem),
    linear-gradient(180deg, rgba(211, 167, 90, 0.12), transparent 34%),
    rgba(3, 3, 5, 0.96);
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.5),
    0 0 54px rgba(211, 167, 90, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.preportal-page--travessia .funnel-cta h2 {
  max-width: 12ch;
  text-shadow:
    0 18px 42px rgba(0, 0, 0, 0.76),
    0 0 28px rgba(211, 167, 90, 0.16);
}

.preportal-page--travessia .funnel-cta__actions .button--primary {
  min-height: 54px;
  padding-inline: clamp(22px, 3vw, 38px);
  border-color: rgba(255, 229, 162, 0.86);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.46),
    0 0 42px rgba(211, 167, 90, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 760px) {
  .preportal-page--call .preportal-call {
    padding: 20px 14px;
  }

  .preportal-page--call .preportal-call::before,
  .preportal-page--call .preportal-call::after,
  .preportal-page--travessia .travessia-official__flow::after {
    display: none;
  }

  .preportal-page--library .library-official__archive {
    padding: 12px;
  }

  .preportal-page--library .library-official__archive::before {
    display: none;
  }

  .preportal-page--travessia .funnel-cta {
    padding: 24px 18px;
  }
}

/* Lapidacao visual: barbantes e continuidade do funil */
.preportal-page--travessia .travessia-official__chapter::before,
.preportal-page--travessia .travessia-official__pillars::before,
.preportal-page--travessia .travessia-official__access::before {
  content: "DOSSIE";
}

.preportal-page--travessia {
  background:
    radial-gradient(ellipse at 82% 18%, rgba(119, 18, 16, 0.12), transparent 24rem),
    radial-gradient(ellipse at 14% 46%, rgba(122, 216, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(2, 3, 8, 0), rgba(2, 3, 8, 0.34) 10%, rgba(3, 3, 7, 0.92));
}

.preportal-page--library .library-fragment,
.preportal-page--library .library-key-final,
.preportal-page--travessia .funnel-vsl-card,
.preportal-page--travessia .travessia-official__chapter,
.preportal-page--travessia .travessia-official__pillars,
.preportal-page--travessia .recovered-archives,
.preportal-page--travessia .funnel-cta {
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.preportal-page--library .library-fragment:hover,
.preportal-page--library .library-key-final:hover,
.preportal-page--travessia .funnel-vsl-card:hover,
.preportal-page--travessia .travessia-official__chapter:hover,
.preportal-page--travessia .travessia-official__pillars:hover,
.preportal-page--travessia .recovered-archives:hover,
.preportal-page--travessia .funnel-cta:hover {
  border-color: rgba(241, 209, 132, 0.46);
  filter: saturate(1.04) contrast(1.03);
}

.preportal-page--travessia .travessia-investigation-thread {
  right: max(18px, calc((100% - 1120px) / 2 + 8px));
  width: clamp(72px, 8vw, 128px);
  opacity: 0.78;
}

.preportal-page--travessia .travessia-investigation-thread__line {
  width: 3px;
  background:
    repeating-linear-gradient(118deg, rgba(62, 5, 5, 0.56) 0 2px, rgba(165, 34, 29, 0.78) 2px 4px, rgba(82, 7, 7, 0.58) 4px 7px),
    linear-gradient(180deg, transparent, rgba(104, 12, 12, 0.92) 6%, rgba(149, 24, 20, 0.9) 88%, transparent);
  box-shadow:
    0 0 0 1px rgba(22, 2, 2, 0.72),
    0 8px 18px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(162, 31, 26, 0.22);
}

.preportal-page--travessia .travessia-investigation-thread i::before {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 247, 218, 0.98) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 58%, rgba(62, 31, 8, 0.78) 0 2px, transparent 3px),
    conic-gradient(from 210deg, rgba(82, 47, 13, 0.96), rgba(247, 213, 125, 0.98), rgba(129, 77, 25, 0.96), rgba(42, 20, 5, 0.98), rgba(216, 172, 84, 0.96), rgba(82, 47, 13, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 232, 168, 0.46),
    0 4px 10px rgba(0, 0, 0, 0.42),
    0 0 12px rgba(190, 45, 35, 0.2);
}

.preportal-page--travessia .travessia-investigation-thread i::after {
  right: 18px;
  width: min(var(--branch-length, 56px), clamp(34px, 7vw, 86px));
  height: 2px;
  opacity: 0.5;
}

.preportal-page--travessia .travessia-thread-anchor {
  right: clamp(-20px, -1.5vw, -14px);
  width: 38px;
  height: 38px;
}

.preportal-page--travessia .travessia-thread-anchor::before {
  inset: 1px;
  transform: none;
  box-shadow:
    0 0 0 1px rgba(255, 237, 180, 0.66),
    0 0 0 5px rgba(48, 25, 7, 0.22),
    inset 0 2px 4px rgba(255, 255, 255, 0.28),
    inset 0 -7px 12px rgba(48, 25, 7, 0.44),
    0 12px 24px rgba(0, 0, 0, 0.56),
    0 0 18px rgba(198, 48, 38, 0.22);
}

.preportal-page--travessia .travessia-thread-anchor::after {
  left: 34px;
  height: 2px;
  width: var(--anchor-branch-length, 64px);
  max-width: clamp(42px, 18vw, 270px);
  opacity: 0.9;
}

.preportal-page--travessia .travessia-thread-anchor em {
  left: 42px;
  top: calc(50% - 18px);
  padding: 5px 8px 5px 9px;
  border-color: rgba(168, 42, 35, 0.46);
  border-left-color: rgba(232, 190, 102, 0.66);
  background:
    linear-gradient(180deg, rgba(46, 34, 22, 0.98), rgba(11, 9, 8, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8px);
  color: rgba(249, 234, 205, 0.9);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    -12px 0 20px rgba(139, 22, 18, 0.16);
}

.preportal-page--travessia .travessia-thread-anchor em::after {
  left: -7px;
  width: 8px;
  height: 8px;
}

.preportal-page--travessia .funnel-vsl-card--main .travessia-thread-anchor {
  --anchor-branch-length: clamp(54px, 8vw, 112px) !important;
}

.preportal-page--travessia .travessia-official__chapter--attention .travessia-thread-anchor,
.preportal-page--travessia .travessia-official__pillars .travessia-thread-anchor {
  --anchor-branch-length: clamp(120px, 18vw, 250px) !important;
}

.preportal-page--travessia .travessia-official__chapter--rupture .travessia-thread-anchor {
  --anchor-branch-length: clamp(48px, 7vw, 92px) !important;
}

.preportal-page--travessia .recovered-archives .travessia-thread-anchor,
.preportal-page--travessia .funnel-cta .travessia-thread-anchor {
  --anchor-branch-length: clamp(76px, 12vw, 150px) !important;
}

.preportal-page--travessia .travessia-collage-note,
.preportal-page--travessia .travessia-archive-seal,
.preportal-page--travessia .travessia-last-permission {
  border-color: rgba(24, 18, 10, 0.22);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 18px rgba(211, 167, 90, 0.06);
}

.preportal-page--travessia .travessia-found-sheet,
.preportal-page--travessia .travessia-manifest-scrap,
.preportal-page--travessia .travessia-proof-slip {
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.preportal-page--travessia .recovered-archives__enter,
.preportal-page--travessia .funnel-cta__actions .button--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.preportal-page--travessia .recovered-archives__enter::after,
.preportal-page--travessia .funnel-cta__actions .button--primary::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 168, 0.16), transparent);
  opacity: 0.75;
  pointer-events: none;
}

@media (min-width: 1080px) {
  .preportal-page--travessia .travessia-thread-anchor em {
    display: block;
  }
}

@media (max-width: 760px) {
  .preportal-page--travessia .travessia-investigation-thread {
    display: none;
  }

  .preportal-page--travessia .travessia-thread-anchor {
    right: 4px;
    width: 18px;
    height: 18px;
    opacity: 0.42;
  }

  .preportal-page--travessia .travessia-thread-anchor::before {
    inset: 3px;
    box-shadow:
      0 0 0 1px rgba(255, 232, 168, 0.34),
      0 5px 10px rgba(0, 0, 0, 0.34);
  }

  .preportal-page--travessia .travessia-thread-anchor::after,
  .preportal-page--travessia .travessia-thread-anchor em {
    display: none;
  }

  .preportal-page--travessia .funnel-cta h2 {
    max-width: 100%;
  }
}

/* Polimento final: nos investigativos, profundidade e leitura mobile */
@media (min-width: 761px) {
  .preportal-page--travessia .travessia-investigation-thread {
    right: clamp(18px, 2vw, 28px);
    width: 72px;
    opacity: 0.86;
  }

  .preportal-page--travessia .travessia-investigation-thread i {
    display: none;
  }

  .preportal-page--travessia .travessia-thread-anchor {
    right: -18px;
  }

  .preportal-page--travessia .funnel-vsl-card--main .travessia-thread-anchor {
    --anchor-branch-length: 64px !important;
  }

  .preportal-page--travessia .funnel-vsl-card--main .travessia-thread-anchor em {
    display: none;
  }

  .preportal-page--travessia .travessia-official__chapter--attention .travessia-thread-anchor,
  .preportal-page--travessia .travessia-official__pillars .travessia-thread-anchor {
    --anchor-branch-length: clamp(286px, 24vw, 326px) !important;
  }

  .preportal-page--travessia .travessia-official__chapter--attention .travessia-thread-anchor::after,
  .preportal-page--travessia .travessia-official__pillars .travessia-thread-anchor::after {
    max-width: none;
  }

  .preportal-page--travessia .travessia-official__chapter--rupture .travessia-thread-anchor {
    --anchor-branch-length: 48px !important;
  }

  .preportal-page--travessia .recovered-archives {
    overflow: visible;
  }

  .preportal-page--travessia .recovered-archives .travessia-thread-anchor {
    --anchor-branch-length: clamp(150px, 14vw, 180px) !important;
  }

  .preportal-page--travessia .funnel-cta .travessia-thread-anchor {
    --anchor-branch-length: clamp(108px, 10vw, 132px) !important;
  }
}

@media (max-width: 760px) {
  .admin-funnel-return {
    top: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    max-width: 172px !important;
    padding: 8px 10px !important;
    font-size: 0.56rem !important;
  }

  .preportal-page--travessia .travessia-thread-anchor {
    display: none;
  }

  .funnel-vsl-controls {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
    padding: 8px 10px;
  }

  .funnel-vsl-controls button {
    padding: 0;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .funnel-vsl-controls label {
    min-width: 0;
    gap: 0;
  }

  .funnel-vsl-controls label span {
    display: none;
  }

  .preportal-page--travessia .funnel-cta .travessia-last-permission {
    display: block;
    max-width: 100%;
    margin-top: 6px;
  }
}

/* MOBILE UX PASS 1: refinamentos exclusivos para tablet/mobile. */
@media (max-width: 900px) {
  .preportal-page--call .call-official__video {
    object-position: 50% 18%;
    transform: scale(1);
  }

  .preportal-page--call .call-official__scene--revelation {
    min-height: min(78svh, 720px);
    padding-top: clamp(56px, 11svh, 92px);
    padding-bottom: clamp(52px, 10svh, 88px);
  }

  .preportal-page--call .preportal-call__copy h2 {
    max-width: min(100%, 13ch);
    white-space: normal;
    text-wrap: balance;
  }

  .preportal-page--travessia .editorial-threshold--travessia {
    display: grid;
    align-content: end;
    gap: 18px;
  }

  .preportal-page--travessia .editorial-threshold--travessia > p,
  .preportal-page--travessia .editorial-threshold--travessia .travessia-entry-artifact__statement p,
  .preportal-page--travessia .vsl-prologue p {
    max-width: min(100%, 36rem);
  }

  .preportal-page--library .preportal-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 3vw, 22px);
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .preportal-page--library .preportal-library-grid .library-tile {
    min-height: clamp(240px, 48vw, 330px);
    padding: clamp(12px, 3vw, 16px);
  }

  .preportal-page--library .preportal-library-grid .library-tile__cover {
    min-height: clamp(178px, 38vw, 260px);
  }

  .preportal-page--library .preportal-library-grid .library-tile__title {
    display: block;
    font-size: clamp(0.78rem, 2.6vw, 0.98rem);
    line-height: 1.08;
  }

  .preportal-page--library .editorial-threshold--library {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: clamp(28px, 8vw, 52px);
    padding-bottom: clamp(20px, 7vw, 42px);
  }

  .preportal-page--library .editorial-threshold--library > div,
  .preportal-page--library .editorial-threshold--library p[data-library-note] {
    grid-column: 1;
    grid-row: auto;
  }

  .preportal-page--library .editorial-threshold--library h2 {
    width: 100%;
    max-width: 11ch;
    font-size: clamp(3.1rem, 14vw, 5.2rem);
  }

  .preportal-page--library .editorial-threshold--library p[data-library-note] {
    max-width: 38rem;
    justify-self: start;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(211, 167, 90, 0.28);
  }

  .preportal-page--library .editorial-breath--library {
    width: 100%;
    margin-inline: auto;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .preportal-page--library .library-fragment {
    width: min(100%, 620px);
    grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr);
  }

  .preportal-page--library .library-fragment__presence img {
    width: min(210px, 100%);
  }

  .preportal-page--travessia .recovered-archives {
    width: min(100%, 680px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .preportal-page--call .call-official__scene {
    padding-left: 18px;
    padding-right: 18px;
  }

  .preportal-page--call .call-official__scene--revelation {
    min-height: min(72svh, 620px);
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .preportal-page--call .preportal-call {
    width: min(100%, 420px);
    padding: 16px 12px;
  }

  .preportal-page--call .preportal-call__copy {
    gap: 12px;
  }

  .preportal-page--call .preportal-call__actions,
  .preportal-page--call .preportal-call__footnote {
    margin-top: 18px;
  }

  .preportal-page--call .preportal-call__manifesto {
    gap: 4px;
  }

  .preportal-page--call .call-official__microcopy {
    max-width: 27ch;
  }

  .preportal-page--travessia .editorial-threshold--travessia {
    min-height: min(86svh, 680px);
    padding: 22px 18px 30px;
  }

  .preportal-page--travessia .travessia-entry-artifact__statement {
    align-self: end;
  }

  .preportal-page--travessia .travessia-entry-artifact__statement h2 {
    margin-bottom: 10px;
  }

  .preportal-page--travessia .travessia-entry-artifact__statement p {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding: 10px 0 0;
    border-top: 1px solid rgba(241, 209, 132, 0.28);
    font-size: clamp(0.98rem, 4vw, 1.12rem);
    line-height: 1.45;
  }

  .preportal-page--library {
    padding-inline: 14px;
  }

  .preportal-page--library .library-official__archive {
    width: 100%;
    padding-inline: 0;
  }

  .preportal-page--library .library-archive__intro {
    padding-inline: 4px;
  }

  .preportal-page--library .library-archive__intro h3,
  .preportal-page--library .library-official__archive > .funnel-card__caption,
  .preportal-page--library .library-manifesto {
    width: 100%;
  }

  .preportal-page--library .preportal-library-grid {
    gap: 16px 12px;
  }

  .preportal-page--library .preportal-library-grid .library-tile {
    min-height: clamp(228px, 62vw, 290px);
  }

  .preportal-page--library .preportal-library-grid .library-tile__cover {
    min-height: clamp(168px, 48vw, 230px);
  }

  .preportal-page--library .preportal-library-grid .library-tile__mood {
    font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  }

  .preportal-page--library .library-fragment {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
  }

  .preportal-page--library .library-fragment::after {
    right: 14px;
    top: 14px;
    transform: none;
  }

  .preportal-page--library .library-fragment__presence {
    justify-items: center;
  }

  .preportal-page--library .library-fragment__presence img {
    width: min(230px, 72vw);
  }

  .preportal-page--library .library-fragment__copy {
    gap: 12px;
    text-align: left;
  }

  .preportal-page--library .library-fragment__copy h3,
  .preportal-page--library .library-fragment__copy p,
  .preportal-page--library .library-fragment__copy small {
    max-width: 100%;
  }

  .preportal-page--library .library-fragment__open {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .preportal-page--travessia .recovered-archives {
    padding: 22px 18px;
    margin-block: 28px;
  }

  .preportal-page--travessia .recovered-archives::before {
    inset: 10px;
  }

  .preportal-page--travessia .recovered-archives::after,
  .preportal-page--travessia .recovered-archives__gate::after {
    display: none;
  }

  .preportal-page--travessia .recovered-archives__gate {
    max-width: 100%;
  }

  .preportal-page--travessia .recovered-archives__gate h3 {
    font-size: clamp(2.3rem, 14vw, 3.7rem);
  }

  .preportal-page--travessia .recovered-archives__enter {
    width: 100%;
    min-height: 50px;
    padding-inline: 14px;
  }

  .recovered-archives__close {
    top: 8px;
    right: 8px;
    z-index: 4;
  }

  .recovered-archives__transmission::before {
    inset: -10px;
  }

  .recovered-archives__video {
    max-width: min(100%, 360px);
  }

  body.is-reader-open.is-portal-unlocked .notebook-access {
    display: inline-flex;
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 24px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  body.is-reader-open.is-portal-unlocked.is-notebook-open .notebook-access {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .reader-layout {
    padding: 0;
    background: rgba(2, 2, 5, 0.92);
    backdrop-filter: none;
  }

  .reader-shell {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    padding: 10px;
    background: rgba(3, 3, 6, 0.98);
  }

  .reader-book {
    transform: none;
  }

  .reader-book__cover,
  .reader-book__spread {
    width: 100%;
  }

  .reader-page-shell {
    min-height: min(78dvh, 720px);
    border-radius: 14px;
  }

  .reader-hud {
    top: 10px;
    bottom: auto;
    left: 10px;
    right: 10px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  .reader-layout.is-controls-visible .reader-hud {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .reader-hud__panel {
    width: calc(100vw - 64px);
    max-width: none;
    margin-left: 44px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(6, 5, 9, 0.82);
  }

  .reader-hud__meta {
    display: none;
  }

  .reader-hud__tools {
    gap: 6px;
  }

  .reader-close {
    top: 0;
    bottom: auto;
    left: 0;
  }
}

@media (max-width: 430px) {
  .preportal-page--library .preportal-library-grid {
    gap: 14px 10px;
  }

  .preportal-page--library .preportal-library-grid .library-tile {
    padding: 10px;
  }

  .preportal-page--library .preportal-library-grid .library-tile__cover {
    min-height: clamp(150px, 46vw, 190px);
  }

  .preportal-page--library .preportal-library-grid .library-tile__title {
    font-size: 0.72rem;
  }

  .preportal-page--library .preportal-library-grid .library-tile__status {
    font-size: 0.42rem;
  }

  .reader-hud__panel {
    width: calc(100vw - 58px);
    margin-left: 40px;
    gap: 7px;
  }

  .reader-arrow {
    width: 34px;
    height: 34px;
  }

  .reader-tool {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 800px) {
  .app-shell .topbar {
    min-height: 0;
    padding: 12px;
  }

  .app-shell .search-shell {
    min-height: 42px;
  }

  .app-shell .profile-chip {
    min-height: 42px;
  }

  .app-shell .hero-stage {
    gap: 12px;
  }

  .app-shell .spotlight-card {
    min-height: auto;
  }

  .app-shell .spotlight-card__content {
    gap: 16px;
    padding: 20px;
  }

  .app-shell .spotlight-copy {
    gap: 10px;
  }

  .app-shell .spotlight-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.15rem, 11vw, 3.75rem);
  }

  .app-shell .spotlight-copy p,
  .app-shell .section-heading p,
  .app-shell .section-heading p[data-library-note] {
    max-width: 100%;
    margin-top: 8px;
    line-height: 1.55;
  }

  .app-shell .section-heading {
    display: grid;
    gap: 10px;
    padding: 18px;
  }

  .app-shell .section-heading h2 {
    max-width: 11ch;
    font-size: clamp(1.95rem, 9vw, 3.2rem);
  }

  .app-shell .spotlight-actions {
    gap: 10px;
    margin-top: 8px;
  }

  .app-shell .spotlight-actions .button {
    min-height: 44px;
  }

  .app-shell .hero-aside {
    gap: 10px;
  }

  .app-shell .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .app-shell .library-tile {
    min-height: 0;
    padding: 12px;
  }

  .app-shell .library-tile__cover {
    min-height: clamp(170px, 48vw, 230px);
  }

  .app-shell .signal-card {
    min-height: 0;
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .app-shell .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .app-shell .library-tile {
    padding: 10px;
  }

  .app-shell .library-tile__cover {
    min-height: clamp(150px, 46vw, 190px);
  }

  .app-shell .library-tile__description {
    display: none;
  }
}

/* MOBILE UX PASS 1.1: contencao fina de cortes e alinhamentos mobile. */
@media (max-width: 760px) {
  html,
  body,
  .preportal,
  .preportal-page,
  .app-shell,
  .workspace {
    max-width: 100%;
    overflow-x: hidden;
  }

  .preportal *,
  .app-shell * {
    box-sizing: border-box;
    max-width: 100%;
  }

  .preportal-page--call .call-official__scene {
    justify-items: center;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .preportal-page--call .call-official__manifesto,
  .preportal-page--call .preportal-call {
    width: min(100%, 342px);
    margin-inline: auto;
    transform: translateX(-8px);
  }

  .preportal-page--call .call-official__manifesto h2 {
    max-width: 100%;
    font-size: clamp(2.34rem, 11.1vw, 2.92rem);
    line-height: 0.98;
  }

  .preportal-page--call .call-official__manifesto p {
    max-width: 28ch;
  }

  .preportal-page--call .call-official__scene--revelation {
    justify-content: center;
    text-align: center;
  }

  .preportal-page--call .preportal-call__copy,
  .preportal-page--call .preportal-call__actions,
  .preportal-page--call .preportal-call__footnote {
    justify-items: center;
    text-align: center;
  }

  .preportal-page--call .preportal-call__copy h2 {
    max-width: 100%;
    font-size: clamp(2.02rem, 10.5vw, 2.42rem);
  }

  .preportal-page--call .call-official__cta {
    width: min(100%, 304px);
  }

  .preportal-page--library {
    width: 100%;
    padding-inline: 10px;
    justify-items: stretch;
  }

  .preportal-page--library .editorial-threshold--library,
  .preportal-page--library .editorial-breath--library,
  .preportal-page--library .library-official__archive,
  .preportal-page--library .library-fragment,
  .preportal-page--library .library-key-final {
    width: auto;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    justify-self: stretch;
    transform: none;
  }

  .preportal-page--library .editorial-threshold--library {
    padding-inline: 0;
  }

  .preportal-page--library .editorial-threshold--library h2 {
    max-width: min(100%, 9.5ch);
    font-size: clamp(2.55rem, 12.4vw, 3.38rem);
  }

  .preportal-page--library .editorial-threshold--library p[data-library-note],
  .preportal-page--library .editorial-breath--library,
  .preportal-page--library .library-archive__intro,
  .preportal-page--library .library-manifesto,
  .preportal-page--library .library-official__archive > .funnel-card__caption {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    overflow-wrap: anywhere;
  }

  .preportal-page--library .preportal-library-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
  }

  .preportal-page--library .preportal-library-grid .library-tile {
    min-width: 0;
    padding: 9px;
    overflow: hidden;
  }

  .preportal-page--library .preportal-library-grid .library-tile__cover {
    min-height: clamp(146px, 43vw, 178px);
  }

  .preportal-page--library .preportal-library-grid .library-tile__title,
  .preportal-page--library .preportal-library-grid .library-tile__mood,
  .preportal-page--library .preportal-library-grid .library-tile__status {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .preportal-page--library .library-fragment {
    padding: 20px 14px;
  }

  .preportal-page--library .library-fragment__copy,
  .preportal-page--library .library-fragment__copy h3,
  .preportal-page--library .library-fragment__copy p,
  .preportal-page--library .library-fragment__copy small,
  .preportal-page--library .library-fragment__open {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .app-shell .topbar,
  .app-shell .workspace,
  .app-shell .section-heading,
  .app-shell .spotlight-card,
  .app-shell .journey-banner,
  .app-shell .operation-panel,
  .app-shell .signal-card {
    max-width: 100%;
  }

  .app-shell .spotlight-card__content,
  .app-shell .section-heading,
  .app-shell .operation-panel,
  .app-shell .signal-card {
    padding: 16px;
  }

  .app-shell .spotlight-copy h1,
  .app-shell .section-heading h2 {
    max-width: 100%;
    font-size: clamp(1.82rem, 8.4vw, 2.72rem);
    line-height: 1.02;
  }

  .app-shell .spotlight-actions {
    grid-template-columns: 1fr;
  }

  .app-shell .spotlight-actions .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .preportal-page--call .call-official__manifesto,
  .preportal-page--call .preportal-call {
    width: min(100%, 328px);
    transform: translateX(-14px);
  }

  .preportal-page--library {
    padding-inline: 8px;
  }

  .preportal-page--library .preportal-library-grid {
    gap: 12px 8px;
  }

  .preportal-page--library .preportal-library-grid .library-tile {
    padding: 8px;
  }

  .preportal-page--library .preportal-library-grid .library-tile__cover {
    min-height: clamp(136px, 41vw, 168px);
  }
}

/* MOBILE LAYOUT POLISH: uma regua unica para o funil em telas pequenas. */
@media (max-width: 760px) {
  .preportal {
    --pseu-mobile-card-width: min(100%, 335px);
    --pseu-mobile-hero-width: min(100%, 316px);
  }

  .preportal-page--call {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
  }

  .preportal-page--call > .call-official__reel,
  .preportal-page--call .call-official__video {
    width: 100%;
    max-width: none;
  }

  .preportal-page--call .call-official__manifesto,
  .preportal-page--call .preportal-call {
    width: var(--pseu-mobile-hero-width);
    justify-self: center;
    transform: translateX(-20px);
  }

  .preportal-page--call .call-official__manifesto h2 {
    font-size: clamp(2.16rem, 10.4vw, 2.62rem);
    line-height: 1;
    text-wrap: balance;
  }

  .preportal-page--call .call-official__manifesto p,
  .preportal-page--call .preportal-call__manifesto,
  .preportal-page--call .call-official__microcopy,
  .preportal-page--call .preportal-call__footnote {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .preportal-page--call .call-official__cta {
    width: 100%;
    max-width: 100%;
  }

  .preportal-page--library {
    padding-inline: 8px;
  }

  .preportal-page--library .editorial-threshold--library,
  .preportal-page--library .editorial-breath--library,
  .preportal-page--library .library-official__archive,
  .preportal-page--library .library-fragment,
  .preportal-page--library .library-key-final {
    width: var(--pseu-mobile-card-width);
    justify-self: center;
    margin-inline: auto;
  }

  .preportal-page--library .preportal-library-grid {
    gap: 12px 8px;
  }

  .preportal-page--library .preportal-library-grid .library-tile {
    min-height: 0;
  }

  .preportal-page--library .library-fragment,
  .preportal-page--library .library-key-final {
    padding-left: 14px;
    padding-right: 14px;
  }

  .preportal-page--library .library-key-final {
    gap: 18px;
  }

  .preportal-page--library .library-key-final__copy,
  .preportal-page--library .library-key-final__copy h3,
  .preportal-page--library .library-key-final__copy p,
  .preportal-page--library .library-key-final__passage {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .preportal-page--library .library-key-final__copy h3 {
    font-size: clamp(2.28rem, 12.2vw, 2.95rem);
    line-height: 0.88;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .preportal-page--library .library-key-final__object {
    width: min(100%, 292px);
    min-height: clamp(330px, 92vw, 390px);
  }

  .preportal-page--library .library-key-final__object .library-tile--key-final {
    width: min(100%, 258px);
    padding: 16px;
  }

  .preportal-page--library .library-key-final__passage {
    padding: 18px 14px;
  }

  .preportal-page--library .library-key-final__passage .button {
    width: 100%;
    padding-inline: 12px;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .preportal-page--call .call-official__manifesto,
  .preportal-page--call .preportal-call {
    transform: translateX(-22px);
  }
}

/* Etapa 1: polimento final do funil PSEU. */
.preportal-page--library .preportal-library-grid .library-tile {
  border-color: rgba(211, 167, 90, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.032),
    0 18px 42px rgba(0, 0, 0, 0.42);
}

.preportal-page--library .preportal-library-grid .library-tile::before {
  inset: 16px 16px 44px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 252, 243, 0.92), rgba(231, 219, 190, 0.86)),
    rgba(248, 244, 230, 0.9);
  filter: none;
  opacity: 0.18;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.preportal-page--library .preportal-library-grid .library-tile::after {
  inset: 12px 12px 42px;
  height: auto;
  border-color: rgba(255, 250, 234, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 252, 242, 0.16), rgba(255, 252, 242, 0.035)),
    transparent;
  opacity: 0.42;
  transform: none;
}

.preportal-page--library .preportal-library-grid .library-tile:hover,
.preportal-page--library .preportal-library-grid .library-tile:focus,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible {
  transform: none;
  border-color: rgba(211, 167, 90, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.032),
    0 18px 42px rgba(0, 0, 0, 0.42);
}

.preportal-page--library .preportal-library-grid .library-tile:hover::before,
.preportal-page--library .preportal-library-grid .library-tile:focus::before,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible::before {
  opacity: 0.18;
  filter: none;
}

.preportal-page--library .preportal-library-grid .library-tile:hover::after,
.preportal-page--library .preportal-library-grid .library-tile:focus::after,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible::after {
  opacity: 0.42;
  transform: none;
}

.preportal-page--library .preportal-library-grid .library-tile__cover {
  z-index: 2;
  padding: 0;
  background: transparent;
  border-color: rgba(255, 248, 226, 0.5);
  outline-color: rgba(255, 250, 234, 0.2);
  filter: saturate(1.06) contrast(1.1) brightness(0.98);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 250, 234, 0.08);
}

.preportal-page--library .preportal-library-grid .library-tile:hover .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:focus .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible .library-tile__cover {
  transform: translateY(-14px) translateZ(68px) rotateX(2deg) scale(1.045);
  border-color: rgba(255, 250, 234, 0.78);
  outline-color: rgba(241, 209, 132, 0.34);
  filter: saturate(1.16) contrast(1.18) brightness(1.05);
  box-shadow:
    0 42px 78px rgba(0, 0, 0, 0.72),
    0 18px 42px rgba(211, 167, 90, 0.18),
    0 0 0 1px rgba(255, 250, 234, 0.12);
}

.preportal-page--library .preportal-library-grid .library-tile__number,
.preportal-page--library .preportal-library-grid .library-tile__title,
.preportal-page--library .preportal-library-grid .library-tile__mood,
.preportal-page--library .preportal-library-grid .library-tile__status,
.preportal-page--library .preportal-library-grid .library-tile__lock,
.preportal-page--library .preportal-library-grid .library-tile__progress {
  z-index: 3;
}

.preportal-page--library .library-key-final__object {
  width: min(540px, 94vw);
  min-height: clamp(460px, 60vw, 660px);
  padding: clamp(28px, 5vw, 52px);
}

.preportal-page--library .library-key-final__object::before {
  inset: 8% 9% 7%;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.26) 46%, transparent 70%),
    radial-gradient(ellipse at 50% 82%, rgba(241, 209, 132, 0.14), transparent 66%);
  filter: blur(14px);
  opacity: 0.86;
  transform: translateZ(-48px);
}

.preportal-page--library .library-key-final__object::after {
  inset: 0;
  border: 1px solid rgba(196, 143, 52, 0.68);
  outline: 1px solid rgba(43, 28, 10, 0.92);
  outline-offset: -12px;
  background:
    linear-gradient(180deg, rgba(255, 239, 184, 0.14), transparent 18%, transparent 82%, rgba(77, 46, 12, 0.22)),
    linear-gradient(90deg, rgba(23, 15, 6, 0.78), transparent 12%, transparent 88%, rgba(23, 15, 6, 0.78)),
    rgba(9, 6, 3, 0.78);
  box-shadow:
    0 0 0 8px rgba(7, 4, 2, 0.92),
    0 0 0 14px rgba(111, 72, 20, 0.2),
    inset 0 0 0 10px rgba(31, 19, 7, 0.9),
    inset 0 0 0 12px rgba(214, 160, 61, 0.12),
    inset 0 0 54px rgba(0, 0, 0, 0.62),
    0 44px 96px rgba(0, 0, 0, 0.62);
  transform: translateZ(-36px);
}

.preportal-page--library .library-key-final__object .library-tile--key-final {
  width: min(300px, 68%);
  padding: 18px;
  border-color: rgba(211, 167, 90, 0.56);
  outline-color: rgba(28, 18, 8, 0.94);
  outline-offset: 8px;
  background:
    linear-gradient(180deg, rgba(255, 246, 219, 0.045), transparent 26%),
    rgba(4, 3, 2, 0.92);
  transform: translateZ(42px);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 238, 181, 0.08),
    0 0 34px rgba(0, 0, 0, 0.48);
}

.preportal-page--library .library-key-final:hover .library-key-final__object .library-tile--key-final {
  transform: translateY(-5px) translateZ(56px);
}

.preportal-page--library .library-key-final__object .library-tile__cover {
  outline-width: 3px;
  outline-offset: 3px;
  transform: translateZ(20px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.66),
    0 0 0 1px rgba(241, 209, 132, 0.18);
}

.preportal-page--travessia .recovered-archives {
  border-color: rgba(116, 213, 227, 0.32);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(75, 213, 231, 0.18), transparent 18rem),
    radial-gradient(ellipse at 18% 92%, rgba(178, 45, 45, 0.12), transparent 16rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 64px),
    linear-gradient(135deg, rgba(2, 8, 13, 0.98), rgba(7, 3, 10, 0.96));
}

.recovered-archives__screen .recovered-archives__frame {
  position: relative;
}

.recovered-archives__screen .recovered-archives__frame::before {
  content: "";
  position: absolute;
  left: clamp(16px, 2vw, 26px);
  top: 8%;
  bottom: 8%;
  width: 2px;
  background:
    linear-gradient(180deg, rgba(151, 92, 45, 0.28), rgba(232, 177, 88, 0.7), rgba(117, 67, 35, 0.32));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.24),
    0 0 14px rgba(211, 167, 90, 0.12);
  pointer-events: none;
  z-index: 0;
}

.recovered-archives__screen .recovered-archives__files {
  gap: 16px;
  padding-left: 34px;
}

.recovered-archives__screen .recovered-archives__file {
  position: relative;
  min-height: 116px;
  padding: 18px 16px 16px 20px;
  overflow: visible;
  border-color: rgba(116, 213, 227, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 36%),
    linear-gradient(90deg, rgba(116, 213, 227, 0.07), transparent 44%),
    rgba(4, 10, 14, 0.86);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.recovered-archives__screen .recovered-archives__file::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.9), transparent 18%),
    radial-gradient(circle at 50% 52%, rgba(214, 160, 61, 0.96), rgba(79, 48, 20, 0.98) 68%);
  box-shadow:
    0 0 0 3px rgba(6, 5, 6, 0.95),
    0 0 0 4px rgba(211, 167, 90, 0.26),
    0 10px 18px rgba(0, 0, 0, 0.42);
}

.recovered-archives__screen .recovered-archives__file::after {
  content: "";
  position: absolute;
  left: -28px;
  top: 32px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(186, 116, 54, 0.78), rgba(232, 177, 88, 0.35));
  transform: rotate(-6deg);
  transform-origin: left center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

.recovered-archives__screen .recovered-archives__file span {
  color: rgba(116, 213, 227, 0.9);
  font-size: 0.7rem;
}

.recovered-archives__screen .recovered-archives__file em {
  display: block;
  margin-top: 10px;
  color: rgba(246, 241, 232, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.25;
}

.recovered-archives__screen .recovered-archives__file small {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 3px 7px;
  border: 1px solid rgba(178, 45, 45, 0.44);
  color: rgba(231, 82, 69, 0.68);
  background: rgba(3, 4, 7, 0.62);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.recovered-archives__screen .recovered-archives__file strong {
  margin-top: 10px;
  color: rgba(244, 213, 150, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recovered-archives__controls {
  position: absolute;
  left: clamp(12px, 3vw, 18px);
  right: clamp(12px, 3vw, 18px);
  bottom: clamp(12px, 3vh, 18px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(116, 213, 227, 0.2);
  border-radius: 999px;
  background: rgba(3, 5, 8, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.recovered-archives__controls button {
  border: 0;
  background: transparent;
  color: rgba(246, 241, 232, 0.9);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.recovered-archives__controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(210px, 42vw);
  color: rgba(246, 241, 232, 0.62);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.recovered-archives__controls input {
  width: 100%;
  accent-color: #42d9ea;
}

.reader-hud {
  left: auto;
  right: clamp(10px, 1.6vw, 24px);
  width: max-content;
  max-width: calc(100vw - 24px);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.reader-close {
  position: static;
  flex: 0 0 auto;
  margin: 1px 0 0;
}

.reader-hud__panel {
  width: auto;
  max-width: min(560px, calc(100vw - 72px));
  margin-left: 0;
  border-radius: 999px;
  background: rgba(8, 7, 12, 0.48);
}

@media (hover: none) {
  .reader-hud {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
  }

  .reader-layout.is-controls-visible .reader-hud {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .recovered-archives__screen .recovered-archives__frame::before {
    left: 18px;
    top: auto;
    bottom: 72px;
    height: 2px;
    width: calc(100% - 36px);
  }

  .recovered-archives__screen .recovered-archives__files {
    padding-left: 0;
    gap: 8px;
  }

  .recovered-archives__screen .recovered-archives__file {
    min-height: 78px;
    padding: 10px 8px;
  }

  .recovered-archives__screen .recovered-archives__file::before {
    left: 50%;
    top: -18px;
    width: 13px;
    height: 13px;
    transform: translateX(-50%);
  }

  .recovered-archives__screen .recovered-archives__file::after {
    left: 50%;
    top: -6px;
    width: 2px;
    height: 14px;
    transform: translateX(-50%);
  }

  .recovered-archives__screen .recovered-archives__file em,
  .recovered-archives__screen .recovered-archives__file small {
    display: none;
  }

  .recovered-archives__controls {
    padding: 8px 9px;
    gap: 8px;
  }

  .recovered-archives__controls label {
    min-width: 96px;
  }
}

@media (max-width: 540px) {
  .reader-hud {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 10px;
    justify-content: flex-end;
  }

  .reader-hud__panel {
    width: auto;
    max-width: calc(100vw - 62px);
    padding: 7px 9px;
    gap: 8px;
  }
}

/* Refinamento final: acabamento investigativo, capas e Reader mobile. */
.preportal-page--library .preportal-library-grid .library-tile,
.preportal-page--library .library-key-final__object .library-tile--key-final {
  -webkit-tap-highlight-color: rgba(241, 209, 132, 0.12);
}

.preportal-page--library .preportal-library-grid .library-tile__cover,
.preportal-page--library .library-key-final__object .library-tile__cover,
.library-key-final__threshold-frame {
  -webkit-user-drag: none;
  user-select: none;
}

.preportal-page--library .preportal-library-grid .library-tile::before {
  opacity: 0.2;
}

.preportal-page--library .preportal-library-grid .library-tile:hover::before,
.preportal-page--library .preportal-library-grid .library-tile:focus::before,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible::before {
  opacity: 0.24;
}

.preportal-page--library .preportal-library-grid .library-tile__cover {
  filter: saturate(1.08) contrast(1.08) brightness(1.01);
}

.preportal-page--library .preportal-library-grid .library-tile:hover .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:focus .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile--locked:hover .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile--locked:focus .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile--locked:focus-visible .library-tile__cover {
  filter:
    saturate(1.2)
    contrast(1.1)
    brightness(1.13)
    drop-shadow(0 16px 18px rgba(0, 0, 0, 0.38));
  box-shadow:
    0 42px 78px rgba(0, 0, 0, 0.72),
    0 18px 42px rgba(211, 167, 90, 0.24),
    0 0 0 1px rgba(255, 250, 234, 0.18);
}

.preportal-page--library .library-key-final__object {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.preportal-page--library .library-key-final__object::before {
  inset: 10% 12% 9%;
  filter: blur(18px);
  opacity: 0.92;
}

.preportal-page--library .library-key-final__object::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 238, 183, 0.16), transparent 17%, transparent 82%, rgba(70, 41, 11, 0.28)),
    linear-gradient(90deg, rgba(14, 8, 3, 0.92), transparent 16%, transparent 84%, rgba(14, 8, 3, 0.92)),
    radial-gradient(ellipse at 50% 48%, rgba(210, 154, 51, 0.09), transparent 55%),
    rgba(6, 4, 2, 0.9);
  box-shadow:
    0 0 0 10px rgba(7, 4, 2, 0.96),
    0 0 0 16px rgba(117, 77, 21, 0.18),
    inset 0 0 0 9px rgba(18, 10, 3, 0.94),
    inset 0 0 0 12px rgba(219, 166, 66, 0.13),
    inset 26px 0 44px rgba(0, 0, 0, 0.66),
    inset -26px 0 44px rgba(0, 0, 0, 0.66),
    inset 0 0 74px rgba(0, 0, 0, 0.68),
    0 46px 102px rgba(0, 0, 0, 0.66);
}

.preportal-page--library .library-key-final__object .library-tile--key-final {
  width: min(286px, 64%);
  transform: translateZ(58px);
  box-shadow:
    0 34px 68px rgba(0, 0, 0, 0.74),
    0 12px 28px rgba(211, 167, 90, 0.12),
    0 0 0 1px rgba(255, 238, 181, 0.1);
}

.preportal-page--library .library-key-final:hover .library-key-final__object .library-tile--key-final {
  transform: translateY(-4px) translateZ(66px);
}

.recovered-archives__screen .recovered-archives__frame::after {
  content: "";
  position: absolute;
  left: clamp(26px, 3vw, 40px);
  right: clamp(24px, 3vw, 36px);
  top: calc(50% - 1px);
  height: 1px;
  background:
    linear-gradient(90deg, rgba(139, 24, 20, 0.08), rgba(198, 50, 39, 0.52), rgba(239, 190, 104, 0.32), rgba(198, 50, 39, 0.3), transparent);
  color: transparent;
  pointer-events: none;
  transform: rotate(-1deg);
  opacity: 0.46;
  z-index: 0;
}

.recovered-archives__screen .recovered-archives__transmission {
  isolation: isolate;
}

.recovered-archives__screen .recovered-archives__transmission::before {
  box-shadow:
    0 0 0 1px rgba(116, 213, 227, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 32px 80px rgba(0, 0, 0, 0.44);
}

.recovered-archives__controls::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 247, 218, 0.96) 0 2px, transparent 3px),
    conic-gradient(from 210deg, rgba(82, 47, 13, 0.96), rgba(247, 213, 125, 0.98), rgba(129, 77, 25, 0.96), rgba(42, 20, 5, 0.98), rgba(216, 172, 84, 0.96), rgba(82, 47, 13, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 232, 168, 0.48),
    0 6px 10px rgba(0, 0, 0, 0.42);
}

@media (min-width: 1024px) {
  .reader-book[data-mode="spread"] .reader-book__spread {
    width: min(100%, 1420px);
    gap: 0 !important;
  }

  .reader-book[data-mode="spread"] .reader-book__spine {
    flex: 0 0 18px !important;
    margin-inline: 0 !important;
    border-radius: 0;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(255, 246, 223, 0.08), rgba(0, 0, 0, 0.58)),
      linear-gradient(180deg, transparent, rgba(241, 209, 132, 0.16), transparent);
    box-shadow:
      inset 6px 0 14px rgba(0, 0, 0, 0.56),
      inset -6px 0 14px rgba(0, 0, 0, 0.56),
      0 0 28px rgba(0, 0, 0, 0.38);
    opacity: 0.92;
  }

  .reader-book[data-mode="spread"] .reader-page-shell--left {
    border-radius: 22px 4px 4px 22px;
    transform-origin: right center;
    box-shadow:
      -18px 26px 80px rgba(0, 0, 0, 0.46),
      inset -30px 0 42px rgba(0, 0, 0, 0.26),
      inset 1px 0 0 rgba(255, 255, 255, 0.05);
  }

  .reader-book[data-mode="spread"] .reader-page-shell--right {
    border-radius: 4px 22px 22px 4px;
    transform-origin: left center;
    box-shadow:
      18px 26px 80px rgba(0, 0, 0, 0.46),
      inset 30px 0 42px rgba(0, 0, 0, 0.26),
      inset -1px 0 0 rgba(255, 255, 255, 0.05);
  }

  .reader-hud {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    pointer-events: none;
  }

  .reader-layout.is-controls-visible .reader-hud,
  .reader-hud:focus-within,
  .reader-hud:hover {
    opacity: 0.96;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .reader-hud__panel {
    background: rgba(8, 7, 12, 0.38);
    border-color: rgba(255, 255, 255, 0.07);
  }
}

@media (hover: none) {
  .preportal-page--library .preportal-library-grid .library-tile:active .library-tile__cover,
  .preportal-page--library .preportal-library-grid .library-tile:focus .library-tile__cover,
  .preportal-page--library .preportal-library-grid .library-tile:focus-visible .library-tile__cover {
    transform: translateY(-8px) translateZ(42px) scale(1.028);
    filter: saturate(1.18) contrast(1.08) brightness(1.12);
    box-shadow:
      0 34px 64px rgba(0, 0, 0, 0.66),
      0 12px 34px rgba(211, 167, 90, 0.22),
      0 0 0 1px rgba(255, 250, 234, 0.16);
  }
}

@media (max-width: 760px) {
  .preportal-page--travessia .travessia-investigation-thread {
    display: block;
    right: 10px;
    top: 520px;
    bottom: 120px;
    width: 20px;
    opacity: 0.26;
    z-index: 1;
  }

  .preportal-page--travessia .travessia-investigation-thread__line {
    right: 8px;
    width: 2px;
    box-shadow:
      0 0 0 1px rgba(22, 2, 2, 0.54),
      0 0 12px rgba(162, 31, 26, 0.14);
  }

  .preportal-page--travessia .travessia-investigation-thread i {
    display: flex;
    right: 4px;
  }

  .preportal-page--travessia .travessia-investigation-thread i::before {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
  }

  .preportal-page--travessia .travessia-investigation-thread i::after,
  .preportal-page--travessia .travessia-investigation-thread b {
    display: none;
  }

  .preportal-page--travessia .travessia-ref-screen,
  .preportal-page--travessia .recovered-archives,
  .preportal-page--travessia .funnel-vsl-card {
    box-shadow:
      0 22px 52px rgba(0, 0, 0, 0.34),
      inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  }

  .preportal-page--travessia .travessia-ref-screen::after {
    opacity: 0.22;
  }

  .recovered-archives__screen .recovered-archives__frame::after {
    left: 18px;
    right: 18px;
    top: 132px;
    transform: none;
    opacity: 0.28;
  }

  .recovered-archives__controls::before {
    display: none;
  }

  .preportal-page--library .library-key-final__object {
    padding: 34px 28px;
  }

  .preportal-page--library .library-key-final__object .library-tile--key-final {
    width: min(270px, 72%);
  }
}

@media (hover: none), (max-width: 800px) {
  .reader-layout {
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    align-items: start;
    justify-items: center;
  }

  .reader-content,
  .reader-shell {
    min-height: 100dvh;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .reader-book {
    min-height: calc(100dvh - 20px);
    height: auto;
    align-self: start;
    overflow: visible;
  }

  .reader-book__cover,
  .reader-book__spread {
    min-height: calc(100dvh - 20px);
  }

  .reader-book[data-mode="cover"] .reader-book__cover,
  .reader-book[data-mode="spread"] .reader-book__spread,
  .reader-book[data-mode="fragment-spread"] .reader-book__spread,
  .reader-book[data-mode="fragment-cover-centered"] .reader-book__spread,
  .reader-book[data-mode="single"] .reader-book__spread {
    position: relative;
  }

  .reader-book[data-mode="cover"] .reader-book__spread,
  .reader-book[data-mode="spread"] .reader-book__cover,
  .reader-book[data-mode="fragment-spread"] .reader-book__cover,
  .reader-book[data-mode="fragment-cover-centered"] .reader-book__cover,
  .reader-book[data-mode="single"] .reader-book__cover {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .reader-page-shell {
    overflow: visible;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .reader-page-canvas,
  .reader-page-media,
  .reader-page-pdf {
    touch-action: pan-x pan-y pinch-zoom;
  }
}

/* Correcao cirurgica: o alfinete pertence a etiqueta DOSSIÊ. */
@media (width < 0px) {
.preportal-page--travessia .travessia-official__chapter > .travessia-thread-anchor,
.preportal-page--travessia .travessia-official__pillars > .travessia-thread-anchor {
  display: none !important;
}

.preportal-page--travessia .travessia-official__chapter::before,
.preportal-page--travessia .travessia-official__pillars::before,
.preportal-page--travessia .travessia-official__access::before,
.preportal-page--travessia .recovered-archives::after {
  content: "DOSSIÊ";
  position: absolute;
  z-index: 8;
  right: 16px;
  top: 14px;
  min-width: 76px;
  min-height: 22px;
  padding: 5px 8px 5px 28px;
  border: 1px solid rgba(211, 167, 90, 0.34);
  background:
    radial-gradient(circle at 14px 50%, rgba(255, 247, 218, 0.98) 0 2px, transparent 3px),
    radial-gradient(circle at 14px 50%, rgba(215, 158, 55, 0.98) 0 7px, rgba(61, 31, 8, 0.96) 8px, transparent 10px),
    linear-gradient(180deg, rgba(45, 35, 24, 0.98), rgba(8, 7, 7, 0.94));
  color: rgba(249, 233, 198, 0.92);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.045) inset,
    -12px 0 22px rgba(139, 22, 18, 0.12);
  pointer-events: none;
  transform: rotate(1deg);
}

.preportal-page--travessia .travessia-official__chapter::after,
.preportal-page--travessia .travessia-official__pillars::after,
.preportal-page--travessia .travessia-official__access::after,
.preportal-page--travessia .recovered-archives__gate::after {
  content: "";
  position: absolute;
  z-index: 7;
  right: 90px;
  top: 28px;
  width: clamp(118px, 18vw, 270px);
  height: 2px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(116deg, rgba(88, 7, 7, 0.76) 0 2px, rgba(201, 44, 34, 0.88) 2px 4px, rgba(54, 4, 4, 0.52) 4px 7px),
    linear-gradient(90deg, rgba(239, 190, 104, 0.34), rgba(139, 24, 20, 0.96));
  box-shadow:
    0 0 0 1px rgba(32, 2, 2, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  transform: rotate(-3deg);
  transform-origin: right center;
}

.preportal-page--travessia .travessia-official__chapter--rupture::after {
  width: clamp(86px, 12vw, 150px);
  transform: rotate(2deg);
}

.preportal-page--travessia .travessia-official__pillars::after {
  width: clamp(150px, 24vw, 320px);
  transform: rotate(-1deg);
}

.preportal-page--travessia .travessia-official__access::after {
  width: clamp(128px, 16vw, 220px);
  transform: rotate(3deg);
}

.preportal-page--travessia .recovered-archives::after {
  top: 18px;
  right: 22px;
  color: rgba(249, 233, 198, 0.92);
  transform: rotate(2deg);
}

.preportal-page--travessia .recovered-archives__gate::after {
  left: auto;
  right: 96px;
  top: 34px;
  width: clamp(110px, 16vw, 220px);
  padding: 0;
  border: 0;
  color: transparent;
  background:
    repeating-linear-gradient(116deg, rgba(88, 7, 7, 0.72) 0 2px, rgba(201, 44, 34, 0.86) 2px 4px, rgba(54, 4, 4, 0.52) 4px 7px);
  box-shadow:
    0 0 0 1px rgba(32, 2, 2, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.82;
  transform: rotate(-2deg);
}
}

.recovered-archives__screen .recovered-archives__file::before,
.recovered-archives__screen .recovered-archives__file::after {
  display: none;
}

.recovered-archives__screen .recovered-archives__file span {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding-left: 24px;
}

.recovered-archives__screen .recovered-archives__file span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 247, 218, 0.98) 0 2px, transparent 3px),
    conic-gradient(from 210deg, rgba(82, 47, 13, 0.96), rgba(247, 213, 125, 0.98), rgba(129, 77, 25, 0.96), rgba(42, 20, 5, 0.98), rgba(216, 172, 84, 0.96), rgba(82, 47, 13, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 232, 168, 0.46),
    0 4px 10px rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
}

.recovered-archives__screen .recovered-archives__file span::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: clamp(34px, 4vw, 58px);
  height: 2px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(116deg, rgba(88, 7, 7, 0.72) 0 2px, rgba(201, 44, 34, 0.86) 2px 4px, rgba(54, 4, 4, 0.52) 4px 7px);
  opacity: 0.72;
  transform: translateY(-50%) rotate(-4deg);
  transform-origin: left center;
}

.recovered-archives__screen .recovered-archives__frame::after {
  top: calc(50% + 32px);
  opacity: 0.58;
}

.recovered-archives__controls::before {
  display: block;
}

.recovered-archives__controls::after {
  content: "E aí, vai ter coragem?";
  right: auto;
  left: 18px;
  top: -24px;
  border-color: rgba(211, 167, 90, 0.38);
  color: rgba(249, 233, 198, 0.82);
  background:
    linear-gradient(180deg, rgba(45, 35, 24, 0.96), rgba(8, 7, 7, 0.92));
  letter-spacing: 0.08em;
  text-transform: none;
}

@media (max-width: 760px) {
  .preportal-page--travessia .travessia-official__chapter::before,
  .preportal-page--travessia .travessia-official__pillars::before,
  .preportal-page--travessia .travessia-official__access::before,
  .preportal-page--travessia .recovered-archives::after {
    left: 14px;
    right: auto;
    top: 12px;
    min-width: 70px;
    min-height: 20px;
    padding: 5px 7px 5px 25px;
    font-size: 0.46rem;
  }

  .preportal-page--travessia .travessia-official__chapter::after,
  .preportal-page--travessia .travessia-official__pillars::after,
  .preportal-page--travessia .travessia-official__access::after,
  .preportal-page--travessia .recovered-archives__gate::after {
    left: 84px;
    right: auto;
    top: 25px;
    width: clamp(42px, 22vw, 92px);
    opacity: 0.58;
    transform: rotate(-2deg);
  }

  .preportal-page--travessia .recovered-archives::after {
    display: block;
    top: 14px;
  }

  .preportal-page--travessia .recovered-archives__gate::after {
    display: block;
    left: 86px;
    top: 28px;
  }

  .recovered-archives__screen .recovered-archives__file span::after {
    width: 26px;
    opacity: 0.46;
  }

  .recovered-archives__controls::after {
    left: 10px;
    top: -22px;
    max-width: calc(100% - 20px);
    font-size: 0.46rem;
  }
}

/* Ajuste de bug visual: o painel claro pertence apenas a capa. */
.preportal-page--library .preportal-library-grid .library-tile::before,
.preportal-page--library .preportal-library-grid .library-tile::after {
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: auto;
  width: auto;
  height: auto;
  aspect-ratio: 3 / 4;
  max-height: calc(100% - 82px);
  pointer-events: none;
}

.preportal-page--library .preportal-library-grid .library-tile:hover::before,
.preportal-page--library .preportal-library-grid .library-tile:focus::before,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible::before,
.preportal-page--library .preportal-library-grid .library-tile:hover::after,
.preportal-page--library .preportal-library-grid .library-tile:focus::after,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible::after {
  bottom: auto;
}

.preportal-page--library .preportal-library-grid .library-tile__number,
.preportal-page--library .preportal-library-grid .library-tile__title,
.preportal-page--library .preportal-library-grid .library-tile__mood,
.preportal-page--library .preportal-library-grid .library-tile__description,
.preportal-page--library .preportal-library-grid .library-tile__status,
.preportal-page--library .preportal-library-grid .library-tile__lock,
.preportal-page--library .preportal-library-grid .library-tile__progress {
  position: relative;
  z-index: 4;
}

@media (max-width: 760px) {
  .preportal-page--library .preportal-library-grid .library-tile::before,
  .preportal-page--library .preportal-library-grid .library-tile::after {
    left: 8px;
    right: 8px;
    top: 8px;
    max-height: calc(100% - 76px);
  }
}

/* Correção cirúrgica: Manual do Despertar sem película escura/amarelada. */
.preportal-page--library .preportal-library-grid .library-tile[data-book-number="1"] {
  filter: none;
  background:
    radial-gradient(ellipse at 50% 32%, rgba(255, 252, 240, 0.035), transparent 62%),
    rgba(3, 3, 4, 0.96);
}

.preportal-page--library .preportal-library-grid .library-tile[data-book-number="1"]::before {
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.7), rgba(229, 219, 194, 0.48)),
    rgba(247, 240, 219, 0.44);
  opacity: 0.13;
  filter: none;
  mix-blend-mode: normal;
}

.preportal-page--library .preportal-library-grid .library-tile[data-book-number="1"]::after {
  border-color: transparent;
  background: none;
  opacity: 0;
  mix-blend-mode: normal;
}

.preportal-page--library .preportal-library-grid .library-tile[data-book-number="1"] .library-tile__cover {
  filter: saturate(1.05) contrast(1.05) brightness(1.04);
}

.preportal-page--library .preportal-library-grid .library-tile[data-book-number="1"]:hover .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile[data-book-number="1"]:focus .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile[data-book-number="1"]:focus-visible .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile[data-book-number="1"].library-tile--revealed .library-tile__cover {
  filter: saturate(1.08) contrast(1.07) brightness(1.1);
}

/* Missao final do funil: polish premium sem redesenhar a estrutura. */
.preportal-page--call .call-official__scene--key {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(211, 167, 90, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(2, 2, 4, 0), rgba(2, 2, 4, 0.22) 54%, rgba(2, 2, 4, 0.02));
}

.preportal-page--call .call-official__manifesto {
  background: transparent;
  box-shadow: none;
  text-shadow:
    0 20px 46px rgba(0, 0, 0, 0.88),
    0 0 26px rgba(0, 0, 0, 0.46);
}

.preportal-page--call .call-official__manifesto h2 {
  text-shadow:
    0 22px 54px rgba(0, 0, 0, 0.92),
    0 0 18px rgba(2, 2, 4, 0.64),
    0 0 30px rgba(122, 216, 255, 0.06);
}

.preportal-page--call .call-cinema__header {
  z-index: 7;
}

.preportal-page--call .call-cinema__signature {
  opacity: 0.82;
  text-shadow: 0 14px 24px rgba(0, 0, 0, 0.72);
}

.preportal-page--library .preportal-library-grid .library-tile {
  transform-style: preserve-3d;
  transition:
    transform 360ms cubic-bezier(0.2, 0.72, 0.18, 1),
    border-color 260ms ease,
    box-shadow 360ms ease,
    filter 260ms ease;
}

.preportal-page--library .preportal-library-grid .library-tile::before {
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.78), rgba(226, 212, 178, 0.52)),
    rgba(247, 240, 219, 0.52);
  filter: none;
  opacity: 0.16;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.preportal-page--library .preportal-library-grid .library-tile::after {
  z-index: 1;
  opacity: 0.28;
  background:
    radial-gradient(ellipse at 50% 68%, rgba(241, 209, 132, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 58%);
  mix-blend-mode: screen;
}

.preportal-page--library .preportal-library-grid .library-tile:hover,
.preportal-page--library .preportal-library-grid .library-tile:focus,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible {
  transform: translateY(-7px) translateZ(0);
  border-color: rgba(241, 209, 132, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 34px 76px rgba(0, 0, 0, 0.54),
    0 18px 44px rgba(211, 167, 90, 0.12);
}

.preportal-page--library .preportal-library-grid .library-tile:hover::before,
.preportal-page--library .preportal-library-grid .library-tile:focus::before,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible::before {
  opacity: 0.2;
  transform: translateY(-3px) translateZ(10px);
}

.preportal-page--library .preportal-library-grid .library-tile:hover::after,
.preportal-page--library .preportal-library-grid .library-tile:focus::after,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible::after {
  opacity: 0.42;
  transform: translateY(-5px) translateZ(8px);
}

.preportal-page--library .preportal-library-grid .library-tile__cover {
  z-index: 2;
  pointer-events: none;
  filter: saturate(1.1) contrast(1.04) brightness(1.06);
  transition:
    transform 360ms cubic-bezier(0.2, 0.72, 0.18, 1),
    filter 260ms ease,
    outline-color 260ms ease,
    box-shadow 360ms ease;
}

.preportal-page--library .preportal-library-grid .library-tile:hover .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:focus .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile:focus-visible .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile--locked:hover .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile--locked:focus .library-tile__cover,
.preportal-page--library .preportal-library-grid .library-tile--locked:focus-visible .library-tile__cover {
  transform: translateY(-5px) translateZ(34px) scale(1.018);
  filter:
    saturate(1.16)
    contrast(1.06)
    brightness(1.16);
  outline-color: rgba(255, 250, 234, 0.26);
  box-shadow:
    0 38px 76px rgba(0, 0, 0, 0.72),
    0 18px 42px rgba(211, 167, 90, 0.22),
    0 0 0 1px rgba(255, 250, 234, 0.18);
}

.preportal-page--library .preportal-library-grid .library-tile__description {
  color: rgba(246, 241, 232, 0.84);
}

.preportal-page--library .library-key-final__object::before {
  opacity: 0.98;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.34) 44%, transparent 72%),
    radial-gradient(ellipse at 50% 82%, rgba(241, 209, 132, 0.16), transparent 64%);
}

.preportal-page--library .library-key-final__object::after {
  box-shadow:
    0 0 0 10px rgba(7, 4, 2, 0.96),
    0 0 0 17px rgba(117, 77, 21, 0.2),
    inset 0 0 0 10px rgba(18, 10, 3, 0.96),
    inset 0 0 0 13px rgba(219, 166, 66, 0.16),
    inset 34px 0 52px rgba(0, 0, 0, 0.7),
    inset -34px 0 52px rgba(0, 0, 0, 0.7),
    inset 0 0 86px rgba(0, 0, 0, 0.72),
    0 52px 112px rgba(0, 0, 0, 0.68);
}

.recovered-archives__screen .recovered-archives__files::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(115deg, rgba(93, 7, 7, 0.64) 0 2px, rgba(201, 44, 34, 0.88) 2px 4px, rgba(65, 5, 5, 0.58) 4px 7px),
    linear-gradient(180deg, transparent, rgba(178, 39, 31, 0.82), transparent);
  box-shadow:
    0 0 0 1px rgba(24, 2, 2, 0.68),
    0 0 16px rgba(178, 39, 31, 0.24);
  pointer-events: none;
}

.recovered-archives__screen .recovered-archives__file::after {
  background:
    radial-gradient(circle at 3px 50%, rgba(239, 198, 116, 0.95) 0 2px, rgba(113, 16, 14, 0.68) 3px 6px, transparent 7px),
    repeating-linear-gradient(115deg, rgba(88, 7, 7, 0.7) 0 2px, rgba(201, 44, 34, 0.9) 2px 4px, rgba(54, 4, 4, 0.5) 4px 7px),
    linear-gradient(90deg, rgba(139, 24, 20, 0.96), rgba(239, 190, 104, 0.34));
  opacity: 0.92;
}

.recovered-archives__controls {
  border-color: rgba(116, 213, 227, 0.26);
  background:
    linear-gradient(90deg, rgba(178, 45, 45, 0.1), transparent 18%, transparent 82%, rgba(116, 213, 227, 0.08)),
    rgba(3, 5, 8, 0.78);
}

.recovered-archives__controls::after {
  content: "DOSSIER / PLAYER";
  position: absolute;
  right: 18px;
  top: -19px;
  padding: 3px 7px;
  border: 1px solid rgba(178, 45, 45, 0.36);
  color: rgba(231, 82, 69, 0.6);
  background: rgba(3, 5, 8, 0.86);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .preportal-page--travessia .editorial-threshold--travessia {
    min-height: 92svh;
    background:
      radial-gradient(ellipse at 50% 50%, rgba(211, 167, 90, 0.08), transparent 28rem),
      linear-gradient(180deg, rgba(2, 3, 8, 0.08), rgba(2, 3, 8, 0.46) 78%, rgba(2, 3, 8, 0.8));
  }

  .preportal-page--travessia .travessia-entry-background-video {
    opacity: 0.74;
  }
}

@media (max-width: 760px) {
  .preportal-page--call > .call-cinema__header {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    z-index: 20;
    opacity: 0.74;
  }

  .preportal-page--call .call-cinema__signature {
    padding: 6px 8px;
    border: 1px solid rgba(241, 209, 132, 0.2);
    background: rgba(2, 2, 4, 0.28);
    backdrop-filter: blur(8px);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .preportal-page--call .call-official__scene--key {
    background:
      radial-gradient(ellipse at 50% 42%, rgba(211, 167, 90, 0.06), transparent 17rem),
      linear-gradient(180deg, rgba(2, 2, 4, 0.02), rgba(2, 2, 4, 0.2) 68%, rgba(2, 2, 4, 0.02));
  }

  .preportal-page--call .call-official__manifesto,
  .preportal-page--call .preportal-call {
    transform: none;
  }

  .preportal-page--call .call-official__cta {
    width: min(100%, 264px);
    min-height: 46px;
    padding: 12px 16px;
    gap: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.42),
      0 0 22px rgba(211, 167, 90, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.09);
  }

  .preportal-page--library .preportal-library-grid {
    align-items: stretch;
  }

  .preportal-page--library .preportal-library-grid .library-tile {
    min-height: auto;
    overflow: visible;
    transform: none;
  }

  .preportal-page--library .preportal-library-grid .library-tile:active,
  .preportal-page--library .preportal-library-grid .library-tile:focus,
  .preportal-page--library .preportal-library-grid .library-tile:focus-visible {
    transform: translateY(-5px);
  }

  .preportal-page--library .preportal-library-grid .library-tile__description {
    max-height: none;
    opacity: 1;
    transform: none;
    padding-top: 3px;
    padding-bottom: 10px;
    font-size: 0.62rem;
    line-height: 1.34;
  }

  .preportal-page--library .preportal-library-grid .library-tile__mood {
    padding-bottom: 4px;
  }

  .recovered-archives__screen .recovered-archives__files::before {
    left: 18px;
    right: 18px;
    top: -7px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .recovered-archives__controls::after {
    display: none;
  }

  .reader-layout {
    touch-action: pan-x pan-y pinch-zoom;
  }

  .reader-page-shell[data-render-kind="pdfjs"] .reader-page-canvas[data-loaded="true"] {
    pointer-events: auto;
  }
}

/* Fechamento da cascata: fios e alfinetes narrativos da Travessia. */
@media (width < 0px) {
.preportal-page--travessia {
  overflow-x: clip !important;
}

.preportal-page--travessia .travessia-official__flow::before,
.preportal-page--travessia .travessia-official__flow::after,
.preportal-page--travessia .travessia-official__chapter::before,
.preportal-page--travessia .travessia-official__pillars::before,
.preportal-page--travessia .travessia-official__access::before,
.preportal-page--travessia .recovered-archives::after {
  content: none !important;
  display: none !important;
}

.preportal-page--travessia .funnel-vsl-card--main > .travessia-thread-anchor,
.preportal-page--travessia .travessia-official__chapter > .travessia-thread-anchor,
.preportal-page--travessia .travessia-official__pillars > .travessia-thread-anchor,
.preportal-page--travessia .travessia-official__access > .travessia-thread-anchor,
.preportal-page--travessia .recovered-archives > .travessia-thread-anchor,
.preportal-page--travessia .funnel-cta > .travessia-thread-anchor {
  display: block !important;
}

.preportal-page--travessia .funnel-cta > .travessia-thread-anchor {
  display: none !important;
}

.preportal-page--travessia .travessia-investigation-thread {
  display: block !important;
  top: clamp(740px, 76svh, 880px) !important;
  bottom: auto !important;
  height: clamp(1680px, 230vh, 2600px) !important;
  right: max(18px, calc((100% - 1120px) / 2 + 18px)) !important;
  width: 46px !important;
  z-index: 4 !important;
  opacity: 0.62 !important;
  pointer-events: none !important;
}

.preportal-page--travessia .travessia-investigation-thread__line {
  right: 10px !important;
  width: 3px !important;
  background:
    repeating-linear-gradient(118deg, rgba(58, 4, 4, 0.68) 0 2px, rgba(179, 34, 29, 0.92) 2px 4px, rgba(82, 7, 7, 0.62) 4px 7px),
    linear-gradient(180deg, transparent, rgba(132, 17, 16, 0.88) 7%, rgba(154, 24, 21, 0.9) 92%, transparent) !important;
  box-shadow:
    0 0 0 1px rgba(22, 2, 2, 0.72),
    0 0 18px rgba(168, 35, 30, 0.22),
    0 16px 28px rgba(0, 0, 0, 0.4) !important;
}

.preportal-page--travessia .travessia-investigation-thread i {
  display: none !important;
}

.preportal-page--travessia .travessia-investigation-thread i:first-of-type {
  display: flex !important;
  top: 0 !important;
  right: -3px !important;
  opacity: 0.86 !important;
}

.preportal-page--travessia .travessia-investigation-thread i:first-of-type::after {
  width: 28px !important;
  opacity: 0.44 !important;
}

.preportal-page--travessia .travessia-investigation-thread i:nth-of-type(5) {
  display: flex !important;
  top: 100% !important;
  right: -3px !important;
  opacity: 0.88 !important;
  transform: translateY(-100%);
}

.preportal-page--travessia .travessia-investigation-thread i:nth-of-type(5)::after {
  width: 34px !important;
  opacity: 0.5 !important;
}

.preportal-page--travessia .travessia-investigation-thread i:last-of-type {
  display: none !important;
}

.preportal-page--travessia .travessia-thread-anchor {
  right: clamp(12px, 2vw, 22px) !important;
  width: 34px !important;
  height: 34px !important;
  z-index: 12 !important;
  opacity: 0.98 !important;
}

.preportal-page--travessia .travessia-thread-anchor::before {
  inset: 2px !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 247, 218, 0.98) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 62%, rgba(63, 32, 8, 0.8) 0 2px, transparent 3px),
    conic-gradient(from 218deg, rgba(75, 42, 12, 0.98), rgba(247, 213, 125, 0.98), rgba(128, 75, 23, 0.98), rgba(42, 20, 5, 0.98), rgba(217, 173, 84, 0.96), rgba(75, 42, 12, 0.98)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 232, 168, 0.58),
    0 0 0 5px rgba(48, 25, 7, 0.18),
    inset 0 2px 4px rgba(255, 255, 255, 0.28),
    inset 0 -7px 12px rgba(48, 25, 7, 0.46),
    0 12px 24px rgba(0, 0, 0, 0.56),
    0 0 16px rgba(198, 48, 38, 0.2) !important;
}

.preportal-page--travessia .travessia-thread-anchor::after {
  left: auto !important;
  right: 28px !important;
  width: min(var(--anchor-branch-length, 34px), 42px) !important;
  max-width: 42px !important;
  height: 2px !important;
  opacity: 0.68 !important;
  background:
    repeating-linear-gradient(116deg, rgba(78, 6, 6, 0.76) 0 2px, rgba(201, 44, 34, 0.92) 2px 4px, rgba(54, 4, 4, 0.54) 4px 7px),
    linear-gradient(90deg, rgba(139, 24, 20, 0.96), rgba(239, 190, 104, 0.28)) !important;
  transform: translateY(-50%) rotate(var(--anchor-branch-rotate, 1deg)) !important;
}

.preportal-page--travessia .travessia-thread-anchor em {
  display: block !important;
  left: auto !important;
  right: 58px !important;
  top: calc(50% - 18px) !important;
  min-width: 66px !important;
  padding: 5px 8px !important;
  border: 1px solid rgba(168, 42, 35, 0.48) !important;
  border-left-color: rgba(232, 190, 102, 0.68) !important;
  background:
    linear-gradient(180deg, rgba(45, 34, 23, 0.98), rgba(10, 8, 7, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px) !important;
  color: rgba(249, 234, 205, 0.92) !important;
  font-size: 0.48rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    -10px 0 18px rgba(139, 22, 18, 0.14) !important;
}

.preportal-page--travessia .travessia-thread-anchor em::before,
.preportal-page--travessia .travessia-thread-anchor em::after {
  display: none !important;
}

.preportal-page--travessia .funnel-vsl-card--main .travessia-thread-anchor {
  --anchor-branch-length: 30px !important;
  --anchor-branch-rotate: 1deg;
}

.preportal-page--travessia .funnel-vsl-card--main .travessia-thread-anchor em {
  opacity: 0.72 !important;
}

.preportal-page--travessia .travessia-official__chapter--attention .travessia-thread-anchor,
.preportal-page--travessia .travessia-official__pillars .travessia-thread-anchor {
  --anchor-branch-length: 34px !important;
  --anchor-branch-rotate: 1deg;
}

.preportal-page--travessia .travessia-official__chapter--rupture .travessia-thread-anchor {
  --anchor-branch-length: 28px !important;
  --anchor-branch-rotate: -1deg;
}

.preportal-page--travessia .travessia-official__access .travessia-thread-anchor {
  --anchor-branch-length: 34px !important;
  --anchor-branch-rotate: -1deg;
}

.preportal-page--travessia .recovered-archives .travessia-thread-anchor {
  --anchor-branch-length: 36px !important;
  --anchor-branch-rotate: 1deg;
}

.preportal-page--travessia .funnel-cta .travessia-thread-anchor {
  --anchor-branch-length: 34px !important;
  --anchor-branch-rotate: -1deg;
}

.preportal-page--travessia .travessia-official__chapter::after,
.preportal-page--travessia .travessia-official__pillars::after,
.preportal-page--travessia .travessia-official__access::after,
.preportal-page--travessia .recovered-archives__gate::after {
  content: "" !important;
  position: absolute !important;
  z-index: 6 !important;
  right: clamp(104px, 10vw, 132px) !important;
  left: auto !important;
  top: 50px !important;
  width: clamp(32px, 4.8vw, 58px) !important;
  height: 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: transparent !important;
  background:
    radial-gradient(circle at 3px 50%, rgba(239, 198, 116, 0.96) 0 2px, rgba(113, 16, 14, 0.72) 3px 6px, transparent 7px),
    repeating-linear-gradient(116deg, rgba(74, 5, 5, 0.72) 0 2px, rgba(201, 44, 34, 0.84) 2px 4px, rgba(54, 4, 4, 0.5) 4px 7px) !important;
  box-shadow:
    0 0 0 1px rgba(32, 2, 2, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.22) !important;
  opacity: 0.48 !important;
  pointer-events: none !important;
  transform: rotate(-3deg) !important;
  transform-origin: right center !important;
}

.preportal-page--travessia .travessia-official__chapter--rupture::after {
  top: 48px !important;
  width: clamp(28px, 4vw, 48px) !important;
  transform: rotate(2deg) !important;
}

.preportal-page--travessia .travessia-official__pillars::after {
  top: 54px !important;
  width: clamp(34px, 5vw, 64px) !important;
  transform: rotate(-1deg) !important;
}

.preportal-page--travessia .travessia-official__access::after {
  top: 54px !important;
  width: clamp(34px, 4.8vw, 58px) !important;
  transform: rotate(3deg) !important;
}

.preportal-page--travessia .recovered-archives__gate::after {
  top: auto !important;
  right: clamp(130px, 12vw, 176px) !important;
  bottom: clamp(42px, 5vw, 70px) !important;
  width: clamp(42px, 6vw, 78px) !important;
  opacity: 0.62 !important;
  transform: rotate(1deg) !important;
}

.preportal-page--travessia .funnel-cta::after {
  content: none !important;
  display: none !important;
}
}

.preportal-page--travessia .recovered-archives__controls::after {
  content: "E aí, vai ter coragem?" !important;
  left: clamp(42px, 5vw, 58px) !important;
  right: auto !important;
  top: -29px !important;
  display: block !important;
  padding: 4px 9px !important;
  border: 1px solid rgba(211, 167, 90, 0.38) !important;
  background: linear-gradient(180deg, rgba(45, 35, 24, 0.96), rgba(8, 7, 7, 0.92)) !important;
  color: rgba(249, 233, 198, 0.86) !important;
  font-size: 0.5rem !important;
  letter-spacing: 0.08em !important;
  text-transform: none !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.34) !important;
  pointer-events: none !important;
}

.preportal-page--travessia .recovered-archives__controls::before {
  position: absolute !important;
  left: clamp(18px, 2.4vw, 30px) !important;
  top: -18px !important;
  display: block !important;
  width: 13px !important;
  height: 13px !important;
  flex: none !important;
  opacity: 0.84 !important;
  pointer-events: none !important;
}

.preportal-page--travessia .recovered-archives__transmission::after {
  content: "" !important;
  position: absolute !important;
  left: clamp(28px, 3.4vw, 44px) !important;
  bottom: clamp(50px, 5vw, 66px) !important;
  width: clamp(34px, 5vw, 58px) !important;
  height: 2px !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 100% 50%, rgba(239, 198, 116, 0.96) 0 2px, rgba(113, 16, 14, 0.72) 3px 6px, transparent 7px),
    repeating-linear-gradient(116deg, rgba(74, 5, 5, 0.72) 0 2px, rgba(201, 44, 34, 0.84) 2px 4px, rgba(54, 4, 4, 0.5) 4px 7px) !important;
  opacity: 0.58 !important;
  pointer-events: none !important;
  transform: rotate(-2deg) !important;
}

@media (max-width: 760px) {
  .preportal-page--travessia .travessia-investigation-thread {
    left: 17px !important;
    right: auto !important;
    top: clamp(640px, 74svh, 760px) !important;
    bottom: auto !important;
    height: clamp(1460px, 220vh, 2200px) !important;
    width: 26px !important;
    opacity: 0.5 !important;
  }

  .preportal-page--travessia .travessia-investigation-thread__line {
    left: 0 !important;
    right: auto !important;
    width: 2px !important;
    opacity: 0.78 !important;
  }

  .preportal-page--travessia .travessia-investigation-thread i {
    display: none !important;
  }

  .preportal-page--travessia .travessia-official__flow {
    padding-left: 28px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor {
    left: -29px !important;
    right: auto !important;
    width: 22px !important;
    height: 22px !important;
    opacity: 0.86 !important;
  }

  .preportal-page--travessia .travessia-thread-anchor::before {
    inset: 3px !important;
    box-shadow:
      0 0 0 1px rgba(255, 232, 168, 0.44),
      0 5px 10px rgba(0, 0, 0, 0.36) !important;
  }

  .preportal-page--travessia .travessia-thread-anchor::after {
    left: 18px !important;
    width: min(var(--anchor-branch-length, 44px), 54px) !important;
    max-width: 54px !important;
    opacity: 0.52 !important;
  }

  .preportal-page--travessia .travessia-thread-anchor em {
    left: 25px !important;
    top: -9px !important;
    min-width: 52px !important;
    max-width: 78px !important;
    padding: 4px 6px !important;
    font-size: 0.42rem !important;
    letter-spacing: 0.1em !important;
  }

  .preportal-page--travessia .funnel-vsl-card--main .travessia-thread-anchor {
    --anchor-branch-length: 38px !important;
  }

  .preportal-page--travessia .travessia-official__chapter--attention .travessia-thread-anchor,
  .preportal-page--travessia .travessia-official__pillars .travessia-thread-anchor,
  .preportal-page--travessia .travessia-official__access .travessia-thread-anchor,
  .preportal-page--travessia .recovered-archives .travessia-thread-anchor,
  .preportal-page--travessia .funnel-cta .travessia-thread-anchor {
    --anchor-branch-length: 52px !important;
  }

  .preportal-page--travessia .travessia-official__chapter--rupture .travessia-thread-anchor {
    --anchor-branch-length: 34px !important;
  }

  .preportal-page--travessia .travessia-official__chapter::after,
  .preportal-page--travessia .travessia-official__pillars::after,
  .preportal-page--travessia .travessia-official__access::after,
  .preportal-page--travessia .recovered-archives__gate::after {
    left: 15px !important;
    right: auto !important;
    top: 46px !important;
    width: clamp(34px, 14vw, 52px) !important;
    opacity: 0.44 !important;
    transform: rotate(-2deg) !important;
  }

  .preportal-page--travessia .travessia-official__chapter--rupture::after {
    width: 34px !important;
  }

  .preportal-page--travessia .recovered-archives__gate::after {
    top: 58px !important;
  }

  .preportal-page--travessia .recovered-archives__controls::after {
    left: 34px !important;
    top: -24px !important;
    max-width: calc(100% - 20px) !important;
    font-size: 0.46rem !important;
  }

  .preportal-page--travessia .recovered-archives__controls::before {
    left: 12px !important;
    top: -16px !important;
    width: 11px !important;
    height: 11px !important;
  }

  .preportal-page--travessia .recovered-archives__transmission::after {
    left: 14px !important;
    bottom: 48px !important;
    width: 34px !important;
    opacity: 0.44 !important;
  }

  .recovered-archives__screen .recovered-archives__files::before {
    left: 16px !important;
    right: 16px !important;
    opacity: 0.42 !important;
  }
}

/* Missao mobile: contencao cirurgica dos quatro riscos criticos. */
@media (max-width: 760px) {
  body,
  body.is-portal-unlocked,
  body.is-reader-open {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .app-shell,
  .app-shell * {
    box-sizing: border-box;
  }

  .app-shell {
    width: 100%;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow-x: hidden;
  }

  .app-shell .workspace {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding-inline: clamp(12px, 4vw, 18px);
    overflow-x: hidden;
  }

  .app-shell .topbar {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "menu search"
      "identity identity"
      "profile profile";
    align-items: center;
    gap: 10px;
    padding: 12px;
    overflow: hidden;
  }

  .app-shell .mobile-menu-toggle {
    grid-area: menu;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 14px;
  }

  .app-shell .search-shell {
    grid-area: search;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
  }

  .app-shell .search-shell input {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .app-shell .topbar-identity {
    grid-area: identity;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 2px 4px;
  }

  .app-shell .topbar-identity__eyebrow {
    max-width: 100%;
    white-space: normal;
    line-height: 1.45;
  }

  .app-shell .topbar-identity strong {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-shell .profile-chip {
    grid-area: profile;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }

  .app-shell .profile-chip > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .app-shell .profile-chip strong,
  .app-shell .profile-chip small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-shell .profile-chip .button,
  .app-shell .portal-logout {
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 42px;
    padding-inline: 12px;
  }

  .sidebar,
  body.is-portal-ready .sidebar {
    left: max(10px, env(safe-area-inset-left));
    width: min(82vw, 310px);
    max-width: calc(100vw - 20px);
    transform: translateX(calc(-100% - 18px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.is-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    min-width: 42px;
    min-height: 42px;
  }

  .preportal-page--library {
    --pseu-book18-mobile-width: min(100%, calc(100vw - 28px));
  }

  .preportal-page--library .library-key-final {
    width: var(--pseu-book18-mobile-width) !important;
    max-width: 360px !important;
    padding: clamp(18px, 5vw, 24px) clamp(12px, 4vw, 16px) !important;
    margin-inline: auto !important;
    overflow: hidden;
    justify-items: center;
  }

  .preportal-page--library .library-key-final__copy,
  .preportal-page--library .library-key-final__copy h3,
  .preportal-page--library .library-key-final__copy p,
  .preportal-page--library .library-key-final__object,
  .preportal-page--library .library-key-final__passage {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .preportal-page--library .library-key-final__copy {
    width: 100% !important;
    text-align: center;
    justify-items: center;
  }

  .preportal-page--library .library-key-final__copy h3 {
    font-size: clamp(2rem, 10.6vw, 2.58rem) !important;
    line-height: 0.92 !important;
    letter-spacing: 0 !important;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .preportal-page--library .library-key-final__object {
    width: min(100%, 300px) !important;
    max-width: calc(100vw - 52px) !important;
    padding: clamp(16px, 5vw, 22px) !important;
    margin-inline: auto !important;
  }

  .preportal-page--library .library-key-final__object .library-tile--key-final {
    width: min(100%, 235px) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .preportal-page--library .library-key-final__passage {
    width: 100% !important;
    padding: 16px 12px !important;
  }

  .preportal-page--library .library-key-final__passage .button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
  }

  .preportal-page--travessia .recovered-archives {
    width: min(100%, calc(100vw - 26px)) !important;
    max-width: 360px !important;
    margin-inline: auto !important;
    padding: 10px !important;
    overflow: visible !important;
  }

  .preportal-page--travessia .recovered-archives__gate {
    padding: 18px 16px 20px !important;
    overflow: visible !important;
  }

  .preportal-page--travessia .recovered-archives__gate h3 {
    max-width: 100% !important;
    font-size: clamp(2.45rem, 13.2vw, 3.2rem) !important;
    line-height: 0.82 !important;
    letter-spacing: -0.01em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: manual !important;
    text-wrap: balance;
  }

  .preportal-page--travessia .recovered-archives__lead,
  .preportal-page--travessia .recovered-archives__gate p {
    max-width: 100%;
  }

  .preportal-page--travessia .recovered-archives > .travessia-thread-anchor {
    left: -22px !important;
    top: 96px !important;
    transform: none !important;
    width: 22px !important;
    height: 22px !important;
  }

  .preportal-page--travessia .recovered-archives > .travessia-thread-anchor::after {
    left: 18px !important;
    width: 34px !important;
    max-width: 34px !important;
    opacity: 0.42 !important;
  }

  .preportal-page--travessia .recovered-archives > .travessia-thread-anchor em {
    left: 25px !important;
    top: -24px !important;
    min-width: 54px !important;
    max-width: 70px !important;
    opacity: 0.88 !important;
  }

  .preportal-page--travessia .recovered-archives__gate::after {
    left: 16px !important;
    right: auto !important;
    top: auto !important;
    bottom: 72px !important;
    width: 42px !important;
    opacity: 0.38 !important;
  }

  .preportal-page--travessia .recovered-archives__enter {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px;
  }

  .preportal-page--travessia .recovered-archives__screen {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .recovered-archives__stage,
  .recovered-archives__frame,
  .recovered-archives__transmission,
  .recovered-archives__controls {
    max-width: 100%;
    box-sizing: border-box;
  }

  .recovered-archives__controls {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
  }

  .recovered-archives__controls button {
    min-height: 40px;
  }

  .reader-layout,
  .reader-shell,
  .reader-book,
  .reader-hud,
  .reader-hud__panel {
    box-sizing: border-box;
    max-width: 100vw;
  }

  .reader-layout {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .reader-shell {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    padding-inline: 10px;
  }

  .reader-book {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .reader-book__ambient {
    max-width: 100vw;
    pointer-events: none;
  }

  .reader-hud {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
  }

  .reader-hud__panel {
    width: 100% !important;
    max-width: calc(100vw - 56px) !important;
    min-width: 0 !important;
    margin-left: 40px !important;
  }

  .reader-hud__nav {
    min-width: 0;
  }

  .reader-hud__tools {
    flex-shrink: 0;
  }
}

@media (max-width: 430px) {
  .app-shell .topbar {
    padding: 10px;
    gap: 9px;
  }

  .app-shell .search-shell input {
    font-size: 0.78rem;
  }

  .app-shell .profile-chip {
    padding: 9px 10px;
  }

  .preportal-page--library .library-key-final {
    width: min(100%, calc(100vw - 22px)) !important;
  }

  .preportal-page--library .library-key-final__copy h3 {
    font-size: clamp(1.9rem, 10.2vw, 2.42rem) !important;
  }

  .preportal-page--library .library-key-final__object {
    width: min(100%, 286px) !important;
    max-width: calc(100vw - 46px) !important;
  }

  .preportal-page--library .library-key-final__object .library-tile--key-final {
    width: min(100%, 226px) !important;
  }

  .preportal-page--travessia .recovered-archives {
    width: min(100%, calc(100vw - 24px)) !important;
  }

  .preportal-page--travessia .recovered-archives__gate h3 {
    font-size: clamp(2.34rem, 12.4vw, 2.88rem) !important;
  }

  .reader-hud__panel {
    max-width: calc(100vw - 52px) !important;
    margin-left: 38px !important;
  }
}

/* Polish mobile: Portal e Reader mais compactos sem alterar fluxo. */
@media (max-width: 760px) {
  .app-shell .topbar {
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    grid-template-areas:
      "menu search search"
      "identity identity profile" !important;
    gap: 6px 8px !important;
    padding: 8px 10px !important;
    min-height: 0 !important;
  }

  .app-shell .mobile-menu-toggle {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 11px !important;
    font-size: 0.9rem !important;
  }

  .app-shell .search-shell {
    height: 38px !important;
    min-height: 38px !important;
  }

  .app-shell .search-icon {
    left: 12px !important;
    font-size: 0.82rem !important;
  }

  .app-shell .search-shell input {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 10px 0 32px !important;
    font-size: 0.74rem !important;
  }

  .app-shell .topbar-identity {
    align-items: flex-start !important;
    text-align: left !important;
    gap: 1px !important;
    padding: 0 !important;
  }

  .app-shell .topbar-identity__eyebrow {
    max-width: 100% !important;
    font-size: 0.54rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0.13em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .app-shell .topbar-identity strong {
    font-size: 0.72rem !important;
    line-height: 1.1 !important;
  }

  .app-shell .profile-chip {
    justify-self: end !important;
    width: auto !important;
    min-height: 32px !important;
    gap: 5px !important;
    padding: 4px 6px !important;
    border-radius: 12px !important;
  }

  .app-shell .profile-chip__avatar {
    display: none !important;
  }

  .app-shell .profile-chip strong {
    max-width: 76px !important;
    font-size: 0.6rem !important;
    line-height: 1.05 !important;
  }

  .app-shell .profile-chip small {
    display: none !important;
  }

  .app-shell .profile-chip .button,
  .app-shell .portal-logout,
  .portal-admin-link {
    min-width: 42px !important;
    min-height: 30px !important;
    padding: 5px 7px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.08em !important;
  }

  .portal-admin-link {
    max-width: 58px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .app-shell .section-heading {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .app-shell .section-heading h2,
  .app-shell .journey-banner h2 {
    font-size: clamp(1.45rem, 8vw, 2.1rem) !important;
    line-height: 0.98 !important;
  }

  .app-shell .section-heading p,
  .app-shell .section-heading p[data-library-note],
  .app-shell .signal-card p,
  .app-shell .operation-panel p {
    font-size: 0.82rem !important;
    line-height: 1.48 !important;
  }

  .fragment-reader {
    padding: 8px !important;
    place-items: stretch !important;
  }

  .fragment-reader__shell {
    width: 100% !important;
    max-height: calc(100svh - 16px) !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .fragment-reader__header,
  .fragment-reader__footer {
    gap: 8px !important;
    font-size: 0.76rem !important;
  }

  .fragment-reader__header button,
  .fragment-reader__footer button {
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.78rem !important;
  }

  .fragment-reader__stage {
    min-height: 0 !important;
    height: calc(100svh - 142px) !important;
  }

  .reader-shell {
    padding: 6px 8px 10px !important;
  }

  .reader-hud {
    top: max(6px, env(safe-area-inset-top)) !important;
    left: 6px !important;
    right: 6px !important;
    max-width: calc(100vw - 12px) !important;
  }

  .reader-close {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 1rem !important;
  }

  .reader-hud__panel {
    max-width: calc(100vw - 46px) !important;
    min-height: 34px !important;
    margin-left: 38px !important;
    padding: 4px 6px !important;
    gap: 5px !important;
    border-radius: 11px !important;
  }

  .reader-hud__meta {
    flex-basis: 74px !important;
    max-width: 88px !important;
  }

  .reader-hud__meta .eyebrow,
  .reader-hud__meta small,
  .reader-hud__progress small {
    display: none !important;
  }

  .reader-hud__meta strong {
    font-size: 0.68rem !important;
  }

  .reader-hud__nav {
    gap: 3px !important;
  }

  .reader-arrow,
  .reader-tool {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    font-size: 0.82rem !important;
  }

  .reader-hud__progress {
    min-width: 38px !important;
    max-width: 48px !important;
  }

  .reader-hud__progress span {
    font-size: 0.68rem !important;
  }

  .reader-book {
    max-height: calc(100svh - 58px) !important;
  }

  .reader-book__cover,
  .reader-book__spread {
    max-width: 100% !important;
    max-height: calc(100svh - 66px) !important;
  }

  .reader-page-media,
  .reader-page-canvas,
  .reader-page-pdf {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 430px) {
  .app-shell .topbar {
    padding: 7px 8px !important;
    gap: 5px 7px !important;
  }

  .app-shell .profile-chip strong {
    max-width: 64px !important;
  }

  .app-shell .profile-chip .button,
  .app-shell .portal-logout,
  .portal-admin-link {
    min-width: 38px !important;
    padding-inline: 6px !important;
    font-size: 0.54rem !important;
  }

  .reader-hud__panel {
    max-width: calc(100vw - 44px) !important;
    margin-left: 36px !important;
  }

  .reader-hud__meta {
    max-width: 72px !important;
  }
}

/* Homologacao mobile: fechamento de largura do funil principal e Biblioteca. */
@media (max-width: 760px) {
  .preportal-page--call {
    width: auto;
    max-width: none;
    margin: -18px -18px 0;
    overflow-x: clip;
  }

  .preportal-page--call .call-official__scene {
    width: 100%;
    max-width: 100%;
    justify-items: center;
  }

  .preportal-page--call .call-official__manifesto,
  .preportal-page--call .preportal-call {
    width: min(100%, 328px);
    margin-inline: auto;
    transform: none;
  }

  .preportal-page--library {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(8px, 3vw, 14px);
  }

  .preportal-page--library .editorial-threshold--library,
  .preportal-page--library .editorial-breath--library,
  .preportal-page--library .library-official__archive,
  .preportal-page--library .library-fragment,
  .preportal-page--library .library-key-final,
  .preportal-page--library .library-manifesto {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .preportal-page--library .preportal-library-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
    margin-inline: auto;
  }

  .preportal-page--library .preportal-library-grid .library-tile {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .preportal-page--library .preportal-library-grid .library-tile__title,
  .preportal-page--library .preportal-library-grid .library-tile__mood,
  .preportal-page--library .preportal-library-grid .library-tile__description,
  .preportal-page--library .preportal-library-grid .library-tile__status {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .preportal-page--library .preportal-library-grid {
    gap: 10px 7px;
  }
}
/* Sistema consolidado: linha de investigacao da Travessia. */
.preportal-page--travessia {
  overflow-x: clip !important;
}

.preportal-page--travessia .travessia-official__flow::before,
.preportal-page--travessia .travessia-official__flow::after,
.preportal-page--travessia .travessia-official__chapter::before,
.preportal-page--travessia .travessia-official__chapter::after,
.preportal-page--travessia .travessia-official__pillars::before,
.preportal-page--travessia .travessia-official__pillars::after,
.preportal-page--travessia .travessia-official__access::before,
.preportal-page--travessia .travessia-official__access::after,
.preportal-page--travessia .recovered-archives::after,
.preportal-page--travessia .recovered-archives__gate::after,
.preportal-page--travessia .recovered-archives__transmission::after,
.preportal-page--travessia .funnel-cta::after {
  content: none !important;
  display: none !important;
}

.preportal-page--travessia .travessia-investigation-thread i,
.preportal-page--travessia .travessia-investigation-thread b {
  display: none !important;
}

.preportal-page--travessia .travessia-investigation-thread {
  position: absolute !important;
  top: clamp(740px, 76svh, 880px) !important;
  right: max(8px, calc((100% - 1120px) / 2 - 82px)) !important;
  bottom: clamp(120px, 9vw, 136px) !important;
  left: auto !important;
  display: block !important;
  width: 34px !important;
  height: auto !important;
  z-index: 4 !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
}

.preportal-page--travessia .travessia-investigation-thread__line {
  position: absolute !important;
  top: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 5px !important;
  height: auto !important;
  border-radius: 999px !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.preportal-page--travessia .travessia-investigation-thread__line::before,
.preportal-page--travessia .travessia-investigation-thread__line::after {
  content: "" !important;
  position: absolute !important;
  inset: auto !important;
  display: block !important;
  border-radius: 999px !important;
  pointer-events: none !important;
  transform: rotate(-0.45deg) !important;
  transform-origin: top center !important;
}

.preportal-page--travessia .travessia-investigation-thread__line::before {
  top: 0 !important;
  right: auto !important;
  left: 0 !important;
  width: 5px !important;
  height: 50.1% !important;
  background:
    repeating-linear-gradient(116deg, rgba(72, 5, 5, 0.76) 0 2px, rgba(204, 43, 34, 0.96) 2px 4px, rgba(59, 4, 4, 0.68) 4px 7px),
    linear-gradient(180deg, transparent, rgba(158, 26, 22, 0.96) 6%, rgba(132, 17, 16, 0.94) 96%) !important;
  box-shadow:
    0 0 0 1px rgba(22, 2, 2, 0.74),
    0 0 20px rgba(178, 39, 31, 0.26),
    0 16px 28px rgba(0, 0, 0, 0.42) !important;
  opacity: 1 !important;
}

.preportal-page--travessia .travessia-investigation-thread__line::after {
  top: 50.1% !important;
  right: auto !important;
  bottom: 0 !important;
  left: 1px !important;
  width: 2px !important;
  height: auto !important;
  background:
    repeating-linear-gradient(116deg, rgba(72, 5, 5, 0.62) 0 2px, rgba(190, 40, 32, 0.82) 2px 4px, rgba(56, 4, 4, 0.5) 4px 7px) !important;
  box-shadow: 0 0 12px rgba(178, 39, 31, 0.18) !important;
  opacity: 0.78 !important;
}

.preportal-page--travessia .funnel-vsl-card--main,
.preportal-page--travessia .travessia-official__chapter,
.preportal-page--travessia .travessia-official__pillars,
.preportal-page--travessia .travessia-official__access,
.preportal-page--travessia .recovered-archives,
.preportal-page--travessia .funnel-vsl-card--offer,
.preportal-page--travessia .funnel-cta {
  overflow: visible !important;
}

.preportal-page--travessia .travessia-thread-anchor {
  --investigation-branch: 48px;
  --investigation-fine: 120px;
  position: absolute !important;
  top: 16px !important;
  right: -61px !important;
  bottom: auto !important;
  left: auto !important;
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  z-index: 15 !important;
  border-radius: 46% 54% 49% 51% !important;
  background:
    radial-gradient(ellipse at 48% 53%, transparent 0 42%, rgba(155, 25, 21, 0.94) 44% 50%, transparent 52%),
    conic-gradient(from 214deg, transparent 0 8%, rgba(102, 12, 10, 0.78) 9% 29%, transparent 30% 41%, rgba(223, 62, 44, 0.86) 42% 77%, transparent 78% 100%) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.42)) !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

.preportal-page--travessia .travessia-thread-anchor--left {
  --investigation-branch: 348px;
  --investigation-fine: 150px;
  right: -361px !important;
}

.preportal-page--travessia .travessia-thread-anchor--center {
  --investigation-branch: 178px;
  --investigation-fine: 100px;
  top: 16px !important;
  right: -189px !important;
  width: 22px !important;
  height: 22px !important;
}

.preportal-page--travessia .travessia-thread-anchor--final {
  --investigation-branch: 352px;
  --investigation-fine: 10px;
  top: 75% !important;
  right: -135px !important;
  width: 14px !important;
  height: 14px !important;
}

.preportal-page--travessia .travessia-thread-anchor--origin,
.preportal-page--travessia .travessia-thread-anchor--continuation {
  --investigation-branch: 48px;
  --investigation-fine: 40px;
  top: 32px !important;
}

.preportal-page--travessia .travessia-thread-anchor--continuation {
  right: -57px !important;
  width: 18px !important;
  height: 18px !important;
}

.preportal-page--travessia .travessia-thread-anchor::before {
  content: "" !important;
  position: absolute !important;
  inset: 4px !important;
  z-index: 3 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  border-radius: 44% 56% 51% 49% !important;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 247, 218, 0.98) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 62%, rgba(63, 32, 8, 0.82) 0 2px, transparent 3px),
    conic-gradient(from 218deg, rgba(75, 42, 12, 0.98), rgba(247, 213, 125, 0.98), rgba(128, 75, 23, 0.98), rgba(42, 20, 5, 0.98), rgba(217, 173, 84, 0.96), rgba(75, 42, 12, 0.98)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 232, 168, 0.66),
    0 0 0 4px rgba(48, 25, 7, 0.18),
    inset 0 2px 4px rgba(255, 255, 255, 0.28),
    inset 0 -7px 12px rgba(48, 25, 7, 0.46),
    0 14px 26px rgba(0, 0, 0, 0.58),
    0 0 18px rgba(198, 48, 38, 0.22) !important;
  transform: none !important;
}

.preportal-page--travessia .travessia-thread-anchor::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: 13px !important;
  left: auto !important;
  z-index: 2 !important;
  display: block !important;
  width: var(--investigation-branch) !important;
  max-width: none !important;
  height: 1.5px !important;
  border-radius: 999px !important;
  background:
    repeating-linear-gradient(116deg, rgba(74, 5, 5, 0.72) 0 2px, rgba(201, 44, 34, 0.86) 2px 4px, rgba(54, 4, 4, 0.52) 4px 7px) !important;
  box-shadow: 0 0 0 1px rgba(32, 2, 2, 0.2), 0 4px 10px rgba(0, 0, 0, 0.22) !important;
  opacity: 0.76 !important;
  transform: translateY(-50%) rotate(-1deg) !important;
  transform-origin: right center !important;
}

.preportal-page--travessia .travessia-thread-anchor--center::after {
  right: 11px !important;
}

.preportal-page--travessia .travessia-thread-anchor--continuation::after {
  right: 9px !important;
}

.preportal-page--travessia .travessia-thread-anchor--final::after {
  right: 7px !important;
}

.preportal-page--travessia .travessia-thread-anchor em {
  position: absolute !important;
  top: 50% !important;
  right: calc(13px + var(--investigation-branch)) !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 4 !important;
  display: block !important;
  min-width: 82px !important;
  max-width: 112px !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(211, 167, 90, 0.46) !important;
  border-right-color: rgba(168, 42, 35, 0.48) !important;
  background:
    linear-gradient(180deg, rgba(43, 34, 22, 0.98), rgba(8, 7, 7, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px) !important;
  color: rgba(249, 234, 205, 0.94) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  font-style: normal !important;
  font-size: 0.56rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  transform: translateY(calc(-100% - 9px)) rotate(-1deg) !important;
}

.preportal-page--travessia .travessia-thread-anchor--origin em,
.preportal-page--travessia .travessia-thread-anchor--continuation em,
.preportal-page--travessia .travessia-thread-anchor--final em {
  top: 50% !important;
  bottom: auto !important;
  left: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  border-radius: 47% 53% 50% 46% !important;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 240, 180, 0.98) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(236, 190, 86, 0.96), rgba(91, 45, 15, 0.96)) !important;
  color: transparent !important;
  font-size: 0 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 0 0 1px rgba(38, 17, 6, 0.72), 0 5px 11px rgba(0, 0, 0, 0.46) !important;
  transform: translateY(-50%) rotate(4deg) !important;
}

.preportal-page--travessia .travessia-thread-anchor--origin em {
  right: calc(8px + var(--investigation-branch)) !important;
}

.preportal-page--travessia .travessia-thread-anchor--continuation em {
  right: calc(5px + var(--investigation-branch)) !important;
  width: 8px !important;
  height: 8px !important;
}

.preportal-page--travessia .travessia-thread-anchor--final em {
  right: calc(3px + var(--investigation-branch)) !important;
  width: 8px !important;
  height: 8px !important;
}

.preportal-page--travessia .travessia-thread-anchor em::before {
  content: "" !important;
  position: absolute !important;
  top: calc(100% + 4px) !important;
  right: -5px !important;
  bottom: auto !important;
  left: auto !important;
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 240, 180, 0.98) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(236, 190, 86, 0.94), rgba(91, 45, 15, 0.94)) !important;
  box-shadow: 0 0 0 1px rgba(38, 17, 6, 0.72), 0 4px 9px rgba(0, 0, 0, 0.42) !important;
  transform: none !important;
}

.preportal-page--travessia .travessia-thread-anchor--origin em::before,
.preportal-page--travessia .travessia-thread-anchor--continuation em::before,
.preportal-page--travessia .travessia-thread-anchor--final em::before {
  content: none !important;
  display: none !important;
}

.preportal-page--travessia .travessia-thread-anchor em::after {
  content: "" !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 4px !important;
  bottom: auto !important;
  left: auto !important;
  display: block !important;
  width: var(--investigation-fine) !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(108, 13, 12, 0.38), rgba(197, 44, 36, 0.72)) !important;
  opacity: 0.72 !important;
  transform: rotate(-2deg) !important;
  transform-origin: right center !important;
}

.preportal-page--travessia .travessia-thread-anchor--origin em::after,
.preportal-page--travessia .travessia-thread-anchor--continuation em::after,
.preportal-page--travessia .travessia-thread-anchor--final em::after {
  top: 50% !important;
  right: 100% !important;
  left: auto !important;
  height: 1px !important;
  transform: translateY(-50%) rotate(-2deg) !important;
  transform-origin: right center !important;
}

.preportal-page--travessia .travessia-thread-anchor--center em {
  right: calc(11px + var(--investigation-branch)) !important;
}

.preportal-page--travessia .travessia-thread-anchor--transition::before {
  box-shadow:
    0 0 0 1px rgba(255, 232, 168, 0.72),
    0 0 0 5px rgba(128, 24, 18, 0.18),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -6px 10px rgba(48, 25, 7, 0.5),
    0 14px 26px rgba(0, 0, 0, 0.58),
    0 0 22px rgba(207, 55, 42, 0.3) !important;
}

.preportal-page--travessia .travessia-thread-anchor--fragment::before {
  box-shadow:
    0 0 0 1px rgba(176, 236, 244, 0.5),
    0 0 0 4px rgba(38, 89, 99, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -7px 12px rgba(48, 25, 7, 0.46),
    0 14px 28px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(57, 222, 235, 0.24) !important;
}

.preportal-page--travessia .travessia-white-threshold,
.preportal-page--travessia .travessia-pink-environment,
.preportal-page--travessia .travessia-official__offer-prologue {
  position: relative !important;
  overflow: visible !important;
}

.preportal-page--travessia .travessia-stitch-pin {
  --investigation-stitch: 248px;
  position: absolute !important;
  top: 50% !important;
  right: -6px !important;
  z-index: 14 !important;
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 45% 55% 49% 51% !important;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 241, 187, 0.98) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(230, 181, 79, 0.96), rgba(84, 42, 14, 0.96)) !important;
  box-shadow:
    0 0 0 1px rgba(43, 19, 6, 0.76),
    0 5px 12px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(184, 45, 35, 0.14) !important;
  transform: translateY(-50%) rotate(3deg) !important;
  pointer-events: none !important;
}

.preportal-page--travessia .travessia-stitch-pin::before {
  content: "" !important;
  position: absolute !important;
  inset: -4px !important;
  display: block !important;
  border-radius: 48% 52% 46% 54% !important;
  background: conic-gradient(from 206deg, transparent 0 13%, rgba(157, 26, 21, 0.86) 14% 43%, transparent 44% 61%, rgba(205, 51, 39, 0.78) 62% 84%, transparent 85% 100%) !important;
  filter: drop-shadow(0 0 5px rgba(168, 35, 29, 0.2)) !important;
}

.preportal-page--travessia .travessia-stitch-pin::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  width: var(--investigation-stitch) !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(176, 39, 32, 0.66), rgba(109, 16, 14, 0.3)) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22) !important;
  opacity: 0.68 !important;
  transform: translateY(-50%) rotate(-0.8deg) !important;
  transform-origin: left center !important;
}

.preportal-page--travessia .travessia-stitch-pin--passage {
  --investigation-stitch: 336px;
  top: 52% !important;
}

.preportal-page--travessia .travessia-stitch-pin--archive-open {
  --investigation-stitch: 178px;
  right: -8px !important;
  width: 16px !important;
  height: 16px !important;
  box-shadow:
    0 0 0 1px rgba(43, 19, 6, 0.78),
    0 7px 15px rgba(0, 0, 0, 0.52),
    0 0 19px rgba(219, 70, 119, 0.22) !important;
}

.preportal-page--travessia .travessia-stitch-pin--last-voice {
  --investigation-stitch: 248px;
  top: 58% !important;
}

@media (max-width: 760px) {
  .preportal-page--travessia {
    overflow-x: hidden !important;
  }

  .preportal-page--travessia .travessia-investigation-thread {
    top: clamp(640px, 74svh, 760px) !important;
    right: auto !important;
    bottom: 148px !important;
    left: 16px !important;
    width: 24px !important;
    z-index: 8 !important;
    opacity: 0.96 !important;
  }

  .preportal-page--travessia .travessia-investigation-thread__line {
    right: auto !important;
    left: 0 !important;
    width: 3px !important;
    background:
      repeating-linear-gradient(116deg, rgba(72, 5, 5, 0.78) 0 2px, rgba(204, 43, 34, 0.98) 2px 4px, rgba(59, 4, 4, 0.7) 4px 7px) left top / 3px 49.74% no-repeat,
      repeating-linear-gradient(116deg, rgba(104, 10, 9, 0.82) 0 2px, rgba(216, 53, 42, 0.94) 2px 4px, rgba(92, 7, 7, 0.78) 4px 7px) 1px bottom / 2px 50.26% no-repeat !important;
    filter: drop-shadow(0 0 5px rgba(177, 38, 31, 0.28)) !important;
    opacity: 1 !important;
  }

  .preportal-page--travessia .travessia-investigation-thread__line::before,
  .preportal-page--travessia .travessia-investigation-thread__line::after {
    content: none !important;
    display: none !important;
  }

  .preportal-page--travessia .travessia-thread-anchor,
  .preportal-page--travessia .travessia-thread-anchor--left,
  .preportal-page--travessia .travessia-thread-anchor--center {
    --investigation-branch: 32px;
    --investigation-fine: 36px;
    top: 16px !important;
    right: auto !important;
    left: -34px !important;
    width: 16px !important;
    height: 16px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--origin {
    top: 32px !important;
  }

  .preportal-page--travessia .travessia-official__chapter > .travessia-thread-anchor,
  .preportal-page--travessia .travessia-official__pillars > .travessia-thread-anchor {
    --investigation-branch: 28px;
    --investigation-fine: 30px;
    top: 14px !important;
    left: -31px !important;
    width: 12px !important;
    height: 12px !important;
  }

  .preportal-page--travessia .travessia-official__pillars > .travessia-thread-anchor {
    --investigation-branch: 24px;
    --investigation-fine: 28px;
    top: 0 !important;
  }

  .preportal-page--travessia .travessia-official__access > .travessia-thread-anchor {
    top: 16px !important;
  }

  .preportal-page--travessia .recovered-archives > .travessia-thread-anchor--center {
    --investigation-branch: 44px;
    --investigation-fine: 44px;
    top: 78% !important;
    right: auto !important;
    left: -34px !important;
    width: 16px !important;
    height: 16px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--continuation {
    --investigation-branch: 32px;
    --investigation-fine: 28px;
    top: 32px !important;
    right: auto !important;
    left: -33px !important;
    width: 14px !important;
    height: 14px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--final {
    --investigation-branch: 30px;
    --investigation-fine: 10px;
    top: calc(75% - 28px) !important;
    right: auto !important;
    left: -10px !important;
    width: 12px !important;
    height: 12px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor::before {
    inset: 3px !important;
  }

  .preportal-page--travessia .travessia-official__chapter > .travessia-thread-anchor::before,
  .preportal-page--travessia .travessia-official__pillars > .travessia-thread-anchor::before {
    inset: 2px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--continuation::before,
  .preportal-page--travessia .travessia-thread-anchor--final::before {
    inset: 2px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor::after {
    top: 50% !important;
    right: auto !important;
    left: 8px !important;
    width: var(--investigation-branch) !important;
    height: 1px !important;
    transform: translateY(-50%) rotate(1deg) !important;
    transform-origin: left center !important;
  }

  .preportal-page--travessia .travessia-official__chapter > .travessia-thread-anchor::after,
  .preportal-page--travessia .travessia-official__pillars > .travessia-thread-anchor::after {
    left: 6px !important;
  }

  .preportal-page--travessia .recovered-archives > .travessia-thread-anchor--center::after {
    right: auto !important;
    left: 8px !important;
    width: var(--investigation-branch) !important;
    max-width: none !important;
    height: 1px !important;
    transform: translateY(-50%) rotate(1deg) !important;
    transform-origin: left center !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--continuation::after {
    left: 7px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--final::after {
    left: 6px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor em {
    top: 50% !important;
    right: auto !important;
    left: calc(8px + var(--investigation-branch)) !important;
    min-width: 60px !important;
    max-width: 88px !important;
    padding: 4px 6px !important;
    font-size: 0.46rem !important;
    letter-spacing: 0.1em !important;
    transform: translateY(calc(-100% - 7px)) rotate(1deg) !important;
  }

  .preportal-page--travessia .travessia-official__chapter > .travessia-thread-anchor em,
  .preportal-page--travessia .travessia-official__pillars > .travessia-thread-anchor em {
    left: calc(6px + var(--investigation-branch)) !important;
  }

  .preportal-page--travessia .recovered-archives > .travessia-thread-anchor--center em {
    top: 50% !important;
    right: auto !important;
    left: calc(8px + var(--investigation-branch)) !important;
    transform: translateY(calc(-100% - 7px)) rotate(1deg) !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--origin em,
  .preportal-page--travessia .travessia-thread-anchor--continuation em,
  .preportal-page--travessia .travessia-thread-anchor--final em {
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 8px !important;
    height: 8px !important;
    padding: 0 !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    transform: translateY(-50%) rotate(4deg) !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--origin em {
    left: calc(4px + var(--investigation-branch)) !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--continuation em {
    left: calc(3px + var(--investigation-branch)) !important;
    width: 7px !important;
    height: 7px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--final em {
    left: calc(2px + var(--investigation-branch)) !important;
    width: 7px !important;
    height: 7px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor em::before {
    top: calc(100% + 3px) !important;
    right: auto !important;
    left: -4px !important;
    width: 8px !important;
    height: 8px !important;
  }

  .preportal-page--travessia .recovered-archives > .travessia-thread-anchor--center em::before {
    top: calc(100% + 3px) !important;
    right: auto !important;
    left: -4px !important;
    width: 8px !important;
    height: 8px !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--origin em::before,
  .preportal-page--travessia .travessia-thread-anchor--continuation em::before,
  .preportal-page--travessia .travessia-thread-anchor--final em::before {
    content: none !important;
    display: none !important;
  }

  .preportal-page--travessia .travessia-thread-anchor em::after {
    top: calc(100% + 6px) !important;
    right: auto !important;
    left: 4px !important;
    width: var(--investigation-fine) !important;
    transform: rotate(2deg) !important;
    transform-origin: left center !important;
  }

  .preportal-page--travessia .recovered-archives > .travessia-thread-anchor--center em::after {
    top: calc(100% + 6px) !important;
    right: auto !important;
    left: 4px !important;
    width: var(--investigation-fine) !important;
    transform: rotate(2deg) !important;
    transform-origin: left center !important;
  }

  .preportal-page--travessia .travessia-thread-anchor--origin em::after,
  .preportal-page--travessia .travessia-thread-anchor--continuation em::after,
  .preportal-page--travessia .travessia-thread-anchor--final em::after {
    top: 50% !important;
    right: auto !important;
    left: 100% !important;
    height: 1px !important;
    transform: translateY(-50%) rotate(2deg) !important;
    transform-origin: left center !important;
  }

  .preportal-page--travessia .travessia-stitch-pin,
  .preportal-page--travessia .travessia-stitch-pin--archive-open,
  .preportal-page--travessia .travessia-stitch-pin--last-voice {
    --investigation-stitch: 34px;
    right: auto !important;
    left: -5px !important;
    width: 10px !important;
    height: 10px !important;
  }

  .preportal-page--travessia .travessia-stitch-pin--archive-open {
    --investigation-stitch: 32px;
    left: -6px !important;
    width: 12px !important;
    height: 12px !important;
  }

  .preportal-page--travessia .travessia-stitch-pin--last-voice {
    --investigation-stitch: 35px;
  }

  .preportal-page--travessia .travessia-stitch-pin::after {
    right: 50% !important;
    left: auto !important;
    width: var(--investigation-stitch) !important;
    opacity: 0.76 !important;
    transform: translateY(-50%) rotate(0.8deg) !important;
    transform-origin: right center !important;
  }
}

@media (min-width: 410px) and (max-width: 760px) {
  .preportal-page--travessia .travessia-investigation-thread__line {
    background-size: 3px 50.74%, 2px 49.26% !important;
  }
}
