/**
 * MIURA bull icon splash intro — overlays first ~3s of 10s splash video.
 * Asset: assets/miura-bull-icon.png · tokens: miura-design-system.css
 */
#screen-splash {
  --splash-navy: #0A0E1A;
  --splash-blue: #245894;
  --splash-blue-dim: #1C406E;
}

.splash-bull-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--splash-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-bull-intro.is-fading {
  opacity: 0;
}

.splash-bull-intro.is-done {
  visibility: hidden;
}

.splash-energy {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  animation: splash-energy-pulse 3.6s ease-in-out infinite;
}

.splash-energy-a {
  width: 220px;
  height: 180px;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(36, 88, 148, 0.42) 0%, rgba(10, 14, 26, 0) 70%);
}

.splash-energy-b {
  width: 160px;
  height: 120px;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(36px);
  background: radial-gradient(circle, rgba(28, 64, 110, 0.28) 0%, rgba(10, 14, 26, 0) 72%);
  animation-delay: -1.2s;
}

@keyframes splash-energy-pulse {
  0%, 100% { opacity: 0.72; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.splash-bars {
  position: absolute;
  bottom: 44%;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  pointer-events: none;
}

.splash-bars-left { left: calc(50% - 34vw); }
.splash-bars-right { left: calc(50% + 34vw); transform: translateX(-100%); }

.splash-bar {
  width: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FFF1C1 0%, #E8C872 35%, #C5A059 70%, #9A7B3A 100%);
  box-shadow: 0 0 6px rgba(232, 200, 114, 0.18);
  transform-origin: bottom center;
  transform: scaleY(0);
  opacity: 0;
}

.splash-bull-intro.is-active .splash-bar {
  animation: splash-bar-rise 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.splash-bars-left .splash-bar:nth-child(1) { height: 28px; animation-delay: 0.05s; }
.splash-bars-left .splash-bar:nth-child(2) { height: 38px; animation-delay: 0.12s; }
.splash-bars-left .splash-bar:nth-child(3) { height: 46px; animation-delay: 0.19s; }
.splash-bars-left .splash-bar:nth-child(4) { height: 58px; animation-delay: 0.26s; }
.splash-bars-left .splash-bar:nth-child(5) { height: 70px; animation-delay: 0.33s; }
.splash-bars-right .splash-bar:nth-child(1) { height: 34px; animation-delay: 0.1s; }
.splash-bars-right .splash-bar:nth-child(2) { height: 50px; animation-delay: 0.18s; }
.splash-bars-right .splash-bar:nth-child(3) { height: 62px; animation-delay: 0.26s; }

@keyframes splash-bar-rise {
  to { transform: scaleY(1); opacity: 0.85; }
}

.splash-icon-wrap {
  position: relative;
  width: min(72vw, 320px);
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(0.92);
  animation: splash-icon-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes splash-icon-in {
  to { opacity: 1; transform: scale(1); }
}

.splash-icon-border {
  position: absolute;
  inset: 0;
  border-radius: 22%;
  pointer-events: none;
}

.splash-icon-border::before,
.splash-icon-border::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  pointer-events: none;
}

.splash-icon-border::before {
  border: 2px solid transparent;
  background: linear-gradient(135deg, #9A7B3A, #E8C872, #C5A059) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
}

.splash-icon-border::after {
  inset: 8px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 20%;
}

.splash-icon-border-trace {
  position: absolute;
  inset: 0;
  border-radius: 22%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(232, 200, 114, 0.9) 40deg,
    transparent 80deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  opacity: 0;
  animation: splash-border-trace 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes splash-border-trace {
  0% { opacity: 0; transform: rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0.6; transform: rotate(360deg); }
}

.splash-bull-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
  animation: gold-icon-glint var(--icon-glint-duration, 4.8s) ease-in-out infinite;
}

.splash-icon-shimmer {
  position: absolute;
  inset: 4%;
  border-radius: 20%;
  overflow: hidden;
  pointer-events: none;
}

.splash-icon-shimmer::after {
  content: '';
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 42%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 248, 231, 0) 35%,
    rgba(255, 248, 231, 0.28) 50%,
    rgba(255, 248, 231, 0) 65%,
    transparent 100%
  );
  animation: splash-shimmer-sweep 4.2s ease-in-out infinite;
}

@keyframes splash-shimmer-sweep {
  0%, 100% { left: -50%; }
  50% { left: 110%; }
}

.splash-video-wrap .splash-video {
  transition: opacity 0.8s ease;
}

.splash-video-wrap.video-revealed .splash-video {
  opacity: 1;
}

.splash-video-wrap:not(.video-revealed) .splash-video {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .splash-bull-intro,
  .splash-bar,
  .splash-icon-wrap,
  .splash-icon-border-trace,
  .splash-icon-shimmer::after,
  .splash-bull-icon,
  .splash-energy {
    animation: none !important;
    transition: none !important;
  }
  .splash-bull-intro.is-fading { opacity: 0; }
  .splash-icon-wrap { opacity: 1; transform: none; }
  .splash-bar { transform: scaleY(1); opacity: 0.85; }
}
