/* ===== Base ===== */
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #0f0f13;
  color: #fff;
  font-family: system-ui, Segoe UI, Arial, sans-serif;
}

/* Root container where screens render */
#app {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== Generic screens (start/success/fail) ===== */
.screen {
  display: grid;
  gap: 16px;
  place-items: center;
  text-align: center;
}

.screen h1 {
  margin: 0;
}

/* ===== Buttons ===== */
button {
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #1f6feb;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}

button:active {
  transform: translateY(1px);
}

button.alt {
  background: #b33;
}

button.alt:hover {
  background: #d44;
}

/* ===== Canvas ===== */
canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
  object-fit: contain;
  border: 2px solid #3a2a1a;
}

/* ===== HUD (used by game.js) ===== */
.top-bar {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ===== Modified Layout: Bottom Ingredient Dock ===== */
.left-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.icon-btn {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 10px;
  padding: 6px;
  background: #2b2b2f;
  cursor: pointer;
  box-shadow: 0 2px 0 #0008;
}

.icon-btn img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.icon-btn span {
  color: #fff;
  font: 12px monospace;
}

button:hover img {
  transform: scale(1.05);
  transition: transform 0.1s ease;
}