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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  height: 100vh;
}

#game-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
  padding-bottom: 0;
  gap: 16px;
}

#stats {
  display: flex;
  gap: 16px;
  align-items: center;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.bar-container {
  width: 100px;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  transition: width 0.3s ease;
}

#score {
  font-weight: bold;
  color: #4CAF50;
}

#chat-area {
  flex: 1;
  background: #111;
  border-radius: 8px;
  padding: 12px;
  overflow-y: auto;
  min-height: 0;
}

#messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 75%;
  animation: slideIn 0.3s ease;
  font-size: 13px;
  line-height: 1.4;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.salesman {
  background: #444;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message.player {
  background: #1976D2;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

#choices {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: #000;
  min-height: 110px;
}

.choice-btn {
  background: #222;
  color: #fff;
  border: 2px solid #444;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.choice-btn:active {
  transform: scale(0.98);
  background: #333;
}

.choice-btn.good {
  border-color: #4CAF50;
}

.choice-btn.bad {
  border-color: #F44336;
}

#game-over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

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

.result-text {
  font-size: 24px;
  text-align: center;
  line-height: 1.5;
}

#restart {
  background: #4CAF50;
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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