/* ==== KOF Mini - Global Style ==== */
/* Design Ref: DESIGN.md - 深夜霓虹武道场 */

@import url("https://fonts.googleapis.cn/css2?family=Press+Start+2P&family=VT323&display=swap");

:root {
  --bg-deep: #1a1826;
  --bg-mid: #2d2438;
  --floor: #4a3428;
  --floor-line: #6b4a2f;
  --neon-red: #ff2d55;
  --neon-amber: #ffb03b;
  --p1-primary: #e94560;
  --p2-primary: #4ecdc4;
  --hp-green: #7fdb6a;
  --hp-yellow: #f4d35e;
  --hp-red: #ee4266;
  --text-hi: #f5f5f5;
  --text-lo: #a0a0b8;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-hi);
  font-family: "VT323", "Courier New", monospace;
  -webkit-font-smoothing: none;
  font-smooth: never;
  image-rendering: pixelated;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  /* 武道场氛围：靛紫深底 + 远处霓虹晕开 */
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 45, 85, 0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(78, 205, 196, 0.06), transparent 45%),
    radial-gradient(circle at 50% 50%, #241b34 0%, #1a1826 70%);
}

#app {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  max-height: 100%;
  position: relative;
  border: 3px solid var(--neon-amber);
  box-shadow:
    0 0 0 1px #000,
    0 0 24px rgba(255, 176, 59, 0.35),
    inset 0 0 0 2px #000;
  background: #000;
}

/* 顶部 HUD 铭牌装饰 */
#app::before {
  content: "▲ ROUND 1 ▲";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-deep);
  color: var(--neon-amber);
  padding: 2px 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 2px;
  border: 2px solid var(--neon-amber);
  z-index: 2;
  pointer-events: none;
}

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

/* 键盘提示条：小屏隐藏 */
.controls-hint {
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  font-family: "VT323", monospace;
  font-size: 14px;
  color: var(--text-lo);
  letter-spacing: 1px;
  pointer-events: none;
}

.controls-hint .p1 {
  color: var(--p1-primary);
}
.controls-hint .p2 {
  color: var(--p2-primary);
}

@media (max-height: 640px), (max-width: 720px) {
  .controls-hint {
    display: none;
  }
  #app::before {
    display: none;
  }
}
