/* Readability and atmosphere refinement. Important declarations intentionally
   override the embedded prototype styles without rewriting the timed sequence. */

.light {
  width: 30vw !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 242, 248, 0.04) 22%,
    rgba(244, 249, 252, 0.2) 43%,
    rgba(255, 255, 255, 0.36) 50%,
    rgba(244, 249, 252, 0.2) 57%,
    rgba(232, 242, 248, 0.04) 78%,
    transparent 100%
  ) !important;
  filter: blur(24px) !important;
}

.beam .light { opacity: 0.64 !important; }

.dust {
  left: 38% !important;
  top: 8% !important;
  width: 24% !important;
  height: 55% !important;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255,255,255,.14), transparent 48%),
    radial-gradient(ellipse at 44% 68%, rgba(214,224,228,.08), transparent 58%) !important;
  background-size: 100% 100% !important;
  filter: blur(30px) !important;
  mask-image: linear-gradient(transparent, #000 18%, #000 72%, transparent) !important;
}

.beam .dust { opacity: 0.55 !important; }

.brand {
  color: #fff !important;
  text-shadow: 0 2px 18px #000, 0 0 42px #000 !important;
}

.brand b { font-size: 20px !important; }
.brand small { font-size: 9px !important; color: #fff !important; }

.beats::before {
  content: "";
  position: absolute;
  width: min(720px, 90vw);
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.72), rgba(0,0,0,.28) 52%, transparent 74%);
  filter: blur(8px);
}

.beat {
  color: #fff !important;
  font-size: clamp(48px, 5vw, 76px) !important;
  text-shadow: 0 3px 18px #000, 0 0 40px #000 !important;
}

.beat em { color: #ffc16f !important; }

.title-card::before {
  content: "";
  position: absolute;
  width: min(930px, 94vw);
  height: 430px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.78), rgba(0,0,0,.32) 55%, transparent 76%);
  filter: blur(8px);
}

.title-card .script,
.title-card h1,
.title-card p {
  text-shadow: 0 3px 20px #000, 0 0 44px #000 !important;
}

.title-card p {
  color: #fff !important;
  opacity: 1 !important;
  font-size: 17px !important;
}

.mini,
.actions button,
.chapters,
.time,
.replay {
  text-shadow: 0 2px 8px #000 !important;
}

.actions button {
  background: rgba(0,0,0,.72) !important;
  border-color: rgba(255,255,255,.72) !important;
}

.track { display: block !important; background: rgba(255,255,255,.48) !important; }
.progress { bottom: 24px !important; }
.chapters { color: rgba(255,255,255,.78) !important; }
.fill { display: block !important; }

@media (max-width: 650px) {
  .light { width: 70vw !important; }
  .dust { left: 25% !important; width: 50% !important; }
  .brand b { font-size: 17px !important; }
  .beat { font-size: 44px !important; }
  .title-card p { font-size: 15px !important; max-width: 340px !important; }
  .actions { gap: 4px !important; }
  .actions button {
    display: block !important;
    min-width: 48px !important;
    padding: 0 7px !important;
    font-size: 7px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dust { display: none !important; }
}

.entry::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms cubic-bezier(.65,0,.35,1);
}

.entry.leaving::after { opacity: 1; }
.entry.leaving .title-card { transform: scale(1.025); opacity: 0; }
.entry.leaving .topbar,
.entry.leaving .progress,
.entry.leaving .replay { opacity: 0; transition: opacity 350ms ease; }

.enter-site {
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 20px 60px rgba(0,0,0,.35);
}
