/* Experiment Chat — extends custom.css */

.home-nav-link {
  color: #c9b4ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.home-nav-link:hover,
.home-nav-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.prediction-options {
  border: 0;
  padding: 0;
  margin: 28px 0;
  min-width: 0;
}

.prediction-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px;
  border: 1px solid #51416f;
  border-radius: 12px;
  background: #241a3c;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.prediction-choice:has(input:checked) {
  border-color: #a78bfa;
  background: #51368a;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, .2);
}

.prediction-choice input {
  accent-color: #a78bfa;
  width: 18px;
  height: 18px;
}

.primary-button {
  width: 100%;
  background: #7651e8;
  margin-top: 16px;
}

#shareLink {
  width: 100%;
  background: #110d20;
  border: 1px solid #51416f;
  border-radius: 12px;
  color: #fff;
  padding: 16px;
  font: inherit;
  font-size: 14px;
}

.secondary-link {
  display: block;
  margin-top: 22px;
  color: #c9b4ff;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}

.secondary-link:hover {
  text-decoration: underline;
}

.chat-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.answer-card {
  min-width: 0;
  padding: 22px 14px;
  border: 1px solid #45375f;
  border-radius: 16px;
  background: #241a3c;
  text-align: center;
}

.answer-card span {
  display: block;
  min-height: 34px;
  color: #bdb0d4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.5;
}

.answer-card strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(22px, 5vw, 32px);
  overflow-wrap: anywhere;
}

.answer-card strong[data-answer="yes"] {
  color: #4ade80;
}

.answer-card strong[data-answer="no"] {
  color: #f87171;
}

.chat-navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
}

.chat-navigation a {
  color: #c9b4ff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.chat-navigation a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .prediction-choice {
    padding: 15px 10px;
  }

  .answer-card {
    padding: 18px 10px;
  }

  .answer-card span {
    font-size: 10px;
  }

  .chat-navigation {
    gap: 16px;
  }
}

/* Full-width invitation field on pending experiments */
#waitingShareLink {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 16px;
  margin: 12px 0 20px;
  background: #110d20;
  border: 1px solid #51416f;
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
}

#waitingShareLink:focus {
  border-color: #a78bfa;
  outline: 2px solid rgba(167,139,250,.25);
}
