#intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 1.2s ease;
}

#intro.fade-out { opacity: 0; pointer-events: none; }

.intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 30%, rgba(0,0,0,0.9) 100%);
}

#intro-rain { z-index: 1; opacity: 0.8; }

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10vh 20px 6vh;
  opacity: 0;
  animation: introTextIn 1.2s ease forwards;
  animation-delay: 0.4s;
}
/* On phones: push content a bit lower so avatar isn't glued to the flag lion */
@media (max-width: 760px) {
  .intro-content {
    padding-top: 16vh;
    padding-bottom: 8vh;
    justify-content: flex-start;
  }
  .loading-ring { margin-bottom: 10px; }
}

@keyframes introTextIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loading-ring {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 14px;
}

.ring-avatar {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 50%;
  object-fit: cover;
}

.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: ringSpin 3.2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(240,207,122,0.55));
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.ring-track {
  fill: none;
  stroke: rgba(240,207,122,0.15);
  stroke-width: 3;
}

.ring-progress {
  fill: none;
  stroke: #f0cf7a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 85 254;
}

#intro-name {
  font-size: clamp(1.5rem, 4.6vw, 2.3rem);
  color: var(--gold-bright, #f0cf7a);
  letter-spacing: 0.08em;
  text-shadow: 0 0 24px rgba(240,207,122,0.35);
}

.intro-loading-label {
  color: #a89a7d;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}

.intro-line {
  color: #d9cba0;
  font-size: clamp(0.9rem, 2.4vw, 1.1rem);
  margin-top: 4px; /* closer to the name */
}

/* Apple-style activity spinner (8 blades) */
.ios-spinner {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 6px auto 8px;
}
.ios-spinner-blade {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2.2px;
  height: 5.5px;
  margin-left: -1.1px;
  border-radius: 1.5px;
  background: #c8c8c8;
  transform-origin: 1.1px 10px;
  animation: iosBlade 0.8s linear infinite;
}
.ios-spinner-blade:nth-child(1) { transform: rotate(0deg);   animation-delay: -0.7s; }
.ios-spinner-blade:nth-child(2) { transform: rotate(45deg);  animation-delay: -0.6s; }
.ios-spinner-blade:nth-child(3) { transform: rotate(90deg);  animation-delay: -0.5s; }
.ios-spinner-blade:nth-child(4) { transform: rotate(135deg); animation-delay: -0.4s; }
.ios-spinner-blade:nth-child(5) { transform: rotate(180deg); animation-delay: -0.3s; }
.ios-spinner-blade:nth-child(6) { transform: rotate(225deg); animation-delay: -0.2s; }
.ios-spinner-blade:nth-child(7) { transform: rotate(270deg); animation-delay: -0.1s; }
.ios-spinner-blade:nth-child(8) { transform: rotate(315deg); animation-delay: 0s; }
/* hide extra blades if present */
.ios-spinner-blade:nth-child(n+9) { display: none; }
@keyframes iosBlade {
  0%   { opacity: 1; }
  100% { opacity: 0.15; }
}
  100% { opacity: 0.12; }
}
