/* Absurd Trolley Problems Editorial Styles */
.trolley-page {
  padding-top: 74px;
  padding-bottom: 80px;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-sans);
}

.trolley-container {
  width: 100%;
  max-width: 720px;
  padding: 0 20px;
  text-align: center;
}

.trolley-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.trolley-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.trolley-hero-sub {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.dilemma-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.dilemma-index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-bottom: 14px;
}

.dilemma-text {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 400;
}

.track-canvas-wrap {
  width: 100%;
  height: 220px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

#trackCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.choices-row {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.choice-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-subtle);
}

.btn-pull {
  background: var(--text-primary);
  color: #FFFFFF;
  border: 1px solid var(--text-primary);
}
.btn-pull:hover {
  background: #383838;
}

.btn-leave {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-leave:hover {
  background: var(--bg-subtle);
}

/* Polling stats result */
.result-box {
  display: none;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  animation: fadeIn 0.3s ease;
}

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

.result-stat-bar {
  display: flex;
  height: 26px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 12px;
}

.stat-fill-pull {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-fill-leave {
  background: #242424;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-next-dilemma {
  background: var(--text-primary);
  color: #FFFFFF;
  border: 1px solid var(--text-primary);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.15s;
}
.btn-next-dilemma:hover {
  background: #383838;
}
