.microcosm-secret-page {
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  cursor: none;
  overscroll-behavior: none;
  touch-action: none;
}

.microcosm-secret-page.is-exit-cursor {
  cursor: none;
}

.microcosm-hybrid-page.is-simple-interface {
  min-height: 100vh;
  overflow: auto;
  overscroll-behavior: auto;
  touch-action: auto;
}

.microcosm-hybrid-page.is-advanced-interface .microcosm-simple-nav,
.microcosm-hybrid-page.is-advanced-interface .microcosm-simple-interface,
.microcosm-hybrid-page.is-simple-interface .microcosm-advanced-nav,
.microcosm-hybrid-page.is-simple-interface .microcosm-secret-space {
  display: none !important;
}

.microcosm-hybrid-page.is-simple-interface .microcosm-simple-nav {
  display: flex;
}

.microcosm-hybrid-page.is-simple-interface .microcosm-simple-interface {
  display: flex;
}

.microcosm-hybrid-page .project-nav {
  top: 24px;
  left: 24px;
  z-index: 12;
  height: 38px;
}

.microcosm-hybrid-page .project-nav > a:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
  line-height: 1;
}

.microcosm-hybrid-page .project-nav .microcosm-interface-switch {
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  gap: 7px;
  text-transform: none;
  white-space: nowrap;
}

.microcosm-hybrid-page .project-nav .microcosm-interface-switch:hover {
  transform: translateY(-1px);
}

.microcosm-hybrid-page .microcosm-simple-nav .reveal-right {
  opacity: 1;
  filter: none;
  transform: none;
}

.microcosm-zoom-hint {
  position: fixed;
  left: 50%;
  bottom: 48px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(245, 245, 245, 0.52);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transform: translateX(-50%);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.microcosm-zoom-hint__icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.microcosm-secret-page.has-used-scroll-zoom .microcosm-zoom-hint {
  opacity: 0;
  transform: translate(-50%, 4px);
}

@media (hover: none), (pointer: coarse) {
  .microcosm-zoom-hint {
    display: none !important;
  }
}

.microcosm-secret-page .cursor-blur {
  opacity: 0 !important;
}

.microcosm-secret-page .cursor-dot {
  opacity: 0 !important;
}

.microcosm-secret-page .loader,
.microcosm-secret-page .is-loading-media::after {
  display: none !important;
}

.microcosm-secret-page.is-exit-cursor .cursor-dot.is-visible {
  opacity: 1 !important;
}

.microcosm-secret-page.is-exit-cursor .microcosm-secret-space {
  cursor: none;
}

.microcosm-secret-page.is-exit-cursor .microcosm-secret-nav,
.microcosm-secret-page.is-exit-cursor .microcosm-secret-nav a {
  cursor: none;
}

.microcosm-secret-nav {
  z-index: 12;
  cursor: none;
}

.microcosm-secret-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: rgba(245, 245, 245, 0.78);
  font-size: 1.05rem;
  line-height: 1;
  border-bottom: 0;
  cursor: none;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.microcosm-secret-nav a:hover {
  color: #f5f5f5;
  transform: translateX(-2px);
}

.microcosm-secret-interface-switch {
  z-index: 12;
}

.microcosm-secret-nav .microcosm-secret-interface-switch {
  width: auto;
  min-width: 0;
  padding: 0;
  gap: 7px;
  white-space: nowrap;
}

.microcosm-secret-page.has-hidden-interface-switch .microcosm-secret-interface-switch {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
}

.microcosm-interface-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(245, 245, 245, 0.34);
  border-radius: 3px;
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.72;
  transform: translateY(-0.5px);
}

.microcosm-secret-space {
  --zoom-progress: 0;
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1050px;
  perspective-origin: 50% 50%;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  cursor: none;
  overscroll-behavior: none;
  touch-action: none;
}

.microcosm-secret-space::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: 0;
  background: #000;
  opacity: 1;
  transition: opacity 500ms ease;
  pointer-events: none;
}

.microcosm-secret-space::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.4)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 28%, transparent 78%, rgba(0, 0, 0, 0.52));
  pointer-events: none;
}

.microcosm-secret-camera {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.microcosm-secret-panel {
  --panel-width: 400px;
  --screen-x: 0px;
  --screen-y: 0px;
  --project-scale: 1;
  --project-rotate-x: 0deg;
  --project-rotate-y: 0deg;
  --panel-focus-scale: 1;
  --panel-opacity: 0.7;
  --panel-blur: 0px;
  --panel-video-scale: 1;
  --panel-brightness: 0.72;
  --panel-saturation: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--panel-width);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.64);
  overflow: hidden;
  opacity: var(--panel-opacity);
  box-shadow: none;
  cursor: none;
  transform:
    translate(-50%, -50%)
    translate3d(var(--screen-x), var(--screen-y), 0)
    scale(var(--project-scale))
    rotateX(var(--project-rotate-x))
    rotateY(var(--project-rotate-y))
    scale(var(--panel-focus-scale));
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition:
    opacity 280ms ease,
    box-shadow 320ms ease,
    filter 320ms ease;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.microcosm-secret-panel:focus,
.microcosm-secret-panel:focus-visible {
  outline: 0;
}

.microcosm-secret-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 50% 45%, transparent 44%, rgba(0, 0, 0, 0.3));
  mix-blend-mode: screen;
  opacity: 0.24;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.microcosm-panel-loader,
.microcosm-panel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  pointer-events: none;
}

.microcosm-panel-video {
  z-index: 0;
  opacity: 0;
  filter:
    grayscale(calc(1 - var(--panel-saturation)))
    saturate(calc(0.25 + var(--panel-saturation) * 1.08))
    brightness(var(--panel-brightness))
    contrast(calc(1.08 + var(--panel-saturation) * 0.08))
    blur(var(--panel-blur));
  transform: scale(var(--panel-video-scale));
  transition:
    filter 320ms ease,
    transform 320ms ease;
}

.microcosm-secret-panel.is-video-ready .microcosm-panel-video {
  opacity: 1;
}

.microcosm-panel-loader {
  z-index: 1;
  opacity: 1;
  filter: contrast(1.04) brightness(0.92);
  transform: scale(1.015);
  transition: none;
}

.microcosm-secret-panel.is-video-ready .microcosm-panel-loader {
  opacity: 0;
}

.microcosm-secret-panel.is-hovered,
.microcosm-secret-panel.is-focused,
.microcosm-secret-panel.is-active,
.microcosm-secret-panel.is-intro-held {
  --panel-opacity: 1;
  --panel-brightness: 1;
  --panel-saturation: 1;
}

.microcosm-secret-panel.is-hovered,
.microcosm-secret-panel.is-focused {
  box-shadow: none;
}

.microcosm-secret-panel.is-hovered::before,
.microcosm-secret-panel.is-focused::before {
  opacity: 0.08;
}

.microcosm-secret-panel.is-dimmed {
  --panel-opacity: 0.62;
  --panel-brightness: 0.76;
  --panel-saturation: 0;
}

.microcosm-secret-panel--title {
  --panel-width: 400px;
  --panel-focus-scale: 1;
  z-index: 5;
}

.microcosm-secret-page.has-looked-away .microcosm-secret-panel--title:not(.is-hovered):not(.is-focused) {
  --panel-opacity: 0.86;
}

.microcosm-secret-panel--one {
  --panel-width: 400px;
  z-index: 6;
}

.microcosm-secret-panel--two {
  --panel-width: 400px;
  z-index: 2;
}

.microcosm-secret-panel--three {
  --panel-width: 400px;
  z-index: 1;
}

.microcosm-secret-panel--four {
  --panel-width: 400px;
  z-index: 6;
}

.microcosm-secret-panel--five {
  --panel-width: 400px;
  z-index: 4;
}

.microcosm-secret-panel--six {
  --panel-width: 400px;
  z-index: 3;
}

.microcosm-secret-panel.is-focused {
  --panel-focus-scale: 1;
  z-index: 7;
}

.microcosm-secret-panel--title.is-focused {
  --panel-focus-scale: 1;
}

.microcosm-secret-page.has-focused-panel .microcosm-secret-panel:not(.is-focused) {
  --panel-focus-scale: 1;
}

.microcosm-secret-page.has-negative-space .microcosm-secret-panel:not(.is-focused):not(.is-hovered) {
  --panel-opacity: 0.68;
}

.microcosm-camera-hud {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(245, 245, 245, 0.68);
  font-size: 0.68rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  opacity: 0.68;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 220ms ease;
}

.microcosm-secret-page.is-max-zoom .microcosm-camera-hud {
  opacity: 0.92;
}

.microcosm-camera-hud__bracket {
  position: relative;
  width: 28px;
  height: 16px;
}

.microcosm-camera-hud__bracket::before,
.microcosm-camera-hud__bracket::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.76;
}

.microcosm-camera-hud__bracket::before {
  left: 0;
  border-left: 1px solid currentColor;
}

.microcosm-camera-hud__bracket::after {
  right: 0;
  border-right: 1px solid currentColor;
}

.microcosm-camera-hud__rail {
  position: relative;
  width: min(28vw, 150px);
  height: 1px;
  background: rgba(245, 245, 245, 0.18);
  overflow: hidden;
}

.microcosm-camera-hud__fill {
  position: absolute;
  inset: 0;
  background: rgba(245, 245, 245, 0.72);
  transform: scaleX(var(--zoom-progress));
  transform-origin: 0 50%;
}

.microcosm-camera-hud__readout {
  min-width: 46px;
  text-align: left;
}

.microcosm-dust-field,
.microcosm-camera-reticle {
  position: fixed;
  z-index: 6;
  pointer-events: none;
}

.microcosm-dust-field {
  inset: 0;
  overflow: hidden;
  opacity: 0.72;
}

.microcosm-dust {
  position: absolute;
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.72);
  filter: blur(0.25px);
  opacity: 0.38;
  animation: microDustFloat 16s linear infinite;
  transform: translate3d(0, 0, 0);
}

.microcosm-dust--one {
  left: 15%;
  top: 22%;
}

.microcosm-dust--two {
  left: 35%;
  top: 68%;
  width: 1px;
  height: 1px;
  opacity: 0.36;
  animation-delay: -6s;
  animation-duration: 19s;
}

.microcosm-dust--three {
  right: 19%;
  top: 28%;
  width: 1px;
  height: 1px;
  opacity: 0.34;
  animation-delay: -11s;
  animation-duration: 21s;
}

.microcosm-dust--four {
  left: 57%;
  top: 18%;
  opacity: 0.28;
  animation-delay: -3s;
  animation-duration: 23s;
}

.microcosm-dust--five {
  right: 30%;
  bottom: 19%;
  width: 1px;
  height: 1px;
  opacity: 0.4;
  animation-delay: -14s;
  animation-duration: 18s;
}

.microcosm-dust--six {
  left: 73%;
  top: 59%;
  opacity: 0.3;
  animation-delay: -9s;
  animation-duration: 25s;
}

.microcosm-dust--seven {
  left: 8%;
  top: 52%;
  width: 1px;
  height: 1px;
  opacity: 0.32;
  animation-delay: -4s;
  animation-duration: 20s;
}

.microcosm-dust--eight {
  left: 48%;
  top: 38%;
  width: 1px;
  height: 1px;
  opacity: 0.3;
  animation-delay: -12s;
  animation-duration: 24s;
}

.microcosm-dust--nine {
  right: 12%;
  top: 74%;
  opacity: 0.34;
  animation-delay: -8s;
  animation-duration: 22s;
}

.microcosm-dust--ten {
  left: 24%;
  top: 36%;
  width: 1px;
  height: 1px;
  opacity: 0.42;
  animation-delay: -16s;
  animation-duration: 17s;
}

.microcosm-dust--eleven {
  right: 43%;
  bottom: 27%;
  opacity: 0.28;
  animation-delay: -2s;
  animation-duration: 26s;
}

.microcosm-dust--twelve {
  right: 7%;
  top: 47%;
  width: 1px;
  height: 1px;
  opacity: 0.36;
  animation-delay: -18s;
  animation-duration: 23s;
}

@keyframes microDustFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(10px, -14px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.microcosm-camera-reticle {
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  color: rgba(238, 246, 247, 0.54);
  opacity: 0.58;
  transform: translate(-50%, -50%);
}

.microcosm-camera-reticle__line {
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  opacity: 1;
}

.microcosm-camera-reticle__line--x {
  width: 18px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.microcosm-camera-reticle__line--y {
  width: 1px;
  height: 18px;
  transform: translate(-50%, -50%);
}

@media (max-width: 920px) {
  .microcosm-secret-space {
    perspective: 900px;
  }
}

@media (max-width: 640px) {
  .microcosm-secret-nav {
    top: 14px;
    left: 12px;
  }

  .microcosm-secret-panel {
    border-radius: 5px;
  }

  .microcosm-camera-hud {
    bottom: 14px;
  }
}

@media (any-pointer: coarse) {
  .microcosm-interface-keycap {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .microcosm-secret-camera,
  .microcosm-secret-panel,
  .microcosm-panel-loader,
  .microcosm-panel-video,
  .microcosm-secret-space::before,
  .microcosm-camera-hud {
    transition-duration: 1ms !important;
  }

  .microcosm-dust {
    animation: none;
  }
}
