* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body,
main {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
html {
  background: #1c2c23;
  color-scheme: dark;
}
body {
  color: #fff;
  font:
    500 1rem/1.4 system-ui,
    sans-serif;
}
main {
  position: relative;
  isolation: isolate;
}
.poster,
canvas,
video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.poster {
  object-fit: cover;
}
canvas {
  touch-action: none;
  transition: opacity 0.6s ease;
  cursor: grab;
}
canvas:active {
  cursor: grabbing;
}
.loading canvas,
.unavailable canvas {
  opacity: 0;
  pointer-events: none;
}
main::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0b140d3b, transparent 20%, transparent 72%, #08170f97);
}
video {
  object-fit: contain;
  background: #101d15;
  z-index: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}
.home,
.stage-status,
footer,
.noscript {
  position: absolute;
  z-index: 2;
}
.home,
button {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  color: white;
  font: inherit;
  border: 1px solid #ffffff52;
  border-radius: 100px;
  background: #12241bc7;
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.home:hover,
button:hover {
  background: #283d2e;
}
.home {
  top: max(1rem, env(safe-area-inset-top));
  left: max(clamp(1rem, 3vw, 3.5rem), env(safe-area-inset-left));
}
footer {
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 3vw, 3.5rem) max(1.6rem, env(safe-area-inset-bottom));
  pointer-events: none;
}
footer a,
.tools {
  pointer-events: auto;
}
h1 {
  margin: 0 0 0.2rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1.15;
}
.caption,
.tools p {
  text-shadow: 0 1px 5px #14231a;
}
.caption a {
  font-size: 0.875rem;
  padding-block: 0.4rem;
}
.tools {
  text-align: right;
}
.tools p {
  font-size: 0.875rem;
  margin: 0 0 0.65rem;
}
.tools div {
  display: flex;
  gap: 0.5rem;
  justify-content: end;
}
.stage-status,
.noscript {
  inset: 47% auto auto 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: max-content;
  max-width: 90%;
}
.stage-status span,
.noscript {
  display: block;
  background: #14271ce8;
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
}
.stage-status button {
  margin-top: 0.8rem;
}
.unavailable .stage-status {
  top: auto;
  bottom: 4rem;
}
.unavailable footer,
.unavailable main::after {
  display: none;
}
@media (max-width: 640px) {
  footer {
    flex-direction: column;
    align-items: start;
  }
  .tools {
    text-align: left;
  }
  .tools div {
    justify-content: start;
  }
  .tools p {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  canvas {
    transition: none;
  }
}
