:root {
  --bg: #0b1020;
  --surface: rgba(15, 23, 42, 0.85);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #818cf8;
  --border: rgba(148, 163, 184, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.brand-logo {
  width: 1.75rem;
  height: 1.75rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--accent);
}

.app {
  position: relative;
  flex: 1;
  min-height: 0;
}

.hud {
  position: absolute;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.hud h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hud p {
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

#health {
  font-size: 0.875rem;
  color: var(--text-muted);
  min-height: 1.25rem;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
}
