/* ═══════════════════════════════════════════════
   시나리오 선택 화면 전용 스타일
   ═══════════════════════════════════════════════ */
.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.hero {
  padding: 56px 0 40px;
}
.hero-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--role-lead);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.75;
  max-width: 560px;
}
.hero-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── 시나리오 그리드 ── */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 767px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .page-wrap { padding: 0 16px 60px; }
  .hero { padding: 32px 0 24px; }
  .hero-title { font-size: 24px; }
}

/* ── 시나리오 카드 ── */
.scenario-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  overflow: hidden;
}
.scenario-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--role-lead), var(--role-executive));
  opacity: 0;
  transition: opacity 0.25s;
}
.scenario-card:hover::before { opacity: 1; }
.scenario-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.scenario-card:nth-child(1) { animation-delay: 0.05s; }
.scenario-card:nth-child(2) { animation-delay: 0.12s; }
.scenario-card:nth-child(3) { animation-delay: 0.19s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 카드 헤더 */
.scenario-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.case-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--bg-quote);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.char-count {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.char-count-dot {
  display: flex;
  gap: 3px;
}
.char-count-dot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* 카드 본문 */
.scenario-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.scenario-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}
.scenario-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* 카드 하단 */
.scenario-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--divider);
  margin-top: auto;
}
.scenario-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.scenario-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--role-lead);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font);
}
.scenario-start-btn:hover { filter: brightness(1.1); }
.scenario-start-btn svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2.5; fill: none; }

/* ── 로딩 상태 ── */
.loading-state {
  padding: 60px 24px;
  text-align: center;
}
.loading-state .spinner { width: 28px; height: 28px; margin: 0 auto 12px; }
.loading-text { font-size: 14px; color: var(--text-muted); }
