/* Button Evolution Soccer: a tela de início (PRD 13.2, 0.29). O fundo é um mural de figurinhas, rostos dos jogadores e
   escudos dos clubes, em colunas que correm devagar, uma para cima e a outra para baixo, inclinadas; por cima, a luz dos
   refletores e o escuro das bordas. No meio, o logotipo de placa, grande, e a súmula com o menu. */
@keyframes in-sobe-col { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes in-desce-col { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes in-surge { from { opacity: 0; } }
@keyframes in-chega { from { opacity: 0; transform: translateY(16px); } }
@keyframes in-pisca { 0%, 100% { opacity: .55; } 50% { opacity: .8; } }
@keyframes in-gira { to { transform: rotate(360deg); } }

#inicio {
  & { flex-direction: column; gap: 14px; overflow: hidden; background: #08130c; border-color: #4a3019; }
  /* o mural: maior que a tela e inclinado, para não mostrar as pontas */
  .mural { position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; transform: translate(-50%, -50%) rotate(-9deg);
    display: flex; justify-content: center; gap: var(--vao); pointer-events: none; z-index: 0; animation: in-surge 1.2s ease-out both; }
  .mural-col { display: flex; flex-direction: column; gap: var(--vao); flex: none; width: var(--fig); will-change: transform;
    animation: in-sobe-col var(--dur) linear infinite; }
  .mural-col.desce { animation-name: in-desce-col; }
  /* a figurinha: papel de borda branca, o fundo na cor do clube e o rosto com a camisa; o escudo pequeno no canto */
  .fig { position: relative; flex: none; width: var(--fig); aspect-ratio: 4 / 5; border-radius: 7px; padding: 5px; background: #f3ecd8;
    box-shadow: 0 6px 14px rgba(0,0,0,.55); filter: saturate(.92) brightness(.86); }
  .fig .quadro { position: relative; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; background: var(--c2); }
  .fig .quadro::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 6px, transparent 6px 12px); }
  .fig .quadro img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
  .fig .quadro img.sinal { position: absolute; top: 4px; left: 4px; bottom: auto; width: 30%; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
  .fig .num { position: absolute; top: 3px; right: 6px; font: 400 calc(var(--fig) / 4.4)/1 VT323, monospace; color: #fff; text-shadow: 0 1px 0 #000; }
  /* o escudo inteiro, num papel com as faixas do clube */
  .fig.esc .quadro { display: grid; place-items: center; background: linear-gradient(160deg, var(--c1) 0 50%, var(--c2) 50%); }
  .fig.esc .quadro img { position: static; width: 64%; height: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
  /* a luz: dois refletores no alto, o escuro nas bordas e o feltro esverdeando tudo */
  .mural-luz { position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background:
      radial-gradient(ellipse 75% 60% at 50% 46%, rgba(8,19,12,.05), rgba(8,19,12,.5) 72%, rgba(4,9,6,.88)),
      conic-gradient(from 160deg at 6% -4%, transparent 0 8deg, rgba(255,246,214,.16) 14deg 22deg, transparent 30deg),
      conic-gradient(from 178deg at 94% -4%, transparent 0 8deg, rgba(255,246,214,.16) 14deg 22deg, transparent 30deg),
      linear-gradient(rgba(20,70,38,.22), rgba(20,70,38,.22)); }
  .mural-luz::before, .mural-luz::after { content: ''; position: absolute; top: -26px; width: 120px; height: 52px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255,250,228,.95), rgba(255,240,190,.35) 40%, transparent 70%); animation: in-pisca 5s ease-in-out infinite; }
  .mural-luz::before { left: -30px; }
  .mural-luz::after { right: -30px; animation-delay: -2.5s; }

  /* o logotipo, fora da súmula, grande e com o brilho dos refletores */
  .logo-inicio { position: relative; z-index: 2; margin: 0; animation: in-chega .8s ease-out both; filter: drop-shadow(0 0 26px rgba(255,236,170,.22)); }
  .logo-inicio .placa { font-size: clamp(26px, 8.4vw, 54px); padding: .34em .46em; gap: .26em; border-width: 3px;
    background: linear-gradient(#232323, #0b0b0b); box-shadow: inset 0 0 0 2px #000, inset 0 2px 0 rgba(255,255,255,.12), 0 14px 30px rgba(0,0,0,.75); }
  .logo-inicio .o-botao { width: .78em; height: .78em; animation: in-gira 9s linear infinite; }
  .logo-inicio .soccer { font-size: clamp(15px, 4.6vw, 30px); color: #ff6b57; text-shadow: 0 2px 0 #000, 0 0 14px rgba(255,90,60,.45); }
  .cartao { z-index: 2; max-height: none; min-height: 0; flex: 0 1 auto; animation: in-chega .8s .15s ease-out both; background: linear-gradient(rgba(255,255,255,.18), transparent 40%), var(--papel); }
}
/* na escolha do X1 a súmula precisa de altura: o logotipo sai nas telas baixas */
@media (max-height: 900px) and (max-width: 640px), (max-height: 760px) { #inicio:has(#opcoesPartida:not([hidden])) .logo-inicio { display: none; } }
@media (prefers-reduced-motion: reduce) { #inicio .mural-col, #inicio .logo-inicio .o-botao, #inicio .mural-luz::before, #inicio .mural-luz::after { animation: none; } }
.calmo #inicio .mural-col, .calmo #inicio .logo-inicio .o-botao { animation: none; }
