:root {
  color-scheme: dark;
  background: #010712;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background: #010712;
}

body {
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.portal {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #010712;
}

.portal__canvas {
  position: relative;
  width: min(100vw, calc(100vh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #020b16;
}

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

.hotspots {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border-radius: 10px;
  text-decoration: none;
  outline: none;
}

.hotspot[data-enabled="true"] {
  cursor: pointer;
}

.hotspot[data-enabled="true"]:focus-visible {
  box-shadow: 0 0 0 3px #00a5ff, inset 0 0 0 2px rgba(255,255,255,.8);
}

.hotspot[data-enabled="true"]:hover {
  background: rgba(0, 149, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(0, 149, 255, .35), 0 0 18px rgba(0, 149, 255, .18);
}

.hotspot[data-enabled="false"] {
  pointer-events: none;
}

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

@media (max-aspect-ratio: 1672/941) {
  .portal__canvas {
    width: 100vw;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
