/* Festa 50 do Mário — bar de rock em versão premium: preto fosco, dourado metálico, ingresso de show. */
:root {
  color-scheme: dark;
  --bg: #0a0806;
  --sup: rgba(22, 17, 12, .78);
  --sup-2: rgba(30, 23, 16, .9);
  --linha: rgba(226, 186, 104, .22);
  --linha-forte: rgba(226, 186, 104, .5);
  --ouro: #e6bf62;
  --ouro-claro: #f7e2a4;
  --ouro-escuro: #a9782a;
  --foil: linear-gradient(115deg, #b8862b 0%, #f7e2a4 22%, #e3b551 40%, #fff1c4 52%, #c99a3a 68%, #f3d37a 86%, #b8862b 100%);
  --vermelho: #e0352b;
  --texto: #f4eee3;
  --texto-2: #b9ae9c;
  --texto-3: #85796a;
  --verde: #3ccf7a;
  --raio: 20px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --corpo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sombra: 0 40px 80px -40px rgba(0, 0, 0, .95), 0 2px 0 rgba(255, 236, 190, .04) inset;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--texto); }
body { font-family: var(--corpo); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.marker { font-family: var(--marker); font-weight: 400; letter-spacing: .01em; }
.foil { background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brilho 6s ease-in-out infinite; }
@keyframes brilho { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* fundo: foto do bar + vinheta + grão de filme */
.fundo { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(120% 70% at 50% 0%, rgba(10,8,6,.25) 0%, rgba(10,8,6,.85) 60%, var(--bg) 100%),
  url("/img/fundo.jpg") center top / cover no-repeat, var(--bg); }
.fundo::after { content: ""; position: absolute; inset: 0; opacity: .09; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 28px 16px 8px; flex: 1; }
.olho { font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--ouro); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.olho::before, .olho::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--linha-forte)); }
.olho::after { background: linear-gradient(90deg, var(--linha-forte), transparent); }
.titulo { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 30px; line-height: 1.1; margin: 0 0 6px; }
.dica { color: var(--texto-2); margin: 0; font-size: 15px; }

/* ---------- convidado ---------- */
.abre { text-align: center; margin: 0 0 22px; }
.saudacao { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 9vw, 44px); line-height: 1.08; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.saudacao .marker { text-transform: none; font-size: 1.12em; letter-spacing: 0; display: inline-block; transform: rotate(-3deg); padding: 0 .08em; }
.sub { margin: 12px 0 0; color: var(--texto-2); font-size: 17px; }
.sub b { color: var(--texto); font-weight: 600; }

.poster { margin: 0; }
.poster button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--raio); overflow: hidden; position: relative;
  box-shadow: 0 50px 90px -40px #000, 0 0 0 1px var(--linha-forte), 0 0 0 6px rgba(10,8,6,.6), 0 0 0 7px var(--linha); }
.poster img { width: 100%; height: auto; aspect-ratio: 1079 / 1594; object-fit: cover; transition: transform .6s ease; }
.poster button:hover img { transform: scale(1.015); }
.poster figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--texto-3); letter-spacing: .02em; }
.poster figcaption svg { width: 14px; height: 14px; fill: currentColor; }

/* ingresso */
.ticket { --corte: 260px; position: relative; margin-top: 26px; border-radius: var(--raio);
  background: linear-gradient(180deg, rgba(34,26,18,.92), rgba(16,12,9,.95)); box-shadow: var(--sombra), 0 0 0 1px var(--linha) inset;
  -webkit-mask: radial-gradient(circle 15px at 0 var(--corte), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% var(--corte), #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 15px at 0 var(--corte), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% var(--corte), #0000 97%, #000) right / 51% 100% no-repeat; }
.ticket::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--raio) var(--raio) 0 0; background: var(--foil); opacity: .9; }
.tk-top { padding: 22px 22px 20px; }
.tk-linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tk-num { font-family: var(--display); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--texto-3); }
.tk-selo { font-family: var(--display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--vermelho); border: 1px solid rgba(224,53,43,.55); border-radius: 999px; padding: 3px 10px 3px 20px; position: relative; }
.tk-selo::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--vermelho); box-shadow: 0 0 10px var(--vermelho); animation: pulsa 1.6s ease-in-out infinite; }
@keyframes pulsa { 50% { opacity: .35; } }
.tk-portador { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 16px; line-height: 1.15; overflow-wrap: anywhere; }
.tk-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.tk-grid > div { padding: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.tk-grid > div + div { border-left: 1px solid var(--linha); padding-left: 14px; }
.tk-grid span, .tk-local span, .tk-banda span { font-family: var(--display); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--texto-3); }
.tk-grid b { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: .04em; text-transform: uppercase; }
.tk-admite b { font-size: 34px; line-height: .95; font-weight: 700; }
.tk-local { padding: 14px 0 4px; display: flex; flex-direction: column; gap: 2px; }
.tk-local b { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
.tk-local small { color: var(--texto-2); font-size: 13.5px; }
.tk-mapa { align-self: flex-start; margin-top: 6px; color: var(--ouro); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--linha-forte); }
.tk-banda { margin: 12px 0 0; display: flex; align-items: baseline; gap: 10px; }
.tk-banda b { color: var(--vermelho); font-size: 22px; text-shadow: 0 0 22px rgba(224,53,43,.35); }
.tk-corte { height: 0; border-top: 2px dashed rgba(226,186,104,.28); margin: 0 22px; }
.tk-bottom { padding: 22px 22px 24px; text-align: center; }

.botoes { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 20px; border-radius: 14px; border: 0;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; }
.primario { color: #1b1206; background: var(--foil); background-size: 220% 100%; box-shadow: 0 14px 30px -14px rgba(230,191,98,.75), 0 1px 0 rgba(255,255,255,.45) inset; }
.primario::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.secundario { color: var(--texto); background: rgba(255,255,255,.03); box-shadow: 0 0 0 1px var(--linha-forte) inset; }
.secundario:hover { background: rgba(230,191,98,.08); }
.link { background: none; color: var(--texto-2); min-height: 44px; text-transform: none; letter-spacing: 0; font-family: var(--corpo); font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--linha-forte); }
.btn[disabled] { opacity: .4; cursor: default; }
.btn[disabled]::after { display: none; }

.stepper { display: inline-flex; align-items: center; gap: 22px; margin: 18px 0 2px; }
.stepper button { width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.03); box-shadow: 0 0 0 1px var(--linha-forte) inset; color: var(--ouro); font-size: 28px; line-height: 1; cursor: pointer; }
.stepper button:disabled { opacity: .25; cursor: default; }
.stepper output { font-family: var(--display); font-weight: 600; font-size: 64px; line-height: 1; min-width: 56px; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }

.campo { display: block; text-align: left; margin-top: 18px; font-size: 14px; color: var(--texto-2); }
.campo span { color: var(--texto-3); }
textarea, input[type=text], input[type=tel], input[type=date], input[type=time], input[type=url], input[type=number], select {
  width: 100%; margin-top: 6px; background: rgba(0,0,0,.35); border: 1px solid rgba(244,238,227,.14); border-radius: 12px; padding: 13px 14px; color: var(--texto); font-size: 16px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(230,191,98,.18); }
::placeholder { color: var(--texto-3); }

.selo-ok { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: radial-gradient(circle at 30% 25%, rgba(247,226,164,.35), rgba(230,191,98,.08) 70%); box-shadow: 0 0 0 1px var(--linha-forte) inset, 0 0 40px rgba(230,191,98,.25); }
.aviso-ja { margin: 0 0 14px; font-size: 14px; color: var(--texto-2); background: rgba(230,191,98,.07); border: 1px solid var(--linha); border-radius: 12px; padding: 10px 12px; }
.aviso-ja a { color: var(--ouro); }
.erro { color: #ff9b8f; margin: 14px 0 0; }
.frase { text-align: center; font-family: var(--display); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); margin: 34px 0 6px; }
.cartao-simples { background: var(--sup-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 28px 22px; text-align: center; margin-top: 30vh; }

.faixa-previa { position: sticky; top: 0; z-index: 30; text-align: center; font-size: 13px; padding: 9px 14px; background: rgba(224,53,43,.92); color: #fff; letter-spacing: .02em; }

.dlg-poster { padding: 0; border: 0; background: transparent; max-width: min(96vw, 720px); max-height: 96dvh; }
.dlg-poster::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(6px); }
.dlg-poster img { max-height: 86dvh; width: auto; margin: 0 auto; border-radius: 10px; }
.dlg-poster form { display: flex; justify-content: center; margin-top: 12px; }

.confete { position: fixed; top: -12px; width: 8px; height: 14px; z-index: 50; pointer-events: none; border-radius: 2px; animation: cai linear forwards; }
@keyframes cai { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .confete { display: none; } .foil, .primario::after, .tk-selo::before { animation: none; } }

/* ---------- rodapé Solvewise ---------- */
footer.sw { padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
footer.sw a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto-3); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(244,238,227,.08); background: rgba(10,8,6,.55); transition: border-color .2s, color .2s; }
footer.sw a:hover { color: var(--texto-2); border-color: rgba(0,138,255,.55); }
footer.sw img { height: 19px; width: auto; }
