/* SPORTONOM splash / loading screen — shown once per browser session on the home page. */
.sportonom-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 12%, rgba(16, 117, 255, .25), transparent 32%),
    radial-gradient(circle at 18% 86%, rgba(140, 240, 74, .12), transparent 30%),
    linear-gradient(150deg, #07111f 0%, #091a2c 100%);
  opacity: 1;
  visibility: visible;
  will-change: opacity;
  transition: opacity .55s cubic-bezier(.22,.8,.24,1), visibility .55s;
}
.sportonom-splash.sportonom-splash-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sportonom-splash-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #0a75ff;
  filter: blur(120px);
  opacity: .4;
  top: 6%;
  right: -60px;
  animation: sportonom-splash-glow 3.2s ease-in-out infinite;
}
.sportonom-splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
  padding: 2rem;
  animation: sportonom-splash-rise .85s cubic-bezier(.2,.75,.25,1) both;
}
.sportonom-splash-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.sportonom-splash-logo {
  width: 124px;
  height: 124px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 24px rgba(22, 133, 255, .4));
  animation: sportonom-splash-pulse 1.8s ease-in-out infinite;
}
.sportonom-splash-wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 1.3rem;
  color: #f3f8fc;
}
.sportonom-splash-welcome {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: #cfe0ee;
  margin: 0;
  letter-spacing: -.02em;
}
.sportonom-splash-progress-track {
  width: min(240px, 60vw);
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
  margin-top: .45rem;
}
.sportonom-splash-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(100deg, #49a3ff, #8cf04a);
  box-shadow: 0 0 18px rgba(73,163,255,.45);
  transition: width .12s linear;
}
.sportonom-splash-percent {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  color: #7f9bb2;
}

@keyframes sportonom-splash-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

@keyframes sportonom-splash-glow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .36; }
  50% { transform: translate3d(-28px, 18px, 0) scale(1.12); opacity: .52; }
}

@keyframes sportonom-splash-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .sportonom-splash-logo { width: 104px; height: 104px; }
  .sportonom-splash-wordmark { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sportonom-splash-glow,
  .sportonom-splash-inner,
  .sportonom-splash-logo {
    animation: none;
  }
}

/* v5 - clean mark only: no dark tile, no duplicate wordmark next to it */
.sportonom-splash-wordmark { display: none; }
.sportonom-splash-logo { background: none; box-shadow: none; }

/* v6 - robust loading: the page can never stay locked behind the splash, even if JavaScript fails */
body.splash-lock { overflow: hidden; animation: sportonom-splash-unlock 0s linear 5s forwards; }
@keyframes sportonom-splash-unlock { to { overflow: auto; } }
.sportonom-splash { animation: sportonom-splash-failsafe .5s ease 4.6s forwards; }
@keyframes sportonom-splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.sportonom-splash-logo { filter: drop-shadow(0 10px 30px rgba(22, 133, 255, .38)); }
@media (prefers-reduced-motion: reduce) { .sportonom-splash-progress-fill { transition: none; } }
