/* =====================================================================
   ITAPEBASKA 3x3 — design system
   Fonte: projeto Claude Design 5a0c5d4a (Itapebaska Site.dc.html)
   ===================================================================== */

:root {
  --preto: #0A0A0B;
  --ouro: #FFC72C;
  --vinho: #7A1228;
  --ok: #20B463;
  --erro: #FF4D4D;

  --surface: #131316;
  --surface-2: #1c1c21;
  --borda: #26262b;
  --borda-2: #2a2a30;
  --borda-input: #2c2c33;

  --texto: #f1f1f4;
  --texto-2: #8b8b94;
  --texto-3: #9a9aa3;
  --texto-4: #6d6d76;
  --texto-5: #5c5c66;

  --neon-box: 0 0 18px rgba(255, 199, 44, .55), 0 0 48px rgba(255, 199, 44, .25);
  --neon-text: 0 0 10px rgba(255, 199, 44, .7), 0 0 30px rgba(255, 199, 44, .35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--preto);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--ouro); text-decoration: none; }
a:hover { color: #FFDD66; }

img { max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* coluna mobile-first (o site é 100% celular na quadra) */
.tela {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ */
/* Tipografia                                                          */
/* ------------------------------------------------------------------ */

.display {
  font-family: 'Saira Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}

.label {
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--texto-3);
}

.label--sm { font-size: 10px; letter-spacing: .26em; color: var(--texto-4); }

/* ------------------------------------------------------------------ */
/* Botões                                                              */
/* ------------------------------------------------------------------ */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  font-family: 'Saira Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  border-radius: 16px;
  padding: 20px;
  font-size: 23px;
  line-height: 1;
}

.btn--primario { background: var(--ouro); color: var(--preto); }
.btn--neon { box-shadow: var(--neon-box); }
.btn--secundario { border: 2px solid var(--ouro); color: var(--ouro); background: none; }
.btn--whatsapp { background: #25D366; color: #062b16; }

.btn--enviando {
  background: var(--surface-2);
  color: var(--texto-5);
  box-shadow: none;
  pointer-events: none;
}

.btn:disabled { opacity: .9; pointer-events: none; }

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #3a3a42;
  border-top-color: var(--ouro);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Chips e badges                                                      */
/* ------------------------------------------------------------------ */

.chip {
  display: inline-block;
  border: 1px solid var(--ouro);
  color: var(--ouro);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
}

.chip--live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
  padding: 8px 14px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--erro);
  animation: livePulse 1.4s infinite;
  flex-shrink: 0;
}

.badge-skew {
  display: inline-block;
  background: var(--vinho);
  color: #fff;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  transform: skewX(-8deg);
}

/* ------------------------------------------------------------------ */
/* Inputs                                                              */
/* ------------------------------------------------------------------ */

.campo { display: flex; flex-direction: column; }

.campo > .label { font-size: 11px; letter-spacing: .24em; margin-bottom: 10px; }

.input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--borda-input);
  border-radius: 14px;
  padding: 16px;
  font-size: 17px;
  font-family: 'Archivo', sans-serif;
  color: #fff;
  outline: none;
}

.input::placeholder { color: var(--texto-5); }
.input:focus { border-color: var(--ouro); }

.campo--erro > .label { color: var(--erro); }
.campo--erro .input { border-color: var(--erro); background: #1a1013; }

.msg-erro { font-size: 13px; color: var(--erro); margin-top: 8px; }

/* ------------------------------------------------------------------ */
/* Cards e painéis                                                     */
/* ------------------------------------------------------------------ */

.painel {
  background: var(--surface);
  border: 1px solid var(--borda);
  border-radius: 20px;
  padding: 22px;
}

/* barra de progresso (vagas) */
.barra {
  height: 10px;
  background: var(--borda);
  border-radius: 999px;
  overflow: hidden;
}

.barra > div {
  height: 100%;
  background: var(--ouro);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 199, 44, .8);
  transition: width .6s ease;
}

.barra--esgotado > div { background: var(--vinho); box-shadow: none; }

/* linha de time (home — mesma linha visual do futuro chaveamento) */
.time-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--surface-2);
}

.time-cor {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  transform: skewX(-8deg);
  flex-shrink: 0;
}

.time-nome {
  font-family: 'Saira Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 21px;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-idx {
  margin-left: auto;
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #4a4a52;
}

/* ------------------------------------------------------------------ */
/* Figurinha (card de jogador) — vinho + ouro de propósito             */
/* ------------------------------------------------------------------ */

.figurinha {
  width: 280px;
  background: linear-gradient(165deg, #8C1530 0%, #7A1228 45%, #540C1B 100%);
  border: 2px solid var(--ouro);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.figurinha__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255, 199, 44, .35);
}

.figurinha__marca {
  font-family: 'Saira Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--ouro);
}

.figurinha__edicao {
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 8px;
  color: #f3cf86;
  font-weight: 600;
}

.figurinha__foto {
  height: 200px;
  position: relative;
  background: rgba(0, 0, 0, .28);
  background-size: cover;
  background-position: center top;
}

.figurinha__foto-marca {
  position: absolute;
  inset: 0;
  background-image: url('../assets/logo-laranja.png');
  background-size: 190%;
  background-position: 50% 8%;
  background-repeat: no-repeat;
  opacity: .22;
}

.figurinha__foto-vazia {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figurinha__foto-vazia > div {
  border: 1.5px dashed rgba(255, 199, 44, .5);
  color: #f3cf86;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
}

.figurinha__numero {
  position: absolute;
  right: 10px;
  bottom: -12px;
  font-family: 'Saira Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 88px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--ouro);
}

.figurinha__base { padding: 14px; display: flex; flex-direction: column; gap: 5px; }

.figurinha__apelido {
  font-family: 'Saira Condensed', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 36px;
  line-height: .95;
  text-transform: uppercase;
  color: var(--ouro);
}

.figurinha__nome { font-size: 13px; color: #f1dede; }

.figurinha__time { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

.figurinha__time-cor { width: 12px; height: 12px; border-radius: 4px; transform: skewX(-8deg); }

.figurinha__time-nome {
  letter-spacing: .24em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

/* faixas de velocidade no canto do card */
.figurinha::before,
.figurinha::after {
  content: '';
  position: absolute;
  left: -10px;
  background: var(--ouro);
  transform: skewX(-30deg);
}

.figurinha::before { top: 50px; width: 56px; height: 9px; }
.figurinha::after { top: 63px; width: 32px; height: 6px; }

/* ------------------------------------------------------------------ */
/* Marca d'água de silhueta (uma por bloco, nunca padrão repetido)     */
/* ------------------------------------------------------------------ */

.marca-dagua {
  position: absolute;
  background-image: url('../assets/logo-branca.png');
  background-size: 210%;
  background-position: 50% 5%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Animações                                                           */
/* ------------------------------------------------------------------ */

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes neonBreath {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 199, 44, .75)) drop-shadow(0 0 24px rgba(255, 199, 44, .35)); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 199, 44, .95)) drop-shadow(0 0 38px rgba(255, 199, 44, .55)); }
}

@media (prefers-reduced-motion: reduce) {
  .dot-live, .spinner { animation-duration: 2s; }
  img { animation: none !important; }
}
