/* Arena Aliança: tokens, base e tela de agendamento. O painel está em painel.css. */
:root {
  --noite: #BC4104;
  --noite-2: #A83A0A;
  --papel: #FFF6EE;
  --branco: #FFFFFF;
  --tinta: #2B1A10;
  --tinta-2: #6B5344;
  --linha: #F0D8C4;
  --areia: #E9C98A;
  --areia-clara: #FFE8D6;
  --areia-escura: #A83A0A;
  --campo: #1B7248;
  --campo-escuro: #A83A0A;
  --campo-claro: #4FBF85;
  --refletor: #F2E14C;
  --erro: #B3261E;
  --espera: #8A5A00;
  --espera-fundo: #FBF0D5;
  --titulo: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --texto: 'Barlow', system-ui, sans-serif;
  --raio: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 16px/1.5 var(--texto); }
body.com-barra { padding-bottom: 96px; }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--campo-escuro); outline-offset: 2px; }
.topo :focus-visible, .heroi :focus-visible, .barra :focus-visible { outline-color: var(--refletor); }
.zona__topo :focus-visible { outline-color: var(--refletor); }

.pular { position: absolute; left: 8px; top: -60px; z-index: 30; background: var(--refletor); color: var(--tinta); padding: 10px 14px; border-radius: 8px; }
.pular:focus { top: 8px; }

.definir { color: var(--tinta-2); font-weight: 500; border-bottom: 1px dashed currentColor; }

.faixa-teste { background: var(--refletor); color: var(--tinta); padding: 8px 16px; font-size: 14px; line-height: 1.4; text-align: center; }
.faixa-teste a { font-weight: 600; white-space: nowrap; padding: 4px 0; }

/* Cabeçalho */
.topo { background: var(--noite); color: var(--branco); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.marca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 700 24px/1 var(--titulo); letter-spacing: .02em; text-transform: uppercase; }
.marca { min-width: 0; }
.marca__logo { display: block; width: auto; height: clamp(22px, 6.8vw, 32px); max-width: 100%; aspect-ratio: 1010 / 96; animation: subir-fade .6s ease-out backwards; }
.marca__painel { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .5); font-size: 22px; }
.rodape__logo { display: block; width: min(320px, 100%); height: auto; aspect-ratio: 1010 / 96; margin: 0 auto 12px; }
.topo__horario { font-size: 14px; color: #FFF0E6; display: none; }
@media (min-width: 1100px) { .topo__horario { display: block; margin-left: auto; } }

/* Abertura */
.heroi {
  position: relative; overflow: hidden; color: var(--branco); padding: 32px 16px 40px; background: var(--noite);
}
.heroi h1 { font: 700 clamp(44px, 12vw, 76px)/.98 var(--titulo); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.heroi__texto p { margin-top: 16px; font-size: 18px; color: #FFF0E6; max-width: 34em; }
.escolha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 62vw; }
.escolha__cartao {
  position: relative; overflow: hidden; display: grid; align-content: start; gap: 2px; padding: 20px; border-radius: var(--raio);
  text-decoration: none; transition: transform .18s ease-out;
}
.escolha__cartao:hover { transform: translateY(-2px); }
.escolha__cartao--areia, .escolha__cartao--society { background: var(--branco); color: var(--tinta); }
.escolha__cartao .escolha__nome, .escolha__cartao .escolha__ir { color: var(--noite-2); }
.escolha__nome { font: 700 40px/1 var(--titulo); text-transform: uppercase; }
.escolha__desc { max-width: 22em; }
.escolha__ir { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 600; }

/* Zonas: cada quadra é uma área separada */
.zonas { display: grid; gap: 24px; padding: 24px 16px; max-width: 1280px; margin: 0 auto; }
.zona { min-width: 0; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; scroll-margin-top: 16px; }
.zona__topo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; min-height: 132px; padding: 16px 20px; background: var(--noite); color: var(--branco); border-bottom: 5px solid var(--areia); }
.zona--society .zona__topo { border-bottom-color: var(--campo-claro); }
.zona__topo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(168, 58, 10, .97), rgba(168, 58, 10, .88) 52%, rgba(168, 58, 10, .08)); }
.zona__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right 62%; transition: opacity .4s ease-out; }
.zona__voltar, .zona__titulo { position: relative; z-index: 2; }
.zona__topo h2 { font: 700 36px/1 var(--titulo); text-transform: uppercase; }
.zona__topo p { margin-top: 4px; }
.zona__voltar { flex: none; width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; border-radius: 50%; }
.zona__corpo { padding: 20px; display: grid; gap: 20px; }


/* Dias */
.agenda { display: grid; gap: 14px; min-width: 0; }
.dias__topo { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.dias__mes { font-size: 16px; font-weight: 600; }
.dias__setas { display: none; gap: 4px; }
.dias__setas button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--linha); border-radius: 50%; }
.dias__setas button:hover { background: var(--papel); }
.dias { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.dia {
  flex: none; width: 60px; min-height: 68px; display: grid; place-content: center; gap: 2px; scroll-snap-align: center;
  background: var(--papel); border: 1.5px solid transparent; border-radius: 14px; transition: background-color .15s;
}
.dia span { font-size: 13px; text-transform: capitalize; color: var(--tinta-2); }
.dia strong { font: 700 24px/1 var(--titulo); }
.dia:hover { background: var(--areia-clara); }
.dia[aria-pressed="true"] { background: var(--noite); color: var(--branco); }
.dia[aria-pressed="true"] span { color: #FFF0E6; }

/* Horários */
.horarios { display: grid; gap: 8px; }
.horario {
  width: 100%; min-height: 60px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 8px 14px;
  background: var(--branco); border: 1.5px solid var(--tinta); border-radius: 12px; text-align: left; transition: background-color .15s, transform .15s;
}
.horario__hora { font: 700 22px/1.1 var(--titulo); font-variant-numeric: tabular-nums; }
.horario__estado { font-size: 15px; font-weight: 500; text-align: right; }
.horario__marca { width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--tinta-2); border-radius: 50%; }
.horario--livre:hover { background: var(--papel); transform: translateY(-1px); }
.horario[aria-pressed="true"] { background: var(--noite); border-color: var(--noite); color: var(--branco); }
.horario[aria-pressed="true"] .horario__marca { background: var(--branco); border-color: var(--branco); color: var(--noite-2); }
.horario[aria-pressed="true"] .definir { color: #FFF0E6; }
.horario:disabled { cursor: not-allowed; background: #F4EAE1; border-color: transparent; color: var(--tinta-2); }
.horario:disabled .horario__marca { visibility: hidden; }
.horario--aguardando:disabled { background: var(--espera-fundo); color: var(--espera); }

.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--tinta-2); }
.legenda li { display: inline-flex; align-items: center; gap: 6px; }
.ponto { width: 12px; height: 12px; border-radius: 50%; }
.ponto--livre { border: 1.5px solid var(--tinta); }
.ponto--aguardando { background: #D9A441; }
.ponto--ocupado { background: #B9B6AB; }

/* Instalar o app */
.instalar {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px 16px; max-width: 1216px; margin: 8px 16px 24px; padding: 16px;
  background: var(--branco); border: 1.5px solid var(--noite); border-radius: var(--raio);
}
.instalar[hidden] { display: none; }
.instalar__icone { width: 56px; height: 56px; border-radius: 14px; }
.instalar h2 { font: 700 24px/1.1 var(--titulo); text-transform: uppercase; color: var(--noite-2); }
.instalar p { margin-top: 4px; font-size: 15px; line-height: 1.4; }
.instalar__dica { font-weight: 600; color: var(--noite-2); }
.instalar .botao { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .instalar { grid-template-columns: 64px 1fr auto; margin-inline: auto; }
  .instalar__icone { width: 64px; height: 64px; }
  .instalar .botao { grid-column: auto; }
}
@media (min-width: 640px) and (max-width: 1263px) { .instalar { margin-inline: 24px; } }

/* Informações */
.info { max-width: 1280px; margin: 0 auto; padding: 16px 16px 48px; }
.info h2 { font: 700 32px/1.05 var(--titulo); text-transform: uppercase; }
.info dl { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--linha); }
.info dl > div { padding: 14px 0; border-bottom: 1px solid var(--linha); }
.info dt { font-weight: 600; }

.link-whats { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.info .link-whats { color: var(--noite-2); }
.link-botao-texto { padding: 0; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.topo__minhas {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px;
  background: rgba(255, 255, 255, .14); color: var(--branco); border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px; font-weight: 600;
}
.topo__minhas:hover { background: rgba(255, 255, 255, .26); }
.topo__minhas-texto { display: none; }
.minhas__lista { display: grid; gap: 10px; }
.minhas__item { display: grid; gap: 6px; padding: 14px; background: var(--papel); border-radius: 12px; }
.minhas__item strong { font: 700 22px/1.1 var(--titulo); }
.minhas__item .botao { min-height: 44px; justify-self: start; padding: 0 18px; }
.minhas__vazio { padding: 14px; background: var(--papel); border-radius: 12px; }
.minhas__nota { font-size: 14px; color: var(--tinta-2); }
.rodape .link-botao-texto { color: inherit; }
.rodape :focus-visible { outline-color: var(--refletor); }
.rodape { background: var(--noite); color: #FFF0E6; padding: 24px 16px; text-align: center; font-size: 14px; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; font-weight: 600; transition: filter .15s, transform .15s; }
.botao:hover:not(:disabled) { filter: brightness(.94); transform: translateY(-1px); }
.botao:disabled { opacity: .65; cursor: wait; }
.botao--principal { background: var(--campo-escuro); color: var(--branco); }
.botao--destaque { background: var(--branco); color: var(--noite-2); }
.botao--contorno { background: none; border: 1.5px solid var(--tinta); }
.botao--largo { width: 100%; }
.botao--perigo { background: var(--erro); color: var(--branco); }

/* Barra de resumo */
.barra {
  position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--noite); color: var(--branco);
  box-shadow: 0 -6px 20px rgba(43, 26, 16, .25); animation: subir .22s ease-out;
}
.barra[hidden] { display: none; }
.barra__texto { min-width: 0; display: grid; }
.barra__texto strong { font: 700 20px/1.15 var(--titulo); }
.barra__texto span { font-size: 14px; line-height: 1.3; color: #FFF0E6; }
.barra .botao { flex: none; padding: 0 20px; }
@keyframes subir { from { transform: translateY(100%); } to { transform: none; } }

/* Janela de reserva */
.janela { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--raio); color: var(--tinta); }
.janela::backdrop { background: rgba(43, 26, 16, .6); }
.janela form, .resultado { display: grid; gap: 16px; padding: 20px; }
.janela form[hidden], .resultado[hidden] { display: none; }
.janela__topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.janela h2 { font: 700 30px/1.05 var(--titulo); text-transform: uppercase; }
.janela__fechar { width: 44px; height: 44px; margin: -6px -8px -6px 0; flex: none; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; }
.janela__fechar:hover { background: var(--papel); }
.resumo { display: grid; gap: 2px; padding: 12px 14px; background: var(--papel); border-radius: 12px; }
.campo { display: grid; gap: 6px; }
.campo label, .pagamento legend { font-weight: 600; }
.campo input { width: 100%; min-height: 48px; padding: 0 14px; background: var(--branco); border: 1.5px solid var(--tinta-2); border-radius: 12px; }
.campo input[aria-invalid="true"] { border-color: var(--erro); }
.campo__erro { color: var(--erro); font-size: 14px; }
.campo__erro:empty { display: none; }
.aviso-erro { padding: 10px 14px; background: #FBE9E7; color: var(--erro); border-radius: 12px; font-weight: 500; }
.aviso-erro[hidden] { display: none; }
.pagamento { display: grid; gap: 8px; }
.pagamento legend { margin-bottom: 8px; }
.pagamento label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 12px; border: 1.5px solid var(--linha); border-radius: 12px; cursor: pointer; }
.pagamento label:has(input:checked) { border-color: var(--campo-escuro); background: var(--areia-clara); }
.pagamento input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--campo-escuro); }
.pagamento span { display: grid; }
.pagamento small { font-size: 14px; line-height: 1.35; color: var(--tinta-2); }
.resultado:focus { outline: none; }
.pix { display: grid; gap: 10px; padding: 14px; background: var(--areia-clara); border-radius: 12px; }
.pix__chave { padding: 10px 12px; background: var(--branco); border: 1.5px dashed var(--noite-2); border-radius: 10px; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.pix__copiado { font-size: 14px; color: var(--noite-2); font-weight: 600; }
.pix__copiado:empty { display: none; }
.horarios__erro { padding: 14px; background: #FBE9E7; color: var(--erro); border-radius: 12px; }
.horarios__erro .link-botao-texto { min-height: 44px; color: inherit; font-weight: 600; }
.selo { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; }
.selo--ok { background: var(--campo-escuro); color: var(--branco); }

/* Animações. Só usam transform e opacity, e o conteúdo nunca depende delas para aparecer. */
@keyframes subir-fade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes entrar-lado { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes pulinho { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes aperto { 0% { transform: scale(1); } 45% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes desenhar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes selo-entra { 0% { opacity: 0; transform: scale(.4); } 65% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes janela-entra { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes onda { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22, 1.5); } }
@keyframes empurrar { 0%, 70%, 100% { transform: none; } 82% { transform: translateX(5px); } }
@keyframes foto-chega { from { transform: translateX(9%) scale(1.24); } to { transform: none; } }
@keyframes foto-lenta { from { transform: none; } to { transform: scale(1.06); } }
@keyframes bola-cai {
  0% { transform: translateY(-720px) rotate(-140deg); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  42% { transform: translateY(var(--solo, 0%)); animation-timing-function: ease-out; }
  48% { transform: translateY(var(--solo, 0%)) scale(1.12, .84); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  80% { transform: translateY(-7%); animation-timing-function: ease-in-out; }
  100% { transform: none; }
}
@keyframes bola-rola {
  0% { transform: translateX(170%) rotate(420deg); animation-timing-function: cubic-bezier(.2, .6, .35, 1); }
  72% { transform: translateX(0) rotate(0); animation-timing-function: ease-out; }
  84% { transform: translateX(-6%) rotate(-16deg); animation-timing-function: ease-in-out; }
  100% { transform: none; }
}
@keyframes bola-quica {
  0%, 100% { transform: scale(1.1, .86); }
  12% { transform: none; animation-timing-function: cubic-bezier(.15, .6, .35, 1); }
  50% { transform: translateY(-165%); animation-timing-function: cubic-bezier(.65, 0, .85, .4); }
  90% { transform: none; }
}
@keyframes bola-boia { from { transform: translateY(5px) rotate(-5deg); } to { transform: translateY(-12px) rotate(7deg); } }
@keyframes bola-balanca { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes brilho { 0%, 68% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes foto-respira { from { transform: scale(1); } to { transform: scale(1.14) translateX(-2%); } }
@keyframes estouro { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }

/* Abertura: as bolas caem e quicam, depois as fotos chegam com impacto. A sequência fica em abertura.js. */
.heroi__texto, .escolha { position: relative; z-index: 1; }
.heroi__fotos { position: absolute; inset: 0; overflow: hidden; }
.heroi__fotos::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--noite) 0, var(--noite) 44vw, transparent 78vw, transparent 125vw, var(--noite) 155vw);
}
.foto { position: absolute; inset: 0; opacity: 0; }
.foto--todas { opacity: 1; }
.foto picture { display: contents; }
.foto__img {
  position: absolute; left: 0; top: 40vw; width: 100%; height: 118vw; display: block; object-fit: cover; object-position: 85% center;
  transform-origin: 75% 55%;
}
.foto--todas .foto__img { top: -24vw; height: 150vw; object-position: top; }
.foto--futevolei .foto__img { object-position: right center; }
.foto--areia .foto__img { top: 26vw; }
.foto--volei .foto__img { top: 56vw; }
.animada .foto { opacity: 0; transition: opacity .42s ease-out; }
.animada .foto.ativa { opacity: 1; }
.animada .foto .foto__img { transform: scale(1.06); }
.animada .foto--todas .foto__img { transform: none; }
.animada .foto:not(.foto--todas).ativa .foto__img, .animada .foto:not(.foto--todas).saindo .foto__img {
  animation: foto-chega .58s cubic-bezier(.16, .9, .3, 1), foto-lenta 3.4s linear .58s forwards;
}
.animada .foto.ativa .foto__nome { animation: subir-fade .42s ease-out .5s backwards; }

/* Bolas recortadas das fotos */
.bolas { position: absolute; left: 4%; right: 4%; top: 66vw; height: 42vw; }
.bola { position: absolute; bottom: 0; aspect-ratio: 1; transform-origin: 50% 100%; }
.bola img { display: block; width: 100%; height: 100%; }
.bola--tennis { left: 0; width: 13%; }
.bola--volei { left: 14%; width: 28%; }
.bola--futevolei { left: 43%; bottom: auto; top: 0; width: 27%; }
.bola--society { left: 71%; width: 29%; }
.animada .foto--todas.ativa .bola--futevolei, .animada .foto--todas.saindo .bola--futevolei { animation: bola-cai 1.15s .15s backwards; }
.animada .foto--todas.ativa .bola--volei, .animada .foto--todas.saindo .bola--volei { animation: bola-cai 1.15s .4s backwards; }
.animada .foto--todas.ativa .bola--society, .animada .foto--todas.saindo .bola--society { animation: bola-rola .9s .7s backwards; }
.animada .foto--todas.ativa .bola--tennis, .animada .foto--todas.saindo .bola--tennis { animation: bola-cai 1.15s 1s backwards, bola-quica 1.1s linear 2.15s infinite; }
.animada .foto--todas.ativa .bola--futevolei img { animation: bola-boia 2.2s ease-in-out 1.3s infinite alternate; }
.animada .foto--todas.ativa .bola--volei img { animation: bola-balanca 2s ease-in-out 1.6s infinite alternate; transform-origin: 50% 100%; }
.animada .foto--todas.ativa .bola--society img { animation: bola-balanca 1.8s ease-in-out 1.6s infinite alternate; transform-origin: 50% 100%; }
.foto__nome {
  position: absolute; left: 16px; bottom: 186px; max-width: calc(100% - 32px); padding: 6px 14px; background: rgba(43, 26, 16, .86); color: var(--branco); border-radius: 999px;
  font: 700 20px/1.1 var(--titulo); letter-spacing: .03em; text-transform: uppercase;
}
.heroi__graos { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.escolha__cartao::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 170, 110, .38) 50%, transparent 62%);
  transform: translateX(-130%); animation: brilho 5s ease-in-out 1.6s infinite;
}
.escolha__cartao--society::after { animation-delay: 4.1s; }
.zona__foto { transform-origin: 85% 55%; animation: foto-respira 13s ease-in-out infinite alternate; }
.palavra { display: inline-block; animation: subir-fade .55s cubic-bezier(.2, .7, .2, 1) calc(.2s + var(--i) * 75ms) backwards; }
.heroi__texto p { animation: subir-fade .5s ease-out .72s backwards; }
.escolha__cartao { animation: subir-fade .55s cubic-bezier(.2, .7, .2, 1) .82s backwards; }
.escolha__cartao:nth-child(2) { animation-delay: .94s; }
.escolha__ir svg { animation: empurrar 2.4s ease-in-out infinite; }
.heroi.fora, .heroi.fora * { animation-play-state: paused; }
.entrada-feita .palavra, .entrada-feita .heroi__texto p, .entrada-feita .escolha__cartao { animation: none; }
.entrada-feita .revela { transition: none; }

/* Entrada ao rolar a página */
.js-anim .revela { transition: opacity .5s ease-out, transform .5s ease-out; transition-delay: calc(var(--i, 0) * 90ms); }
.js-anim .revela:not(.visivel) { opacity: 0; transform: translateY(18px); }

/* Agenda: dias, horários e seleção */
.dia[aria-pressed="true"] strong { animation: pulinho .3s ease-out; }
.dia:active, .horario--livre:active, .botao:active:not(:disabled), .escolha__cartao:active, .acao:active { transform: scale(.97); }
.horarios.entrando li { animation: subir-fade .36s ease-out calc(var(--i) * 55ms) backwards; }
.horario--pop { animation: aperto .28s ease-out; }
.horario--pop .horario__marca { animation: pulinho .3s ease-out; }
.horario--pop .horario__marca path, .selo--ok path { stroke-dasharray: 1; animation: desenhar .32s ease-out .08s backwards; }

/* Barra e janela de reserva */
.barra .botao--destaque { position: relative; }
.barra .botao--destaque::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--branco); pointer-events: none;
  opacity: 0; animation: onda 1.3s ease-out .4s 3;
}
.janela[open] { animation: janela-entra .24s ease-out; }
.janela[open]::backdrop { animation: aparecer .24s ease-out; }
.resultado { position: relative; }
.resultado:not([hidden]) > :not(.festa) { animation: subir-fade .34s ease-out backwards; }
.selo { animation: selo-entra .42s ease-out backwards !important; }
.festa { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.festa i {
  position: absolute; left: 46px; top: 46px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: 0;
  animation: estouro .8s cubic-bezier(.15, .7, .3, 1) .12s;
}

/* Celular e tablet: uma quadra por vez, como telas separadas */
@media (max-width: 1023px) {
  .js-anim .zona.revela:not(.visivel) { opacity: 1; transform: none; }
  body[data-zona] .zonas { overflow-x: clip; }
  body[data-zona] .zona { animation: entrar-lado .3s ease-out; }
  body:not([data-zona]) .zonas { display: none; }
  body[data-zona] .heroi, body[data-zona] .info { display: none; }
  body[data-zona="areia"] #society, body[data-zona="society"] #areia { display: none; }
  body[data-zona] .zonas { padding: 0; }
  body[data-zona] .zona { border: 0; border-radius: 0; }
  .info { padding-top: 32px; }
}

@media (max-width: 639px) {
  .zona__topo::before { background: linear-gradient(to right, rgba(168, 58, 10, .96), rgba(168, 58, 10, .78)); }
  .foto--todas .foto__nome { padding-inline: 12px; font-size: 16px; letter-spacing: .01em; white-space: nowrap; }
  .escolha__cartao { padding: 16px; }
  .escolha__nome { font-size: 32px; }
  .escolha__desc { font-size: 15px; line-height: 1.3; }
}

@media (min-width: 640px) {
  .topo { padding-inline: 24px; }
  .topo__minhas { padding: 0 16px; }
  .topo__minhas-texto { display: inline; }
  .heroi { padding: 56px 24px; min-height: 480px; }
  .heroi__texto, .escolha { max-width: min(560px, 48%); }
  .heroi h1 { font-size: clamp(46px, 6vw, 76px); }
  .escolha { margin-top: 28px; }
  .heroi__fotos::after { background: linear-gradient(to right, var(--noite), var(--noite) 38%, rgba(188, 65, 4, .7) 50%, transparent 66%); }
  .foto__img, .foto--todas .foto__img, .foto--areia .foto__img { top: 0; height: 100%; object-position: right 42%; }
  .foto--futevolei .foto__img { object-position: right 42%; }
  .foto--volei .foto__img { top: 0; object-position: right 12%; }
  .bolas { left: auto; right: 3%; top: 6%; bottom: 7%; width: 44%; height: auto; }
  .bola--tennis { left: 0; width: 13%; }
  .bola--volei { left: 14%; width: 38%; }
  .bola--futevolei { left: 56%; width: 36%; }
  .bola--society { left: 58%; width: 36%; }
  .foto__nome { left: auto; right: 24px; bottom: 24px; }
  .info dl { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

@media (min-width: 1024px) {
  .zona__voltar { display: none; }
  .heroi { padding: 56px max(32px, calc((100% - 1216px) / 2)); }
  .zonas { grid-template-columns: 1fr 1fr; align-items: start; padding: 32px; }
  .info { padding: 16px 32px 64px; }
  .info dl { grid-template-columns: repeat(3, 1fr); }
  .dias__setas { display: flex; }
  .barra { padding-inline: max(32px, calc((100% - 1216px) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .escolha__cartao:hover, .botao:hover:not(:disabled), .horario--livre:hover { transform: none; }
  .heroi__graos, .festa, .barra .botao--destaque::after, .escolha__cartao::after { display: none; }
  .zona__foto { animation: none !important; }
}
