/* Bus Experience · página pública. Identidade MadGod: roxo do logótipo sobre fundo escuro. Cores em :root, logótipo em /static/brand */
@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url('/static/fonts/oswald-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('/static/fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url('/static/fonts/oswald-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('/static/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('/static/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url('/static/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #0D0910; --bg2: #140D18; --card: #1B1220; --card2: #231828; --line: #392841; --line2: #4A3554;
  --bone: #F4ECF2; --soft: #CDBFCF; --muted: #95839A; --accent: #C653D3; --accent-deep: #6A1E77; --accent-soft: #E6B2EE; --ok: #38E08C;
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif; --body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--bone); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--bone); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

/* topo */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13, 9, 16, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand b { font: 700 22px/1 var(--display); letter-spacing: .08em; }
.brand span { font: 500 12px/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--accent-soft); border-left: 1px solid var(--line2); padding-left: 10px; }
.brand img { height: 48px; width: auto; display: block; }
.brand { align-items: center; }
.brand span { white-space: nowrap; }
@media (max-width: 430px) { .brand span { display: none; } .langs a { padding: 8px 7px; } }
.langs { display: flex; gap: 4px; }
.langs a { font: 500 12px/1 var(--display); letter-spacing: .14em; text-decoration: none; color: var(--muted); padding: 8px 9px; border-radius: 8px; }
.langs a.on { color: var(--bone); background: var(--card2); }

/* capa */
.hero { position: relative; overflow: hidden; padding-block: 64px 56px; background:
  radial-gradient(ellipse 70% 60% at 85% 10%, rgba(180, 68, 192, .34), transparent 70%),
  radial-gradient(ellipse 60% 50% at 0% 100%, rgba(106, 30, 119, .30), transparent 70%), var(--bg); }
.hero.has-photo { background-size: cover; background-position: center; }
.kicker { font: 500 13px/1 var(--display); letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.hero h1 { font: 700 clamp(48px, 10vw, 112px)/.92 var(--display); text-transform: uppercase; margin: 0; letter-spacing: .01em; text-wrap: balance; }
.hero .tag { font-size: clamp(19px, 2.4vw, 24px); margin: 18px 0 8px; max-width: 32ch; color: var(--bone); text-wrap: balance; }
.hero .intro { color: var(--soft); max-width: 58ch; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { font-size: 14px; border: 1px solid var(--line); background: rgba(30, 21, 38, .7); border-radius: 999px; padding: 7px 14px; color: var(--soft); }
.price { margin-top: 26px; display: flex; align-items: baseline; gap: 10px; }
.price b { font: 600 40px/1 var(--display); }
.price span { color: var(--muted); }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.hero-acts .cta { margin-top: 0; }
.more { color: var(--soft); font-size: 15px; text-underline-offset: 4px; }
.more:hover { color: var(--bone); }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; background: var(--accent); color: #17071b; text-decoration: none; font: 600 16px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 16px 24px; border-radius: 12px; }

/* reserva */
.book { scroll-margin-top: 64px; padding-block: 48px 64px; background: var(--bg2); border-top: 1px solid rgba(255,255,255,.05); }
.book h2 { font: 600 34px/1.1 var(--display); text-transform: uppercase; margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.step { font: 500 13px/1 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.trips { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; padding-right: 2px; }
.trip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card2); }
.trip input { position: absolute; opacity: 0; }
.trip .d { font: 600 18px/1.2 var(--display); display: inline-block; }
.trip .d::first-letter, .ticket .info dd::first-letter { text-transform: uppercase; }
.trip .p { color: var(--muted); font-size: 13px; }
.trip .s { font-size: 13px; color: var(--soft); white-space: nowrap; }
.trip .s.low { color: var(--accent); }
.trip:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: #2a1930; }
.trip:has(input:focus-visible) { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.trip.full { opacity: .45; cursor: not-allowed; }
.empty { color: var(--soft); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--soft); min-width: 0; }
label.f small { color: var(--muted); font-size: 12.5px; }
input[type=text], input[type=email], input[type=tel], select {
  width: 100%; font: 16px var(--body); color: var(--bone); background: #120c17; border: 1px solid var(--line2); border-radius: 10px; padding: 12px 13px; }
input:focus, select:focus { outline: 2px solid var(--accent-soft); outline-offset: 1px; border-color: transparent; }
.pax { display: flex; align-items: center; gap: 10px; }
.pax button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card2); color: var(--bone); font-size: 22px; cursor: pointer; }
.pax input { width: 70px; text-align: center; font: 600 20px var(--display); }
.voucher-ok { color: var(--ok); font-size: 13.5px; }
.voucher-bad { color: #ffb4bc; font-size: 13.5px; }
.warn { margin-top: 18px; border-left: 3px solid var(--accent); background: rgba(180, 68, 192, .12); padding: 12px 14px; border-radius: 0 10px 10px 0; font-size: 14px; color: var(--soft); }
.warn b { display: block; color: var(--bone); font: 600 14px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.warn p { margin: 4px 0; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 14.5px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checks input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.sum { margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.sum .l { color: var(--muted); font-size: 14px; }
.sum .v { font: 600 32px/1 var(--display); }
.sum .v s { color: var(--muted); font-size: 18px; margin-right: 8px; }
.pay { width: 100%; margin-top: 14px; padding: 17px; border: 0; border-radius: 12px; background: var(--accent); color: #17071b; font: 600 17px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.pay:disabled { opacity: .5; cursor: not-allowed; }
.secure { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; text-align: center; }
.error { background: #3a0f18; border: 1px solid #7d1d2c; color: #ffd6db; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.testbar { background: var(--accent-soft); color: #1d0a22; text-align: center; font: 600 13px/1.3 var(--body); padding: 8px 12px; }

/* páginas simples e bilhete */
.page { padding-block: 56px 72px; min-height: 60vh; }
.page h1 { font: 600 clamp(32px, 6vw, 52px)/1.05 var(--display); text-transform: uppercase; margin: 0 0 14px; text-wrap: balance; }
.page p { color: var(--soft); max-width: 60ch; }
.btn { display: inline-block; margin-top: 12px; background: var(--card2); border: 1px solid var(--line2); color: var(--bone); text-decoration: none; padding: 13px 18px; border-radius: 10px; font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.btn.red { background: var(--accent); border-color: var(--accent); color: #17071b; }
.ticket { max-width: 440px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ticket .head { padding: 22px 22px 16px; background: linear-gradient(135deg, #3a1442, #170f1d); }
.ticket .head h1 { font-size: 30px; margin: 4px 0 0; }
.ticket .qr { background: #fff; padding: 18px; margin: 0 22px; border-radius: 14px; }
.ticket .qr svg { display: block; width: 100%; height: auto; }
.ticket .info { padding: 18px 22px 22px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.ticket .info dt { color: var(--muted); }
.ticket .info dd { margin: 0; text-transform: none; }
.ticket .note { padding: 0 22px 22px; color: var(--soft); font-size: 14px; }
.ticket .state { margin: 16px 22px 0; padding: 12px 14px; border-radius: 10px; background: #3a0f18; color: #ffd6db; font-weight: 500; }
.ticket.cancelled .qr { opacity: .15; }
.ref { font: 600 22px var(--display); letter-spacing: .12em; }

footer { border-top: 1px solid rgba(255,255,255,.06); padding-block: 26px 40px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer a { color: var(--soft); }

/* interação: foco visível, toque rápido, estados ao passar o rato, menos movimento quando pedido */
a, button, label, input { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline-offset: 1px; }
.cta, .pay, .btn, .langs a, .trip, .pax button, .more { transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .2s ease; }
.cta:hover, .pay:hover:not(:disabled), .btn.red:hover { background: #D46AE0; }
.btn:hover { border-color: var(--accent-soft); }
.langs a:hover { color: var(--bone); }
.trip:hover { border-color: var(--line2); background: #2a1d30; }
.pax button:hover { background: #2f2236; }
.cta:active, .pay:active:not(:disabled), .btn:active, .pax button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ===== MadBus · página para turistas =====
   Roxo e sangue sobre quase-preto, fumo, grão, textura grunge e botões em cápsula, como no madgod.pt.
   Letra: Archivo, uma só família variável. Títulos largos (wdth 125, peso 800), rótulos a meia largura, texto normal.
   O que é só do MadBus: o autocarro na capa e a noite (Suba, Grite, Jante) a passar entre duas filas de dentes. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100% 125%; font-display: swap;
  src: url('/static/fonts/archivo-latin-var.woff2') format('woff2-variations'), url('/static/fonts/archivo-latin-var.woff2') format('woff2'); }
.is-home {
  --bg: #08040C; --bg2: #0E0714; --card: #150C1C; --card2: #1E1228; --line: rgba(244, 236, 246, .12); --line2: rgba(244, 236, 246, .22);
  --bone: #F4ECF6; --soft: #D8CCDD; --muted: #B6A6BE; --accent: #B14EE6; --accent-soft: #D27BFF; --accent-deep: #4A1565; --blood: #D6304A;
  --display: 'Archivo', 'Arial Black', sans-serif; --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif; --mono: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gum: #8E1720; --tooth: #F0E4C4; --tooth2: #D3BE8F; --m: clamp(18px, 3vw, 40px); --jaw: clamp(64px, 8.4vw, 124px); --bar: 0px; --r: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1); --soft-ease: cubic-bezier(.22, .61, .36, 1);
  background: var(--bg); font-family: var(--body); }
/* larguras da Archivo: títulos esticados para os lados, rótulos a meio caminho */
.is-home h1, .is-home h2, .is-home .price b, .verb, .is-home .book .step, .is-home .book .trip .d, .is-home .book .warn b, .is-home .book .sum .v, .mouth__next b, .qa__q { font-variation-settings: "wdth" 125; }
.is-home .langs a, .top__cta, .cover__meta p, .villains figcaption, .mouth__next, .stage__t b, .qa__n, .is-home main .cta, .buybar .cta, .is-home .book .pay { font-variation-settings: "wdth" 112; }
.is-home::selection, .is-home ::selection { background: var(--accent); color: #fff; }
/* grão por cima de tudo, como no madgod.pt */
.is-home::after { content: ''; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.is-home :focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; }
.is-home .testbar { position: relative; z-index: 7; }

/* topo */
.is-home .top { position: absolute; left: 0; right: 0; top: auto; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; z-index: 6; }
.is-home .top .wrap { max-width: none; padding-inline: var(--m); }
.is-home .brand { margin-right: auto; }
.is-home .brand img { height: 46px; filter: drop-shadow(0 4px 22px rgba(177, 78, 230, .5)); }
.is-home .langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font: 600 12px/1 var(--mono); letter-spacing: .14em; color: var(--bone); border-radius: 999px; }
.is-home .langs a.on { background: none; color: var(--accent-soft); }
.top__cta { display: none; }
@media (min-width: 761px) {
  .is-home .brand img { height: 62px; }
  .top__cta { display: inline-block; order: 2; padding: 11px 20px; border: 1px solid rgba(177, 78, 230, .6); border-radius: 999px; font: 600 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--bone); transition: background-color .3s, transform .3s var(--ease); }
  .top__cta:hover { background: var(--accent); transform: translateY(-1px); }
}

/* o botão do MadGod: cápsula, a cor sobe de baixo ao passar */
.is-home main .cta, .buybar .cta, .is-home .book .pay { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 58px; margin: 0; padding: 0 34px; border: 0; border-radius: 999px; background: var(--accent); color: #12051A; box-shadow: none;
  font: 700 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform 180ms var(--ease); }
.is-home main .cta::before, .buybar .cta::before, .is-home .book .pay::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent-soft); transform: translateY(101%); transition: transform .45s var(--ease); }
.is-home main .cta:hover::before, .buybar .cta:hover::before, .is-home .book .pay:hover::before { transform: none; }
.is-home main .cta::after, .buybar .cta::after { content: ''; width: 18px; height: 10px; background: currentColor; transition: transform .35s var(--ease);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'><path d='M0 4.2h14.6L11.4 1 12.5 0 18 5l-5.5 5-1.1-1 3.2-3.2H0z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'><path d='M0 4.2h14.6L11.4 1 12.5 0 18 5l-5.5 5-1.1-1 3.2-3.2H0z'/></svg>") center/contain no-repeat; }
.is-home main .cta:hover::after, .buybar .cta:hover::after { transform: translateX(4px); }
.is-home main .cta:active, .buybar .cta:active, .is-home .book .pay:active { transform: scale(.97); }

/* capa: frase, texto, botão e preço numa só coluna, ao centro do ecrã */
.is-home:has(.testbar) { --tb: 50px; }
@media (min-width: 761px) { .is-home:has(.testbar) { --tb: 33px; } }
.cover { position: relative; min-height: calc(100svh - var(--tb, 0px)); overflow: hidden; background: var(--bg); isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px var(--m) calc(40px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.cover__ph { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
/* o fundo respira: entra a desfocar, anda devagar de um lado para o outro, segue o rato e aproxima-se com o scroll (--p, --mx, --my vêm do home.js) */
.cover__cam { position: absolute; inset: 0; will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * -1.6%), calc(var(--my, 0) * -1.2% + var(--p, 0) * 9%), 0) scale(calc(1.04 + var(--p, 0) * .16)); }
.cover__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 44% 50%; filter: saturate(1.1) contrast(1.05);
  animation: img-in 2s var(--soft-ease) both, img-pan 24s ease-in-out 2s infinite alternate; }
.js .cover__img { animation-play-state: paused; }
.js .cover__img.ok { animation-play-state: running; }
@keyframes img-in { from { opacity: 0; filter: blur(18px) saturate(1.1) brightness(.6); transform: scale(1.12); } to { transform: scale(1.04); } }
@keyframes img-pan { from { transform: scale(1.04) translateX(-1.2%); } to { transform: scale(1.1) translateX(1.4%); } }
/* vinheta, sombra ao centro para a frase e neblina roxa e de sangue; mantém-se se o WebGL falhar */
.cover::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(75% 48% at 50% 50%, rgba(8, 4, 12, .62) 0%, rgba(8, 4, 12, .3) 55%, transparent 80%),
  linear-gradient(to top, var(--bg) 0%, rgba(8, 4, 12, .55) 22%, rgba(8, 4, 12, 0) 45%),
  linear-gradient(to bottom, rgba(8, 4, 12, .8) 0%, rgba(8, 4, 12, 0) 28%),
  radial-gradient(55% 40% at 84% 78%, rgba(150, 25, 55, .22) 0%, transparent 60%); }
.cover__smoke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: calc(1 - var(--p, 0) * .9); }
/* ao descer, a frase e o resto sobem, desfocam e desaparecem */
.cover__h, .cover__foot { opacity: calc(1 - var(--p, 0) * 1.4); transform: translate3d(0, calc(var(--p, 0) * -90px), 0); filter: blur(calc(var(--p, 0) * 10px)); will-change: opacity, transform; }
.cover__foot { transform: translate3d(0, calc(var(--p, 0) * -50px), 0); }
.cover__h { margin: 0; font: 800 12.4vw/.98 var(--display); text-transform: uppercase; letter-spacing: -.012em; text-wrap: balance; }
html[lang=fr] .cover__h, html[lang=es] .cover__h { font-size: 11.6vw; }
.cover__a, .cover__b { display: block; }
.cover__b { color: var(--accent-soft); }
.rc { display: inline-block; vertical-align: top; }
/* cada letra forma-se a partir de um desfoque, da esquerda para a direita */
.ri { display: inline-block; animation: char-form 1.5s var(--soft-ease) both; animation-delay: var(--i); }
@keyframes char-form { 0% { opacity: 0; filter: blur(16px); transform: translateY(.14em) scale(1.3); } 60% { filter: blur(2px); } 100% { opacity: 1; filter: blur(0); transform: none; } }

/* névoa roxa entre a capa e os vilões: cresce enquanto se desce */
.mist { position: relative; z-index: 5; height: 0; pointer-events: none; overflow-x: clip; overflow-y: visible; }
.mist::before { content: ''; position: absolute; left: 0; right: 0; top: -26vh; height: 52vh;
  background: radial-gradient(40% 50% at 30% 50%, rgba(177, 78, 230, .34), transparent 70%), radial-gradient(38% 46% at 72% 55%, rgba(120, 40, 180, .3), transparent 70%), radial-gradient(30% 40% at 52% 45%, rgba(214, 48, 74, .14), transparent 70%);
  filter: blur(40px); opacity: calc(.25 + var(--p, 0) * .75); transform: translate3d(0, calc(var(--p, 0) * -8vh), 0) scaleY(calc(.7 + var(--p, 0) * .5));
  animation: mist-drift 16s ease-in-out infinite alternate; }
@keyframes mist-drift { from { background-position: -6vw 0, 6vw 0, 0 0; } to { background-position: 6vw 0, -6vw 0, 0 0; } }
.cover__foot { margin-top: 26px; width: 100%; display: grid; justify-items: center; gap: 20px; }
.cover__sub { margin: 0; font-size: 17px; line-height: 1.5; max-width: 38ch; text-wrap: pretty; }
.cover__buy { display: grid; justify-items: center; gap: 8px; }
.cover__code { margin: 0; color: var(--ok); font: 600 13px/1.3 var(--mono); }
.cover__meta { display: grid; justify-items: center; gap: 6px; }
.cover .price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.cover .price b { font: 800 24px/1 var(--display); }
.cover .price span { color: var(--bone); font-size: 14px; }
.cover__meta p { margin: 0; font: 600 11px/1.7 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.js [data-hero] { animation: hero-in 1.2s var(--ease) both; }
.js .cover__sub[data-hero] { animation-delay: 1.1s; }
.js .cover__buy[data-hero] { animation-delay: 1.3s; }
.js .cover__meta[data-hero] { animation-delay: 1.5s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } }
@media (min-width: 761px) {
  .cover { padding: 120px var(--m) 56px; }
  .cover__img { object-position: 50% 62%; }
  .cover__h, html[lang=fr] .cover__h, html[lang=es] .cover__h { font-size: min(6.4vw, 12svh); }
  .cover__foot { margin-top: 34px; gap: 24px; }
  .cover__sub { font-size: 19px; max-width: 44ch; }
  .cover .price b { font-size: 30px; }
}

/* zonas escuras: textura grunge que desliza devagar com o scroll e se funde no preto em cima e em baixo */
.villains, .mouth, .faq, .is-home .book { position: relative; isolation: isolate; overflow: clip; background: var(--bg); }
.villains::before, .mouth::before, .faq::before, .is-home .book::before { content: ''; position: absolute; inset: -14% 0; z-index: -2; pointer-events: none;
  background: url('/static/img/madbus/grunge-1200.webp') center / cover no-repeat; }
.villains::after, .mouth::after, .faq::after, .is-home .book::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 0%, rgba(8, 4, 12, 0) 20%, rgba(8, 4, 12, 0) 80%, var(--bg) 100%); }
.faq::before { opacity: .6; }
@media (min-width: 900px) {
  .villains::before, .mouth::before, .faq::before, .is-home .book::before { background-image: url('/static/img/madbus/grunge-2400.webp'); }
}
@supports (animation-timeline: view()) {
  .villains::before, .mouth::before, .faq::before, .is-home .book::before { animation: grunge-drift linear both; animation-timeline: view(); }
  @keyframes grunge-drift { from { transform: translateY(-7%); } to { transform: translateY(7%); } }
}

/* os vilões, logo a seguir à capa */
.villains { padding-block: clamp(64px, 11vh, 130px) clamp(48px, 8vh, 96px); }
.villains__head { padding-inline: var(--m); display: grid; gap: 18px; }
.villains h2, .mouth h2 { margin: 0; font: 800 clamp(30px, 5.2vw, 84px)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
.villains__head p { text-wrap: pretty; margin: 0; font-size: 18px; line-height: 1.5; max-width: 46ch; }
.villains__row { list-style: none; margin: 34px 0 0; padding: 0 var(--m) 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 74vw; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); scrollbar-width: none; }
.villains__row::-webkit-scrollbar { display: none; }
.villains__row li { scroll-snap-align: start; }
.villains figure { margin: 0; }
.villains__ph { overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--r); background: var(--card); }
.villains__ph img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.2s var(--ease), filter .6s; }
.villains figure:hover img { transform: scale(1.08); filter: saturate(1.12); }
.villains figcaption { margin-top: 12px; font: 600 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--accent-soft); }
@media (min-width: 761px) {
  .villains h2 { max-width: 14em; }
  .villains__row { margin-top: 56px; grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding-bottom: 44px; }
  .villains__row li:nth-child(even) { transform: translateY(44px); }
}

/* a ponte para dentro da boca */
.mouth { padding: clamp(56px, 9vh, 110px) var(--m) clamp(72px, 11vh, 130px); text-align: center; display: grid; justify-items: center; gap: 18px; }
.mouth__t { margin: 0; font-size: 18px; line-height: 1.5; max-width: 46ch; text-wrap: pretty; }
.mouth__next { margin: 10px 0 0; font: 600 12px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.mouth__next b { display: block; margin-top: 4px; font: 800 clamp(19px, 2vw, 26px)/1.15 var(--display); letter-spacing: 0; text-transform: uppercase; color: var(--bone); }
.mouth__next .mouth__time { color: var(--accent-soft); }

/* dentro da boca: fotos de noite, só os verbos */
.ride { position: relative; background: #000; }
.jaw { height: var(--jaw); pointer-events: none; }
.jaw svg { display: block; width: 100%; height: 100%; }
.jaw-defs { position: absolute; }
#jaw-up .gum, #jaw-low .gum { fill: var(--gum); }
#jaw-up .t, #jaw-low .t { fill: var(--tooth); }
#jaw-up .s, #jaw-low .s { fill: var(--tooth2); }
#jaw-low .hole { fill: #17090C; }
.jaw--up { position: sticky; top: 0; z-index: 4; margin-bottom: calc(var(--jaw) * -1); }
.jaw--low { position: sticky; bottom: var(--bar); z-index: 4; margin-top: calc(var(--jaw) * -1); }
.stage { position: relative; height: 150svh; view-timeline: --st block; }
.stage__in { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--m) calc(var(--jaw) * 1.1 + var(--bar)); }
.stage__ph { position: absolute; inset: 0; z-index: -1; background: #000; }
.stage__ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%); }
.stage__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage--board .stage__ph img { object-position: 46% 50%; }
.stage--eat .stage__ph img { object-position: 56.5% 50%; }
.stage__ph--two img:first-child { object-position: 50% 30%; }
.stage__ph--two img:last-child { display: none; }
.verb { margin: 0; font: 800 clamp(60px, 16vw, 240px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.02em; color: var(--tooth); }
.stage__t { margin: 14px 0 0; max-width: 34ch; font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.stage__t b { display: block; margin-bottom: 6px; font: 600 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); }
@supports (animation-timeline: view()) {
  .stage__ph img { animation: stage-zoom linear both; animation-timeline: --st; animation-range: entry 0% exit 100%; }
  @keyframes stage-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
}
.js [data-verb] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--soft-ease), transform 1.2s var(--ease); }
.js .stage__t[data-verb] { transition-delay: .15s; }
.js .stage.on [data-verb] { opacity: 1; transform: none; }
@media (min-width: 761px) {
  .stage__in { padding-bottom: calc(var(--jaw) * 1.25); }
  .stage__ph--two { display: grid; grid-template-columns: 1fr 1fr; }
  .stage__ph--two img { min-width: 0; }
  .stage__ph--two img:first-child { object-position: 50% 12%; }
  .stage__ph--two img:last-child { display: block; object-position: 50% 38%; }
  .stage--eat .stage__ph img { object-position: 50% 30%; }
  .verb { font-size: min(13vw, 30svh); }
  .stage__t { font-size: 19px; }
}

/* preço sobre o teto da sala: sem clientes */
.band { position: relative; background: var(--bg); }
.band__img { display: block; width: 100%; height: 56svh; object-fit: cover; object-position: 50% 40%; }
.band::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18svh; pointer-events: none; background: linear-gradient(#000, rgba(0, 0, 0, 0)); }
.band__card { position: relative; z-index: 1; margin: -70px var(--m) 0; padding: 28px 24px 24px; border-radius: 24px; border: 1px solid var(--line); background: rgba(14, 7, 20, .92); display: grid; gap: 14px; }
.band__card h2 { margin: 0; font: 800 clamp(24px, 2.3vw, 32px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.band__card .price { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.band__card .price b { font: 800 40px/1 var(--display); }
.band__card .price span { color: var(--bone); }
.band__card ul { list-style: none; margin: 0; padding: 0; font-size: 17px; line-height: 1.75; }
.band__card li { display: flex; gap: 10px; align-items: baseline; }
.band__card li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); transform: translateY(-2px); }
.band__card .cta { width: 100%; }
@media (min-width: 761px) {
  .band { height: 100svh; min-height: 720px; }
  .band__img { position: absolute; inset: 0; height: 100%; object-position: 50% 50%; }
  .band__card { position: absolute; right: clamp(24px, 4vw, 60px); top: 50%; transform: translateY(-50%); margin: 0; width: 420px; padding: 36px; }
  .js .band__card[data-rise], .js .band__card[data-rise].in { transform: translateY(-50%); }
}

/* perguntas: abrem e fecham com uma transição suave */
.faq { padding-block: clamp(80px, 13vh, 160px) clamp(70px, 11vh, 130px); }
.faq h2 { margin: 0 0 36px; font: 800 clamp(34px, 5.4vw, 88px)/.98 var(--display); text-transform: uppercase; letter-spacing: -.012em; text-wrap: balance; }
.faq__list { border-bottom: 1px solid var(--line2); }
.qa { border-top: 1px solid var(--line2); }
.qa summary { list-style: none; display: grid; grid-template-columns: 34px 1fr 44px; gap: 14px; align-items: center; padding: 24px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qa summary::-webkit-details-marker { display: none; }
.qa__n { font: 600 12px/1 var(--mono); letter-spacing: .1em; color: var(--accent-soft); }
.qa__q { font: 800 clamp(17px, 1.7vw, 24px)/1.15 var(--display); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; transition: color .3s, transform .5s var(--ease); }
.qa__i { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); transition: background-color .35s, border-color .35s, transform .5s var(--ease); }
.qa__i::before, .qa__i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--bone); transition: transform .5s var(--ease); }
.qa__i::after { transform: rotate(90deg); }
.qa summary:hover .qa__q { color: var(--accent-soft); transform: translateX(4px); }
.qa summary:hover .qa__i { border-color: var(--accent); }
.qa[open] .qa__i { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.qa[open] .qa__i::after { transform: rotate(0deg); }
.qa[open] .qa__q { color: var(--accent-soft); }
.qa__a { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 0 28px 48px; font-size: 17px; line-height: 1.6; max-width: 60ch; color: var(--soft); text-wrap: pretty; }
.faq__more { margin: 0; padding: 30px 0; }
.wrap-x { padding-inline: var(--m); }
.is-home .more { display: inline-block; padding: 12px 0; color: var(--bone); font-size: 17px; text-underline-offset: 5px; transition: color .3s; }
.is-home .more:hover { color: var(--accent-soft); }
@media (min-width: 900px) {
  .faq { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: start; }
  .faq__head { position: sticky; top: 14vh; }
  .faq h2 { margin: 0; }
  .qa summary { padding: 30px 0; grid-template-columns: 44px 1fr 48px; gap: 18px; }
  .qa__i { width: 48px; height: 48px; }
  .qa__a p { padding: 0 66px 32px 62px; font-size: 18px; }
}

/* reservar: painéis redondos sobre a textura; o formulário funciona como antes */
.is-home .book { border: 0; padding-block: clamp(60px, 10vh, 120px) 64px; }
.is-home .book .wrap { max-width: none; padding-inline: var(--m); }
.is-home .book h2 { margin: 0; font: 800 clamp(48px, 11vw, 170px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.02em; color: var(--bone); }
.book__note { margin: 14px 0 30px; font-size: 19px; color: var(--bone); }
.is-home .book .panel { background: rgba(14, 7, 20, .92); border: 1px solid var(--line); border-radius: 24px; box-shadow: none; }
.is-home .book .step { font: 800 20px/1.1 var(--display); letter-spacing: 0; text-transform: uppercase; color: var(--bone); }
.is-home .book .trip { border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: background-color 180ms ease, border-color 180ms ease; }
.is-home .book .trip:hover { background: var(--card2); }
.is-home .book .trip:has(input:checked) { background: var(--accent-deep); border-color: var(--accent); box-shadow: none; }
.is-home .book .trip .d { font-family: var(--display); font-weight: 750; letter-spacing: 0; }
.is-home .book input[type=text], .is-home .book input[type=email], .is-home .book input[type=tel] { border-radius: 12px; }
.is-home .book .pax button { border-radius: 999px; }
.is-home .book .warn { border: 0; border-radius: 16px; background: var(--card); }
.is-home .book .warn b { font: 800 15px/1.2 var(--display); letter-spacing: 0; text-transform: uppercase; color: var(--bone); }
.is-home .book .warn p { font-size: 15px; color: var(--soft); }
.is-home .book .sum { border: 0; }
.is-home .book .sum .v { font-family: var(--display); font-weight: 800; }
.is-home .book .pay { width: 100%; }
.is-home .book small, .is-home .book .secure, .is-home .book .s { font-size: 13px; color: var(--soft); }
.is-home .book .error { background: #3A0F18; border: 1px solid var(--blood); border-radius: 14px; color: #FFD6DB; }
.is-home footer { background: var(--bg); border: 0; margin: 0; color: var(--soft); }
.is-home footer a { display: inline-block; padding: 12px 4px; color: var(--bone); }

/* barra fixa no telemóvel */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); transform: translateY(110%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s; }
.buybar.is-on { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.buybar .price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.buybar .price b { font: 800 22px/1 var(--display); }
.buybar .price span { color: var(--soft); font-size: 14px; }
.buybar .cta { min-height: 48px; padding: 0 22px; font-size: 12px; }
@media (min-width: 861px) { .buybar { display: none; } }
@media (max-width: 860px) { .is-home { --bar: calc(68px + env(safe-area-inset-bottom, 0px)); } .is-home footer { padding-bottom: 96px; } }

/* entradas: só com script; sem script fica tudo visível. Sobem devagar e ganham foco. */
.js [data-rise] { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1s var(--soft-ease), transform 1.2s var(--ease), filter 1s var(--soft-ease); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; filter: none; }
.js .villains__row li[data-rise].in:nth-child(even) { transform: none; }
@media (min-width: 761px) { .js .villains__row li[data-rise].in:nth-child(even), .js .villains__row li[data-rise]:nth-child(even) { transform: translateY(44px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover__img, .ri, .mist::before, .js [data-hero], .stage__ph img, .villains::before, .mouth::before, .faq::before, .is-home .book::before { animation: none; }
  .js [data-rise], .js [data-rise].in, .js [data-verb] { opacity: 1; transition: none; filter: none; }
  .js [data-rise]:not(.band__card):not(li), .js [data-verb] { transform: none; }
}

/* bilhetes individuais */
.ticket .pass { padding: 6px 22px 18px; border-top: 1px dashed var(--line); }
.ticket .pass:first-of-type { border-top: 0; }
.ticket .pass .qr { margin: 0; }
.ticket .pass-n { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #c653d3); margin: 12px 0 10px; }
.ticket .pass-acts { margin-top: 12px; display: flex; justify-content: center; }
.ticket .pass-acts .btn { min-height: 44px; padding: 10px 18px; }
