@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Barlow:wght@400;500;600;700;800&display=swap');

:root {
  --pitch-ink: #071520;
  --pitch-glass: rgba(5, 19, 27, 0.76);
  --pitch-glass-strong: rgba(7, 22, 29, 0.95);
  --pitch-line: rgba(202, 230, 220, 0.22);
  --pitch-gold: #f6d45a;
  --pitch-lime: #b8ef71;
  --pitch-text: #f4f5eb;
  --pitch-muted: #c1cec8;
}

html,
body {
  background: #091923;
  color: var(--pitch-text);
  font-family: "Barlow", "Trebuchet MS", sans-serif;
}

#hud::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 13, 20, 0.68), rgba(3, 13, 20, 0.18) 19%, transparent 37%),
    linear-gradient(0deg, rgba(3, 13, 20, 0.68), rgba(3, 13, 20, 0.12) 26%, transparent 43%),
    radial-gradient(ellipse at 50% 55%, transparent 48%, rgba(4, 14, 21, 0.24));
}

#hud {
  isolation: isolate;
}

#hud::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

#hud.flash-impacto::after {
  background: radial-gradient(ellipse at 52% 52%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12) 36%, transparent 76%);
  animation: impacto-camera 280ms ease-out both;
}

#hud.flash-gol::after {
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 249, 214, 0.52), rgba(246, 212, 90, 0.2) 42%, transparent 82%);
  animation: gol-camera 720ms cubic-bezier(0.16, 0.7, 0.28, 1) both;
}

@keyframes impacto-camera {
  0% { opacity: 0.92; }
  100% { opacity: 0; }
}

@keyframes gol-camera {
  0% { opacity: 0.9; }
  18% { opacity: 0.55; }
  100% { opacity: 0; }
}

#titulo,
#info,
#mensagem,
#resultado-titulo,
#botao-chute,
#contato-rotulo,
.folha-cabecalho,
#painel-cabecalho {
  font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
}

#topo {
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(224, 242, 228, 0.18);
  border-radius: 13px;
  background: linear-gradient(105deg, rgba(5, 18, 25, 0.88), rgba(9, 34, 39, 0.62));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.06);
}

#titulo {
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.12em;
}

#titulo span,
.cartao-numero,
.item-numero,
.ranking-posicao.ouro {
  color: var(--pitch-gold);
}

#versao {
  border: 1px solid rgba(226, 240, 225, 0.16);
  border-radius: 5px;
  background: rgba(4, 15, 21, 0.56);
  color: rgba(245, 248, 235, 0.8);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.botao-redondo {
  border-color: rgba(225, 241, 227, 0.34);
  background: rgba(8, 25, 31, 0.66);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, transform 160ms ease;
}

.botao-redondo:active {
  transform: scale(0.94);
  background: rgba(184, 239, 113, 0.24);
}

#modos {
  margin-top: 9px;
  gap: 7px;
}

#modos button {
  padding: 7px 13px;
  border-color: rgba(226, 242, 231, 0.32);
  background: rgba(5, 19, 26, 0.7);
  color: rgba(243, 247, 237, 0.88);
  font: 700 12px/1 "Barlow", "Trebuchet MS", sans-serif;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#modos button.ativo {
  border-color: var(--pitch-gold);
  background: var(--pitch-gold);
  color: #14231a;
  box-shadow: 0 2px 12px rgba(246, 212, 90, 0.2);
}

#indicador-mira[hidden] {
  display: none;
}

#indicador-mira {
  position: fixed;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(246, 212, 90, 0.52);
  border-radius: 999px;
  background: rgba(5, 18, 25, 0.84);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.08);
  color: var(--pitch-gold);
  font: 800 9px/1 "Barlow", "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

#indicador-mira-flecha {
  width: 16px;
  height: 16px;
  background: var(--pitch-gold);
  clip-path: polygon(0 5%, 100% 50%, 0 95%, 25% 50%);
  flex: 0 0 16px;
}

#modos button:active,
#botao-fixar:active,
#botao-ranking:active {
  transform: translateY(1px);
}

#linha-info {
  margin-top: 11px;
}

#cartao-cobrador {
  border-color: rgba(226, 242, 231, 0.22);
  border-radius: 11px;
  background: linear-gradient(115deg, rgba(7, 21, 29, 0.94), rgba(16, 37, 38, 0.89));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 3px 0 0 var(--pitch-gold);
}

.cartao-numero {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
}

.cartao-nome b {
  font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
  font-size: 17px;
}

.cartao-nota b {
  color: var(--pitch-lime);
}

#info {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

#placar {
  color: #fff3b2;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 10px rgba(246, 212, 90, 0.28);
}

#placar.placar-actualizado {
  animation: placar-premio 480ms cubic-bezier(.18, .8, .25, 1);
}

@keyframes placar-premio {
  0% { transform: scale(1); filter: brightness(1); }
  38% { transform: scale(1.09); filter: brightness(1.65); }
  100% { transform: scale(1); filter: brightness(1); }
}

#resultado.gol #resultado-sub,
#resultado.defesa #resultado-sub {
  color: #f4f6dc;
  text-shadow: 0 2px 14px rgba(183, 242, 123, 0.2);
}

#hud.modo-torneo #placar { display: none; }
#hud.modo-partido #placar { display: none; }

/* En el modo Portero no hay tiro del usuario: solo rival, portería y marcador de atajadas. */
#hud.modo-portero #controles { display: none; }
#hud.modo-portero #cartao-cobrador { pointer-events: none; }

/* Marcador editorial del torneo: una franja de transmisión, nunca una tarjeta de ajustes. */
#torneo-panel {
  width: min(100%, 480px);
  margin: 7px auto 0;
  padding: 9px 12px 8px;
  border: 1px solid rgba(226, 242, 231, 0.24);
  border-left: 3px solid var(--pitch-gold);
  border-radius: 4px 11px 11px 4px;
  background:
    linear-gradient(105deg, rgba(5, 18, 25, 0.94), rgba(9, 30, 35, 0.83) 72%, rgba(10, 31, 33, 0.68));
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(9px);
  text-shadow: none;
  color: var(--pitch-text);
}

#torneo-panel[hidden] { display: none; }

#partido-panel {
  width: min(100%, 560px);
  margin: 7px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(226, 242, 231, 0.23);
  border-left: 3px solid #d6ff5c;
  border-radius: 4px 11px 11px 4px;
  background: linear-gradient(105deg, rgba(5, 18, 25, 0.95), rgba(9, 30, 35, 0.84));
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(9px);
  color: #f4f5eb;
  text-shadow: none;
}

#partido-panel[hidden] { display: none; }

.partido-cabecera {
  display: flex;
  justify-content: space-between;
  color: rgba(242, 247, 237, 0.73);
  font: 800 9px/1 "Barlow", sans-serif;
  letter-spacing: 0.15em;
}

#partido-minuto {
  color: #d6ff5c;
  font-variant-numeric: tabular-nums;
}

.partido-marcador {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 5px 0 3px;
}

.partido-marcador strong {
  overflow: hidden;
  color: #f7f8f1;
  font: 800 11px/1.15 "Barlow", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partido-marcador strong:last-child { text-align: right; }

.partido-goles {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 900 20px/1 "Barlow Condensed", "Barlow", sans-serif;
}

.partido-goles b:first-child { color: #d6ff5c; }
.partido-goles b:last-child { color: #ffae80; }
.partido-goles i { color: rgba(242, 247, 237, 0.45); font-style: normal; }

.partido-jugada {
  color: #d9e7d6;
  font: 700 9px/1.3 "Barlow", sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.partido-eventos {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 12px;
  margin-top: 7px;
}

.partido-evento {
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 1px solid rgba(242, 247, 237, 0.36);
  border-radius: 50%;
  color: rgba(242, 247, 237, 0.4);
  font-size: 8px;
}

.partido-evento.propio { border-color: rgba(214, 255, 92, 0.52); }
.partido-evento.gol { border-color: #d6ff5c; background: #d6ff5c; color: #0a1714; }
.partido-evento.fallo { border-color: rgba(255, 174, 128, 0.65); color: #ffae80; }
.partido-evento.pendiente { box-shadow: 0 0 0 3px rgba(214, 255, 92, 0.12); color: #d6ff5c; }

.partido-resumen {
  margin: 5px 0 0;
  color: rgba(242, 247, 237, 0.64);
  font: 600 9px/1.3 "Barlow", sans-serif;
  text-align: center;
}

.torneo-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(242, 247, 237, 0.72);
  font: 700 10px/1 "Barlow", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.torneo-en-vivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f0bb77;
}

.torneo-en-vivo::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.torneo-duelo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.torneo-equipo {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 248, 239, 0.9);
  font: 700 14px/1.1 "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
}

.torneo-equipo-jugador { justify-content: flex-start; }
.torneo-equipo-rival { justify-content: flex-end; text-align: right; }

.torneo-nombre {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.torneo-insignia {
  display: grid;
  flex: none;
  width: 24px;
  height: 27px;
  place-items: center;
  clip-path: polygon(8% 0, 92% 0, 88% 71%, 50% 100%, 12% 71%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font: 800 7px/1 "Barlow", sans-serif;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.torneo-vs { color: rgba(236, 241, 229, 0.42); font: 700 9px/1 "Barlow", sans-serif; }

.torneo-marcador {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--pitch-gold);
  font: 800 25px/0.95 "Barlow Condensed", sans-serif;
  font-variant-numeric: tabular-nums;
}

.torneo-marcador span { min-width: 13px; text-align: center; }
.torneo-marcador i { color: rgba(240, 242, 230, 0.45); font-size: 17px; font-style: normal; }

.torneo-progreso {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
}

.torneo-tiro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1;
  gap: 2px;
  height: 5px;
}

.torneo-tiro span {
  display: block;
  width: auto;
  height: 100%;
  border-radius: 4px;
  background: rgba(232, 241, 231, 0.14);
}

.torneo-marca.gol { background: var(--pitch-lime); }
.torneo-marca.fallo { background: #cf8a66; }
.torneo-marca.pendiente { background: rgba(232, 241, 231, 0.14); }

.torneo-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.torneo-ruta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.torneo-ruta-paso {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(241, 245, 234, 0.42);
  font: 600 9px/1 "Barlow", sans-serif;
  white-space: nowrap;
}

.torneo-ruta-paso:not(:last-child)::after {
  content: "";
  width: 8px;
  height: 1px;
  margin-left: 1px;
  background: rgba(230, 239, 226, 0.22);
}

.torneo-ruta-paso::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.torneo-ruta-paso.superada { color: var(--pitch-lime); }
.torneo-ruta-paso.superada::before { background: currentColor; }
.torneo-ruta-paso.actual { color: var(--pitch-gold); }
.torneo-ruta-paso.actual::before { background: currentColor; box-shadow: 0 0 0 2px rgba(246, 212, 90, 0.16); }
.torneo-ruta-paso[aria-current="step"] { font-weight: 800; }

.torneo-turno {
  flex: none;
  color: rgba(244, 247, 237, 0.76);
  font: 700 10px/1 "Barlow", sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#torneo-panel.evento .torneo-marcador {
  animation: marcador-latido 450ms cubic-bezier(.2,.75,.3,1) both;
}

#torneo-panel.cambio-ronda {
  animation: llegada-ronda 620ms cubic-bezier(.2,.75,.3,1) both;
}

@keyframes marcador-latido {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes llegada-ronda {
  0% { opacity: .66; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

#botao-fixar,
#botao-ranking {
  border-color: rgba(225, 241, 227, 0.3);
  background: rgba(5, 19, 26, 0.74);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#botao-fixar.ativo {
  border-color: var(--pitch-gold);
  background: var(--pitch-gold);
  color: #14231a;
}

#mensagem {
  margin-top: 7px;
  font-size: 21px;
  letter-spacing: 0.025em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88);
}

#controles {
  padding: 12px 13px 11px;
  gap: 9px;
  border: 1px solid rgba(223, 241, 225, 0.2);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(5, 19, 26, 0.88), rgba(9, 28, 33, 0.78));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

#barra {
  height: 13px;
  border: 1px solid rgba(246, 248, 236, 0.88);
  border-radius: 99px;
  background: rgba(1, 10, 16, 0.76);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.48), 0 2px 8px rgba(0, 0, 0, 0.2);
}

#barra-preenchida {
  background: linear-gradient(90deg, #b9ef71 0%, #f4dc5e 64%, #ef8b51 100%);
}

#barra-ideal {
  width: 3px;
  background: #fff9d1;
  box-shadow: 0 0 8px rgba(255, 248, 185, 0.8);
}

#botao-chute {
  height: 62px;
  border: 1px solid rgba(255, 248, 190, 0.78);
  border-radius: 15px;
  background: linear-gradient(180deg, #ffe783, #f2d052);
  color: #17271b;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.13em;
  box-shadow: 0 4px 0 #ad8f31, 0 9px 20px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.58);
  transition: transform 130ms ease, filter 130ms ease;
}

#botao-chute:active,
#botao-chute.pressionado {
  transform: translateY(3px);
  filter: brightness(1.06);
  box-shadow: 0 1px 0 #ad8f31, 0 4px 10px rgba(0, 0, 0, 0.28);
}

#dica {
  color: rgba(239, 246, 235, 0.82);
  font-size: 12px;
}

#contato-bola {
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: radial-gradient(circle at 38% 30%, #fff 0%, #f2f2e9 44%, #b9c1bc 100%);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4), inset -5px -7px 10px rgba(40, 50, 45, 0.12);
}

#contato-rotulo {
  font-size: 14px;
}

#resultado-titulo {
  letter-spacing: 0.06em;
  text-shadow: 0 4px 0 rgba(5, 13, 17, 0.7), 0 10px 28px rgba(0, 0, 0, 0.65);
}

#resultado.gol #resultado-titulo {
  color: #ffe16a;
  text-shadow: 0 4px 0 rgba(78, 56, 8, 0.62), 0 8px 30px rgba(246, 212, 90, 0.3);
}

#painel {
  border: 1px solid rgba(214, 239, 220, 0.2);
  background: var(--pitch-glass-strong);
  color: var(--pitch-text);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

#painel h3 {
  color: var(--pitch-gold);
}

#painel button,
.folha-cabecalho button,
#ranking-enviar {
  background: var(--pitch-gold);
  color: #17271b;
}

.folha {
  border: 1px solid rgba(222, 240, 225, 0.16);
  background: linear-gradient(155deg, #0a2028, #09171f 72%);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.38);
}

.folha-cabecalho {
  font-size: 21px;
}

.folha-explica,
.folha-rodape {
  color: var(--pitch-muted);
}

.item-cobrador,
.ranking-linha {
  border-color: rgba(220, 238, 225, 0.12);
  background: rgba(218, 236, 224, 0.055);
}

.item-cobrador.escolhido,
.ranking-linha.meu {
  border-color: rgba(246, 212, 90, 0.7);
  background: rgba(246, 212, 90, 0.1);
}

#ranking-entrar {
  border-color: rgba(246, 212, 90, 0.42);
  background: rgba(246, 212, 90, 0.08);
}

#ranking-nome {
  border-color: rgba(225, 241, 227, 0.28);
  background: rgba(2, 12, 18, 0.55);
}

#ranking-nome:focus {
  border-color: var(--pitch-gold);
  box-shadow: 0 0 0 2px rgba(246, 212, 90, 0.22);
}

#acoes-jogada button {
  border-color: rgba(246, 212, 90, 0.9);
  background: rgba(6, 21, 28, 0.9);
  color: var(--pitch-gold);
  font-family: "Barlow", "Trebuchet MS", sans-serif;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

#replay-tag {
  border: 1px solid rgba(255, 100, 100, 0.28);
  background: rgba(7, 19, 26, 0.8);
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 2px solid var(--pitch-lime);
  outline-offset: 3px;
}

@media (max-width: 420px) {
  #hud {
    padding-right: 11px;
    padding-left: 11px;
  }

  #titulo {
    font-size: 17px;
  }

  #cartao-cobrador {
    min-width: 164px;
    padding-right: 8px;
    padding-left: 8px;
  }

  #info {
    font-size: 16px;
  }

  #modos button {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 11px;
  }

  #torneo-panel {
    margin-top: 5px;
    padding: 8px 9px 7px;
  }

  .torneo-duelo { gap: 8px; }
  .torneo-equipo { font-size: 13px; }
  .torneo-equipo { gap: 4px; }
  .torneo-insignia { width: 21px; height: 24px; font-size: 6px; }
  .torneo-marcador { font-size: 23px; }
  .torneo-ruta { gap: 3px; }
  .torneo-ruta-paso { gap: 3px; font-size: 8px; }
  .torneo-ruta-paso:not(:last-child)::after { width: 5px; }
  .torneo-turno { font-size: 9px; }
}

@media (max-width: 350px) {
  .torneo-pie { align-items: flex-start; flex-direction: column; }
  .torneo-ruta { width: 100%; justify-content: space-between; }
  .torneo-ruta-paso:not(:last-child)::after { width: 3px; }
}

#hud.replay #torneo-panel { display: none; }
#hud.replay #partido-panel { display: none; }

/* Partido dibujado: el modo ocupa la cancha, no usa el apuntado de tiros libres. */
#hud.modo-partido #linha-info,
#hud.modo-partido #torneo-panel,
#hud.modo-partido #controles,
#hud.modo-partido #acoes-jogada,
#hud.modo-partido #mensagem,
#hud.modo-partido #resultado,
#hud.modo-partido #replay-tag {
  display: none !important;
}

#hud.modo-partido #partido-panel:not([hidden]) {
  position: fixed;
  z-index: 20;
  inset: 95px 3vw 22px;
  display: flex;
  width: min(1080px, 94vw);
  min-height: 0;
  max-height: none;
  flex-direction: column;
  gap: 7px;
  margin: 0 auto;
  padding: 12px 15px 10px;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid rgba(225, 243, 227, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(29, 93, 64, 0.36), transparent 60%),
    linear-gradient(145deg, rgba(4, 19, 23, 0.97), rgba(5, 27, 30, 0.96));
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.56), inset 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

#hud.modo-partido #partido-panel[hidden] { display: none !important; }

#hud.modo-partido .partido-cabecera { font-size: 11px; }
#hud.modo-partido .partido-marcador { margin: 0; }
#hud.modo-partido .partido-marcador strong { font-size: clamp(12px, 1.7vw, 18px); }
#hud.modo-partido .partido-goles { font-size: clamp(24px, 3vw, 34px); }
#hud.modo-partido .partido-jugada {
  min-height: 17px;
  color: #d6ff5c;
  font-size: 11px;
  letter-spacing: 0.11em;
}
#hud.modo-partido .partido-eventos { margin: 0; }
#hud.modo-partido .partido-evento { width: 9px; height: 9px; }
#hud.modo-partido .partido-resumen { margin: 0; font-size: 11px; }

.partido-campo-marco {
  position: relative;
  flex: 1;
  min-height: 175px;
  overflow: hidden;
  border: 1px solid rgba(223, 246, 225, 0.2);
  border-radius: 14px;
  background: #0c402c;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.32);
}

#partido-campo {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}

#partido-campo:focus-visible {
  box-shadow: inset 0 0 0 3px #d6ff5c;
}

.partido-pasto { fill: url(#partido-pasto); }
.partido-lineas { color: rgba(238, 255, 236, 0.74); stroke: currentColor; stroke-width: 3; }
.partido-lineas circle[fill] { stroke: none; }
.partido-arco { fill: rgba(255, 255, 255, 0.18); stroke-width: 4; }

.partido-jugador circle {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.55));
}
.partido-jugador.propio circle { fill: var(--partido-color-jugador, #d7193f); }
.partido-jugador.rival circle { fill: var(--partido-color-rival, #245dcb); }
.partido-jugador text {
  fill: #fff;
  font: 900 16px/1 "Barlow Condensed", sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.partido-jugador .partido-anillo {
  fill: none;
  stroke: #d6ff5c;
  stroke-width: 4;
  stroke-dasharray: 5 7;
  opacity: 0;
}
.partido-jugador.receptor .partido-anillo {
  opacity: 1;
  animation: partido-receptor 1.4s ease-in-out infinite;
}

.partido-trazo {
  fill: none;
  stroke: #e4ff70;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.94;
  filter: url(#partido-brillo);
  pointer-events: none;
}
.partido-replay-trazo {
  fill: none;
  stroke: #ffad5c;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 13;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(255, 173, 92, 0.85));
  pointer-events: none;
}
.partido-replay-trazo.activo { opacity: 0.96; }
.partido-replay-balon {
  fill: #ffb05b;
  stroke: #fff8dc;
  stroke-width: 3;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 174, 89, 0.9));
  pointer-events: none;
}
.partido-replay-balon.activo { opacity: 1; }
.partido-balon {
  fill: #fffdf1;
  stroke: #13231b;
  stroke-width: 3;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.55));
  transition: cx 430ms cubic-bezier(.2,.8,.2,1), cy 430ms cubic-bezier(.2,.8,.2,1);
}
.partido-puntero {
  fill: none;
  stroke: #e4ff70;
  stroke-width: 3;
  stroke-dasharray: 5 8;
  opacity: 0;
  pointer-events: none;
}

.partido-instruccion {
  min-height: 18px;
  margin: 0;
  color: rgba(242, 247, 237, 0.86);
  font: 700 12px/1.3 "Barlow", sans-serif;
  text-align: center;
}

#botao-reiniciar-partido {
  align-self: center;
  min-height: 42px;
  padding: 0 24px;
  border: 1px solid rgba(232, 255, 133, 0.72);
  border-radius: 999px;
  background: linear-gradient(110deg, #dbff65, #9ae753);
  color: #102116;
  font: 900 12px/1 "Barlow", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

#botao-reiniciar-partido[hidden] { display: none; }
#botao-reiniciar-partido:hover { filter: brightness(1.08); transform: translateY(-1px); }

#botao-replay-partido {
  align-self: center;
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid rgba(255, 178, 96, 0.72);
  border-radius: 999px;
  background: rgba(255, 173, 92, 0.13);
  color: #ffe0b6;
  font: 800 11px/1 "Barlow", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
#botao-replay-partido[hidden] { display: none; }
#botao-replay-partido:hover { background: rgba(255, 173, 92, 0.24); }

@keyframes partido-receptor {
  50% { transform: scale(1.28); opacity: 0.48; }
}

/* Partido 3D: la cancha SVG queda como capa transparente para dibujar la jugada. */
#hud.modo-partido .partido-campo-marco {
  border-color: rgba(216, 255, 110, 0.5);
  background: transparent;
  box-shadow: 0 0 28px rgba(28, 255, 170, 0.15), inset 0 0 24px rgba(2, 15, 11, 0.16);
}
#hud.modo-partido #partido-panel:not([hidden]) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: 0 2px 5px #03130f, 0 0 12px rgba(1, 12, 8, 0.9);
}
#hud.modo-partido .partido-cabecera,
#hud.modo-partido .partido-marcador,
#hud.modo-partido .partido-jugada,
#hud.modo-partido .partido-eventos,
#hud.modo-partido .partido-resumen,
#hud.modo-partido .partido-instruccion {
  text-shadow: 0 2px 5px #03130f, 0 0 12px rgba(1, 12, 8, 0.9);
}
#hud.modo-partido .partido-pasto,
#hud.modo-partido .partido-franjas,
#hud.modo-partido .partido-lineas,
#hud.modo-partido #partido-jugadores,
#hud.modo-partido #partido-balon,
#hud.modo-partido #partido-puntero {
  display: none;
}
#hud.modo-partido .partido-captura {
  fill: transparent;
  pointer-events: all;
}

#hud.modo-partido.partido-svg-fallback .partido-campo-marco {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 9%, transparent 9% 18%),
    linear-gradient(155deg, #187346, #0e5134);
}
#hud.modo-partido.partido-svg-fallback .partido-pasto,
#hud.modo-partido.partido-svg-fallback .partido-franjas,
#hud.modo-partido.partido-svg-fallback .partido-lineas,
#hud.modo-partido.partido-svg-fallback #partido-jugadores,
#hud.modo-partido.partido-svg-fallback #partido-balon,
#hud.modo-partido.partido-svg-fallback #partido-puntero {
  display: initial;
}

#hud.modo-partido .partido-trazo {
  stroke: #ddff4e;
  stroke-width: 9;
  stroke-dasharray: 1 17;
  filter: drop-shadow(0 0 8px rgba(210, 255, 55, 0.95));
  animation: partido-trazo-3d 0.35s linear infinite;
}
@keyframes partido-trazo-3d {
  to { stroke-dashoffset: -18; }
}

@media (max-width: 620px) {
  #hud.modo-partido #partido-panel:not([hidden]) {
    inset: 116px 8px auto;
    width: auto;
    max-height: calc(100dvh - 128px);
    padding: 8px;
    gap: 5px;
    overflow-y: auto;
    border-radius: 13px;
  }
  #hud.modo-partido .partido-eventos { gap: 4px; }
  .partido-campo-marco {
    flex: 0 0 auto;
    height: clamp(180px, 56vw, 275px);
    min-height: 180px;
    border-radius: 10px;
  }
  #hud.modo-partido .partido-instruccion { font-size: 11px; }
  #hud #modos-superiores {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #hud #modos-superiores::-webkit-scrollbar { display: none; }
  #hud #modos-superiores > * { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* El torneo vive en una esquina: marcador y fase sin bloquear el arco. */
#torneo-panel {
  position: fixed;
  z-index: 2;
  top: calc(env(safe-area-inset-top) + 7px);
  right: calc(env(safe-area-inset-right) + 86px);
  width: min(280px, calc(100vw - 250px));
  min-width: 112px;
  margin: 0;
  padding: 5px 8px;
  border-left-width: 2px;
  border-radius: 4px 9px 9px 4px;
}

.torneo-cabecera {
  font-size: 8px;
  letter-spacing: 0.06em;
}

.torneo-en-vivo {
  gap: 4px;
  font-size: 7px;
  white-space: nowrap;
}

.torneo-en-vivo::before {
  width: 5px;
  height: 5px;
}

.torneo-duelo {
  gap: 5px;
  margin-top: 3px;
}

.torneo-equipo {
  gap: 3px;
  font-size: 10px;
}

.torneo-insignia {
  width: 17px;
  height: 19px;
  font-size: 5px;
}

.torneo-marcador {
  gap: 3px;
  font-size: 19px;
}

.torneo-marcador span {
  min-width: 10px;
}

.torneo-marcador i {
  font-size: 13px;
}

.torneo-progreso,
.torneo-pie {
  display: flex;
}

.torneo-progreso {
  margin-top: 5px;
}

.torneo-pie {
  margin-top: 5px;
}

.torneo-ruta {
  gap: 4px;
}

.torneo-ruta-paso {
  font-size: 7px;
}

.torneo-turno {
  font-size: 8px;
}

.torneo-historial-boton {
  margin-top: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(174, 203, 188, 0.22);
  border-radius: 5px;
  color: #d7e8df;
  background: rgba(4, 20, 17, 0.76);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.torneo-historial[hidden] { display: none; }

.torneo-historial {
  max-height: min(38vh, 230px);
  overflow: auto;
  margin-top: 5px;
  padding: 5px;
  border-top: 1px solid rgba(174, 203, 188, 0.17);
  color: #d7e8df;
  background: rgba(4, 20, 17, 0.88);
  font-size: 9px;
}

.torneo-historial p { margin: 0 0 4px; color: #a8c2b6; }
.torneo-historial ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.torneo-historial li { display: grid; grid-template-columns: auto auto 1fr auto; gap: 6px; align-items: center; }
.torneo-historial li strong { font-size: 12px; color: #fff; }
.torneo-historial li b { color: #e58b77; font-size: 8px; }
.torneo-historial li.ganado b { color: #c3ee86; }

#torneo-panel.evento {
  border-color: rgba(246, 212, 90, 0.82);
  box-shadow: 0 0 20px rgba(246, 212, 90, 0.22), 0 7px 20px rgba(0, 0, 0, 0.28);
}

#hud.modo-torneo #versao {
  display: none;
}

#hud.modo-torneo #titulo {
  max-width: 190px;
  overflow: hidden;
  font-size: clamp(11px, 1.7vw, 17px);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

#hud.modo-torneo.torneo-disparo::after,
#hud.modo-torneo.torneo-efecto-gol::after,
#hud.modo-torneo.torneo-efecto-rival::after,
#hud.modo-torneo.torneo-efecto-fallo::after {
  z-index: 4;
  animation-fill-mode: both;
}

#hud.modo-torneo.torneo-disparo::after {
  background: radial-gradient(ellipse at 50% 46%, rgba(246, 212, 90, 0.28), transparent 64%);
  animation: torneo-destello 430ms ease-out;
}

#hud.modo-torneo.torneo-efecto-gol::after {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 249, 214, 0.48), transparent 54%),
    linear-gradient(115deg, rgba(184, 239, 113, 0.14), transparent 44%, rgba(246, 212, 90, 0.16));
  animation: torneo-gol-destello 920ms cubic-bezier(.15, .75, .25, 1);
}

#hud.modo-torneo.torneo-efecto-rival::after,
#hud.modo-torneo.torneo-efecto-fallo::after {
  background: radial-gradient(ellipse at 50% 46%, rgba(255, 141, 92, 0.2), transparent 68%);
  animation: torneo-destello 520ms ease-out;
}

#hud.modo-torneo.torneo-efecto-gol #resultado.gol #resultado-titulo {
  animation: torneo-titulo-gol 900ms cubic-bezier(.15, .75, .25, 1) both;
}

#efectos-torneo {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.torneo-particula {
  position: absolute;
  left: calc(50% + var(--x));
  top: calc(42% + var(--y));
  width: var(--tamano);
  height: calc(var(--tamano) * 1.8);
  border-radius: 2px;
  background: var(--color);
  box-shadow: 0 0 12px var(--color);
  animation: torneo-confeti 1250ms cubic-bezier(.13, .64, .28, 1) var(--demora) both;
}

@keyframes torneo-destello {
  0% { opacity: .82; }
  100% { opacity: 0; }
}

@keyframes torneo-gol-destello {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes torneo-confeti {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0) scale(.5); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--giro)) scale(.7); }
}

@keyframes torneo-titulo-gol {
  0% { transform: scale(.86); filter: brightness(1); }
  30% { transform: scale(1.16); filter: brightness(1.5); }
  58% { transform: scale(.98); }
  100% { transform: scale(1); filter: brightness(1); }
}

@media (max-width: 420px) {
  #hud.modo-torneo #titulo {
    max-width: 132px;
    font-size: 13px;
    letter-spacing: 0.045em;
  }

  #torneo-panel {
    right: calc(env(safe-area-inset-right) + 74px);
    width: min(176px, calc(100vw - 216px));
    min-width: 102px;
    padding: 4px 6px;
  }

  .torneo-ruta { display: none; }
  .torneo-equipo { font-size: 9px; }
  .torneo-insignia { width: 15px; height: 17px; }
  .torneo-marcador { font-size: 17px; }
}

@media (max-width: 350px) {
  #hud.modo-torneo #titulo {
    max-width: 104px;
    font-size: 11px;
  }

  #torneo-panel {
    right: calc(env(safe-area-inset-right) + 68px);
    width: min(150px, calc(100vw - 194px));
    min-width: 96px;
  }
}

/* Transmisión nocturna: una grada luminosa y un campo que conserva el protagonismo. */
#hud::before {
  background:
    radial-gradient(ellipse at 50% 47%, transparent 40%, rgba(4, 12, 19, 0.14) 78%, rgba(3, 10, 16, 0.42)),
    linear-gradient(180deg, rgba(4, 14, 23, 0.54), rgba(4, 14, 23, 0.08) 17%, transparent 33%),
    linear-gradient(0deg, rgba(4, 14, 21, 0.76), rgba(4, 14, 21, 0.16) 23%, transparent 41%);
}

#topo {
  position: relative;
  border-color: rgba(224, 237, 233, 0.2);
  border-radius: 5px 12px 12px 5px;
  background:
    linear-gradient(100deg, rgba(7, 21, 31, 0.94), rgba(9, 28, 36, 0.74)),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.018) 8px 9px);
}

#topo::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 3px;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(180deg, #f7de83, #d69b54);
}

#titulo {
  text-shadow: 0 1px 10px rgba(246, 212, 90, 0.18);
}

#linea-info,
#linha-info {
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.22));
}

#cartao-cobrador {
  background: linear-gradient(112deg, rgba(9, 24, 34, 0.96), rgba(17, 40, 43, 0.9));
  border-radius: 4px 10px 10px 4px;
  box-shadow: inset 3px 0 0 var(--pitch-gold), 0 8px 20px rgba(0, 0, 0, 0.26);
}

#info {
  letter-spacing: 0.035em;
}

#controles {
  border-color: rgba(218, 235, 224, 0.25);
  background:
    linear-gradient(150deg, rgba(7, 22, 30, 0.91), rgba(10, 27, 32, 0.83));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.09);
}

#botao-chute {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffe991, #f0ce57 78%, #e2ba3f);
  box-shadow: 0 4px 0 #a88b37, 0 10px 24px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.64);
}

#botao-chute::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

#barra {
  background:
    repeating-linear-gradient(90deg, transparent 0 9.5%, rgba(4, 13, 17, 0.6) 9.5% 10%),
    rgba(1, 10, 16, 0.78);
}

#resultado-titulo {
  text-transform: uppercase;
  font-style: italic;
  text-shadow: 0 2px 0 rgba(5, 13, 17, 0.72), 0 12px 34px rgba(0, 0, 0, 0.65);
}

#replay-tag {
  letter-spacing: 0.14em;
}

@media (max-width: 600px) {
  #topo {
    padding: 7px 9px;
    backdrop-filter: blur(8px);
  }

  #controles {
    backdrop-filter: blur(12px);
  }
}

/* ── Noche de barrio / transmisión de alto voltaje ───────────────────────
   Una capa final de carácter: carbón frío, rojo de señal y lima eléctrica.
   La viñeta se queda en los bordes para dejar libre la acción en el centro. */
:root {
  --pitch-ink: #080f14;
  --pitch-glass: rgba(8, 15, 20, 0.82);
  --pitch-glass-strong: rgba(8, 15, 20, 0.97);
  --pitch-line: rgba(218, 232, 223, 0.2);
  --pitch-gold: #d5ff32;
  --pitch-lime: #a7ff36;
  --pitch-text: #f4f3e8;
  --pitch-muted: #bac5c3;
}

html,
body {
  background-color: #080f14;
}

#hud {
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.8);
}

#hud::before {
  background:
    radial-gradient(ellipse at 50% 48%, transparent 43%, rgba(4, 8, 12, 0.12) 73%, rgba(3, 7, 10, 0.48)),
    linear-gradient(180deg, rgba(3, 8, 13, 0.58), rgba(3, 8, 13, 0.08) 16%, transparent 32%),
    linear-gradient(0deg, rgba(3, 8, 13, 0.82), rgba(3, 8, 13, 0.2) 22%, transparent 40%);
}

#topo {
  border-color: rgba(222, 235, 228, 0.24);
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  background:
    linear-gradient(100deg, rgba(8, 15, 20, 0.96), rgba(13, 24, 27, 0.82)),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.025) 8px 9px);
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.08);
}

#topo::before {
  width: 4px;
  background: linear-gradient(180deg, #d5ff32, #ff4c38);
}

#hud.flash-gol::after {
  background: radial-gradient(ellipse at 50% 50%, rgba(226, 255, 124, 0.5), rgba(165, 255, 54, 0.2) 42%, transparent 82%);
}

#titulo {
  font-style: italic;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 14px rgba(213, 255, 50, 0.32);
}

#titulo span {
  color: var(--pitch-gold);
}

#versao,
.botao-redondo {
  border-color: rgba(223, 236, 228, 0.28);
  background: rgba(4, 11, 15, 0.82);
}

.botao-redondo:hover,
#botao-fixar:hover,
#botao-ranking:hover,
#botao-tienda:hover,
#modos button:hover {
  border-color: var(--pitch-gold);
  background-color: rgba(244, 230, 78, 0.14);
}

#linha-info {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.42));
}

#cartao-cobrador {
  border-color: rgba(220, 233, 226, 0.22);
  border-radius: 3px 9px 9px 3px;
  background: linear-gradient(112deg, rgba(7, 15, 20, 0.97), rgba(15, 27, 29, 0.94));
  box-shadow: inset 3px 0 0 var(--pitch-gold), 0 9px 24px rgba(0, 0, 0, 0.4);
}

.cartao-numero,
.item-numero,
.ranking-posicao.ouro {
  color: var(--pitch-gold);
}

.cartao-nota b,
.selo.sugerido {
  color: var(--pitch-lime);
}

#info {
  font-weight: 800;
  letter-spacing: 0.045em;
}

#placar {
  color: #fff6b5;
}

#modos button {
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  border-color: rgba(222, 236, 228, 0.3);
  background: rgba(6, 14, 19, 0.84);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

#modos button.ativo,
#botao-fixar.ativo {
  border-color: var(--pitch-gold);
  background: var(--pitch-gold);
  color: #111810;
  box-shadow: 0 3px 18px rgba(213, 255, 50, 0.36);
}

#botao-fixar,
#botao-ranking,
#botao-tienda {
  border-radius: 4px 9px 9px 4px;
  border-color: rgba(222, 236, 228, 0.28);
  background: rgba(6, 14, 19, 0.86);
  color: var(--pitch-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#torneo-panel {
  border-color: rgba(226, 237, 229, 0.22);
  border-left-color: var(--pitch-gold);
  background: linear-gradient(110deg, rgba(7, 14, 19, 0.97), rgba(14, 25, 28, 0.92));
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.08);
}

.torneo-en-vivo {
  color: #ff775e;
}

.torneo-en-vivo.ataja {
  color: var(--pitch-lime);
}

.torneo-marcador,
.torneo-ruta-paso.actual {
  color: var(--pitch-gold);
}

.torneo-marca.gol {
  background: var(--pitch-lime);
}

#controles {
  border-color: rgba(221, 234, 226, 0.24);
  border-radius: 2px;
  border-left: 3px solid #ff4c38;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  background:
    linear-gradient(145deg, rgba(9, 17, 22, 0.98), rgba(5, 11, 15, 0.96)),
    repeating-linear-gradient(135deg, transparent 0 8px, rgba(255, 255, 255, 0.025) 8px 9px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 255, 255, 0.09);
}

#barra {
  border-color: rgba(242, 246, 226, 0.82);
  background:
    repeating-linear-gradient(90deg, transparent 0 9.5%, rgba(3, 9, 12, 0.72) 9.5% 10%),
    rgba(2, 8, 12, 0.9);
}

#barra-preenchida {
  background: linear-gradient(90deg, #a7ff36 0%, #e8ff38 60%, #ff4c38 100%);
}

#barra-ideal {
  background: #fffbd2;
  box-shadow: 0 0 9px rgba(255, 250, 193, 0.9);
}

#botao-chute {
  border: 1px solid rgba(255, 250, 190, 0.82);
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #e2ff43, #b9f52c 76%, #94d51e);
  color: #151a0d;
  font-style: italic;
  text-shadow: none;
  box-shadow: 0 4px 0 #557b13, 0 10px 24px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.7);
}

#botao-chute:hover {
  filter: brightness(1.08);
}

#botao-chute:active,
#botao-chute.pressionado {
  box-shadow: 0 1px 0 #557b13, 0 4px 11px rgba(0, 0, 0, 0.34);
}

#dica {
  color: rgba(241, 245, 235, 0.86);
}

#contato-bola {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.52), inset -5px -7px 10px rgba(40, 50, 45, 0.14);
}

#contato-ponto {
  background: #f04f3d;
  border-color: #fff;
}

#resultado.gol #resultado-titulo {
  color: #e2ff7c;
  text-shadow: 0 4px 0 rgba(42, 61, 10, 0.82), 0 8px 34px rgba(165, 255, 54, 0.38);
}

#resultado.defesa #resultado-titulo {
  color: #bcecff;
}

#mensagem {
  text-transform: uppercase;
  font-style: italic;
}

#acoes-jogada button {
  border-color: rgba(244, 230, 78, 0.86);
  border-radius: 4px 10px 10px 4px;
  background: rgba(6, 14, 19, 0.95);
  color: var(--pitch-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

#acoes-jogada button:hover {
  border-color: var(--pitch-lime);
  background: rgba(199, 242, 90, 0.13);
}

#replay-tag {
  border-color: rgba(255, 106, 86, 0.46);
  border-radius: 3px 8px 8px 3px;
  color: #ff765d;
  font-family: "Barlow Condensed", sans-serif;
}

#indicador-mira {
  border-color: rgba(244, 230, 78, 0.62);
  border-radius: 4px 10px 10px 4px;
  background: rgba(7, 14, 19, 0.94);
  color: var(--pitch-gold);
}

#painel,
.folha {
  border-color: rgba(218, 233, 224, 0.18);
  background: linear-gradient(155deg, #101b20, #080f14 76%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.54);
}

#painel h3 {
  color: var(--pitch-gold);
}

#painel button,
.folha-cabecalho button,
#ranking-enviar {
  border-radius: 4px 9px 9px 4px;
  background: var(--pitch-gold);
  color: #151a0d;
  transition: filter 140ms ease, transform 140ms ease;
}

#painel button:hover,
.folha-cabecalho button:hover,
#ranking-enviar:hover {
  filter: brightness(1.1);
}

.item-cobrador,
.ranking-linha {
  border-color: rgba(222, 235, 227, 0.13);
  border-radius: 4px 10px 10px 4px;
  background: rgba(227, 238, 230, 0.06);
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.item-cobrador:hover,
.ranking-linha:hover {
  border-color: rgba(199, 242, 90, 0.48);
  background: rgba(199, 242, 90, 0.08);
}

.item-cobrador.escolhido,
.ranking-linha.meu {
  border-color: rgba(244, 230, 78, 0.78);
  background: rgba(244, 230, 78, 0.12);
}

#ranking-entrar {
  border-color: rgba(244, 230, 78, 0.46);
  border-radius: 4px 10px 10px 4px;
  background: rgba(244, 230, 78, 0.08);
}

#ranking-nome {
  border-color: rgba(220, 233, 225, 0.3);
  border-radius: 4px 9px 9px 4px;
  background: rgba(3, 9, 13, 0.76);
  color: var(--pitch-text);
}

#ranking-nome:focus {
  border-color: var(--pitch-gold);
  box-shadow: 0 0 0 2px rgba(244, 230, 78, 0.24);
}

#tienda {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.76);
  pointer-events: auto;
  text-shadow: none;
  backdrop-filter: blur(7px);
}

#tienda[hidden] {
  display: none;
}

.folha.tienda-panel {
  width: min(100%, 920px);
  max-width: 920px;
  max-height: min(92vh, 920px);
  padding: 22px;
  border: 1px solid rgba(199, 242, 90, 0.28);
  border-left: 3px solid var(--pitch-lime);
  border-radius: 5px 14px 14px 5px;
  background: linear-gradient(145deg, rgba(13, 25, 30, 0.99), rgba(5, 11, 16, 0.99));
  color: var(--pitch-text);
}

.tienda-cabecalho {
  align-items: center;
}

.tienda-cabecalho > div {
  display: grid;
  gap: 3px;
}

.tienda-eyebrow {
  color: var(--pitch-lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.tienda-identidad {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0 8px;
  color: var(--pitch-muted);
  font-size: 13px;
}

.tienda-identidad > b {
  color: var(--pitch-text);
}

.tienda-saldo {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(244, 230, 78, 0.32);
  border-radius: 4px 9px 9px 4px;
  background: rgba(244, 230, 78, 0.1);
  color: var(--pitch-gold);
  font-weight: 800;
}

#tienda-mensaje {
  min-height: 20px;
  margin: 7px 0 10px;
  color: var(--pitch-lime);
  font-size: 13px;
  font-weight: 700;
}

#tienda-mensaje.error {
  color: #ff9a8a;
}

.tienda-seccion {
  margin-top: 15px;
}

.tienda-seccion-titulo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tienda-seccion-titulo h2 {
  margin: 0;
  color: var(--pitch-text);
  font-size: 18px;
}

.tienda-seccion-titulo span {
  color: var(--pitch-muted);
  font-size: 11px;
}

.tienda-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.tienda-articulo {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(218, 233, 224, 0.15);
  border-radius: 4px 10px 10px 4px;
  background: rgba(227, 238, 230, 0.045);
}

.ropa-muestra {
  position: relative;
  height: 52px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px 8px 8px 3px;
  background: var(--ropa-color);
}

.ropa-muestra.camisa::after {
  position: absolute;
  inset: 0 42%;
  background: var(--ropa-secundario);
  content: "";
  opacity: 0.95;
}

.ropa-muestra.camisa::before {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 50%;
  width: 44px;
  height: 30px;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-top: 0;
  border-radius: 0 0 11px 11px;
  content: "";
}

.ropa-muestra.shorts {
  background:
    linear-gradient(90deg, transparent 43%, rgba(255, 255, 255, 0.2) 44% 47%, transparent 48%),
    var(--ropa-color);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 57% 100%, 50% 43%, 43% 100%, 0 100%);
}

.tienda-articulo > b {
  display: block;
  overflow: hidden;
  color: var(--pitch-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tienda-articulo > small {
  display: block;
  min-height: 17px;
  margin: 3px 0 7px;
  color: var(--pitch-muted);
  font-size: 10px;
}

.tienda-accion {
  width: 100%;
  min-height: 34px;
  padding: 5px 6px;
  border: 0;
  border-radius: 3px 8px 8px 3px;
  background: var(--pitch-lime);
  color: #12180c;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.tienda-accion:disabled {
  border: 1px solid rgba(220, 233, 225, 0.12);
  background: rgba(220, 233, 225, 0.08);
  color: var(--pitch-muted);
  cursor: default;
}

.tienda-atributo {
  padding: 11px;
}

.tienda-atributo-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tienda-atributo-cabecera span {
  color: var(--pitch-gold);
  font-size: 11px;
  font-weight: 900;
}

.tienda-atributo-cabecera b {
  color: var(--pitch-text);
  font-size: 12px;
}

.tienda-atributo-nivel {
  margin: 7px 0;
  color: var(--pitch-muted);
  font-size: 12px;
  font-weight: 800;
}

.tienda-atributo-barra {
  height: 5px;
  overflow: hidden;
  margin: 7px 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.tienda-atributo-barra i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pitch-lime), var(--pitch-gold));
}

.tienda-legal {
  margin: 17px 0 0;
  color: var(--pitch-muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 650px) {
  #tienda {
    align-items: flex-end;
    padding: 0;
  }

  .folha.tienda-panel {
    width: 100%;
    max-height: 94dvh;
    padding: 17px 12px calc(env(safe-area-inset-bottom) + 16px);
    border-right: 0;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
  }

  .tienda-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tienda-grid-mejoras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

button:focus-visible {
  outline-color: var(--pitch-lime);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  #controles {
    border-radius: 2px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  }

  #modos button {
    letter-spacing: 0.025em;
  }

  #acoes-jogada button {
    padding-right: 11px;
    padding-left: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #botao-chute,
  #acoes-jogada button,
  .item-cobrador,
  .ranking-linha,
  #painel button,
  .folha-cabecalho button,
  #ranking-enviar {
    transition: none;
  }
}

#zoom-controls {
  position: fixed;
  z-index: 6;
  left: max(14px, env(safe-area-inset-left));
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 58px;
  padding: 8px 7px;
  border: 1px solid rgba(218, 232, 223, 0.3);
  border-left: 3px solid var(--pitch-lime);
  border-radius: 3px;
  background: linear-gradient(150deg, rgba(7, 19, 25, 0.94), rgba(4, 11, 15, 0.9));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
  color: var(--pitch-text);
  pointer-events: auto;
  text-align: center;
  backdrop-filter: blur(8px);
}

#zoom-titulo {
  color: var(--pitch-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

#zoom-valor {
  min-width: 42px;
  color: var(--pitch-lime);
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#zoom-controls button {
  display: grid;
  width: 40px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(218, 232, 223, 0.28);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f3e8;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

#zoom-controls button:hover:not(:disabled) {
  background: var(--pitch-lime);
  color: var(--pitch-ink);
}

#zoom-controls button:active:not(:disabled) {
  transform: scale(0.94);
}

#zoom-controls button:disabled {
  opacity: 0.42;
  cursor: default;
}

@media (max-width: 600px) {
  #zoom-controls {
    left: max(8px, env(safe-area-inset-left));
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    min-width: 50px;
    padding: 6px 5px;
  }

  #zoom-controls button {
    width: 36px;
    height: 36px;
  }
}

#busqueda-online {
  position: absolute;
  z-index: 18;
  top: clamp(68px, 10vh, 112px);
  left: 50%;
  width: min(610px, calc(100% - 28px));
  min-height: 62px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(194, 224, 205, 0.32);
  border-radius: 15px;
  background: linear-gradient(115deg, rgba(9, 25, 29, 0.94), rgba(14, 39, 37, 0.92));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.08);
  color: #f5f8f3;
  backdrop-filter: blur(14px);
}

#busqueda-online[hidden] {
  display: none;
}

.busqueda-online-indicador {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6ff5c;
  box-shadow: 0 0 14px rgba(214, 255, 92, 0.75);
}

#busqueda-online[data-estado="buscando"] .busqueda-online-indicador,
#busqueda-online[data-estado="conectando"] .busqueda-online-indicador {
  animation: online-pulso 1.2s ease-in-out infinite;
}

#busqueda-online[data-estado="terminado"] .busqueda-online-indicador {
  background: #5deda9;
}

.busqueda-online-texto {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

#busqueda-online-titulo {
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#busqueda-online-detalle {
  color: rgba(239, 246, 237, 0.72);
  font-size: 0.68rem;
  line-height: 1.35;
}

.busqueda-online-cuenta {
  min-width: 40px;
  color: #d6ff5c;
  font-size: 0.88rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

#busqueda-online-ia {
  border: 1px solid rgba(214, 255, 92, 0.45);
  border-radius: 9px;
  padding: 8px 11px;
  background: rgba(214, 255, 92, 0.12);
  color: #f4ffd8;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

#busqueda-online-ia:hover {
  background: rgba(214, 255, 92, 0.22);
}

@keyframes online-pulso {
  50% { opacity: 0.4; transform: scale(0.78); }
}

@media (max-width: 520px) {
  #busqueda-online {
    top: calc(env(safe-area-inset-top) + 55px);
    gap: 8px;
    padding: 9px 10px;
  }

  #busqueda-online-detalle {
    font-size: 0.61rem;
  }

  #busqueda-online-ia {
    padding: 7px 8px;
    font-size: 0.61rem;
  }
}

.jugador-reservado-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(195, 218, 201, 0.18);
  border-radius: 12px;
  background: rgba(11, 26, 27, 0.62);
}

.jugador-reservado-info > div {
  display: grid;
  gap: 4px;
}

.jugador-reservado-info b {
  color: #f4f7f1;
  font-size: 0.83rem;
}

#boton-cambiar-jugador {
  border: 1px solid rgba(214, 255, 92, 0.4);
  border-radius: 9px;
  padding: 8px 11px;
  background: rgba(214, 255, 92, 0.1);
  color: #efffc9;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.codigo-equipar-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100vw - 28px));
  max-height: calc(100dvh - 24px);
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(214, 255, 92, 0.34);
  border-radius: 18px;
  background: linear-gradient(145deg, #152628, #081316 82%);
  color: #f3f7ef;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), inset 0 1px rgba(255, 255, 255, 0.08);
}

.codigo-equipar-dialog::backdrop {
  background: rgba(3, 8, 10, 0.78);
  backdrop-filter: blur(8px);
}

#codigo-equipar-form {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 5vw, 30px);
}

#codigo-equipar-form h2,
#codigo-equipar-form p {
  margin: 0;
}

#codigo-equipar-form h2 {
  font-size: 1.35rem;
}

#codigo-equipar-form p,
#codigo-equipar-form small {
  color: rgba(234, 243, 233, 0.72);
  line-height: 1.5;
}

#codigo-equipar-form p b,
#codigo-equipar-form p strong {
  color: #e3ff72;
}

#codigo-equipar-form label {
  color: #d6ff5c;
  font-size: 0.76rem;
  font-weight: 800;
}

#codigo-equipar-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(222, 240, 219, 0.24);
  border-radius: 10px;
  outline: none;
  background: rgba(3, 10, 12, 0.8);
  color: #f5f8ed;
  font: inherit;
}

#codigo-equipar-input:focus {
  border-color: #d6ff5c;
  box-shadow: 0 0 0 3px rgba(214, 255, 92, 0.15);
}

#codigo-equipar-error {
  color: #ff9b8f;
  font-size: 0.8rem;
}

.codigo-equipar-acciones {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.codigo-equipar-acciones button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(214, 255, 92, 0.3);
  border-radius: 10px;
  background: rgba(214, 255, 92, 0.1);
  color: #efffc9;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.codigo-equipar-acciones button[type="submit"] {
  border-color: transparent;
  background: linear-gradient(135deg, #d6ff5c, #b1d844);
  color: #17200c;
}

#acceso-jugador {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  pointer-events: auto;
  place-items: center;
  overflow: auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 0%, rgba(44, 112, 83, 0.35), transparent 55%),
    rgba(4, 12, 15, 0.86);
  backdrop-filter: blur(12px);
}

#acceso-jugador[hidden] {
  display: none;
}

.acceso-tarjeta {
  width: min(440px, 100%);
  max-height: min(860px, calc(100dvh - 36px));
  overflow-y: auto;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(221, 241, 222, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(150deg, rgba(20, 39, 40, 0.98), rgba(7, 17, 21, 0.98)),
    #0c1b20;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.08);
  color: #f3f7ef;
}

.acceso-identidad-marca {
  display: flex;
  gap: 6px;
  margin-bottom: 27px;
  color: #f5f7f2;
  font-size: 0.76rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.acceso-identidad-marca b {
  color: #d6ff5c;
}

.acceso-tarjeta h1 {
  margin: 7px 0 8px;
  font-size: clamp(1.55rem, 5vw, 2rem);
  letter-spacing: -0.04em;
}

.acceso-descripcion {
  margin: 0 0 20px;
  color: rgba(234, 243, 233, 0.7);
  font-size: 0.84rem;
  line-height: 1.5;
}

#acceso-formulario {
  display: grid;
  gap: 9px;
}

#acceso-formulario label {
  margin-top: 5px;
  color: #dce9d9;
  font-size: 0.72rem;
  font-weight: 800;
}

#acceso-nombre,
#acceso-clave,
#acceso-confirmar,
#acceso-jugadores-guardados {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(211, 230, 210, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: rgba(4, 12, 15, 0.7);
  color: #f5f7f2;
  font: inherit;
  font-size: 0.82rem;
}

#acceso-nombre:focus,
#acceso-clave:focus,
#acceso-confirmar:focus,
#acceso-jugadores-guardados:focus {
  border-color: #d6ff5c;
  box-shadow: 0 0 0 3px rgba(214, 255, 92, 0.14);
}

#acceso-guardados-wrap {
  display: grid;
  gap: 5px;
}
#acceso-guardados-wrap[hidden] { display: none; }

.acceso-estado-jugador {
  min-height: 17px;
  color: rgba(226, 239, 218, 0.7);
  font-size: 0.68rem;
}

.acceso-modos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 5px;
}

.acceso-modos button {
  min-height: 38px;
  border: 1px solid rgba(211, 230, 210, 0.18);
  border-radius: 9px;
  background: rgba(4, 12, 15, 0.55);
  color: rgba(234, 243, 233, 0.72);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.acceso-modos button[aria-pressed="true"] {
  border-color: rgba(214, 255, 92, 0.72);
  background: rgba(214, 255, 92, 0.12);
  color: #e8ffaf;
}

.acceso-atributos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 3px 0 5px;
}

.acceso-atributos span {
  display: grid;
  gap: 3px;
  padding: 7px 3px;
  border: 1px solid rgba(214, 255, 92, 0.12);
  border-radius: 8px;
  background: rgba(214, 255, 92, 0.055);
  color: rgba(234, 243, 233, 0.7);
  text-align: center;
  font-size: clamp(0.5rem, 2vw, 0.61rem);
}

.acceso-atributos b {
  color: #e1ff82;
  font-size: 0.83rem;
}

.acceso-personalizacion {
  display: grid;
  gap: 10px;
  margin: 8px 0 5px;
  padding: 13px;
  border: 1px solid rgba(214, 255, 92, 0.16);
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(214, 255, 92, 0.08), transparent 58%),
    rgba(3, 12, 15, 0.42);
}

.acceso-subtitulo {
  display: grid;
  gap: 3px;
}

.acceso-subtitulo > span {
  color: #d6ff5c;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.acceso-subtitulo h2 {
  margin: 0;
  color: #f3f7ef;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.acceso-color-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, 0.62fr);
  align-items: center;
  gap: 12px;
}

.acceso-rueda-wrap {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}

.acceso-rueda-circulo {
  position: relative;
  width: min(100%, 188px);
  aspect-ratio: 1;
}

#acceso-rueda-color {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.32));
}

.acceso-color-marcador {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.72);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.acceso-brillo {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  width: min(100%, 188px);
  margin: 0 !important;
  color: rgba(234, 243, 233, 0.73) !important;
  font-size: 0.61rem !important;
}

.acceso-brillo input {
  width: 100%;
  accent-color: #d6ff5c;
}

.acceso-color-detalle {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.acceso-color-detalle label {
  justify-self: start;
  margin: 0 !important;
  color: rgba(234, 243, 233, 0.74) !important;
  font-size: 0.61rem !important;
}

.acceso-camiseta-preview {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-bottom: 3px;
  color: rgba(234, 243, 233, 0.58);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.acceso-camiseta-preview svg {
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.38));
}

#acceso-color-camisa {
  width: 48px;
  height: 35px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  background: rgba(4, 12, 15, 0.75);
  cursor: pointer;
}

#acceso-color-hex {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(211, 230, 210, 0.2);
  border-radius: 8px;
  outline: none;
  background: rgba(4, 12, 15, 0.7);
  color: #f5f7f2;
  font: 700 0.68rem ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  text-transform: uppercase;
}

.acceso-personalizacion > label,
.acceso-especialidad legend {
  color: #dce9d9;
  font-size: 0.7rem;
  font-weight: 850;
}

.acceso-personalizacion > select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(211, 230, 210, 0.2);
  border-radius: 9px;
  background: #0a171a;
  color: #f3f7ef;
  font: inherit;
  font-size: 0.74rem;
}

.acceso-especialidad {
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}

.acceso-especialidad legend {
  margin-bottom: 7px;
  padding: 0;
}

.acceso-opciones-especialidad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.acceso-especialidad-opcion {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 8px 9px;
  border: 1px solid rgba(211, 230, 210, 0.16);
  border-radius: 9px;
  background: rgba(4, 12, 15, 0.68);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.acceso-especialidad-opcion:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 255, 92, 0.45);
}

.acceso-especialidad-opcion:has(input:checked) {
  border-color: #d6ff5c;
  background: linear-gradient(145deg, rgba(214, 255, 92, 0.16), rgba(4, 12, 15, 0.85));
  box-shadow: inset 0 0 0 1px rgba(214, 255, 92, 0.12);
}

.acceso-especialidad-opcion input {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  accent-color: #d6ff5c;
}

.acceso-especialidad-opcion b {
  padding-right: 16px;
  color: #f2f7ea;
  font-size: 0.69rem;
}

.acceso-especialidad-opcion small {
  color: rgba(234, 243, 233, 0.61);
  font-size: 0.58rem;
  line-height: 1.35;
}

.acceso-aviso {
  margin: 7px 0 2px;
  color: rgba(235, 217, 164, 0.84);
  font-size: 0.67rem;
  line-height: 1.45;
}

.acceso-error {
  margin: 0;
  color: #ffaaa2;
  font-size: 0.74rem;
  line-height: 1.4;
}

.acceso-enviar {
  min-height: 48px;
  margin-top: 5px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #e0ff64, #b9e834);
  color: #102018;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.acceso-enviar:disabled {
  opacity: 0.45;
  cursor: wait;
}

@media (max-height: 760px) {
  #acceso-jugador {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .acceso-tarjeta {
    max-height: calc(100dvh - 16px);
    padding: 20px 24px;
  }

  .acceso-identidad-marca {
    margin-bottom: 14px;
  }

  .acceso-descripcion {
    margin-bottom: 12px;
  }

  #acceso-formulario {
    gap: 6px;
  }

  .acceso-modos button {
    min-height: 34px;
  }

  .acceso-atributos span {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .acceso-personalizacion {
    gap: 7px;
    padding: 10px;
  }

  .acceso-rueda-circulo,
  .acceso-brillo {
    width: min(100%, 154px);
  }

  .acceso-especialidad-opcion {
    min-height: 56px;
    padding: 6px 7px;
  }

  .acceso-aviso {
    margin-top: 4px;
    font-size: 0.62rem;
  }

  .acceso-enviar {
    min-height: 43px;
  }
}

/* Tienda: acceso permanente junto a los modos y catálogo de club */
#modos-superiores {
  align-items: center;
}

#modos-superiores #botao-tienda {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(198, 240, 112, 0.7);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(184, 239, 113, 0.2), rgba(8, 23, 28, 0.96) 62%);
  color: #f5ffe5;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(184, 239, 113, 0.16), 0 3px 12px rgba(0, 0, 0, 0.28);
}

#modos-superiores #botao-tienda svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--pitch-lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#modos-superiores #botao-tienda b {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(184, 239, 113, 0.14);
  color: var(--pitch-lime);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

#modos-superiores #botao-tienda:hover {
  border-color: #e2ff9e;
  background: linear-gradient(135deg, rgba(184, 239, 113, 0.32), rgba(8, 23, 28, 0.98) 70%);
  box-shadow: 0 0 22px rgba(184, 239, 113, 0.26);
}

#modos-superiores #botao-tienda:active {
  transform: translateY(1px);
}

@media (max-width: 600px) {
  #modos-superiores {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
    padding: 2px 1px 5px;
    scrollbar-width: none;
  }

  #modos-superiores::-webkit-scrollbar {
    display: none;
  }

  #modos-superiores #botao-tienda {
    padding-right: 8px;
    padding-left: 8px;
  }
}

#tienda {
  z-index: 1000;
  padding: clamp(10px, 2.5vw, 28px);
  background:
    radial-gradient(ellipse at 78% 18%, rgba(184, 239, 113, 0.12), transparent 35%),
    linear-gradient(120deg, rgba(4, 13, 17, 0.88), rgba(3, 10, 14, 0.95));
  backdrop-filter: blur(10px) saturate(0.8);
}

.folha.tienda-panel {
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-width: 1120px;
  max-height: min(88dvh, 850px);
  overflow: hidden;
  padding: clamp(16px, 2.3vw, 28px);
  border: 1px solid rgba(204, 235, 215, 0.2);
  border-left: 3px solid var(--pitch-lime);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(17, 31, 34, 0.98), rgba(5, 13, 17, 0.99) 58%),
    #081318;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.08);
}

.tienda-cabecalho {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(214, 238, 224, 0.12);
}

.tienda-marca h1 {
  margin: 3px 0 1px;
  color: #f4f8ec;
  font: 800 clamp(22px, 3vw, 34px)/1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.015em;
}

.tienda-marca > small {
  color: var(--pitch-muted);
  font-size: 12px;
}

.tienda-cabecalho-acciones {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tienda-saldo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(244, 212, 90, 0.38);
  border-radius: 999px;
  background: linear-gradient(110deg, rgba(244, 212, 90, 0.15), rgba(244, 212, 90, 0.04));
  color: var(--pitch-gold);
  font-size: 12px;
}

.tienda-saldo svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.tienda-saldo b {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

#tienda-cerrar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(238, 247, 235, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #eff5eb;
  font: 400 27px/1 system-ui, sans-serif;
  cursor: pointer;
}

.tienda-layout {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.8fr);
  gap: clamp(14px, 2vw, 24px);
  min-height: 0;
  padding-top: 17px;
}

.tienda-jugador-panel {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 15px;
  border: 1px solid rgba(208, 235, 216, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(7, 16, 19, 0.16), rgba(6, 14, 17, 0.78)),
    radial-gradient(ellipse at 50% 25%, rgba(181, 235, 108, 0.22), transparent 56%),
    #13231f;
}

.tienda-panel-etiqueta {
  color: var(--pitch-lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.tienda-jugador-escena {
  position: relative;
  min-height: 245px;
  margin: 12px -15px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 68%, rgba(18, 47, 35, 0.85)),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(221, 255, 202, 0.045) 36px 37px),
    radial-gradient(ellipse at 50% 74%, rgba(144, 201, 95, 0.28), transparent 55%);
}

.tienda-jugador-escena::before {
  position: absolute;
  right: 10%;
  bottom: 22px;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213, 247, 183, 0.38), transparent);
  content: "";
}

.tienda-jugador-silueta {
  position: absolute;
  bottom: 19px;
  left: 50%;
  width: 112px;
  height: 207px;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.36));
}

.tienda-jugador-silueta i {
  position: absolute;
  display: block;
}

.silueta-cabeza {
  top: 0;
  left: 43px;
  width: 27px;
  height: 32px;
  border: 2px solid rgba(238, 226, 196, 0.56);
  border-radius: 45% 48% 42% 40%;
  background: linear-gradient(110deg, #c89572, #734d3d);
}

.silueta-camisa {
  z-index: 2;
  top: 36px;
  left: 23px;
  width: 67px;
  height: 80px;
  clip-path: polygon(24% 0, 76% 0, 100% 17%, 84% 37%, 73% 30%, 72% 100%, 28% 100%, 27% 30%, 16% 37%, 0 17%);
  background: linear-gradient(100deg, var(--ropa-secundario), var(--ropa-color) 24% 75%, var(--ropa-secundario));
}

.silueta-brazo {
  z-index: 1;
  top: 44px;
  width: 17px;
  height: 76px;
  border: 1px solid rgba(235, 225, 203, 0.25);
  border-radius: 10px;
  background: linear-gradient(90deg, #9b694e, #d1a17a);
}

.brazo-izquierdo {
  left: 12px;
  transform: rotate(9deg);
}

.brazo-derecho {
  right: 12px;
  transform: rotate(-9deg);
}

.silueta-short {
  z-index: 3;
  top: 108px;
  left: 29px;
  width: 56px;
  height: 42px;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 55% 100%, 50% 42%, 43% 100%, 5% 100%);
  background: linear-gradient(90deg, var(--ropa-color), #26342f 54%, var(--ropa-color));
}

.silueta-pierna {
  z-index: 1;
  top: 143px;
  width: 19px;
  height: 56px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #9b694e, #d2a17a 68%, #845c45);
}

.pierna-izquierda {
  left: 34px;
  transform: rotate(3deg);
}

.pierna-derecha {
  right: 33px;
  transform: rotate(-3deg);
}

.silueta-balón {
  right: 2px;
  bottom: 7px;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 43%, #182024 0 3px, transparent 3.5px),
    radial-gradient(circle at 70% 68%, #182024 0 2px, transparent 2.5px),
    #f4f2e9;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.tienda-jugador-numero {
  position: absolute;
  z-index: 4;
  top: 97px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247, 250, 230, 0.9);
  font: 900 18px/1 "Barlow Condensed", sans-serif;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.tienda-jugador-datos {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(224, 242, 224, 0.12);
}

.tienda-jugador-datos span {
  color: var(--pitch-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tienda-jugador-datos b {
  overflow: hidden;
  color: #f2f7ec;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tienda-destacado {
  margin-top: auto;
  padding-top: 13px;
}

.tienda-destacado p {
  margin: 5px 0 0;
  color: var(--pitch-muted);
  font-size: 11px;
  line-height: 1.45;
}

.tienda-catalogo {
  min-width: 0;
  overflow-y: auto;
  padding: 1px 2px 3px;
  scrollbar-color: rgba(184, 239, 113, 0.42) transparent;
  scrollbar-width: thin;
}

.tienda-categorias {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(216, 235, 221, 0.12);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.24);
}

.tienda-categorias button {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--pitch-muted);
  font: 800 11px/1 "Barlow", sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.tienda-categorias button[aria-selected="true"] {
  border-color: rgba(184, 239, 113, 0.34);
  background: linear-gradient(100deg, rgba(184, 239, 113, 0.2), rgba(184, 239, 113, 0.07));
  color: #efffdc;
  box-shadow: inset 0 -2px var(--pitch-lime);
}

.tienda-categorias button small {
  color: var(--pitch-lime);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

#tienda-mensaje {
  margin: 8px 2px 0;
}

.tienda-seccion {
  margin-top: 12px;
}

.tienda-seccion[hidden] {
  display: none;
}

.tienda-seccion-titulo {
  margin-bottom: 9px;
}

.tienda-seccion-titulo h2 {
  font: 800 19px/1.1 "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
}

.tienda-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.tienda-articulo {
  padding: 8px;
  border: 1px solid rgba(216, 235, 221, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.055), transparent 60%),
    rgba(5, 13, 16, 0.82);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.tienda-articulo:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 239, 113, 0.52);
  background-color: rgba(184, 239, 113, 0.06);
}

.ropa-muestra {
  display: grid;
  height: 120px;
  place-items: center;
  margin-bottom: 9px;
  border: 1px solid rgba(235, 246, 235, 0.1);
  border-radius: 7px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(222, 242, 221, 0.13), transparent 62%),
    linear-gradient(135deg, rgba(47, 72, 60, 0.52), rgba(8, 18, 20, 0.96));
}

.ropa-muestra.camisa::after {
  inset: auto;
  width: 76px;
  height: 82px;
  transform: translateY(2px);
  clip-path: polygon(24% 0, 76% 0, 100% 18%, 84% 39%, 74% 31%, 74% 100%, 26% 100%, 26% 31%, 16% 39%, 0 18%);
  background: linear-gradient(90deg, var(--ropa-secundario), var(--ropa-color) 23% 77%, var(--ropa-secundario));
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.34));
  opacity: 1;
}

.ropa-muestra.camisa::before {
  top: 25px;
  left: 50%;
  width: 22px;
  height: 10px;
  transform: translateX(-50%);
  border: 2px solid rgba(244, 248, 236, 0.72);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.ropa-muestra.shorts {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(222, 242, 221, 0.12), transparent 62%),
    linear-gradient(135deg, rgba(47, 72, 60, 0.52), rgba(8, 18, 20, 0.96));
  clip-path: none;
}

.ropa-muestra.accesorio {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255,255,255,.14), transparent 60%),
    var(--ropa-color);
}

.ropa-muestra.accesorio::before {
  width: 52px;
  height: 28px;
  border: 7px solid rgba(255,255,255,.82);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  content: "";
}

.tienda-uniforme-guardar {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(216, 235, 221, 0.14);
  border-radius: 10px;
  background: rgba(5, 13, 16, 0.68);
}

.tienda-uniforme-guardar > label {
  display: block;
  margin-bottom: 6px;
  color: var(--pitch-muted);
  font-size: 11px;
  font-weight: 700;
}

.tienda-uniforme-guardar > div {
  display: flex;
  gap: 8px;
}

.tienda-uniforme-guardar input {
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  border: 1px solid rgba(216, 235, 221, 0.2);
  border-radius: 7px;
  background: #101a1b;
  color: var(--pitch-text);
  font: inherit;
}

.tienda-uniformes-lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tienda-uniforme {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(216, 235, 221, 0.14);
  border-radius: 10px;
  background: rgba(5, 13, 16, 0.82);
}

.tienda-uniforme b {
  overflow: hidden;
  color: var(--pitch-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tienda-uniforme small {
  color: var(--pitch-muted);
  font-size: 11px;
}

.ropa-muestra.shorts::after {
  inset: auto;
  width: 68px;
  height: 75px;
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 57% 100%, 50% 48%, 43% 100%, 0 100%);
  background: linear-gradient(90deg, var(--ropa-color), rgba(255, 255, 255, 0.12) 48% 52%, var(--ropa-color));
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.34));
  opacity: 1;
}

.ropa-muestra-numero {
  position: relative;
  z-index: 2;
  align-self: center;
  color: rgba(248, 250, 236, 0.9);
  font: 900 18px/1 "Barlow Condensed", sans-serif;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}

.tienda-atributo {
  min-height: 163px;
}

.tienda-legal {
  margin-top: 13px;
  text-align: left;
}

@media (max-width: 760px) {
  .folha.tienda-panel {
    max-height: 91dvh;
  }

  .tienda-layout {
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
    gap: 12px;
  }

  .tienda-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tienda-uniformes-lista {
    grid-template-columns: 1fr;
  }

  .tienda-uniforme-guardar > div {
    flex-direction: column;
  }

  #hud #modos-superiores {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  #tienda {
    align-items: flex-end;
  }

  .folha.tienda-panel {
    max-height: 93dvh;
    padding: 14px 12px calc(env(safe-area-inset-bottom) + 13px);
    border-radius: 16px 16px 0 0;
  }

  .tienda-cabecalho {
    padding-bottom: 11px;
  }

  .tienda-marca > small {
    font-size: 10px;
  }

  .tienda-cabecalho-acciones {
    gap: 6px;
  }

  .tienda-saldo {
    gap: 4px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .tienda-saldo svg {
    width: 15px;
    height: 15px;
  }

  .tienda-saldo b {
    font-size: 12px;
  }

  .tienda-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow-y: auto;
    padding-top: 10px;
  }

  .tienda-jugador-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 11px;
    padding: 8px 11px;
  }

  .tienda-jugador-panel > .tienda-panel-etiqueta,
  .tienda-destacado {
    display: none;
  }

  .tienda-jugador-escena {
    grid-row: span 2;
    width: 58px;
    min-height: 64px;
    margin: 0;
    border-radius: 7px;
  }

  .tienda-jugador-silueta {
    bottom: 3px;
    transform: translateX(-50%) scale(0.29);
    transform-origin: bottom center;
  }

  .tienda-jugador-numero {
    top: auto;
    bottom: 29px;
    font-size: 9px;
  }

  .tienda-jugador-datos {
    padding: 0;
    border: 0;
  }

  .tienda-jugador-datos b {
    font-size: 14px;
  }

  .tienda-categorias button {
    gap: 4px;
    padding: 9px 5px;
    font-size: 10px;
  }

  .ropa-muestra {
    height: 96px;
  }

  .ropa-muestra.camisa::after {
    transform: translateY(2px) scale(0.82);
  }

  .ropa-muestra.shorts::after {
    transform: scale(0.82);
  }
}

.tienda-jugador-panel {
  overflow-y: auto;
  scrollbar-color: rgba(184, 239, 113, 0.42) transparent;
}

.tienda-jugador-escena > canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tienda-jugador-escena {
  height: 245px;
}

.tienda-modelo-etiqueta {
  position: absolute;
  right: 9px;
  bottom: 8px;
  padding: 4px 6px;
  border: 1px solid rgba(199, 242, 90, 0.23);
  border-radius: 5px;
  background: rgba(5, 13, 16, 0.68);
  color: var(--pitch-lime);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.11em;
  pointer-events: none;
}

.tienda-jugador-datos small {
  display: block;
  margin-top: 4px;
  color: var(--pitch-lime);
  font-size: 10px;
}

.tienda-editor {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 235, 221, 0.13);
}

.tienda-editor-grupo {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 3px 0 0;
  padding: 9px;
  border: 1px solid rgba(216, 235, 221, 0.15);
  border-radius: 8px;
}

.tienda-editor-grupo legend {
  padding: 0 5px;
  color: var(--pitch-lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tienda-editor-check {
  display: flex !important;
  align-items: center;
  gap: 7px !important;
}

.tienda-editor input[type="checkbox"] {
  accent-color: var(--pitch-lime);
}

.tienda-editor input[type="range"] {
  width: 100%;
  accent-color: var(--pitch-lime);
}

.tienda-editor output {
  float: right;
  color: var(--pitch-lime);
  font-variant-numeric: tabular-nums;
}

.tienda-editor summary {
  color: var(--pitch-lime);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tienda-editor form {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.tienda-editor label {
  display: grid;
  gap: 4px;
  color: var(--pitch-muted);
  font-size: 10px;
  font-weight: 700;
}

.tienda-editor input:not([type="color"]),
.tienda-editor select {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(216, 235, 221, 0.19);
  border-radius: 6px;
  background: rgba(4, 10, 13, 0.85);
  color: var(--pitch-text);
  font: 600 11px "Barlow", sans-serif;
}

.tienda-editor-colores,
.tienda-editor-fila {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tienda-editor-colores {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tienda-editor input[type="color"] {
  width: 100%;
  height: 34px;
  padding: 3px;
  border: 1px solid rgba(216, 235, 221, 0.19);
  border-radius: 6px;
  background: rgba(4, 10, 13, 0.85);
  cursor: pointer;
}

.tienda-guardar-estilo {
  width: 100%;
  min-height: 36px;
  border-color: rgba(184, 239, 113, 0.38);
  color: var(--pitch-lime);
}

.admin-panel {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(244, 155, 112, 0.3);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(54, 27, 23, 0.38), rgba(9, 13, 16, 0.82));
}

.admin-cabecera h3 {
  margin: 3px 0;
  color: var(--pitch-text);
  font: 800 20px "Barlow Condensed", sans-serif;
}

.admin-cabecera p,
.admin-global p {
  margin: 5px 0 12px;
  color: var(--pitch-muted);
  font-size: 12px;
}

.admin-unlock,
.admin-bloque {
  display: grid;
  gap: 8px;
}

.admin-unlock label,
.admin-bloque label {
  color: var(--pitch-muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-unlock input,
.admin-bloque input,
.admin-bloque select {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(220, 233, 225, 0.22);
  border-radius: 6px;
  background: rgba(4, 10, 13, 0.82);
  color: var(--pitch-text);
}

.admin-unlock button,
.admin-acciones button,
.admin-global button {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(220, 233, 225, 0.2);
  border-radius: 6px;
  background: rgba(214, 231, 218, 0.08);
  color: var(--pitch-text);
  font-weight: 800;
  cursor: pointer;
}

.admin-mensaje {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--pitch-lime);
  font-size: 11px;
}

.admin-mensaje.error {
  color: #ff9a8a;
}

#admin-herramientas {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

#admin-herramientas[hidden] {
  display: none;
}

.admin-bloque {
  padding: 11px;
  border: 1px solid rgba(220, 233, 225, 0.13);
  border-radius: 7px;
  background: rgba(3, 8, 10, 0.45);
}

.admin-bloque h4 {
  margin: 0;
  color: var(--pitch-text);
  font-size: 13px;
}

.admin-bloque > b {
  color: var(--pitch-lime);
  font-size: 12px;
}

.admin-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-acciones .admin-peligro,
.admin-global .admin-peligro {
  border-color: rgba(255, 140, 117, 0.43);
  color: #ffb3a3;
}

.admin-peligro:hover {
  background: rgba(255, 110, 94, 0.12);
}

.acceso-recuperacion {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(220, 233, 225, 0.15);
}

.acceso-recuperacion summary {
  color: var(--pitch-lime);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.acceso-recuperacion form {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.acceso-recuperacion form p {
  margin: 0;
  color: var(--pitch-muted);
  font-size: 11px;
}

.acceso-recuperacion form label {
  margin-bottom: -5px;
}

@media (max-width: 600px) {
  .tienda-jugador-escena {
    width: 94px;
    height: 145px;
    min-height: 145px;
    margin: 0;
    border-radius: 8px;
  }

  .tienda-modelo-etiqueta {
    right: 3px;
    bottom: 3px;
    font-size: 6px;
  }

  .tienda-editor,
  .tienda-destacado {
    grid-column: 1 / -1;
  }

  .tienda-editor-fila {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 11px;
  }
}
