@font-face {
  font-family: "SF Pro";
  src: url("assets/fonts/sf-pro/SFPro.woff2") format("woff2-variations");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  height: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body {
  min-height: 100%;
  overflow: hidden;
}

#stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

/* ID selector outranks the UA [hidden] rule, so hide it explicitly. */
#stage[hidden] {
  display: none;
}

#stage web-music-ipod {
  display: block;
  min-height: 692px;
  transform-origin: center;
}

#fallback {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 48px 24px;
  background: #111;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

#fallback .fb-title {
  margin: 0 0 40px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.04em;
}

#fallback ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

#fallback a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
}

#fallback a:hover,
#fallback a:focus-visible {
  border-bottom-color: #fff;
}

#fallback a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

noscript ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

noscript a {
  color: #fff;
}

/* The device has a fixed 692px height, and `scale` shrinks it visually without
   shrinking its layout box. Negative block margins reclaim that space so the
   device never overflows a short viewport. margin = -(692 * (1 - scale) / 2). */
@media (max-height: 800px) {
  #stage web-music-ipod {
    scale: 0.84;
    margin: -55px 0;
  }
}

@media (max-height: 700px) {
  #stage web-music-ipod {
    scale: 0.74;
    margin: -90px 0;
  }
}

@media (max-height: 620px) {
  #stage web-music-ipod {
    scale: 0.64;
    margin: -125px 0;
  }
}

@media (max-height: 480px) {
  body {
    overflow: auto;
  }

  #stage web-music-ipod {
    scale: 0.55;
    margin: -156px 0;
  }
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  #stage {
    padding: 24px 0;
  }

  #stage web-music-ipod {
    scale: 0.82;
    margin: -62px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
