/* =====================================================
   Opening screen - NEXORABET365
   The logo and a spinner, shown first whenever the site is opened, until the page is ready;
   the small script under it in index.html fades it out. Purple, sea blue and white.
   ===================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(29, 78, 216, 0.40), transparent 52%),
    radial-gradient(circle at 50% 78%, rgba(246, 185, 0, 0.16), transparent 58%),
    linear-gradient(160deg, #07080b 0%, #0c0f16 55%, #10141d 100%);
  color: #fff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.splash.out { opacity: 0; visibility: hidden; pointer-events: none; }
/* No scrolling (or scrollbar) behind it while it shows */
html:has(body > .splash:not(.out)) { overflow: hidden; }

.splash-logo {
  width: min(44vw, 176px);
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(29, 78, 216, 0.5)) drop-shadow(0 0 18px rgba(246, 185, 0, 0.22));
  animation: splash-glow 1.6s ease-in-out infinite alternate;
}
.splash-name {
  margin: 4px 0 0;
  font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  font-size: clamp(2.2rem, 11vw, 3.2rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}
.splash-name .b { color: #f6b900; }
.splash-name .n {
  padding-right: 0.06em;
  background: linear-gradient(90deg, #3b82f6, #f6b900);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.splash-tag {
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
/* The spinner: the site's sea blue to purple ring */
.splash-ring {
  width: 42px;
  height: 42px;
  margin-top: 26px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(29, 78, 216, 0) 0deg, #1d4ed8 120deg, #f6b900 330deg, #f6b900 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: splash-spin 0.85s linear infinite;
}
@keyframes splash-spin { to { transform: rotate(360deg); } }
/* Everything shows at once, even on a phone that is busy loading the page (entrance fades
   stalled there and left the name hidden); the logo just breathes gently */
@keyframes splash-glow { to { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  .splash-logo { animation: none; }
  .splash-ring { animation-duration: 2.5s; }
}
