:root {
  color-scheme: dark;
  font-family: Tahoma, "Segoe UI", sans-serif;
  background: #10151d;
  color: #eef2f4;
  --line: #b9cde334;
  --glass: #0b1019ea;
  --active: #a9eed2;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }

.experience {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 58%, #262531, #10151d 70%);
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: pixelated;
  touch-action: none;
  cursor: grab;
}

#scene:active { cursor: grabbing; }
#scene.over-hardware { cursor: pointer; }
#scene:focus-visible { outline: 2px solid var(--active); outline-offset: -4px; }

.phone-menu {
  position: absolute;
  inset: 0 auto auto 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.phone-menu-scroll {
  position: absolute;
  inset-inline: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
}

.phone-menu-scroll:focus-visible { outline: 2px solid #e6f4ff; outline-offset: -2px; }
.phone-menu-tiles { position: relative; }
.phone-menu a { position: absolute; }

.phone-menu a:hover,
.phone-menu a:focus-visible {
  background: #e6f4ff29;
  outline: 3px solid #e6f4ff;
  outline-offset: -3px;
}

.phone-hardware { pointer-events: none; }

.fallback-menu {
  position: absolute;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--active);
}

.message {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(max-content, 85%);
  transform: translate(-50%, -50%);
  margin: 0;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  background: var(--glass);
  color: #e3e9f4;
  text-align: center;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
