:root {
  color-scheme: dark;
  --bg: #02050a;
  --text: #eaf7ff;
  --muted: rgba(234, 247, 255, .68);
  --cyan: #64eaff;
  --blue: #1b6cff;
  --line: rgba(138, 226, 255, .42);
}

* {
  box-sizing: border-box;
}

html,
body,
.stage {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

#camera {
  display: none;
}

#view {
  width: 100vw;
  height: 100vh;
  display: block;
}

.gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(68, 203, 255, .15), transparent 340px),
    linear-gradient(180deg, rgba(2, 5, 10, .82), rgba(2, 5, 10, .94));
}

.gate.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(2, 5, 10, .44);
  padding: 14px;
  box-shadow: 0 0 42px rgba(100, 234, 255, .18);
}

.mark img {
  width: 100%;
  height: auto;
  display: block;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 86px);
  line-height: .92;
  letter-spacing: -.07em;
}

p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

button {
  justify-self: center;
  min-width: 190px;
  border: 1px solid rgba(100, 234, 255, .5);
  border-radius: 999px;
  background: rgba(100, 234, 255, .16);
  color: var(--text);
  padding: 14px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hud {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(138, 226, 255, .24);
  border-radius: 999px;
  background: rgba(2, 5, 10, .58);
  backdrop-filter: blur(12px);
  color: var(--muted);
}

.hud strong {
  color: var(--cyan);
}

@media (max-width: 720px) {
  .hud {
    max-width: calc(100vw - 24px);
    left: 12px;
    bottom: 12px;
    border-radius: 18px;
  }
}
