:root {
  --bg: #0a120e;
  --surface: #14231b;
  --line: rgba(217, 164, 65, 0.22);
  --gold: #d9a441;
  --gold-light: #f2cf7e;
  --sunset: #e0702c;
  --water: #3aa7c9;
  --text: #ece4d2;
  --muted: #a9b3a6;
  --display: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h2 { font-family: var(--display); line-height: 1.15; color: var(--gold-light); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sunset);
  margin-bottom: 0.8rem;
}

.local {
  font-family: var(--display);
  font-size: clamp(1.25rem, 3.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #b9802a);
  color: #1b1307;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 30px -10px rgba(217, 164, 65, 0.6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(217, 164, 65, 0.75); }
.btn--ghost {
  background: rgba(10, 18, 14, 0.35);
  color: var(--gold-light);
  border-color: var(--gold);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(217, 164, 65, 0.12); box-shadow: none; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon .dot { fill: currentColor; stroke: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(224, 112, 44, 0.55), transparent 70%),
    linear-gradient(180deg, #060b09 0%, #13201a 40%, #3a2414 66%, #120d08 100%);
}
.moon {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(46vw, 440px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #ffd08a, #e0702c 55%, #9a3d14 100%);
  box-shadow: 0 0 120px 30px rgba(224, 112, 44, 0.35);
  opacity: 0.9;
}
.layer, .river, .dino { position: absolute; left: 0; width: 100%; }
.layer--far { bottom: 22%; height: 32%; fill: #1a2a20; opacity: 0.9; }
.layer--mid { bottom: 12%; height: 30%; fill: #0f1c15; }
.layer--near { bottom: 0; height: 26%; fill: #060c09; }
.river { bottom: 6%; height: 14%; fill: rgba(58, 167, 201, 0.35); filter: blur(1px); }
.dino { fill: #050a07; width: auto; }
.dino--brachio { left: 8%; bottom: 26%; height: 30%; opacity: 0.85; }
.dino--rex {
  left: auto;
  right: 10%;
  bottom: 15%;
  height: 24%;
  filter: drop-shadow(0 0 14px rgba(224, 112, 44, 0.35));
  animation: breathe 5s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes breathe { 50% { transform: scaleY(1.015); } }
.fog {
  position: absolute;
  inset: auto -20% 0 -20%;
  height: 45%;
  background:
    radial-gradient(ellipse 40% 50% at 30% 70%, rgba(200, 210, 200, 0.12), transparent 70%),
    radial-gradient(ellipse 35% 45% at 70% 80%, rgba(200, 210, 200, 0.1), transparent 70%);
  animation: drift 22s linear infinite alternate;
}
@keyframes drift { to { transform: translateX(10%); } }
.fireflies, .fireflies::before, .fireflies::after {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 70%, #ffcf7a, transparent),
    radial-gradient(2px 2px at 28% 82%, #ffcf7a, transparent),
    radial-gradient(1.5px 1.5px at 44% 64%, #ffcf7a, transparent),
    radial-gradient(2px 2px at 63% 76%, #ffcf7a, transparent),
    radial-gradient(1.5px 1.5px at 81% 68%, #ffcf7a, transparent),
    radial-gradient(2px 2px at 92% 84%, #ffcf7a, transparent);
  animation: float 9s ease-in-out infinite alternate;
}
.fireflies::before { content: ""; transform: translate(4%, -6%); animation-duration: 12s; opacity: 0.7; }
.fireflies::after { content: ""; transform: translate(-6%, -12%); animation-duration: 15s; opacity: 0.5; }
@keyframes float {
  0% { translate: 0 0; opacity: 0.3; }
  50% { opacity: 1; }
  100% { translate: 2% -4%; opacity: 0.4; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6) 100%);
}

.hero__content { padding: 3rem 16px 5rem; max-width: 760px; }
.hero__title { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.hero__logo {
  width: min(82vw, 430px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(224, 112, 44, 0.45)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
  animation: rise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.92); } }
.hero__lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--gold-light);
  max-width: 560px;
  margin: 0 auto 1.4rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; }
.chips li {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 14, 0.55);
  backdrop-filter: blur(4px);
  font-size: 0.86rem;
  color: #e3dccb;
}
.chips strong { color: var(--gold-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

.footer {
  position: absolute;
  bottom: 1.2rem;
  left: 0;
  right: 0;
  font-size: 0.78rem;
  color: rgba(236, 228, 210, 0.55);
}
.footer a { color: rgba(242, 207, 126, 0.75); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: var(--gold-light); }

/* ===== Botão da trilha ===== */
.trilha {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 14, 0.6);
  backdrop-filter: blur(6px);
  color: var(--gold-light);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.trilha:hover { border-color: var(--gold); }
.trilha svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trilha .falante { fill: currentColor; stroke: none; }
.trilha .ondas { display: none; }
.trilha[aria-pressed="true"] .ondas { display: inline; animation: pulsar 1.4s ease-in-out infinite; }
.trilha[aria-pressed="true"] .mudo { display: none; }
.trilha[aria-pressed="false"] { animation: chamar 3s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: 0.35; } }
@keyframes chamar { 50% { box-shadow: 0 0 0 6px rgba(217, 164, 65, 0.15); } }

/* ===== Lista de espera ===== */
.modal {
  margin: auto;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 2rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #16261d, #0c1611);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal::backdrop { background: rgba(3, 6, 4, 0.75); backdrop-filter: blur(4px); }
.modal[open] { animation: pop 0.3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { color: var(--gold-light); }
.modal__head { text-align: center; margin-bottom: 1.4rem; }
.modal__head h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal__head p:last-child { color: var(--muted); font-size: 0.92rem; }

.form { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: rgba(10, 18, 14, 0.75);
  border: 1px solid rgba(217, 164, 65, 0.3);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: #66705f; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.2); }
.field.is-invalid input { border-color: #e2563b; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 0.25rem; accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.check.is-invalid span { color: #f08a72; }
.form__msg { min-height: 1.4em; font-size: 0.9rem; text-align: center; }
.form__msg.is-error { color: #f08a72; }

.form.is-done { text-align: center; padding: 1rem 0; }
.form__success h3 { font-family: var(--display); color: var(--gold-light); font-size: 1.5rem; margin: 0.6rem 0; }
.form__success p { color: var(--muted); }
.form__success .big { font-size: 3rem; }

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

@media (max-width: 600px) {
  body { font-size: 16px; }
  .dino--brachio { height: 20%; left: -6%; bottom: 28%; }
  .dino--rex { height: 16%; right: -2%; }
  .moon { top: 34%; }
  .hero__actions .btn { width: 100%; }
  .hero__content { padding-top: 4.5rem; }
}
