/* assets/css/pages/lototurf.css */

body[data-game="lototurf"] {
  --color-acento: var(--color-lototurf);
}

body[data-game="lototurf"] #number-grid.number-grid {
  display: block !important;
  grid-template-columns: unset !important;
  gap: 0 !important;
  width: 100%;
}

body[data-game="lototurf"] #number-grid.number-grid > .lototurf {
  width: 100%;
  max-width: 100%;
}

body[data-game="lototurf"] .lototurf {
  display: grid;
  gap: 1.6rem;
}

body[data-game="lototurf"] .lototurf__card {
  border: 1px solid var(--color-borde-1);
  border-radius: var(--radius-12);
  background: color-mix(in srgb, var(--color-tarjeta) 96%, #000 2%);
  padding: 1.2rem;
}

body[data-game="lototurf"] .lototurf__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--color-texto-secundario);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-game="lototurf"] .lototurf__grid {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  width: 100%;
  min-width: 0;
}

body[data-game="lototurf"]
  .lototurf__grid:not(.lototurf__grid--horse):not(.lototurf__grid--reintegro) {
  grid-template-columns: repeat(
    auto-fit,
    minmax(var(--size-number-button), 1fr)
  );
}

body[data-game="lototurf"] .lototurf__btn {
  width: 100%;
  height: var(--size-number-button);
  min-width: 3.6rem;

  border-radius: var(--radius-10);
  border: 1px solid var(--color-borde-1);

  background: color-mix(
    in srgb,
    var(--color-tarjeta) 86%,
    var(--color-texto-principal) 4%
  );

  color: color-mix(
    in srgb,
    var(--color-texto-principal) 78%,
    var(--color-texto-secundario)
  );

  display: grid;
  place-items: center;

  font-size: var(--texto-14);
  font-weight: 850;
  line-height: 1;

  cursor: pointer;
  user-select: none;

  transition:
    transform 120ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body[data-game="lototurf"] .lototurf__btn:hover {
  background: color-mix(in srgb, var(--color-acento) 18%, var(--color-tarjeta));
  border-color: color-mix(
    in srgb,
    var(--color-acento) 45%,
    var(--color-borde-1)
  );
  color: var(--color-texto-principal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

body[data-game="lototurf"] .lototurf__btn:active {
  transform: translateY(0);
}

body[data-game="lototurf"] .lototurf__btn.is-selected,
body[data-game="lototurf"] .lototurf__btn[aria-pressed="true"] {
  background: var(--color-acento);
  border-color: var(--color-acento);
  color: var(--color-acento-text, var(--color-texto-invertido));
  box-shadow: var(--shadow-sm);
}

body[data-game="lototurf"] .lototurf__btn.is-selected:hover,
body[data-game="lototurf"] .lototurf__btn[aria-pressed="true"]:hover {
  background: var(--color-acento);
  border-color: var(--color-acento);
  transform: translateY(-1px);
}

body[data-game="lototurf"] .lototurf__btn--num {
  letter-spacing: 0.02em;
}

body[data-game="lototurf"] .lototurf__btn--horse {
  position: relative;
  overflow: visible;

  border-radius: 999px;
  font-weight: 900;
}

body[data-game="lototurf"] .lototurf__btn--horse::before {
  content: "";
  position: absolute;

  top: 0;
  left: 0;
  transform: translate(-55%, -55%);

  width: 26px;
  height: 26px;

  background: url("../../icons/caballo-icon.png") no-repeat center / contain;

  opacity: 0.96;
  pointer-events: none;
  filter: none;
}

body[data-game="lototurf"] .lototurf__btn--horse.is-selected::before,
body[data-game="lototurf"] .lototurf__btn--horse[aria-pressed="true"]::before {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}

body[data-game="lototurf"] .lototurf__btn--reintegro {
  font-weight: 900;
}

body[data-game="lototurf"] .slot--horse {
  position: relative;
  overflow: visible;
}

body[data-game="lototurf"] .slot--horse::before {
  content: "";
  position: absolute;

  top: 0;
  left: 0;
  transform: translate(-55%, -55%);

  width: 22px;
  height: 22px;

  background: url("../../icons/caballo-icon.png") no-repeat center / contain;

  opacity: 0.95;
  pointer-events: none;
  filter: none;
}

body[data-game="lototurf"] .slot--horse.is-filled::before {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}

@media (max-width: 768px) {
  body[data-game="lototurf"] .lototurf {
    gap: 1.4rem;
  }

  body[data-game="lototurf"] .lototurf__card {
    padding: 1.1rem;
  }

  body[data-game="lototurf"] .lototurf__title {
    font-size: 1.3rem;
  }

  body[data-game="lototurf"] .lototurf__grid {
    gap: 0.7rem;
  }

  body[data-game="lototurf"] .lototurf__btn--horse::before {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 560px) {
  body[data-game="lototurf"] .lototurf {
    gap: 1.2rem;
  }

  body[data-game="lototurf"] .lototurf__card {
    padding: 1rem;
  }

  body[data-game="lototurf"] .lototurf__title {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
  }

  body[data-game="lototurf"] .lototurf__grid {
    gap: 0.6rem;
  }

  body[data-game="lototurf"] .lototurf__btn {
    font-size: 1.3rem;
  }

  body[data-game="lototurf"] .lototurf__btn--horse::before {
    width: 22px;
    height: 22px;
  }

  body[data-game="lototurf"] .slot--horse::before {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 420px) {
  body[data-game="lototurf"] .lototurf__card {
    padding: 0.95rem;
  }

  body[data-game="lototurf"] .lototurf__title {
    font-size: 1.2rem;
  }

  body[data-game="lototurf"] .lototurf__grid {
    gap: 0.5rem;
  }

  body[data-game="lototurf"] .lototurf__btn {
    font-size: 1.25rem;
  }

  body[data-game="lototurf"] .lototurf__btn--horse::before {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 360px) {
  body[data-game="lototurf"] .lototurf__btn--horse::before {
    width: 18px;
    height: 18px;
  }

  body[data-game="lototurf"] .slot--horse::before {
    width: 18px;
    height: 18px;
  }
}

body[data-game="lototurf"] #lototurf-horse-grid.lototurf__grid--horse,
body[data-game="lototurf"] #lototurf-reintegro-grid.lototurf__grid--reintegro {
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--size-number-button));
  justify-content: center;
  justify-items: center;
}

body[data-game="lototurf"] #lototurf-reintegro-grid.lototurf__grid--reintegro {
  gap: 0.8rem;
}

body[data-game="lototurf"]
  #lototurf-reintegro-grid.lototurf__grid--reintegro
  > button {
  width: var(--size-number-button);
  height: var(--size-number-button);
  min-width: 3.6rem;
  min-height: 3.6rem;
}
