* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  height: 100%;
  background: #121214;
  color: #eaeaea;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.game-wrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

#game {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: min(96vw, 960px);
  height: auto;
  max-height: 92vh;
  border: 2px solid #2b2b2b;
  background: #1b1b1f;
}

#ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#hud {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
}
#hud strong { color: #ffd166; }

#help {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
}
#help span { opacity: 0.9; }

#dialog {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(90vw, 720px);
  background: rgba(0,0,0,0.75);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 12px 14px;
  pointer-events: auto;
}
#dialog.hidden { display: none; }
#dialog-text { font-size: 16px; margin-bottom: 10px; }
#dialog-options { display: flex; flex-wrap: wrap; gap: 6px; }
#dialog-options button {
  appearance: none;
  border: 1px solid #444;
  background: #2a2a2f;
  color: #eaeaea;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
#dialog-options button:hover { background: #33333a; }

/* Mobile tweak */
@media (max-width: 640px) {
  #hud { font-size: 12px; }
  #dialog-text { font-size: 14px; }
} 