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

body {
  background: #14100c;
  color: #e8dcc0;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header { padding: 14px 0 6px; text-align: center; }
h1 {
  font-size: 34px;
  letter-spacing: 0.35em;
  color: #e7c96b;
  text-shadow: 2px 2px 0 #3a2f1a;
  margin-bottom: 2px;
}
.sub { font-size: 13px; color: #b9a67c; font-style: italic; }

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

canvas {
  border: 3px solid #4a3a20;
  box-shadow: 0 0 30px rgba(0,0,0,0.85);
  background: #000;
  image-rendering: pixelated;
}

#hud {
  width: 960px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 10px;
  background: #1f1912;
  border: 2px solid #4a3a20;
  font-size: 16px;
}
.hud-item { display: flex; align-items: center; gap: 8px; }
.label { color: #9c8a5f; letter-spacing: 0.2em; font-size: 12px; }
#timeVal { font-variant-numeric: tabular-nums; color: #e7c96b; font-size: 20px; }
#healthBar {
  width: 160px; height: 16px;
  background: #241a12;
  border: 1px solid #5a452a;
}
#healthFill { height: 100%; width: 100%; background: linear-gradient(#8a2f1f, #5c1e12); transition: width 0.2s; }
#hud-msg { margin-left: auto; color: #d9b24c; font-size: 17px; }

#help {
  width: 960px;
  padding: 10px 12px;
  background: #1a1510;
  border: 1px solid #3a2f1a;
  font-size: 14px;
  color: #cfc0a2;
  line-height: 1.6;
  margin-bottom: 20px;
}
#help b { color: #e7c96b; }
