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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #1a1a1a;
  color: #fff;
  overflow: hidden;
  touch-action: none;
}

#game-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 12px;
}

#stats {
  display: flex;
  gap: 16px;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  flex-shrink: 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.label {
  font-size: 14px;
  color: #aaa;
}

#score, #timer {
  font-size: 18px;
  font-weight: bold;
  color: #4ade80;
}

.suspicion-bar {
  flex: 1;
  height: 20px;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #444;
}

#suspicion-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fbbf24, #ef4444);
  transition: width 0.3s ease;
}

#desk-area {
  flex: 1;
  position: relative;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}

#ai-terminal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background: #1a1a1a;
  border: 2px solid #4ade80;
  border-radius: 8px;
  z-index: 10;
  transition: opacity 0.2s ease;
}

#ai-terminal.hidden {
  opacity: 0;
  pointer-events: none;
}

.terminal-header {
  background: #4ade80;
  color: #000;
  padding: 8px 12px;
  font-weight: bold;
  font-size: 14px;
}

.terminal-content {
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100px;
}

#work-screen {
  padding: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#task-display {
  text-align: center;
  font-size: 18px;
  color: #ddd;
}

#controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.action-btn {
  flex: 1;
  padding: 16px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #4ade80;
  color: #000;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.action-btn:active {
  transform: scale(0.95);
}

.action-btn.danger {
  background: #ef4444;
  color: #fff;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#boss-warning {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ef4444;
  padding: 20px 40px;
  border-radius: 12px;
  font-size: 24px;
  font-weight: bold;
  animation: pulse 0.5s ease infinite;
  z-index: 20;
}

#boss-warning.hidden {
  display: none;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

#game-over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

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

.modal {
  background: #2a2a2a;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
}

.modal h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.modal p {
  font-size: 16px;
  margin-bottom: 12px;
  color: #aaa;
}

#final-score {
  color: #4ade80;
  font-weight: bold;
  font-size: 24px;
}

#restart-btn {
  margin-top: 20px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #4ade80;
  color: #000;
  cursor: pointer;
}

#restart-btn:active {
  transform: scale(0.95);
}