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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #000;
  color: #0f0;
  overflow: hidden;
  height: 100vh;
  user-select: none;
}

#game-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
}

#hud {
  display: flex;
  justify-content: space-around;
  padding: 12px;
  background: #111;
  border-bottom: 2px solid #0f0;
  gap: 10px;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.label {
  color: #0a0;
  font-size: 10px;
}

#time, #incidents {
  font-size: 16px;
  font-weight: bold;
  color: #0f0;
}

#focus-bar {
  width: 80px;
  height: 12px;
  background: #222;
  border: 1px solid #0f0;
  overflow: hidden;
}

#focus-fill {
  width: 100%;
  height: 100%;
  background: #0f0;
  transition: width 0.3s;
}

#monitor-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  max-width: 600px;
  max-height: 450px;
  margin: auto;
}

.monitor {
  background: #111;
  border: 2px solid #0a0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.monitor-label {
  background: #0a0;
  color: #000;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: bold;
}

.monitor-screen {
  flex: 1;
  background: #0a0a0a;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.monitor-screen canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.incident-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #f00;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: pulse 1s infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

#alert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#alert-overlay.hidden,
#game-over.hidden {
  display: none;
}

#alert-content,
#game-over-content {
  background: #111;
  border: 3px solid #0f0;
  padding: 24px;
  max-width: 300px;
  text-align: center;
}

#alert-text {
  color: #f00;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}

button {
  background: #0f0;
  color: #000;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Noto Sans', sans-serif;
}

button:active {
  transform: scale(0.95);
}

#game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

#result-title {
  color: #0f0;
  font-size: 24px;
  margin-bottom: 16px;
}

#result-text {
  color: #0a0;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .hud-item {
    font-size: 10px;
  }
  
  .label {
    font-size: 8px;
  }
  
  #time, #incidents {
    font-size: 14px;
  }
  
  #focus-bar {
    width: 60px;
    height: 10px;
  }
  
  .monitor-label {
    font-size: 8px;
    padding: 2px 4px;
  }
}