:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #080b19;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button {
  font: inherit;
}

.page-shell,
.hero {
  width: 100%;
  height: 100%;
}

.page-shell {
  display: grid;
  place-items: center;
  background: #080b19;
}

.hero {
  position: relative;
  width: min(100vw, 56.25vh);
  width: min(100vw, 56.25svh);
  width: min(100vw, 56.25dvh);
  height: min(100vh, 177.7778vw);
  height: min(100svh, 177.7778vw);
  height: min(100dvh, 177.7778vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #080b19;
}

.hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.play-hotspot {
  position: absolute;
  z-index: 2;
  top: 3.1%;
  right: 3.7%;
  width: 25.8%;
  height: 5.2%;
  padding: 0;
  border: 0;
  border-radius: 10%;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.play-hotspot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.play-hotspot:active {
  background: rgba(255, 255, 255, .12);
}

.toast {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(4% + env(safe-area-inset-bottom));
  max-width: 80%;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(5, 7, 18, .92);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
