:root {
  color-scheme: dark;
  font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
}

* { box-sizing: border-box; }

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

body { overscroll-behavior: none; }

body::after {
  content: "";
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, .001);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: -webkit-backdrop-filter 1s ease-in-out, backdrop-filter 1s ease-in-out;
}

body.is-arriving::after,
body.is-leaving::after {
  pointer-events: auto;
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
}

.limited-panorama-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: var(--scene-background, #c8ccd0);
}

.limited-panorama-shell.is-dragging { cursor: grabbing; }

.limited-panorama-shell:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .82);
  outline-offset: -3px;
}

.limited-panorama-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .3s ease-out;
}

.limited-panorama-canvas.is-ready { opacity: 1; }

.limited-panorama-source { display: none; }

.limited-panorama-loading,
.limited-panorama-fallback {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, .95);
  background: var(--scene-background, #c8ccd0);
  text-align: center;
  letter-spacing: .08em;
}

.limited-panorama-loading { transition: opacity .22s ease-out; }
.limited-panorama-loading.is-hidden { opacity: 0; pointer-events: none; }
.limited-panorama-fallback[hidden] { display: none; }

.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) {
  body::after { display: none; }
  .limited-panorama-canvas,
  .limited-panorama-loading { transition: none; }
}
