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

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

select:disabled {
  background-color: #f0f0f0;
  color: #888;
  cursor: not-allowed;
}

.card-title {
  font-weight: 600;
}

.twist {
  background-color: #e9ecef;
  padding: 2px 6px;
  border-radius: 4px;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.twist:hover {
  background-color: #dee2e6;
}

.twist.revealed {
  background-color: #fff3cd;
  color: #856404;
}

.constraint-used {
  background-color: #ffeeba;
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 500;
}

#pitchBtn:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

.pitch-room {
  max-height: 300px; /* total container height */
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
  padding: 0.5rem;
  margin: 0.5rem;
}

.hidden {
  display: none;
}

#pitchTextContainer {
  max-width: 100%;
  flex-grow: 1; /* take all available vertical space */
  overflow-y: auto; /* scroll pitch text only */
  overflow-x: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.5rem;
}

#pitchTextContainer pre {
  margin: 0;
  line-height: 1.4;
  white-space: pre-wrap; /* preserve line breaks, but allow wrapping */
  word-wrap: break-word; /* break long words to prevent horizontal scroll */
  overflow-wrap: break-word; /* newer standard, safer for all browsers */
}

.pitch-section {
  margin-bottom: 1rem;
}

.pitch-header {
  font-weight: 600;
  color: #0d6efd; /* Bootstrap primary */
  margin-bottom: 0.25rem;
}

.pitch-text {
  font-family: "Courier New", monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 0.25rem;
}
