:root {
  --portal-edge-color: #9a7174;
  color-scheme: dark;
  background: var(--portal-edge-color);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--portal-edge-color);
  overscroll-behavior: none;
}

button {
  font: inherit;
}

.portal-experience {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: var(--portal-edge-color);
}

.portal-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms linear;
}

.portal-video.is-active {
  z-index: 1;
  opacity: 1;
}

.portal-hit {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 54.7%;
  width: clamp(170px, 33vh, 310px);
  height: clamp(170px, 33vh, 310px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.portal-hit:disabled {
  pointer-events: none;
  cursor: default;
}

.portal-hit:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 5px;
}

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

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