/* guiri.fun — custom styles */

/* Screen transitions */
.screen-enter {
  animation: fadeIn 0.3s ease-out;
}

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

/* Choice buttons */
.choice-btn {
  transition: all 0.15s ease;
}

.choice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.choice-btn:active {
  transform: translateY(0);
}

/* Feedback animation */
.feedback-enter {
  animation: slideUp 0.3s ease-out;
}

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

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e7e5e4;
  border-top-color: #E87040;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* TTS play button */
.tts-btn {
  transition: color 0.15s;
}

.tts-btn:hover {
  color: #2B6CB0;
}

/* Input node text field */
.input-field:focus {
  outline: none;
  border-color: #E87040;
  box-shadow: 0 0 0 3px rgba(232, 112, 64, 0.15);
}

/* EN toggle pill */
.en-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 9999px;
  border: 1.5px solid #d6d3d1;
  background: transparent;
  color: #a8a29e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}

.en-toggle:hover {
  border-color: #E87040;
  color: #E87040;
}

.en-toggle--active {
  border-color: #E87040;
  color: #E87040;
  background: #FFF7ED;
}

/* English text (hidden by default, shown via .show-en on wrapper) */
.en-text {
  display: none;
  font-size: 0.85rem;
  color: #78716c;
  font-style: italic;
  margin-top: 4px;
}

.show-en .en-text {
  display: block;
}

/* Node image (photo above context) */
.node-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Leaderboard highlight */
.leaderboard-current {
  background-color: #FFF7ED;
  font-weight: 600;
}

/* Inline hint text (start screen, summaries) */
.tooltip {
  font-size: 0.85rem;
  color: #a8a29e;
  font-style: italic;
}

/* Tip box */
.tip-box {
  border-left: 3px solid #E87040;
  background: #FFF7ED;
}
