body,
html {
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
}

/* El blanco global del tema original queda acotado a la propia ventana de espera */
.VentanaModal,
.VentanaModal * {
  color: rgb(255, 255, 255);
  font-family: var(--Myfont);
}

.VentanaModal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  height: 100vh;
  background: var(--DarkBackground1, #fff);
}

.LogoCenter {
  flex: 0 0 auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.containertxt {
  text-align: center;
  height: auto;
  max-width: min(560px, 86vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 30px;
  background: var(--DarkBackground2);
  border-radius: var(--radius-l, 14px);
  border-left: 5px solid var(--NaranjaPixelcom, #ff6000);
  box-shadow: var(--shadow-m, 0 4px 16px rgba(0, 0, 0, .07));
  position: relative;
  overflow: hidden;
}

.containertxt div {
  color: var(--Grey2, #545454);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

/* Barrido lento en el naranja de marca: indica "a la espera" sin ruido visual */
.containertxt::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 34%;
  background: var(--NaranjaPixelcom, #ff6000);
  animation: waiting-sweep 2.6s var(--ease, ease) infinite;
}

@keyframes waiting-sweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(320%);
  }
}

.logo_pixel {
  flex: 0 0 auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo_Karting {
  height: 150px;
}

.timing_img {
  height: 50px;
}

/* responsive */

@media screen and (max-width: 746px) {

  #logo_Karting,
  .timing_img {
    max-width: 100%;
    max-height: 100%;
    display: block;
  }
}

@media screen and (max-height: 746px) {

  #logo_Karting,
  .timing_img {
    max-width: 100%;
    max-height: 100%;
    display: block;
  }

  .VentanaModal {
    gap: 22px;
  }

  .containertxt {
    padding: 16px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .containertxt::after {
    animation: none;
  }
}