:root {
  color-scheme: dark;
  --mist: #e9e5d6;
  --mist-2: #cbc8b7;
  --panel: rgba(45, 49, 45, 0.86);
  --panel-soft: rgba(79, 84, 77, 0.72);
  --panel-line: rgba(238, 232, 210, 0.13);
  --cream: #ece6d2;
  --muted: rgba(236, 230, 210, 0.62);
  --dim: rgba(236, 230, 210, 0.43);
  --amber: #d2b270;
  --oxide: #b75f47;
  --teal: #84a6a0;
  --green: #a4b698;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 52% 22%,
      rgba(255, 251, 224, 0.45),
      transparent 34%
    ),
    linear-gradient(180deg, var(--mist) 0%, var(--mist-2) 100%);
  color: var(--cream);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.2;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 5px
    ),
    radial-gradient(
    circle at 23% 17%,
    rgba(255, 255, 255, 0.2),
    transparent 16%
  );
  mix-blend-mode: screen;
}

#appShell,
#sceneHost {
  position: fixed;
  inset: 0;
}

#sceneHost canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: fixed;
  z-index: 5;
  top: 16px;
  left: 18px;
  width: 318px;
  max-width: calc(100vw - 36px);
  display: grid;
  pointer-events: none;
}

.hud-title {
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(0.92);
}

.hud-title {
  min-height: 74px;
  padding: 14px 17px 13px;
}

.hud-title h1 {
  margin: 2px 0 5px;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 780;
}

.hud-title p {
  margin: 0;
}

.hud-kicker {
  color: var(--amber);
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 720;
}

#hudSubtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 650;
}

.boot-notice {
  position: fixed;
  z-index: 7;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 16px;
  border: 1px solid rgba(238, 232, 210, 0.15);
  border-radius: 8px;
  background: rgba(45, 49, 45, 0.82);
  color: var(--cream);
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.boot-notice.is-hidden {
  visibility: hidden;
  opacity: 0;
}

@media (max-width: 740px) {
  .hud {
    top: 10px;
    left: 10px;
    width: calc(100vw - 20px);
  }

  .hud-title h1 {
    font-size: 18px;
  }
}
