:root {
  --bg: #c8bfb2;
  --ink: #161310;
  --muted: #5a544c;
  --line: rgba(22, 19, 16, 0.18);
}

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

body {
  background:
    radial-gradient(ellipse 90% 70% at 50% 58%, #d6cec2 0%, var(--bg) 62%, #b7ad9f 100%);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  overflow: hidden;
  cursor: crosshair;
}

.hud {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 2;
  pointer-events: none;
}

.wordmark {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hint,
.status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.status {
  font-variant-numeric: tabular-nums;
}

.back {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 2;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back:hover {
  background: #fff;
  color: #000;
}

.companion {
  position: fixed;
  left: 0;
  top: 0;
  width: 256px;
  height: 256px;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.companion-shadow {
  position: absolute;
  left: 78px;
  top: 226px;
  width: 100px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(32, 22, 14, 0.38), transparent 72%);
}

.companion img {
  display: block;
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 10px 8px rgba(40, 28, 18, 0.28));
}

@media (prefers-reduced-motion: reduce) {
  .companion {
    will-change: auto;
  }
}
