:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020407;
  color: #f5f7fb;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #020407;
}

#viewport {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  background: #020407;
  touch-action: none;
  transform-origin: 55% 52%;
}

#viewport.cinematic-drift {
  animation: cinematic-drift 18s ease-in-out infinite alternate;
}

@keyframes cinematic-drift {
  0% {
    transform: scale(1.015) translate3d(-10px, 2px, 0);
  }

  100% {
    transform: scale(1.045) translate3d(18px, -6px, 0);
  }
}

#app {
  position: fixed;
  left: 22px;
  top: 22px;
  width: min(430px, calc(100vw - 44px));
  pointer-events: none;
}

html[data-chrome="hidden"] #app {
  display: none !important;
}

.hud {
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid rgba(210, 224, 246, 0.24);
  border-radius: 8px;
  background: rgba(8, 11, 18, 0.58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.hud.is-error {
  border-color: rgba(255, 120, 135, 0.45);
}

.state {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #2d6f51;
  color: #eafff5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.state.is-error {
  background: #8a2f3d;
}

h1 {
  margin: 12px 0 6px;
  font-size: 24px;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: #d4deef;
  line-height: 1.45;
}

.credit {
  margin-top: 8px;
  color: #aab5c4;
  font-size: 12px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}

dl div {
  min-width: 0;
  border: 1px solid rgba(210, 224, 246, 0.2);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(4, 7, 12, 0.58);
}

dt {
  color: #a6b3c8;
  font-size: 11px;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

pre {
  max-height: 220px;
  overflow: auto;
  margin: 14px 0 0;
  white-space: pre-wrap;
  color: #ffd7d7;
}
