@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Share Tech Mono", monospace;
  background: radial-gradient(circle at top, #050910 0%, #020308 55%, #000000 100%);
  color: #d0faff;
  overflow: hidden;
}

/* Canvas */
#scene {
  position: fixed;
  inset: 0;
  display: block;
}

/* HUD COMMON */

.hud {
  position: fixed;
  left: 0;
  right: 0;
  padding: 4px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  color: #b7f3ff;
}

.hud-top {
  top: 0;
}

.hud-bottom {
  bottom: 0;
  font-size: 10px;
  opacity: 0.8;
}

.hud-left,
.hud-center,
.hud-right,
.hud-bottom-left,
.hud-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-left {
  gap: 6px;
}

.hud-center {
  justify-content: center;
}

.hud-right {
  justify-content: flex-end;
}

/* HUD elements */

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #00f2ff;
  box-shadow: 0 0 8px rgba(0, 242, 255, 0.9);
}

.hud-title {
  color: #e4fdff;
  font-weight: 400;
}

.hud-separator {
  color: #4ac6ff;
  margin-left: 8px;
}

.hud-label {
  color: #5ad0ff;
}

.hud-value {
  color: #f0fbff;
}

.hud-numeric {
  display: inline-flex;
  min-width: 40px;
  justify-content: center;
  color: #f0fbff;
}

.hud-small {
  color: #8be4ff;
}

/* Search + buttons */

.hud-search input {
  pointer-events: auto;
  background: rgba(0, 10, 16, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(84, 214, 255, 0.5);
  padding: 4px 10px;
  min-width: 260px;
  color: #e1f9ff;
  outline: none;
  font-family: inherit;
  font-size: 11px;
}

.hud-search input::placeholder {
  color: #4d7b8f;
}

.pill {
  pointer-events: auto;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 4px 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.pill-primary {
  background: radial-gradient(circle at top, #ff5f86 0%, #b0152e 50%, #77081b 100%);
  border-color: rgba(255, 125, 155, 0.8);
  color: #fff4fb;
  box-shadow: 0 0 12px rgba(255, 80, 122, 0.75);
}

.pill-primary:hover {
  filter: brightness(1.1);
}

/* Badges */

.badge {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.badge-offline {
  border-color: #ff6b88;
  color: #ffb1c1;
  background: rgba(120, 9, 32, 0.4);
}

.badge-online {
  border-color: #62ffc4;
  color: #e7fff8;
  background: rgba(10, 90, 59, 0.7);
}

/* Bottom hints */

.hint-label {
  color: #4fd0ff;
}

.hint-separator {
  margin: 0 6px;
  color: #304757;
}

/* Boot overlay */

.boot-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 245, 255, 0.2), rgba(0, 0, 0, 0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 1;
  pointer-events: none;
  transition: opacity 1.2s ease-out;
}

.boot-overlay.hidden {
  opacity: 0;
}

.boot-inner {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.boot-ring {
  position: absolute;
  border-radius: 999px;
  border: 2px solid rgba(0, 245, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.6);
  animation: boot-spin 9s linear infinite;
}

.boot-ring-outer {
  inset: 5%;
}

.boot-ring-inner {
  inset: 22%;
  border-color: rgba(255, 60, 90, 0.9);
  box-shadow: 0 0 40px rgba(255, 60, 90, 0.9);
  animation-duration: 6s;
  animation-direction: reverse;
}

.boot-text-main {
  position: relative;
  color: #f5f9ff;
  font-size: 11px;
  text-align: center;
  margin-bottom: 8px;
}

.boot-text-sub {
  position: relative;
  color: #92e2ff;
  font-size: 9px;
  opacity: 0.85;
}

/* Mood tints */

body.mood-calm {
  --mood-glow: rgba(0, 255, 214, 0.35);
}

body.mood-watchful {
  --mood-glow: rgba(0, 180, 255, 0.35);
}

body.mood-alert {
  --mood-glow: rgba(255, 160, 0, 0.38);
}

body.mood-critical {
  --mood-glow: rgba(255, 60, 90, 0.5);
}

.hud,
#scene {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0); /* keeps layout stable */
}

/* Simple mood underglow */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, var(--mood-glow, transparent), transparent 65%);
  opacity: 0.4;
  mix-blend-mode: screen;
  z-index: 1;
}

/* Responsive tweaks */

@media (max-width: 900px) {
  .hud-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hud-center {
    order: 3;
  }

  .hud-right {
    width: 100%;
  }

  .hud-search input {
    min-width: 0;
    width: 52vw;
  }
}

/* Animations */

@keyframes boot-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}




