body {
  font-family: system-ui, sans-serif;
  background: #0f1220;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#app {
  text-align: center;
  max-width: 480px;
  width: 100%;
}

#remaining {
  opacity: 0.7;
  margin-bottom: 10px;
}

#bigNumber {
  font-size: 96px;
  font-weight: 700;
  margin: 30px 0;
  padding: 20px;
  border: 2px solid #444;
  border-radius: 16px;
}

#buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

button {
  flex: 1;
  font-size: 24px;
  padding: 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

button.sane {
  background: #23d18b;
}

button.nope {
  background: #e74856;
}

button:hover {
  filter: brightness(1.1);
}

#history {
  margin-top: 20px;
}

#history h3 {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 6px;
}

/* Unified history box */
.history-box {
  border: 2px solid #333;
  border-radius: 12px;

  /* Make it feel expanded even when empty */
  min-height: 30px;

  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  /* Optional: very subtle depth so it doesn’t feel collapsed */
  background: rgba(255, 255, 255, 0.02);
}

/* Base chip */
.history-item {
  position: relative;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* Ground truth color */
.history-item.sane {
  background: #23d18b;
  color: #000;
}

.history-item.nope {
  background: #e74856;
  color: #fff;
}

/* Wrong answers are faded */
.history-item.wrong {
  opacity: 0.45;
}

/* Overlay icon */
.history-item::after {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

/* Correct icon */
.history-item.correct::after {
  content: "✓";
  background: #1db954;
  color: #000;
}

/* Wrong icon */
.history-item.wrong::after {
  content: "✕";
  background: #000;
  color: #fff;
}

#result {
  margin-top: 20px;
  font-size: 18px;
}

#restartBtn {
  margin-top: 22px;
  font-size: 16px;
  padding: 10px 16px;
}

#hint {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 6px;
}

/* Blink feedback */
.correct-blink {
  animation: blinkGreen 0.5s ease-in-out 1;
}

.wrong-blink {
  animation: blinkRed 0.5s ease-in-out 1;
}

@keyframes blinkGreen {
  50% { box-shadow: 0 0 14px #23d18b; }
}

@keyframes blinkRed {
  50% { box-shadow: 0 0 14px #e74856; }
}
