@font-face {
  font-family: "JetBrains Mono";
  src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(../fonts/jetbrains-mono-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(../fonts/jetbrains-mono-latin-800-normal.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}
html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}
body {
  font-family:
    "JetBrains Mono",
    ui-monospace,
    Menlo,
    monospace;
  letter-spacing: .04em;
  color: #ece9ff;
  -webkit-font-smoothing: antialiased;
}
#c {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  opacity: 0;
  transition: opacity 2.4s ease;
}
#c.live {
  opacity: 1;
}
#qr {
  position: fixed;
  z-index: 5;
  border-radius: 9%;
  overflow: hidden;
  background: #fff;
  opacity: .96;
  box-shadow: none;
}
#qr canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
@keyframes qrBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}
body.demo {
  position: static;
  overflow: auto;
  height: auto;
  min-height: 100%;
  background: #000;
  text-transform: lowercase;
}
html:has(body.demo) {
  overflow: auto;
  height: auto;
}
.demo-app {
  --spot: #8a5cff;
  --cy: #7cf3ff;
  --zoom: 1;
  --glow: 0 0 6px color-mix(in srgb, var(--spot) 85%, transparent), 0 0 22px color-mix(in srgb, var(--spot) 45%, transparent);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 14px 44px;
  box-sizing: border-box;
  overflow-x: hidden;
  background:
    radial-gradient(
      70% 55% at 50% 38%,
      color-mix(in srgb, var(--spot) 30%, transparent),
      transparent 70%),
    #000;
  transition: background .8s linear;
}
.demo-top::after,
.about::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, .16) 0 1px,
      transparent 1px 3px);
  mix-blend-mode: multiply;
}
.demo-top {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .16),
      rgba(255, 255, 255, .03) 50%,
      rgba(0, 0, 0, .25)),
    rgba(8, 6, 16, .62);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 2px solid color-mix(in srgb, var(--spot) 70%, transparent);
  box-shadow:
    var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 12px 40px rgba(0, 0, 0, .5);
}
.demo-title {
  min-width: 0;
}
.demo-title h1 {
  margin: 0;
  font-size: clamp(15px, 4.4vw, 22px);
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  text-shadow: var(--glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-title h1::before {
  content: "> ";
  color: var(--cy);
}
.demo-title h1::after {
  content: "_";
  color: var(--cy);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.demo-title p {
  margin: 4px 0 0;
  font-size: clamp(10px, 2.8vw, 12px);
  color: rgba(236, 233, 255, .6);
  letter-spacing: .06em;
  text-transform: none;
}
.demo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.seg {
  display: flex;
  border-radius: 14px;
  background: rgba(0, 0, 0, .4);
  border: 1.5px solid color-mix(in srgb, var(--spot) 45%, rgba(255, 255, 255, .15));
  overflow: hidden;
}
.seg button {
  font: inherit;
  letter-spacing: .06em;
  text-transform: lowercase;
  color: #ece9ff;
  background: none;
  border: 0;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.seg button:active {
  transform: scale(.92, .88);
}
.seg button[aria-selected=true] {
  color: #06040c;
  font-weight: 800;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--cy) 85%, white),
      color-mix(in srgb, var(--spot) 85%, var(--cy)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -4px 10px rgba(0, 0, 0, .2);
}
.seg button:focus-visible,
.outlinks a:focus-visible,
.links a:focus-visible {
  outline: 2px solid var(--cy);
  outline-offset: 2px;
}
.demo-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.stage-wrap {
  overflow: auto;
  border-radius: 14px;
  min-width: 0;
}
.stage {
  width: calc(100% * var(--zoom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  transition: width .35s ease;
}
.screen-box {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: boxIn .7s cubic-bezier(.2, .8, .2, 1) both;
}
.screen-box[hidden] {
  display: none;
}
.screen-box iframe {
  width: 100%;
  border: 0;
  display: block;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 0 60px color-mix(in srgb, var(--spot) 35%, transparent), 0 0 0 1px color-mix(in srgb, var(--spot) 40%, rgba(255, 255, 255, .1));
}
.wall iframe {
  aspect-ratio: 4 / 1;
}
.floor iframe {
  aspect-ratio: 1;
}
figcaption {
  font-size: 11px;
  color: rgba(236, 233, 255, .5);
  letter-spacing: .06em;
}
.floors {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
[data-view=t1] .floors,
[data-view=t2] .floors {
  grid-template-columns: minmax(0, min(100%, 78vh));
  justify-content: center;
}
[data-view=all] .floors {
  max-width: 760px;
}
.phone-col {
  display: flex;
  justify-content: center;
}
.phone-off .phone-col {
  display: none;
}
.phone {
  width: min(100%, 380px);
  height: min(780px, 82vh);
  border-radius: 36px;
  padding: 9px;
  box-sizing: border-box;
  background: #0b0a12;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--spot) 55%, transparent),
    var(--glow),
    0 30px 80px rgba(0, 0, 0, .8);
}
.phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 28px;
  display: block;
}
.about {
  position: relative;
  width: 100%;
  max-width: 860px;
  align-self: center;
  box-sizing: border-box;
  padding: clamp(18px, 4vw, 32px);
  border-radius: 22px;
  background:
    linear-gradient(
      160deg,
      rgba(255, 255, 255, .07),
      transparent 40%),
    rgba(5, 4, 11, .9);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 2px solid color-mix(in srgb, var(--spot) 80%, transparent);
  box-shadow:
    var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 0 40px color-mix(in srgb, var(--spot) 10%, transparent);
  line-height: 1.7;
  font-size: clamp(13px, 3.4vw, 15px);
  color: rgba(236, 233, 255, .86);
  text-transform: none;
  letter-spacing: .01em;
}
.about h2 {
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: lowercase;
  margin: 26px 0 8px;
  color: var(--cy);
  text-shadow: 0 0 10px color-mix(in srgb, var(--cy) 60%, transparent);
}
.about h2:first-child {
  margin-top: 0;
}
.about p {
  margin: 0;
}
.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.links li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  align-items: baseline;
  min-width: 0;
}
.links a {
  color: color-mix(in srgb, var(--cy) 70%, white);
  word-break: break-all;
}
.links span {
  opacity: .6;
  font-size: .9em;
}
.outlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin: 30px 0 0 !important;
}
.outlinks a {
  position: relative;
  overflow: hidden;
  color: #06040c;
  font-weight: 800;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: .08em;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--cy) 85%, white),
      color-mix(in srgb, var(--spot) 85%, var(--cy)));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .6),
    inset 0 -6px 14px rgba(0, 0, 0, .22),
    var(--glow);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
.outlinks a:active {
  transform: scale(.94, .9);
}
.fullphone {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
}
.fullphone[hidden] {
  display: none;
}
.fullphone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.fullphone .close {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cy);
  background: rgba(5, 4, 11, .7);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
@media (min-width: 1100px) {
  .demo-app {
    padding: 18px 24px 52px;
  }
  .demo-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
  }
  .phone-off .demo-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .phone {
    width: 340px;
    height: min(720px, calc(100vh - 120px));
  }
  .phone-col {
    position: sticky;
    top: 96px;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@keyframes boxIn {
  from {
    opacity: 0;
    transform: scale(.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .screen-box {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
  .demo-title h1::after {
    animation: none;
  }
}

html.imm-on,
html.imm-on body {
  overflow: hidden;
}
.immersive {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
  color-scheme: dark;
  overflow: hidden;
}
.immersive[hidden] {
  display: none;
}
.immersive iframe {
  border: 0;
  display: block;
}
.imm-wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.imm-exit {
  position: absolute;
  z-index: 4;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(10px, env(safe-area-inset-left));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cy);
  background: rgba(5, 4, 11, .6);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.imm-exit {
  transition: opacity .4s;
}
.imm-chat {
  left: auto;
  right: max(10px, env(safe-area-inset-right));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 18px;
}
.immersive.idle .imm-exit {
  opacity: 0;
}
.immersive.idle {
  cursor: none;
}
.imm-wall {
  pointer-events: none;
}
.irc {
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 90;
  width: min(460px, calc(100vw - 20px));
  height: min(46vh, 340px);
  display: flex;
  flex-direction: column;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: #d7f7d0;
  background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(124, 243, 255, .45);
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(124, 243, 255, .18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.irc[hidden] {
  display: none;
}
.irc-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 2px 8px;
  background: rgba(124, 243, 255, .14);
  border-bottom: 1px solid rgba(124, 243, 255, .3);
  color: #7cf3ff;
  font-weight: 600;
}
.irc-x {
  font: inherit;
  min-width: 32px;
  min-height: 28px;
  color: #7cf3ff;
  background: none;
  border: 0;
  cursor: pointer;
}
.irc-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 6px 8px;
  -webkit-user-select: text;
  user-select: text;
}
.irc-line {
  margin: 0;
  overflow-wrap: anywhere;
}
.irc-time {
  color: rgba(215, 247, 208, .45);
}
.irc-who {
  font-weight: 600;
}
.irc-note {
  color: #b48cff;
}
.irc-in {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-top: 1px solid rgba(124, 243, 255, .3);
}
.irc-nick {
  flex: none;
  color: #7cf3ff;
}
.irc-text {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: none;
  border: 0;
  outline: none;
  caret-color: #7cf3ff;
  -webkit-user-select: text;
  user-select: text;
  touch-action: manipulation;
}
