/* Carrossel de eventos do NEM-NEM.
   Cada evento é uma tela inteira com a estética da sua festa; a navegação é
   rolagem horizontal com encaixe, mais as setas e as teclas. */

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  height: 100%;
  /* dvh: no celular a barra de endereço recolhe e o 100% deixava uma faixa
     do fundo amarelo aparecendo embaixo das outras cenas. O fundo geral é
     branco — cada cena pinta o seu — para nenhuma sobra sair colorida. */
  height: 100dvh;
  background: #fff;
  overscroll-behavior: none;
}

body {
  overflow: hidden;
}

.rail {
  display: flex;
  height: 100%;
  height: 100dvh;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.event {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  overflow: hidden;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Evento 1 — amarelo, Times, preto
   -------------------------------------------------------------------------- */

.event--yellow {
  background: #ffec00;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  overflow-y: auto;
}

.event__inner {
  width: min(760px, 100% - 8vmin);
  margin: 0 auto;
  padding: calc(32px + 7vmin) 0 12vmin;
  text-align: center;
}

.ev1__title {
  margin: 0 0 4vmin;
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: .01em;
}

.ev1__poster {
  margin: 0 auto 5vmin;
  width: min(560px, 100%);
  border: 2px solid #000;
  line-height: 0;
  box-shadow:
    0 18px 34px -20px rgba(0, 0, 0, .28),
    0 6px 12px -8px rgba(0, 0, 0, .16);
}

.ev1__poster img {
  display: block;
  width: 100%;
  height: auto;
}

.ev1__label {
  margin: 0 0 1.2vmin;
  font-size: clamp(15px, 1.3vw, 19px);
  letter-spacing: .06em;
}

.ev1__notes {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.9;
  text-wrap: pretty;
}

.ev1__tickets {
  display: inline-block;
  margin-top: 5vmin;
  font-size: clamp(18px, 1.9vw, 26px);
  color: #000;
  text-decoration: underline;
  text-underline-offset: .22em;
  letter-spacing: .02em;
}

.ev1__tickets:hover { text-decoration-thickness: 2px; }

/* O mon do coletivo, no lugar onde o cartaz de referência tinha o smiley. */
.ev1__mon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 9vmin auto 0;
  opacity: .9;
}

/* --------------------------------------------------------------------------
   Evento 2 — branco, chuva de caracteres, cartaz no meio
   -------------------------------------------------------------------------- */

.event--matrix {
  display: grid;
  place-items: center;
  background: #fff;
}

.matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ev2__stack {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 3.2vmin;
}

.ev2__poster {
  max-height: 68vh;
  max-width: min(58vw, 620px);
  width: auto;
  background: #fff;
  box-shadow:
    0 0 0 1px #000,
    0 20px 38px -22px rgba(0, 0, 0, .3),
    0 6px 14px -10px rgba(0, 0, 0, .18);
  animation: poster-float 7s ease-in-out infinite;
}

.ev2__link {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(16px, 1.6vw, 24px);
  color: #000;
  text-decoration: underline;
  text-underline-offset: .24em;
  letter-spacing: .04em;
  background: #fff;
  padding: .1em .35em;
}

.ev2__link:hover { background: #000; color: #fff; }

@keyframes poster-float {
  0%, 100% { transform: translateY(-0.8vh) rotate(-0.4deg); }
  50% { transform: translateY(0.9vh) rotate(0.4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ev2__poster { animation: none; }
}

/* --------------------------------------------------------------------------
   Navegação
   -------------------------------------------------------------------------- */

/* Setas nas laterais, pretas — aparecem no amarelo, no branco e no rosa. */
.rail__arrow {
  position: fixed;
  top: 50%;
  z-index: 9;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  opacity: .5;
  transform: translateY(-50%);
  transition: opacity .18s ease, transform .18s ease;
}

.rail__arrow:hover { opacity: 1; }
.rail__arrow:active { transform: translateY(calc(-50% + 1px)); }

.rail__arrow--prev { left: 1.4vmin; }
.rail__arrow--next { right: 1.4vmin; }

@media (max-width: 700px) {
  .rail__arrow { width: 2.6rem; font-size: 22px; }
}


/* A seta da ponta desaparece: não existe evento para aquele lado. */
.rail__arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Cena ainda não anunciada — a mesma letra do "Em breve." das fases
   -------------------------------------------------------------------------- */

.event--soon {
  display: grid;
  place-items: center;
  background-color: #fff;
  background-image: url("/bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.teaser__title {
  position: relative;
  margin: 0;
  display: inline-block;
  font-family: "Sazanami Gothic", "MS Gothic", monospace;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 104px);
  line-height: 1;
  letter-spacing: .04em;
  filter:
    drop-shadow(0 2px 2px rgba(58, 50, 78, .38))
    drop-shadow(0 10px 18px rgba(58, 50, 78, .30));
}

.teaser__title::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  z-index: 0;
  color: #fff;
  -webkit-text-stroke: clamp(6px, .55vw, 14px) #fff;
}

.teaser__title span {
  position: relative;
  z-index: 1;
  color: #a1a8c3;
}

@media (max-width: 600px) {
  .teaser__title { font-size: clamp(28px, 11vw, 56px); }
}

/* No celular a navegação é o próprio deslize: as setas saem da tela. */
@media (hover: none) and (pointer: coarse) {
  .rail__arrow { display: none; }
}
