/* PIXEL MECH DUEL — 复古像素风样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #1a1024;
  color: #e8e8f0;
  font-family: "Courier New", "Consolas", monospace;
  -webkit-font-smoothing: none;
  font-smooth: never;
  image-rendering: pixelated;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
}

#game-wrap {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#title {
  font-size: 28px;
  letter-spacing: 6px;
  color: #ffcc33;
  text-shadow:
    2px 2px 0 #aa3300,
    -2px 2px 0 #aa3300,
    2px -2px 0 #aa3300,
    -2px -2px 0 #aa3300;
  margin-top: 4px;
}

#canvas-frame {
  position: relative;
  width: 768px;   /* 384 * 2 */
  height: 448px;  /* 224 * 2 */
  border: 4px solid #443366;
  background: #000;
  box-shadow: 0 0 0 4px #2a1a3a, 0 8px 0 rgba(0,0,0,0.5);
}

#game {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(10, 5, 20, 0.78);
  text-align: center;
  gap: 18px;
}

#overlay.hidden { display: none; }

#overlay-text {
  font-size: 40px;
  letter-spacing: 4px;
  color: #ffcc33;
  text-shadow: 3px 3px 0 #661100;
}

#overlay-hint {
  font-size: 16px;
  color: #bbb;
  letter-spacing: 2px;
}

#controls {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.pctrl {
  background: #241636;
  border: 2px solid #443366;
  padding: 10px 16px;
  min-width: 200px;
}

.pctrl h3 {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.pctrl.p1 h3 { color: #ff6666; }
.pctrl.p2 h3 { color: #66aaff; }

.pctrl ul { list-style: none; font-size: 12px; line-height: 1.7; }
.pctrl b { color: #ffdd77; }

#tip {
  font-size: 12px;
  color: #9988bb;
  text-align: center;
  letter-spacing: 1px;
}
