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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f1e6c8;
  user-select: none;
}

#game canvas { display: block; }

#crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 2px;
  transform: translate(-50%, -50%);
  background: #fff;
  box-shadow: 0 -8px 0 #fff, 0 8px 0 #fff, -8px 0 0 #fff, 8px 0 0 #fff;
  pointer-events: none;
  transition: background .08s, box-shadow .08s;
}

#crosshair.hit {
  background: #ff3030;
  box-shadow: 0 -8px 0 #ff3030, 0 8px 0 #ff3030, -8px 0 0 #ff3030, 8px 0 0 #ff3030;
}

#dmg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(200, 0, 0, .6));
  opacity: 0;
}

#compass {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  letter-spacing: 3px;
  background: rgba(0, 0, 0, .45);
  padding: 6px 18px;
  border: 1px solid rgba(255, 220, 150, .4);
  pointer-events: none;
}

#hud {
  position: fixed;
  left: 20px;
  bottom: 20px;
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
}

.stat { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lbl { font-size: 13px; letter-spacing: 2px; }
.bar {
  width: 220px;
  height: 10px;
  background: rgba(0, 0, 0, .5);
  border: 1px solid #888;
}
#hpbar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #b22222, #6c8f3a);
  transition: width .2s;
}
.info { font-size: 14px; letter-spacing: 2px; opacity: .9; }

#ammoBox {
  position: fixed;
  right: 24px;
  bottom: 20px;
  font-size: 44px;
  font-weight: 700;
  text-shadow: 0 2px 6px #000;
  pointer-events: none;
}
#ammoBox small { font-size: 20px; opacity: .8; }

#banner {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #ffcf7a;
  text-shadow: 0 2px 10px #000;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
#banner.show { opacity: 1; }

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: rgba(20, 12, 4, .85);
  text-align: center;
  z-index: 10;
}
.overlay.hidden { display: none; }

h1 { font-size: 44px; letter-spacing: 4px; color: #ffcf7a; }
h2 { font-size: 26px; letter-spacing: 6px; color: #e8d7a8; }
.controls { max-width: 640px; font-size: 14px; opacity: .8; line-height: 1.6; }

button {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 12px 40px;
  background: #c08a3a;
  color: #1a1005;
  border: 0;
  cursor: pointer;
}
button:hover { background: #e0a64a; }
