@font-face {
  font-family: Geist;
  src: url('../assets/type/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('../assets/type/plex-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  font:
    500 14px/1.35 Geist,
    Arial,
    sans-serif;
  background: #020a10;
  color: #e8f9ff;
}
body,
html {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
button,
a {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid #87f7ff;
  outline-offset: 3px;
}
#room {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 275px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at center, #09232e, #02080d 70%);
}
#scene {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#scene.drag {
  cursor: grabbing;
}
header,
footer {
  position: absolute;
  left: 3.25vw;
  right: 3.25vw;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
header {
  top: max(20px, env(safe-area-inset-top));
}
.room-name,
nav,
.console,
.camera-tools,
.inspect-strip,
.state,
.gesture {
  background: linear-gradient(145deg, #12252de8, #041019e8);
  border: 1px solid #5c859765;
  box-shadow:
    inset 0 1px 0 #e3fbff0d,
    0 3px 12px #0006;
}
.room-name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 5px;
  border-radius: 5px;
}
.room-name img {
  object-fit: contain;
  width: 31px;
  height: 31px;
  border-radius: 3px;
}
h1 {
  font-size: 14px;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 600;
}
nav {
  display: flex;
  align-items: center;
  pointer-events: auto;
  border-radius: 4px;
  padding: 2px;
}
nav a {
  text-decoration: none;
}
.nav-link {
  border: 0;
  background: transparent;
  padding: 8px 13px;
  font-size: 12px;
  white-space: nowrap;
}
.nav-link:hover {
  color: #75f2ff;
  background: #49d7ff13;
}
.earth {
  border-left: 1px solid #718f9d4f;
  color: #98f4ff;
}
.earth span {
  margin-left: 3px;
}
.camera-tools {
  position: absolute;
  right: 3.25vw;
  top: max(77px, calc(env(safe-area-inset-top) + 57px));
  display: grid;
  padding: 2px;
  border-radius: 4px;
}
.icon,
.inspect,
.ignite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon {
  background: transparent;
  border: 0;
  width: 36px;
  height: 35px;
  padding: 0;
  border-radius: 2px;
}
.icon:hover {
  color: #7beeff;
  background: #44ddff16;
}
svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
footer {
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.console {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 5px;
  border-color: #75b2c78c;
}
.ignite,
.inspect {
  font-weight: 650;
  font-size: 12px;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 2px;
  white-space: nowrap;
}
.ignite {
  background: linear-gradient(125deg, #9cfbff, #13cee9);
  color: #003743;
  box-shadow: inset 0 1px 0 #fff9;
}
.ignite:hover {
  filter: brightness(1.12);
}
.ignite svg {
  width: 14px;
  fill: #005468;
  stroke-width: 1;
}
.inspect {
  border: 1px solid #6b889d3f;
  background: #152630;
  color: #e9f7fc;
}
.inspect:hover,
.inspect[aria-pressed='true'] {
  border-color: #58cfe4aa;
  color: #74ebfc;
}
.state,
.gesture,
.inspect-strip {
  font:
    400 9px/1.3 Plex,
    monospace;
  letter-spacing: 0.065em;
}
.state,
.gesture {
  padding: 9px 11px;
  border-radius: 3px;
}
.state {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}
.state i {
  border-radius: 50%;
  width: 5px;
  height: 5px;
  background: #7af8ff;
  box-shadow: 0 0 8px #20d8fb;
}
.gesture {
  justify-self: end;
  color: #d8e9ec;
}
.gesture > span:first-child {
  color: #55eaff;
}
.inspect-strip {
  position: absolute;
  z-index: 1;
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 59px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 4px;
  padding: 10px 12px;
  white-space: nowrap;
}
input[type='range'] {
  width: 130px;
  accent-color: #5ae8ff;
  cursor: pointer;
}
.inspect-strip output {
  min-width: 34px;
  text-align: right;
}
#loading,
noscript {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
  background: #04111d;
  font:
    400 13px Plex,
    monospace;
  color: #b7f4ff;
}
[hidden] {
  display: none !important;
}
dialog {
  margin: auto 0 auto auto;
  width: min(475px, 96vw);
  max-height: 95dvh;
  overflow: auto;
  padding: 0;
  border: 1px solid #668c9a;
  background: #08141bea;
  color: #f0f9fb;
  border-radius: 5px 0 0 5px;
  box-shadow: -20px 0 90px #0007;
}
dialog::backdrop {
  background: #010911a8;
  backdrop-filter: blur(5px);
}
.drawer {
  padding: 21px;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
}
.drawer h2 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.055em;
  font-weight: 560;
  margin: 0;
}
.project-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
  padding: 17px 0;
  border-top: 1px solid #48677366;
}
.project-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border: 1px solid #45626d;
  border-radius: 3px;
}
.project-card small {
  font:
    9px Plex,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #83dbed;
}
.project-card h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
  margin: 3px 0 4px;
  font-weight: 580;
}
.project-card h3 span {
  color: #49d6f2;
  font-size: 14px;
}
.project-card p {
  font-size: 12px;
  line-height: 1.45;
  color: #c2d3d9;
  margin: 0;
}
.project-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 780px) {
  .gesture {
    display: none;
  }
  footer {
    display: flex;
    justify-content: space-between;
  }
  .console {
    margin-left: auto;
  }
}
@media (max-width: 560px) {
  header,
  footer {
    left: 12px;
    right: 12px;
  }
  header {
    top: max(12px, env(safe-area-inset-top));
  }
  .room-name {
    gap: 5px;
    padding: 3px 7px 3px 3px;
  }
  .room-name img {
    width: 25px;
    height: 25px;
  }
  h1 {
    font-size: 12px;
  }
  .nav-link {
    padding: 6px 8px;
    font-size: 10px;
  }
  .camera-tools {
    right: 12px;
    top: max(57px, calc(env(safe-area-inset-top) + 48px));
  }
  .icon {
    width: 33px;
    height: 33px;
  }
  .state {
    position: absolute;
    bottom: 54px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 8px;
  }
  .console {
    margin: auto;
  }
  .inspect-strip:not([hidden]) ~ footer .state {
    visibility: hidden;
  }
  .inspect-strip {
    bottom: max(69px, calc(env(safe-area-inset-bottom) + 52px));
  }
  .drawer {
    padding: 15px;
  }
  .project-card {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }
  footer {
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
@media (max-height: 480px) {
  header {
    top: 7px;
  }
  .camera-tools {
    top: 52px;
  }
  footer {
    bottom: 7px;
  }
  .inspect-strip {
    bottom: 56px;
  }
  .state {
    display: none;
  }
  .ignite,
  .inspect {
    height: 31px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
