/* ==========================================================================
   KIRISH (SPLASH) OYNASI
   --------------------------------------------------------------------------
   Saytga kirilganda birinchi ko'rinadigan oyna: Mobilset logotipi, nom,
   til tanlash va «Davom etish». Ilovadagi `01-splash.html` tuzilishidan
   olingan, veb uchun kengaytirilgan (avtomatik o'tish + progress).
   ========================================================================== */

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--or-6);
  overflow: hidden;
  background:
    radial-gradient(1200px 720px at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(168deg, #eef5ff 0%, #f7fbff 44%, #ffffff 100%);
  transition: opacity 520ms ease, visibility 520ms ease;
}

/* Yopilayotganda — yumshoq so'nish */
.splash.yopilyapti {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash.yopilyapti .splash-tarkib {
  transform: scale(1.04);
}

/* Fon bezaklari — Mobilset gulining nurlari */
.splash-bezak {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-nur {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.splash-nur.apelsin {
  width: 380px;
  height: 380px;
  top: -90px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 146, 15, 0.5), rgba(255, 146, 15, 0) 70%);
}

.splash-nur.kok {
  width: 460px;
  height: 460px;
  bottom: -140px;
  left: -110px;
  background: radial-gradient(circle, rgba(8, 102, 235, 0.34), rgba(8, 102, 235, 0) 70%);
}

/* Nozik nuqtali to'r — «terminal» tuyg'usi */
.splash-tor {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(8, 102, 235, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 68%);
  opacity: 0.7;
}

.splash-tarkib {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 620ms cubic-bezier(0.2, 0, 0.2, 1);
}

/* --- Logotip: asl vektor lockup (gul + «mobilset» yozuvi) --- */
.splash-logo-oila {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: var(--or-5);
  padding: var(--or-6) var(--or-5);
}

/* Logotip ortidagi yumshoq apelsin nur */
.splash-logo-oila::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 300%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 146, 15, 0.22),
    rgba(255, 146, 15, 0) 72%
  );
  animation: splash-nur 3.6s ease-in-out infinite;
}

@keyframes splash-nur {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.splash-logo {
  position: relative;
  width: 330px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(11, 18, 40, 0.13));
  animation: splash-logo-kirish 900ms cubic-bezier(0.18, 1.28, 0.4, 1) both,
             splash-suzish 4.4s ease-in-out 1s infinite;
}

@keyframes splash-logo-kirish {
  0% { opacity: 0; transform: scale(0.72); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes splash-suzish {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* --- Izoh --- */
.splash-izoh {
  margin-top: var(--or-2);
  font-size: 16px;
  font-weight: 500;
  color: var(--matn-2);
  animation: splash-matn 620ms cubic-bezier(0.2, 0, 0.2, 1) 400ms both;
}

@keyframes splash-matn {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: none; }
}

/* --- Til tanlash --- */
.splash-til {
  margin-top: var(--or-8);
  width: 100%;
  animation: splash-matn 620ms cubic-bezier(0.2, 0, 0.2, 1) 560ms both;
}

.splash-til-yorliq {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--matn-3);
  margin-bottom: var(--or-3);
}

.splash-til-tugmalar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--or-3);
}

.til-tugma {
  min-height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--matn-2);
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--ajratgich);
  transition: background var(--otish), color var(--otish), box-shadow var(--otish),
    transform var(--otish);
}

.til-tugma:hover {
  transform: translateY(-1px);
  color: var(--matn);
  box-shadow: inset 0 0 0 1.5px var(--kok-och);
}

.til-tugma.faol {
  background: var(--kok);
  color: #fff;
  box-shadow: 0 8px 20px rgba(8, 102, 235, 0.28);
}

.til-tugma.faol:hover {
  color: #fff;
}

/* --- Davom etish --- */
.splash-davom {
  margin-top: var(--or-6);
  width: 100%;
  animation: splash-matn 620ms cubic-bezier(0.2, 0, 0.2, 1) 680ms both;
}

.splash-davom .tugma {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
  border-radius: 14px;
}

/* --- Avtomatik o'tish chizig'i --- */
.splash-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -46px;
  width: 190px;
  height: 4px;
  border-radius: 999px;
  background: rgba(8, 102, 235, 0.13);
  overflow: hidden;
  animation: splash-matn 500ms ease 760ms both;
}

.splash-progress i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--apelsin), var(--kok));
  transform-origin: left center;
  animation: splash-toldirish var(--splash-davomiylik, 2200ms) linear forwards;
}

@keyframes splash-toldirish {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --- O'tkazib yuborish --- */
.splash-otkaz {
  position: absolute;
  right: var(--or-5);
  bottom: var(--or-5);
  padding: var(--or-3) var(--or-5);
  border-radius: var(--r-chip);
  font-size: 14px;
  font-weight: 700;
  color: var(--matn-2);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1.5px var(--ajratgich);
  transition: color var(--otish), box-shadow var(--otish);
}

.splash-otkaz:hover {
  color: var(--kok);
  box-shadow: inset 0 0 0 1.5px var(--kok-och);
}

/* --- Moslashuv --- */
@media (max-width: 620px) {
  .splash-logo {
    width: 246px;
  }

  .splash-logo-oila {
    padding: var(--or-5) var(--or-4);
  }

  .splash-izoh {
    font-size: 15px;
  }

  .splash-progress {
    bottom: -38px;
    width: 150px;
  }
}

@media (max-height: 620px) {
  .splash-logo {
    width: 208px;
  }

  .splash-logo-oila {
    margin-bottom: var(--or-3);
    padding: var(--or-4) var(--or-4);
  }

  .splash-til {
    margin-top: var(--or-5);
  }

  .splash-davom {
    margin-top: var(--or-4);
  }
}
