/* ── Splash screen ──────────────────────────────────────────────────────── */

#app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0f0f1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: opacity 0.4s ease;
}

#app-splash.splash-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Logo + ring ────────────────────────────────────────────────────────── */
#splash-logo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#splash-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px dashed #C5532B;
  animation: splashRingSpin 4s linear infinite;
  opacity: 0.9;
}

@keyframes splashRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#splash-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* ── Text ───────────────────────────────────────────────────────────────── */
#splash-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

#splash-season {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #C5532B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#splash-flag {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.1em;
}

#splash-sub {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  font-style: italic;
  color: #aaaabc;
  letter-spacing: 0.08em;
}

/* ── Bouncing dots ──────────────────────────────────────────────────────── */
#splash-dots {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

#splash-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C5532B;
  animation: splashDotBounce 1.2s ease-in-out infinite;
}

#splash-dots span:nth-child(2) { animation-delay: 0.2s; }
#splash-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes splashDotBounce {
  0%, 80%, 100% { transform: translateY(0);    opacity: 0.4; }
  40%            { transform: translateY(-8px); opacity: 1;   }
}


/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #splash-logo-wrap {
    width: 64px;
    height: 64px;
  }

  #splash-logo {
    width: 64px;
    height: 64px;
  }

  #splash-ring {
    inset: -8px;
    border-width: 2.5px;
  }

  #splash-title {
    font-size: 1.2rem;
  }

  #splash-season {
    font-size: 0.78rem;
  }

  #splash-flag {
    font-size: 1.6rem;
  }

  #splash-error-text {
    font-size: 0.72rem;
    max-width: 220px;
  }

  #splash-retry-btn {
    font-size: 0.74rem;
    padding: 7px 20px;
  }
}



/* ── Splash error / retry state ──────────────────────────────────────────── */
#splash-error {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

#splash-error-text {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.78rem;
  color: #aaaabc;
  text-align: center;
  max-width: 260px;
  line-height: 1.5;
}

#splash-retry-btn {
  background: #C5532B;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background 0.15s, transform 0.15s;
}

#splash-retry-btn:hover {
  background: #e8693a;
  transform: scale(1.04);
}

#splash-retry-btn:active {
  transform: scale(0.97);
}