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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #020406;
  color: #dbe4ed;
  font-family: "Courier New", Consolas, monospace;
}

#game-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: crosshair;
}

.hidden {
  display: none !important;
}

.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.reticle {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(236, 244, 250, 0.72);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  transition: transform 0.1s ease, background 0.1s ease;
}

.reticle.hot {
  background: #ffb449;
  transform: translate(-50%, -50%) scale(1.65);
  box-shadow: 0 0 8px rgba(255, 176, 64, 0.85);
}

.hover-prompt {
  position: fixed;
  left: 50%;
  top: calc(50% + 22px);
  transform: translateX(-50%);
  padding: 4px 10px;
  background: rgba(4, 7, 11, 0.78);
  border: 1px solid rgba(255, 190, 96, 0.45);
  color: #ffd388;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.inspect-card {
  position: fixed;
  left: 28px;
  top: 28px;
  max-width: 360px;
  padding: 12px 14px;
  background: rgba(5, 9, 14, 0.84);
  border: 1px solid rgba(130, 196, 232, 0.45);
  color: #d9ecf7;
}

.inspect-title {
  color: #ffc267;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.inspect-body {
  font-size: 12px;
  line-height: 1.45;
  color: #b7cad8;
  margin-bottom: 8px;
}

.inspect-hint {
  font-size: 11px;
  color: #79d8ff;
  letter-spacing: 0.06em;
}

.subtitle-bar {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  max-width: min(760px, 88vw);
  padding: 8px 16px;
  background: rgba(3, 5, 8, 0.82);
  border-top: 1px solid rgba(240, 176, 86, 0.45);
  border-bottom: 1px solid rgba(240, 176, 86, 0.25);
  color: #f4dca6;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
}

.controls-whisper {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.09em;
  color: rgba(190, 210, 224, 0.56);
  white-space: nowrap;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 7, 0.80);
  backdrop-filter: blur(2px);
}

.overlay-card {
  max-width: 560px;
  width: 90vw;
  padding: 32px 30px;
  background: rgba(8, 12, 18, 0.94);
  border: 1px solid rgba(235, 168, 72, 0.42);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.overlay-card.danger {
  border-color: rgba(255, 78, 62, 0.65);
}

.overlay-card.warm {
  border-color: rgba(255, 204, 112, 0.72);
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #88a4ba;
  margin-bottom: 10px;
}

.title {
  font-size: 44px;
  letter-spacing: 0.22em;
  color: #f4b956;
  margin-bottom: 12px;
}

.heading {
  font-size: 28px;
  letter-spacing: 0.14em;
  color: #f4b956;
  margin-bottom: 12px;
}

.overlay-card.danger .heading {
  color: #ff6256;
}

.lead {
  font-size: 14px;
  line-height: 1.55;
  color: #c3d1dd;
  margin-bottom: 20px;
}

.load-status {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #7cc9ec;
  margin-bottom: 16px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid #f4b956;
  background: #d98924;
  color: #090b0f;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #ffb24a;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #2f3842;
  border-color: #4f5c6a;
  color: #8c9aa8;
  cursor: wait;
}

.btn-secondary {
  background: #1a222b;
  color: #e6eff6;
  border-color: #7aa3bd;
}

.clipboard-sheet {
  max-width: 580px;
  width: 90vw;
  padding: 28px 28px;
  background: #171512;
  border: 2px solid #8a6d43;
  color: #e9decb;
  text-align: left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9);
}

.clip-header {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: #f5b95b;
  border-bottom: 1px solid #59472e;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.clip-list {
  list-style: none;
  margin-bottom: 20px;
}

.clip-list li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 11px;
  color: #d8cebd;
}
