* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #1d2b3a;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  user-select: none; -webkit-user-select: none;
}
canvas { display: block; touch-action: none; cursor: grab; }
canvas.dragging { cursor: grabbing; }

.hidden { display: none !important; }

#hud {
  position: fixed; top: 14px; left: 14px;
  display: flex; gap: 8px; flex-wrap: wrap;
  pointer-events: none;
}
.pill {
  background: rgba(20, 35, 30, 0.55);
  color: #f4ecd0; padding: 6px 14px; border-radius: 999px;
  font-size: 16px; backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 240, 200, 0.15);
}
.pill .lbl { opacity: 0.7; font-size: 13px; margin-right: 4px; }

#mute { right: 14px; }
#menuBtn { right: 64px; }
.hudBtn {
  position: fixed; top: 12px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 240, 200, 0.2);
  background: rgba(20, 35, 30, 0.55); color: #fff;
  font-size: 18px; cursor: pointer;
}

#overlay {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 25, 35, 0.45);
  padding: 16px;
}
.card {
  max-width: 460px; width: 100%;
  background: #f6eed6; color: #2d3b2a;
  border-radius: 22px; padding: 26px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border: 4px solid #5d7d3a;
}
.card h1 { margin: 0 0 10px; color: #3f6b26; font-size: 34px; }
.card p { margin: 8px 0; line-height: 1.4; }
.card ul { padding-left: 20px; margin: 10px 0 18px; line-height: 1.5; font-size: 15px; }
.card .small { font-size: 12px; opacity: 0.65; margin-top: 14px; }
#resume { margin-bottom: 10px; }
#start.secondary { background: #c9b98a; color: #3a3a24; box-shadow: 0 4px 0 #9c8c5e; }
#start, #resume {
  display: block; width: 100%;
  font: inherit; font-size: 20px; font-weight: bold;
  padding: 12px; border: 0; border-radius: 14px;
  background: #5d9a35; color: #fff; cursor: pointer;
  box-shadow: 0 4px 0 #3f6b26;
}
#start:active, #resume:active { transform: translateY(2px); box-shadow: 0 2px 0 #3f6b26; }
