/* Ecos de uma Canção · página "em breve"
   Paleta e tipos tirados da capa final: Cinzel no título, Caladea no texto,
   céu de fim de tarde sobre a Serra do Curral e as luzes de Belo Horizonte. */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-normal-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caladea"; src: url("../fonts/caladea-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caladea"; src: url("../fonts/caladea-normal-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caladea"; src: url("../fonts/caladea-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* céu (o JS anima estes três para o anoitecer) */
  --sky-top: #a17f66;
  --sky-mid: #d98e54;
  --sky-low: #f8a75a;
  /* chão e tinta */
  --earth: #3b2a27;
  --earth-deep: #2a1e1c;
  --ink: #553627;
  --gold: #e7b66a;
  --cream: #fcf1da;
  --cream-dim: rgba(252, 241, 218, 0.72);
  --line: rgba(231, 182, 106, 0.28);

  --serif-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --serif-text: "Caladea", "Cambria", Georgia, serif;

  --land-h: clamp(260px, 50svh, 64vw);
  --gutter: clamp(16px, 3.2vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--earth);
  color: var(--cream);
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  overscroll-behavior: none;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 80;
  padding: 8px 14px; border-radius: 999px;
  background: var(--cream); color: var(--earth); text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* ───────────────────────── Abertura ───────────────────────── */

.loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; animation: loader-failsafe 0.8s ease 15s forwards; }
/* Rede de segurança: se o JS não subir, a abertura some sozinha depois de 15 s. */
.js-ready .loader { animation: none; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.lid { position: absolute; left: 0; right: 0; height: 56%; will-change: transform; }
.lid--top { top: 0; background: linear-gradient(to bottom, var(--earth-deep), var(--earth) 70%); }
.lid--bottom { bottom: 0; background: linear-gradient(to top, var(--earth-deep), var(--earth) 70%); }
.lid--top::after, .lid--bottom::after { content: ""; position: absolute; left: 0; right: 0; height: 48px; }
.lid--top::after { bottom: -48px; background: linear-gradient(to bottom, var(--earth), rgba(59, 42, 39, 0)); }
.lid--bottom::after { top: -48px; background: linear-gradient(to top, var(--earth), rgba(59, 42, 39, 0)); }

.loader__dots { position: absolute; inset: 0; pointer-events: none; }
.loader__dot {
  position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 6px 2px rgba(255, 233, 170, 0.55), 0 0 18px 4px rgba(231, 182, 106, 0.25);
}

.loader__inner { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); max-width: 34rem; }
.loader__line { margin: 0; font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35; opacity: 0; }
.loader__line--soft { margin-top: 0.35em; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--cream-dim); }
.loader__count {
  margin: 0.35em 0 0; font-family: var(--serif-display); font-weight: 400;
  font-size: clamp(4.5rem, 14vw, 8.5rem); line-height: 1; color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums; opacity: 0;
}
.loader__done { margin: 0.5em 0 0; min-height: 1.6em; font-style: italic; color: var(--cream-dim); }
.loader__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.4rem; }
.loader__actions[hidden] { display: flex; visibility: hidden; } /* guarda o espaço: o texto não pula quando os botões aparecem */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0.55em 1.35em; border-radius: 999px;
  font-size: 1rem; letter-spacing: 0.01em;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--gold); color: var(--earth-deep); }
.btn--primary:hover { background: #f1c785; }
.btn--ghost { border: 1px solid var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--small { min-height: 38px; padding: 0.35em 1.05em; font-size: 0.95rem; border: 1px solid var(--line); }
.btn--small[aria-pressed="true"] { background: var(--gold); color: var(--earth-deep); border-color: var(--gold); }

/* ───────────────────────── Cena ───────────────────────── */

.scene { position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; outline: none; isolation: isolate; touch-action: manipulation; }

.sky {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 46%, var(--sky-low) 68%, var(--sky-low) 100%);
}
.sky::after {
  /* o brilho baixo do sol que já foi, atrás da serra */
  content: ""; position: absolute; left: 62%; bottom: calc(var(--land-h) - 18svh);
  width: 120vw; height: 52svh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 200, 128, var(--glow, 0.5)), rgba(255, 200, 128, 0));
  pointer-events: none;
}
.sky__stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.birds { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bird {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  display: grid; place-items: center; pointer-events: auto; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bird svg { width: var(--bird-w, 18px); height: auto; overflow: visible; }
.bird path { fill: none; stroke: var(--bird-ink, var(--ink)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.landscape { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: var(--land-h); }
.ridges, .lights { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lights { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ───────────────────────── Título ───────────────────────── */

.title-block {
  position: absolute; z-index: 4; left: 50%; top: clamp(56px, 11svh, 140px);
  transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  pointer-events: none;
}
.title {
  --big: min(10.4vw, 17svh, 10.5rem);
  margin: 0; display: grid; justify-items: start;
  font-family: var(--serif-display); font-weight: 500; text-transform: uppercase;
  color: var(--title-ink, var(--ink)); line-height: 0.92; letter-spacing: 0.01em;
}
.title__line { position: relative; display: block; pointer-events: auto; cursor: pointer; white-space: nowrap; }
.title__line--ecos { font-size: var(--big); }
.title__line--de { font-size: calc(var(--big) * 0.42); justify-self: end; margin: 0.12em 0 0.62em; letter-spacing: 0.02em; }
.title__line--cancao { font-size: var(--big); margin-left: 0.18em; }
.title .char { display: inline-block; white-space: pre; will-change: transform, opacity; }
.echo-ghost { position: absolute; inset: 0; pointer-events: none; white-space: nowrap; opacity: 0; will-change: transform, opacity; }

/* ───────────────────────── Créditos ───────────────────────── */

.credits {
  position: absolute; z-index: 4; left: 50%; bottom: calc(var(--land-h) * 0.34);
  transform: translateX(-50%); text-align: center; color: var(--gold);
  text-shadow: 0 1px 2px rgba(42, 30, 28, 0.35), 0 0 18px rgba(42, 30, 28, 0.55);
  pointer-events: none; width: max-content; max-width: calc(100vw - 2 * var(--gutter));
}
.credits p { margin: 0; }
.credits__genre { font-style: italic; font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.2; }
.credits__author { margin-top: 0.15em !important; font-size: clamp(1.45rem, 2.6vw, 2.15rem); line-height: 1.25; letter-spacing: 0.01em; }
.credits__soon {
  pointer-events: auto; margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.7em; min-height: 44px;
  font-family: var(--serif-display); font-size: clamp(0.95rem, 1.4vw, 1.15rem); letter-spacing: 0.08em;
  color: var(--cream); padding: 0.4em 1.15em; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(42, 30, 28, 0.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: border-color 0.3s, background-color 0.3s;
}
.credits__soon:hover { border-color: var(--gold); background: rgba(42, 30, 28, 0.55); }
.credits__wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.credits__wave i { display: block; width: 2px; height: 100%; border-radius: 2px; background: var(--gold); transform: scaleY(0.2); }

/* ───────────────────────── Barra de baixo ───────────────────────── */

.dock {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap;
  padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(42, 30, 28, 0.78), rgba(42, 30, 28, 0));
}
.hint { min-height: 44px; font-style: italic; color: var(--cream-dim); font-size: 0.98rem; text-align: left; transition: color 0.25s; }
.hint:hover { color: var(--cream); }
.dock__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.dock__link { min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--cream); transition: color 0.25s, background-color 0.25s; }
.dock__link:hover { color: var(--gold); background: rgba(252, 241, 218, 0.06); }
.mixer-toggle {
  width: 44px; height: 44px; margin-left: 6px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: border-color 0.25s, background-color 0.25s;
}
.mixer-toggle svg { width: 20px; height: 20px; fill: var(--earth); stroke: var(--cream); stroke-width: 1.4; stroke-linecap: round; }
.mixer-toggle:hover, .mixer-toggle[aria-expanded="true"] { border-color: var(--gold); }
.mixer-toggle.is-live { background: rgba(231, 182, 106, 0.16); }
.mixer-toggle.is-live svg { stroke: var(--gold); }

/* ───────────────────────── Mesa de som ───────────────────────── */

.mixer {
  position: absolute; z-index: 7; right: var(--gutter); bottom: 78px; width: min(300px, calc(100vw - 2 * var(--gutter)));
  padding: 18px 18px 16px; border-radius: 16px;
  background: rgba(42, 30, 28, 0.93); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(20, 12, 10, 0.45);
  transform-origin: 90% 100%;
}
.mixer[hidden] { display: none; }
.mixer__quote { margin: 0 0 14px; font-style: italic; color: var(--cream-dim); font-size: 0.95rem; line-height: 1.4; }
.mixer__strips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.strip { display: grid; justify-items: center; gap: 8px; padding: 10px 0 8px; border-radius: 10px; background: rgba(252, 241, 218, 0.04); cursor: pointer; }
.strip__name { font-size: 0.9rem; color: var(--cream); }
.strip__meter { position: relative; width: 6px; height: 44px; border-radius: 3px; background: rgba(252, 241, 218, 0.08); overflow: hidden; }
.strip__meter i {
  position: absolute; inset: 0; background: linear-gradient(to top, var(--gold), #f6d79c 70%, #ffb38a);
  transform: scaleY(0); transform-origin: bottom;
}
.strip input[type="range"] {
  writing-mode: vertical-lr; direction: rtl; appearance: none; -webkit-appearance: none;
  width: 28px; height: 110px; margin: 0; background: transparent; cursor: grab;
}
.strip input[type="range"]::-webkit-slider-runnable-track { width: 4px; border-radius: 2px; background: rgba(252, 241, 218, 0.18); }
.strip input[type="range"]::-moz-range-track { width: 4px; border-radius: 2px; background: rgba(252, 241, 218, 0.18); }
.strip input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 14px; margin-left: -11px; border-radius: 3px;
  background: linear-gradient(var(--cream), #d9c9ab); box-shadow: inset 0 -2px 0 rgba(85, 54, 39, 0.35), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.strip input[type="range"]::-moz-range-thumb {
  width: 26px; height: 14px; border: 0; border-radius: 3px;
  background: linear-gradient(var(--cream), #d9c9ab); box-shadow: inset 0 -2px 0 rgba(85, 54, 39, 0.35), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.mixer__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.mixer__count { font-size: 0.85rem; color: var(--cream-dim); font-style: italic; text-align: right; }

/* ───────────────────────── Ecos (citações que aparecem) ───────────────────────── */

.echoes { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.echo {
  position: absolute; left: 0; top: 0; width: max-content; max-width: min(34ch, calc(100vw - 2 * var(--gutter)));
  font-style: italic; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.4; color: var(--cream);
  text-shadow: 0 1px 2px rgba(42, 30, 28, 0.6), 0 0 24px rgba(42, 30, 28, 0.6);
  text-wrap: balance;
}
.echo p { margin: 0; }
.echo__src { display: block; margin-top: 0.45em; font-style: normal; font-size: 0.78em; color: var(--gold); letter-spacing: 0.02em; }
.echo .echo-ghost { color: var(--gold); text-shadow: none; white-space: normal; }
.echo--card {
  overflow: hidden; padding: 18px 20px; border-radius: 14px; background: rgba(42, 30, 28, 0.85); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: none;
}
.notebook { margin: 0; }
.echo--notebook .echo__src { text-align: right; }
.notebook img { display: block; width: min(300px, 70vw); height: auto; transform: rotate(-1.5deg); filter: drop-shadow(0 14px 26px rgba(10, 6, 5, 0.5)); }

.ripple {
  position: absolute; z-index: 5; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  border: 1px solid rgba(255, 236, 190, 0.85); pointer-events: none;
}

/* ───────────────────────── Folha lateral (sinopse, sumário, autor) ───────────────────────── */

.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 12, 10, 0.5); }
.sheet-backdrop[hidden] { display: none; }
.sheet {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
  background: linear-gradient(to bottom, var(--earth-deep), var(--earth) 30%);
  border-left: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
  padding: max(20px, env(safe-area-inset-top)) clamp(22px, 4vw, 44px) 40px;
}
.sheet[hidden] { display: none; }
.sheet__close {
  position: sticky; top: 0; float: right; z-index: 2; min-height: 44px; margin: 0 -8px 8px 0; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(42, 30, 28, 0.92);
}
.sheet__close:hover { border-color: var(--gold); color: var(--gold); }
.sheet__body { clear: both; padding-top: 8px; }
.sheet h2 { margin: 0.4em 0 0.6em; font-family: var(--serif-display); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1.1; color: var(--gold); }
.sheet h3 { margin: 2em 0 0.6em; font-family: var(--serif-display); font-weight: 500; font-size: 1.15rem; color: var(--gold); }
.sheet p { margin: 0 0 1em; max-width: 62ch; }
.sheet .lead { font-style: italic; font-size: 1.2rem; color: var(--gold); line-height: 1.45; }
.sheet .muted { color: var(--cream-dim); font-size: 0.95rem; }
.sheet .fineprint { margin-top: 2.4em; color: var(--cream-dim); font-size: 0.85rem; }

.setlist { list-style: none; margin: 0; padding: 0; }
.setlist li { border-top: 1px solid rgba(231, 182, 106, 0.16); }
.setlist li:last-child { border-bottom: 1px solid rgba(231, 182, 106, 0.16); }
.track { width: 100%; display: grid; grid-template-columns: 2.2em 1fr auto; align-items: baseline; gap: 0 0.6em; padding: 0.7em 0; text-align: left; }
.track[disabled] { cursor: default; }
.track__n { font-family: var(--serif-display); color: var(--gold); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.track__name { font-size: 1.05rem; }
.track__tag { font-size: 0.8rem; font-style: italic; color: var(--cream-dim); }
.track__quote { grid-column: 2 / 4; margin-top: 0.45em; font-style: italic; color: var(--cream-dim); line-height: 1.45; }
.track__quote[hidden] { display: none; }
.track:not([disabled]):hover .track__name { color: var(--gold); }
.setlist-rest { margin-top: 1.2em; font-style: italic; color: var(--cream-dim); }

.cover { float: right; width: clamp(108px, 30%, 150px); margin: 0.2em 0 1em 1.2em; shape-outside: margin-box; }
.cover img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 18px 40px rgba(10, 6, 5, 0.55), 0 2px 0 rgba(255, 255, 255, 0.04); transform: rotate(1.2deg); }
.author { margin: 0 0 1.4em; }
.author img { display: block; width: 112px; height: 144px; object-fit: cover; border-radius: 6px; }
.author figcaption { margin-top: 6px; font-size: 0.8rem; color: var(--cream-dim); }

.sheet .follow__label { margin-bottom: 0.25em; }
.ig-link { white-space: nowrap; text-decoration: none; }
.ig-link:hover { color: var(--cream); }
.ig-link svg {
  display: inline-block; width: 1.05em; height: 1.05em; margin-right: 0.3em; vertical-align: -0.17em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
}
.ig-link .ig-dot { fill: currentColor; stroke: none; }

/* ───────────────────────── Lugares (setas) ───────────────────────── */

.destinations { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.dest { position: absolute; inset: 0; will-change: transform, opacity; }
.dest[hidden] { display: none; }
.dest svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.dest.is-live .dest-hit { pointer-events: auto; cursor: pointer; }
/* a borda que entra na tela vem esfumada (--soft vai de 46% a 0% na chegada) */
.dest--escola { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--soft, 0%)); mask-image: linear-gradient(to right, transparent 0, #000 var(--soft, 0%)); }
.dest--ouro { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--soft, 0%)); mask-image: linear-gradient(to left, transparent 0, #000 var(--soft, 0%)); }
.dest--estrada { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--soft, 0%)); mask-image: linear-gradient(to bottom, transparent 0, #000 var(--soft, 0%)); }
.dest--ouro.is-live { pointer-events: auto; cursor: pointer; }
.dest-sign { font-family: var(--serif-text); letter-spacing: 0.01em; }
/* a janela do meio do sobrado: o vídeo do Lucas fica atrás da ilustração, que tem o vidro recortado */
.dest-window { --s: 1; position: absolute; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(#ffdba0, #eea15a); }
.dest-window video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.dest-window__floor {
  position: absolute; left: 0; right: 0; top: 85%; bottom: 0;
  background:
    radial-gradient(38% 30% at 50% 0%, rgba(43, 26, 18, 0.45), rgba(43, 26, 18, 0) 70%),
    linear-gradient(to bottom, #c08350, #9a5f36 60%, #84502d);
  box-shadow: inset 0 calc(1.5px * var(--s)) 0 rgba(255, 228, 186, 0.55);
}
.dest-sign--italic { font-style: italic; }
.sky, .lights { touch-action: none; }

/* ───────────────────────── Lista de espera ───────────────────────── */

.credits__cta { margin-top: 0.2rem !important; }
.credits__notify {
  pointer-events: auto; min-height: 44px; padding: 0 0.6em; color: var(--gold); font-style: italic;
  text-decoration: underline; text-underline-offset: 0.28em; text-decoration-color: rgba(231, 182, 106, 0.5);
  transition: color 0.25s;
}
.credits__notify:hover { color: var(--cream); }

.waitlist { position: relative; display: grid; gap: 16px; margin-top: 1.4rem; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 0.95rem; color: var(--cream-dim); }
.field__box { position: relative; display: block; }
.waitlist input:is([type="text"], [type="email"], [type="tel"]) {
  width: 100%; min-height: 50px; padding: 10px 44px 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(252, 241, 218, 0.06); color: var(--cream); font: inherit; font-size: 16px; letter-spacing: 0.01em;
  transition: border-color 0.2s, background-color 0.2s;
}
.waitlist input::placeholder { color: rgba(252, 241, 218, 0.32); }
.waitlist input:is([type="text"], [type="email"], [type="tel"]):focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); background: rgba(252, 241, 218, 0.09); }
.waitlist input[aria-invalid="true"] { border-color: #e48a6a; }
.field__ok {
  position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--gold); opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.25s var(--ease-out);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.field.is-valid .field__ok { opacity: 1; transform: none; }
.field__hint { font-size: 0.85rem; color: var(--cream-dim); }
.field__error { min-height: 1.2em; font-size: 0.88rem; color: #f2a68a; }
.field__error:empty { min-height: 0; }
.privacy { margin: 0.4rem 0 0 !important; font-size: 0.84rem; line-height: 1.5; color: var(--cream-dim); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; line-height: 1.45; color: var(--cream-dim); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--gold); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 !important; color: #f2a68a; font-size: 0.95rem; }
.form-error:empty { display: none; }
.waitlist .btn { justify-self: start; }
.waitlist-done { margin-top: 1.4rem; }

/* ───────────────────────── Entre Palcos (o segredo final) ───────────────────────── */


.song {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px;
  background: rgba(20, 12, 10, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.song__card {
  position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  padding: 28px 24px 18px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--earth-deep), var(--earth));
  box-shadow: 0 30px 80px rgba(10, 6, 5, 0.55);
}
.song__close {
  position: absolute; top: 14px; right: 14px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(42, 30, 28, 0.9);
}
.song__close:hover { border-color: var(--gold); color: var(--gold); }
.song__title { margin: 0.2em 0 0.35em; font-family: var(--serif-display); font-weight: 500; font-size: clamp(1.9rem, 6vw, 2.5rem); color: var(--gold); line-height: 1.05; }
.song__lead { margin: 0 0 1rem; font-style: italic; color: var(--cream); max-width: 34ch; }
.song__player { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.song__foot { margin: 0.8rem 0 0; font-size: 0.9rem; }

/* ───────────────────────── Post-it e caderninho ───────────────────────── */

.postit {
  margin: 0; padding: 14px 16px; max-width: 22ch; background: #f2d16b; color: #3b2a27;
  font-style: normal; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3;
  transform: rotate(-2deg); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ───────────────────────── Sem JS ───────────────────────── */

.noscript { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 20px; text-align: center; background: var(--earth); }

/* ───────────────────────── Telas estreitas e baixas ───────────────────────── */

@media (max-width: 720px) {
  :root { --land-h: clamp(240px, 50svh, 130vw); }
  .title { --big: min(18vw, 12.5svh); }
  .title-block { top: clamp(44px, 12svh, 110px); }
  .credits { bottom: calc(var(--land-h) * 0.4); }
  .dock { justify-content: center; padding-top: 8px; }
  .hint { width: 100%; min-height: 30px; text-align: center; font-size: 0.92rem; }
  .dock__actions { margin: 0 auto; }
  .dock__link { padding: 0 9px; }
  .mixer { bottom: 104px; }
  .sheet { border-left: 0; }
  .credits__soon { margin-top: 0.7rem; }
  .song__card { padding: 24px 18px 16px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root { --land-h: 54svh; }
  .title-block { top: 16px; }
  .title { --big: min(9vw, 15svh); }
  .credits { bottom: calc(var(--land-h) * 0.42); }
  .credits__soon { margin-top: 0.4rem; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ───────────────────────── 404: o mirante ───────────────────────── */

.page-silence { overflow: auto; }
.silence {
  min-height: 100svh; display: grid; align-items: center; padding: 24px clamp(16px, 6vw, 72px);
  background: linear-gradient(to right, rgba(42, 30, 28, 0.92), rgba(42, 30, 28, 0.55) 55%, rgba(42, 30, 28, 0.1)), url("../img/serra-mirante.webp") 70% 100% / cover no-repeat;
}
.silence__box { max-width: 30rem; }
.silence__code { margin: 0; font-family: var(--serif-display); color: var(--gold); font-size: clamp(3rem, 10vw, 5rem); line-height: 1; }
.silence__quote { margin: 1rem 0 0.4rem; font-style: italic; font-size: 1.25rem; }
.silence__text { margin: 0 0 2rem; color: var(--cream-dim); }
.silence__back { text-decoration: none; }

/* ───────────────────────── Área do autor ───────────────────────── */

.page-author { overflow: auto; }
.author-area {
  min-height: 100svh; display: grid; place-items: center; padding: 24px 16px;
  background: linear-gradient(rgba(42, 30, 28, 0.82), rgba(42, 30, 28, 0.94)), url("../img/serra-mirante.webp") center / cover no-repeat;
}
.author-card {
  width: min(460px, 100%); padding: 32px clamp(20px, 5vw, 36px); border-radius: 18px;
  background: rgba(42, 30, 28, 0.9); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(10, 6, 5, 0.5);
}
.author-card__book { margin: 0; font-family: var(--serif-display); color: var(--gold); letter-spacing: 0.06em; font-size: 0.95rem; }
.author-card__title { margin: 0.2em 0 1.2em; font-family: var(--serif-display); font-weight: 500; font-size: 2rem; color: var(--cream); }
.author-login { display: grid; gap: 14px; }
.author-login input {
  width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(252, 241, 218, 0.06); color: var(--cream); font: inherit; font-size: 16px;
}
.author-login input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.author-login .btn { justify-self: start; }
.author-login[hidden], .author-panel[hidden] { display: none; }
.author-stat { margin: 0; font-size: 1.15rem; }
.author-stat strong { font-family: var(--serif-display); font-size: 3rem; color: var(--gold); font-weight: 500; line-height: 1; margin-right: 0.15em; }
.author-panel h2 { margin: 1.6em 0 0.6em; font-family: var(--serif-display); font-weight: 500; font-size: 1.1rem; color: var(--gold); }
.author-recent { list-style: none; margin: 0; padding: 0; }
.author-recent li { display: flex; justify-content: space-between; gap: 12px; padding: 0.55em 0; border-top: 1px solid rgba(231, 182, 106, 0.16); }
.author-recent time { color: var(--cream-dim); font-size: 0.9rem; white-space: nowrap; }
.author-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }
.author-actions a { text-decoration: none; }

/* luzes que respiram nas cenas (lampiões, janelas, farol) */
.dest-glow { mix-blend-mode: screen; pointer-events: none; }
