:root {
  --hud-fg: #f4e6c5;
  --hud-accent: #e9c46a;
  --hud-bg: rgba(8, 6, 4, 0.55);
  --hud-border: rgba(244, 230, 197, 0.18);
  --hint-fg: rgba(244, 230, 197, 0.85);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  background: #050608;
  color: var(--hud-fg);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Cambria", Georgia, serif;
  overflow: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  outline: none;
}

#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.45) 100%);
  mix-blend-mode: multiply;
  z-index: 2;
}

.hud-top {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  background: var(--hud-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--hud-border);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 180px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  font-size: 13px;
  line-height: 1.5;
  user-select: none;
  pointer-events: none;
  opacity: 0.92;
}

.hud-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.hud-label {
  color: var(--hud-accent);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding-top: 2px;
}

.hud-value {
  color: var(--hud-fg);
  font-weight: 600;
  text-align: right;
}

.hint {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 10;
  background: var(--hud-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--hud-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--hint-fg);
  opacity: 1;
  transition: opacity 1.2s ease;
  pointer-events: none;
  user-select: none;
}

.hint.hidden {
  opacity: 0;
}

.hint kbd {
  display: inline-block;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px;
  background: rgba(244, 230, 197, 0.16);
  border: 1px solid rgba(244, 230, 197, 0.32);
  border-radius: 4px;
  padding: 1px 6px;
  margin: 0 2px;
  color: var(--hud-fg);
}

.paused-badge {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  font-size: 22px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--hud-border);
  border-radius: 10px;
  background: rgba(8, 6, 4, 0.7);
  color: var(--hud-accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.paused-badge.visible {
  opacity: 1;
}

@media (max-width: 720px) {
  .hud-top {
    top: 10px;
    right: 10px;
    font-size: 12px;
    min-width: 150px;
    padding: 10px 12px;
  }

  .hint {
    font-size: 11px;
    left: 10px;
    bottom: 10px;
  }
}
