* {
  box-sizing: border-box;
}

/* ── KIEFERGRUEN NAV ── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 1.5rem;
  background: #110e22;
  border-bottom: 1px solid #4d3b8f;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: #e8e6ff;
  letter-spacing: 0.10em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.25s;
}

.nav-logo svg { width: 24px; height: 24px; flex-shrink: 0; }
.nav-logo:hover { color: #c8a96e; }

.nav-sub {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.55);
  font-family: 'Courier New', monospace;
}

html, body {
  margin: 0;
  padding: 0;
  background: #0d0b1a;
  color: #e8e6ff;
  font-family: 'Courier New', ui-monospace, monospace;
  letter-spacing: 0.03em;
}

#hud {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 18px;
  background: linear-gradient(#221b3d, #171029);
  border-bottom: 3px solid #4d3b8f;
  flex-wrap: wrap;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.hud-label {
  color: #9a8fd6;
  text-transform: uppercase;
  font-size: 11px;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  image-rendering: pixelated;
}

.progress-bar {
  width: 140px;
  height: 12px;
  background: #14102a;
  border: 2px solid #4d3b8f;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg, #6be36b, #6be36b 4px, #4bc94b 4px, #4bc94b 8px);
  transition: width 0.4s linear;
}

#worldWrap {
  width: 100%;
  height: calc(100vh - 136px);
  overflow: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #0d0b1a;
}

#world {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
}

#hint {
  position: fixed;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #6f63a8;
  margin: 0;
}
