:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #050505;
}

* {
  box-sizing: border-box;
}

html,
body,
.universal-shell {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #050505;
}

.universal-shell {
  position: fixed;
  inset: 0;
  isolation: isolate;
  --live-lyrics-inset: 0px;
}

.universal-shell__skip {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.65rem 0.8rem;
  color: #111;
  background: #fff;
  transform: translateY(-160%);
}

.universal-shell__skip:focus {
  transform: none;
}

.universal-shell__surface {
  position: absolute;
  inset: 0;
  bottom: var(--live-lyrics-inset);
  z-index: 1;
  overflow: hidden;
  background: #070706;
  transition: bottom 220ms ease;
}

.universal-shell__surface iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #090807;
  opacity: 0;
  /* Parent animation coordinates both entrance and exit. */
}

.universal-shell__surface iframe.is-ready {
  opacity: 1;
}

/* The first surface loads behind a brass pocket medallion, never a blank frame. */
.universal-shell__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  color: #d0b77c;
  background: radial-gradient(ellipse at 50% 46%, #302519 0, #17120e 38%, #090807 75%);
}
.universal-shell__loading[hidden] { display: none; }
.pocket-loader {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(180px, 32vmin, 270px);
  aspect-ratio: 1;
}
.pocket-loader__logo {
  display: block;
  width: 82%;
  height: auto;
  filter: drop-shadow(0 4px 18px #000b);
  animation: pocket-loader-breathe 2.6s ease-in-out infinite;
}
.pocket-loader__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid #a57b394d;
  border-radius: 50%;
  box-shadow: inset 0 0 18px #9c713515, 0 0 24px #9c713515;
}
.pocket-loader__orbit::before, .pocket-loader__orbit::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid transparent;
  border-top-color: #e0c286;
  border-right-color: #a57b3966;
  border-radius: 50%;
  animation: shell-loading 3s linear infinite;
}
.pocket-loader__orbit::after { inset: -6px; animation-direction: reverse; animation-duration: 5s; opacity: .5; }
.pocket-loader__spark {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  animation: shell-loading 3s linear infinite;
}
.pocket-loader__spark::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8ce92;
  box-shadow: 0 0 12px #d4ae64;
}
.universal-shell__loading p {
  margin: 0;
  max-width: min(80vw, 32rem);
  text-align: center;
  font: .65rem/1.6 Georgia, "Times New Roman", serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}
body.shell-initial-loading .universal-shell__chrome,
body:is(.shell-initial-loading, .shell-opening-pending) > nysa-project-strip,
body:is(.shell-initial-loading, .shell-opening-pending) > [data-nysa-strip-spacer] { visibility: hidden; }
@keyframes pocket-loader-breathe {
  50% { filter: drop-shadow(0 4px 22px #b68c3b45) brightness(1.13); }
}
@media (prefers-reduced-motion: reduce) {
  .pocket-loader__logo, .pocket-loader__orbit::before,
  .pocket-loader__orbit::after, .pocket-loader__spark { animation: none; }
}

.universal-shell__transition {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  visibility: hidden;
  opacity: 0;
  background: #030303;
  pointer-events: none;
  place-items: center;
  transition: opacity 180ms ease, visibility 0s 180ms;
}

.universal-shell__transition.is-active {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.universal-shell__transition span {
  width: min(72vw, 760px);
  height: 1px;
  background: #fff;
  box-shadow: 0 0 28px #fff;
  transform: scaleX(0);
}

.universal-shell__transition.is-active span {
  animation: shell-seam 420ms ease both;
}

.universal-shell__chrome {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.universal-shell__status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.universal-shell__fallback {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  color: #fff;
  background: #111;
  place-content: center;
  gap: 1rem;
}

.universal-shell__fallback a {
  color: inherit;
}

@keyframes shell-loading {
  to {
    transform: rotate(1turn);
  }
}

@keyframes shell-seam {
  45% {
    transform: scaleX(1);
  }

  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .universal-shell__surface iframe,
  .universal-shell__surface,
  .universal-shell__transition {
    transition: none;
  }

  .universal-shell__loading span {
    animation: none;
  }

  .universal-shell__transition.is-active span {
    animation: none;
  }
}
