:root {
  --parchment: #f4e8d0;
  --ink: #3b2a1a;
  --frame: #9e7a45;
  --torch: #edc875;
  --page-bg: #15110f;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(237, 200, 117, 0.14), transparent 34rem),
    linear-gradient(135deg, #11100f, var(--page-bg));
  color: #f6e6bd;
  font-family: Georgia, "Times New Roman", serif;
}

.game-shell {
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 28px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-stage {
  position: relative;
  width: min(100%, 960px);
}

.hud {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.hud-item {
  min-height: 32px;
  padding: 6px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(158, 122, 69, 0.8);
  background: rgba(244, 232, 208, 0.92);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.hud-hearts {
  color: #8f2431;
}

#game {
  display: block;
  width: min(100%, 960px);
  height: auto;
  min-height: 260px;
  max-height: calc(100vh - 32px);
  aspect-ratio: 16 / 9;
  image-rendering: pixelated;
  background: #19130f;
  border: 2px solid var(--frame);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}
